@ceed/ads 1.2.0-next.2 → 1.2.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Select/Select.d.ts +15 -15
- package/dist/index.js +2 -2
- package/framer/index.js +5 -5
- package/package.json +1 -1
package/framer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var IB=Object.create;var Xp=Object.defineProperty,OB=Object.defineProperties,DB=Object.getOwnPropertyDescriptor,_B=Object.getOwnPropertyDescriptors,wB=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,AB=Object.getPrototypeOf,ev=Object.prototype.hasOwnProperty,IP=Object.prototype.propertyIsEnumerable;var EP=(e,t,r)=>t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))ev.call(t,r)&&EP(e,r,t[r]);if($d)for(var r of $d(t))IP.call(t,r)&&EP(e,r,t[r]);return e},Z=(e,t)=>OB(e,_B(t));var he=(e,t)=>{var r={};for(var o in e)ev.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&$d)for(var o of $d(e))t.indexOf(o)<0&&IP.call(e,o)&&(r[o]=e[o]);return r};var ze=(e,t)=>()=>(e&&(t=e(e=0)),t);var Kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_n=(e,t)=>{for(var r in t)Xp(e,r,{get:t[r],enumerable:!0})},OP=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wB(t))!ev.call(e,n)&&n!==r&&Xp(e,n,{get:()=>t[n],enumerable:!(o=DB(t,n))||o.enumerable});return e};var wo=(e,t,r)=>(r=e!=null?IB(AB(e)):{},OP(t||!e||!e.__esModule?Xp(r,"default",{value:e,enumerable:!0}):r,e)),Va=e=>OP(Xp({},"__esModule",{value:!0}),e);function mr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var DP=ze(()=>{});var _P={};_n(_P,{default:()=>mr});var $a=ze(()=>{DP()});function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},m.apply(this,arguments)}var oe=ze(()=>{});function jd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Hd=ze(()=>{});var MB,wP,tv=ze(()=>{Hd();MB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wP=jd(function(e){return MB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});function NB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function LB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AP,BP=ze(()=>{AP=function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(LB(this));var n=this.tags[this.tags.length-1];if(0)var a;if(this.isSpeedy){var i=NB(n);try{i.insertRule(o,i.cssRules.length)}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0},e}()});var hr,Zp,pt,Ud,sl,ll,MP,Wd,NP,Gd=ze(()=>{hr="-ms-",Zp="-moz-",pt="-webkit-",Ud="comm",sl="rule",ll="decl",MP="@import",Wd="@keyframes",NP="@layer"});function FP(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function Yd(e){return e.trim()}function rv(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,r){return e.replace(t,r)}function Qp(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function ja(e,t,r){return e.slice(t,r)}function Ur(e){return e.length}function pl(e){return e.length}function cl(e,t){return t.push(e),e}function ov(e,t){return e.map(t).join("")}var LP,Zi,zP,ul=ze(()=>{LP=Math.abs,Zi=String.fromCharCode,zP=Object.assign});function ec(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:Jd,column:dl,length:i,return:""}}function hl(e,t){return zP(ec("",null,null,"",null,null,0),e,{length:-e.length},t)}function $P(){return Ut}function jP(){return Ut=Wr>0?Lt(ml,--Wr):0,dl--,Ut===10&&(dl=1,Jd--),Ut}function Gr(){return Ut=Wr<VP?Lt(ml,Wr++):0,dl++,Ut===10&&(dl=1,Jd++),Ut}function Bo(){return Lt(ml,Wr)}function tc(){return Wr}function yl(e,t){return ja(ml,e,t)}function fl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qd(e){return Jd=dl=1,VP=Ur(ml=e),Wr=0,[]}function Kd(e){return ml="",e}function gl(e){return Yd(yl(Wr-1,nv(e===91?e+2:e===40?e+1:e)))}function HP(e){for(;(Ut=Bo())&&Ut<33;)Gr();return fl(e)>2||fl(Ut)>3?"":" "}function UP(e,t){for(;--t&&Gr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return yl(e,tc()+(t<6&&Bo()==32&&Gr()==32))}function nv(e){for(;Gr();)switch(Ut){case e:return Wr;case 34:case 39:e!==34&&e!==39&&nv(Ut);break;case 40:e===41&&nv(e);break;case 92:Gr();break}return Wr}function WP(e,t){for(;Gr()&&e+Ut!==57;)if(e+Ut===84&&Bo()===47)break;return"/*"+yl(t,Wr-1)+"*"+Zi(e===47?e:Gr())}function GP(e){for(;!fl(Bo());)Gr();return yl(e,Wr)}var Jd,dl,VP,Wr,Ut,ml,av=ze(()=>{ul();Jd=1,dl=1,VP=0,Wr=0,Ut=0,ml=""});function qP(e){return Kd(Xd("",null,null,null,[""],e=qd(e),0,[0],e))}function Xd(e,t,r,o,n,a,i,s,l){for(var p=0,c=0,u=i,d=0,f=0,y=0,h=1,v=1,b=1,x=0,g="",C=n,T=a,P=o,S=g;v;)switch(y=x,x=Gr()){case 40:if(y!=108&&Lt(S,u-1)==58){Qp(S+=nt(gl(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=gl(x);break;case 9:case 10:case 13:case 32:S+=HP(y);break;case 92:S+=UP(tc()-1,7);continue;case 47:switch(Bo()){case 42:case 47:cl(zB(WP(Gr(),tc()),t,r),l);break;default:S+="/"}break;case 123*h:s[p++]=Ur(S)*b;case 125*h:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+c:b==-1&&(S=nt(S,/\f/g,"")),f>0&&Ur(S)-u&&cl(f>32?JP(S+";",o,r,u-1):JP(nt(S," ","")+";",o,r,u-2),l);break;case 59:S+=";";default:if(cl(P=YP(S,t,r,p,c,n,s,g,C=[],T=[],u),a),x===123)if(c===0)Xd(S,t,P,P,C,a,u,s,T);else switch(d===99&&Lt(S,3)===110?100:d){case 100:case 108:case 109:case 115:Xd(e,P,P,o&&cl(YP(e,P,P,0,0,n,s,g,n,C=[],u),T),n,T,u,s,o?C:T);break;default:Xd(S,P,P,P,[""],T,0,s,T)}}p=c=f=0,h=b=1,g=S="",u=i;break;case 58:u=1+Ur(S),f=y;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&jP()==125)continue}switch(S+=Zi(x),x*h){case 38:b=c>0?1:(S+="\f",-1);break;case 44:s[p++]=(Ur(S)-1)*b,b=1;break;case 64:Bo()===45&&(S+=gl(Gr())),d=Bo(),c=u=Ur(g=S+=GP(tc())),x++;break;case 45:y===45&&Ur(S)==2&&(h=0)}}return a}function YP(e,t,r,o,n,a,i,s,l,p,c){for(var u=n-1,d=n===0?a:[""],f=pl(d),y=0,h=0,v=0;y<o;++y)for(var b=0,x=ja(e,u+1,u=LP(h=i[y])),g=e;b<f;++b)(g=Yd(h>0?d[b]+" "+x:nt(x,/&\f/g,d[b])))&&(l[v++]=g);return ec(e,t,r,n===0?sl:s,l,p,c)}function zB(e,t,r){return ec(e,t,r,Ud,Zi($P()),ja(e,2,-2),0)}function JP(e,t,r,o){return ec(e,t,r,ll,ja(e,0,o),ja(e,o+1,-1),o)}var KP=ze(()=>{Gd();ul();av()});var XP=ze(()=>{});function Qi(e,t){for(var r="",o=pl(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function ZP(e,t,r,o){switch(e.type){case NP:if(e.children.length)break;case MP:case ll:return e.return=e.return||e.value;case Ud:return"";case Wd:return e.return=e.value+"{"+Qi(e.children,o)+"}";case sl:e.value=e.props.join(",")}return Ur(r=Qi(e.children,o))?e.return=e.value+"{"+r+"}":""}var QP=ze(()=>{Gd();ul()});function eC(e){var t=pl(e);return function(r,o,n,a){for(var i="",s=0;s<t;s++)i+=e[s](r,o,n,a)||"";return i}}function tC(e){return function(t){t.root||(t=t.return)&&e(t)}}var rC=ze(()=>{ul()});var oC=ze(()=>{Gd();ul();KP();XP();av();QP();rC()});var rc=ze(()=>{});function aC(e,t){switch(FP(e,t)){case 5103:return pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+Zp+e+hr+e+e;case 6828:case 4268:return pt+e+hr+e+e;case 6165:return pt+e+hr+"flex-"+e+e;case 5187:return pt+e+nt(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return pt+e+hr+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return pt+e+hr+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return pt+e+hr+nt(e,"shrink","negative")+e;case 5292:return pt+e+hr+nt(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+nt(e,"-grow","")+pt+e+hr+nt(e,"grow","positive")+e;case 4554:return pt+nt(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ur(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Zp+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qp(e,"stretch")?aC(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,Ur(e)-3-(~Qp(e,"!important")&&10))){case 107:return nt(e,":",":"+pt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(Lt(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+hr+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return pt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+hr+e+e}return e}var FB,VB,$B,nC,jB,HB,UB,WB,oc,nc=ze(()=>{BP();oC();rc();Hd();FB=function(t,r,o){for(var n=0,a=0;n=a,a=Bo(),n===38&&a===12&&(r[o]=1),!fl(a);)Gr();return yl(t,Wr)},VB=function(t,r){var o=-1,n=44;do switch(fl(n)){case 0:n===38&&Bo()===12&&(r[o]=1),t[o]+=FB(Wr-1,r,o);break;case 2:t[o]+=gl(n);break;case 4:if(n===44){t[++o]=Bo()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Zi(n)}while(n=Gr());return t},$B=function(t,r){return Kd(VB(qd(t),r))},nC=new WeakMap,jB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!nC.get(o))&&!n){nC.set(t,!0);for(var a=[],i=$B(r,a),s=o.props,l=0,p=0;l<i.length;l++)for(var c=0;c<s.length;c++,p++)t.props[p]=a[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},HB=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};UB=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case ll:t.return=aC(t.value,t.length);break;case Wd:return Qi([hl(t,{value:nt(t.value,"@","@"+pt)})],n);case sl:if(t.length)return ov(t.props,function(a){switch(rv(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qi([hl(t,{props:[nt(a,/:(read-\w+)/,":"+Zp+"$1")]})],n);case"::placeholder":return Qi([hl(t,{props:[nt(a,/:(plac\w+)/,":"+pt+"input-$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,":"+Zp+"$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,hr+"input-$1")]})],n)}return""})}},WB=[UB],oc=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||WB,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)a[v[b]]=!0;s.push(h)});var l,p=[jB,HB];{var c,u=[ZP,tC(function(h){c.insert(h)})],d=eC(p.concat(n,u)),f=function(v){return Qi(qP(v),d)};l=function(v,b,x,g){c=x,f(v?v+"{"+b.styles+"}":b.styles),g&&(y.inserted[b.name]=!0)}}var y={key:r,sheet:new AP({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return y.sheet.hydrate(s),y}});var sC=Kt(ut=>{"use strict";var ar=typeof Symbol=="function"&&Symbol.for,iv=ar?Symbol.for("react.element"):60103,sv=ar?Symbol.for("react.portal"):60106,Zd=ar?Symbol.for("react.fragment"):60107,Qd=ar?Symbol.for("react.strict_mode"):60108,ef=ar?Symbol.for("react.profiler"):60114,tf=ar?Symbol.for("react.provider"):60109,rf=ar?Symbol.for("react.context"):60110,lv=ar?Symbol.for("react.async_mode"):60111,of=ar?Symbol.for("react.concurrent_mode"):60111,nf=ar?Symbol.for("react.forward_ref"):60112,af=ar?Symbol.for("react.suspense"):60113,GB=ar?Symbol.for("react.suspense_list"):60120,sf=ar?Symbol.for("react.memo"):60115,lf=ar?Symbol.for("react.lazy"):60116,YB=ar?Symbol.for("react.block"):60121,JB=ar?Symbol.for("react.fundamental"):60117,qB=ar?Symbol.for("react.responder"):60118,KB=ar?Symbol.for("react.scope"):60119;function ho(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iv:switch(e=e.type,e){case lv:case of:case Zd:case ef:case Qd:case af:return e;default:switch(e=e&&e.$$typeof,e){case rf:case nf:case lf:case sf:case tf:return e;default:return t}}case sv:return t}}}function iC(e){return ho(e)===of}ut.AsyncMode=lv;ut.ConcurrentMode=of;ut.ContextConsumer=rf;ut.ContextProvider=tf;ut.Element=iv;ut.ForwardRef=nf;ut.Fragment=Zd;ut.Lazy=lf;ut.Memo=sf;ut.Portal=sv;ut.Profiler=ef;ut.StrictMode=Qd;ut.Suspense=af;ut.isAsyncMode=function(e){return iC(e)||ho(e)===lv};ut.isConcurrentMode=iC;ut.isContextConsumer=function(e){return ho(e)===rf};ut.isContextProvider=function(e){return ho(e)===tf};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iv};ut.isForwardRef=function(e){return ho(e)===nf};ut.isFragment=function(e){return ho(e)===Zd};ut.isLazy=function(e){return ho(e)===lf};ut.isMemo=function(e){return ho(e)===sf};ut.isPortal=function(e){return ho(e)===sv};ut.isProfiler=function(e){return ho(e)===ef};ut.isStrictMode=function(e){return ho(e)===Qd};ut.isSuspense=function(e){return ho(e)===af};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zd||e===of||e===ef||e===Qd||e===af||e===GB||typeof e=="object"&&e!==null&&(e.$$typeof===lf||e.$$typeof===sf||e.$$typeof===tf||e.$$typeof===rf||e.$$typeof===nf||e.$$typeof===JB||e.$$typeof===qB||e.$$typeof===KB||e.$$typeof===YB)};ut.typeOf=ho});var pC=Kt((ZZ,lC)=>{"use strict";lC.exports=sC()});var uv=Kt((QZ,hC)=>{"use strict";var pv=pC(),XB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},QB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv={};cv[pv.ForwardRef]=QB;cv[pv.Memo]=fC;function cC(e){return pv.isMemo(e)?fC:cv[e.$$typeof]||XB}var eM=Object.defineProperty,tM=Object.getOwnPropertyNames,uC=Object.getOwnPropertySymbols,rM=Object.getOwnPropertyDescriptor,oM=Object.getPrototypeOf,dC=Object.prototype;function mC(e,t,r){if(typeof t!="string"){if(dC){var o=oM(t);o&&o!==dC&&mC(e,o,r)}var n=tM(t);uC&&(n=n.concat(uC(t)));for(var a=cC(e),i=cC(t),s=0;s<n.length;++s){var l=n[s];if(!ZB[l]&&!(r&&r[l])&&!(i&&i[l])&&!(a&&a[l])){var p=rM(t,l);try{eM(e,l,p)}catch(c){}}}}return e}hC.exports=mC});function ac(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" "}),o}var nM,vl,bl,xl=ze(()=>{nM=!0;vl=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||nM===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},bl=function(t,r,o){vl(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+n:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}}});function yC(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gC=ze(()=>{});var vC,bC=ze(()=>{vC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}});function ic(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wn={name:r.name,styles:r.styles,next:wn},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)wn={name:o.name,styles:o.styles,next:wn},o=o.next;var n=r.styles+";";return n}return sM(e,t,r)}case"function":{if(e!==void 0){var a=wn,i=r(e);return wn=a,ic(e,t,i)}break}case"string":if(0)var s,l;break}if(t==null)return r;var p=t[r];return p!==void 0?p:r}function sM(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=ic(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object")t!=null&&t[i]!==void 0?o+=a+"{"+t[i]+"}":xC(i)&&(o+=dv(a)+":"+TC(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)xC(i[s])&&(o+=dv(a)+":"+TC(a,i[s])+";");else{var l=ic(e,t,i);switch(a){case"animation":case"animationName":{o+=dv(a)+":"+l+";";break}default:o+=a+"{"+l+"}"}}}return o}var aM,iM,CC,xC,dv,TC,PC,wn,es,Tl=ze(()=>{gC();bC();Hd();aM=/[A-Z]|^ms/g,iM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CC=function(t){return t.charCodeAt(1)===45},xC=function(t){return t!=null&&typeof t!="boolean"},dv=jd(function(e){return CC(e)?e:e.replace(aM,"-$&").toLowerCase()}),TC=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(iM,function(o,n,a){return wn={name:n,styles:a,next:wn},n})}return vC[t]!==1&&!CC(t)&&typeof r=="number"&&r!==0?r+"px":r};PC=/label:\s*([^\s;\n{]+)\s*(;|$)/g,es=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,a="";wn=void 0;var i=t[0];i==null||i.raw===void 0?(n=!1,a+=ic(o,r,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ic(o,r,t[s]),n&&(a+=i[s]);var l;PC.lastIndex=0;for(var p="",c;(c=PC.exec(a))!==null;)p+="-"+c[1];var u=yC(a)+p;return{name:u,styles:a,next:wn}}});import*as sc from"react";var lM,SC,lc,fv,Pl=ze(()=>{lM=function(t){return t()},SC=sc.useInsertionEffect?sc.useInsertionEffect:!1,lc=SC||lM,fv=SC||sc.useLayoutEffect});import*as yo from"react";import{useContext as kC,forwardRef as pM}from"react";var hv,ts,pf,yv,rs,Mo,mv,pc,cM,uM,cc,cf=ze(()=>{nc();oe();rc();xl();Tl();Pl();hv=!0,ts={}.hasOwnProperty,pf=yo.createContext(typeof HTMLElement<"u"?oc({key:"css"}):null),yv=pf.Provider,rs=function(t){return pM(function(r,o){var n=kC(pf);return t(r,n,o)})};hv||(rs=function(t){return function(r){var o=kC(pf);return o===null?(o=oc({key:"css"}),yo.createElement(pf.Provider,{value:o},t(r,o))):t(r,o)}});Mo=yo.createContext({}),mv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pc=function(t,r){var o={};for(var n in r)ts.call(r,n)&&(o[n]=r[n]);if(o[mv]=t,0)var a;return o},cM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),lc(function(){return bl(r,o,n)}),null},uM=rs(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[mv],a=[o],i="";typeof e.className=="string"?i=ac(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=es(a,void 0,yo.useContext(Mo));if(0)var l;i+=t.key+"-"+s.name;var p={};for(var c in e)ts.call(e,c)&&c!=="css"&&c!==mv&&(p[c]=e[c]);return p.ref=r,p.className=i,yo.createElement(yo.Fragment,null,yo.createElement(cM,{cache:t,serialized:s,isStringTag:typeof n=="string"}),yo.createElement(n,p))}),cc=uM});import*as ea from"react";function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es(t)}var IQ,RC,EC,An,os=ze(()=>{cf();cf();xl();Pl();Tl();nc();oe();rc();IQ=wo(uv()),RC=function(t,r){var o=arguments;if(r==null||!ts.call(r,"css"))return ea.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=cc,a[1]=pc(t,r);for(var i=2;i<n;i++)a[i]=o[i];return ea.createElement.apply(null,a)},EC=rs(function(e,t){var r=e.styles,o=es([r],void 0,ea.useContext(Mo));if(!hv){for(var n,a=o.name,i=o.styles,s=o.next;s!==void 0;)a+=" "+s.name,i+=s.styles,s=s.next;var l=t.compat===!0,p=t.insert("",{name:a,styles:i},t.sheet,l);return l?null:ea.createElement("style",(n={},n["data-emotion"]=t.key+"-global "+a,n.dangerouslySetInnerHTML={__html:p},n.nonce=t.sheet.nonce,n))}var c=ea.useRef();return fv(function(){var u=t.key+"-global",d=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,y=document.querySelector('style[data-emotion="'+u+" "+o.name+'"]');return t.sheet.tags.length&&(d.before=t.sheet.tags[0]),y!==null&&(f=!0,y.setAttribute("data-emotion",u),d.hydrate([y])),c.current=[d,f],function(){d.flush()}},[t]),fv(function(){var u=c.current,d=u[0],f=u[1];if(f){u[1]=!1;return}if(o.next!==void 0&&bl(t,o.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}t.insert("",o,d,!1)},[t,o.name]),null});An=function(){var t=No.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}});import*as Ha from"react";var dM,fM,IC,OC,mM,DC,_C=ze(()=>{oe();tv();os();xl();Tl();Pl();dM=wP,fM=function(t){return t!=="theme"},IC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?dM:fM},OC=function(t,r,o){var n;if(r){var a=r.shouldForwardProp;n=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n},mM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),lc(function(){return bl(r,o,n)}),null},DC=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=OC(t,r,o),l=s||IC(n),p=!l("as");return function(){var c=arguments,u=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)u.push.apply(u,c);else{u.push(c[0][0]);for(var d=c.length,f=1;f<d;f++)u.push(c[f],c[0][f])}var y=rs(function(h,v,b){var x=p&&h.as||n,g="",C=[],T=h;if(h.theme==null){T={};for(var P in h)T[P]=h[P];T.theme=Ha.useContext(Mo)}typeof h.className=="string"?g=ac(v.registered,C,h.className):h.className!=null&&(g=h.className+" ");var S=es(u.concat(C),v.registered,T);g+=v.key+"-"+S.name,i!==void 0&&(g+=" "+i);var k=p&&s===void 0?IC(x):l,I={};for(var w in h)p&&w==="as"||k(w)&&(I[w]=h[w]);return I.className=g,I.ref=b,Ha.createElement(Ha.Fragment,null,Ha.createElement(mM,{cache:v,serialized:S,isStringTag:typeof x=="string"}),Ha.createElement(x,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=u,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(h,v){return e(h,m({},r,v,{shouldForwardProp:OC(y,v,!0)})).apply(void 0,u)},y}}});import"react";var hM,uf,wC=ze(()=>{_C();oe();tv();xl();Tl();Pl();hM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],uf=DC.bind();hM.forEach(function(e){uf[e]=uf(e)})});var BC=Kt((GQ,AC)=>{"use strict";var yM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";AC.exports=yM});var zC=Kt((YQ,LC)=>{"use strict";var gM=BC();function MC(){}function NC(){}NC.resetWarningCache=MC;LC.exports=function(){function e(o,n,a,i,s,l){if(l!==gM){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:NC,resetWarningCache:MC};return r.PropTypes=r,r}});var VC=Kt((KQ,FC)=>{FC.exports=zC()();var JQ,qQ});import"react";import{jsx as vM}from"react/jsx-runtime";function uc(e){let{injectFirst:t,children:r}=e;return t&&gv?vM(yv,{value:gv,children:r}):r}var gv,$C=ze(()=>{"use client";os();nc();typeof document=="object"&&(gv=oc({key:"css",prepend:!0}))});var jC=ze(()=>{"use client";$C()});import"react";import{jsx as bM}from"react/jsx-runtime";function xM(e){return e==null||Object.keys(e).length===0}function Bn(e){let{styles:t,defaultTheme:r={}}=e;return bM(EC,{styles:typeof t=="function"?n=>t(xM(n)?r:n):t})}var HC=ze(()=>{"use client";os()});var UC=ze(()=>{"use client";HC()});var WC={};_n(WC,{GlobalStyles:()=>Bn,StyledEngineProvider:()=>uc,ThemeContext:()=>Mo,css:()=>No,default:()=>Cl,internal_processStyles:()=>vv,keyframes:()=>An});function Cl(e,t){return uf(e,t)}var vv,ta=ze(()=>{"use client";wC();os();jC();UC();vv=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}});function H(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var xe=ze(()=>{});function pn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function GC(e){if(!pn(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=GC(e[r])}),t}function ct(e,t,r={clone:!0}){let o=r.clone?m({},e):e;return pn(e)&&pn(t)&&Object.keys(t).forEach(n=>{n!=="__proto__"&&(pn(t[n])&&n in e&&pn(e[n])?o[n]=ct(e[n],t[n],r):r.clone?o[n]=pn(t[n])?GC(t[n]):t[n]:o[n]=t[n])}),o}var bv=ze(()=>{oe()});var YC={};_n(YC,{default:()=>ct,isPlainObject:()=>pn});var ro=ze(()=>{bv();bv()});function Ua(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,n=H(e,TM),a=PM(t),i=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-o/100}${r})`}function p(d,f){let y=i.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:f)-o/100}${r})`}function c(d){return i.indexOf(d)+1<i.length?p(d,i[i.indexOf(d)+1]):s(d)}function u(d){let f=i.indexOf(d);return f===0?s(i[1]):f===i.length-1?l(i[f]):p(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return m({keys:i,values:a,up:s,down:l,between:p,only:c,not:u,unit:r},n)}var TM,PM,df=ze(()=>{xe();oe();TM=["values","unit","step"],PM=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>m({},r,{[o.key]:o.val}),{})}});var CM,JC,qC=ze(()=>{CM={borderRadius:4},JC=CM});function SM(e,t){return t?ct(e,t,{clone:!1}):e}var Wa,ff=ze(()=>{ro();Wa=SM});function ir(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let a=o.breakpoints||KC;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){let a=o.breakpoints||KC;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||mf).indexOf(s)!==-1){let l=a.up(s);i[l]=r(t[s],s)}else{let l=s;i[l]=t[l]}return i},{})}return r(t)}function xv(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((o,n)=>{let a=e.up(n);return o[a]={},o},{}))||{}}function Tv(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function XC(e,...t){let r=xv(e),o=[r,...t].reduce((n,a)=>ct(n,a),{});return Tv(Object.keys(r),o)}function kM(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,a)=>{a<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function hf({values:e,breakpoints:t,base:r}){let o=r||kM(e,t),n=Object.keys(o);if(n.length===0)return e;let a;return n.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}var mf,KC,Ga=ze(()=>{oe();ro();mf={xs:0,sm:600,md:900,lg:1200,xl:1536},KC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mf[e]}px)`}});function j(e){if(typeof e!="string")throw new Error(mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=ze(()=>{$a()});var QC={};_n(QC,{default:()=>j});var Sl=ze(()=>{ZC()});function go(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function kl(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=go(e,r)||o,t&&(n=t(n,o,e)),n}function RM(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,a=i=>{if(i[t]==null)return null;let s=i[t],l=i.theme,p=go(l,o)||{};return ir(i,s,u=>{let d=kl(p,n,u);return u===d&&typeof u=="string"&&(d=kl(p,n,`${t}${u==="default"?"":j(u)}`,u)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}var gt,Ya=ze(()=>{Sl();Ga();gt=RM});function Pv(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var eS=ze(()=>{});function ns(e,t,r,o){var n;let a=(n=go(e,t,!1))!=null?n:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function dc(e){return ns(e,"spacing",8,"spacing")}function Mn(e,t){if(typeof t=="string"||t==null)return t;let r=Math.abs(t),o=e(r);return t>=0?o:typeof o=="number"?-o:`-${o}`}function DM(e,t){return r=>e.reduce((o,n)=>(o[n]=Mn(t,r),o),{})}function _M(e,t,r,o){if(t.indexOf(r)===-1)return null;let n=OM(r),a=DM(n,o),i=e[r];return ir(e,i,a)}function kv(e,t){let r=dc(e.theme);return Object.keys(e).map(o=>_M(e,t,o,r)).reduce(Wa,{})}function Rt(e){return kv(e,Cv)}function Et(e){return kv(e,Sv)}function oS(e){return kv(e,rS)}var EM,IM,tS,OM,Cv,Sv,rS,as=ze(()=>{Ga();Ya();ff();eS();EM={m:"margin",p:"padding"},IM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OM=Pv(e=>{if(e.length>2)if(tS[e])e=tS[e];else return[e];let[t,r]=e.split(""),o=EM[t],n=IM[r]||"";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),Cv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rS=[...Cv,...Sv];Rt.propTypes={};Rt.filterProps=Cv;Et.propTypes={};Et.filterProps=Sv;oS.propTypes={};oS.filterProps=rS});function Rl(e=8){if(e.mui)return e;let t=dc({spacing:e}),r=(...o)=>(o.length===0?[1]:o).map(a=>{let i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}var Rv=ze(()=>{as()});function wM(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),r=o=>Object.keys(o).reduce((n,a)=>t[a]?Wa(n,t[a](o)):n,{});return r.propTypes={},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ja,fc=ze(()=>{ff();Ja=wM});function vo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return gt({prop:e,themeKey:"borders",transform:t})}var AM,BM,MM,NM,LM,zM,FM,VM,$M,jM,HM,UM,mc,Jee,Ev=ze(()=>{Ya();fc();as();Ga();AM=Lo("border",vo),BM=Lo("borderTop",vo),MM=Lo("borderRight",vo),NM=Lo("borderBottom",vo),LM=Lo("borderLeft",vo),zM=Lo("borderColor"),FM=Lo("borderTopColor"),VM=Lo("borderRightColor"),$M=Lo("borderBottomColor"),jM=Lo("borderLeftColor"),HM=Lo("outline",vo),UM=Lo("outlineColor"),mc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ns(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Mn(t,o)});return ir(e,e.borderRadius,r)}return null};mc.propTypes={};mc.filterProps=["borderRadius"];Jee=Ja(AM,BM,MM,NM,LM,zM,FM,VM,$M,jM,mc,HM,UM)});var hc,yc,gc,WM,GM,YM,JM,qM,KM,XM,ZM,QM,ete,Iv=ze(()=>{Ya();fc();as();Ga();hc=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ns(e.theme,"spacing",8,"gap"),r=o=>({gap:Mn(t,o)});return ir(e,e.gap,r)}return null};hc.propTypes={};hc.filterProps=["gap"];yc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ns(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Mn(t,o)});return ir(e,e.columnGap,r)}return null};yc.propTypes={};yc.filterProps=["columnGap"];gc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ns(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Mn(t,o)});return ir(e,e.rowGap,r)}return null};gc.propTypes={};gc.filterProps=["rowGap"];WM=gt({prop:"gridColumn"}),GM=gt({prop:"gridRow"}),YM=gt({prop:"gridAutoFlow"}),JM=gt({prop:"gridAutoColumns"}),qM=gt({prop:"gridAutoRows"}),KM=gt({prop:"gridTemplateColumns"}),XM=gt({prop:"gridTemplateRows"}),ZM=gt({prop:"gridTemplateAreas"}),QM=gt({prop:"gridArea"}),ete=Ja(hc,yc,gc,WM,GM,YM,JM,qM,KM,XM,ZM,QM)});function is(e,t){return t==="grey"?t:e}var eN,tN,rN,nte,Ov=ze(()=>{Ya();fc();eN=gt({prop:"color",themeKey:"palette",transform:is}),tN=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:is}),rN=gt({prop:"backgroundColor",themeKey:"palette",transform:is}),nte=Ja(eN,tN,rN)});function oo(e){return e<=1&&e!==0?`${e*100}%`:e}var oN,yf,nN,aN,iN,sN,pte,cte,lN,ute,Dv=ze(()=>{Ya();fc();Ga();oN=gt({prop:"width",transform:oo}),yf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var o,n;let a=((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[r])||mf[r];return a?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:oo(r)}};return ir(e,e.maxWidth,t)}return null};yf.filterProps=["maxWidth"];nN=gt({prop:"minWidth",transform:oo}),aN=gt({prop:"height",transform:oo}),iN=gt({prop:"maxHeight",transform:oo}),sN=gt({prop:"minHeight",transform:oo}),pte=gt({prop:"size",cssProperty:"width",transform:oo}),cte=gt({prop:"size",cssProperty:"height",transform:oo}),lN=gt({prop:"boxSizing"}),ute=Ja(oN,yf,nN,aN,iN,sN,lN)});var pN,bo,vc=ze(()=>{as();Ev();Iv();Ov();Dv();pN={border:{themeKey:"borders",transform:vo},borderTop:{themeKey:"borders",transform:vo},borderRight:{themeKey:"borders",transform:vo},borderBottom:{themeKey:"borders",transform:vo},borderLeft:{themeKey:"borders",transform:vo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mc},color:{themeKey:"palette",transform:is},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:is},backgroundColor:{themeKey:"palette",transform:is},p:{style:Et},pt:{style:Et},pr:{style:Et},pb:{style:Et},pl:{style:Et},px:{style:Et},py:{style:Et},padding:{style:Et},paddingTop:{style:Et},paddingRight:{style:Et},paddingBottom:{style:Et},paddingLeft:{style:Et},paddingX:{style:Et},paddingY:{style:Et},paddingInline:{style:Et},paddingInlineStart:{style:Et},paddingInlineEnd:{style:Et},paddingBlock:{style:Et},paddingBlockStart:{style:Et},paddingBlockEnd:{style:Et},m:{style:Rt},mt:{style:Rt},mr:{style:Rt},mb:{style:Rt},ml:{style:Rt},mx:{style:Rt},my:{style:Rt},margin:{style:Rt},marginTop:{style:Rt},marginRight:{style:Rt},marginBottom:{style:Rt},marginLeft:{style:Rt},marginX:{style:Rt},marginY:{style:Rt},marginInline:{style:Rt},marginInlineStart:{style:Rt},marginInlineEnd:{style:Rt},marginBlock:{style:Rt},marginBlockStart:{style:Rt},marginBlockEnd:{style:Rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hc},rowGap:{style:gc},columnGap:{style:yc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oo},maxWidth:{style:yf},minWidth:{transform:oo},height:{transform:oo},maxHeight:{transform:oo},minHeight:{transform:oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},bo=pN});function cN(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function uN(e,t){return typeof e=="function"?e(t):e}function gf(){function e(r,o,n,a){let i={[r]:o,theme:n},s=a[r];if(!s)return{[r]:o};let{cssProperty:l=r,themeKey:p,transform:c,style:u}=s;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};let d=go(n,p)||{};return u?u(i):ir(i,o,y=>{let h=kl(d,c,y);return y===h&&typeof y=="string"&&(h=kl(d,c,`${r}${y==="default"?"":j(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){var o;let{sx:n,theme:a={}}=r||{};if(!n)return null;let i=(o=a.unstable_sxConfig)!=null?o:bo;function s(l){let p=l;if(typeof l=="function")p=l(a);else if(typeof l!="object")return l;if(!p)return null;let c=xv(a.breakpoints),u=Object.keys(c),d=c;return Object.keys(p).forEach(f=>{let y=uN(p[f],a);if(y!=null)if(typeof y=="object")if(i[f])d=Wa(d,e(f,y,a,i));else{let h=ir({theme:a},y,v=>({[f]:v}));cN(h,y)?d[f]=t({sx:y,theme:a}):d=Wa(d,h)}else d=Wa(d,e(f,y,a,i))}),Tv(u,d)}return Array.isArray(n)?n.map(s):s(n)}return t}var nS,xo,vf=ze(()=>{Sl();ff();Ya();Ga();vc();nS=gf();nS.filterProps=["sx"];xo=nS});function ss(e,t){let r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}var _v=ze(()=>{});function fN(e={},...t){let{breakpoints:r={},palette:o={},spacing:n,shape:a={}}=e,i=H(e,dN),s=Ua(r),l=Rl(n),p=ct({breakpoints:s,direction:"ltr",components:{},palette:m({mode:"light"},o),spacing:l,shape:m({},JC,a)},i);return p.applyStyles=ss,p=t.reduce((c,u)=>ct(c,u),p),p.unstable_sxConfig=m({},bo,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(u){return xo({sx:u,theme:this})},p}var dN,zo,aS=ze(()=>{oe();xe();ro();df();qC();Rv();vf();vc();_v();dN=["breakpoints","palette","spacing","shape"];zo=fN});var iS={};_n(iS,{default:()=>zo,private_createBreakpoints:()=>Ua,unstable_applyStyles:()=>ss});var qa=ze(()=>{aS();df();_v()});function no(e){let{sx:t}=e,r=H(e,xN),{systemProps:o,otherProps:n}=TN(r),a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...i)=>{let s=t(...i);return pn(s)?m({},o,s):o}:a=m({},o,t),m({},n,{sx:a})}var xN,TN,lS=ze(()=>{oe();xe();ro();vc();xN=["sx"],TN=e=>{var t,r;let o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bo;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o}});var pS={};_n(pS,{default:()=>xo,extendSxProp:()=>no,unstable_createStyleFunctionSx:()=>gf,unstable_defaultSxConfig:()=>bo});var Ka=ze(()=>{vf();vf();lS();vc()});var mS=Kt(dt=>{"use strict";var Av=Symbol.for("react.element"),Bv=Symbol.for("react.portal"),Pf=Symbol.for("react.fragment"),Cf=Symbol.for("react.strict_mode"),Sf=Symbol.for("react.profiler"),kf=Symbol.for("react.provider"),Rf=Symbol.for("react.context"),EN=Symbol.for("react.server_context"),Ef=Symbol.for("react.forward_ref"),If=Symbol.for("react.suspense"),Of=Symbol.for("react.suspense_list"),Df=Symbol.for("react.memo"),_f=Symbol.for("react.lazy"),IN=Symbol.for("react.offscreen"),fS;fS=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Av:switch(e=e.type,e){case Pf:case Sf:case Cf:case If:case Of:return e;default:switch(e=e&&e.$$typeof,e){case EN:case Rf:case Ef:case _f:case Df:case kf:return e;default:return t}}case Bv:return t}}}dt.ContextConsumer=Rf;dt.ContextProvider=kf;dt.Element=Av;dt.ForwardRef=Ef;dt.Fragment=Pf;dt.Lazy=_f;dt.Memo=Df;dt.Portal=Bv;dt.Profiler=Sf;dt.StrictMode=Cf;dt.Suspense=If;dt.SuspenseList=Of;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return Fo(e)===Rf};dt.isContextProvider=function(e){return Fo(e)===kf};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Av};dt.isForwardRef=function(e){return Fo(e)===Ef};dt.isFragment=function(e){return Fo(e)===Pf};dt.isLazy=function(e){return Fo(e)===_f};dt.isMemo=function(e){return Fo(e)===Df};dt.isPortal=function(e){return Fo(e)===Bv};dt.isProfiler=function(e){return Fo(e)===Sf};dt.isStrictMode=function(e){return Fo(e)===Cf};dt.isSuspense=function(e){return Fo(e)===If};dt.isSuspenseList=function(e){return Fo(e)===Of};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pf||e===Sf||e===Cf||e===If||e===Of||e===IN||typeof e=="object"&&e!==null&&(e.$$typeof===_f||e.$$typeof===Df||e.$$typeof===kf||e.$$typeof===Rf||e.$$typeof===Ef||e.$$typeof===fS||e.getModuleId!==void 0)};dt.typeOf=Fo});var yS=Kt((Ore,hS)=>{"use strict";hS.exports=mS()});function vS(e){let t=`${e}`.match(ON);return t&&t[1]||""}function bS(e,t=""){return e.displayName||e.name||vS(e)||t}function gS(e,t,r){let o=bS(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function Mv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wf.ForwardRef:return gS(e,e.render,"ForwardRef");case wf.Memo:return gS(e,e.type,"memo");default:return}}}var wf,ON,Nv=ze(()=>{wf=wo(yS()),ON=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/});var xS={};_n(xS,{default:()=>Mv,getFunctionName:()=>vS});var TS=ze(()=>{Nv();Nv()});function VN(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ra,PS=ze(()=>{ra=VN});var CS={};_n(CS,{default:()=>ra});var zv=ze(()=>{PS()});var Ox=Kt((RWe,vu)=>{function VW(e){return e&&e.__esModule?e:{default:e}}vu.exports=VW,vu.exports.__esModule=!0,vu.exports.default=vu.exports});var xO=Kt(wt=>{"use strict";var mO=Ox();Object.defineProperty(wt,"__esModule",{value:!0});wt.alpha=vO;wt.blend=KW;wt.colorChannel=void 0;wt.darken=_x;wt.decomposeColor=Qo;wt.emphasize=qW;wt.getContrastRatio=WW;wt.getLuminance=Hh;wt.hexToRgb=hO;wt.hslToRgb=gO;wt.lighten=wx;wt.private_safeAlpha=GW;wt.private_safeColorChannel=void 0;wt.private_safeDarken=YW;wt.private_safeEmphasize=bO;wt.private_safeLighten=JW;wt.recomposeColor=bp;wt.rgbToHex=UW;var fO=mO(($a(),Va(_P))),$W=mO((zv(),Va(CS)));function Dx(e,t=0,r=1){return(0,$W.default)(e,t,r)}function hO(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function jW(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function Qo(e){if(e.type)return e;if(e.charAt(0)==="#")return Qo(hO(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,fO.default)(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error((0,fO.default)(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var yO=e=>{let t=Qo(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};wt.colorChannel=yO;var HW=(e,t)=>{try{return yO(e)}catch(r){return e}};wt.private_safeColorChannel=HW;function bp(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.indexOf("rgb")!==-1?o=o.map((n,a)=>a<3?parseInt(n,10):n):t.indexOf("hsl")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.indexOf("color")!==-1?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function UW(e){if(e.indexOf("#")===0)return e;let{values:t}=Qo(e);return`#${t.map((r,o)=>jW(o===3?Math.round(255*r):r)).join("")}`}function gO(e){e=Qo(e);let{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(p,c=(p+r/30)%12)=>n-a*Math.max(Math.min(c-3,9-c,1),-1),s="rgb",l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),bp({type:s,values:l})}function Hh(e){e=Qo(e);let t=e.type==="hsl"||e.type==="hsla"?Qo(gO(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function WW(e,t){let r=Hh(e),o=Hh(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function vO(e,t){return e=Qo(e),t=Dx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bp(e)}function GW(e,t,r){try{return vO(e,t)}catch(o){return e}}function _x(e,t){if(e=Qo(e),t=Dx(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return bp(e)}function YW(e,t,r){try{return _x(e,t)}catch(o){return e}}function wx(e,t){if(e=Qo(e),t=Dx(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return bp(e)}function JW(e,t,r){try{return wx(e,t)}catch(o){return e}}function qW(e,t=.15){return Hh(e)>.5?_x(e,t):wx(e,t)}function bO(e,t,r){try{return bO(e,t)}catch(o){return e}}function KW(e,t,r,o=1){let n=(l,p)=>Math.round((l**(1/o)*(1-r)+p**(1/o)*r)**o),a=Qo(e),i=Qo(t),s=[n(a.values[0],i.values[0]),n(a.values[1],i.values[1]),n(a.values[2],i.values[2])];return bp({type:"rgb",values:s})}});var DO=Kt((S9e,Sa)=>{function zx(){return Sa.exports=zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports,zx.apply(this,arguments)}Sa.exports=zx,Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports});var _O=Kt((k9e,bu)=>{function C9(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}bu.exports=C9,bu.exports.__esModule=!0,bu.exports.default=bu.exports});var BO=Kt(Sp=>{"use strict";var Cp=Ox();Object.defineProperty(Sp,"__esModule",{value:!0});Sp.default=N9;Sp.shouldForwardProp=Yh;Sp.systemDefaultTheme=void 0;var en=Cp(DO()),Fx=Cp(_O()),wO=D9((ta(),Va(WC))),S9=(ro(),Va(YC)),R9e=Cp((Sl(),Va(QC))),E9e=Cp((TS(),Va(xS))),k9=Cp((qa(),Va(iS))),R9=Cp((Ka(),Va(pS))),E9=["ownerState"],I9=["variants"],O9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AO(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(AO=function(o){return o?r:t})(e)}function D9(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=AO(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function _9(e){return Object.keys(e).length===0}function w9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var A9=Sp.systemDefaultTheme=(0,k9.default)(),B9=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gh({defaultTheme:e,theme:t,themeId:r}){return _9(t)?e:t[r]||t}function M9(e){return e?(t,r)=>r[e]:null}function Jh(e,t){let{ownerState:r}=t,o=(0,Fx.default)(t,E9),n=typeof e=="function"?e((0,en.default)({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Jh(a,(0,en.default)({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=(0,Fx.default)(n,I9);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props((0,en.default)({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,en.default)({ownerState:r},o,r)):l.style))}),s}return n}function N9(e={}){let{themeId:t,defaultTheme:r=A9,rootShouldForwardProp:o=Yh,slotShouldForwardProp:n=Yh}=e,a=i=>(0,R9.default)((0,en.default)({},i,{theme:Gh((0,en.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,wO.internal_processStyles)(i,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=M9(B9(p))}=s,f=(0,Fx.default)(s,O9),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Yh;p==="Root"||p==="root"?b=o:p?b=n:w9(i)&&(b=void 0);let x=(0,wO.default)(i,(0,en.default)({shouldForwardProp:b,label:v},f)),g=T=>typeof T=="function"&&T.__emotion_real!==T||(0,S9.isPlainObject)(T)?P=>Jh(T,(0,en.default)({},P,{theme:Gh({theme:P.theme,defaultTheme:r,themeId:t})})):T,C=(T,...P)=>{let S=g(T),k=P?P.map(g):[];l&&d&&k.push(B=>{let M=Gh((0,en.default)({},B,{defaultTheme:r,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;let O=M.components[l].styleOverrides,$={};return Object.entries(O).forEach(([N,_])=>{$[N]=Jh(_,(0,en.default)({},B,{theme:M}))}),d(B,$)}),l&&!y&&k.push(B=>{var M;let O=Gh((0,en.default)({},B,{defaultTheme:r,themeId:t})),$=O==null||(M=O.components)==null||(M=M[l])==null?void 0:M.variants;return Jh({variants:$},(0,en.default)({},B,{theme:O}))}),h||k.push(a);let I=k.length-P.length;if(Array.isArray(T)&&I>0){let B=new Array(I).fill("");S=[...T,...B],S.raw=[...T.raw,...B]}let w=x(S,...k);return i.muiName&&(w.muiName=i.muiName),w};return x.withConfig&&(C.withConfig=x.withConfig),C}}});var MT=Kt(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.bind=void 0;function z8(e,t){var r=t.type,o=t.listener,n=t.options;return e.addEventListener(r,o,n),function(){e.removeEventListener(r,o,n)}}Yy.bind=z8});var __=Kt(Lp=>{"use strict";var Np=Lp&&Lp.__assign||function(){return Np=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Np.apply(this,arguments)};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.bindAll=void 0;var F8=MT();function D_(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function V8(e,t){if(t==null)return e;var r=Np(Np({},e),{options:Np(Np({},D_(t)),D_(e.options))});return r}function $8(e,t,r){var o=t.map(function(n){var a=V8(n,r);return(0,F8.bind)(e,a)});return function(){o.forEach(function(a){return a()})}}Lp.bindAll=$8});var ld=Kt(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.bindAll=zp.bind=void 0;var j8=MT();Object.defineProperty(zp,"bind",{enumerable:!0,get:function(){return j8.bind}});var H8=__();Object.defineProperty(zp,"bindAll",{enumerable:!0,get:function(){return H8.bindAll}})});var bw=Kt((xat,vw)=>{var mw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EY=/\n/g,IY=/^\s*/,OY=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,DY=/^:\s*/,_Y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wY=/^[;\s]*/,AY=/^\s+|\s+$/g,BY=`
|
|
2
|
-
`,hw="/",yw="*",Ys="",MY="comment",NY="declaration";vw.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(h){var v=h.match(EY);v&&(r+=v.length);var b=h.lastIndexOf(BY);o=~b?h.length-b:o+h.length}function a(){var h={line:r,column:o};return function(v){return v.position=new i(h),c(),v}}function i(h){this.start=h,this.end={line:r,column:o},this.source=t.source}i.prototype.content=e;var s=[];function l(h){var v=new Error(t.source+":"+r+":"+o+": "+h);if(v.reason=h,v.filename=t.source,v.line=r,v.column=o,v.source=e,t.silent)s.push(v);else throw v}function p(h){var v=h.exec(e);if(v){var b=v[0];return n(b),e=e.slice(b.length),v}}function c(){p(IY)}function u(h){var v;for(h=h||[];v=d();)v!==!1&&h.push(v);return h}function d(){var h=a();if(!(hw!=e.charAt(0)||yw!=e.charAt(1))){for(var v=2;Ys!=e.charAt(v)&&(yw!=e.charAt(v)||hw!=e.charAt(v+1));)++v;if(v+=2,Ys===e.charAt(v-1))return l("End of comment missing");var b=e.slice(2,v-2);return o+=2,n(b),e=e.slice(v),o+=2,h({type:MY,comment:b})}}function f(){var h=a(),v=p(OY);if(v){if(d(),!p(DY))return l("property missing ':'");var b=p(_Y),x=h({type:NY,property:gw(v[0].replace(mw,Ys)),value:b?gw(b[0].replace(mw,Ys)):Ys});return p(wY),x}}function y(){var h=[];u(h);for(var v;v=f();)v!==!1&&(h.push(v),u(h));return h}return c(),y()};function gw(e){return e?e.replace(AY,Ys):Ys}});var xw=Kt(yd=>{"use strict";var LY=yd&&yd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yd,"__esModule",{value:!0});var zY=LY(bw());function FY(e,t){var r=null;if(!e||typeof e!="string")return r;var o=(0,zY.default)(e),n=typeof t=="function";return o.forEach(function(a){if(a.type==="declaration"){var i=a.property,s=a.value;n?t(i,s,a):s&&(r=r||{},r[i]=s)}}),r}yd.default=FY});var HA=Kt((nut,jA)=>{"use strict";var wg=Object.prototype.hasOwnProperty,$A=Object.prototype.toString,MA=Object.defineProperty,NA=Object.getOwnPropertyDescriptor,LA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):$A.call(t)==="[object Array]"},zA=function(t){if(!t||$A.call(t)!=="[object Object]")return!1;var r=wg.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&wg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;var n;for(n in t);return typeof n>"u"||wg.call(t,n)},FA=function(t,r){MA&&r.name==="__proto__"?MA(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},VA=function(t,r){if(r==="__proto__")if(wg.call(t,r)){if(NA)return NA(t,r).value}else return;return t[r]};jA.exports=function e(){var t,r,o,n,a,i,s=arguments[0],l=1,p=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)o=VA(s,r),n=VA(t,r),s!==n&&(c&&n&&(zA(n)||(a=LA(n)))?(a?(a=!1,i=o&&LA(o)?o:[]):i=o&&zA(o)?o:{},FA(s,{name:r,newValue:e(c,i,n)})):typeof n<"u"&&FA(s,{name:r,newValue:n}));return s}});import{ControlType as fo}from"framer";import tZ,{createElement as Wg,useEffect as TB,useState as PB,useMemo as rZ,useRef as oZ}from"react";var BB={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},Xi=BB;var Ao="$$joy";ta();import"react";ta();qa();ta();import*as sS from"react";function mN(e){return Object.keys(e).length===0}function hN(e=null){let t=sS.useContext(Mo);return!t||mN(t)?e:t}var bf=hN;var yN=zo();function gN(e=yN){return bf(e)}var cn=gN;import{jsx as vN}from"react/jsx-runtime";function bN({styles:e,themeId:t,defaultTheme:r={}}){let o=cn(r),n=typeof e=="function"?e(t&&o[t]||o):e;return vN(Bn,{styles:n})}var xf=bN;Ev();Iv();Ov();Dv();as();Ya();Ka();var cS=e=>e,PN=()=>{let e=cS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cS}}},CN=PN(),ls=CN;oe();xe();import*as dS from"react";function uS(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=uS(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function SN(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=uS(e))&&(o&&(o+=" "),o+=t);return o}var Se=SN;ta();Ka();import{jsx as RN}from"react/jsx-runtime";var kN=["className","component"];function Tf(e={}){let{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:n}=e,a=Cl("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(xo);return dS.forwardRef(function(l,p){let c=cn(r),u=no(l),{className:d,component:f="div"}=u,y=H(u,kN);return RN(a,m({as:f,ref:p,className:Se(d,n?n(o):o),theme:t&&c[t]||c},y))})}var wv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dr(e,t,r="Mui"){let o=wv[t];return o?`${r}-${o}`:`${ls.generate(e)}-${t}`}function To(e,t,r="Mui"){let o={};return t.forEach(n=>{o[n]=Dr(e,n,r)}),o}oe();xe();ta();ro();qa();Ka();var DN=["ownerState"],_N=["variants"],wN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AN(e){return Object.keys(e).length===0}function BN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var MN=zo(),NN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Af({defaultTheme:e,theme:t,themeId:r}){return AN(t)?e:t[r]||t}function LN(e){return e?(t,r)=>r[e]:null}function Bf(e,t){let{ownerState:r}=t,o=H(t,DN),n=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Bf(a,m({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=H(n,_N);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props(m({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(m({ownerState:r},o,r)):l.style))}),s}return n}function El(e={}){let{themeId:t,defaultTheme:r=MN,rootShouldForwardProp:o=Lv,slotShouldForwardProp:n=Lv}=e,a=i=>xo(m({},i,{theme:Af(m({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{vv(i,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=LN(NN(p))}=s,f=H(s,wN),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Lv;p==="Root"||p==="root"?b=o:p?b=n:BN(i)&&(b=void 0);let x=Cl(i,m({shouldForwardProp:b,label:v},f)),g=T=>typeof T=="function"&&T.__emotion_real!==T||pn(T)?P=>Bf(T,m({},P,{theme:Af({theme:P.theme,defaultTheme:r,themeId:t})})):T,C=(T,...P)=>{let S=g(T),k=P?P.map(g):[];l&&d&&k.push(B=>{let M=Af(m({},B,{defaultTheme:r,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;let O=M.components[l].styleOverrides,$={};return Object.entries(O).forEach(([N,_])=>{$[N]=Bf(_,m({},B,{theme:M}))}),d(B,$)}),l&&!y&&k.push(B=>{var M;let O=Af(m({},B,{defaultTheme:r,themeId:t})),$=O==null||(M=O.components)==null||(M=M[l])==null?void 0:M.variants;return Bf({variants:$},m({},B,{theme:O}))}),h||k.push(a);let I=k.length-P.length;if(Array.isArray(T)&&I>0){let B=new Array(I).fill("");S=[...T,...B],S.raw=[...T.raw,...B]}let w=x(S,...k);return i.muiName&&(w.muiName=i.muiName),w};return x.withConfig&&(C.withConfig=x.withConfig),C}}var zN=El(),Mf=zN;df();Rv();oe();function bc(e,t){let r=m({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=m({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let n=e[o]||{},a=t[o];r[o]={},!a||!Object.keys(a)?r[o]=n:!n||!Object.keys(n)?r[o]=a:(r[o]=m({},a),Object.keys(n).forEach(i=>{r[o][i]=bc(n[i],a[i])}))}else r[o]===void 0&&(r[o]=e[o])}),r}function Nf(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:bc(t.components[r].defaultProps,o)}function un({props:e,name:t,defaultTheme:r,themeId:o}){let n=cn(r);return o&&(n=n[o]||n),Nf({theme:n,name:t,props:e})}import*as Lf from"react";var FN=typeof window<"u"?Lf.useLayoutEffect:Lf.useEffect,Ot=FN;$a();function $N(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function SS(e){if(e.type)return e;if(e.charAt(0)==="#")return SS($N(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(mr(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(mr(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var Xa=e=>{let t=SS(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};oe();import*as zS from"react";oe();import*as BS from"react";ro();Sl();function Il(...e){return e.reduce((t,r)=>r==null?t:function(...n){t.apply(this,n),r.apply(this,n)},()=>{})}function xc(e,t=166){let r;function o(...n){let a=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(a,t)}return o.clear=()=>{clearTimeout(r)},o}import*as kS from"react";function Xt(e,t){var r,o;return kS.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function mt(e){return e&&e.ownerDocument||document}function Nn(e){return mt(e).defaultView||window}function Ln(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as Ol from"react";var RS=0;function jN(e){let[t,r]=Ol.useState(e),o=e||t;return Ol.useEffect(()=>{t==null&&(RS+=1,r(`mui-${RS}`))},[t]),o}var ES=Ol.useId;function Xe(e){if(ES!==void 0){let t=ES();return e!=null?e:t}return jN(e)}import*as ps from"react";function Zt({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=ps.useRef(e!==void 0),[a,i]=ps.useState(t),s=n?e:a,l=ps.useCallback(p=>{n||i(p)},[]);return[s,l]}import*as Fv from"react";function HN(e){let t=Fv.useRef(e);return Ot(()=>{t.current=e}),Fv.useRef((...r)=>(0,t.current)(...r)).current}var Qt=HN;import*as IS from"react";function we(...e){return IS.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ln(r,t)})},e)}import*as DS from"react";var OS={};function Vv(e,t){let r=DS.useRef(OS);return r.current===OS&&(r.current=e(t)),r}import*as _S from"react";var UN=[];function $v(e){_S.useEffect(e,UN)}var oa=class e{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function Za(){let e=Vv(oa.create).current;return $v(e.disposeEffect),e}import*as zf from"react";var Ff=!0,Hv=!1,WN=new oa,GN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function YN(e){let{type:t,tagName:r}=e;return!!(r==="INPUT"&&GN[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function JN(e){e.metaKey||e.altKey||e.ctrlKey||(Ff=!0)}function jv(){Ff=!1}function qN(){this.visibilityState==="hidden"&&Hv&&(Ff=!0)}function KN(e){e.addEventListener("keydown",JN,!0),e.addEventListener("mousedown",jv,!0),e.addEventListener("pointerdown",jv,!0),e.addEventListener("touchstart",jv,!0),e.addEventListener("visibilitychange",qN,!0)}function XN(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return Ff||YN(t)}function Po(){let e=zf.useCallback(n=>{n!=null&&KN(n.ownerDocument)},[]),t=zf.useRef(!1);function r(){return t.current?(Hv=!0,WN.start(100,()=>{Hv=!1}),t.current=!1,!0):!1}function o(n){return XN(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:r,ref:e}}function Tc(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}import*as Vf from"react";var ZN=e=>{let t=Vf.useRef({});return Vf.useEffect(()=>{t.current=e}),t.current},Dl=ZN;var QN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_l=QN;function X(e,t,r=void 0){let o={};return Object.keys(e).forEach(n=>{o[n]=e[n].reduce((a,i)=>{if(i){let s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),o}zv();import*as wS from"react";var eL=wS.createContext(null),$f=eL;import*as Uv from"react";function na(){return Uv.useContext($f)}var tL=typeof Symbol=="function"&&Symbol.for,AS=tL?Symbol.for("mui.nested"):"__THEME_NESTED__";import{jsx as rL}from"react/jsx-runtime";function oL(e,t){return typeof t=="function"?t(e):m({},e,t)}function nL(e){let{children:t,theme:r}=e,o=na(),n=BS.useMemo(()=>{let a=o===null?r:oL(o,r);return a!=null&&(a[AS]=o!==null),a},[r,o]);return rL($f.Provider,{value:n,children:t})}var jf=nL;ta();oe();xe();import*as Wv from"react";import{jsx as iL}from"react/jsx-runtime";var aL=["value"],sL=Wv.createContext();function lL(e){let{value:t}=e,r=H(e,aL);return iL(sL.Provider,m({value:t!=null?t:!0},r))}var MS=lL;import{jsx as Gv}from"react/jsx-runtime";var NS={};function LS(e,t,r,o=!1){return zS.useMemo(()=>{let n=e&&t[e]||t;if(typeof r=="function"){let a=r(n),i=e?m({},t,{[e]:a}):a;return o?()=>i:i}return e?m({},t,{[e]:r}):m({},t,r)},[e,t,r,o])}function pL(e){let{children:t,theme:r,themeId:o}=e,n=bf(NS),a=na()||NS,i=LS(o,n,r),s=LS(o,a,r,!0),l=i.direction==="rtl";return Gv(jf,{theme:s,children:Gv(Mo.Provider,{value:i,children:Gv(MS,{value:l,children:t})})})}var Hf=pL;oe();xe();$a();import*as _r from"react";ro();ta();import"react";import{jsx as cL}from"react/jsx-runtime";var Pc="mode",Cc="color-scheme",Yv="data-color-scheme";function Jv(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:n=Pc,colorSchemeStorageKey:a=Cc,attribute:i=Yv,colorSchemeNode:s="document.documentElement"}=e||{};return cL("script",{dangerouslySetInnerHTML:{__html:`(function() {
|
|
1
|
+
var IB=Object.create;var Xp=Object.defineProperty,OB=Object.defineProperties,DB=Object.getOwnPropertyDescriptor,_B=Object.getOwnPropertyDescriptors,wB=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,AB=Object.getPrototypeOf,ev=Object.prototype.hasOwnProperty,IP=Object.prototype.propertyIsEnumerable;var EP=(e,t,r)=>t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))ev.call(t,r)&&EP(e,r,t[r]);if($d)for(var r of $d(t))IP.call(t,r)&&EP(e,r,t[r]);return e},Z=(e,t)=>OB(e,_B(t));var he=(e,t)=>{var r={};for(var o in e)ev.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&$d)for(var o of $d(e))t.indexOf(o)<0&&IP.call(e,o)&&(r[o]=e[o]);return r};var ze=(e,t)=>()=>(e&&(t=e(e=0)),t);var Kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_n=(e,t)=>{for(var r in t)Xp(e,r,{get:t[r],enumerable:!0})},OP=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wB(t))!ev.call(e,n)&&n!==r&&Xp(e,n,{get:()=>t[n],enumerable:!(o=DB(t,n))||o.enumerable});return e};var wo=(e,t,r)=>(r=e!=null?IB(AB(e)):{},OP(t||!e||!e.__esModule?Xp(r,"default",{value:e,enumerable:!0}):r,e)),Va=e=>OP(Xp({},"__esModule",{value:!0}),e);function mr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var DP=ze(()=>{});var _P={};_n(_P,{default:()=>mr});var $a=ze(()=>{DP()});function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},m.apply(this,arguments)}var oe=ze(()=>{});function jd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Hd=ze(()=>{});var MB,wP,tv=ze(()=>{Hd();MB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wP=jd(function(e){return MB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});function NB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function LB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AP,BP=ze(()=>{AP=function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(LB(this));var n=this.tags[this.tags.length-1];if(0)var a;if(this.isSpeedy){var i=NB(n);try{i.insertRule(o,i.cssRules.length)}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0},e}()});var hr,Zp,pt,Ud,sl,ll,MP,Wd,NP,Gd=ze(()=>{hr="-ms-",Zp="-moz-",pt="-webkit-",Ud="comm",sl="rule",ll="decl",MP="@import",Wd="@keyframes",NP="@layer"});function FP(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function Yd(e){return e.trim()}function rv(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,r){return e.replace(t,r)}function Qp(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function ja(e,t,r){return e.slice(t,r)}function Ur(e){return e.length}function pl(e){return e.length}function cl(e,t){return t.push(e),e}function ov(e,t){return e.map(t).join("")}var LP,Zi,zP,ul=ze(()=>{LP=Math.abs,Zi=String.fromCharCode,zP=Object.assign});function ec(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:Jd,column:dl,length:i,return:""}}function hl(e,t){return zP(ec("",null,null,"",null,null,0),e,{length:-e.length},t)}function $P(){return Ut}function jP(){return Ut=Wr>0?Lt(ml,--Wr):0,dl--,Ut===10&&(dl=1,Jd--),Ut}function Gr(){return Ut=Wr<VP?Lt(ml,Wr++):0,dl++,Ut===10&&(dl=1,Jd++),Ut}function Bo(){return Lt(ml,Wr)}function tc(){return Wr}function yl(e,t){return ja(ml,e,t)}function fl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qd(e){return Jd=dl=1,VP=Ur(ml=e),Wr=0,[]}function Kd(e){return ml="",e}function gl(e){return Yd(yl(Wr-1,nv(e===91?e+2:e===40?e+1:e)))}function HP(e){for(;(Ut=Bo())&&Ut<33;)Gr();return fl(e)>2||fl(Ut)>3?"":" "}function UP(e,t){for(;--t&&Gr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return yl(e,tc()+(t<6&&Bo()==32&&Gr()==32))}function nv(e){for(;Gr();)switch(Ut){case e:return Wr;case 34:case 39:e!==34&&e!==39&&nv(Ut);break;case 40:e===41&&nv(e);break;case 92:Gr();break}return Wr}function WP(e,t){for(;Gr()&&e+Ut!==57;)if(e+Ut===84&&Bo()===47)break;return"/*"+yl(t,Wr-1)+"*"+Zi(e===47?e:Gr())}function GP(e){for(;!fl(Bo());)Gr();return yl(e,Wr)}var Jd,dl,VP,Wr,Ut,ml,av=ze(()=>{ul();Jd=1,dl=1,VP=0,Wr=0,Ut=0,ml=""});function qP(e){return Kd(Xd("",null,null,null,[""],e=qd(e),0,[0],e))}function Xd(e,t,r,o,n,a,i,s,l){for(var p=0,c=0,u=i,d=0,f=0,y=0,h=1,v=1,b=1,x=0,g="",C=n,T=a,P=o,S=g;v;)switch(y=x,x=Gr()){case 40:if(y!=108&&Lt(S,u-1)==58){Qp(S+=nt(gl(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=gl(x);break;case 9:case 10:case 13:case 32:S+=HP(y);break;case 92:S+=UP(tc()-1,7);continue;case 47:switch(Bo()){case 42:case 47:cl(zB(WP(Gr(),tc()),t,r),l);break;default:S+="/"}break;case 123*h:s[p++]=Ur(S)*b;case 125*h:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+c:b==-1&&(S=nt(S,/\f/g,"")),f>0&&Ur(S)-u&&cl(f>32?JP(S+";",o,r,u-1):JP(nt(S," ","")+";",o,r,u-2),l);break;case 59:S+=";";default:if(cl(P=YP(S,t,r,p,c,n,s,g,C=[],T=[],u),a),x===123)if(c===0)Xd(S,t,P,P,C,a,u,s,T);else switch(d===99&&Lt(S,3)===110?100:d){case 100:case 108:case 109:case 115:Xd(e,P,P,o&&cl(YP(e,P,P,0,0,n,s,g,n,C=[],u),T),n,T,u,s,o?C:T);break;default:Xd(S,P,P,P,[""],T,0,s,T)}}p=c=f=0,h=b=1,g=S="",u=i;break;case 58:u=1+Ur(S),f=y;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&jP()==125)continue}switch(S+=Zi(x),x*h){case 38:b=c>0?1:(S+="\f",-1);break;case 44:s[p++]=(Ur(S)-1)*b,b=1;break;case 64:Bo()===45&&(S+=gl(Gr())),d=Bo(),c=u=Ur(g=S+=GP(tc())),x++;break;case 45:y===45&&Ur(S)==2&&(h=0)}}return a}function YP(e,t,r,o,n,a,i,s,l,p,c){for(var u=n-1,d=n===0?a:[""],f=pl(d),y=0,h=0,v=0;y<o;++y)for(var b=0,x=ja(e,u+1,u=LP(h=i[y])),g=e;b<f;++b)(g=Yd(h>0?d[b]+" "+x:nt(x,/&\f/g,d[b])))&&(l[v++]=g);return ec(e,t,r,n===0?sl:s,l,p,c)}function zB(e,t,r){return ec(e,t,r,Ud,Zi($P()),ja(e,2,-2),0)}function JP(e,t,r,o){return ec(e,t,r,ll,ja(e,0,o),ja(e,o+1,-1),o)}var KP=ze(()=>{Gd();ul();av()});var XP=ze(()=>{});function Qi(e,t){for(var r="",o=pl(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function ZP(e,t,r,o){switch(e.type){case NP:if(e.children.length)break;case MP:case ll:return e.return=e.return||e.value;case Ud:return"";case Wd:return e.return=e.value+"{"+Qi(e.children,o)+"}";case sl:e.value=e.props.join(",")}return Ur(r=Qi(e.children,o))?e.return=e.value+"{"+r+"}":""}var QP=ze(()=>{Gd();ul()});function eC(e){var t=pl(e);return function(r,o,n,a){for(var i="",s=0;s<t;s++)i+=e[s](r,o,n,a)||"";return i}}function tC(e){return function(t){t.root||(t=t.return)&&e(t)}}var rC=ze(()=>{ul()});var oC=ze(()=>{Gd();ul();KP();XP();av();QP();rC()});var rc=ze(()=>{});function aC(e,t){switch(FP(e,t)){case 5103:return pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+Zp+e+hr+e+e;case 6828:case 4268:return pt+e+hr+e+e;case 6165:return pt+e+hr+"flex-"+e+e;case 5187:return pt+e+nt(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return pt+e+hr+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return pt+e+hr+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return pt+e+hr+nt(e,"shrink","negative")+e;case 5292:return pt+e+hr+nt(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+nt(e,"-grow","")+pt+e+hr+nt(e,"grow","positive")+e;case 4554:return pt+nt(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ur(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Zp+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qp(e,"stretch")?aC(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,Ur(e)-3-(~Qp(e,"!important")&&10))){case 107:return nt(e,":",":"+pt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(Lt(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+hr+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return pt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+hr+e+e}return e}var FB,VB,$B,nC,jB,HB,UB,WB,oc,nc=ze(()=>{BP();oC();rc();Hd();FB=function(t,r,o){for(var n=0,a=0;n=a,a=Bo(),n===38&&a===12&&(r[o]=1),!fl(a);)Gr();return yl(t,Wr)},VB=function(t,r){var o=-1,n=44;do switch(fl(n)){case 0:n===38&&Bo()===12&&(r[o]=1),t[o]+=FB(Wr-1,r,o);break;case 2:t[o]+=gl(n);break;case 4:if(n===44){t[++o]=Bo()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Zi(n)}while(n=Gr());return t},$B=function(t,r){return Kd(VB(qd(t),r))},nC=new WeakMap,jB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!nC.get(o))&&!n){nC.set(t,!0);for(var a=[],i=$B(r,a),s=o.props,l=0,p=0;l<i.length;l++)for(var c=0;c<s.length;c++,p++)t.props[p]=a[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},HB=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};UB=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case ll:t.return=aC(t.value,t.length);break;case Wd:return Qi([hl(t,{value:nt(t.value,"@","@"+pt)})],n);case sl:if(t.length)return ov(t.props,function(a){switch(rv(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qi([hl(t,{props:[nt(a,/:(read-\w+)/,":"+Zp+"$1")]})],n);case"::placeholder":return Qi([hl(t,{props:[nt(a,/:(plac\w+)/,":"+pt+"input-$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,":"+Zp+"$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,hr+"input-$1")]})],n)}return""})}},WB=[UB],oc=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||WB,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)a[v[b]]=!0;s.push(h)});var l,p=[jB,HB];{var c,u=[ZP,tC(function(h){c.insert(h)})],d=eC(p.concat(n,u)),f=function(v){return Qi(qP(v),d)};l=function(v,b,x,g){c=x,f(v?v+"{"+b.styles+"}":b.styles),g&&(y.inserted[b.name]=!0)}}var y={key:r,sheet:new AP({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return y.sheet.hydrate(s),y}});var sC=Kt(ut=>{"use strict";var ar=typeof Symbol=="function"&&Symbol.for,iv=ar?Symbol.for("react.element"):60103,sv=ar?Symbol.for("react.portal"):60106,Zd=ar?Symbol.for("react.fragment"):60107,Qd=ar?Symbol.for("react.strict_mode"):60108,ef=ar?Symbol.for("react.profiler"):60114,tf=ar?Symbol.for("react.provider"):60109,rf=ar?Symbol.for("react.context"):60110,lv=ar?Symbol.for("react.async_mode"):60111,of=ar?Symbol.for("react.concurrent_mode"):60111,nf=ar?Symbol.for("react.forward_ref"):60112,af=ar?Symbol.for("react.suspense"):60113,GB=ar?Symbol.for("react.suspense_list"):60120,sf=ar?Symbol.for("react.memo"):60115,lf=ar?Symbol.for("react.lazy"):60116,YB=ar?Symbol.for("react.block"):60121,JB=ar?Symbol.for("react.fundamental"):60117,qB=ar?Symbol.for("react.responder"):60118,KB=ar?Symbol.for("react.scope"):60119;function ho(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iv:switch(e=e.type,e){case lv:case of:case Zd:case ef:case Qd:case af:return e;default:switch(e=e&&e.$$typeof,e){case rf:case nf:case lf:case sf:case tf:return e;default:return t}}case sv:return t}}}function iC(e){return ho(e)===of}ut.AsyncMode=lv;ut.ConcurrentMode=of;ut.ContextConsumer=rf;ut.ContextProvider=tf;ut.Element=iv;ut.ForwardRef=nf;ut.Fragment=Zd;ut.Lazy=lf;ut.Memo=sf;ut.Portal=sv;ut.Profiler=ef;ut.StrictMode=Qd;ut.Suspense=af;ut.isAsyncMode=function(e){return iC(e)||ho(e)===lv};ut.isConcurrentMode=iC;ut.isContextConsumer=function(e){return ho(e)===rf};ut.isContextProvider=function(e){return ho(e)===tf};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iv};ut.isForwardRef=function(e){return ho(e)===nf};ut.isFragment=function(e){return ho(e)===Zd};ut.isLazy=function(e){return ho(e)===lf};ut.isMemo=function(e){return ho(e)===sf};ut.isPortal=function(e){return ho(e)===sv};ut.isProfiler=function(e){return ho(e)===ef};ut.isStrictMode=function(e){return ho(e)===Qd};ut.isSuspense=function(e){return ho(e)===af};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zd||e===of||e===ef||e===Qd||e===af||e===GB||typeof e=="object"&&e!==null&&(e.$$typeof===lf||e.$$typeof===sf||e.$$typeof===tf||e.$$typeof===rf||e.$$typeof===nf||e.$$typeof===JB||e.$$typeof===qB||e.$$typeof===KB||e.$$typeof===YB)};ut.typeOf=ho});var pC=Kt((ZZ,lC)=>{"use strict";lC.exports=sC()});var uv=Kt((QZ,hC)=>{"use strict";var pv=pC(),XB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},QB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv={};cv[pv.ForwardRef]=QB;cv[pv.Memo]=fC;function cC(e){return pv.isMemo(e)?fC:cv[e.$$typeof]||XB}var eM=Object.defineProperty,tM=Object.getOwnPropertyNames,uC=Object.getOwnPropertySymbols,rM=Object.getOwnPropertyDescriptor,oM=Object.getPrototypeOf,dC=Object.prototype;function mC(e,t,r){if(typeof t!="string"){if(dC){var o=oM(t);o&&o!==dC&&mC(e,o,r)}var n=tM(t);uC&&(n=n.concat(uC(t)));for(var a=cC(e),i=cC(t),s=0;s<n.length;++s){var l=n[s];if(!ZB[l]&&!(r&&r[l])&&!(i&&i[l])&&!(a&&a[l])){var p=rM(t,l);try{eM(e,l,p)}catch(c){}}}}return e}hC.exports=mC});function ac(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" "}),o}var nM,vl,bl,xl=ze(()=>{nM=!0;vl=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||nM===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},bl=function(t,r,o){vl(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+n:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}}});function yC(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gC=ze(()=>{});var vC,bC=ze(()=>{vC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}});function ic(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wn={name:r.name,styles:r.styles,next:wn},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)wn={name:o.name,styles:o.styles,next:wn},o=o.next;var n=r.styles+";";return n}return sM(e,t,r)}case"function":{if(e!==void 0){var a=wn,i=r(e);return wn=a,ic(e,t,i)}break}case"string":if(0)var s,l;break}if(t==null)return r;var p=t[r];return p!==void 0?p:r}function sM(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=ic(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object")t!=null&&t[i]!==void 0?o+=a+"{"+t[i]+"}":xC(i)&&(o+=dv(a)+":"+TC(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)xC(i[s])&&(o+=dv(a)+":"+TC(a,i[s])+";");else{var l=ic(e,t,i);switch(a){case"animation":case"animationName":{o+=dv(a)+":"+l+";";break}default:o+=a+"{"+l+"}"}}}return o}var aM,iM,CC,xC,dv,TC,PC,wn,es,Tl=ze(()=>{gC();bC();Hd();aM=/[A-Z]|^ms/g,iM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CC=function(t){return t.charCodeAt(1)===45},xC=function(t){return t!=null&&typeof t!="boolean"},dv=jd(function(e){return CC(e)?e:e.replace(aM,"-$&").toLowerCase()}),TC=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(iM,function(o,n,a){return wn={name:n,styles:a,next:wn},n})}return vC[t]!==1&&!CC(t)&&typeof r=="number"&&r!==0?r+"px":r};PC=/label:\s*([^\s;\n{]+)\s*(;|$)/g,es=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,a="";wn=void 0;var i=t[0];i==null||i.raw===void 0?(n=!1,a+=ic(o,r,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ic(o,r,t[s]),n&&(a+=i[s]);var l;PC.lastIndex=0;for(var p="",c;(c=PC.exec(a))!==null;)p+="-"+c[1];var u=yC(a)+p;return{name:u,styles:a,next:wn}}});import*as sc from"react";var lM,SC,lc,fv,Pl=ze(()=>{lM=function(t){return t()},SC=sc.useInsertionEffect?sc.useInsertionEffect:!1,lc=SC||lM,fv=SC||sc.useLayoutEffect});import*as yo from"react";import{useContext as kC,forwardRef as pM}from"react";var hv,ts,pf,yv,rs,Mo,mv,pc,cM,uM,cc,cf=ze(()=>{nc();oe();rc();xl();Tl();Pl();hv=!0,ts={}.hasOwnProperty,pf=yo.createContext(typeof HTMLElement<"u"?oc({key:"css"}):null),yv=pf.Provider,rs=function(t){return pM(function(r,o){var n=kC(pf);return t(r,n,o)})};hv||(rs=function(t){return function(r){var o=kC(pf);return o===null?(o=oc({key:"css"}),yo.createElement(pf.Provider,{value:o},t(r,o))):t(r,o)}});Mo=yo.createContext({}),mv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pc=function(t,r){var o={};for(var n in r)ts.call(r,n)&&(o[n]=r[n]);if(o[mv]=t,0)var a;return o},cM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),lc(function(){return bl(r,o,n)}),null},uM=rs(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[mv],a=[o],i="";typeof e.className=="string"?i=ac(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=es(a,void 0,yo.useContext(Mo));if(0)var l;i+=t.key+"-"+s.name;var p={};for(var c in e)ts.call(e,c)&&c!=="css"&&c!==mv&&(p[c]=e[c]);return p.ref=r,p.className=i,yo.createElement(yo.Fragment,null,yo.createElement(cM,{cache:t,serialized:s,isStringTag:typeof n=="string"}),yo.createElement(n,p))}),cc=uM});import*as ea from"react";function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es(t)}var IQ,RC,EC,An,os=ze(()=>{cf();cf();xl();Pl();Tl();nc();oe();rc();IQ=wo(uv()),RC=function(t,r){var o=arguments;if(r==null||!ts.call(r,"css"))return ea.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=cc,a[1]=pc(t,r);for(var i=2;i<n;i++)a[i]=o[i];return ea.createElement.apply(null,a)},EC=rs(function(e,t){var r=e.styles,o=es([r],void 0,ea.useContext(Mo));if(!hv){for(var n,a=o.name,i=o.styles,s=o.next;s!==void 0;)a+=" "+s.name,i+=s.styles,s=s.next;var l=t.compat===!0,p=t.insert("",{name:a,styles:i},t.sheet,l);return l?null:ea.createElement("style",(n={},n["data-emotion"]=t.key+"-global "+a,n.dangerouslySetInnerHTML={__html:p},n.nonce=t.sheet.nonce,n))}var c=ea.useRef();return fv(function(){var u=t.key+"-global",d=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,y=document.querySelector('style[data-emotion="'+u+" "+o.name+'"]');return t.sheet.tags.length&&(d.before=t.sheet.tags[0]),y!==null&&(f=!0,y.setAttribute("data-emotion",u),d.hydrate([y])),c.current=[d,f],function(){d.flush()}},[t]),fv(function(){var u=c.current,d=u[0],f=u[1];if(f){u[1]=!1;return}if(o.next!==void 0&&bl(t,o.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}t.insert("",o,d,!1)},[t,o.name]),null});An=function(){var t=No.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}});import*as Ha from"react";var dM,fM,IC,OC,mM,DC,_C=ze(()=>{oe();tv();os();xl();Tl();Pl();dM=wP,fM=function(t){return t!=="theme"},IC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?dM:fM},OC=function(t,r,o){var n;if(r){var a=r.shouldForwardProp;n=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n},mM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),lc(function(){return bl(r,o,n)}),null},DC=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=OC(t,r,o),l=s||IC(n),p=!l("as");return function(){var c=arguments,u=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)u.push.apply(u,c);else{u.push(c[0][0]);for(var d=c.length,f=1;f<d;f++)u.push(c[f],c[0][f])}var y=rs(function(h,v,b){var x=p&&h.as||n,g="",C=[],T=h;if(h.theme==null){T={};for(var P in h)T[P]=h[P];T.theme=Ha.useContext(Mo)}typeof h.className=="string"?g=ac(v.registered,C,h.className):h.className!=null&&(g=h.className+" ");var S=es(u.concat(C),v.registered,T);g+=v.key+"-"+S.name,i!==void 0&&(g+=" "+i);var k=p&&s===void 0?IC(x):l,I={};for(var w in h)p&&w==="as"||k(w)&&(I[w]=h[w]);return I.className=g,I.ref=b,Ha.createElement(Ha.Fragment,null,Ha.createElement(mM,{cache:v,serialized:S,isStringTag:typeof x=="string"}),Ha.createElement(x,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=u,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(h,v){return e(h,m({},r,v,{shouldForwardProp:OC(y,v,!0)})).apply(void 0,u)},y}}});import"react";var hM,uf,wC=ze(()=>{_C();oe();tv();xl();Tl();Pl();hM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],uf=DC.bind();hM.forEach(function(e){uf[e]=uf(e)})});var BC=Kt((GQ,AC)=>{"use strict";var yM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";AC.exports=yM});var zC=Kt((YQ,LC)=>{"use strict";var gM=BC();function MC(){}function NC(){}NC.resetWarningCache=MC;LC.exports=function(){function e(o,n,a,i,s,l){if(l!==gM){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:NC,resetWarningCache:MC};return r.PropTypes=r,r}});var VC=Kt((KQ,FC)=>{FC.exports=zC()();var JQ,qQ});import"react";import{jsx as vM}from"react/jsx-runtime";function uc(e){let{injectFirst:t,children:r}=e;return t&&gv?vM(yv,{value:gv,children:r}):r}var gv,$C=ze(()=>{"use client";os();nc();typeof document=="object"&&(gv=oc({key:"css",prepend:!0}))});var jC=ze(()=>{"use client";$C()});import"react";import{jsx as bM}from"react/jsx-runtime";function xM(e){return e==null||Object.keys(e).length===0}function Bn(e){let{styles:t,defaultTheme:r={}}=e;return bM(EC,{styles:typeof t=="function"?n=>t(xM(n)?r:n):t})}var HC=ze(()=>{"use client";os()});var UC=ze(()=>{"use client";HC()});var WC={};_n(WC,{GlobalStyles:()=>Bn,StyledEngineProvider:()=>uc,ThemeContext:()=>Mo,css:()=>No,default:()=>Cl,internal_processStyles:()=>vv,keyframes:()=>An});function Cl(e,t){return uf(e,t)}var vv,ta=ze(()=>{"use client";wC();os();jC();UC();vv=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}});function H(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var xe=ze(()=>{});function pn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function GC(e){if(!pn(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=GC(e[r])}),t}function ct(e,t,r={clone:!0}){let o=r.clone?m({},e):e;return pn(e)&&pn(t)&&Object.keys(t).forEach(n=>{n!=="__proto__"&&(pn(t[n])&&n in e&&pn(e[n])?o[n]=ct(e[n],t[n],r):r.clone?o[n]=pn(t[n])?GC(t[n]):t[n]:o[n]=t[n])}),o}var bv=ze(()=>{oe()});var YC={};_n(YC,{default:()=>ct,isPlainObject:()=>pn});var ro=ze(()=>{bv();bv()});function Ua(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,n=H(e,TM),a=PM(t),i=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-o/100}${r})`}function p(d,f){let y=i.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:f)-o/100}${r})`}function c(d){return i.indexOf(d)+1<i.length?p(d,i[i.indexOf(d)+1]):s(d)}function u(d){let f=i.indexOf(d);return f===0?s(i[1]):f===i.length-1?l(i[f]):p(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return m({keys:i,values:a,up:s,down:l,between:p,only:c,not:u,unit:r},n)}var TM,PM,df=ze(()=>{xe();oe();TM=["values","unit","step"],PM=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>m({},r,{[o.key]:o.val}),{})}});var CM,JC,qC=ze(()=>{CM={borderRadius:4},JC=CM});function SM(e,t){return t?ct(e,t,{clone:!1}):e}var Wa,ff=ze(()=>{ro();Wa=SM});function ir(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let a=o.breakpoints||KC;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){let a=o.breakpoints||KC;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||mf).indexOf(s)!==-1){let l=a.up(s);i[l]=r(t[s],s)}else{let l=s;i[l]=t[l]}return i},{})}return r(t)}function xv(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((o,n)=>{let a=e.up(n);return o[a]={},o},{}))||{}}function Tv(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function XC(e,...t){let r=xv(e),o=[r,...t].reduce((n,a)=>ct(n,a),{});return Tv(Object.keys(r),o)}function kM(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,a)=>{a<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function hf({values:e,breakpoints:t,base:r}){let o=r||kM(e,t),n=Object.keys(o);if(n.length===0)return e;let a;return n.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}var mf,KC,Ga=ze(()=>{oe();ro();mf={xs:0,sm:600,md:900,lg:1200,xl:1536},KC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mf[e]}px)`}});function j(e){if(typeof e!="string")throw new Error(mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=ze(()=>{$a()});var QC={};_n(QC,{default:()=>j});var Sl=ze(()=>{ZC()});function go(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function kl(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=go(e,r)||o,t&&(n=t(n,o,e)),n}function RM(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,a=i=>{if(i[t]==null)return null;let s=i[t],l=i.theme,p=go(l,o)||{};return ir(i,s,u=>{let d=kl(p,n,u);return u===d&&typeof u=="string"&&(d=kl(p,n,`${t}${u==="default"?"":j(u)}`,u)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}var gt,Ya=ze(()=>{Sl();Ga();gt=RM});function Pv(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var eS=ze(()=>{});function ns(e,t,r,o){var n;let a=(n=go(e,t,!1))!=null?n:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function dc(e){return ns(e,"spacing",8,"spacing")}function Mn(e,t){if(typeof t=="string"||t==null)return t;let r=Math.abs(t),o=e(r);return t>=0?o:typeof o=="number"?-o:`-${o}`}function DM(e,t){return r=>e.reduce((o,n)=>(o[n]=Mn(t,r),o),{})}function _M(e,t,r,o){if(t.indexOf(r)===-1)return null;let n=OM(r),a=DM(n,o),i=e[r];return ir(e,i,a)}function kv(e,t){let r=dc(e.theme);return Object.keys(e).map(o=>_M(e,t,o,r)).reduce(Wa,{})}function Rt(e){return kv(e,Cv)}function Et(e){return kv(e,Sv)}function oS(e){return kv(e,rS)}var EM,IM,tS,OM,Cv,Sv,rS,as=ze(()=>{Ga();Ya();ff();eS();EM={m:"margin",p:"padding"},IM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OM=Pv(e=>{if(e.length>2)if(tS[e])e=tS[e];else return[e];let[t,r]=e.split(""),o=EM[t],n=IM[r]||"";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),Cv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rS=[...Cv,...Sv];Rt.propTypes={};Rt.filterProps=Cv;Et.propTypes={};Et.filterProps=Sv;oS.propTypes={};oS.filterProps=rS});function Rl(e=8){if(e.mui)return e;let t=dc({spacing:e}),r=(...o)=>(o.length===0?[1]:o).map(a=>{let i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}var Rv=ze(()=>{as()});function wM(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),r=o=>Object.keys(o).reduce((n,a)=>t[a]?Wa(n,t[a](o)):n,{});return r.propTypes={},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ja,fc=ze(()=>{ff();Ja=wM});function vo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return gt({prop:e,themeKey:"borders",transform:t})}var AM,BM,MM,NM,LM,zM,FM,VM,$M,jM,HM,UM,mc,Jee,Ev=ze(()=>{Ya();fc();as();Ga();AM=Lo("border",vo),BM=Lo("borderTop",vo),MM=Lo("borderRight",vo),NM=Lo("borderBottom",vo),LM=Lo("borderLeft",vo),zM=Lo("borderColor"),FM=Lo("borderTopColor"),VM=Lo("borderRightColor"),$M=Lo("borderBottomColor"),jM=Lo("borderLeftColor"),HM=Lo("outline",vo),UM=Lo("outlineColor"),mc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ns(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Mn(t,o)});return ir(e,e.borderRadius,r)}return null};mc.propTypes={};mc.filterProps=["borderRadius"];Jee=Ja(AM,BM,MM,NM,LM,zM,FM,VM,$M,jM,mc,HM,UM)});var hc,yc,gc,WM,GM,YM,JM,qM,KM,XM,ZM,QM,ete,Iv=ze(()=>{Ya();fc();as();Ga();hc=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ns(e.theme,"spacing",8,"gap"),r=o=>({gap:Mn(t,o)});return ir(e,e.gap,r)}return null};hc.propTypes={};hc.filterProps=["gap"];yc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ns(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Mn(t,o)});return ir(e,e.columnGap,r)}return null};yc.propTypes={};yc.filterProps=["columnGap"];gc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ns(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Mn(t,o)});return ir(e,e.rowGap,r)}return null};gc.propTypes={};gc.filterProps=["rowGap"];WM=gt({prop:"gridColumn"}),GM=gt({prop:"gridRow"}),YM=gt({prop:"gridAutoFlow"}),JM=gt({prop:"gridAutoColumns"}),qM=gt({prop:"gridAutoRows"}),KM=gt({prop:"gridTemplateColumns"}),XM=gt({prop:"gridTemplateRows"}),ZM=gt({prop:"gridTemplateAreas"}),QM=gt({prop:"gridArea"}),ete=Ja(hc,yc,gc,WM,GM,YM,JM,qM,KM,XM,ZM,QM)});function is(e,t){return t==="grey"?t:e}var eN,tN,rN,nte,Ov=ze(()=>{Ya();fc();eN=gt({prop:"color",themeKey:"palette",transform:is}),tN=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:is}),rN=gt({prop:"backgroundColor",themeKey:"palette",transform:is}),nte=Ja(eN,tN,rN)});function oo(e){return e<=1&&e!==0?`${e*100}%`:e}var oN,yf,nN,aN,iN,sN,pte,cte,lN,ute,Dv=ze(()=>{Ya();fc();Ga();oN=gt({prop:"width",transform:oo}),yf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var o,n;let a=((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[r])||mf[r];return a?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:oo(r)}};return ir(e,e.maxWidth,t)}return null};yf.filterProps=["maxWidth"];nN=gt({prop:"minWidth",transform:oo}),aN=gt({prop:"height",transform:oo}),iN=gt({prop:"maxHeight",transform:oo}),sN=gt({prop:"minHeight",transform:oo}),pte=gt({prop:"size",cssProperty:"width",transform:oo}),cte=gt({prop:"size",cssProperty:"height",transform:oo}),lN=gt({prop:"boxSizing"}),ute=Ja(oN,yf,nN,aN,iN,sN,lN)});var pN,bo,vc=ze(()=>{as();Ev();Iv();Ov();Dv();pN={border:{themeKey:"borders",transform:vo},borderTop:{themeKey:"borders",transform:vo},borderRight:{themeKey:"borders",transform:vo},borderBottom:{themeKey:"borders",transform:vo},borderLeft:{themeKey:"borders",transform:vo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mc},color:{themeKey:"palette",transform:is},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:is},backgroundColor:{themeKey:"palette",transform:is},p:{style:Et},pt:{style:Et},pr:{style:Et},pb:{style:Et},pl:{style:Et},px:{style:Et},py:{style:Et},padding:{style:Et},paddingTop:{style:Et},paddingRight:{style:Et},paddingBottom:{style:Et},paddingLeft:{style:Et},paddingX:{style:Et},paddingY:{style:Et},paddingInline:{style:Et},paddingInlineStart:{style:Et},paddingInlineEnd:{style:Et},paddingBlock:{style:Et},paddingBlockStart:{style:Et},paddingBlockEnd:{style:Et},m:{style:Rt},mt:{style:Rt},mr:{style:Rt},mb:{style:Rt},ml:{style:Rt},mx:{style:Rt},my:{style:Rt},margin:{style:Rt},marginTop:{style:Rt},marginRight:{style:Rt},marginBottom:{style:Rt},marginLeft:{style:Rt},marginX:{style:Rt},marginY:{style:Rt},marginInline:{style:Rt},marginInlineStart:{style:Rt},marginInlineEnd:{style:Rt},marginBlock:{style:Rt},marginBlockStart:{style:Rt},marginBlockEnd:{style:Rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hc},rowGap:{style:gc},columnGap:{style:yc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oo},maxWidth:{style:yf},minWidth:{transform:oo},height:{transform:oo},maxHeight:{transform:oo},minHeight:{transform:oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},bo=pN});function cN(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function uN(e,t){return typeof e=="function"?e(t):e}function gf(){function e(r,o,n,a){let i={[r]:o,theme:n},s=a[r];if(!s)return{[r]:o};let{cssProperty:l=r,themeKey:p,transform:c,style:u}=s;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};let d=go(n,p)||{};return u?u(i):ir(i,o,y=>{let h=kl(d,c,y);return y===h&&typeof y=="string"&&(h=kl(d,c,`${r}${y==="default"?"":j(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){var o;let{sx:n,theme:a={}}=r||{};if(!n)return null;let i=(o=a.unstable_sxConfig)!=null?o:bo;function s(l){let p=l;if(typeof l=="function")p=l(a);else if(typeof l!="object")return l;if(!p)return null;let c=xv(a.breakpoints),u=Object.keys(c),d=c;return Object.keys(p).forEach(f=>{let y=uN(p[f],a);if(y!=null)if(typeof y=="object")if(i[f])d=Wa(d,e(f,y,a,i));else{let h=ir({theme:a},y,v=>({[f]:v}));cN(h,y)?d[f]=t({sx:y,theme:a}):d=Wa(d,h)}else d=Wa(d,e(f,y,a,i))}),Tv(u,d)}return Array.isArray(n)?n.map(s):s(n)}return t}var nS,xo,vf=ze(()=>{Sl();ff();Ya();Ga();vc();nS=gf();nS.filterProps=["sx"];xo=nS});function ss(e,t){let r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}var _v=ze(()=>{});function fN(e={},...t){let{breakpoints:r={},palette:o={},spacing:n,shape:a={}}=e,i=H(e,dN),s=Ua(r),l=Rl(n),p=ct({breakpoints:s,direction:"ltr",components:{},palette:m({mode:"light"},o),spacing:l,shape:m({},JC,a)},i);return p.applyStyles=ss,p=t.reduce((c,u)=>ct(c,u),p),p.unstable_sxConfig=m({},bo,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(u){return xo({sx:u,theme:this})},p}var dN,zo,aS=ze(()=>{oe();xe();ro();df();qC();Rv();vf();vc();_v();dN=["breakpoints","palette","spacing","shape"];zo=fN});var iS={};_n(iS,{default:()=>zo,private_createBreakpoints:()=>Ua,unstable_applyStyles:()=>ss});var qa=ze(()=>{aS();df();_v()});function no(e){let{sx:t}=e,r=H(e,xN),{systemProps:o,otherProps:n}=TN(r),a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...i)=>{let s=t(...i);return pn(s)?m({},o,s):o}:a=m({},o,t),m({},n,{sx:a})}var xN,TN,lS=ze(()=>{oe();xe();ro();vc();xN=["sx"],TN=e=>{var t,r;let o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bo;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o}});var pS={};_n(pS,{default:()=>xo,extendSxProp:()=>no,unstable_createStyleFunctionSx:()=>gf,unstable_defaultSxConfig:()=>bo});var Ka=ze(()=>{vf();vf();lS();vc()});var mS=Kt(dt=>{"use strict";var Av=Symbol.for("react.element"),Bv=Symbol.for("react.portal"),Pf=Symbol.for("react.fragment"),Cf=Symbol.for("react.strict_mode"),Sf=Symbol.for("react.profiler"),kf=Symbol.for("react.provider"),Rf=Symbol.for("react.context"),EN=Symbol.for("react.server_context"),Ef=Symbol.for("react.forward_ref"),If=Symbol.for("react.suspense"),Of=Symbol.for("react.suspense_list"),Df=Symbol.for("react.memo"),_f=Symbol.for("react.lazy"),IN=Symbol.for("react.offscreen"),fS;fS=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Av:switch(e=e.type,e){case Pf:case Sf:case Cf:case If:case Of:return e;default:switch(e=e&&e.$$typeof,e){case EN:case Rf:case Ef:case _f:case Df:case kf:return e;default:return t}}case Bv:return t}}}dt.ContextConsumer=Rf;dt.ContextProvider=kf;dt.Element=Av;dt.ForwardRef=Ef;dt.Fragment=Pf;dt.Lazy=_f;dt.Memo=Df;dt.Portal=Bv;dt.Profiler=Sf;dt.StrictMode=Cf;dt.Suspense=If;dt.SuspenseList=Of;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return Fo(e)===Rf};dt.isContextProvider=function(e){return Fo(e)===kf};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Av};dt.isForwardRef=function(e){return Fo(e)===Ef};dt.isFragment=function(e){return Fo(e)===Pf};dt.isLazy=function(e){return Fo(e)===_f};dt.isMemo=function(e){return Fo(e)===Df};dt.isPortal=function(e){return Fo(e)===Bv};dt.isProfiler=function(e){return Fo(e)===Sf};dt.isStrictMode=function(e){return Fo(e)===Cf};dt.isSuspense=function(e){return Fo(e)===If};dt.isSuspenseList=function(e){return Fo(e)===Of};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pf||e===Sf||e===Cf||e===If||e===Of||e===IN||typeof e=="object"&&e!==null&&(e.$$typeof===_f||e.$$typeof===Df||e.$$typeof===kf||e.$$typeof===Rf||e.$$typeof===Ef||e.$$typeof===fS||e.getModuleId!==void 0)};dt.typeOf=Fo});var yS=Kt((Ore,hS)=>{"use strict";hS.exports=mS()});function vS(e){let t=`${e}`.match(ON);return t&&t[1]||""}function bS(e,t=""){return e.displayName||e.name||vS(e)||t}function gS(e,t,r){let o=bS(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function Mv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wf.ForwardRef:return gS(e,e.render,"ForwardRef");case wf.Memo:return gS(e,e.type,"memo");default:return}}}var wf,ON,Nv=ze(()=>{wf=wo(yS()),ON=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/});var xS={};_n(xS,{default:()=>Mv,getFunctionName:()=>vS});var TS=ze(()=>{Nv();Nv()});function VN(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ra,PS=ze(()=>{ra=VN});var CS={};_n(CS,{default:()=>ra});var zv=ze(()=>{PS()});var Ox=Kt((RWe,vu)=>{function VW(e){return e&&e.__esModule?e:{default:e}}vu.exports=VW,vu.exports.__esModule=!0,vu.exports.default=vu.exports});var xO=Kt(wt=>{"use strict";var mO=Ox();Object.defineProperty(wt,"__esModule",{value:!0});wt.alpha=vO;wt.blend=KW;wt.colorChannel=void 0;wt.darken=_x;wt.decomposeColor=Qo;wt.emphasize=qW;wt.getContrastRatio=WW;wt.getLuminance=Hh;wt.hexToRgb=hO;wt.hslToRgb=gO;wt.lighten=wx;wt.private_safeAlpha=GW;wt.private_safeColorChannel=void 0;wt.private_safeDarken=YW;wt.private_safeEmphasize=bO;wt.private_safeLighten=JW;wt.recomposeColor=bp;wt.rgbToHex=UW;var fO=mO(($a(),Va(_P))),$W=mO((zv(),Va(CS)));function Dx(e,t=0,r=1){return(0,$W.default)(e,t,r)}function hO(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function jW(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function Qo(e){if(e.type)return e;if(e.charAt(0)==="#")return Qo(hO(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,fO.default)(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error((0,fO.default)(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var yO=e=>{let t=Qo(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};wt.colorChannel=yO;var HW=(e,t)=>{try{return yO(e)}catch(r){return e}};wt.private_safeColorChannel=HW;function bp(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.indexOf("rgb")!==-1?o=o.map((n,a)=>a<3?parseInt(n,10):n):t.indexOf("hsl")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.indexOf("color")!==-1?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function UW(e){if(e.indexOf("#")===0)return e;let{values:t}=Qo(e);return`#${t.map((r,o)=>jW(o===3?Math.round(255*r):r)).join("")}`}function gO(e){e=Qo(e);let{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(p,c=(p+r/30)%12)=>n-a*Math.max(Math.min(c-3,9-c,1),-1),s="rgb",l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),bp({type:s,values:l})}function Hh(e){e=Qo(e);let t=e.type==="hsl"||e.type==="hsla"?Qo(gO(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function WW(e,t){let r=Hh(e),o=Hh(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function vO(e,t){return e=Qo(e),t=Dx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bp(e)}function GW(e,t,r){try{return vO(e,t)}catch(o){return e}}function _x(e,t){if(e=Qo(e),t=Dx(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return bp(e)}function YW(e,t,r){try{return _x(e,t)}catch(o){return e}}function wx(e,t){if(e=Qo(e),t=Dx(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return bp(e)}function JW(e,t,r){try{return wx(e,t)}catch(o){return e}}function qW(e,t=.15){return Hh(e)>.5?_x(e,t):wx(e,t)}function bO(e,t,r){try{return bO(e,t)}catch(o){return e}}function KW(e,t,r,o=1){let n=(l,p)=>Math.round((l**(1/o)*(1-r)+p**(1/o)*r)**o),a=Qo(e),i=Qo(t),s=[n(a.values[0],i.values[0]),n(a.values[1],i.values[1]),n(a.values[2],i.values[2])];return bp({type:"rgb",values:s})}});var DO=Kt((S9e,Sa)=>{function zx(){return Sa.exports=zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports,zx.apply(this,arguments)}Sa.exports=zx,Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports});var _O=Kt((k9e,bu)=>{function C9(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}bu.exports=C9,bu.exports.__esModule=!0,bu.exports.default=bu.exports});var BO=Kt(Sp=>{"use strict";var Cp=Ox();Object.defineProperty(Sp,"__esModule",{value:!0});Sp.default=N9;Sp.shouldForwardProp=Yh;Sp.systemDefaultTheme=void 0;var en=Cp(DO()),Fx=Cp(_O()),wO=D9((ta(),Va(WC))),S9=(ro(),Va(YC)),R9e=Cp((Sl(),Va(QC))),E9e=Cp((TS(),Va(xS))),k9=Cp((qa(),Va(iS))),R9=Cp((Ka(),Va(pS))),E9=["ownerState"],I9=["variants"],O9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AO(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(AO=function(o){return o?r:t})(e)}function D9(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=AO(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function _9(e){return Object.keys(e).length===0}function w9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var A9=Sp.systemDefaultTheme=(0,k9.default)(),B9=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gh({defaultTheme:e,theme:t,themeId:r}){return _9(t)?e:t[r]||t}function M9(e){return e?(t,r)=>r[e]:null}function Jh(e,t){let{ownerState:r}=t,o=(0,Fx.default)(t,E9),n=typeof e=="function"?e((0,en.default)({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Jh(a,(0,en.default)({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=(0,Fx.default)(n,I9);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props((0,en.default)({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,en.default)({ownerState:r},o,r)):l.style))}),s}return n}function N9(e={}){let{themeId:t,defaultTheme:r=A9,rootShouldForwardProp:o=Yh,slotShouldForwardProp:n=Yh}=e,a=i=>(0,R9.default)((0,en.default)({},i,{theme:Gh((0,en.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,wO.internal_processStyles)(i,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=M9(B9(p))}=s,f=(0,Fx.default)(s,O9),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Yh;p==="Root"||p==="root"?b=o:p?b=n:w9(i)&&(b=void 0);let x=(0,wO.default)(i,(0,en.default)({shouldForwardProp:b,label:v},f)),g=T=>typeof T=="function"&&T.__emotion_real!==T||(0,S9.isPlainObject)(T)?P=>Jh(T,(0,en.default)({},P,{theme:Gh({theme:P.theme,defaultTheme:r,themeId:t})})):T,C=(T,...P)=>{let S=g(T),k=P?P.map(g):[];l&&d&&k.push(B=>{let M=Gh((0,en.default)({},B,{defaultTheme:r,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;let O=M.components[l].styleOverrides,$={};return Object.entries(O).forEach(([N,_])=>{$[N]=Jh(_,(0,en.default)({},B,{theme:M}))}),d(B,$)}),l&&!y&&k.push(B=>{var M;let O=Gh((0,en.default)({},B,{defaultTheme:r,themeId:t})),$=O==null||(M=O.components)==null||(M=M[l])==null?void 0:M.variants;return Jh({variants:$},(0,en.default)({},B,{theme:O}))}),h||k.push(a);let I=k.length-P.length;if(Array.isArray(T)&&I>0){let B=new Array(I).fill("");S=[...T,...B],S.raw=[...T.raw,...B]}let w=x(S,...k);return i.muiName&&(w.muiName=i.muiName),w};return x.withConfig&&(C.withConfig=x.withConfig),C}}});var MT=Kt(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.bind=void 0;function z8(e,t){var r=t.type,o=t.listener,n=t.options;return e.addEventListener(r,o,n),function(){e.removeEventListener(r,o,n)}}Yy.bind=z8});var __=Kt(Lp=>{"use strict";var Np=Lp&&Lp.__assign||function(){return Np=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Np.apply(this,arguments)};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.bindAll=void 0;var F8=MT();function D_(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function V8(e,t){if(t==null)return e;var r=Np(Np({},e),{options:Np(Np({},D_(t)),D_(e.options))});return r}function $8(e,t,r){var o=t.map(function(n){var a=V8(n,r);return(0,F8.bind)(e,a)});return function(){o.forEach(function(a){return a()})}}Lp.bindAll=$8});var ld=Kt(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.bindAll=zp.bind=void 0;var j8=MT();Object.defineProperty(zp,"bind",{enumerable:!0,get:function(){return j8.bind}});var H8=__();Object.defineProperty(zp,"bindAll",{enumerable:!0,get:function(){return H8.bindAll}})});var bw=Kt((Tat,vw)=>{var mw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EY=/\n/g,IY=/^\s*/,OY=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,DY=/^:\s*/,_Y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wY=/^[;\s]*/,AY=/^\s+|\s+$/g,BY=`
|
|
2
|
+
`,hw="/",yw="*",Ys="",MY="comment",NY="declaration";vw.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(h){var v=h.match(EY);v&&(r+=v.length);var b=h.lastIndexOf(BY);o=~b?h.length-b:o+h.length}function a(){var h={line:r,column:o};return function(v){return v.position=new i(h),c(),v}}function i(h){this.start=h,this.end={line:r,column:o},this.source=t.source}i.prototype.content=e;var s=[];function l(h){var v=new Error(t.source+":"+r+":"+o+": "+h);if(v.reason=h,v.filename=t.source,v.line=r,v.column=o,v.source=e,t.silent)s.push(v);else throw v}function p(h){var v=h.exec(e);if(v){var b=v[0];return n(b),e=e.slice(b.length),v}}function c(){p(IY)}function u(h){var v;for(h=h||[];v=d();)v!==!1&&h.push(v);return h}function d(){var h=a();if(!(hw!=e.charAt(0)||yw!=e.charAt(1))){for(var v=2;Ys!=e.charAt(v)&&(yw!=e.charAt(v)||hw!=e.charAt(v+1));)++v;if(v+=2,Ys===e.charAt(v-1))return l("End of comment missing");var b=e.slice(2,v-2);return o+=2,n(b),e=e.slice(v),o+=2,h({type:MY,comment:b})}}function f(){var h=a(),v=p(OY);if(v){if(d(),!p(DY))return l("property missing ':'");var b=p(_Y),x=h({type:NY,property:gw(v[0].replace(mw,Ys)),value:b?gw(b[0].replace(mw,Ys)):Ys});return p(wY),x}}function y(){var h=[];u(h);for(var v;v=f();)v!==!1&&(h.push(v),u(h));return h}return c(),y()};function gw(e){return e?e.replace(AY,Ys):Ys}});var xw=Kt(yd=>{"use strict";var LY=yd&&yd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yd,"__esModule",{value:!0});var zY=LY(bw());function FY(e,t){var r=null;if(!e||typeof e!="string")return r;var o=(0,zY.default)(e),n=typeof t=="function";return o.forEach(function(a){if(a.type==="declaration"){var i=a.property,s=a.value;n?t(i,s,a):s&&(r=r||{},r[i]=s)}}),r}yd.default=FY});var HA=Kt((aut,jA)=>{"use strict";var wg=Object.prototype.hasOwnProperty,$A=Object.prototype.toString,MA=Object.defineProperty,NA=Object.getOwnPropertyDescriptor,LA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):$A.call(t)==="[object Array]"},zA=function(t){if(!t||$A.call(t)!=="[object Object]")return!1;var r=wg.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&wg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;var n;for(n in t);return typeof n>"u"||wg.call(t,n)},FA=function(t,r){MA&&r.name==="__proto__"?MA(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},VA=function(t,r){if(r==="__proto__")if(wg.call(t,r)){if(NA)return NA(t,r).value}else return;return t[r]};jA.exports=function e(){var t,r,o,n,a,i,s=arguments[0],l=1,p=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)o=VA(s,r),n=VA(t,r),s!==n&&(c&&n&&(zA(n)||(a=LA(n)))?(a?(a=!1,i=o&&LA(o)?o:[]):i=o&&zA(o)?o:{},FA(s,{name:r,newValue:e(c,i,n)})):typeof n<"u"&&FA(s,{name:r,newValue:n}));return s}});import{ControlType as fo}from"framer";import tZ,{createElement as Wg,useEffect as TB,useState as PB,useMemo as rZ,useRef as oZ}from"react";var BB={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},Xi=BB;var Ao="$$joy";ta();import"react";ta();qa();ta();import*as sS from"react";function mN(e){return Object.keys(e).length===0}function hN(e=null){let t=sS.useContext(Mo);return!t||mN(t)?e:t}var bf=hN;var yN=zo();function gN(e=yN){return bf(e)}var cn=gN;import{jsx as vN}from"react/jsx-runtime";function bN({styles:e,themeId:t,defaultTheme:r={}}){let o=cn(r),n=typeof e=="function"?e(t&&o[t]||o):e;return vN(Bn,{styles:n})}var xf=bN;Ev();Iv();Ov();Dv();as();Ya();Ka();var cS=e=>e,PN=()=>{let e=cS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cS}}},CN=PN(),ls=CN;oe();xe();import*as dS from"react";function uS(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=uS(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function SN(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=uS(e))&&(o&&(o+=" "),o+=t);return o}var Se=SN;ta();Ka();import{jsx as RN}from"react/jsx-runtime";var kN=["className","component"];function Tf(e={}){let{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:n}=e,a=Cl("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(xo);return dS.forwardRef(function(l,p){let c=cn(r),u=no(l),{className:d,component:f="div"}=u,y=H(u,kN);return RN(a,m({as:f,ref:p,className:Se(d,n?n(o):o),theme:t&&c[t]||c},y))})}var wv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dr(e,t,r="Mui"){let o=wv[t];return o?`${r}-${o}`:`${ls.generate(e)}-${t}`}function To(e,t,r="Mui"){let o={};return t.forEach(n=>{o[n]=Dr(e,n,r)}),o}oe();xe();ta();ro();qa();Ka();var DN=["ownerState"],_N=["variants"],wN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AN(e){return Object.keys(e).length===0}function BN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var MN=zo(),NN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Af({defaultTheme:e,theme:t,themeId:r}){return AN(t)?e:t[r]||t}function LN(e){return e?(t,r)=>r[e]:null}function Bf(e,t){let{ownerState:r}=t,o=H(t,DN),n=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Bf(a,m({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=H(n,_N);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props(m({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(m({ownerState:r},o,r)):l.style))}),s}return n}function El(e={}){let{themeId:t,defaultTheme:r=MN,rootShouldForwardProp:o=Lv,slotShouldForwardProp:n=Lv}=e,a=i=>xo(m({},i,{theme:Af(m({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{vv(i,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=LN(NN(p))}=s,f=H(s,wN),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Lv;p==="Root"||p==="root"?b=o:p?b=n:BN(i)&&(b=void 0);let x=Cl(i,m({shouldForwardProp:b,label:v},f)),g=T=>typeof T=="function"&&T.__emotion_real!==T||pn(T)?P=>Bf(T,m({},P,{theme:Af({theme:P.theme,defaultTheme:r,themeId:t})})):T,C=(T,...P)=>{let S=g(T),k=P?P.map(g):[];l&&d&&k.push(B=>{let M=Af(m({},B,{defaultTheme:r,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;let O=M.components[l].styleOverrides,$={};return Object.entries(O).forEach(([N,_])=>{$[N]=Bf(_,m({},B,{theme:M}))}),d(B,$)}),l&&!y&&k.push(B=>{var M;let O=Af(m({},B,{defaultTheme:r,themeId:t})),$=O==null||(M=O.components)==null||(M=M[l])==null?void 0:M.variants;return Bf({variants:$},m({},B,{theme:O}))}),h||k.push(a);let I=k.length-P.length;if(Array.isArray(T)&&I>0){let B=new Array(I).fill("");S=[...T,...B],S.raw=[...T.raw,...B]}let w=x(S,...k);return i.muiName&&(w.muiName=i.muiName),w};return x.withConfig&&(C.withConfig=x.withConfig),C}}var zN=El(),Mf=zN;df();Rv();oe();function bc(e,t){let r=m({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=m({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let n=e[o]||{},a=t[o];r[o]={},!a||!Object.keys(a)?r[o]=n:!n||!Object.keys(n)?r[o]=a:(r[o]=m({},a),Object.keys(n).forEach(i=>{r[o][i]=bc(n[i],a[i])}))}else r[o]===void 0&&(r[o]=e[o])}),r}function Nf(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:bc(t.components[r].defaultProps,o)}function un({props:e,name:t,defaultTheme:r,themeId:o}){let n=cn(r);return o&&(n=n[o]||n),Nf({theme:n,name:t,props:e})}import*as Lf from"react";var FN=typeof window<"u"?Lf.useLayoutEffect:Lf.useEffect,Ot=FN;$a();function $N(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function SS(e){if(e.type)return e;if(e.charAt(0)==="#")return SS($N(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(mr(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(mr(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var Xa=e=>{let t=SS(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};oe();import*as zS from"react";oe();import*as BS from"react";ro();Sl();function Il(...e){return e.reduce((t,r)=>r==null?t:function(...n){t.apply(this,n),r.apply(this,n)},()=>{})}function xc(e,t=166){let r;function o(...n){let a=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(a,t)}return o.clear=()=>{clearTimeout(r)},o}import*as kS from"react";function Xt(e,t){var r,o;return kS.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function mt(e){return e&&e.ownerDocument||document}function Nn(e){return mt(e).defaultView||window}function Ln(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as Ol from"react";var RS=0;function jN(e){let[t,r]=Ol.useState(e),o=e||t;return Ol.useEffect(()=>{t==null&&(RS+=1,r(`mui-${RS}`))},[t]),o}var ES=Ol.useId;function Xe(e){if(ES!==void 0){let t=ES();return e!=null?e:t}return jN(e)}import*as ps from"react";function Zt({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=ps.useRef(e!==void 0),[a,i]=ps.useState(t),s=n?e:a,l=ps.useCallback(p=>{n||i(p)},[]);return[s,l]}import*as Fv from"react";function HN(e){let t=Fv.useRef(e);return Ot(()=>{t.current=e}),Fv.useRef((...r)=>(0,t.current)(...r)).current}var Qt=HN;import*as IS from"react";function we(...e){return IS.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ln(r,t)})},e)}import*as DS from"react";var OS={};function Vv(e,t){let r=DS.useRef(OS);return r.current===OS&&(r.current=e(t)),r}import*as _S from"react";var UN=[];function $v(e){_S.useEffect(e,UN)}var oa=class e{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function Za(){let e=Vv(oa.create).current;return $v(e.disposeEffect),e}import*as zf from"react";var Ff=!0,Hv=!1,WN=new oa,GN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function YN(e){let{type:t,tagName:r}=e;return!!(r==="INPUT"&&GN[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function JN(e){e.metaKey||e.altKey||e.ctrlKey||(Ff=!0)}function jv(){Ff=!1}function qN(){this.visibilityState==="hidden"&&Hv&&(Ff=!0)}function KN(e){e.addEventListener("keydown",JN,!0),e.addEventListener("mousedown",jv,!0),e.addEventListener("pointerdown",jv,!0),e.addEventListener("touchstart",jv,!0),e.addEventListener("visibilitychange",qN,!0)}function XN(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return Ff||YN(t)}function Po(){let e=zf.useCallback(n=>{n!=null&&KN(n.ownerDocument)},[]),t=zf.useRef(!1);function r(){return t.current?(Hv=!0,WN.start(100,()=>{Hv=!1}),t.current=!1,!0):!1}function o(n){return XN(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:r,ref:e}}function Tc(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}import*as Vf from"react";var ZN=e=>{let t=Vf.useRef({});return Vf.useEffect(()=>{t.current=e}),t.current},Dl=ZN;var QN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_l=QN;function X(e,t,r=void 0){let o={};return Object.keys(e).forEach(n=>{o[n]=e[n].reduce((a,i)=>{if(i){let s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),o}zv();import*as wS from"react";var eL=wS.createContext(null),$f=eL;import*as Uv from"react";function na(){return Uv.useContext($f)}var tL=typeof Symbol=="function"&&Symbol.for,AS=tL?Symbol.for("mui.nested"):"__THEME_NESTED__";import{jsx as rL}from"react/jsx-runtime";function oL(e,t){return typeof t=="function"?t(e):m({},e,t)}function nL(e){let{children:t,theme:r}=e,o=na(),n=BS.useMemo(()=>{let a=o===null?r:oL(o,r);return a!=null&&(a[AS]=o!==null),a},[r,o]);return rL($f.Provider,{value:n,children:t})}var jf=nL;ta();oe();xe();import*as Wv from"react";import{jsx as iL}from"react/jsx-runtime";var aL=["value"],sL=Wv.createContext();function lL(e){let{value:t}=e,r=H(e,aL);return iL(sL.Provider,m({value:t!=null?t:!0},r))}var MS=lL;import{jsx as Gv}from"react/jsx-runtime";var NS={};function LS(e,t,r,o=!1){return zS.useMemo(()=>{let n=e&&t[e]||t;if(typeof r=="function"){let a=r(n),i=e?m({},t,{[e]:a}):a;return o?()=>i:i}return e?m({},t,{[e]:r}):m({},t,r)},[e,t,r,o])}function pL(e){let{children:t,theme:r,themeId:o}=e,n=bf(NS),a=na()||NS,i=LS(o,n,r),s=LS(o,a,r,!0),l=i.direction==="rtl";return Gv(jf,{theme:s,children:Gv(Mo.Provider,{value:i,children:Gv(MS,{value:l,children:t})})})}var Hf=pL;oe();xe();$a();import*as _r from"react";ro();ta();import"react";import{jsx as cL}from"react/jsx-runtime";var Pc="mode",Cc="color-scheme",Yv="data-color-scheme";function Jv(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:n=Pc,colorSchemeStorageKey:a=Cc,attribute:i=Yv,colorSchemeNode:s="document.documentElement"}=e||{};return cL("script",{dangerouslySetInnerHTML:{__html:`(function() {
|
|
3
3
|
try {
|
|
4
4
|
var mode = localStorage.getItem('${n}') || '${t}';
|
|
5
5
|
var colorScheme = '';
|
|
@@ -124,12 +124,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
124
124
|
Prefix can't start with '-' when allowNegative is true.
|
|
125
125
|
prefix: `+n+`
|
|
126
126
|
allowNegative: `+a+`
|
|
127
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function a7(e){e=n7(e);var t=e.decimalSeparator,r=e.allowedDecimalSeparators,o=e.thousandsGroupStyle,n=e.suffix,a=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Mi);var l=e.onBlur;l===void 0&&(l=Mi);var p=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,y=e.value,h=e.valueIsNumericString,v=e.onValueChange,b=UD(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),x=Sy(e),g=x.decimalSeparator,C=x.allowedDecimalSeparators,T=function(z){return jD(z,e)},P=function(z,R){return r7(z,R,e)},S=Op(y)?f:y,k=h!=null?h:t7(S,d,n);Op(y)?Op(f)||(k=k||typeof f=="number"):k=k||typeof y=="number";var I=function(z){return WD(z)?z:(typeof z=="number"&&(z=JD(z)),k&&typeof c=="number"?VD(z,c,!!u):z)},w=KD(I(y),I(f),!!k,T,P,v),B=w[0],M=B.numAsString,O=B.formattedValue,$=w[1],N=function(z){var R=z.target,q=z.key,ie=R.selectionStart,A=R.selectionEnd,ee=R.value;if(ee===void 0&&(ee=""),ie!==A){s(z);return}q==="Backspace"&&ee[0]==="-"&&ie===d.length+1&&a&&Hs(R,1),c&&u&&(q==="Backspace"&&ee[ie-1]===g?(Hs(R,ie-1),z.preventDefault()):q==="Delete"&&ee[ie]===g&&z.preventDefault()),C!=null&&C.includes(q)&&ee[ie]===g&&Hs(R,ie+1);var ye=p===!0?",":p;q==="Backspace"&&ee[ie-1]===ye&&Hs(R,ie-1),q==="Delete"&&ee[ie]===ye&&Hs(R,ie+1),s(z)},_=function(z){var R=M;if(R.match(/\d/g)||(R=""),i||(R=HG(R)),u&&c&&(R=VD(R,c,u)),R!==M){var q=jD(R,e);$({formattedValue:q,value:R,floatValue:parseFloat(R)},{event:z,source:Vu.event})}l(z)},L=function(z){return z===g?!0:$u(z)},W=function(z){var R=z.currentValue,q=z.lastValue,ie=z.formattedValue,A=z.currentValueIndex,ee=z.formattedValueIndex,ye=R[A],Ie=ie[ee],se=qD(q,R),U=se.to;return A>=U.start&&A<U.end&&C&&C.includes(ye)&&Ie===g?!0:ye===Ie};return Object.assign(Object.assign({},b),{value:O,valueIsNumericString:!1,isValidInputCharacter:L,isCharacterSame:W,onValueChange:$,format:T,removeFormatting:P,getCaretBoundary:function(z){return o7(z,e)},onKeyDown:N,onBlur:_})}function ky(e){var t=a7(e);return Ip.createElement(ZG,Object.assign({},t))}import i7,{useCallback as s7}from"react";import{motion as l7}from"framer-motion";var p7=l7(ap),ju=i7.forwardRef((e,t)=>{var P;let T=e,{label:r,helperText:o,error:n,style:a,size:i,color:s,disabled:l,required:p,onChange:c,name:u,sx:d,className:f,enableClearable:y}=T,h=he(T,["label","helperText","error","style","size","color","disabled","required","onChange","name","sx","className","enableClearable"]),[v,b]=At(e.value,e.defaultValue,s7(S=>{c==null||c({target:{value:(S==null?void 0:S.toString())||"",name:u||""}})},[c,u])),x=S=>{b(S.target.value)},g=()=>{b(e.defaultValue||"")},C=D(p7,Z(F({value:v,name:u,onChange:x,required:p,color:n?"danger":s,disabled:l,slotProps:F({input:F({ref:t},(P=h.slotProps)==null?void 0:P.input)},h.slotProps)},h),{endDecorator:y?Pe(Ct,{gap:1,direction:"row",children:[h.endDecorator,v&&D(or,{onMouseDown:S=>S.preventDefault(),onClick:g,"aria-label":"Clear",children:D(Zh,{})})]}):h.endDecorator}));return Pe(Gn,{required:p,color:s,size:i,error:n,disabled:l,sx:d,className:f,children:[r&&D(Yn,{children:r}),C,o&&D(Jn,{children:o})]})});ju.displayName="Input";var Kr=ju;var c7={AED:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BMD:2,BND:2,BOB:2,BRL:2,BSD:2,BWP:2,BYN:2,BZD:2,CAD:2,CHF:2,CLP:2,CNH:2,CNY:2,COP:2,CRC:2,CUP:2,CVE:0,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HTG:2,HUF:2,IDR:0,ILS:2,INR:2,IQD:3,ISK:2,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LYD:3,MAD:2,MDL:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SEK:2,SGD:2,SHP:2,SLE:2,SOS:2,SRD:2,STN:2,SVC:2,SZL:2,THB:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,UYU:2,UZS:2,VEF:2,VND:0,VUV:0,WST:2,XAF:0,XCD:2,XOF:0,XPF:0,YER:2,ZAR:2,ZMW:2},XD=(e="USD")=>{let[t,r,o,...n]=new zD(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=c7[e];return{symbol:`${t} `,thousandSeparator:r,decimalSeparator:o,placeholder:o?`${t} 0${o}${Array.from(Array(a)).map(()=>0).join("")}`:`${t} 0`,fixedDecimalScale:!!o,decimalScale:a}};var d7=e_.forwardRef(function(t,r){let a=t,{onChange:o}=a,n=he(a,["onChange"]);return D(ky,Z(F({},n),{onValueChange:({value:i})=>{o==null||o({target:{name:t.name,value:i}})},valueIsNumericString:!0,getInputRef:r,allowNegative:!1}))}),f7=E(Kr,{name:"CurrencyInput",slot:"root",overridesResolver:(e,t)=>t.root})({}),Ry=e_.forwardRef(function(t,r){let o=G({props:t,name:"CurrencyInput"}),O=o,{currency:n="USD",name:a,onChange:i,label:s,error:l,helperText:p,required:c,disabled:u,useMinorUnit:d,sx:f,className:y}=O,h=he(O,["currency","name","onChange","label","error","helperText","required","disabled","useMinorUnit","sx","className"]),{symbol:v,thousandSeparator:b,decimalSeparator:x,placeholder:g,fixedDecimalScale:C,decimalScale:T}=XD(n),[P,S]=At(o.value,o.defaultValue,ZD($=>i==null?void 0:i({target:{name:a,value:$}}),[i,a])),k=QD(()=>P&&d?P/Math.pow(10,T):P,[P,d,T]),I=QD(()=>o.max&&d?o.max/Math.pow(10,T):o.max,[o.max,d,T]),[w,B]=u7(!!I&&!!k&&k>I),M=ZD($=>{var _;if($.target.value===""){S(void 0);return}let N=Number(d?(_=$.target.value)==null?void 0:_.replace(x,""):$.target.value);I&&Number($.target.value)>I?B(!0):B(!1),S(N)},[x,I,d,S]);return D(f7,Z(F({},h),{ref:r,value:k,placeholder:g,onChange:M,error:l||w,disabled:u,required:c,color:l||w?"danger":o.color,label:s,helperText:w?new Cy(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:I}):p,slotProps:{input:{component:d7,decimalSeparator:x,thousandSeparator:b,prefix:v,fixedDecimalScale:C,decimalScale:T,"aria-label":h["aria-label"]}},sx:F({},f),className:y}))});var t_=Ry;import b_,{useCallback as Kn,useEffect as Hy,useMemo as ur,useRef as PT,useState as CT,useId as J7,forwardRef as q7,useImperativeHandle as K7}from"react";import{jsx as m7}from"react/jsx-runtime";var r_=ht(m7("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0s.39-1.02 0-1.41l-6.59-6.59a.996.996 0 0 0-1.41 0l-6.6 6.58c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1"}),"ArrowUpwardRounded");import{motion as h7}from"framer-motion";var y7=h7(Th),Hu=y7;Hu.displayName="Sheet";var tn=Hu;var Uu=e=>{let o=e,{children:t}=o,r=he(o,["children"]);return D(Oh,Z(F({},r),{children:t}))};Uu.displayName="Table";function fT(e){let{headCells:t,showCheckbox:r,onCheckboxChange:o,slots:{checkbox:n=Au}={},slotProps:{checkbox:a={}}={}}=e;return D("thead",{children:Pe("tr",{children:[r&&D("th",{style:{width:"40px",textAlign:"center"},children:D(n,F({onChange:o},a))}),t.map(i=>D("th",{style:{width:i.width,minWidth:i.minWidth,maxWidth:i.maxWidth,textAlign:i.numeric?"right":"left"},children:i.label},i.label))]})})}fT.displayName="TableHead";function mT(e){let{rows:t,cellOrder:r,rowOptions:o,showCheckbox:n,onCheckboxChange:a,slots:{checkbox:i=Au}={},slotProps:{checkbox:s={}}={}}=e;return D("tbody",{children:t.map((l,p)=>Pe("tr",{children:[n&&D("td",{style:{textAlign:"center"},children:D(i,F({onChange:c=>a==null?void 0:a(c,p)},s))}),r.map(c=>{var u;return D("td",{style:{textAlign:(u=o==null?void 0:o[c])!=null&&u.numeric?"right":"left"},children:l[c]},c)})]},p))})}mT.displayName="TableBody";import R7,{forwardRef as E7,useCallback as Ny,useEffect as l_,useImperativeHandle as I7,useRef as p_,useState as c_}from"react";function ko(e){return typeof e=="string"||e instanceof String}function hT(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function yT(e,t){return Array.isArray(t)?yT(e,(r,o)=>t.includes(o)):Object.entries(e).reduce((r,o)=>{let[n,a]=o;return t(a,n)&&(r[n]=a),r},{})}var Be={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function gT(e){switch(e){case Be.LEFT:return Be.FORCE_LEFT;case Be.RIGHT:return Be.FORCE_RIGHT;default:return e}}function Ey(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Dp(e,t){if(t===e)return!0;let r=Array.isArray(t),o=Array.isArray(e),n;if(r&&o){if(t.length!=e.length)return!1;for(n=0;n<t.length;n++)if(!Dp(t[n],e[n]))return!1;return!0}if(r!=o)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){let a=t instanceof Date,i=e instanceof Date;if(a&&i)return t.getTime()==e.getTime();if(a!=i)return!1;let s=t instanceof RegExp,l=e instanceof RegExp;if(s&&l)return t.toString()==e.toString();if(s!=l)return!1;let p=Object.keys(t);for(n=0;n<p.length;n++)if(!Object.prototype.hasOwnProperty.call(e,p[n]))return!1;for(n=0;n<p.length;n++)if(!Dp(e[p[n]],t[p[n]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}var Iy=class{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Be.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Be.RIGHT:Be.LEFT}};function Re(e,t){return new Re.InputMask(e,t)}function vT(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?Re.MaskedRegExp:ko(e)?Re.MaskedPattern:e===Date?Re.MaskedDate:e===Number?Re.MaskedNumber:Array.isArray(e)||e===Array?Re.MaskedDynamic:Re.Masked&&e.prototype instanceof Re.Masked?e:Re.Masked&&e instanceof Re.Masked?e.constructor:e instanceof Function?Re.MaskedFunction:(console.warn("Mask not found for mask",e),Re.Masked)}function Oa(e){if(!e)throw new Error("Options in not defined");if(Re.Masked){if(e.prototype instanceof Re.Masked)return{mask:e};let t=e instanceof Re.Masked?{mask:e}:hT(e)&&e.mask instanceof Re.Masked?e:{},{mask:r=void 0}=t,o=he(t,["mask"]);if(r){let n=r.mask;return F(Z(F({},yT(r,(a,i)=>!i.startsWith("_"))),{mask:r.constructor,_mask:n}),o)}}return hT(e)?F({},e):{mask:e}}function Fr(e){if(Re.Masked&&e instanceof Re.Masked)return e;let t=Oa(e),r=vT(t.mask);if(!r)throw new Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}Re.createMask=Fr;var Ni=class{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(r){}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(r){}return t!=null?t:this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch(o){}}get isActive(){return!1}};Re.MaskElement=Ni;var o_=90,g7=89,Da=class extends Ni{constructor(t){super(),this.input=t,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,r,o;return(t=(r=(o=this.input).getRootNode)==null?void 0:r.call(o))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",t.drop),this.input.addEventListener("click",t.click),this.input.addEventListener("focus",t.focus),this.input.addEventListener("blur",t.commit),this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===o_&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===g7&&t.ctrlKey))return t.preventDefault(),this._handlers.redo(t);if(this._handlers.undo&&t.keyCode===o_&&(t.metaKey||t.ctrlKey))return t.preventDefault(),this._handlers.undo(t);t.isComposing||this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo)return t.preventDefault(),this._handlers.undo(t);if(t.inputType==="historyRedo"&&this._handlers.redo)return t.preventDefault(),this._handlers.redo(t)}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){t.isComposing||this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};Re.HTMLMaskElement=Da;var Wu=class extends Da{constructor(t){super(t),this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}};Re.HTMLMaskElement=Da;var _p=class extends Da{get _unsafeSelectionStart(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o<n?o:n}get _unsafeSelectionEnd(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o>n?o:n}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;let o=this.rootElement.createRange();o.setStart(this.input.firstChild||this.input,t),o.setEnd(this.input.lastChild||this.input,r);let n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(o))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}};Re.HTMLContenteditableMaskElement=_p;var Gu=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(t){return this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Gu.MAX_LENGTH=100;var Oy=class{constructor(t,r){this.el=t instanceof Ni?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new _p(t):new Wu(t),this.masked=Fr(r),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Gu,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof Re.Masked)&&this.masked.constructor===vT(t)){this.masked.updateOptions({mask:t});return}let r=t instanceof Re.Masked?t:Fr({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){this.rawInputValue!==t&&(this.masked.rawInputValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){let o=this._listeners[t];o&&o.forEach(n=>n(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(t){let r=this.masked.unmaskedValue,o=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==r||this.value!==o||this._rawInputValue!==n;this._unmaskedValue=r,this._value=o,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),t==="auto"?this.alignCursor():t!=null&&(this.cursorPos=t),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:r,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){let i=t,{mask:r}=i,o=he(i,["mask"]),n=!this.maskEquals(r),a=this.masked.optionsIsChanged(o);n&&(this.mask=r),a&&this.masked.updateOptions(o),(n||a)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Be.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;let o=this._listeners[t].indexOf(r);return o>=0&&this._listeners[t].splice(o,1),this}_onInput(t){this._inputEvent=t,this._abortUpdateCursor();let r=new Iy({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),o=this.masked.rawInputValue,n=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=o===this.masked.rawInputValue?r.removeDirection:Be.NONE,i=this.masked.nearestInputPos(r.startChangePos+n,a);a!==Be.NONE&&(i=this.masked.nearestInputPos(i,Be.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){t&&(this._historyChanging=!0,this.unmaskedValue=t.unmaskedValue,this.el.select(t.selection.start,t.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};Re.InputMask=Oy;var He=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},t)}aggregate(t){return this.inserted+=t.inserted,this.rawInserted+=t.rawInserted,this.tailShift+=t.tailShift,this.skip=this.skip||t.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}};Re.ChangeDetails=He;var Vr=class{constructor(t,r,o){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=o}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";let r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";let t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}};var Jt=class e{constructor(t){this._value="",this._update(F(F({},e.DEFAULTS),t)),this._initialized=!0}updateOptions(t){this.optionsIsChanged(t)&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr(this.extractInput(t,r),t)}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new He({inserted:t,rawInserted:t})):new He}_appendChar(t,r,o){r===void 0&&(r={});let n=this.state,a;if([t,a]=this.doPrepareChar(t,r),t&&(a=a.aggregate(this._appendCharRaw(t,r)),!a.rawInserted&&this.autofix==="pad")){let i=this.state;this.state=n;let s=this.pad(r),l=this._appendCharRaw(t,r);s=s.aggregate(l),l.rawInserted||s.equals(a)?a=s:this.state=i}if(a.inserted){let i,s=this.doValidate(r)!==!1;if(s&&o!=null){let l=this.state;if(this.overwrite===!0){i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.unshift(this.displayValue.length-a.tailShift)}let p=this.appendTail(o);if(s=p.rawInserted.length===o.toString().length,!(s&&p.inserted)&&this.overwrite==="shift"){this.state=l,i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.shift();p=this.appendTail(o),s=p.rawInserted.length===o.toString().length}s&&p.inserted&&(this.state=l)}s||(a=new He,this.state=n,o&&i&&(o.state=i))}return a}_appendPlaceholder(){return new He}_appendEager(){return new He}append(t,r,o){if(!ko(t))throw new Error("value should be string");let n=ko(o)?new Vr(String(o)):o;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,r);for(let i=0;i<t.length;++i){let s=this._appendChar(t[i],r,n);if(!s.rawInserted&&!this.doSkipInvalid(t[i],r,n))break;a.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new He}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;let r=this.rawInputValue,o=this.value,n=t();return this.rawInputValue=r,this.value&&this.value!==o&&o.indexOf(this.value)===0&&(this.append(o.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;let r=this.state,o=t(this);return this.state=r,delete this._isolated,o}doSkipInvalid(t,r,o){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),He.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),He.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,o,n,a){o===void 0&&(o=""),n===void 0&&(n=Be.NONE),a===void 0&&(a={input:!0});let i=t+r,s=this.extractTail(i),l=this.eager===!0||this.eager==="remove",p;l&&(n=gT(n),p=this.extractInput(0,i,{raw:!0}));let c=t,u=new He;if(n!==Be.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!l?Be.NONE:n),u.tailShift=c-t),u.aggregate(this.remove(c)),l&&n!==Be.NONE&&p===this.rawInputValue)if(n===Be.FORCE_LEFT){let d;for(;p===this.rawInputValue&&(d=this.displayValue.length);)u.aggregate(new He({tailShift:-1})).aggregate(this.remove(d-1))}else n===Be.FORCE_RIGHT&&s.unshift();return u.aggregate(this.append(o,a,s))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!Dp(this,t)}typedValueEquals(t){let r=this.typedValue;return t===r||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(t){return new He}};Jt.DEFAULTS={skipInvalid:!0};Jt.EMPTY_VALUES=[void 0,null,""];Re.Masked=Jt;var wp=class e{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=ko(t)?new Vr(String(t)):t;let r=this.chunks[this.chunks.length-1],o=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof Vr)o?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(t.stop==null){let n;for(;t.chunks.length&&t.chunks[0].stop==null;)n=t.chunks.shift(),n.from+=t.from,this.extend(n)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof Re.MaskedPattern))return new Vr(this.toString()).appendTo(t);let r=new He;for(let o=0;o<this.chunks.length;++o){let n=this.chunks[o],a=t._mapPosToBlock(t.displayValue.length),i=n.stop,s;if(i!=null&&(!a||a.index<=i)&&((n instanceof e||t._stops.indexOf(i)>=0)&&r.aggregate(t._appendPlaceholder(i)),s=n instanceof e&&t._blocks[i]),s){let l=s.appendTail(n);r.aggregate(l);let p=n.toString().slice(l.rawInserted.length);p&&r.aggregate(t.append(p,{tail:!0}))}else r.aggregate(t.append(n.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let n=t,{chunks:r}=n,o=he(n,["chunks"]);Object.assign(this,o),this.chunks=r.map(a=>{let i="chunks"in a?new e:new Vr;return i.state=a,i})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";let r=t!=null?t-this.from:t,o=0;for(;o<this.chunks.length;){let n=this.chunks[o],a=n.unshift(r);if(n.toString()){if(!a)break;++o}else this.chunks.splice(o,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){let r=this.chunks[t],o=r.shift();if(r.toString()){if(!o)break;--t}else this.chunks.splice(t,1);if(o)return o}return""}};var Dy=class{constructor(t,r){this.masked=t,this._log=[];let{offset:o,index:n}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=o,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){let t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}};var Ap=class{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new He}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this._value.length;switch(r){case Be.LEFT:case Be.FORCE_LEFT:return o;case Be.NONE:case Be.RIGHT:case Be.FORCE_RIGHT:default:return n}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),o===void 0&&(o={}),o.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new He;let o=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!o)&&!r.tail,i=new He({inserted:this.char,rawInserted:a?this.char:""});return this._value=this.char,this._isRawInput=a&&(r.raw||r.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let t=new He;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new Vr("")}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}append(t,r,o){let n=this._appendChar(t[0],r);return o!=null&&(n.tailShift+=this.appendTail(o).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}pad(t){return this._appendPlaceholder()}};var Li=class{constructor(t){let p=t,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s}=p,l=he(p,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=Fr(l),Object.assign(this,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new He}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new He;let o=this.masked.state,n=this.masked._appendChar(t,this.currentMaskFlags(r));return n.inserted&&this.doValidate(r)===!1&&(n=new He,this.masked.state=o),!n.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(t,r,o){return this.masked.append(t,this.currentMaskFlags(r),o)}_appendPlaceholder(){return this.isFilled||this.isOptional?new He:(this.isFilled=!0,new He({inserted:this.placeholderChar}))}_appendEager(){return new He}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,o)}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this.value.length,a=Math.min(Math.max(t,o),n);switch(r){case Be.LEFT:case Be.FORCE_LEFT:return this.isComplete?a:o;case Be.RIGHT:case Be.FORCE_RIGHT:return this.isComplete?a:n;case Be.NONE:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return Z(F({},t),{_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)})}pad(t){return new He}};Li.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var _y=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){let r=t.mask;r&&(t.validate=o=>o.search(r)>=0),super._update(t)}};Re.MaskedRegExp=_y;var nr=class e extends Jt{constructor(t){super(Z(F(F({},e.DEFAULTS),t),{definitions:Object.assign({},Li.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)}))}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let r=this.mask;if(!r||!t)return;let o=!1,n=!1;for(let i=0;i<r.length;++i){if(this.blocks){let c=r.slice(i),u=Object.keys(this.blocks).filter(f=>c.indexOf(f)===0);u.sort((f,y)=>y.length-f.length);let d=u[0];if(d){let a=Oa(this.blocks[d]),{expose:f,repeat:y}=a,h=he(a,["expose","repeat"]),v=Z(F({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix},h),{repeat:y,parent:this}),b=y!=null?new Re.RepeatBlock(v):Fr(v);b&&(this._blocks.push(b),f&&(this.exposeBlock=b),this._maskedBlocks[d]||(this._maskedBlocks[d]=[]),this._maskedBlocks[d].push(this._blocks.length-1)),i+=d.length-1;continue}}let s=r[i],l=s in t;if(s===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(s==="{"||s==="}"){o=!o;continue}if(s==="["||s==="]"){n=!n;continue}if(s===e.ESCAPE_CHAR){if(++i,s=r[i],!s)break;l=!1}let p=l?new Li(Z(F({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},Oa(t[s])),{parent:this})):new Ap({char:s,eager:this.eager,isUnmasking:o});this._blocks.push(p)}}get state(){return Z(F({},super.state),{_blocks:this._blocks.map(t=>t.state)})}set state(t){if(!t){this.reset();return}let n=t,{_blocks:r}=n,o=he(n,["_blocks"]);this._blocks.forEach((a,i)=>a.state=r[i]),super.state=o}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;let r=new He,o=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(o==null)return r;this._blocks[o].isFilled&&++o;for(let n=o;n<this._blocks.length;++n){let a=this._blocks[n]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._mapPosToBlock(this.displayValue.length),n=new He;if(!o)return n;for(let i=o.index,s;s=this._blocks[i];++i){var a;let l=s._appendChar(t,Z(F({},r),{_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]}));if(n.aggregate(l),l.consumed)break}return n}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=new wp;return t===r||this._forEachBlocksInRange(t,r,(n,a,i,s)=>{let l=n.extractTail(i,s);l.stop=this._findStopBefore(a),l.from=this._blockStartPos(a),l instanceof wp&&(l.blockIndex=a),o.extend(l)}),o}extractInput(t,r,o){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),o===void 0&&(o={}),t===r)return"";let n="";return this._forEachBlocksInRange(t,r,(a,i,s,l)=>{n+=a.extractInput(s,l,o)}),n}_findStopBefore(t){let r;for(let o=0;o<this._stops.length;++o){let n=this._stops[o];if(n<=t)r=n;else break}return r}_appendPlaceholder(t){let r=new He;if(this.lazy&&t==null)return r;let o=this._mapPosToBlock(this.displayValue.length);if(!o)return r;let n=o.index,a=t!=null?t:this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||t!=null){var s;r.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}),r}_mapPosToBlock(t){let r="";for(let o=0;o<this._blocks.length;++o){let n=this._blocks[o],a=r.length;if(r+=n.displayValue,t<=r.length)return{index:o,offset:t-a}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,o)=>r+=o.displayValue.length,0)}_forEachBlocksInRange(t,r,o){r===void 0&&(r=this.displayValue.length);let n=this._mapPosToBlock(t);if(n){let a=this._mapPosToBlock(r),i=a&&n.index===a.index,s=n.offset,l=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(o(this._blocks[n.index],n.index,s,l),a&&!i){for(let p=n.index+1;p<a.index;++p)o(this._blocks[p],p,0,this._blocks[p].displayValue.length);o(this._blocks[a.index],a.index,0,a.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o.aggregate(n.remove(i,s))}),o}nearestInputPos(t,r){if(r===void 0&&(r=Be.NONE),!this._blocks.length)return 0;let o=new Dy(this,t);if(r===Be.NONE)return o.pushRightBeforeInput()||(o.popState(),o.pushLeftBeforeInput())?o.pos:this.displayValue.length;if(r===Be.LEFT||r===Be.FORCE_LEFT){if(r===Be.LEFT){if(o.pushRightBeforeFilled(),o.ok&&o.pos===t)return t;o.popState()}if(o.pushLeftBeforeInput(),o.pushLeftBeforeRequired(),o.pushLeftBeforeFilled(),r===Be.LEFT){if(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.ok&&o.pos<=t||(o.popState(),o.ok&&o.pos<=t))return o.pos;o.popState()}return o.ok?o.pos:r===Be.FORCE_LEFT?0:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:0)}return r===Be.RIGHT||r===Be.FORCE_RIGHT?(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.pushRightBeforeFilled()?o.pos:r===Be.FORCE_RIGHT?this.displayValue.length:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:this.nearestInputPos(t,Be.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=0;return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o+=n.totalInputPositions(i,s)}),o}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){let r=this._maskedBlocks[t];return r?r.map(o=>this._blocks[o]):[]}pad(t){let r=new He;return this._forEachBlocksInRange(0,this.displayValue.length,o=>r.aggregate(o.pad(t))),r}};nr.DEFAULTS=Z(F({},Jt.DEFAULTS),{lazy:!0,placeholderChar:"_"});nr.STOP_CHAR="`";nr.ESCAPE_CHAR="\\";nr.InputDefinition=Li;nr.FixedDefinition=Ap;Re.MaskedPattern=nr;var zi=class extends nr{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){let c=t,{to:r=this.to||0,from:o=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix}=c,i=he(c,["to","from","maxLength","autofix"]);this.to=r,this.from=o,this.maxLength=Math.max(String(r).length,n),this.autofix=a;let s=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0"),p=0;for(;p<l.length&&l[p]===s[p];)++p;i.mask=l.slice(0,p).replace(/0/g,"\\0")+"0".repeat(this.maxLength-p),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",o="",[,n,a]=t.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(n.length)+a,o="9".repeat(n.length)+a),r=r.padEnd(this.maxLength,"0"),o=o.padEnd(this.maxLength,"9"),[r,o]}doPrepareChar(t,r){r===void 0&&(r={});let o;return[t,o]=super.doPrepareChar(t.replace(/\D/g,""),r),t||(o.skip=!this.isComplete),[t,o]}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,r);let o=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+t);return Number(i)<this.from?super._appendCharRaw(o[this.value.length],r):Number(a)>this.to?!r.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(o[this.value.length],r).aggregate(this._appendCharRaw(t,r)):super._appendCharRaw(n[this.value.length],r):super._appendCharRaw(t,r)}doValidate(t){let r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;let[n,a]=this.boundaries(r);return this.from<=Number(a)&&Number(n)<=this.to&&super.doValidate(t)}pad(t){let r=new He;if(this.value.length===this.maxLength)return r;let o=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)r.aggregate(super._appendCharRaw("0",t));o.split("").forEach(a=>this._appendCharRaw(a))}return r}};Re.MaskedRange=zi;var Bp=class e extends nr{static extractPatternOptions(t){let a=t,{mask:r,pattern:o}=a,n=he(a,["mask","pattern"]);return Z(F({},n),{mask:ko(r)?r:o})}constructor(t){super(e.extractPatternOptions(F(F({},e.DEFAULTS),t)))}updateOptions(t){super.updateOptions(t)}_update(t){let s=F(F({},e.DEFAULTS),t),{mask:r,pattern:o,blocks:n}=s,a=he(s,["mask","pattern","blocks"]),i=Object.assign({},e.GET_DEFAULT_BLOCKS());t.min&&(i.Y.from=t.min.getFullYear()),t.max&&(i.Y.to=t.max.getFullYear()),t.min&&t.max&&i.Y.from===i.Y.to&&(i.m.from=t.min.getMonth()+1,i.m.to=t.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=t.min.getDate(),i.d.to=t.max.getDate())),Object.assign(i,this.blocks,n),super._update(Z(F({},a),{mask:ko(r)?r:o,blocks:i}))}doValidate(t){let r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(e.extractPatternOptions(t))}};Bp.GET_DEFAULT_BLOCKS=()=>({d:{mask:zi,from:1,to:31,maxLength:2},m:{mask:zi,from:1,to:12,maxLength:2},Y:{mask:zi,from:1900,to:9999}});Bp.DEFAULTS=Z(F({},nr.DEFAULTS),{mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return[r,o,n].join(".")},parse:(e,t)=>{let[r,o,n]=e.split(".").map(Number);return new Date(n,o-1,r)}});Re.MaskedDate=Bp;var Yu=class e extends Jt{constructor(t){super(F(F({},e.DEFAULTS),t)),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{let i=Oa(r),{expose:o}=i,n=he(i,["expose"]),a=Fr(F({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid},n));return o&&(this.exposeMask=a),a}):[])}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._applyDispatch(t,r);return this.currentMask&&o.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),o}_applyDispatch(t,r,o){t===void 0&&(t=""),r===void 0&&(r={}),o===void 0&&(o="");let n=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,i=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,s=a.slice(i.length),l=this.currentMask,p=new He,c=l==null?void 0:l.state;return this.currentMask=this.doDispatch(t,F({},r),o),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),p.tailShift=this.currentMask.value.length-n.length),s&&(p.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)):c&&(this.currentMask.state=c)),p}_appendPlaceholder(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){let r=new He;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,o;return Z(F({},t),{_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((o=t._beforeTailState)==null?void 0:o.currentMask)||t._beforeTailState})}doDispatch(t,r,o){return r===void 0&&(r={}),o===void 0&&(o=""),this.dispatch(t,this,r,o)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[o,n]=super.doPrepare(t,r);if(this.currentMask){let a;[o,a]=super.doPrepare(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(t,r);if(this.currentMask){let a;[o,a]=super.doPrepareChar(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){let o=new He;return this.currentMask&&o.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),o}get state(){var t;return Z(F({},super.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state})}set state(t){let i=t,{compiledMasks:r,currentMaskRef:o,currentMask:n}=i,a=he(i,["compiledMasks","currentMaskRef","currentMask"]);r&&this.compiledMasks.forEach((s,l)=>s.state=r[l]),o!=null&&(this.currentMask=o,this.currentMask.state=n),super.state=a}extractInput(t,r,o){return this.currentMask?this.currentMask.extractInput(t,r,o):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,o)=>{if(!t[o])return;let i=t[o],{mask:n}=i,a=he(i,["mask"]);return Dp(r,a)&&r.maskEquals(n)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}};Yu.DEFAULTS=Z(F({},Jt.DEFAULTS),{dispatch:(e,t,r,o)=>{if(!t.compiledMasks.length)return;let n=t.rawInputValue,a=t.compiledMasks.map((i,s)=>{let l=t.currentMask===i,p=l?i.displayValue.length:i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):l||i.remove(p),i.append(e,t.currentMaskFlags(r)),i.appendTail(o),{index:s,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(p,i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT)))}});return a.sort((i,s)=>s.weight-i.weight||s.totalInputPositions-i.totalInputPositions),t.compiledMasks[a[0].index]}});Re.MaskedDynamic=Yu;var Ju=class e extends nr{constructor(t){super(F(F({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){let n=t,{enum:r}=n,o=he(n,["enum"]);if(r){let a=r.map(l=>l.length),i=Math.min(...a),s=Math.max(...a)-i;o.mask="*".repeat(i),s&&(o.mask+="["+"*".repeat(s)+"]"),this.enum=r}super._update(o)}_appendCharRaw(t,r){r===void 0&&(r={});let o=Math.min(this.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+t,o));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,s)=>{let l=n[0][s];s>=this.value.length||l===i.value||(i.reset(),i._appendChar(l,r))});let a=super._appendCharRaw(n[0][this.value.length],r);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new He}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr("",t)}remove(t,r){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),t===r)return new He;let o=Math.min(super.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n;for(n=t;n>=0&&!(this.enum.filter(s=>this.matchValue(s,this.value.slice(o,n),o)).length>1);--n);let a=super.remove(n,r);return a.tailShift+=n-t,a}};Ju.DEFAULTS=Z(F({},nr.DEFAULTS),{matchValue:(e,t,r)=>e.indexOf(t,r)===r});Re.MaskedEnum=Ju;var wy=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){super._update(Z(F({},t),{validate:t.mask}))}};Re.MaskedFunction=wy;var n_,Fi=class e extends Jt{constructor(t){super(F(F({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",o=(this.scale?"("+Ey(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+o),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ey).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ey(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){let r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!o&&(n.skip=!0),o&&!this.allowPositive&&!this.value&&o!=="-"&&n.aggregate(this._appendChar("-")),[o,n]}_separatorsCount(t,r){r===void 0&&(r=!1);let o=0;for(let n=0;n<t;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++o,r&&(t+=this.thousandsSeparator.length));return o}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,o))}_appendCharRaw(t,r){r===void 0&&(r={});let o=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(o);this._value=this._removeThousandsSeparators(this.value);let a=this._value;this._value+=t;let i=this.number,s=!isNaN(i),l=!1;if(s){let d;this.min!=null&&this.min<0&&this.number<this.min&&(d=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(d=this.max),d!=null&&(this.autofix?(this._value=this.format(d,this).replace(e.UNMASKED_RADIX,this.radix),l||(l=a===this._value&&!r.tail)):s=!1),s&&(s=!!this._value.match(this._numberRegExp))}let p;s?p=new He({inserted:this._value.slice(a.length),rawInserted:l?"":t,skip:l}):(this._value=a,p=new He),this._value=this._insertThousandsSeparators(this._value);let c=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,u=this._separatorsCountFromSlice(c);return p.tailShift+=(u-n)*this.thousandsSeparator.length,p}_findSeparatorAround(t){if(this.thousandsSeparator){let r=t-this.thousandsSeparator.length+1,o=this.value.indexOf(this.thousandsSeparator,r);if(o<=t)return o}return-1}_adjustRangeWithSeparators(t,r){let o=this._findSeparatorAround(t);o>=0&&(t=o);let n=this._findSeparatorAround(r);return n>=0&&(r=n+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);let o=this.value.slice(0,t),n=this.value.slice(r),a=this._separatorsCount(o.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(o+n));let i=this._separatorsCountFromSlice(o);return new He({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case Be.NONE:case Be.LEFT:case Be.FORCE_LEFT:{let o=this._findSeparatorAround(t-1);if(o>=0){let n=o+this.thousandsSeparator.length;if(t<n||this.value.length<=n||r===Be.FORCE_LEFT)return o}break}case Be.RIGHT:case Be.FORCE_RIGHT:{let o=this._findSeparatorAround(t);if(o>=0)return o+this.thousandsSeparator.length}}return t}doCommit(){if(this.value){let t=this.number,r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let o=this.value;this.normalizeZeros&&(o=this._normalizeZeros(o)),this.padFractionalZeros&&this.scale>0&&(o=this._padFractionalZeros(o)),this._value=o}super.doCommit()}_normalizeZeros(t){let r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(o,n,a,i)=>n+i),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;let r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,o){r===void 0&&(r={});let n=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,o)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}};n_=Fi;Fi.UNMASKED_RADIX=".";Fi.EMPTY_VALUES=[...Jt.EMPTY_VALUES,0];Fi.DEFAULTS=Z(F({},Jt.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[n_.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})});Re.MaskedNumber=Fi;var Ay={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function bT(e,t,r){t===void 0&&(t=Ay.MASKED),r===void 0&&(r=Ay.MASKED);let o=Fr(e);return n=>o.runIsolated(a=>(a[t]=n,a[r]))}function a_(e,t,r,o){return bT(t,r,o)(e)}Re.PIPE_TYPE=Ay;Re.createPipe=bT;Re.pipe=a_;var By=class extends nr{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:1/0}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var r,o,n;let l=Oa(t),{repeat:a}=l,i=he(l,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,i);let s=Fr(this._blockOpts);this.repeat=(r=(o=a!=null?a:s.repeat)!=null?o:this.repeat)!=null?r:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:s},eager:s.eager,overwrite:s.overwrite,skipInvalid:s.skipInvalid,lazy:s.lazy,placeholderChar:s.placeholderChar,displayChar:s.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Fr(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(t,r){r===void 0&&(r={});let o=new He;for(let l=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),p,c;p=(i=this._blocks[l])!=null?i:c=!c&&this._allocateBlock(l);++l){var n,a,i,s;let u=p._appendChar(t,Z(F({},r),{_beforeTailState:(s=r._beforeTailState)==null||(s=s._blocks)==null?void 0:s[l]}));if(u.skip&&c){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(o.aggregate(u),u.consumed)break}return o}_trimEmptyTail(t,r){var o,n;t===void 0&&(t=0);let a=Math.max(((o=this._mapPosToBlock(t))==null?void 0:o.index)||0,this.repeatFrom,0),i;r!=null&&(i=(n=this._mapPosToBlock(r))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let s=0;for(let l=i;a<=l&&!this._blocks[l].unmaskedValue;--l,++s);s&&(this._blocks.splice(i-s+1,s),this.mask=this.mask.slice(s))}reset(){super.reset(),this._trimEmptyTail()}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._trimEmptyTail(t,r),o}totalInputPositions(t,r){return t===void 0&&(t=0),r==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(t,r)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=t}};Re.RepeatBlock=By;try{globalThis.IMask=Re}catch(e){}import TT from"react";var Fe=wo(VC(),1);import My from"react";var i_={mask:Fe.default.oneOfType([Fe.default.array,Fe.default.func,Fe.default.string,Fe.default.instanceOf(RegExp),Fe.default.oneOf([Date,Number,Re.Masked]),Fe.default.instanceOf(Re.Masked)]),value:Fe.default.any,unmask:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["typed"])]),prepare:Fe.default.func,prepareChar:Fe.default.func,validate:Fe.default.func,commit:Fe.default.func,overwrite:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["shift"])]),eager:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["append","remove"])]),skipInvalid:Fe.default.bool,onAccept:Fe.default.func,onComplete:Fe.default.func,placeholderChar:Fe.default.string,displayChar:Fe.default.string,lazy:Fe.default.bool,definitions:Fe.default.object,blocks:Fe.default.object,enum:Fe.default.arrayOf(Fe.default.string),maxLength:Fe.default.number,from:Fe.default.number,to:Fe.default.number,pattern:Fe.default.string,format:Fe.default.func,parse:Fe.default.func,autofix:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["pad"])]),radix:Fe.default.string,thousandsSeparator:Fe.default.string,mapToRadix:Fe.default.arrayOf(Fe.default.string),scale:Fe.default.number,normalizeZeros:Fe.default.bool,padFractionalZeros:Fe.default.bool,min:Fe.default.oneOfType([Fe.default.number,Fe.default.instanceOf(Date)]),max:Fe.default.oneOfType([Fe.default.number,Fe.default.instanceOf(Date)]),dispatch:Fe.default.func,inputRef:Fe.default.oneOfType([Fe.default.func,Fe.default.shape({current:Fe.default.object})])},s_=Object.keys(i_).filter(e=>e!=="value"),v7=["value","unmask","onAccept","onComplete","inputRef"],b7=s_.filter(e=>v7.indexOf(e)<0);function xT(e){var t;let r=(t=class extends My.Component{constructor(a){super(a),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let a=this.props,i=this._extractMaskOptionsFromProps(a);if(i.mask)this.maskRef?(this.maskRef.updateOptions(i),"value"in a&&a.value!==void 0&&(this.maskValue=a.value)):this.initMask(i);else if(this.destroyMask(),"value"in a&&a.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=a.value:this.element.value=a.value}}componentWillUnmount(){this.destroyMask()}_inputRef(a){this.element=a,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=a:this.props.inputRef(a))}initMask(a){a===void 0&&(a=this._extractMaskOptionsFromProps(this.props)),this.maskRef=Re(this.element,a).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(a){let i=he(a,[]);return Object.keys(i).filter(s=>b7.indexOf(s)<0).forEach(s=>{delete i[s]}),i}_extractNonMaskProps(a){let i=he(a,[]);return s_.forEach(s=>{s!=="maxLength"&&delete i[s]}),"defaultValue"in i||(i.defaultValue=a.mask?"":i.value),delete i.value,i}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(a){this.maskRef&&(a=a==null&&this.props.unmask!=="typed"?"":a,this.props.unmask==="typed"?this.maskRef.typedValue=a:this.props.unmask?this.maskRef.unmaskedValue=a:this.maskRef.value=a)}_onAccept(a){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,a)}_onComplete(a){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,a)}render(){return My.createElement(e,Z(F({},this._extractNonMaskProps(this.props)),{inputRef:this._inputRef}))}},t.displayName=void 0,t.propTypes=void 0,t),o=e.displayName||e.name||"Component";return r.displayName="IMask("+o+")",r.propTypes=i_,My.forwardRef((n,a)=>My.createElement(r,Z(F({},n),{ref:a})))}var x7=xT(e=>{let o=e,{inputRef:t}=o,r=he(o,["inputRef"]);return TT.createElement("input",Z(F({},r),{ref:t}))}),T7=(e,t)=>TT.createElement(x7,Z(F({},e),{ref:t})),_a=TT.forwardRef(T7);import{useRef as lZe,useState as pZe,useCallback as cZe,useEffect as uZe}from"react";import"react";import{jsx as P7}from"react/jsx-runtime";var Vi=ht(P7("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");import{motion as C7}from"framer-motion";var S7=C7(Gm),k7=E(S7)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),qu=k7;qu.displayName="DialogActions";var qn=qu;var O7=E(or,{name:"DatePicker",slot:"calendarButton"})(({theme:e})=>({"&:focus":{"--Icon-color":"currentColor",outlineOffset:`${e.getCssVar("focus-thickness")}`,outline:`${e.getCssVar("focus-thickness")} solid ${e.getCssVar("palette-focusVisible")}`}})),D7=E(Yt,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),_7=E(tn,{name:"DatePicker",slot:"sheet",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),w7=E("div",{name:"DatePicker",slot:"root",overridesResolver:(e,t)=>t.root})({width:"100%"}),u_=(e,t)=>{try{let r=Ly(e,t);return r.toString()==="Invalid Date"||e!==Ku(r,t)?!1:new RegExp(`^${t.replace(/Y/g,"\\d").replace(/M/g,"\\d").replace(/D/g,"\\d")}$`).test(e)}catch(r){return!1}},Ku=(e,t)=>{let r=`${e.getDate()}`,o=`${e.getMonth()+1}`,n=e.getFullYear();return Number(r)<10&&(r="0"+r),Number(o)<10&&(o="0"+o),t.replace(/YYYY/g,n.toString()).replace(/MM/g,o).replace(/DD/g,r)};function Ly(e,t){let r=t.split(/[-./\s]/),o=e.split(/[-./\s]/);if(r.length!==o.length)throw new Error("Invalid date string or format");let n,a,i;for(let l=0;l<r.length;l++){let p=parseInt(o[l],10);switch(r[l]){case"DD":n=p;break;case"MM":a=p-1;break;case"YYYY":i=p;break}}return new Date(i,a,n)}var A7=e=>e.replace(/YYYY/g,"Y").replace(/MM/g,"M").replace(/DD/g,"D").replace(/[^YMD\s]/g,t=>`${t}\``),B7=R7.forwardRef(function(t,r){let i=t,{onChange:o,format:n}=i,a=he(i,["onChange","format"]);return D(_a,Z(F({},a),{inputRef:r,onAccept:s=>o({target:{name:t.name,value:s}}),mask:Date,pattern:A7(n),blocks:{D:{mask:Re.MaskedRange,from:1,to:31,maxLength:2},M:{mask:Re.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Re.MaskedRange,from:1900,to:9999,maxLength:4}},format:s=>Ku(s,n),parse:s=>Ly(s,n),autofix:"pad",overwrite:!0}))}),zy=E7((e,t)=>{let r=G({props:e,name:"DatePicker"}),W=r,{onChange:o,disabled:n,label:a,error:i,helperText:s,minDate:l,maxDate:p,disableFuture:c,disablePast:u,required:d,sx:f,className:y,format:h="YYYY/MM/DD",displayFormat:v="YYYY/MM/DD",size:b,inputReadOnly:x,hideClearButton:g,readOnly:C}=W,T=he(W,["onChange","disabled","label","error","helperText","minDate","maxDate","disableFuture","disablePast","required","sx","className","format","displayFormat","size","inputReadOnly","hideClearButton","readOnly"]),P=p_(null),S=p_(null),[k,I]=At(r.value,r.defaultValue||"",Ny(z=>o==null?void 0:o({target:{name:r.name,value:z}}),[r.name,o]),{disableStrict:!0}),[w,B]=c_(k),[M,O]=c_(null),$=!!M;l_(()=>{var z;M||(z=P.current)==null||z.blur()},[M,P]),l_(()=>{if(!u_(w,v))return;if(k===""){B("");return}let R=Ku(Ly(k,h),v);B(R)},[v,w,h,k]),I7(t,()=>P.current,[P]);let N=Ny(z=>{if(B(z.target.value),z.target.value===""){I("");return}if(u_(z.target.value,v)){let q=Ly(z.target.value,v),ie=Ku(q,h);I(ie)}},[v,h,I]),_=Ny(z=>{O(M?null:z.currentTarget),setTimeout(()=>{var R;(R=P.current)==null||R.focus()},0)},[M,O,P]),L=Ny(z=>{var R;x&&(z.preventDefault(),(R=S.current)==null||R.focus())},[x,S]);return D(w7,{children:D(io,{open:!0,children:Pe(Pr,{children:[D(Kr,Z(F({},T),{color:i?"danger":T.color,ref:P,size:b,value:w,onChange:N,placeholder:v,disabled:n,required:d,error:i,slotProps:{input:{component:B7,ref:P,format:v,sx:{"&:hover":{cursor:x||C?"default":"text"}},onMouseDown:L}},className:y,sx:f,endDecorator:D(O7,{ref:S,variant:"plain",onClick:C?void 0:_,"aria-label":"Toggle Calendar","aria-controls":"date-picker-popper","aria-haspopup":"dialog","aria-expanded":$,disabled:n,children:D(Vi,{})}),label:a,helperText:s,readOnly:C||x})),$&&D(fn,{onClickAway:()=>O(null),children:D(D7,{id:"date-picker-popper",open:!0,anchorEl:M,placement:"bottom-end",onMouseDown:z=>z.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}],"aria-label":"Calendar Tooltip","aria-expanded":$,children:Pe(_7,{tabIndex:-1,role:"presentation",children:[D(Bi,{value:Number.isNaN(new Date(k).getTime())?void 0:[new Date(k),void 0],onChange:([z])=>{N({target:{name:r.name,value:Ku(z,h)}}),O(null)},minDate:l?new Date(l):void 0,maxDate:p?new Date(p):void 0,disableFuture:c,disablePast:u}),!g&&D(qn,{sx:{p:1},children:D(kr,{size:b,variant:"plain",color:"neutral",onClick:()=>{N({target:{name:r.name,value:""}}),O(null)},children:"Clear"})})]})})})]})})})});var d_=zy;import{motion as M7}from"framer-motion";var N7=M7(Mh),Xu=e=>{let y=e,{label:t,error:r,helperText:o,color:n,size:a,disabled:i,required:s,minRows:l=2,maxRows:p=4,sx:c,className:u}=y,d=he(y,["label","error","helperText","color","size","disabled","required","minRows","maxRows","sx","className"]),f=D(N7,F({required:s,disabled:i,color:r?"danger":n,size:a,minRows:l,maxRows:p},d));return Pe(Gn,{required:s,disabled:i,color:n,size:a,error:r,sx:c,className:u,children:[t&&D(Yn,{children:t}),f,o&&D(Jn,{children:o})]})};Xu.displayName="Textarea";var f_=Xu;import{useMemo as L7}from"react";import{motion as z7}from"framer-motion";var F7=z7(gh),Fy=F7;Fy.displayName="Option";function Zu(e){let h=e,{label:t,helperText:r,error:o,size:n,color:a,disabled:i,required:s,onChange:l,sx:p,className:c}=h,u=he(h,["label","helperText","error","size","color","disabled","required","onChange","sx","className"]),d=L7(()=>e.options.map(v=>typeof v!="object"||!("value"in v)?{value:v,label:v}:v),[e.options]),f=(v,b)=>{var C;let x=v||{target:{}},g=Z(F({},x),{target:{name:((C=x.target)==null?void 0:C.name)||e.name,value:b||void 0}});l==null||l(g)},y=D(xh,Z(F({},u),{required:s,disabled:i,size:n,color:o?"danger":a,onChange:f,children:d.map(v=>D(Fy,{value:v.value,children:v.label},v.value))}));return Pe(Gn,{required:s,disabled:i,size:n,color:a,error:o,sx:p,className:c,children:[t&&D(Yn,{children:t}),y,r&&D(Jn,{children:r})]})}Zu.displayName="Select";var m_=Zu;import{motion as V7}from"framer-motion";var $7=V7(zh),Qu=e=>D($7,F({},e));Qu.displayName="Tooltip";var Vy=Qu;import{motion as x_}from"framer-motion";import{useCallback as j7,useEffect as H7}from"react";var Us=E(kr,{name:"Pagination",slot:"button"})(({theme:e,active:t,size:r})=>({"--Button-size":{sm:"32px",md:"40px",lg:"48px"}[r],width:"var(--Button-size)",height:"var(--Button-size)",backgroundColor:t?e.vars.palette.primary.softHoverBg:"transparent",color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.plainColor,"&:hover":{color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.softColor,backgroundColor:t?e.vars.palette.primary.softActiveBg:e.vars.palette.neutral.softHoverBg}})),h_=E(or,{name:"Pagination",slot:"button"})(({theme:e,size:t})=>({"--IconButton-size":{sm:"32px",md:"40px",lg:"48px"}[t],"--Icon-fontSize":"20px",width:"var(--IconButton-size)",height:"var(--IconButton-size)",color:e.vars.palette.neutral.plainColor,"&:hover":{color:e.vars.palette.neutral.softColor,backgroundColor:e.vars.palette.neutral.softHoverBg}})),U7=E(Ct,{name:"Pagination",slot:"root"})({}),W7=E(Ct,{name:"Pagination",slot:"container"})(({theme:e,size:t})=>({gap:{sm:e.spacing(1),md:e.spacing(1.5),lg:e.spacing(2)}[t]}));function ed(e){let v=e,{paginationModel:t,defaultPaginationModel:r={page:1,pageSize:25},onPageChange:o,rowCount:n,size:a="md"}=v,i=he(v,["paginationModel","defaultPaginationModel","onPageChange","rowCount","size"]),[s,l]=At(t,r,j7(b=>{o(b.page)},[o])),p=b=>{l(Z(F({},s),{page:b}))},c=1,u=Math.max(c,Math.ceil(n/s.pageSize)),d=[s.page-2,s.page-1].filter(b=>b>1),f=[s.page+1,s.page+2].filter(b=>b<=u-1),y=u>1&&s.page<u-3,h=u>1&&s.page>4;return H7(()=>{s.page>u&&l(Z(F({},s),{page:u}))},[n,s,u,l]),D(U7,Z(F({},i),{children:Pe(W7,{direction:"row",size:a,alignItems:"center",children:[D(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-1),disabled:s.page===c,"aria-label":"Previous page",children:D(sy,{})}),s.page!==c&&D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(c),children:c}),h&&D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-3),"aria-label":"More previous pages",children:"..."}),d.map(b=>D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),D(Us,{active:!0,size:a,"aria-current":"page",children:s.page}),f.map(b=>D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),y&&D(Us,{size:a,variant:"plain",color:"neutral","aria-label":"More next pages",onClick:()=>p(s.page+3),children:"..."}),s.page!==u&&D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(u),children:u}),D(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page+1),disabled:s.page===u,"aria-label":"Next page",children:D(ly,{})})]})}))}ed.displayName="Pagination";var y_=ed;import{jsx as G7}from"react/jsx-runtime";var g_=ht(G7("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var Y7=E(g_,{name:"InfoSign",slot:"InfoSign"})(({theme:e})=>({color:e.palette.text.icon,width:"14px",height:"14px"}));function $y(e){let{message:t,placement:r}=e;return D(Vy,{arrow:!0,placement:r,sx:{[`&.${Nh.root}`]:{maxWidth:"320px"}},title:t==null?void 0:t.split(`
|
|
127
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function a7(e){e=n7(e);var t=e.decimalSeparator,r=e.allowedDecimalSeparators,o=e.thousandsGroupStyle,n=e.suffix,a=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Mi);var l=e.onBlur;l===void 0&&(l=Mi);var p=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,y=e.value,h=e.valueIsNumericString,v=e.onValueChange,b=UD(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),x=Sy(e),g=x.decimalSeparator,C=x.allowedDecimalSeparators,T=function(z){return jD(z,e)},P=function(z,R){return r7(z,R,e)},S=Op(y)?f:y,k=h!=null?h:t7(S,d,n);Op(y)?Op(f)||(k=k||typeof f=="number"):k=k||typeof y=="number";var I=function(z){return WD(z)?z:(typeof z=="number"&&(z=JD(z)),k&&typeof c=="number"?VD(z,c,!!u):z)},w=KD(I(y),I(f),!!k,T,P,v),B=w[0],M=B.numAsString,O=B.formattedValue,$=w[1],N=function(z){var R=z.target,q=z.key,ie=R.selectionStart,A=R.selectionEnd,ee=R.value;if(ee===void 0&&(ee=""),ie!==A){s(z);return}q==="Backspace"&&ee[0]==="-"&&ie===d.length+1&&a&&Hs(R,1),c&&u&&(q==="Backspace"&&ee[ie-1]===g?(Hs(R,ie-1),z.preventDefault()):q==="Delete"&&ee[ie]===g&&z.preventDefault()),C!=null&&C.includes(q)&&ee[ie]===g&&Hs(R,ie+1);var ye=p===!0?",":p;q==="Backspace"&&ee[ie-1]===ye&&Hs(R,ie-1),q==="Delete"&&ee[ie]===ye&&Hs(R,ie+1),s(z)},_=function(z){var R=M;if(R.match(/\d/g)||(R=""),i||(R=HG(R)),u&&c&&(R=VD(R,c,u)),R!==M){var q=jD(R,e);$({formattedValue:q,value:R,floatValue:parseFloat(R)},{event:z,source:Vu.event})}l(z)},L=function(z){return z===g?!0:$u(z)},W=function(z){var R=z.currentValue,q=z.lastValue,ie=z.formattedValue,A=z.currentValueIndex,ee=z.formattedValueIndex,ye=R[A],Ie=ie[ee],se=qD(q,R),U=se.to;return A>=U.start&&A<U.end&&C&&C.includes(ye)&&Ie===g?!0:ye===Ie};return Object.assign(Object.assign({},b),{value:O,valueIsNumericString:!1,isValidInputCharacter:L,isCharacterSame:W,onValueChange:$,format:T,removeFormatting:P,getCaretBoundary:function(z){return o7(z,e)},onKeyDown:N,onBlur:_})}function ky(e){var t=a7(e);return Ip.createElement(ZG,Object.assign({},t))}import i7,{useCallback as s7}from"react";import{motion as l7}from"framer-motion";var p7=l7(ap),ju=i7.forwardRef((e,t)=>{var P;let T=e,{label:r,helperText:o,error:n,style:a,size:i,color:s,disabled:l,required:p,onChange:c,name:u,sx:d,className:f,enableClearable:y}=T,h=he(T,["label","helperText","error","style","size","color","disabled","required","onChange","name","sx","className","enableClearable"]),[v,b]=At(e.value,e.defaultValue,s7(S=>{c==null||c({target:{value:(S==null?void 0:S.toString())||"",name:u||""}})},[c,u])),x=S=>{b(S.target.value)},g=()=>{b(e.defaultValue||"")},C=D(p7,Z(F({value:v,name:u,onChange:x,required:p,color:n?"danger":s,disabled:l,slotProps:F({input:F({ref:t},(P=h.slotProps)==null?void 0:P.input)},h.slotProps)},h),{endDecorator:y?Pe(Ct,{gap:1,direction:"row",children:[h.endDecorator,v&&D(or,{onMouseDown:S=>S.preventDefault(),onClick:g,"aria-label":"Clear",children:D(Zh,{})})]}):h.endDecorator}));return Pe(Gn,{required:p,color:s,size:i,error:n,disabled:l,sx:d,className:f,children:[r&&D(Yn,{children:r}),C,o&&D(Jn,{children:o})]})});ju.displayName="Input";var Kr=ju;var c7={AED:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BMD:2,BND:2,BOB:2,BRL:2,BSD:2,BWP:2,BYN:2,BZD:2,CAD:2,CHF:2,CLP:2,CNH:2,CNY:2,COP:2,CRC:2,CUP:2,CVE:0,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HTG:2,HUF:2,IDR:0,ILS:2,INR:2,IQD:3,ISK:2,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LYD:3,MAD:2,MDL:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SEK:2,SGD:2,SHP:2,SLE:2,SOS:2,SRD:2,STN:2,SVC:2,SZL:2,THB:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,UYU:2,UZS:2,VEF:2,VND:0,VUV:0,WST:2,XAF:0,XCD:2,XOF:0,XPF:0,YER:2,ZAR:2,ZMW:2},XD=(e="USD")=>{let[t,r,o,...n]=new zD(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=c7[e];return{symbol:`${t} `,thousandSeparator:r,decimalSeparator:o,placeholder:o?`${t} 0${o}${Array.from(Array(a)).map(()=>0).join("")}`:`${t} 0`,fixedDecimalScale:!!o,decimalScale:a}};var d7=e_.forwardRef(function(t,r){let a=t,{onChange:o}=a,n=he(a,["onChange"]);return D(ky,Z(F({},n),{onValueChange:({value:i})=>{o==null||o({target:{name:t.name,value:i}})},valueIsNumericString:!0,getInputRef:r,allowNegative:!1}))}),f7=E(Kr,{name:"CurrencyInput",slot:"root",overridesResolver:(e,t)=>t.root})({}),Ry=e_.forwardRef(function(t,r){let o=G({props:t,name:"CurrencyInput"}),O=o,{currency:n="USD",name:a,onChange:i,label:s,error:l,helperText:p,required:c,disabled:u,useMinorUnit:d,sx:f,className:y}=O,h=he(O,["currency","name","onChange","label","error","helperText","required","disabled","useMinorUnit","sx","className"]),{symbol:v,thousandSeparator:b,decimalSeparator:x,placeholder:g,fixedDecimalScale:C,decimalScale:T}=XD(n),[P,S]=At(o.value,o.defaultValue,ZD($=>i==null?void 0:i({target:{name:a,value:$}}),[i,a])),k=QD(()=>P&&d?P/Math.pow(10,T):P,[P,d,T]),I=QD(()=>o.max&&d?o.max/Math.pow(10,T):o.max,[o.max,d,T]),[w,B]=u7(!!I&&!!k&&k>I),M=ZD($=>{var _;if($.target.value===""){S(void 0);return}let N=Number(d?(_=$.target.value)==null?void 0:_.replace(x,""):$.target.value);I&&Number($.target.value)>I?B(!0):B(!1),S(N)},[x,I,d,S]);return D(f7,Z(F({},h),{ref:r,value:k,placeholder:g,onChange:M,error:l||w,disabled:u,required:c,color:l||w?"danger":o.color,label:s,helperText:w?new Cy(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:I}):p,slotProps:{input:{component:d7,decimalSeparator:x,thousandSeparator:b,prefix:v,fixedDecimalScale:C,decimalScale:T,"aria-label":h["aria-label"]}},sx:F({},f),className:y}))});var t_=Ry;import b_,{useCallback as Kn,useEffect as Hy,useMemo as ur,useRef as PT,useState as CT,useId as J7,forwardRef as q7,useImperativeHandle as K7}from"react";import{jsx as m7}from"react/jsx-runtime";var r_=ht(m7("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0s.39-1.02 0-1.41l-6.59-6.59a.996.996 0 0 0-1.41 0l-6.6 6.58c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1"}),"ArrowUpwardRounded");import{motion as h7}from"framer-motion";var y7=h7(Th),Hu=y7;Hu.displayName="Sheet";var tn=Hu;var Uu=e=>{let o=e,{children:t}=o,r=he(o,["children"]);return D(Oh,Z(F({},r),{children:t}))};Uu.displayName="Table";function fT(e){let{headCells:t,showCheckbox:r,onCheckboxChange:o,slots:{checkbox:n=Au}={},slotProps:{checkbox:a={}}={}}=e;return D("thead",{children:Pe("tr",{children:[r&&D("th",{style:{width:"40px",textAlign:"center"},children:D(n,F({onChange:o},a))}),t.map(i=>D("th",{style:{width:i.width,minWidth:i.minWidth,maxWidth:i.maxWidth,textAlign:i.numeric?"right":"left"},children:i.label},i.label))]})})}fT.displayName="TableHead";function mT(e){let{rows:t,cellOrder:r,rowOptions:o,showCheckbox:n,onCheckboxChange:a,slots:{checkbox:i=Au}={},slotProps:{checkbox:s={}}={}}=e;return D("tbody",{children:t.map((l,p)=>Pe("tr",{children:[n&&D("td",{style:{textAlign:"center"},children:D(i,F({onChange:c=>a==null?void 0:a(c,p)},s))}),r.map(c=>{var u;return D("td",{style:{textAlign:(u=o==null?void 0:o[c])!=null&&u.numeric?"right":"left"},children:l[c]},c)})]},p))})}mT.displayName="TableBody";import R7,{forwardRef as E7,useCallback as Ny,useEffect as l_,useImperativeHandle as I7,useRef as p_,useState as c_}from"react";function ko(e){return typeof e=="string"||e instanceof String}function hT(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function yT(e,t){return Array.isArray(t)?yT(e,(r,o)=>t.includes(o)):Object.entries(e).reduce((r,o)=>{let[n,a]=o;return t(a,n)&&(r[n]=a),r},{})}var Be={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function gT(e){switch(e){case Be.LEFT:return Be.FORCE_LEFT;case Be.RIGHT:return Be.FORCE_RIGHT;default:return e}}function Ey(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Dp(e,t){if(t===e)return!0;let r=Array.isArray(t),o=Array.isArray(e),n;if(r&&o){if(t.length!=e.length)return!1;for(n=0;n<t.length;n++)if(!Dp(t[n],e[n]))return!1;return!0}if(r!=o)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){let a=t instanceof Date,i=e instanceof Date;if(a&&i)return t.getTime()==e.getTime();if(a!=i)return!1;let s=t instanceof RegExp,l=e instanceof RegExp;if(s&&l)return t.toString()==e.toString();if(s!=l)return!1;let p=Object.keys(t);for(n=0;n<p.length;n++)if(!Object.prototype.hasOwnProperty.call(e,p[n]))return!1;for(n=0;n<p.length;n++)if(!Dp(e[p[n]],t[p[n]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}var Iy=class{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Be.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Be.RIGHT:Be.LEFT}};function Re(e,t){return new Re.InputMask(e,t)}function vT(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?Re.MaskedRegExp:ko(e)?Re.MaskedPattern:e===Date?Re.MaskedDate:e===Number?Re.MaskedNumber:Array.isArray(e)||e===Array?Re.MaskedDynamic:Re.Masked&&e.prototype instanceof Re.Masked?e:Re.Masked&&e instanceof Re.Masked?e.constructor:e instanceof Function?Re.MaskedFunction:(console.warn("Mask not found for mask",e),Re.Masked)}function Oa(e){if(!e)throw new Error("Options in not defined");if(Re.Masked){if(e.prototype instanceof Re.Masked)return{mask:e};let t=e instanceof Re.Masked?{mask:e}:hT(e)&&e.mask instanceof Re.Masked?e:{},{mask:r=void 0}=t,o=he(t,["mask"]);if(r){let n=r.mask;return F(Z(F({},yT(r,(a,i)=>!i.startsWith("_"))),{mask:r.constructor,_mask:n}),o)}}return hT(e)?F({},e):{mask:e}}function Fr(e){if(Re.Masked&&e instanceof Re.Masked)return e;let t=Oa(e),r=vT(t.mask);if(!r)throw new Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}Re.createMask=Fr;var Ni=class{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(r){}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(r){}return t!=null?t:this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch(o){}}get isActive(){return!1}};Re.MaskElement=Ni;var o_=90,g7=89,Da=class extends Ni{constructor(t){super(),this.input=t,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,r,o;return(t=(r=(o=this.input).getRootNode)==null?void 0:r.call(o))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",t.drop),this.input.addEventListener("click",t.click),this.input.addEventListener("focus",t.focus),this.input.addEventListener("blur",t.commit),this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===o_&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===g7&&t.ctrlKey))return t.preventDefault(),this._handlers.redo(t);if(this._handlers.undo&&t.keyCode===o_&&(t.metaKey||t.ctrlKey))return t.preventDefault(),this._handlers.undo(t);t.isComposing||this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo)return t.preventDefault(),this._handlers.undo(t);if(t.inputType==="historyRedo"&&this._handlers.redo)return t.preventDefault(),this._handlers.redo(t)}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){t.isComposing||this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};Re.HTMLMaskElement=Da;var Wu=class extends Da{constructor(t){super(t),this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}};Re.HTMLMaskElement=Da;var _p=class extends Da{get _unsafeSelectionStart(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o<n?o:n}get _unsafeSelectionEnd(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o>n?o:n}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;let o=this.rootElement.createRange();o.setStart(this.input.firstChild||this.input,t),o.setEnd(this.input.lastChild||this.input,r);let n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(o))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}};Re.HTMLContenteditableMaskElement=_p;var Gu=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(t){return this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Gu.MAX_LENGTH=100;var Oy=class{constructor(t,r){this.el=t instanceof Ni?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new _p(t):new Wu(t),this.masked=Fr(r),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Gu,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof Re.Masked)&&this.masked.constructor===vT(t)){this.masked.updateOptions({mask:t});return}let r=t instanceof Re.Masked?t:Fr({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){this.rawInputValue!==t&&(this.masked.rawInputValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){let o=this._listeners[t];o&&o.forEach(n=>n(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(t){let r=this.masked.unmaskedValue,o=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==r||this.value!==o||this._rawInputValue!==n;this._unmaskedValue=r,this._value=o,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),t==="auto"?this.alignCursor():t!=null&&(this.cursorPos=t),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:r,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){let i=t,{mask:r}=i,o=he(i,["mask"]),n=!this.maskEquals(r),a=this.masked.optionsIsChanged(o);n&&(this.mask=r),a&&this.masked.updateOptions(o),(n||a)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Be.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;let o=this._listeners[t].indexOf(r);return o>=0&&this._listeners[t].splice(o,1),this}_onInput(t){this._inputEvent=t,this._abortUpdateCursor();let r=new Iy({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),o=this.masked.rawInputValue,n=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=o===this.masked.rawInputValue?r.removeDirection:Be.NONE,i=this.masked.nearestInputPos(r.startChangePos+n,a);a!==Be.NONE&&(i=this.masked.nearestInputPos(i,Be.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){t&&(this._historyChanging=!0,this.unmaskedValue=t.unmaskedValue,this.el.select(t.selection.start,t.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};Re.InputMask=Oy;var He=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},t)}aggregate(t){return this.inserted+=t.inserted,this.rawInserted+=t.rawInserted,this.tailShift+=t.tailShift,this.skip=this.skip||t.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}};Re.ChangeDetails=He;var Vr=class{constructor(t,r,o){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=o}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";let r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";let t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}};var Jt=class e{constructor(t){this._value="",this._update(F(F({},e.DEFAULTS),t)),this._initialized=!0}updateOptions(t){this.optionsIsChanged(t)&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr(this.extractInput(t,r),t)}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new He({inserted:t,rawInserted:t})):new He}_appendChar(t,r,o){r===void 0&&(r={});let n=this.state,a;if([t,a]=this.doPrepareChar(t,r),t&&(a=a.aggregate(this._appendCharRaw(t,r)),!a.rawInserted&&this.autofix==="pad")){let i=this.state;this.state=n;let s=this.pad(r),l=this._appendCharRaw(t,r);s=s.aggregate(l),l.rawInserted||s.equals(a)?a=s:this.state=i}if(a.inserted){let i,s=this.doValidate(r)!==!1;if(s&&o!=null){let l=this.state;if(this.overwrite===!0){i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.unshift(this.displayValue.length-a.tailShift)}let p=this.appendTail(o);if(s=p.rawInserted.length===o.toString().length,!(s&&p.inserted)&&this.overwrite==="shift"){this.state=l,i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.shift();p=this.appendTail(o),s=p.rawInserted.length===o.toString().length}s&&p.inserted&&(this.state=l)}s||(a=new He,this.state=n,o&&i&&(o.state=i))}return a}_appendPlaceholder(){return new He}_appendEager(){return new He}append(t,r,o){if(!ko(t))throw new Error("value should be string");let n=ko(o)?new Vr(String(o)):o;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,r);for(let i=0;i<t.length;++i){let s=this._appendChar(t[i],r,n);if(!s.rawInserted&&!this.doSkipInvalid(t[i],r,n))break;a.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new He}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;let r=this.rawInputValue,o=this.value,n=t();return this.rawInputValue=r,this.value&&this.value!==o&&o.indexOf(this.value)===0&&(this.append(o.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;let r=this.state,o=t(this);return this.state=r,delete this._isolated,o}doSkipInvalid(t,r,o){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),He.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),He.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,o,n,a){o===void 0&&(o=""),n===void 0&&(n=Be.NONE),a===void 0&&(a={input:!0});let i=t+r,s=this.extractTail(i),l=this.eager===!0||this.eager==="remove",p;l&&(n=gT(n),p=this.extractInput(0,i,{raw:!0}));let c=t,u=new He;if(n!==Be.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!l?Be.NONE:n),u.tailShift=c-t),u.aggregate(this.remove(c)),l&&n!==Be.NONE&&p===this.rawInputValue)if(n===Be.FORCE_LEFT){let d;for(;p===this.rawInputValue&&(d=this.displayValue.length);)u.aggregate(new He({tailShift:-1})).aggregate(this.remove(d-1))}else n===Be.FORCE_RIGHT&&s.unshift();return u.aggregate(this.append(o,a,s))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!Dp(this,t)}typedValueEquals(t){let r=this.typedValue;return t===r||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(t){return new He}};Jt.DEFAULTS={skipInvalid:!0};Jt.EMPTY_VALUES=[void 0,null,""];Re.Masked=Jt;var wp=class e{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=ko(t)?new Vr(String(t)):t;let r=this.chunks[this.chunks.length-1],o=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof Vr)o?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(t.stop==null){let n;for(;t.chunks.length&&t.chunks[0].stop==null;)n=t.chunks.shift(),n.from+=t.from,this.extend(n)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof Re.MaskedPattern))return new Vr(this.toString()).appendTo(t);let r=new He;for(let o=0;o<this.chunks.length;++o){let n=this.chunks[o],a=t._mapPosToBlock(t.displayValue.length),i=n.stop,s;if(i!=null&&(!a||a.index<=i)&&((n instanceof e||t._stops.indexOf(i)>=0)&&r.aggregate(t._appendPlaceholder(i)),s=n instanceof e&&t._blocks[i]),s){let l=s.appendTail(n);r.aggregate(l);let p=n.toString().slice(l.rawInserted.length);p&&r.aggregate(t.append(p,{tail:!0}))}else r.aggregate(t.append(n.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let n=t,{chunks:r}=n,o=he(n,["chunks"]);Object.assign(this,o),this.chunks=r.map(a=>{let i="chunks"in a?new e:new Vr;return i.state=a,i})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";let r=t!=null?t-this.from:t,o=0;for(;o<this.chunks.length;){let n=this.chunks[o],a=n.unshift(r);if(n.toString()){if(!a)break;++o}else this.chunks.splice(o,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){let r=this.chunks[t],o=r.shift();if(r.toString()){if(!o)break;--t}else this.chunks.splice(t,1);if(o)return o}return""}};var Dy=class{constructor(t,r){this.masked=t,this._log=[];let{offset:o,index:n}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=o,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){let t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}};var Ap=class{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new He}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this._value.length;switch(r){case Be.LEFT:case Be.FORCE_LEFT:return o;case Be.NONE:case Be.RIGHT:case Be.FORCE_RIGHT:default:return n}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),o===void 0&&(o={}),o.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new He;let o=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!o)&&!r.tail,i=new He({inserted:this.char,rawInserted:a?this.char:""});return this._value=this.char,this._isRawInput=a&&(r.raw||r.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let t=new He;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new Vr("")}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}append(t,r,o){let n=this._appendChar(t[0],r);return o!=null&&(n.tailShift+=this.appendTail(o).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}pad(t){return this._appendPlaceholder()}};var Li=class{constructor(t){let p=t,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s}=p,l=he(p,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=Fr(l),Object.assign(this,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new He}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new He;let o=this.masked.state,n=this.masked._appendChar(t,this.currentMaskFlags(r));return n.inserted&&this.doValidate(r)===!1&&(n=new He,this.masked.state=o),!n.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(t,r,o){return this.masked.append(t,this.currentMaskFlags(r),o)}_appendPlaceholder(){return this.isFilled||this.isOptional?new He:(this.isFilled=!0,new He({inserted:this.placeholderChar}))}_appendEager(){return new He}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,o)}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this.value.length,a=Math.min(Math.max(t,o),n);switch(r){case Be.LEFT:case Be.FORCE_LEFT:return this.isComplete?a:o;case Be.RIGHT:case Be.FORCE_RIGHT:return this.isComplete?a:n;case Be.NONE:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return Z(F({},t),{_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)})}pad(t){return new He}};Li.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var _y=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){let r=t.mask;r&&(t.validate=o=>o.search(r)>=0),super._update(t)}};Re.MaskedRegExp=_y;var nr=class e extends Jt{constructor(t){super(Z(F(F({},e.DEFAULTS),t),{definitions:Object.assign({},Li.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)}))}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let r=this.mask;if(!r||!t)return;let o=!1,n=!1;for(let i=0;i<r.length;++i){if(this.blocks){let c=r.slice(i),u=Object.keys(this.blocks).filter(f=>c.indexOf(f)===0);u.sort((f,y)=>y.length-f.length);let d=u[0];if(d){let a=Oa(this.blocks[d]),{expose:f,repeat:y}=a,h=he(a,["expose","repeat"]),v=Z(F({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix},h),{repeat:y,parent:this}),b=y!=null?new Re.RepeatBlock(v):Fr(v);b&&(this._blocks.push(b),f&&(this.exposeBlock=b),this._maskedBlocks[d]||(this._maskedBlocks[d]=[]),this._maskedBlocks[d].push(this._blocks.length-1)),i+=d.length-1;continue}}let s=r[i],l=s in t;if(s===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(s==="{"||s==="}"){o=!o;continue}if(s==="["||s==="]"){n=!n;continue}if(s===e.ESCAPE_CHAR){if(++i,s=r[i],!s)break;l=!1}let p=l?new Li(Z(F({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},Oa(t[s])),{parent:this})):new Ap({char:s,eager:this.eager,isUnmasking:o});this._blocks.push(p)}}get state(){return Z(F({},super.state),{_blocks:this._blocks.map(t=>t.state)})}set state(t){if(!t){this.reset();return}let n=t,{_blocks:r}=n,o=he(n,["_blocks"]);this._blocks.forEach((a,i)=>a.state=r[i]),super.state=o}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;let r=new He,o=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(o==null)return r;this._blocks[o].isFilled&&++o;for(let n=o;n<this._blocks.length;++n){let a=this._blocks[n]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._mapPosToBlock(this.displayValue.length),n=new He;if(!o)return n;for(let i=o.index,s;s=this._blocks[i];++i){var a;let l=s._appendChar(t,Z(F({},r),{_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]}));if(n.aggregate(l),l.consumed)break}return n}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=new wp;return t===r||this._forEachBlocksInRange(t,r,(n,a,i,s)=>{let l=n.extractTail(i,s);l.stop=this._findStopBefore(a),l.from=this._blockStartPos(a),l instanceof wp&&(l.blockIndex=a),o.extend(l)}),o}extractInput(t,r,o){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),o===void 0&&(o={}),t===r)return"";let n="";return this._forEachBlocksInRange(t,r,(a,i,s,l)=>{n+=a.extractInput(s,l,o)}),n}_findStopBefore(t){let r;for(let o=0;o<this._stops.length;++o){let n=this._stops[o];if(n<=t)r=n;else break}return r}_appendPlaceholder(t){let r=new He;if(this.lazy&&t==null)return r;let o=this._mapPosToBlock(this.displayValue.length);if(!o)return r;let n=o.index,a=t!=null?t:this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||t!=null){var s;r.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}),r}_mapPosToBlock(t){let r="";for(let o=0;o<this._blocks.length;++o){let n=this._blocks[o],a=r.length;if(r+=n.displayValue,t<=r.length)return{index:o,offset:t-a}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,o)=>r+=o.displayValue.length,0)}_forEachBlocksInRange(t,r,o){r===void 0&&(r=this.displayValue.length);let n=this._mapPosToBlock(t);if(n){let a=this._mapPosToBlock(r),i=a&&n.index===a.index,s=n.offset,l=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(o(this._blocks[n.index],n.index,s,l),a&&!i){for(let p=n.index+1;p<a.index;++p)o(this._blocks[p],p,0,this._blocks[p].displayValue.length);o(this._blocks[a.index],a.index,0,a.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o.aggregate(n.remove(i,s))}),o}nearestInputPos(t,r){if(r===void 0&&(r=Be.NONE),!this._blocks.length)return 0;let o=new Dy(this,t);if(r===Be.NONE)return o.pushRightBeforeInput()||(o.popState(),o.pushLeftBeforeInput())?o.pos:this.displayValue.length;if(r===Be.LEFT||r===Be.FORCE_LEFT){if(r===Be.LEFT){if(o.pushRightBeforeFilled(),o.ok&&o.pos===t)return t;o.popState()}if(o.pushLeftBeforeInput(),o.pushLeftBeforeRequired(),o.pushLeftBeforeFilled(),r===Be.LEFT){if(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.ok&&o.pos<=t||(o.popState(),o.ok&&o.pos<=t))return o.pos;o.popState()}return o.ok?o.pos:r===Be.FORCE_LEFT?0:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:0)}return r===Be.RIGHT||r===Be.FORCE_RIGHT?(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.pushRightBeforeFilled()?o.pos:r===Be.FORCE_RIGHT?this.displayValue.length:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:this.nearestInputPos(t,Be.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=0;return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o+=n.totalInputPositions(i,s)}),o}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){let r=this._maskedBlocks[t];return r?r.map(o=>this._blocks[o]):[]}pad(t){let r=new He;return this._forEachBlocksInRange(0,this.displayValue.length,o=>r.aggregate(o.pad(t))),r}};nr.DEFAULTS=Z(F({},Jt.DEFAULTS),{lazy:!0,placeholderChar:"_"});nr.STOP_CHAR="`";nr.ESCAPE_CHAR="\\";nr.InputDefinition=Li;nr.FixedDefinition=Ap;Re.MaskedPattern=nr;var zi=class extends nr{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){let c=t,{to:r=this.to||0,from:o=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix}=c,i=he(c,["to","from","maxLength","autofix"]);this.to=r,this.from=o,this.maxLength=Math.max(String(r).length,n),this.autofix=a;let s=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0"),p=0;for(;p<l.length&&l[p]===s[p];)++p;i.mask=l.slice(0,p).replace(/0/g,"\\0")+"0".repeat(this.maxLength-p),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",o="",[,n,a]=t.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(n.length)+a,o="9".repeat(n.length)+a),r=r.padEnd(this.maxLength,"0"),o=o.padEnd(this.maxLength,"9"),[r,o]}doPrepareChar(t,r){r===void 0&&(r={});let o;return[t,o]=super.doPrepareChar(t.replace(/\D/g,""),r),t||(o.skip=!this.isComplete),[t,o]}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,r);let o=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+t);return Number(i)<this.from?super._appendCharRaw(o[this.value.length],r):Number(a)>this.to?!r.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(o[this.value.length],r).aggregate(this._appendCharRaw(t,r)):super._appendCharRaw(n[this.value.length],r):super._appendCharRaw(t,r)}doValidate(t){let r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;let[n,a]=this.boundaries(r);return this.from<=Number(a)&&Number(n)<=this.to&&super.doValidate(t)}pad(t){let r=new He;if(this.value.length===this.maxLength)return r;let o=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)r.aggregate(super._appendCharRaw("0",t));o.split("").forEach(a=>this._appendCharRaw(a))}return r}};Re.MaskedRange=zi;var Bp=class e extends nr{static extractPatternOptions(t){let a=t,{mask:r,pattern:o}=a,n=he(a,["mask","pattern"]);return Z(F({},n),{mask:ko(r)?r:o})}constructor(t){super(e.extractPatternOptions(F(F({},e.DEFAULTS),t)))}updateOptions(t){super.updateOptions(t)}_update(t){let s=F(F({},e.DEFAULTS),t),{mask:r,pattern:o,blocks:n}=s,a=he(s,["mask","pattern","blocks"]),i=Object.assign({},e.GET_DEFAULT_BLOCKS());t.min&&(i.Y.from=t.min.getFullYear()),t.max&&(i.Y.to=t.max.getFullYear()),t.min&&t.max&&i.Y.from===i.Y.to&&(i.m.from=t.min.getMonth()+1,i.m.to=t.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=t.min.getDate(),i.d.to=t.max.getDate())),Object.assign(i,this.blocks,n),super._update(Z(F({},a),{mask:ko(r)?r:o,blocks:i}))}doValidate(t){let r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(e.extractPatternOptions(t))}};Bp.GET_DEFAULT_BLOCKS=()=>({d:{mask:zi,from:1,to:31,maxLength:2},m:{mask:zi,from:1,to:12,maxLength:2},Y:{mask:zi,from:1900,to:9999}});Bp.DEFAULTS=Z(F({},nr.DEFAULTS),{mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return[r,o,n].join(".")},parse:(e,t)=>{let[r,o,n]=e.split(".").map(Number);return new Date(n,o-1,r)}});Re.MaskedDate=Bp;var Yu=class e extends Jt{constructor(t){super(F(F({},e.DEFAULTS),t)),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{let i=Oa(r),{expose:o}=i,n=he(i,["expose"]),a=Fr(F({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid},n));return o&&(this.exposeMask=a),a}):[])}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._applyDispatch(t,r);return this.currentMask&&o.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),o}_applyDispatch(t,r,o){t===void 0&&(t=""),r===void 0&&(r={}),o===void 0&&(o="");let n=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,i=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,s=a.slice(i.length),l=this.currentMask,p=new He,c=l==null?void 0:l.state;return this.currentMask=this.doDispatch(t,F({},r),o),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),p.tailShift=this.currentMask.value.length-n.length),s&&(p.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)):c&&(this.currentMask.state=c)),p}_appendPlaceholder(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){let r=new He;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,o;return Z(F({},t),{_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((o=t._beforeTailState)==null?void 0:o.currentMask)||t._beforeTailState})}doDispatch(t,r,o){return r===void 0&&(r={}),o===void 0&&(o=""),this.dispatch(t,this,r,o)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[o,n]=super.doPrepare(t,r);if(this.currentMask){let a;[o,a]=super.doPrepare(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(t,r);if(this.currentMask){let a;[o,a]=super.doPrepareChar(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){let o=new He;return this.currentMask&&o.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),o}get state(){var t;return Z(F({},super.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state})}set state(t){let i=t,{compiledMasks:r,currentMaskRef:o,currentMask:n}=i,a=he(i,["compiledMasks","currentMaskRef","currentMask"]);r&&this.compiledMasks.forEach((s,l)=>s.state=r[l]),o!=null&&(this.currentMask=o,this.currentMask.state=n),super.state=a}extractInput(t,r,o){return this.currentMask?this.currentMask.extractInput(t,r,o):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,o)=>{if(!t[o])return;let i=t[o],{mask:n}=i,a=he(i,["mask"]);return Dp(r,a)&&r.maskEquals(n)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}};Yu.DEFAULTS=Z(F({},Jt.DEFAULTS),{dispatch:(e,t,r,o)=>{if(!t.compiledMasks.length)return;let n=t.rawInputValue,a=t.compiledMasks.map((i,s)=>{let l=t.currentMask===i,p=l?i.displayValue.length:i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):l||i.remove(p),i.append(e,t.currentMaskFlags(r)),i.appendTail(o),{index:s,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(p,i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT)))}});return a.sort((i,s)=>s.weight-i.weight||s.totalInputPositions-i.totalInputPositions),t.compiledMasks[a[0].index]}});Re.MaskedDynamic=Yu;var Ju=class e extends nr{constructor(t){super(F(F({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){let n=t,{enum:r}=n,o=he(n,["enum"]);if(r){let a=r.map(l=>l.length),i=Math.min(...a),s=Math.max(...a)-i;o.mask="*".repeat(i),s&&(o.mask+="["+"*".repeat(s)+"]"),this.enum=r}super._update(o)}_appendCharRaw(t,r){r===void 0&&(r={});let o=Math.min(this.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+t,o));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,s)=>{let l=n[0][s];s>=this.value.length||l===i.value||(i.reset(),i._appendChar(l,r))});let a=super._appendCharRaw(n[0][this.value.length],r);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new He}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr("",t)}remove(t,r){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),t===r)return new He;let o=Math.min(super.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n;for(n=t;n>=0&&!(this.enum.filter(s=>this.matchValue(s,this.value.slice(o,n),o)).length>1);--n);let a=super.remove(n,r);return a.tailShift+=n-t,a}};Ju.DEFAULTS=Z(F({},nr.DEFAULTS),{matchValue:(e,t,r)=>e.indexOf(t,r)===r});Re.MaskedEnum=Ju;var wy=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){super._update(Z(F({},t),{validate:t.mask}))}};Re.MaskedFunction=wy;var n_,Fi=class e extends Jt{constructor(t){super(F(F({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",o=(this.scale?"("+Ey(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+o),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ey).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ey(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){let r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!o&&(n.skip=!0),o&&!this.allowPositive&&!this.value&&o!=="-"&&n.aggregate(this._appendChar("-")),[o,n]}_separatorsCount(t,r){r===void 0&&(r=!1);let o=0;for(let n=0;n<t;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++o,r&&(t+=this.thousandsSeparator.length));return o}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,o))}_appendCharRaw(t,r){r===void 0&&(r={});let o=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(o);this._value=this._removeThousandsSeparators(this.value);let a=this._value;this._value+=t;let i=this.number,s=!isNaN(i),l=!1;if(s){let d;this.min!=null&&this.min<0&&this.number<this.min&&(d=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(d=this.max),d!=null&&(this.autofix?(this._value=this.format(d,this).replace(e.UNMASKED_RADIX,this.radix),l||(l=a===this._value&&!r.tail)):s=!1),s&&(s=!!this._value.match(this._numberRegExp))}let p;s?p=new He({inserted:this._value.slice(a.length),rawInserted:l?"":t,skip:l}):(this._value=a,p=new He),this._value=this._insertThousandsSeparators(this._value);let c=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,u=this._separatorsCountFromSlice(c);return p.tailShift+=(u-n)*this.thousandsSeparator.length,p}_findSeparatorAround(t){if(this.thousandsSeparator){let r=t-this.thousandsSeparator.length+1,o=this.value.indexOf(this.thousandsSeparator,r);if(o<=t)return o}return-1}_adjustRangeWithSeparators(t,r){let o=this._findSeparatorAround(t);o>=0&&(t=o);let n=this._findSeparatorAround(r);return n>=0&&(r=n+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);let o=this.value.slice(0,t),n=this.value.slice(r),a=this._separatorsCount(o.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(o+n));let i=this._separatorsCountFromSlice(o);return new He({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case Be.NONE:case Be.LEFT:case Be.FORCE_LEFT:{let o=this._findSeparatorAround(t-1);if(o>=0){let n=o+this.thousandsSeparator.length;if(t<n||this.value.length<=n||r===Be.FORCE_LEFT)return o}break}case Be.RIGHT:case Be.FORCE_RIGHT:{let o=this._findSeparatorAround(t);if(o>=0)return o+this.thousandsSeparator.length}}return t}doCommit(){if(this.value){let t=this.number,r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let o=this.value;this.normalizeZeros&&(o=this._normalizeZeros(o)),this.padFractionalZeros&&this.scale>0&&(o=this._padFractionalZeros(o)),this._value=o}super.doCommit()}_normalizeZeros(t){let r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(o,n,a,i)=>n+i),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;let r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,o){r===void 0&&(r={});let n=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,o)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}};n_=Fi;Fi.UNMASKED_RADIX=".";Fi.EMPTY_VALUES=[...Jt.EMPTY_VALUES,0];Fi.DEFAULTS=Z(F({},Jt.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[n_.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})});Re.MaskedNumber=Fi;var Ay={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function bT(e,t,r){t===void 0&&(t=Ay.MASKED),r===void 0&&(r=Ay.MASKED);let o=Fr(e);return n=>o.runIsolated(a=>(a[t]=n,a[r]))}function a_(e,t,r,o){return bT(t,r,o)(e)}Re.PIPE_TYPE=Ay;Re.createPipe=bT;Re.pipe=a_;var By=class extends nr{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:1/0}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var r,o,n;let l=Oa(t),{repeat:a}=l,i=he(l,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,i);let s=Fr(this._blockOpts);this.repeat=(r=(o=a!=null?a:s.repeat)!=null?o:this.repeat)!=null?r:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:s},eager:s.eager,overwrite:s.overwrite,skipInvalid:s.skipInvalid,lazy:s.lazy,placeholderChar:s.placeholderChar,displayChar:s.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Fr(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(t,r){r===void 0&&(r={});let o=new He;for(let l=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),p,c;p=(i=this._blocks[l])!=null?i:c=!c&&this._allocateBlock(l);++l){var n,a,i,s;let u=p._appendChar(t,Z(F({},r),{_beforeTailState:(s=r._beforeTailState)==null||(s=s._blocks)==null?void 0:s[l]}));if(u.skip&&c){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(o.aggregate(u),u.consumed)break}return o}_trimEmptyTail(t,r){var o,n;t===void 0&&(t=0);let a=Math.max(((o=this._mapPosToBlock(t))==null?void 0:o.index)||0,this.repeatFrom,0),i;r!=null&&(i=(n=this._mapPosToBlock(r))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let s=0;for(let l=i;a<=l&&!this._blocks[l].unmaskedValue;--l,++s);s&&(this._blocks.splice(i-s+1,s),this.mask=this.mask.slice(s))}reset(){super.reset(),this._trimEmptyTail()}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._trimEmptyTail(t,r),o}totalInputPositions(t,r){return t===void 0&&(t=0),r==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(t,r)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=t}};Re.RepeatBlock=By;try{globalThis.IMask=Re}catch(e){}import TT from"react";var Fe=wo(VC(),1);import My from"react";var i_={mask:Fe.default.oneOfType([Fe.default.array,Fe.default.func,Fe.default.string,Fe.default.instanceOf(RegExp),Fe.default.oneOf([Date,Number,Re.Masked]),Fe.default.instanceOf(Re.Masked)]),value:Fe.default.any,unmask:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["typed"])]),prepare:Fe.default.func,prepareChar:Fe.default.func,validate:Fe.default.func,commit:Fe.default.func,overwrite:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["shift"])]),eager:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["append","remove"])]),skipInvalid:Fe.default.bool,onAccept:Fe.default.func,onComplete:Fe.default.func,placeholderChar:Fe.default.string,displayChar:Fe.default.string,lazy:Fe.default.bool,definitions:Fe.default.object,blocks:Fe.default.object,enum:Fe.default.arrayOf(Fe.default.string),maxLength:Fe.default.number,from:Fe.default.number,to:Fe.default.number,pattern:Fe.default.string,format:Fe.default.func,parse:Fe.default.func,autofix:Fe.default.oneOfType([Fe.default.bool,Fe.default.oneOf(["pad"])]),radix:Fe.default.string,thousandsSeparator:Fe.default.string,mapToRadix:Fe.default.arrayOf(Fe.default.string),scale:Fe.default.number,normalizeZeros:Fe.default.bool,padFractionalZeros:Fe.default.bool,min:Fe.default.oneOfType([Fe.default.number,Fe.default.instanceOf(Date)]),max:Fe.default.oneOfType([Fe.default.number,Fe.default.instanceOf(Date)]),dispatch:Fe.default.func,inputRef:Fe.default.oneOfType([Fe.default.func,Fe.default.shape({current:Fe.default.object})])},s_=Object.keys(i_).filter(e=>e!=="value"),v7=["value","unmask","onAccept","onComplete","inputRef"],b7=s_.filter(e=>v7.indexOf(e)<0);function xT(e){var t;let r=(t=class extends My.Component{constructor(a){super(a),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let a=this.props,i=this._extractMaskOptionsFromProps(a);if(i.mask)this.maskRef?(this.maskRef.updateOptions(i),"value"in a&&a.value!==void 0&&(this.maskValue=a.value)):this.initMask(i);else if(this.destroyMask(),"value"in a&&a.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=a.value:this.element.value=a.value}}componentWillUnmount(){this.destroyMask()}_inputRef(a){this.element=a,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=a:this.props.inputRef(a))}initMask(a){a===void 0&&(a=this._extractMaskOptionsFromProps(this.props)),this.maskRef=Re(this.element,a).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(a){let i=he(a,[]);return Object.keys(i).filter(s=>b7.indexOf(s)<0).forEach(s=>{delete i[s]}),i}_extractNonMaskProps(a){let i=he(a,[]);return s_.forEach(s=>{s!=="maxLength"&&delete i[s]}),"defaultValue"in i||(i.defaultValue=a.mask?"":i.value),delete i.value,i}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(a){this.maskRef&&(a=a==null&&this.props.unmask!=="typed"?"":a,this.props.unmask==="typed"?this.maskRef.typedValue=a:this.props.unmask?this.maskRef.unmaskedValue=a:this.maskRef.value=a)}_onAccept(a){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,a)}_onComplete(a){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,a)}render(){return My.createElement(e,Z(F({},this._extractNonMaskProps(this.props)),{inputRef:this._inputRef}))}},t.displayName=void 0,t.propTypes=void 0,t),o=e.displayName||e.name||"Component";return r.displayName="IMask("+o+")",r.propTypes=i_,My.forwardRef((n,a)=>My.createElement(r,Z(F({},n),{ref:a})))}var x7=xT(e=>{let o=e,{inputRef:t}=o,r=he(o,["inputRef"]);return TT.createElement("input",Z(F({},r),{ref:t}))}),T7=(e,t)=>TT.createElement(x7,Z(F({},e),{ref:t})),_a=TT.forwardRef(T7);import{useRef as lZe,useState as pZe,useCallback as cZe,useEffect as uZe}from"react";import"react";import{jsx as P7}from"react/jsx-runtime";var Vi=ht(P7("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");import{motion as C7}from"framer-motion";var S7=C7(Gm),k7=E(S7)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),qu=k7;qu.displayName="DialogActions";var qn=qu;var O7=E(or,{name:"DatePicker",slot:"calendarButton"})(({theme:e})=>({"&:focus":{"--Icon-color":"currentColor",outlineOffset:`${e.getCssVar("focus-thickness")}`,outline:`${e.getCssVar("focus-thickness")} solid ${e.getCssVar("palette-focusVisible")}`}})),D7=E(Yt,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),_7=E(tn,{name:"DatePicker",slot:"sheet",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),w7=E("div",{name:"DatePicker",slot:"root",overridesResolver:(e,t)=>t.root})({width:"100%"}),u_=(e,t)=>{try{let r=Ly(e,t);return r.toString()==="Invalid Date"||e!==Ku(r,t)?!1:new RegExp(`^${t.replace(/Y/g,"\\d").replace(/M/g,"\\d").replace(/D/g,"\\d")}$`).test(e)}catch(r){return!1}},Ku=(e,t)=>{let r=`${e.getDate()}`,o=`${e.getMonth()+1}`,n=e.getFullYear();return Number(r)<10&&(r="0"+r),Number(o)<10&&(o="0"+o),t.replace(/YYYY/g,n.toString()).replace(/MM/g,o).replace(/DD/g,r)};function Ly(e,t){let r=t.split(/[-./\s]/),o=e.split(/[-./\s]/);if(r.length!==o.length)throw new Error("Invalid date string or format");let n,a,i;for(let l=0;l<r.length;l++){let p=parseInt(o[l],10);switch(r[l]){case"DD":n=p;break;case"MM":a=p-1;break;case"YYYY":i=p;break}}return new Date(i,a,n)}var A7=e=>e.replace(/YYYY/g,"Y").replace(/MM/g,"M").replace(/DD/g,"D").replace(/[^YMD\s]/g,t=>`${t}\``),B7=R7.forwardRef(function(t,r){let i=t,{onChange:o,format:n}=i,a=he(i,["onChange","format"]);return D(_a,Z(F({},a),{inputRef:r,onAccept:s=>o({target:{name:t.name,value:s}}),mask:Date,pattern:A7(n),blocks:{D:{mask:Re.MaskedRange,from:1,to:31,maxLength:2},M:{mask:Re.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Re.MaskedRange,from:1900,to:9999,maxLength:4}},format:s=>Ku(s,n),parse:s=>Ly(s,n),autofix:"pad",overwrite:!0}))}),zy=E7((e,t)=>{let r=G({props:e,name:"DatePicker"}),W=r,{onChange:o,disabled:n,label:a,error:i,helperText:s,minDate:l,maxDate:p,disableFuture:c,disablePast:u,required:d,sx:f,className:y,format:h="YYYY/MM/DD",displayFormat:v="YYYY/MM/DD",size:b,inputReadOnly:x,hideClearButton:g,readOnly:C}=W,T=he(W,["onChange","disabled","label","error","helperText","minDate","maxDate","disableFuture","disablePast","required","sx","className","format","displayFormat","size","inputReadOnly","hideClearButton","readOnly"]),P=p_(null),S=p_(null),[k,I]=At(r.value,r.defaultValue||"",Ny(z=>o==null?void 0:o({target:{name:r.name,value:z}}),[r.name,o]),{disableStrict:!0}),[w,B]=c_(k),[M,O]=c_(null),$=!!M;l_(()=>{var z;M||(z=P.current)==null||z.blur()},[M,P]),l_(()=>{if(!u_(w,v))return;if(k===""){B("");return}let R=Ku(Ly(k,h),v);B(R)},[v,w,h,k]),I7(t,()=>P.current,[P]);let N=Ny(z=>{if(B(z.target.value),z.target.value===""){I("");return}if(u_(z.target.value,v)){let q=Ly(z.target.value,v),ie=Ku(q,h);I(ie)}},[v,h,I]),_=Ny(z=>{O(M?null:z.currentTarget),setTimeout(()=>{var R;(R=P.current)==null||R.focus()},0)},[M,O,P]),L=Ny(z=>{var R;x&&(z.preventDefault(),(R=S.current)==null||R.focus())},[x,S]);return D(w7,{children:D(io,{open:!0,children:Pe(Pr,{children:[D(Kr,Z(F({},T),{color:i?"danger":T.color,ref:P,size:b,value:w,onChange:N,placeholder:v,disabled:n,required:d,error:i,slotProps:{input:{component:B7,ref:P,format:v,sx:{"&:hover":{cursor:x||C?"default":"text"}},onMouseDown:L}},className:y,sx:f,endDecorator:D(O7,{ref:S,variant:"plain",onClick:C?void 0:_,"aria-label":"Toggle Calendar","aria-controls":"date-picker-popper","aria-haspopup":"dialog","aria-expanded":$,disabled:n,children:D(Vi,{})}),label:a,helperText:s,readOnly:C||x})),$&&D(fn,{onClickAway:()=>O(null),children:D(D7,{id:"date-picker-popper",open:!0,anchorEl:M,placement:"bottom-end",onMouseDown:z=>z.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}],"aria-label":"Calendar Tooltip","aria-expanded":$,children:Pe(_7,{tabIndex:-1,role:"presentation",children:[D(Bi,{value:Number.isNaN(new Date(k).getTime())?void 0:[new Date(k),void 0],onChange:([z])=>{N({target:{name:r.name,value:Ku(z,h)}}),O(null)},minDate:l?new Date(l):void 0,maxDate:p?new Date(p):void 0,disableFuture:c,disablePast:u}),!g&&D(qn,{sx:{p:1},children:D(kr,{size:b,variant:"plain",color:"neutral",onClick:()=>{N({target:{name:r.name,value:""}}),O(null)},children:"Clear"})})]})})})]})})})});var d_=zy;import{motion as M7}from"framer-motion";var N7=M7(Mh),Xu=e=>{let y=e,{label:t,error:r,helperText:o,color:n,size:a,disabled:i,required:s,minRows:l=2,maxRows:p=4,sx:c,className:u}=y,d=he(y,["label","error","helperText","color","size","disabled","required","minRows","maxRows","sx","className"]),f=D(N7,F({required:s,disabled:i,color:r?"danger":n,size:a,minRows:l,maxRows:p},d));return Pe(Gn,{required:s,disabled:i,color:n,size:a,error:r,sx:c,className:u,children:[t&&D(Yn,{children:t}),f,o&&D(Jn,{children:o})]})};Xu.displayName="Textarea";var f_=Xu;import{useMemo as L7}from"react";import{motion as z7}from"framer-motion";var F7=z7(gh),Fy=F7;Fy.displayName="Option";function Zu(e){let h=e,{label:t,helperText:r,error:o,size:n,color:a,disabled:i,required:s,onChange:l,sx:p,className:c}=h,u=he(h,["label","helperText","error","size","color","disabled","required","onChange","sx","className"]),d=L7(()=>e.options.map(v=>v.hasOwnProperty("value")&&v.hasOwnProperty("label")?v:{value:v,label:v}),[e.options]),f=(v,b)=>{var C;let x=v||{target:{}},g=Z(F({},x),{target:Z(F({},x.target),{name:((C=x.target)==null?void 0:C.name)||e.name,value:b||void 0})});l==null||l(g,b)},y=D(xh,Z(F({},u),{required:s,disabled:i,size:n,color:o?"danger":a,onChange:f,children:d.map(v=>D(Fy,{value:v.value,children:v.label},v.value))}));return Pe(Gn,{required:s,disabled:i,size:n,color:a,error:o,sx:p,className:c,children:[t&&D(Yn,{children:t}),y,r&&D(Jn,{children:r})]})}Zu.displayName="Select";var m_=Zu;import{motion as V7}from"framer-motion";var $7=V7(zh),Qu=e=>D($7,F({},e));Qu.displayName="Tooltip";var Vy=Qu;import{motion as x_}from"framer-motion";import{useCallback as j7,useEffect as H7}from"react";var Us=E(kr,{name:"Pagination",slot:"button"})(({theme:e,active:t,size:r})=>({"--Button-size":{sm:"32px",md:"40px",lg:"48px"}[r],width:"var(--Button-size)",height:"var(--Button-size)",backgroundColor:t?e.vars.palette.primary.softHoverBg:"transparent",color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.plainColor,"&:hover":{color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.softColor,backgroundColor:t?e.vars.palette.primary.softActiveBg:e.vars.palette.neutral.softHoverBg}})),h_=E(or,{name:"Pagination",slot:"button"})(({theme:e,size:t})=>({"--IconButton-size":{sm:"32px",md:"40px",lg:"48px"}[t],"--Icon-fontSize":"20px",width:"var(--IconButton-size)",height:"var(--IconButton-size)",color:e.vars.palette.neutral.plainColor,"&:hover":{color:e.vars.palette.neutral.softColor,backgroundColor:e.vars.palette.neutral.softHoverBg}})),U7=E(Ct,{name:"Pagination",slot:"root"})({}),W7=E(Ct,{name:"Pagination",slot:"container"})(({theme:e,size:t})=>({gap:{sm:e.spacing(1),md:e.spacing(1.5),lg:e.spacing(2)}[t]}));function ed(e){let v=e,{paginationModel:t,defaultPaginationModel:r={page:1,pageSize:25},onPageChange:o,rowCount:n,size:a="md"}=v,i=he(v,["paginationModel","defaultPaginationModel","onPageChange","rowCount","size"]),[s,l]=At(t,r,j7(b=>{o(b.page)},[o])),p=b=>{l(Z(F({},s),{page:b}))},c=1,u=Math.max(c,Math.ceil(n/s.pageSize)),d=[s.page-2,s.page-1].filter(b=>b>1),f=[s.page+1,s.page+2].filter(b=>b<=u-1),y=u>1&&s.page<u-3,h=u>1&&s.page>4;return H7(()=>{s.page>u&&l(Z(F({},s),{page:u}))},[n,s,u,l]),D(U7,Z(F({},i),{children:Pe(W7,{direction:"row",size:a,alignItems:"center",children:[D(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-1),disabled:s.page===c,"aria-label":"Previous page",children:D(sy,{})}),s.page!==c&&D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(c),children:c}),h&&D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-3),"aria-label":"More previous pages",children:"..."}),d.map(b=>D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),D(Us,{active:!0,size:a,"aria-current":"page",children:s.page}),f.map(b=>D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),y&&D(Us,{size:a,variant:"plain",color:"neutral","aria-label":"More next pages",onClick:()=>p(s.page+3),children:"..."}),s.page!==u&&D(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(u),children:u}),D(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page+1),disabled:s.page===u,"aria-label":"Next page",children:D(ly,{})})]})}))}ed.displayName="Pagination";var y_=ed;import{jsx as G7}from"react/jsx-runtime";var g_=ht(G7("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var Y7=E(g_,{name:"InfoSign",slot:"InfoSign"})(({theme:e})=>({color:e.palette.text.icon,width:"14px",height:"14px"}));function $y(e){let{message:t,placement:r}=e;return D(Vy,{arrow:!0,placement:r,sx:{[`&.${Nh.root}`]:{maxWidth:"320px"}},title:t==null?void 0:t.split(`
|
|
128
128
|
`).map((o,n)=>D("div",{children:o},n)),children:D(Y7,{})})}var v_=$y;os();function T_(e){return!e.editMode&&["number","date","currency"].includes(e.type||"")?"end":"start"}var X7=E("tr",{name:"DataTable",slot:"overlayWrapper"})({position:"sticky",top:"calc(var(--unstable_TableCell-height, 32px))",left:0,right:0,zIndex:1,"& > td":{height:0,padding:0,border:"none !important"}}),jy=e=>"Intl"in window?new Intl.NumberFormat().format(e):e,Z7=e=>D(ay,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"4px",cursor:"col-resize"},onClick:t=>t.stopPropagation(),onMouseDown:t=>{var i;let r=t.clientX,o=(i=e.current)==null?void 0:i.getBoundingClientRect().width,n=s=>{o&&r&&(e.current.style.width=`${o+(s.clientX-r)}px`)},a=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",a)}}),Q7=E("tbody",{name:"DataTable",slot:"tableBody"})({"&::after":{content:"''",display:"block",height:"0.01em"}}),e8=E("tr",{name:"DataTable",slot:"tableRow",shouldForwardProp:e=>e!=="striped"})(({striped:e})=>Z(F({},e&&{backgroundColor:"var(--TableRow-stripeBackground, var(--ceed-palette-background-level2))",color:"var(--ceed-palette-text-primary)","& td":{backgroundColor:"background.surface"}}),{"&:hover":{backgroundColor:"var(--TableRow-hoverBackground, var(--ceed-palette-background-level3))","& td":{backgroundColor:"var(--TableRow-hoverBackground, var(--ceed-palette-background-level3))"}}})),t8=E("span",{name:"DataTable",slot:"headCellAsterisk"})(({theme:e})=>({color:"var(--ceed-palette-danger-500)",marginLeft:e.spacing(.5)})),r8=x_(r_),o8=e=>{let{width:t,maxWidth:r,minWidth:o,stickyHeader:n,resizable:a,field:i,tableId:s,headerName:l,required:p,editMode:c,sort:u,onSortChange:d,sortable:f=!0,sortOrder:y,description:h,isPinned:v,pinnedDirection:b,pinnedStartPosition:x,pinnedEndPosition:g,headerRef:C}=e,T=Al(),P=C,S=ur(()=>`${s}_header_${l!=null?l:i}`.trim(),[s,l,i]),k=a==null||a?Z7(P):null,I={width:t,minWidth:o!=null?o:"50px",maxWidth:r,position:v?"sticky":n?void 0:"relative",left:v?x:void 0,right:v?g:void 0,zIndex:v?`calc(${T.getCssVar("zIndex-table")} + 2)`:void 0,cursor:f?"pointer":"default",userSelect:"none"},w=T_(e),B=y[0],M=f&&D(r8,{style:{width:"16px",height:"16px"},role:"img","aria-labelledby":S,"aria-description":(u!=null?u:B)==="desc"?"descending":"ascending","data-testid":void 0,variants:{hover:{opacity:1},initial:{opacity:0}},animate:{color:u?"var(--ceed-palette-text-secondary)":"var(--ceed-palette-primary-solidDisabledColor)",rotate:(u!=null?u:B)==="desc"?180:0,opacity:u?1:0},transition:{duration:0,rotate:{duration:.2,ease:"easeOut"},color:{duration:.2,ease:"easeInOut"},opacity:{duration:.2,ease:"easeInOut"}}}),O=h?D(v_,{message:h,placement:"bottom"}):null;return Pe(x_.th,{id:S,"aria-label":l!=null?l:i,"aria-sort":u?{asc:"ascending",desc:"descending"}[u]:"none",ref:P,style:I,onClick:$=>f&&(d==null?void 0:d({field:i,currentSort:u,multiple:$.shiftKey})),whileHover:"hover",initial:"initial",children:[Pe(Ct,{gap:1,direction:"row",justifyContent:w,alignItems:"center",children:[w==="end"&&M,w==="end"&&O,Pe("div",{children:[l!=null?l:i,c&&p&&D(t8,{children:"*"})]}),w==="start"&&O,w==="start"&&M]}),k]},i)},n8=e=>{var w;let{tableId:t,field:r,type:o,renderCell:n,renderEditCell:a,isCellEditable:i,noWrap:s,isPinned:l,pinnedDirection:p,pinnedStartPosition:c,pinnedEndPosition:u,row:d,rowId:f}=e,y=Al(),[h,v]=CT(d[r]),b=PT(null),x=ur(()=>({row:d,value:h,id:f}),[d,f,h]),g=ur(()=>!!(e.editMode&&(typeof i=="function"?i(x):i==null||i)),[e.editMode,i,x]),C=ur(()=>Z(F({},typeof e.componentProps=="function"?e.componentProps(x):e.componentProps||{}),{size:"sm"}),[e,x]),T=ur(()=>F(Z(F({},C),{onChange:B=>{var M,O;(M=C.onChange)==null||M.call(C,B),v(B.target.value),o==="select"&&((O=e.onCellEditStop)==null||O.call(e,Z(F({},x),{originalRow:d,row:Z(F({},x.row),{[r]:B.target.value}),value:B.target.value})))},onFocus:B=>{var M,O;(M=C.onFocus)==null||M.call(C,B),(O=e.onCellEditStart)==null||O.call(e,Z(F({},x),{originalRow:d,row:Z(F({},x.row),{value:h}),value:h}))},onBlur:B=>{var M,O;(M=C.onBlur)==null||M.call(C,B),o&&["number","text","longText","currency","date"].includes(o)&&((O=e.onCellEditStop)==null||O.call(e,Z(F({},x),{originalRow:d,row:Z(F({},x.row),{[r]:h}),value:h})))}}),o==="autocomplete"&&{onChangeComplete:B=>{var M,O;(M=C.onChangeComplete)==null||M.call(C,B),v(B.target.value),(O=e.onCellEditStop)==null||O.call(e,Z(F({},x),{originalRow:d,row:Z(F({},x.row),{[r]:B.target.value}),value:B.target.value}))}}),[x,d,r,h,C,o,e]),P=ur(()=>a?a(x):{date:D(d_,F({value:h},T)),currency:D(t_,F({value:h},T)),number:D(Kr,F({value:h,type:"number"},T)),text:D(Kr,F({value:h,type:"text"},T)),longText:D(f_,F({value:h},T)),autocomplete:D(qO,F({value:h,options:T.options||[h]},T)),select:D(m_,F({value:h,options:T.options||[h]},T))}[o||"text"],[h,T,o]),S=ur(()=>{if(n)return n(x);let B=h;return{link:b_.createElement(e.component||xa,F({children:B},C))}[o||"text"]||B},[h,n,x,o,C,e]),k=ur(()=>g&&P?P:S,[g,P,S]),I=ur(()=>s&&e.type==="longText",[s,e.type]);return Hy(()=>{v(d[r])},[d,r]),D("td",{ref:b,headers:`${t}_header_${(w=e.headerName)!=null?w:r}`,style:{textAlign:T_({type:o}),verticalAlign:g?"top":"middle",position:l?"sticky":void 0,left:l?c:void 0,right:l?u:void 0,zIndex:l?`calc(${y.getCssVar("zIndex-table")} + 2)`:void 0,"--TableCell-dataBackground":l?"var(--TableCell-headBackground)":void 0},children:I?D(Vy,{title:h,placement:"bottom",style:{maxWidth:"100%"},enterDelay:1500,enterNextDelay:1500,children:D("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:k})}):k},r)},a8=e=>{let{tableId:t,columns:r,rowId:o,editMode:n,noWrap:a,row:i}=e;return D(Pr,{children:r.map((s,l)=>RC(n8,Z(F({},s),{tableId:t,key:`${o}_${s.field.toString()}_${l}`,row:i,rowId:o,editMode:n,noWrap:a})))})};function i8({rows:e,columns:t,pinnedColumns:r,rowCount:o,initialState:n,pagination:a,paginationMode:i,paginationModel:s,onPaginationModelChange:l,sortModel:p,sortOrder:c=["asc","desc",null],selectionModel:u=[],onSortModelChange:d,onSelectionModelChange:f,editMode:y,getId:h,isTotalSelected:v}){var q,ie;let[b,x]=CT(null),[g,C]=At(p,(ie=(q=n==null?void 0:n.sorting)==null?void 0:q.sortModel)!=null?ie:[],Kn(A=>d==null?void 0:d(A),[d])),T=ur(()=>t.reduce((A,ee)=>Z(F({},A),{[ee.field]:Z(F({},ee),{headerRef:b_.createRef()})}),{}),[t]),P=Kn((A,ee)=>{for(let ye of g){let{field:Ie,sort:se}=ye,U=A[Ie],ce=ee[Ie],me=T[Ie],be=0;if(me.sortComparator?be=me.sortComparator({rowA:A,rowB:ee}):typeof U=="string"&&typeof ce=="string"?be=U.localeCompare(ce):typeof U=="number"&&typeof ce=="number"?be=U-ce:U instanceof Date&&ce instanceof Date&&(be=U.getTime()-ce.getTime()),be!==0)return se==="asc"?be:-be}return 0},[g,T]),S=ur(()=>g.length?[...e].sort(P):e,[e,g,P]),k=ur(()=>Array.from(new Set(c)),[c]),[I,w]=CT((s==null?void 0:s.page)||1),B=(s==null?void 0:s.pageSize)||20,M=Kn((A,ee)=>{var ye,Ie;return(Ie=(ye=h==null?void 0:h(A))!=null?ye:A.id)!=null?Ie:`${(ee||0)+(I-1)*B}`},[h,I,B]),O=ur(()=>new Set(u),[u]),$=ur(()=>!a||i==="server"?S:S.slice((I-1)*B,(I-1)*B+B),[S,I,B,i,a]),N=ur(()=>$.length>0&&$.every((A,ee)=>O.has(M(A,ee))),[$,O,M]),_=o||S.length,L=ur(()=>v!=null?v:_>0&&u.length===_,[v,u,_]),W=ur(()=>(t||Object.keys(S[0]||{}).map(ee=>({field:ee}))).map(ee=>{var U,ce,me,be,Te,Le,We,ne;let ye=(U=r==null?void 0:r.left)==null?void 0:U.includes(ee.field),Ie=(ce=r==null?void 0:r.right)==null?void 0:ce.includes(ee.field),se=ye||Ie;return Z(F({},ee),{headerRef:T[ee.field].headerRef,isCellEditable:y&&(typeof ee.isCellEditable=="function"?ee.isCellEditable:(me=ee.isCellEditable)!=null?me:!0),sort:(be=g.find(Q=>Q.field===ee.field))==null?void 0:be.sort,sortOrder:((Te=T[ee.field])==null?void 0:Te.sortOrder)||k,isPinned:se,pinnedDirection:ye?"left":Ie?"right":void 0,pinnedStartPosition:(We=r==null?void 0:r.left)==null?void 0:We.slice(0,ye?(Le=r==null?void 0:r.left)==null?void 0:Le.indexOf(ee.field):r.left.length).reduce((Q,Ce)=>{var ge,Ve;return Q+(((Ve=(ge=T[Ce])==null?void 0:ge.headerRef.current)==null?void 0:Ve.clientWidth)||0)},0),pinnedEndPosition:(ne=r==null?void 0:r.right)==null?void 0:ne.slice(0,Ie?r.right.indexOf(ee.field):r.right.length).reduceRight((Q,Ce)=>{var ge,Ve;return Q+(((Ve=(ge=T[Ce])==null?void 0:ge.headerRef.current)==null?void 0:Ve.clientWidth)||0)},0)})}),[t,S,y,g,T,k,r==null?void 0:r.left,r==null?void 0:r.right]),z=Kn(A=>{w(A),l==null||l({page:A,pageSize:B})},[l,B]),R=Kn(A=>{let{field:ee,currentSort:ye,multiple:Ie}=A,U=T[ee].sortOrder||k;if(ye!==void 0){let me=(U.indexOf(ye)+1)%U.length,be=U[me];if(!be){let Le=Ie?g.filter(We=>We.field!==ee):[];C(Le);return}let Te=Ie?g.map(Le=>Le.field===ee?{field:ee,sort:be}:Le):[{field:ee,sort:be}];C(Te)}else{let ce=Ie?[...g,{field:ee,sort:U[0]}]:[{field:ee,sort:U[0]}];C(ce)}},[k,T,g,C]);return Hy(()=>{s||z(1)},[_,z,s]),Hy(()=>{let A=Math.max(1,Math.ceil(_/B));I>A&&z(A)},[I,_,B,z]),Hy(()=>{f==null||f([])},[I]),{rowCount:_,page:I,pageSize:B,onPaginationModelChange:z,getId:M,HeadCell:o8,BodyRow:a8,dataInPage:$,handleSortChange:R,isAllSelected:N,isTotalSelected:L,isSelectedRow:Kn(A=>O.has(A),[O]),focusedRowId:b,onRowFocus:Kn(A=>{x(A)},[]),onAllCheckboxChange:Kn(()=>{f==null||f(N?[]:$.map(M))},[N,$,f,M]),onCheckboxChange:Kn((A,ee)=>{if(O.has(ee)){let ye=u.filter(Ie=>Ie!==ee);f==null||f(ye)}else{let ye=[...u,ee];f==null||f(ye)}},[u,f,O]),columns:W,onTotalSelect:Kn(()=>{f==null||f(L?[]:S.map(M),!L)},[L,S,f,M])}}function s8(e,t){var Ae;let Ve=e,{rows:r,checkboxSelection:o,editMode:n,selectionModel:a,onSelectionModelChange:i,disableSelectionOnClick:s,onRowClick:l,pinnedColumns:p,rowCount:c,columns:u,onPaginationModelChange:d,pagination:f,paginationMode:y,paginationModel:h,sortModel:v,sortOrder:b,onSortModelChange:x,initialState:g,loading:C,slots:{checkbox:T=Au,toolbar:P,footer:S,loadingOverlay:k=()=>D(au,{value:8,variant:"plain"})}={},slotProps:{checkbox:I={},toolbar:w,background:B={}}={},stripe:M}=Ve,O=he(Ve,["rows","checkboxSelection","editMode","selectionModel","onSelectionModelChange","disableSelectionOnClick","onRowClick","pinnedColumns","rowCount","columns","onPaginationModelChange","pagination","paginationMode","paginationModel","sortModel","sortOrder","onSortModelChange","initialState","loading","slots","slotProps","stripe"]),$=J7(),N=PT(null),_=PT(null),{columns:L,isAllSelected:W,isSelectedRow:z,onAllCheckboxChange:R,onCheckboxChange:q,getId:ie,rowCount:A,page:ee,pageSize:ye,onPaginationModelChange:Ie,handleSortChange:se,dataInPage:U,isTotalSelected:ce,focusedRowId:me,onRowFocus:be,onTotalSelect:Te,HeadCell:Le,BodyRow:We}=i8(e),ne=ty({count:U.length,getScrollElement:()=>N.current,estimateSize:()=>32,measureElement:Oe=>Oe.clientHeight,overscan:20}),Q=ur(()=>({page:ee,pageSize:ye}),[ee,ye]),Ce=ne.getTotalSize(),ge=ne.getVirtualItems();return K7(t,()=>({getRowIndexRelativeToVisibleRows(Oe){return U.findIndex(je=>String(ie(je))===Oe)},setCellFocus(Oe){var Ze;let je=this.getRowIndexRelativeToVisibleRows(Oe),$e=e.stickyHeader&&((Ze=ne.getOffsetForIndex(je))==null?void 0:Ze[1])==="start"?0:1;ne.scrollToIndex(je+$e),requestAnimationFrame(()=>{var Y,fe;(fe=(Y=_.current)==null?void 0:Y.querySelector(`[data-row-id='${Oe}']`))==null||fe.focus()})}})),Pe(ay,{sx:{maxHeight:"100%",overflow:"auto",display:"flex",flexDirection:"column"},children:[(!!o||!!P)&&Pe(Ct,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center",children:[!!o&&Pe(Ct,{direction:"row",spacing:1,children:[!W&&Pe(Sr,{level:"body-xs",children:[jy((a==null?void 0:a.length)||0)," items selected"]}),W&&!ce&&Pe(Ct,{direction:"row",spacing:1,alignItems:"center",children:[Pe(Sr,{level:"body-xs",children:["All ",jy((a==null?void 0:a.length)||0)," items on this page are selected."]}),Pe(kr,{size:"sm",variant:"plain",onClick:Te,children:["Select all ",jy(A!=null?A:r.length)," items"]})]}),ce&&Pe(Ct,{direction:"row",spacing:1,alignItems:"center",children:[Pe(Sr,{level:"body-xs",children:["All ",jy(A!=null?A:r.length)," items are selected."]}),D(kr,{size:"sm",variant:"plain",color:"danger",onClick:Te,children:"Cancel"})]})]}),P&&D(P,F({},w||{}))]}),D(tn,Z(F({variant:"outlined",sx:{height:"100%",overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm","--DataTableSheet-width":((Ae=N.current)==null?void 0:Ae.clientWidth)+"px"},ref:N},B),{children:Pe(Uu,Z(F({},O),{children:[D("thead",{children:Pe("tr",{children:[o&&D("th",{style:{width:"40px",textAlign:"center"},children:D(T,F({onChange:R,checked:W,indeterminate:(a||[]).length>0&&!W},I))}),L.map((Oe,je)=>D(Le,F({tableId:$,stickyHeader:e.stickyHeader,editMode:!!Oe.isCellEditable,onSortChange:se},Oe),`${Oe.field.toString()}_${je}`))]})}),Pe(Q7,{ref:_,style:{height:`${Ce}px`},children:[!!C&&D(X7,{children:D("td",{style:{position:"fixed",width:"var(--DataTableSheet-width)",overflow:"visible"},children:D(ay,{sx:{position:"absolute",top:0,left:0,right:0},children:D(k,{})})})}),ge.map((Oe,je)=>{let $e=Oe.index,Ze=U[$e],Y=ie(Ze,$e),fe=M&&(M==="even"&&($e+1)%2===0||M==="odd"&&($e+1)%2===1);return Pe(e8,{"data-row-id":Y,"data-index":$e,role:o&&!s?"checkbox":void 0,tabIndex:me===Y?0:-1,onClick:ke=>{l==null||l({row:Ze,rowId:Y},ke),o&&!s&&q(ke,Y)},onFocus:()=>be(Y),"aria-checked":o&&!s?z(Y):void 0,striped:fe,style:{height:`${Oe.size}px`,transform:`translateY(${Oe.start-je*Oe.size}px)`},children:[o&&D("th",{scope:"row",style:{textAlign:"center"},children:D(T,F({onClick:ke=>ke.stopPropagation(),onChange:ke=>q(ke,Y),checked:z(Y)},I))}),D(We,{tableId:$,columns:L,row:Ze,rowId:Y,editMode:n,noWrap:e.noWrap})]},Oe.key)})]}),S&&D(S,{})]}))})),f&&D(y_,{py:2,size:"sm",alignItems:"flex-end",paginationModel:Q,rowCount:A,onPageChange:Ie})]})}var ST=q7(s8);ST.displayName="DataTable";import l8,{forwardRef as p8,useCallback as td,useEffect as c8,useImperativeHandle as u8,useMemo as d8,useRef as P_,useState as f8}from"react";var m8=E(or,{name:"DateRangePicker",slot:"calendarButton"})(({theme:e})=>({"&:focus":{"--Icon-color":"currentColor",outlineOffset:`${e.getCssVar("focus-thickness")}`,outline:`${e.getCssVar("focus-thickness")} solid ${e.getCssVar("palette-focusVisible")}`}})),h8=E(Yt,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),y8=E(tn,{name:"DateRangePicker",slot:"sheet",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.tooltip,width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),g8=E("div",{name:"DateRangePicker",slot:"root",overridesResolver:(e,t)=>t.root})({width:"100%"}),S_=([e,t],r)=>{let o=n=>{let a=`${n.getDate()}`,i=`${n.getMonth()+1}`,s=n.getFullYear();return Number(a)<10&&(a="0"+a),Number(i)<10&&(i="0"+i),r.replace(/YYYY/g,s.toString()).replace(/MM/g,i).replace(/DD/g,a)};return[o(e),t?o(t):""].join(" - ")};function C_(e,t){let r=t.split(/[-./\s]/),o=e.split(/[-./\s]/),n,a,i;for(let l=0;l<r.length;l++){let p=parseInt(o[l],10);switch(r[l]){case"DD":n=p;break;case"MM":a=p-1;break;case"YYYY":i=p;break}}return new Date(i,a,n)}var k_=(e,t)=>{let r=e.split(" - ")[0]||"",o=e.split(" - ")[1]||"";return[C_(r,t),C_(o,t)]},v8=e=>`${e} - ${e}`.replace(/YYYY/g,"Y").replace(/MM/g,"M").replace(/DD/g,"D").replace(/[^YMD\s]/g,t=>`${t}\``),b8=l8.forwardRef(function(t,r){let i=t,{onChange:o,format:n}=i,a=he(i,["onChange","format"]);return D(_a,Z(F({},a),{inputRef:r,onAccept:s=>o({target:{name:t.name,value:s}}),mask:Date,pattern:v8(n),blocks:{D:{mask:Re.MaskedRange,from:1,to:31,maxLength:2},M:{mask:Re.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Re.MaskedRange,from:1900,to:9999}},format:s=>S_(s,n),parse:s=>k_(s,n),autofix:"pad",overwrite:!0}))}),kT=p8((e,t)=>{let r=G({props:e,name:"DateRangePicker"}),L=r,{onChange:o,disabled:n,label:a,error:i,helperText:s,minDate:l,maxDate:p,disableFuture:c,disablePast:u,required:d,sx:f,className:y,format:h="YYYY/MM/DD",size:v,inputReadOnly:b,hideClearButton:x,readOnly:g}=L,C=he(L,["onChange","disabled","label","error","helperText","minDate","maxDate","disableFuture","disablePast","required","sx","className","format","size","inputReadOnly","hideClearButton","readOnly"]),T=P_(null),P=P_(null),[S,k]=At(r.value,r.defaultValue||"",td(W=>o==null?void 0:o({target:{name:r.name,value:W}}),[r.name,o]),{disableStrict:!0}),[I,w]=f8(null),B=!!I,M=d8(()=>S?k_(S,h):void 0,[S,h]);c8(()=>{var W;I||(W=T.current)==null||W.blur()},[I,T]),u8(t,()=>T.current,[T]);let O=td(W=>{k(W.target.value)},[k]),$=td(W=>{var z;w(I?null:W.currentTarget),(z=T.current)==null||z.focus()},[I,w,T]),N=td(([W,z])=>{!W||!z||(k(S_([W,z],h)),w(null))},[k,w,h]),_=td(W=>{var z;b&&(W.preventDefault(),(z=P.current)==null||z.focus())},[b,P]);return D(g8,{children:D(io,{open:!0,children:Pe(Pr,{children:[D(Kr,Z(F({},C),{color:i?"danger":C.color,ref:t,size:v,value:S,onChange:O,disabled:n,required:d,placeholder:`${h} - ${h}`,slotProps:{input:{component:b8,ref:T,format:h,sx:{"&:hover":{cursor:b||g?"default":"text"}},onMouseDown:_}},error:i,className:y,sx:f,endDecorator:D(m8,{ref:P,variant:"plain",onClick:g?void 0:$,"aria-label":"Toggle Calendar","aria-controls":"date-range-picker-popper","aria-haspopup":"dialog","aria-expanded":B,disabled:n,children:D(Vi,{})}),label:a,helperText:s,readOnly:g||b})),B&&D(fn,{onClickAway:()=>w(null),children:D(h8,{id:"date-range-picker-popper",open:!0,anchorEl:I,placement:"bottom-end",onMouseDown:W=>W.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}],"aria-label":"Calendar Tooltip","aria-expanded":B,children:Pe(y8,{tabIndex:-1,role:"presentation",children:[D(Bi,{rangeSelection:!0,defaultValue:M,onChange:N,minDate:l?new Date(l):void 0,maxDate:p?new Date(p):void 0,disableFuture:c,disablePast:u}),!x&&D(qn,{sx:{p:1},children:D(kr,{size:v,variant:"plain",color:"neutral",onClick:()=>{k(""),w(null)},children:"Clear"})})]})})})]})})})});kT.displayName="DateRangePicker";import{motion as x8}from"framer-motion";var T8=x8(Jm),P8=E(T8)(({theme:e})=>({padding:e.spacing(0,6,5)})),rd=P8;rd.displayName="DialogContent";var Uy=rd;import{motion as C8}from"framer-motion";var S8=C8(qm),k8=E(S8)(({theme:e})=>({padding:e.spacing(4,6)})),od=k8;od.displayName="DialogTitle";var Wy=od;import O8 from"react";import{motion as RT}from"framer-motion";var R8=RT(Zm),ET=R8;ET.displayName="Modal";var R_=E(fh)({padding:0}),nd=R_;nd.displayName="ModalDialog";var E8=E(RT(dh))(({theme:e})=>({top:e.spacing(3),right:e.spacing(6)})),Gy=E8;Gy.displayName="ModalClose";var I8=RT(hh),IT=I8;IT.displayName="ModalOverflow";function OT(e){let a=e,{title:t,children:r,titleStartDecorator:o}=a,n=he(a,["title","children","titleStartDecorator"]);return Pe(R_,Z(F({},n),{children:[D(Gy,{}),Pe(Wy,{children:[o,t]}),D(Uy,{children:r})]}))}OT.displayName="ModalFrame";var D8=E(nd,{name:"Dialog",slot:"Root"})({padding:0}),DT=O8.forwardRef((e,t)=>{let s=e,{title:r,children:o,actions:n,fullscreen:a}=s,i=he(s,["title","children","actions","fullscreen"]);return Pe(D8,Z(F({layout:a?"fullscreen":"center",ref:t},i),{children:[D(Wy,{children:r}),D(Uy,{children:o}),D(qn,{children:n})]}))});DT.displayName="DialogFrame";import{motion as _8}from"framer-motion";var w8=_8(Km),ad=e=>D(w8,F({},e));ad.displayName="Divider";import{motion as A8}from"framer-motion";var B8=A8(ru),_T=e=>{var n;let o=e,{children:t}=o,r=he(o,["children"]);return D(B8,Z(F({},r),{slotProps:Z(F({},r.slotProps),{content:Z(F({},(n=r.slotProps)==null?void 0:n.content),{sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}})}),children:t}))};_T.displayName="InsetDrawer";import aY,{useCallback as tg,useEffect as ow,useMemo as fd,useRef as nw,useState as rg}from"react";import{jsx as M8}from"react/jsx-runtime";var E_=ht(M8("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l4.65-4.65c.2-.2.51-.2.71 0L17 13z"}),"CloudUploadRounded");import{jsx as N8}from"react/jsx-runtime";var I_=ht(N8("path",{d:"m19.41 7.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.42M14.8 15H13v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H9.21c-.45 0-.67-.54-.35-.85l2.8-2.79c.2-.19.51-.19.71 0l2.79 2.79c.3.31.08.85-.36.85M14 9c-.55 0-1-.45-1-1V3.5L18.5 9z"}),"UploadFileRounded");import{jsx as L8}from"react/jsx-runtime";var O_=ht(L8("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded");function id(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){t.forEach(function(n){return n()})}}function Mp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function wT(e){if(Array.isArray(e))return Mp(e)}function AT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sd(e,t){if(e){if(typeof e=="string")return Mp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mp(e,t)}}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
129
129
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wa(e){return wT(e)||AT(e)||sd(e)||BT()}var ud=wo(ld());var V_=wo(ld());function NT(e){if(Array.isArray(e))return e}function LT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,a,i,s=[],l=!0,p=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(c){p=!0,n=c}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(p)throw n}}return s}}function zT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
130
130
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FT(e,t){return NT(e)||LT(e,t)||sd(e,t)||zT()}var w_="data-pdnd-honey-pot";function Jy(e){return e instanceof Element&&e.hasAttribute(w_)}function A_(e){var t=document.elementsFromPoint(e.x,e.y),r=FT(t,2),o=r[0],n=r[1];return o?Jy(o)?n!=null?n:null:o:null}function Fp(e){var t=null;return function(){if(!t){for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];var i=e.apply(this,n);t={result:i}}return t.result}}var qy=Fp(function(){return navigator.userAgent.includes("Firefox")});var $i=Fp(function(){var t=navigator,r=t.userAgent;return r.includes("AppleWebKit")&&!r.includes("Chrome")});var B_=wo(ld());var Ky={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function M_(e){var t=e.dragEnter;return $i()?t.hasOwnProperty(Ky.isEnteringWindow):!1}function N_(e){var t=e.dragLeave;return $i()?t.hasOwnProperty(Ky.isLeavingWindow):!1}(function(){if(typeof window>"u"||!$i())return;function t(){return{enterCount:0,isOverWindow:!1}}var r=t();function o(){r=t()}(0,B_.bindAll)(window,[{type:"dragstart",listener:function(){r.enterCount=0,r.isOverWindow=!0}},{type:"drop",listener:o},{type:"dragend",listener:o},{type:"dragenter",listener:function(a){!r.isOverWindow&&r.enterCount===0&&(a[Ky.isEnteringWindow]=!0),r.isOverWindow=!0,r.enterCount++}},{type:"dragleave",listener:function(a){r.enterCount--,r.isOverWindow&&r.enterCount===0&&(a[Ky.isLeavingWindow]=!0,r.isOverWindow=!1)}}],{capture:!0})})();function U8(e){return"nodeName"in e}function Xy(e){return U8(e)&&e.ownerDocument!==document}function L_(e){var t=e.dragLeave,r=t.type,o=t.relatedTarget;return r!=="dragleave"?!1:$i()?N_({dragLeave:t}):o==null?!0:qy()?Xy(o):o instanceof HTMLIFrameElement}function Vp(e){var t=e.onDragEnd;return[{type:"pointermove",listener:function(){var r=0;return function(){if(r<20){r++;return}t()}}()},{type:"pointerdown",listener:t}]}function pd(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var W8=function(t){var r=[],o=null,n=function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];r=s,!o&&(o=requestAnimationFrame(function(){o=null,t.apply(void 0,r)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n},z_=W8;var VT=z_(function(e){return e()}),Zy=function(){var e=null;function t(o){var n=requestAnimationFrame(function(){e=null,o()});e={frameId:n,fn:o}}function r(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:r}}();function F_(e){var t=e.source,r=e.initial,o=e.dispatchEvent,n={dropTargets:[]};function a(s){o(s),n={dropTargets:s.payload.location.current.dropTargets}}var i={start:function(l){var p=l.nativeSetDragImage,c={current:r,previous:n,initial:r};a({eventName:"onGenerateDragPreview",payload:{source:t,location:c,nativeSetDragImage:p}}),Zy.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:c}})})},dragUpdate:function(l){var p=l.current;Zy.flush(),VT.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:r,previous:n,current:p}}})},drag:function(l){var p=l.current;VT(function(){Zy.flush();var c={initial:r,previous:n,current:p};a({eventName:"onDrag",payload:{source:t,location:c}})})},drop:function(l){var p=l.current,c=l.updatedSourcePayload;Zy.flush(),VT.cancel(),a({eventName:"onDrop",payload:{source:c!=null?c:t,location:{current:p,previous:n,initial:r}}})}};return i}var jT={isActive:!1};function $_(){return!jT.isActive}function G8(e){return e.dataTransfer?e.dataTransfer.setDragImage.bind(e.dataTransfer):null}function Y8(e){var t=e.current,r=e.next;if(t.length!==r.length)return!0;for(var o=0;o<t.length;o++)if(t[o].element!==r[o].element)return!0;return!1}function J8(e){var t=e.event,r=e.dragType,o=e.getDropTargetsOver,n=e.dispatchEvent;if(!$_())return;var a=q8({event:t,dragType:r,getDropTargetsOver:o});jT.isActive=!0;var i={current:a};$T({event:t,current:a.dropTargets});var s=F_({source:r.payload,dispatchEvent:n,initial:a});function l(f){var y=Y8({current:i.current.dropTargets,next:f.dropTargets});i.current=f,y&&s.dragUpdate({current:i.current})}function p(f){var y=pd(f),h=Jy(f.target)?A_({x:y.clientX,y:y.clientY}):f.target,v=o({target:h,input:y,source:r.payload,current:i.current.dropTargets});v.length&&(f.preventDefault(),$T({event:f,current:v})),l({dropTargets:v,input:y})}function c(){i.current.dropTargets.length&&l({dropTargets:[],input:i.current.input}),s.drop({current:i.current,updatedSourcePayload:null}),u()}function u(){jT.isActive=!1,d()}var d=(0,V_.bindAll)(window,[{type:"dragover",listener:function(y){p(y),s.drag({current:i.current})}},{type:"dragenter",listener:p},{type:"dragleave",listener:function(y){L_({dragLeave:y})&&(l({input:i.current.input,dropTargets:[]}),r.startedFrom==="external"&&c())}},{type:"drop",listener:function(y){if(i.current={dropTargets:i.current.dropTargets,input:pd(y)},!i.current.dropTargets.length){c();return}y.preventDefault(),$T({event:y,current:i.current.dropTargets}),s.drop({current:i.current,updatedSourcePayload:r.type==="external"?r.getDropPayload(y):null}),u()}},{type:"dragend",listener:function(y){i.current={dropTargets:i.current.dropTargets,input:pd(y)},c()}}].concat(wa(Vp({onDragEnd:c}))),{capture:!0});s.start({nativeSetDragImage:G8(t)})}function $T(e){var t,r=e.event,o=e.current,n=(t=o[0])===null||t===void 0?void 0:t.dropEffect;n!=null&&r.dataTransfer&&(r.dataTransfer.dropEffect=n)}function q8(e){var t=e.event,r=e.dragType,o=e.getDropTargetsOver,n=pd(t);if(r.startedFrom==="external")return{input:n,dropTargets:[]};var a=o({input:n,source:r.payload,target:t.target,current:[]});return{input:n,dropTargets:a}}var HT={canStart:$_,start:J8};var UT=new Map;function K8(e){var t=e.typeKey,r=e.mount,o=UT.get(t);if(o)return o.usageCount++,o;var n={typeKey:t,unmount:r(),usageCount:1};return UT.set(t,n),n}function j_(e){var t=K8(e);return function(){t.usageCount--,!(t.usageCount>0)&&(t.unmount(),UT.delete(e.typeKey))}}function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function WT(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(ji(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GT(e){var t=WT(e,"string");return ji(t)=="symbol"?t:t+""}function cd(e,t,r){return t=GT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(e,t){var r=t.attribute,o=t.value;return e.setAttribute(r,o),function(){return e.removeAttribute(r)}}function U_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(r),!0).forEach(function(o){cd(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function YT(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=X8(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
131
131
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){i=!0,s=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function X8(e,t){if(e){if(typeof e=="string")return W_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W_(e,t)}}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function JT(e){return e.slice(0).reverse()}function G_(e){var t=e.typeKey,r=e.defaultDropEffect,o=new WeakMap,n="data-drop-target-for-".concat(t),a="[".concat(n,"]");function i(f){return o.set(f.element,f),function(){return o.delete(f.element)}}function s(f){if(0)var y;return id(H_(f.element,{attribute:n,value:"true"}),i(f))}function l(f){var y,h,v,b,x=f.source,g=f.target,C=f.input,T=f.result,P=T===void 0?[]:T;if(g==null)return P;if(!(g instanceof Element))return g instanceof Node?l({source:x,target:g.parentElement,input:C,result:P}):P;var S=g.closest(a);if(S==null)return P;var k=o.get(S);if(k==null)return P;var I={input:C,source:x,element:k.element};if(k.canDrop&&!k.canDrop(I))return l({source:x,target:k.element.parentElement,input:C,result:P});var w=(y=(h=k.getData)===null||h===void 0?void 0:h.call(k,I))!==null&&y!==void 0?y:{},B=(v=(b=k.getDropEffect)===null||b===void 0?void 0:b.call(k,I))!==null&&v!==void 0?v:r,M={data:w,element:k.element,dropEffect:B,isActiveDueToStickiness:!1};return l({source:x,target:k.element.parentElement,input:C,result:[].concat(wa(P),[M])})}function p(f){var y=f.eventName,h=f.payload,v=YT(h.location.current.dropTargets),b;try{for(v.s();!(b=v.n()).done;){var x,g=b.value,C=o.get(g.element),T=Hi(Hi({},h),{},{self:g});C==null||(x=C[y])===null||x===void 0||x.call(C,T)}}catch(P){v.e(P)}finally{v.f()}}var c={onGenerateDragPreview:p,onDrag:p,onDragStart:p,onDrop:p,onDropTargetChange:function(y){var h=y.payload,v=new Set(h.location.current.dropTargets.map(function(L){return L.element})),b=new Set,x=YT(h.location.previous.dropTargets),g;try{for(x.s();!(g=x.n()).done;){var C,T=g.value;b.add(T.element);var P=o.get(T.element),S=v.has(T.element),k=Hi(Hi({},h),{},{self:T});if(P==null||(C=P.onDropTargetChange)===null||C===void 0||C.call(P,k),!S){var I;P==null||(I=P.onDragLeave)===null||I===void 0||I.call(P,k)}}}catch(L){x.e(L)}finally{x.f()}var w=YT(h.location.current.dropTargets),B;try{for(w.s();!(B=w.n()).done;){var M,O,$=B.value;if(!b.has($.element)){var N=Hi(Hi({},h),{},{self:$}),_=o.get($.element);_==null||(M=_.onDropTargetChange)===null||M===void 0||M.call(_,N),_==null||(O=_.onDragEnter)===null||O===void 0||O.call(_,N)}}}catch(L){w.e(L)}finally{w.f()}}};function u(f){c[f.eventName](f)}function d(f){var y=f.source,h=f.target,v=f.input,b=f.current,x=l({source:y,target:h,input:v});if(x.length>=b.length)return x;for(var g=JT(b),C=JT(x),T=[],P=0;P<g.length;P++){var S,k=g[P],I=C[P];if(I!=null){T.push(I);continue}var w=T[P-1],B=g[P-1];if((w==null?void 0:w.element)!==(B==null?void 0:B.element))break;var M=o.get(k.element);if(!M)break;var O={input:v,source:y,element:M.element};if(M.canDrop&&!M.canDrop(O)||!((S=M.getIsSticky)!==null&&S!==void 0&&S.call(M,O)))break;T.push(Hi(Hi({},k),{},{isActiveDueToStickiness:!0}))}return JT(T)}return{dropTargetForConsumers:s,getIsOver:d,dispatchEvent:u}}function Z8(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Q8(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){i=!0,s=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Q8(e,t){if(e){if(typeof e=="string")return Y_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y_(e,t)}}function Y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function J_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(r),!0).forEach(function(o){cd(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J_(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q_(){var e=new Set,t=null;function r(a){t&&(!a.canMonitor||a.canMonitor(t.canMonitorArgs))&&t.active.add(a)}function o(a){var i=eY({},a);return e.add(i),r(i),function(){e.delete(i),t&&t.active.delete(i)}}function n(a){var i=a.eventName,s=a.payload;if(i==="onGenerateDragPreview"){t={canMonitorArgs:{initial:s.location.initial,source:s.source},active:new Set};var l=Z8(e),p;try{for(l.s();!(p=l.n()).done;){var c=p.value;r(c)}}catch(v){l.e(v)}finally{l.f()}}if(t){for(var u=Array.from(t.active),d=0,f=u;d<f.length;d++){var y=f[d];if(t.active.has(y)){var h;(h=y[i])===null||h===void 0||h.call(y,s)}}i==="onDrop"&&(t.active.clear(),t=null)}}return{dispatchEvent:n,monitorForConsumers:o}}function K_(e){var t=e.typeKey,r=e.mount,o=e.dispatchEventToSource,n=e.onPostDispatch,a=e.defaultDropEffect,i=q_(),s=G_({typeKey:t,defaultDropEffect:a});function l(u){o==null||o(u),s.dispatchEvent(u),i.dispatchEvent(u),n==null||n(u)}function p(u){var d=u.event,f=u.dragType;HT.start({event:d,dragType:f,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}function c(){function u(){var d={canStart:HT.canStart,start:p};return r(d)}return j_({typeKey:t,mount:u})}return{registerUsage:c,dropTarget:s.dropTargetForConsumers,monitor:i.monitorForConsumers}}var Tot=Fp(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),X_="pdnd:android-fallback";function Z_(e){var t=e.dragEnter,r=t.type,o=t.relatedTarget;return r!=="dragenter"?!1:$i()?M_({dragEnter:t}):o==null?!0:qy()?Xy(o):o instanceof HTMLIFrameElement}var Q_="text/plain";var ew="application/vnd.pdnd";function KT(e){var t=e.type,r=e.value;return!(t===ew||t===Q_&&r===X_)}function tY(e){return Array.from(e.types).filter(function(t){return KT({type:t,value:e.getData(t)})})}function rY(e){return Array.from(e.items).filter(function(t){return t.kind==="file"||KT({type:t.type,value:e.getData(t.type)})})}var qT=!1,XT=K_({typeKey:"external",defaultDropEffect:"copy",mount:function(t){return(0,ud.bind)(window,{type:"dragenter",listener:function(o){if(!qT&&o.dataTransfer&&t.canStart(o)&&Z_({dragEnter:o})){var n=tY(o.dataTransfer);if(n.length){var a={types:n,items:[],getStringData:function(){return null}};t.start({event:o,dragType:{type:"external",startedFrom:"external",payload:a,getDropPayload:function(s){if(!s.dataTransfer)return a;var l=rY(s.dataTransfer),p=s.dataTransfer.getData.bind(s.dataTransfer);return{types:n,items:l,getStringData:function(u){if(!n.includes(u))return null;var d=p(u);return KT({type:u,value:d})?d:null}}}}})}}}})}});function ZT(e){return XT.dropTarget(e)}function QT(e){return XT.monitor(e)}(function(){if(typeof window>"u")return;XT.registerUsage();var t={type:"idle"},r=t;function o(){r.type==="dragging"&&(qT=!1,r.cleanup(),r=t)}function n(){return(0,ud.bindAll)(window,[{type:"dragend",listener:o}].concat(wa(Vp({onDragEnd:o}))),{capture:!0})}(0,ud.bind)(window,{type:"dragstart",listener:function(){r.type==="idle"&&(qT=!0,r={type:"dragging",cleanup:n()})},options:{capture:!0}})})();function Qy(e){var t=e.source;return t.types.includes("Files")}function e0(e){var t=e.source;return t.items.filter(function(r){return r.kind==="file"}).map(function(r){return r.getAsFile()}).filter(function(r){return r!=null})}var rw=wo(ld());function tw(e){e.defaultPrevented||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault())}var t0=null;function oY(){dd(),t0=(0,rw.bindAll)(window,[{type:"dragover",listener:tw},{type:"dragenter",listener:tw},{type:"drop",listener:function(t){t.preventDefault(),dd()}},{type:"dragend",listener:dd}].concat(wa(Vp({onDragEnd:dd}))),{capture:!1})}function dd(){var e;(e=t0)===null||e===void 0||e(),t0=null}function nY(){var e;if(((e=window.event)===null||e===void 0?void 0:e.type)==="drop"){var t;(t=window.event)===null||t===void 0||t.preventDefault()}dd()}var eg={start:oY,stop:nY};var iY=E(ap)({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),sY=E(Ct,{name:"Uploader",slot:"PreviewRoot"})({}),lY=E(_u,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),pY=E(I_,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),cY=E(O_,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),uY=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],dY={"image/*":[".jpeg",".jpg",".png",".gif",".bmp",".tiff",".svg",".webp",".heic",".ico"],"audio/*":[".mp3",".wav",".flac",".aac",".ogg",".m4a",".wma",".aiff",".alac",".midi",".mp4"],"video/*":[".mp4",".avi",".mkv",".mov",".wmv",".flv",".webm",".mpeg",".3gp",".m4v"]},r0=e=>{let t=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t),o=uY[t];return Intl.NumberFormat("en-us",{style:"unit",unit:o,unitDisplay:"narrow"}).format(r)},fY=e=>{let{files:t,uploaded:r,onDelete:o}=e;return D(sY,{gap:1,children:[...r,...t].map(n=>D(lY,{size:"sm",color:"neutral",children:Pe(Ct,{direction:"row",alignItems:"center",gap:2,children:[D(pY,{}),Pe(Ct,{flex:"1",children:[D(Sr,{level:"body-sm",textColor:"common.black",children:n.name}),!!n.size&&D(Sr,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary",children:r0(n.size)})]}),D(or,{onClick:()=>o==null?void 0:o(n),children:D(cY,{})})]})},n.name))})},mY=E(Ct,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),hY=E(tn,{name:"Uploader",slot:"dropZone",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(5),gap:e.spacing(4),cursor:"pointer",backgroundColor:e.palette.background.surface,border:r?`1px solid ${e.palette.danger.outlinedBorder}`:t==="idle"?`1px solid ${e.palette.neutral.outlinedBorder}`:`1px solid ${e.palette.primary.outlinedBorder}`})),yY=E(E_,{name:"Uploader",slot:"iconContainer",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({color:r?`rgba(${e.vars.palette.danger.mainChannel} / 0.6)`:t==="over"?`rgba(${e.palette.primary.mainChannel} / 0.6)`:e.palette.neutral.softActiveBg,width:"32px",height:"32px"})),aw=aY.memo(e=>{let{accept:t,minCount:r,maxCount:o,name:n,size:a,maxFileSize:i,maxFileTotalSize:s,onChange:l,label:p,disabled:c,onDelete:u}=e,d=nw(null),f=nw(null),[y,h]=rg(),[v,b]=rg([]),[x,g]=rg(e.uploaded||[]),[C,T]=rg("idle"),P=fd(()=>t.split(",").map(_=>_.trim()),[t]),S=fd(()=>P.flatMap(_=>["image/*","video/*","audio/*"].includes(_)?dY[_]:_),[P]),k=fd(()=>{let[_,L]=[P.filter(z=>["image/*","video/*","audio/*"].includes(z)).map(z=>{let[R]=z.split("/");return R.toLowerCase()}),P.filter(z=>!["image/*","video/*","audio/*"].includes(z)).map(z=>{let[R,q]=z.split("/");return q?q.toUpperCase():R.toUpperCase().replace(".","")})],W=[];return _.length>0&&W.push(`Any ${_.join(", ")} file`),L.length>0&&W.push(L.join(", ")),W.push(`Maximum ${r0(s)}`),o&&W.push(`Up to ${o} ${o===1?"file":"files"}`),W.join(", ")},[P,s,o]),I=fd(()=>!!y||e.error,[e.error,y]),w=fd(()=>!o||o&&[...x,...v].length!==o,[v,o,x]),B=tg(_=>{try{let L=S.map(q=>q.replace(".",""))||[],W=new RegExp(`${L.join("|")}`);if(_.forEach(q=>{let ie=q.name.split(".").pop()||"";if(!W.test(ie))throw new Error("Please upload acceptable file type.")}),i&&_.forEach(q=>{if(q.size>i)throw new Error(`One or more File size exceeded the maximum limit. Each file size must be ${r0(i)} or less.`)}),[...v,..._].reduce((q,ie)=>q+ie.size,0)>s)throw new Error("Total File size exceeded the maximum limit.");let R=[...v,..._];if(o&&[...x,...R].length>o)throw new Error("Exceeded the maximum number of files.");l==null||l({target:{name:n,value:R}}),b(R),h(void 0)}catch(L){h(L.message)}},[v,x,o,S,i,s,n,l]);ow(()=>{let _=d.current;if(!(!_||c))return id(ZT({element:_,canDrop:Qy,onDragEnter:()=>T("over"),onDragLeave:()=>T("potential"),onDrop:async({source:L})=>{let W=await e0({source:L});B(W)}}),QT({canMonitor:Qy,onDragStart:()=>{T("potential"),eg.start()},onDrop:()=>{T("idle"),eg.stop()}}))}),ow(()=>{f.current&&r&&(v.length<r?f.current.setCustomValidity(`At least ${r} files are required.`):f.current.setCustomValidity(""))},[f,v,r]);let M=tg(_=>{let L=Array.from(_.target.files||[]);B(L)},[B]),O=tg(_=>{_ instanceof File?b(L=>(l==null||l({target:{name:n,value:L.filter(W=>W!==_)}}),L.filter(W=>W!==_))):(g(L=>L.filter(W=>W.id!==_.id)),u==null||u(_)),h(void 0)},[n,l,u]),$=tg(()=>{var _;(_=f.current)==null||_.click()},[]),N=Pe(hY,{state:C,error:!!(I||y),ref:d,onClick:$,children:[D(Ct,{alignItems:"center",gap:1,children:D(yY,{state:C,error:!!(I||y)})}),D(iY,{disabled:c,required:!!r,onInvalid:_=>{r&&v.length<r&&h(`Please choose ${r} ${r===1?"file":"files"} to upload.`)},slotProps:{input:{multiple:!0,accept:S.join(","),type:"file",ref:f,role:"button",onChange:M}}})]});return Pe(mY,{children:[w&&Pe(Gn,{size:a,error:!!(I||y),disabled:c,required:!!r,children:[p&&D(Yn,{children:p}),N,D(Jn,{children:Pe(Ct,{children:[y&&D("div",{children:y}),D("div",{children:k})]})})]}),[...x,...v].length>0&&D(fY,{files:v,uploaded:x,onDelete:O})]})});function iw(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var gY=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vY=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bY={};function og(e,t){return((t||bY).jsx?vY:gY).test(e)}var xY=/[ \t\n\f\r]/g;function o0(e){return typeof e=="object"?e.type==="text"?sw(e.value):!1:sw(e)}function sw(e){return e.replace(xY,"")===""}var Aa=class{constructor(t,r,o){this.property=t,this.normal=r,o&&(this.space=o)}};Aa.prototype.property={};Aa.prototype.normal={};Aa.prototype.space=null;function n0(e,t){let r={},o={},n=-1;for(;++n<e.length;)Object.assign(r,e[n].property),Object.assign(o,e[n].normal);return new Aa(r,o,t)}function md(e){return e.toLowerCase()}var $r=class{constructor(t,r){this.property=t,this.attribute=r}};$r.prototype.space=null;$r.prototype.boolean=!1;$r.prototype.booleanish=!1;$r.prototype.overloadedBoolean=!1;$r.prototype.number=!1;$r.prototype.commaSeparated=!1;$r.prototype.spaceSeparated=!1;$r.prototype.commaOrSpaceSeparated=!1;$r.prototype.mustUseProperty=!1;$r.prototype.defined=!1;var hd={};_n(hd,{boolean:()=>Ge,booleanish:()=>Bt,commaOrSpaceSeparated:()=>co,commaSeparated:()=>Ui,number:()=>ve,overloadedBoolean:()=>a0,spaceSeparated:()=>ft});var TY=0,Ge=Ws(),Bt=Ws(),a0=Ws(),ve=Ws(),ft=Ws(),Ui=Ws(),co=Ws();function Ws(){return 2**++TY}var i0=Object.keys(hd),Gs=class extends $r{constructor(t,r,o,n){let a=-1;if(super(t,r),lw(this,"space",n),typeof o=="number")for(;++a<i0.length;){let i=i0[a];lw(this,i0[a],(o&hd[i])===hd[i])}}};Gs.prototype.defined=!0;function lw(e,t,r){r&&(e[t]=r)}var PY={}.hasOwnProperty;function rn(e){let t={},r={},o;for(o in e.properties)if(PY.call(e.properties,o)){let n=e.properties[o],a=new Gs(o,e.transform(e.attributes||{},o),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[md(o)]=o,r[md(a.attribute)]=o}return new Aa(t,r,e.space)}var s0=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var l0=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ng(e,t){return t in e?e[t]:t}function ag(e,t){return ng(e,t.toLowerCase())}var p0=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ag,properties:{xmlns:null,xmlnsXLink:null}});var c0=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:ft,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:ve,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:ft,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:Bt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null}});var pw=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ag,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:ft,autoFocus:Ge,autoPlay:Ge,blocking:ft,capture:null,charSet:null,checked:Ge,cite:null,className:ft,cols:ve,colSpan:null,content:null,contentEditable:Bt,controls:Ge,controlsList:ft,coords:ve|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:a0,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:ft,height:ve,hidden:Ge,high:ve,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ge,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:ve,pattern:null,ping:ft,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:ft,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:ft,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:Bt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:ve,security:null,unselectable:null}});var cw=rn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ng,properties:{about:co,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:co,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:co,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:co,rev:co,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:co,requiredFeatures:co,requiredFonts:co,requiredFormats:co,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:co,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:co,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:co,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var CY=/^data[-\w.:]+$/i,uw=/-[a-z]/g,SY=/[A-Z]/g;function u0(e,t){let r=md(t),o=t,n=$r;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CY.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(uw,RY);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!uw.test(a)){let i=a.replace(SY,kY);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=Gs}return new n(o,t)}function kY(e){return"-"+e.toLowerCase()}function RY(e){return e.charAt(1).toUpperCase()}var d0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var dw=n0([l0,s0,p0,c0,pw],"html"),ig=n0([l0,s0,p0,c0,cw],"svg");function fw(e){return e.join(" ").trim()}var f0=wo(xw(),1),Tw=f0.default.default||f0.default;var sg=Pw("end"),$p=Pw("start");function Pw(e){return t;function t(r){let o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function m0(e){let t=$p(e),r=sg(e);if(t&&r)return{start:t,end:r}}function Wi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Cw(e.position):"start"in e||"end"in e?Cw(e):"line"in e||"column"in e?h0(e):""}function h0(e){return Sw(e&&e.line)+":"+Sw(e&&e.column)}function Cw(e){return h0(e&&e.start)+"-"+h0(e&&e.end)}function Sw(e){return e&&typeof e=="number"?e:1}var $t=class extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let n="",a={},i=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a=F({},r)),typeof t=="string"?n=t:!a.cause&&t&&(i=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){let l=o.indexOf(":");l===-1?a.ruleId=o:(a.source=o.slice(0,l),a.ruleId=o.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=Wi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}};$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;var y0={}.hasOwnProperty,VY=new Map,$Y=/[A-Z]/g,jY=/-([a-z])/g,HY=new Set(["table","tbody","thead","tfoot","tr"]),UY=new Set(["td","th"]),kw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function g0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let r=t.filePath||void 0,o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=ZY(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=XY(r,t.jsx,t.jsxs)}let n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ig:dw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Rw(n,e,void 0);return a&&typeof a!="string"?a:n.create(e,n.Fragment,{children:a||void 0},void 0)}function Rw(e,t,r){if(t.type==="element")return WY(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return GY(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return JY(e,t,r);if(t.type==="mdxjsEsm")return YY(e,t);if(t.type==="root")return qY(e,t,r);if(t.type==="text")return KY(e,t)}function WY(e,t,r){let o=e.schema,n=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=Iw(e,t.tagName,!1),i=QY(e,t),s=b0(e,t);return HY.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!o0(l):!0})),Ew(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function GY(e,t){if(t.data&&t.data.estree&&e.evaluater){let o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}gd(e,t.position)}function YY(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gd(e,t.position)}function JY(e,t,r){let o=e.schema,n=o;t.name==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=t.name===null?e.Fragment:Iw(e,t.name,!0),i=eJ(e,t),s=b0(e,t);return Ew(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function qY(e,t,r){let o={};return v0(o,b0(e,t)),e.create(t,e.Fragment,o,r)}function KY(e,t){return t.value}function Ew(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function v0(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function XY(e,t,r){return o;function o(n,a,i,s){let p=Array.isArray(i.children)?r:t;return s?p(a,i,s):p(a,i)}}function ZY(e,t){return r;function r(o,n,a,i){let s=Array.isArray(a.children),l=$p(o);return t(n,a,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function QY(e,t){let r={},o,n;for(n in t.properties)if(n!=="children"&&y0.call(t.properties,n)){let a=tJ(e,n,t.properties[n]);if(a){let[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&UY.has(t.tagName)?o=s:r[i]=s}}if(o){let a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function eJ(e,t){let r={};for(let o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){let a=o.data.estree.body[0];a.type;let i=a.expression;i.type;let s=i.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else gd(e,t.position);else{let n=o.name,a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){let s=o.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else gd(e,t.position);else a=o.value===null?!0:o.value;r[n]=a}return r}function b0(e,t){let r=[],o=-1,n=e.passKeys?new Map:VY;for(;++o<t.children.length;){let a=t.children[o],i;if(e.passKeys){let l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){let p=n.get(l)||0;i=l+"-"+p,n.set(l,p+1)}}let s=Rw(e,a,i);s!==void 0&&r.push(s)}return r}function tJ(e,t,r){let o=u0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?iw(r):fw(r)),o.property==="style"){let n=typeof r=="object"?r:rJ(e,String(r));return e.stylePropertyNameCase==="css"&&(n=oJ(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&o.space?d0[o.property]||o.property:o.attribute,r]}}function rJ(e,t){let r={};try{Tw(t,o)}catch(n){if(!e.ignoreInvalidStyle){let a=n,i=new $t("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=kw+"#cannot-parse-style-attribute",i}}return r;function o(n,a){let i=n;i.slice(0,2)!=="--"&&(i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),i=i.replace(jY,aJ)),r[i]=a}}function Iw(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){let n=t.split("."),a=-1,i;for(;++a<n.length;){let s=og(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}o=i}else o=og(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){let n=o.value;return y0.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(o);gd(e)}function gd(e,t){let r=new $t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=kw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function oJ(e){let t={},r;for(r in e)y0.call(e,r)&&(t[nJ(r)]=e[r]);return t}function nJ(e){let t=e.replace($Y,iJ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function aJ(e,t){return t.toUpperCase()}function iJ(e){return"-"+e.toLowerCase()}var vd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};import{Fragment as uK,jsx as dK,jsxs as fK}from"react/jsx-runtime";var sJ={};function x0(e,t){let r=t||sJ,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Dw(e,o,n)}function Dw(e,t,r){if(lJ(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ow(e.children,t,r)}return Array.isArray(e)?Ow(e,t,r):""}function Ow(e,t,r){let o=[],n=-1;for(;++n<e.length;)o[n]=Dw(e[n],t,r);return o.join("")}function lJ(e){return!!(e&&typeof e=="object")}var _w=document.createElement("i");function jp(e){let t="&"+e+";";_w.innerHTML=t;let r=_w.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function jr(e,t,r,o){let n=e.length,a=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,o.length<1e4)i=Array.from(o),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a<o.length;)i=o.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Xr(e,t){return e.length>0?(jr(e,e.length,0,t),e):t}var ww={}.hasOwnProperty;function Aw(e){let t={},r=-1;for(;++r<e.length;)pJ(t,e[r]);return t}function pJ(e,t){let r;for(r in t){let n=(ww.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],i;if(a)for(i in a){ww.call(n,i)||(n[i]=[]);let s=a[i];cJ(n[i],Array.isArray(s)?s:s?[s]:[])}}}function cJ(e,t){let r=-1,o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);jr(e,0,0,o)}function lg(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function Ba(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ro=Gi(/[A-Za-z]/),dr=Gi(/[\dA-Za-z]/),Bw=Gi(/[#-'*+\--9=?A-Z^-~]/);function bd(e){return e!==null&&(e<32||e===127)}var xd=Gi(/\d/),Mw=Gi(/[\dA-Fa-f]/),Nw=Gi(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function jt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}var Lw=Gi(new RegExp("\\p{P}|\\p{S}","u")),zw=Gi(/\s/);function Gi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function on(e){let t=[],r=-1,o=0,n=0;for(;++r<e.length;){let a=e.charCodeAt(r),i="";if(a===37&&dr(e.charCodeAt(r+1))&&dr(e.charCodeAt(r+2)))n=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){let s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),n=1):i="\uFFFD"}else i=String.fromCharCode(a);i&&(t.push(e.slice(o,r),encodeURIComponent(i)),o=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(o)}function Ke(e,t,r,o){let n=o?o-1:Number.POSITIVE_INFINITY,a=0;return i;function i(l){return Ye(l)?(e.enter(r),s(l)):t(l)}function s(l){return Ye(l)&&a++<n?(e.consume(l),s):(e.exit(r),t(l))}}var Fw={tokenize:uJ};function uJ(e){let t=e.attempt(this.parser.constructs.contentInitial,o,n),r;return t;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ke(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),a(s)}function a(s){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Me(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}var $w={tokenize:dJ},Vw={tokenize:fJ};function dJ(e){let t=this,r=[],o=0,n,a,i;return s;function s(g){if(o<r.length){let C=r[o];return t.containerState=C[1],e.attempt(C[0].continuation,l,p)(g)}return p(g)}function l(g){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&x();let C=t.events.length,T=C,P;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){P=t.events[T][1].end;break}b(o);let S=C;for(;S<t.events.length;)t.events[S][1].end=Object.assign({},P),S++;return jr(t.events,T+1,0,t.events.slice(C)),t.events.length=S,p(g)}return s(g)}function p(g){if(o===r.length){if(!n)return d(g);if(n.currentConstruct&&n.currentConstruct.concrete)return y(g);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vw,c,u)(g)}function c(g){return n&&x(),b(o),d(g)}function u(g){return t.parser.lazy[t.now().line]=o!==r.length,i=t.now().offset,y(g)}function d(g){return t.containerState={},e.attempt(Vw,f,y)(g)}function f(g){return o++,r.push([t.currentConstruct,t.containerState]),d(g)}function y(g){if(g===null){n&&x(),b(0),e.consume(g);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:n}),h(g)}function h(g){if(g===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(g);return}return Me(g)?(e.consume(g),v(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(g),h)}function v(g,C){let T=t.sliceStream(g);if(C&&T.push(null),g.previous=a,a&&(a.next=g),a=g,n.defineSkip(g.start),n.write(T),t.parser.lazy[g.start.line]){let P=n.events.length;for(;P--;)if(n.events[P][1].start.offset<i&&(!n.events[P][1].end||n.events[P][1].end.offset>i))return;let S=t.events.length,k=S,I,w;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){w=t.events[k][1].end;break}I=!0}for(b(o),P=S;P<t.events.length;)t.events[P][1].end=Object.assign({},w),P++;jr(t.events,k+1,0,t.events.slice(S)),t.events.length=P}}function b(g){let C=r.length;for(;C-- >g;){let T=r[C];t.containerState=T[1],T[0].exit.call(t,e)}r.length=g}function x(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function fJ(e,t,r){return Ke(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function T0(e){if(e===null||jt(e)||zw(e))return 1;if(Lw(e))return 2}function Hp(e,t,r){let o=[],n=-1;for(;++n<e.length;){let a=e[n].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}var Td={name:"attention",tokenize:hJ,resolveAll:mJ};function mJ(e,t){let r=-1,o,n,a,i,s,l,p,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let u=Object.assign({},e[o][1].end),d=Object.assign({},e[r][1].start);jw(u,-l),jw(d,l),i={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[o][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[r][1].start)},n={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},s.end)},e[o][1].end=Object.assign({},i.start),e[r][1].start=Object.assign({},s.end),p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Xr(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Xr(p,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",a,t]]),p=Xr(p,Hp(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=Xr(p,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=Xr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,jr(e,o-1,r-o+3,p),r=o+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function hJ(e,t){let r=this.parser.constructs.attentionMarkers.null,o=this.previous,n=T0(o),a;return i;function i(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;let p=e.exit("attentionSequence"),c=T0(l),u=!c||c===2&&n||r.includes(l),d=!n||n===2&&c||r.includes(o);return p._open=!!(a===42?u:u&&(n||!d)),p._close=!!(a===42?d:d&&(c||!u)),t(l)}}function jw(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var P0={name:"autolink",tokenize:yJ};function yJ(e,t,r){let o=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ro(f)?(e.consume(f),i):p(f)}function i(f){return f===43||f===45||f===46||dr(f)?(o=1,s(f)):p(f)}function s(f){return f===58?(e.consume(f),o=0,l):(f===43||f===45||f===46||dr(f))&&o++<32?(e.consume(f),s):(o=0,p(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||bd(f)?r(f):(e.consume(f),l)}function p(f){return f===64?(e.consume(f),c):Bw(f)?(e.consume(f),p):r(f)}function c(f){return dr(f)?u(f):r(f)}function u(f){return f===46?(e.consume(f),o=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||dr(f))&&o++<63){let y=f===45?d:u;return e.consume(f),y}return r(f)}}var Yi={tokenize:gJ,partial:!0};function gJ(e,t,r){return o;function o(a){return Ye(a)?Ke(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||Me(a)?t(a):r(a)}}var pg={name:"blockQuote",tokenize:vJ,continuation:{tokenize:bJ},exit:xJ};function vJ(e,t,r){let o=this;return n;function n(i){if(i===62){let s=o.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return r(i)}function a(i){return Ye(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function bJ(e,t,r){let o=this;return n;function n(i){return Ye(i)?Ke(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(pg,t,r)(i)}}function xJ(e){e.exit("blockQuote")}var cg={name:"characterEscape",tokenize:TJ};function TJ(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return Nw(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}var ug={name:"characterReference",tokenize:PJ};function PJ(e,t,r){let o=this,n=0,a,i;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,i=dr,c(u))}function p(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Mw,c):(e.enter("characterReferenceValue"),a=7,i=xd,c(u))}function c(u){if(u===59&&n){let d=e.exit("characterReferenceValue");return i===dr&&!jp(o.sliceSerialize(d))?r(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(u)&&n++<a?(e.consume(u),c):r(u)}}var Hw={tokenize:SJ,partial:!0},dg={name:"codeFenced",tokenize:CJ,concrete:!0};function CJ(e,t,r){let o=this,n={tokenize:T,partial:!0},a=0,i=0,s;return l;function l(P){return p(P)}function p(P){let S=o.events[o.events.length-1];return a=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=P,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(P)}function c(P){return P===s?(i++,e.consume(P),c):i<3?r(P):(e.exit("codeFencedFenceSequence"),Ye(P)?Ke(e,u,"whitespace")(P):u(P))}function u(P){return P===null||Me(P)?(e.exit("codeFencedFence"),o.interrupt?t(P):e.check(Hw,h,C)(P)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(P))}function d(P){return P===null||Me(P)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(P)):Ye(P)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ke(e,f,"whitespace")(P)):P===96&&P===s?r(P):(e.consume(P),d)}function f(P){return P===null||Me(P)?u(P):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(P))}function y(P){return P===null||Me(P)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(P)):P===96&&P===s?r(P):(e.consume(P),y)}function h(P){return e.attempt(n,C,v)(P)}function v(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),b}function b(P){return a>0&&Ye(P)?Ke(e,x,"linePrefix",a+1)(P):x(P)}function x(P){return P===null||Me(P)?e.check(Hw,h,C)(P):(e.enter("codeFlowValue"),g(P))}function g(P){return P===null||Me(P)?(e.exit("codeFlowValue"),x(P)):(e.consume(P),g)}function C(P){return e.exit("codeFenced"),t(P)}function T(P,S,k){let I=0;return w;function w(N){return P.enter("lineEnding"),P.consume(N),P.exit("lineEnding"),B}function B(N){return P.enter("codeFencedFence"),Ye(N)?Ke(P,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):M(N)}function M(N){return N===s?(P.enter("codeFencedFenceSequence"),O(N)):k(N)}function O(N){return N===s?(I++,P.consume(N),O):I>=i?(P.exit("codeFencedFenceSequence"),Ye(N)?Ke(P,$,"whitespace")(N):$(N)):k(N)}function $(N){return N===null||Me(N)?(P.exit("codeFencedFence"),S(N)):k(N)}}}function SJ(e,t,r){let o=this;return n;function n(i){return i===null?r(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}var Pd={name:"codeIndented",tokenize:RJ},kJ={tokenize:EJ,partial:!0};function RJ(e,t,r){let o=this;return n;function n(p){return e.enter("codeIndented"),Ke(e,a,"linePrefix",5)(p)}function a(p){let c=o.events[o.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(p):r(p)}function i(p){return p===null?l(p):Me(p)?e.attempt(kJ,i,l)(p):(e.enter("codeFlowValue"),s(p))}function s(p){return p===null||Me(p)?(e.exit("codeFlowValue"),i(p)):(e.consume(p),s)}function l(p){return e.exit("codeIndented"),t(p)}}function EJ(e,t,r){let o=this;return n;function n(i){return o.parser.lazy[o.now().line]?r(i):Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):Ke(e,a,"linePrefix",5)(i)}function a(i){let s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):Me(i)?n(i):r(i)}}var C0={name:"codeText",tokenize:DJ,resolve:IJ,previous:OJ};function IJ(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="codeTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function OJ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DJ(e,t,r){let o=this,n=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),n++,l):(e.exit("codeTextSequence"),p(d))}function p(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),p):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Me(d)?(e.exit("codeTextData"),p(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}var fg=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let o=r==null?Number.POSITIVE_INFINITY:r;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){let n=r||0;this.setCursor(Math.trunc(t));let a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return o&&Cd(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Cd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Cd(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cd(this.left,r.reverse())}}};function Cd(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function mg(e){let t={},r=-1,o,n,a,i,s,l,p,c=new fg(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(o=c.get(r),r&&o[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=o[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,_J(c,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,n=void 0;a--&&(i=c.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank");)i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=a);n&&(o[1].end=Object.assign({},c.get(n)[1].start),s=c.slice(n,r),s.unshift(o),c.splice(n,r-n+1,s))}}return jr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!p}function _J(e,t){let r=e.get(t)[1],o=e.get(t)[2],n=t-1,a=[],i=r._tokenizer||o.parser[r.contentType](r.start),s=i.events,l=[],p={},c,u,d=-1,f=r,y=0,h=0,v=[h];for(;f;){for(;e.get(++n)[1]!==f;);a.push(n),f._tokenizer||(c=o.sliceStream(f),f.next||c.push(null),u&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(h=d+1,v.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),d=v.length;d--;){let b=s.slice(v[d],v[d+1]),x=a.pop();l.push([x,x+b.length-1]),e.splice(x,2,b)}for(l.reverse(),d=-1;++d<l.length;)p[y+l[d][0]]=y+l[d][1],y+=l[d][1]-l[d][0]-1;return p}var S0={tokenize:BJ,resolve:AJ},wJ={tokenize:MJ,partial:!0};function AJ(e){return mg(e),e}function BJ(e,t){let r;return o;function o(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?a(s):Me(s)?e.check(wJ,i,a)(s):(e.consume(s),n)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function MJ(e,t,r){let o=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ke(e,a,"linePrefix")}function a(i){if(i===null||Me(i))return r(i);let s=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(o.parser.constructs.flow,r,t)(i)}}function hg(e,t,r,o,n,a,i,s,l){let p=l||Number.POSITIVE_INFINITY,c=0;return u;function u(b){return b===60?(e.enter(o),e.enter(n),e.enter(a),e.consume(b),e.exit(a),d):b===null||b===32||b===41||bd(b)?r(b):(e.enter(o),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function d(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(n),e.exit(o),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===62?(e.exit("chunkString"),e.exit(s),d(b)):b===null||b===60||Me(b)?r(b):(e.consume(b),b===92?y:f)}function y(b){return b===60||b===62||b===92?(e.consume(b),f):f(b)}function h(b){return!c&&(b===null||b===41||jt(b))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(o),t(b)):c<p&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||bd(b)?r(b):(e.consume(b),b===92?v:h)}function v(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function yg(e,t,r,o,n,a){let i=this,s=0,l;return p;function p(f){return e.enter(o),e.enter(n),e.consume(f),e.exit(n),e.enter(a),c}function c(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):f===93?(e.exit(a),e.enter(n),e.consume(f),e.exit(n),e.exit(o),t):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===null||f===91||f===93||Me(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!Ye(f)),f===92?d:u)}function d(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function gg(e,t,r,o,n,a){let i;return s;function s(d){return d===34||d===39||d===40?(e.enter(o),e.enter(n),e.consume(d),e.exit(n),i=d===40?41:d,l):r(d)}function l(d){return d===i?(e.enter(n),e.consume(d),e.exit(n),e.exit(o),t):(e.enter(a),p(d))}function p(d){return d===i?(e.exit(a),l(i)):d===null?r(d):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ke(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===i||d===null||Me(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?u:c)}function u(d){return d===i||d===92?(e.consume(d),c):c(d)}}function Js(e,t){let r;return o;function o(n){return Me(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,o):Ye(n)?Ke(e,o,r?"linePrefix":"lineSuffix")(n):t(n)}}var k0={name:"definition",tokenize:LJ},NJ={tokenize:zJ,partial:!0};function LJ(e,t,r){let o=this,n;return a;function a(f){return e.enter("definition"),i(f)}function i(f){return yg.call(o,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return n=Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return jt(f)?Js(e,p)(f):p(f)}function p(f){return hg(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(NJ,u,u)(f)}function u(f){return Ye(f)?Ke(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Me(f)?(e.exit("definition"),o.parser.defined.push(n),t(f)):r(f)}}function zJ(e,t,r){return o;function o(s){return jt(s)?Js(e,n)(s):r(s)}function n(s){return gg(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Ye(s)?Ke(e,i,"whitespace")(s):i(s)}function i(s){return s===null||Me(s)?t(s):r(s)}}var R0={name:"hardBreakEscape",tokenize:FJ};function FJ(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return Me(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}var E0={name:"headingAtx",tokenize:$J,resolve:VJ};function VJ(e,t){let r=e.length-2,o=3,n,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},jr(e,o,r-o+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function $J(e,t,r){let o=0;return n;function n(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&o++<6?(e.consume(c),i):c===null||jt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Me(c)?(e.exit("atxHeading"),t(c)):Ye(c)?Ke(e,s,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function p(c){return c===null||c===35||jt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),p)}}var Uw=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],I0=["pre","script","style","textarea"];var O0={name:"htmlFlow",tokenize:WJ,resolveTo:UJ,concrete:!0},jJ={tokenize:YJ,partial:!0},HJ={tokenize:GJ,partial:!0};function UJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function WJ(e,t,r){let o=this,n,a,i,s,l;return p;function p(A){return c(A)}function c(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),u}function u(A){return A===33?(e.consume(A),d):A===47?(e.consume(A),a=!0,h):A===63?(e.consume(A),n=3,o.interrupt?t:R):Ro(A)?(e.consume(A),i=String.fromCharCode(A),v):r(A)}function d(A){return A===45?(e.consume(A),n=2,f):A===91?(e.consume(A),n=5,s=0,y):Ro(A)?(e.consume(A),n=4,o.interrupt?t:R):r(A)}function f(A){return A===45?(e.consume(A),o.interrupt?t:R):r(A)}function y(A){let ee="CDATA[";return A===ee.charCodeAt(s++)?(e.consume(A),s===ee.length?o.interrupt?t:M:y):r(A)}function h(A){return Ro(A)?(e.consume(A),i=String.fromCharCode(A),v):r(A)}function v(A){if(A===null||A===47||A===62||jt(A)){let ee=A===47,ye=i.toLowerCase();return!ee&&!a&&I0.includes(ye)?(n=1,o.interrupt?t(A):M(A)):Uw.includes(i.toLowerCase())?(n=6,ee?(e.consume(A),b):o.interrupt?t(A):M(A)):(n=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(A):a?x(A):g(A))}return A===45||dr(A)?(e.consume(A),i+=String.fromCharCode(A),v):r(A)}function b(A){return A===62?(e.consume(A),o.interrupt?t:M):r(A)}function x(A){return Ye(A)?(e.consume(A),x):w(A)}function g(A){return A===47?(e.consume(A),w):A===58||A===95||Ro(A)?(e.consume(A),C):Ye(A)?(e.consume(A),g):w(A)}function C(A){return A===45||A===46||A===58||A===95||dr(A)?(e.consume(A),C):T(A)}function T(A){return A===61?(e.consume(A),P):Ye(A)?(e.consume(A),T):g(A)}function P(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),l=A,S):Ye(A)?(e.consume(A),P):k(A)}function S(A){return A===l?(e.consume(A),l=null,I):A===null||Me(A)?r(A):(e.consume(A),S)}function k(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||jt(A)?T(A):(e.consume(A),k)}function I(A){return A===47||A===62||Ye(A)?g(A):r(A)}function w(A){return A===62?(e.consume(A),B):r(A)}function B(A){return A===null||Me(A)?M(A):Ye(A)?(e.consume(A),B):r(A)}function M(A){return A===45&&n===2?(e.consume(A),_):A===60&&n===1?(e.consume(A),L):A===62&&n===4?(e.consume(A),q):A===63&&n===3?(e.consume(A),R):A===93&&n===5?(e.consume(A),z):Me(A)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(jJ,ie,O)(A)):A===null||Me(A)?(e.exit("htmlFlowData"),O(A)):(e.consume(A),M)}function O(A){return e.check(HJ,$,ie)(A)}function $(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),N}function N(A){return A===null||Me(A)?O(A):(e.enter("htmlFlowData"),M(A))}function _(A){return A===45?(e.consume(A),R):M(A)}function L(A){return A===47?(e.consume(A),i="",W):M(A)}function W(A){if(A===62){let ee=i.toLowerCase();return I0.includes(ee)?(e.consume(A),q):M(A)}return Ro(A)&&i.length<8?(e.consume(A),i+=String.fromCharCode(A),W):M(A)}function z(A){return A===93?(e.consume(A),R):M(A)}function R(A){return A===62?(e.consume(A),q):A===45&&n===2?(e.consume(A),R):M(A)}function q(A){return A===null||Me(A)?(e.exit("htmlFlowData"),ie(A)):(e.consume(A),q)}function ie(A){return e.exit("htmlFlow"),t(A)}}function GJ(e,t,r){let o=this;return n;function n(i){return Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):r(i)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}function YJ(e,t,r){return o;function o(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Yi,t,r)}}var D0={name:"htmlText",tokenize:JJ};function JJ(e,t,r){let o=this,n,a,i;return s;function s(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),l}function l(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),T):R===63?(e.consume(R),g):Ro(R)?(e.consume(R),k):r(R)}function p(R){return R===45?(e.consume(R),c):R===91?(e.consume(R),a=0,y):Ro(R)?(e.consume(R),x):r(R)}function c(R){return R===45?(e.consume(R),f):r(R)}function u(R){return R===null?r(R):R===45?(e.consume(R),d):Me(R)?(i=u,L(R)):(e.consume(R),u)}function d(R){return R===45?(e.consume(R),f):u(R)}function f(R){return R===62?_(R):R===45?d(R):u(R)}function y(R){let q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?h:y):r(R)}function h(R){return R===null?r(R):R===93?(e.consume(R),v):Me(R)?(i=h,L(R)):(e.consume(R),h)}function v(R){return R===93?(e.consume(R),b):h(R)}function b(R){return R===62?_(R):R===93?(e.consume(R),b):h(R)}function x(R){return R===null||R===62?_(R):Me(R)?(i=x,L(R)):(e.consume(R),x)}function g(R){return R===null?r(R):R===63?(e.consume(R),C):Me(R)?(i=g,L(R)):(e.consume(R),g)}function C(R){return R===62?_(R):g(R)}function T(R){return Ro(R)?(e.consume(R),P):r(R)}function P(R){return R===45||dr(R)?(e.consume(R),P):S(R)}function S(R){return Me(R)?(i=S,L(R)):Ye(R)?(e.consume(R),S):_(R)}function k(R){return R===45||dr(R)?(e.consume(R),k):R===47||R===62||jt(R)?I(R):r(R)}function I(R){return R===47?(e.consume(R),_):R===58||R===95||Ro(R)?(e.consume(R),w):Me(R)?(i=I,L(R)):Ye(R)?(e.consume(R),I):_(R)}function w(R){return R===45||R===46||R===58||R===95||dr(R)?(e.consume(R),w):B(R)}function B(R){return R===61?(e.consume(R),M):Me(R)?(i=B,L(R)):Ye(R)?(e.consume(R),B):I(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),n=R,O):Me(R)?(i=M,L(R)):Ye(R)?(e.consume(R),M):(e.consume(R),$)}function O(R){return R===n?(e.consume(R),n=void 0,N):R===null?r(R):Me(R)?(i=O,L(R)):(e.consume(R),O)}function $(R){return R===null||R===34||R===39||R===60||R===61||R===96?r(R):R===47||R===62||jt(R)?I(R):(e.consume(R),$)}function N(R){return R===47||R===62||jt(R)?I(R):r(R)}function _(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):r(R)}function L(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),W}function W(R){return Ye(R)?Ke(e,z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):z(R)}function z(R){return e.enter("htmlTextData"),i(R)}}var qs={name:"labelEnd",tokenize:eq,resolveTo:QJ,resolveAll:ZJ},qJ={tokenize:tq},KJ={tokenize:rq},XJ={tokenize:oq};function ZJ(e){let t=-1;for(;++t<e.length;){let r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function QJ(e,t){let r=e.length,o=0,n,a,i,s;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){o=2;break}}else n.type==="labelEnd"&&(i=r);let l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},p={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[a+o+2][1].end),end:Object.assign({},e[i-2][1].start)};return s=[["enter",l,t],["enter",p,t]],s=Xr(s,e.slice(a+1,a+o+3)),s=Xr(s,[["enter",c,t]]),s=Xr(s,Hp(t.parser.constructs.insideSpan.null,e.slice(a+o+4,i-3),t)),s=Xr(s,[["exit",c,t],e[i-2],e[i-1],["exit",p,t]]),s=Xr(s,e.slice(i+1)),s=Xr(s,[["exit",l,t]]),jr(e,a,e.length,s),e}function eq(e,t,r){let o=this,n=o.events.length,a,i;for(;n--;)if((o.events[n][1].type==="labelImage"||o.events[n][1].type==="labelLink")&&!o.events[n][1]._balanced){a=o.events[n][1];break}return s;function s(d){return a?a._inactive?u(d):(i=o.parser.defined.includes(Ba(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(qJ,c,i?c:u)(d):d===91?e.attempt(KJ,c,i?p:u)(d):i?c(d):u(d)}function p(d){return e.attempt(XJ,c,u)(d)}function c(d){return t(d)}function u(d){return a._balanced=!0,r(d)}}function tq(e,t,r){return o;function o(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),n}function n(u){return jt(u)?Js(e,a)(u):a(u)}function a(u){return u===41?c(u):hg(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return jt(u)?Js(e,l)(u):c(u)}function s(u){return r(u)}function l(u){return u===34||u===39||u===40?gg(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function p(u){return jt(u)?Js(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):r(u)}}function rq(e,t,r){let o=this;return n;function n(s){return yg.call(o,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return o.parser.defined.includes(Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function i(s){return r(s)}}function oq(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}var _0={name:"labelStartImage",tokenize:nq,resolveAll:qs.resolveAll};function nq(e,t,r){let o=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):r(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(s):t(s)}}var w0={name:"labelStartLink",tokenize:aq,resolveAll:qs.resolveAll};function aq(e,t,r){let o=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(i):t(i)}}var Sd={name:"lineEnding",tokenize:iq};function iq(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ke(e,t,"linePrefix")}}var Ks={name:"thematicBreak",tokenize:sq};function sq(e,t,r){let o=0,n;return a;function a(p){return e.enter("thematicBreak"),i(p)}function i(p){return n=p,s(p)}function s(p){return p===n?(e.enter("thematicBreakSequence"),l(p)):o>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):r(p)}function l(p){return p===n?(e.consume(p),o++,l):(e.exit("thematicBreakSequence"),Ye(p)?Ke(e,s,"whitespace")(p):s(p))}}var Hr={name:"list",tokenize:cq,continuation:{tokenize:uq},exit:fq},lq={tokenize:mq,partial:!0},pq={tokenize:dq,partial:!0};function cq(e,t,r){let o=this,n=o.events[o.events.length-1],a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(f){let y=o.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!o.containerState.marker||f===o.containerState.marker:xd(f)){if(o.containerState.type||(o.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ks,r,p)(f):p(f);if(!o.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return xd(f)&&++i<10?(e.consume(f),l):(!o.interrupt||i<2)&&(o.containerState.marker?f===o.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):r(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||f,e.check(Yi,o.interrupt?r:c,e.attempt(lq,d,u))}function c(f){return o.containerState.initialBlankLine=!0,a++,d(f)}function u(f){return Ye(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):r(f)}function d(f){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function uq(e,t,r){let o=this;return o.containerState._closeFlow=void 0,e.check(Yi,n,a);function n(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ke(e,t,"listItemIndent",o.containerState.size+1)(s)}function a(s){return o.containerState.furtherBlankLines||!Ye(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,i(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(pq,t,i)(s))}function i(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ke(e,e.attempt(Hr,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function dq(e,t,r){let o=this;return Ke(e,n,"listItemIndent",o.containerState.size+1);function n(a){let i=o.events[o.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===o.containerState.size?t(a):r(a)}}function fq(e){e.exit(this.containerState.type)}function mq(e,t,r){let o=this;return Ke(e,n,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){let i=o.events[o.events.length-1];return!Ye(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}var vg={name:"setextUnderline",tokenize:yq,resolveTo:hq};function hq(e,t){let r=e.length,o,n,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",i,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end=Object.assign({},e[a][1].end)):e[o][1]=i,e.push(["exit",i,t]),e}function yq(e,t,r){let o=this,n;return a;function a(p){let c=o.events.length,u;for(;c--;)if(o.events[c][1].type!=="lineEnding"&&o.events[c][1].type!=="linePrefix"&&o.events[c][1].type!=="content"){u=o.events[c][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||u)?(e.enter("setextHeadingLine"),n=p,i(p)):r(p)}function i(p){return e.enter("setextHeadingLineSequence"),s(p)}function s(p){return p===n?(e.consume(p),s):(e.exit("setextHeadingLineSequence"),Ye(p)?Ke(e,l,"lineSuffix")(p):l(p))}function l(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}var Ww={tokenize:gq};function gq(e){let t=this,r=e.attempt(Yi,o,e.attempt(this.parser.constructs.flowInitial,n,Ke(e,e.attempt(this.parser.constructs.flow,n,e.attempt(S0,n)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var Gw={resolveAll:Kw()},Yw=qw("string"),Jw=qw("text");function qw(e){return{tokenize:t,resolveAll:Kw(e==="text"?vq:void 0)};function t(r){let o=this,n=this.parser.constructs[e],a=r.attempt(n,i,s);return i;function i(c){return p(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){if(c===null)return!0;let u=n[c],d=-1;if(u)for(;++d<u.length;){let f=u[d];if(!f.previous||f.previous.call(o,o.previous))return!0}return!1}}}function Kw(e){return t;function t(r,o){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,o):r}}function vq(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let o=e[r-1][1],n=t.sliceStream(o),a=n.length,i=-1,s=0,l;for(;a--;){let p=n[a];if(typeof p=="string"){for(i=p.length;p.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(p===-2)l=!0,s++;else if(p!==-1){a++;break}}if(s){let p={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-s,offset:o.end.offset-s,_index:o.start._index+a,_bufferIndex:a?i:o.start._bufferIndex+i},end:Object.assign({},o.end)};o.end=Object.assign({},p.start),o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}function Xw(e,t,r){let o=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),n={},a=[],i=[],s=[],l=!0,p={consume:C,enter:T,exit:P,attempt:I(S),check:I(k),interrupt:I(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:y,now:v,defineSkip:b,write:f},u=t.tokenize.call(c,p),d;return t.resolveAll&&a.push(t),c;function f(O){return i=Xr(i,O),x(),i[i.length-1]!==null?[]:(w(t,0),c.events=Hp(a,c.events,c),c.events)}function y(O,$){return xq(h(O),$)}function h(O){return bq(i,O)}function v(){let{line:O,column:$,offset:N,_index:_,_bufferIndex:L}=o;return{line:O,column:$,offset:N,_index:_,_bufferIndex:L}}function b(O){n[O.line]=O.column,M()}function x(){let O;for(;o._index<i.length;){let $=i[o._index];if(typeof $=="string")for(O=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===O&&o._bufferIndex<$.length;)g($.charCodeAt(o._bufferIndex));else g($)}}function g(O){l=void 0,d=O,u=u(O)}function C(O){Me(O)?(o.line++,o.column=1,o.offset+=O===-3?2:1,M()):O!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===i[o._index].length&&(o._bufferIndex=-1,o._index++)),c.previous=O,l=!0}function T(O,$){let N=$||{};return N.type=O,N.start=v(),c.events.push(["enter",N,c]),s.push(N),N}function P(O){let $=s.pop();return $.end=v(),c.events.push(["exit",$,c]),$}function S(O,$){w(O,$.from)}function k(O,$){$.restore()}function I(O,$){return N;function N(_,L,W){let z,R,q,ie;return Array.isArray(_)?ee(_):"tokenize"in _?ee([_]):A(_);function A(U){return ce;function ce(me){let be=me!==null&&U[me],Te=me!==null&&U.null,Le=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return ee(Le)(me)}}function ee(U){return z=U,R=0,U.length===0?W:ye(U[R])}function ye(U){return ce;function ce(me){return ie=B(),q=U,U.partial||(c.currentConstruct=U),U.name&&c.parser.constructs.disable.null.includes(U.name)?se(me):U.tokenize.call($?Object.assign(Object.create(c),$):c,p,Ie,se)(me)}}function Ie(U){return l=!0,O(q,ie),L}function se(U){return l=!0,ie.restore(),++R<z.length?ye(z[R]):W}}}function w(O,$){O.resolveAll&&!a.includes(O)&&a.push(O),O.resolve&&jr(c.events,$,c.events.length-$,O.resolve(c.events.slice($),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function B(){let O=v(),$=c.previous,N=c.currentConstruct,_=c.events.length,L=Array.from(s);return{restore:W,from:_};function W(){o=O,c.previous=$,c.currentConstruct=N,c.events.length=_,s=L,M()}}function M(){o.line in n&&o.column<2&&(o.column=n[o.line],o.offset+=n[o.line]-1)}}function bq(e,t){let r=t.start._index,o=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex,i;if(r===n)i=[e[r].slice(o,a)];else{if(i=e.slice(r,n),o>-1){let s=i[0];typeof s=="string"?i[0]=s.slice(o):i.shift()}a>0&&i.push(e[n].slice(0,a))}return i}function xq(e,t){let r=-1,o=[],n;for(;++r<e.length;){let a=e[r],i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
132
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){i=!0,s=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Q8(e,t){if(e){if(typeof e=="string")return Y_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y_(e,t)}}function Y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function J_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(r),!0).forEach(function(o){cd(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J_(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q_(){var e=new Set,t=null;function r(a){t&&(!a.canMonitor||a.canMonitor(t.canMonitorArgs))&&t.active.add(a)}function o(a){var i=eY({},a);return e.add(i),r(i),function(){e.delete(i),t&&t.active.delete(i)}}function n(a){var i=a.eventName,s=a.payload;if(i==="onGenerateDragPreview"){t={canMonitorArgs:{initial:s.location.initial,source:s.source},active:new Set};var l=Z8(e),p;try{for(l.s();!(p=l.n()).done;){var c=p.value;r(c)}}catch(v){l.e(v)}finally{l.f()}}if(t){for(var u=Array.from(t.active),d=0,f=u;d<f.length;d++){var y=f[d];if(t.active.has(y)){var h;(h=y[i])===null||h===void 0||h.call(y,s)}}i==="onDrop"&&(t.active.clear(),t=null)}}return{dispatchEvent:n,monitorForConsumers:o}}function K_(e){var t=e.typeKey,r=e.mount,o=e.dispatchEventToSource,n=e.onPostDispatch,a=e.defaultDropEffect,i=q_(),s=G_({typeKey:t,defaultDropEffect:a});function l(u){o==null||o(u),s.dispatchEvent(u),i.dispatchEvent(u),n==null||n(u)}function p(u){var d=u.event,f=u.dragType;HT.start({event:d,dragType:f,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}function c(){function u(){var d={canStart:HT.canStart,start:p};return r(d)}return j_({typeKey:t,mount:u})}return{registerUsage:c,dropTarget:s.dropTargetForConsumers,monitor:i.monitorForConsumers}}var Pot=Fp(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),X_="pdnd:android-fallback";function Z_(e){var t=e.dragEnter,r=t.type,o=t.relatedTarget;return r!=="dragenter"?!1:$i()?M_({dragEnter:t}):o==null?!0:qy()?Xy(o):o instanceof HTMLIFrameElement}var Q_="text/plain";var ew="application/vnd.pdnd";function KT(e){var t=e.type,r=e.value;return!(t===ew||t===Q_&&r===X_)}function tY(e){return Array.from(e.types).filter(function(t){return KT({type:t,value:e.getData(t)})})}function rY(e){return Array.from(e.items).filter(function(t){return t.kind==="file"||KT({type:t.type,value:e.getData(t.type)})})}var qT=!1,XT=K_({typeKey:"external",defaultDropEffect:"copy",mount:function(t){return(0,ud.bind)(window,{type:"dragenter",listener:function(o){if(!qT&&o.dataTransfer&&t.canStart(o)&&Z_({dragEnter:o})){var n=tY(o.dataTransfer);if(n.length){var a={types:n,items:[],getStringData:function(){return null}};t.start({event:o,dragType:{type:"external",startedFrom:"external",payload:a,getDropPayload:function(s){if(!s.dataTransfer)return a;var l=rY(s.dataTransfer),p=s.dataTransfer.getData.bind(s.dataTransfer);return{types:n,items:l,getStringData:function(u){if(!n.includes(u))return null;var d=p(u);return KT({type:u,value:d})?d:null}}}}})}}}})}});function ZT(e){return XT.dropTarget(e)}function QT(e){return XT.monitor(e)}(function(){if(typeof window>"u")return;XT.registerUsage();var t={type:"idle"},r=t;function o(){r.type==="dragging"&&(qT=!1,r.cleanup(),r=t)}function n(){return(0,ud.bindAll)(window,[{type:"dragend",listener:o}].concat(wa(Vp({onDragEnd:o}))),{capture:!0})}(0,ud.bind)(window,{type:"dragstart",listener:function(){r.type==="idle"&&(qT=!0,r={type:"dragging",cleanup:n()})},options:{capture:!0}})})();function Qy(e){var t=e.source;return t.types.includes("Files")}function e0(e){var t=e.source;return t.items.filter(function(r){return r.kind==="file"}).map(function(r){return r.getAsFile()}).filter(function(r){return r!=null})}var rw=wo(ld());function tw(e){e.defaultPrevented||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault())}var t0=null;function oY(){dd(),t0=(0,rw.bindAll)(window,[{type:"dragover",listener:tw},{type:"dragenter",listener:tw},{type:"drop",listener:function(t){t.preventDefault(),dd()}},{type:"dragend",listener:dd}].concat(wa(Vp({onDragEnd:dd}))),{capture:!1})}function dd(){var e;(e=t0)===null||e===void 0||e(),t0=null}function nY(){var e;if(((e=window.event)===null||e===void 0?void 0:e.type)==="drop"){var t;(t=window.event)===null||t===void 0||t.preventDefault()}dd()}var eg={start:oY,stop:nY};var iY=E(ap)({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),sY=E(Ct,{name:"Uploader",slot:"PreviewRoot"})({}),lY=E(_u,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),pY=E(I_,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),cY=E(O_,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),uY=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],dY={"image/*":[".jpeg",".jpg",".png",".gif",".bmp",".tiff",".svg",".webp",".heic",".ico"],"audio/*":[".mp3",".wav",".flac",".aac",".ogg",".m4a",".wma",".aiff",".alac",".midi",".mp4"],"video/*":[".mp4",".avi",".mkv",".mov",".wmv",".flv",".webm",".mpeg",".3gp",".m4v"]},r0=e=>{let t=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t),o=uY[t];return Intl.NumberFormat("en-us",{style:"unit",unit:o,unitDisplay:"narrow"}).format(r)},fY=e=>{let{files:t,uploaded:r,onDelete:o}=e;return D(sY,{gap:1,children:[...r,...t].map(n=>D(lY,{size:"sm",color:"neutral",children:Pe(Ct,{direction:"row",alignItems:"center",gap:2,children:[D(pY,{}),Pe(Ct,{flex:"1",children:[D(Sr,{level:"body-sm",textColor:"common.black",children:n.name}),!!n.size&&D(Sr,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary",children:r0(n.size)})]}),D(or,{onClick:()=>o==null?void 0:o(n),children:D(cY,{})})]})},n.name))})},mY=E(Ct,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),hY=E(tn,{name:"Uploader",slot:"dropZone",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(5),gap:e.spacing(4),cursor:"pointer",backgroundColor:e.palette.background.surface,border:r?`1px solid ${e.palette.danger.outlinedBorder}`:t==="idle"?`1px solid ${e.palette.neutral.outlinedBorder}`:`1px solid ${e.palette.primary.outlinedBorder}`})),yY=E(E_,{name:"Uploader",slot:"iconContainer",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({color:r?`rgba(${e.vars.palette.danger.mainChannel} / 0.6)`:t==="over"?`rgba(${e.palette.primary.mainChannel} / 0.6)`:e.palette.neutral.softActiveBg,width:"32px",height:"32px"})),aw=aY.memo(e=>{let{accept:t,minCount:r,maxCount:o,name:n,size:a,maxFileSize:i,maxFileTotalSize:s,onChange:l,label:p,disabled:c,onDelete:u}=e,d=nw(null),f=nw(null),[y,h]=rg(),[v,b]=rg([]),[x,g]=rg(e.uploaded||[]),[C,T]=rg("idle"),P=fd(()=>t.split(",").map(_=>_.trim()),[t]),S=fd(()=>P.flatMap(_=>["image/*","video/*","audio/*"].includes(_)?dY[_]:_),[P]),k=fd(()=>{let[_,L]=[P.filter(z=>["image/*","video/*","audio/*"].includes(z)).map(z=>{let[R]=z.split("/");return R.toLowerCase()}),P.filter(z=>!["image/*","video/*","audio/*"].includes(z)).map(z=>{let[R,q]=z.split("/");return q?q.toUpperCase():R.toUpperCase().replace(".","")})],W=[];return _.length>0&&W.push(`Any ${_.join(", ")} file`),L.length>0&&W.push(L.join(", ")),W.push(`Maximum ${r0(s)}`),o&&W.push(`Up to ${o} ${o===1?"file":"files"}`),W.join(", ")},[P,s,o]),I=fd(()=>!!y||e.error,[e.error,y]),w=fd(()=>!o||o&&[...x,...v].length!==o,[v,o,x]),B=tg(_=>{try{let L=S.map(q=>q.replace(".",""))||[],W=new RegExp(`${L.join("|")}`);if(_.forEach(q=>{let ie=q.name.split(".").pop()||"";if(!W.test(ie))throw new Error("Please upload acceptable file type.")}),i&&_.forEach(q=>{if(q.size>i)throw new Error(`One or more File size exceeded the maximum limit. Each file size must be ${r0(i)} or less.`)}),[...v,..._].reduce((q,ie)=>q+ie.size,0)>s)throw new Error("Total File size exceeded the maximum limit.");let R=[...v,..._];if(o&&[...x,...R].length>o)throw new Error("Exceeded the maximum number of files.");l==null||l({target:{name:n,value:R}}),b(R),h(void 0)}catch(L){h(L.message)}},[v,x,o,S,i,s,n,l]);ow(()=>{let _=d.current;if(!(!_||c))return id(ZT({element:_,canDrop:Qy,onDragEnter:()=>T("over"),onDragLeave:()=>T("potential"),onDrop:async({source:L})=>{let W=await e0({source:L});B(W)}}),QT({canMonitor:Qy,onDragStart:()=>{T("potential"),eg.start()},onDrop:()=>{T("idle"),eg.stop()}}))}),ow(()=>{f.current&&r&&(v.length<r?f.current.setCustomValidity(`At least ${r} files are required.`):f.current.setCustomValidity(""))},[f,v,r]);let M=tg(_=>{let L=Array.from(_.target.files||[]);B(L)},[B]),O=tg(_=>{_ instanceof File?b(L=>(l==null||l({target:{name:n,value:L.filter(W=>W!==_)}}),L.filter(W=>W!==_))):(g(L=>L.filter(W=>W.id!==_.id)),u==null||u(_)),h(void 0)},[n,l,u]),$=tg(()=>{var _;(_=f.current)==null||_.click()},[]),N=Pe(hY,{state:C,error:!!(I||y),ref:d,onClick:$,children:[D(Ct,{alignItems:"center",gap:1,children:D(yY,{state:C,error:!!(I||y)})}),D(iY,{disabled:c,required:!!r,onInvalid:_=>{r&&v.length<r&&h(`Please choose ${r} ${r===1?"file":"files"} to upload.`)},slotProps:{input:{multiple:!0,accept:S.join(","),type:"file",ref:f,role:"button",onChange:M}}})]});return Pe(mY,{children:[w&&Pe(Gn,{size:a,error:!!(I||y),disabled:c,required:!!r,children:[p&&D(Yn,{children:p}),N,D(Jn,{children:Pe(Ct,{children:[y&&D("div",{children:y}),D("div",{children:k})]})})]}),[...x,...v].length>0&&D(fY,{files:v,uploaded:x,onDelete:O})]})});function iw(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var gY=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vY=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bY={};function og(e,t){return((t||bY).jsx?vY:gY).test(e)}var xY=/[ \t\n\f\r]/g;function o0(e){return typeof e=="object"?e.type==="text"?sw(e.value):!1:sw(e)}function sw(e){return e.replace(xY,"")===""}var Aa=class{constructor(t,r,o){this.property=t,this.normal=r,o&&(this.space=o)}};Aa.prototype.property={};Aa.prototype.normal={};Aa.prototype.space=null;function n0(e,t){let r={},o={},n=-1;for(;++n<e.length;)Object.assign(r,e[n].property),Object.assign(o,e[n].normal);return new Aa(r,o,t)}function md(e){return e.toLowerCase()}var $r=class{constructor(t,r){this.property=t,this.attribute=r}};$r.prototype.space=null;$r.prototype.boolean=!1;$r.prototype.booleanish=!1;$r.prototype.overloadedBoolean=!1;$r.prototype.number=!1;$r.prototype.commaSeparated=!1;$r.prototype.spaceSeparated=!1;$r.prototype.commaOrSpaceSeparated=!1;$r.prototype.mustUseProperty=!1;$r.prototype.defined=!1;var hd={};_n(hd,{boolean:()=>Ge,booleanish:()=>Bt,commaOrSpaceSeparated:()=>co,commaSeparated:()=>Ui,number:()=>ve,overloadedBoolean:()=>a0,spaceSeparated:()=>ft});var TY=0,Ge=Ws(),Bt=Ws(),a0=Ws(),ve=Ws(),ft=Ws(),Ui=Ws(),co=Ws();function Ws(){return 2**++TY}var i0=Object.keys(hd),Gs=class extends $r{constructor(t,r,o,n){let a=-1;if(super(t,r),lw(this,"space",n),typeof o=="number")for(;++a<i0.length;){let i=i0[a];lw(this,i0[a],(o&hd[i])===hd[i])}}};Gs.prototype.defined=!0;function lw(e,t,r){r&&(e[t]=r)}var PY={}.hasOwnProperty;function rn(e){let t={},r={},o;for(o in e.properties)if(PY.call(e.properties,o)){let n=e.properties[o],a=new Gs(o,e.transform(e.attributes||{},o),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[md(o)]=o,r[md(a.attribute)]=o}return new Aa(t,r,e.space)}var s0=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var l0=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ng(e,t){return t in e?e[t]:t}function ag(e,t){return ng(e,t.toLowerCase())}var p0=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ag,properties:{xmlns:null,xmlnsXLink:null}});var c0=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:ft,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:ve,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:ft,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:Bt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null}});var pw=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ag,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:ft,autoFocus:Ge,autoPlay:Ge,blocking:ft,capture:null,charSet:null,checked:Ge,cite:null,className:ft,cols:ve,colSpan:null,content:null,contentEditable:Bt,controls:Ge,controlsList:ft,coords:ve|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:a0,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:ft,height:ve,hidden:Ge,high:ve,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ge,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:ve,pattern:null,ping:ft,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:ft,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:ft,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:Bt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:ve,security:null,unselectable:null}});var cw=rn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ng,properties:{about:co,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:co,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:co,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:co,rev:co,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:co,requiredFeatures:co,requiredFonts:co,requiredFormats:co,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:co,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:co,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:co,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var CY=/^data[-\w.:]+$/i,uw=/-[a-z]/g,SY=/[A-Z]/g;function u0(e,t){let r=md(t),o=t,n=$r;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CY.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(uw,RY);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!uw.test(a)){let i=a.replace(SY,kY);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=Gs}return new n(o,t)}function kY(e){return"-"+e.toLowerCase()}function RY(e){return e.charAt(1).toUpperCase()}var d0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var dw=n0([l0,s0,p0,c0,pw],"html"),ig=n0([l0,s0,p0,c0,cw],"svg");function fw(e){return e.join(" ").trim()}var f0=wo(xw(),1),Tw=f0.default.default||f0.default;var sg=Pw("end"),$p=Pw("start");function Pw(e){return t;function t(r){let o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function m0(e){let t=$p(e),r=sg(e);if(t&&r)return{start:t,end:r}}function Wi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Cw(e.position):"start"in e||"end"in e?Cw(e):"line"in e||"column"in e?h0(e):""}function h0(e){return Sw(e&&e.line)+":"+Sw(e&&e.column)}function Cw(e){return h0(e&&e.start)+"-"+h0(e&&e.end)}function Sw(e){return e&&typeof e=="number"?e:1}var $t=class extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let n="",a={},i=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a=F({},r)),typeof t=="string"?n=t:!a.cause&&t&&(i=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){let l=o.indexOf(":");l===-1?a.ruleId=o:(a.source=o.slice(0,l),a.ruleId=o.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=Wi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}};$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;var y0={}.hasOwnProperty,VY=new Map,$Y=/[A-Z]/g,jY=/-([a-z])/g,HY=new Set(["table","tbody","thead","tfoot","tr"]),UY=new Set(["td","th"]),kw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function g0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let r=t.filePath||void 0,o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=ZY(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=XY(r,t.jsx,t.jsxs)}let n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ig:dw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Rw(n,e,void 0);return a&&typeof a!="string"?a:n.create(e,n.Fragment,{children:a||void 0},void 0)}function Rw(e,t,r){if(t.type==="element")return WY(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return GY(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return JY(e,t,r);if(t.type==="mdxjsEsm")return YY(e,t);if(t.type==="root")return qY(e,t,r);if(t.type==="text")return KY(e,t)}function WY(e,t,r){let o=e.schema,n=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=Iw(e,t.tagName,!1),i=QY(e,t),s=b0(e,t);return HY.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!o0(l):!0})),Ew(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function GY(e,t){if(t.data&&t.data.estree&&e.evaluater){let o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}gd(e,t.position)}function YY(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gd(e,t.position)}function JY(e,t,r){let o=e.schema,n=o;t.name==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=t.name===null?e.Fragment:Iw(e,t.name,!0),i=eJ(e,t),s=b0(e,t);return Ew(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function qY(e,t,r){let o={};return v0(o,b0(e,t)),e.create(t,e.Fragment,o,r)}function KY(e,t){return t.value}function Ew(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function v0(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function XY(e,t,r){return o;function o(n,a,i,s){let p=Array.isArray(i.children)?r:t;return s?p(a,i,s):p(a,i)}}function ZY(e,t){return r;function r(o,n,a,i){let s=Array.isArray(a.children),l=$p(o);return t(n,a,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function QY(e,t){let r={},o,n;for(n in t.properties)if(n!=="children"&&y0.call(t.properties,n)){let a=tJ(e,n,t.properties[n]);if(a){let[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&UY.has(t.tagName)?o=s:r[i]=s}}if(o){let a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function eJ(e,t){let r={};for(let o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){let a=o.data.estree.body[0];a.type;let i=a.expression;i.type;let s=i.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else gd(e,t.position);else{let n=o.name,a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){let s=o.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else gd(e,t.position);else a=o.value===null?!0:o.value;r[n]=a}return r}function b0(e,t){let r=[],o=-1,n=e.passKeys?new Map:VY;for(;++o<t.children.length;){let a=t.children[o],i;if(e.passKeys){let l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){let p=n.get(l)||0;i=l+"-"+p,n.set(l,p+1)}}let s=Rw(e,a,i);s!==void 0&&r.push(s)}return r}function tJ(e,t,r){let o=u0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?iw(r):fw(r)),o.property==="style"){let n=typeof r=="object"?r:rJ(e,String(r));return e.stylePropertyNameCase==="css"&&(n=oJ(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&o.space?d0[o.property]||o.property:o.attribute,r]}}function rJ(e,t){let r={};try{Tw(t,o)}catch(n){if(!e.ignoreInvalidStyle){let a=n,i=new $t("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=kw+"#cannot-parse-style-attribute",i}}return r;function o(n,a){let i=n;i.slice(0,2)!=="--"&&(i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),i=i.replace(jY,aJ)),r[i]=a}}function Iw(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){let n=t.split("."),a=-1,i;for(;++a<n.length;){let s=og(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}o=i}else o=og(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){let n=o.value;return y0.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(o);gd(e)}function gd(e,t){let r=new $t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=kw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function oJ(e){let t={},r;for(r in e)y0.call(e,r)&&(t[nJ(r)]=e[r]);return t}function nJ(e){let t=e.replace($Y,iJ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function aJ(e,t){return t.toUpperCase()}function iJ(e){return"-"+e.toLowerCase()}var vd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};import{Fragment as uK,jsx as dK,jsxs as fK}from"react/jsx-runtime";var sJ={};function x0(e,t){let r=t||sJ,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Dw(e,o,n)}function Dw(e,t,r){if(lJ(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ow(e.children,t,r)}return Array.isArray(e)?Ow(e,t,r):""}function Ow(e,t,r){let o=[],n=-1;for(;++n<e.length;)o[n]=Dw(e[n],t,r);return o.join("")}function lJ(e){return!!(e&&typeof e=="object")}var _w=document.createElement("i");function jp(e){let t="&"+e+";";_w.innerHTML=t;let r=_w.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function jr(e,t,r,o){let n=e.length,a=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,o.length<1e4)i=Array.from(o),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a<o.length;)i=o.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Xr(e,t){return e.length>0?(jr(e,e.length,0,t),e):t}var ww={}.hasOwnProperty;function Aw(e){let t={},r=-1;for(;++r<e.length;)pJ(t,e[r]);return t}function pJ(e,t){let r;for(r in t){let n=(ww.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],i;if(a)for(i in a){ww.call(n,i)||(n[i]=[]);let s=a[i];cJ(n[i],Array.isArray(s)?s:s?[s]:[])}}}function cJ(e,t){let r=-1,o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);jr(e,0,0,o)}function lg(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function Ba(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ro=Gi(/[A-Za-z]/),dr=Gi(/[\dA-Za-z]/),Bw=Gi(/[#-'*+\--9=?A-Z^-~]/);function bd(e){return e!==null&&(e<32||e===127)}var xd=Gi(/\d/),Mw=Gi(/[\dA-Fa-f]/),Nw=Gi(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function jt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}var Lw=Gi(new RegExp("\\p{P}|\\p{S}","u")),zw=Gi(/\s/);function Gi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function on(e){let t=[],r=-1,o=0,n=0;for(;++r<e.length;){let a=e.charCodeAt(r),i="";if(a===37&&dr(e.charCodeAt(r+1))&&dr(e.charCodeAt(r+2)))n=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){let s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),n=1):i="\uFFFD"}else i=String.fromCharCode(a);i&&(t.push(e.slice(o,r),encodeURIComponent(i)),o=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(o)}function Ke(e,t,r,o){let n=o?o-1:Number.POSITIVE_INFINITY,a=0;return i;function i(l){return Ye(l)?(e.enter(r),s(l)):t(l)}function s(l){return Ye(l)&&a++<n?(e.consume(l),s):(e.exit(r),t(l))}}var Fw={tokenize:uJ};function uJ(e){let t=e.attempt(this.parser.constructs.contentInitial,o,n),r;return t;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ke(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),a(s)}function a(s){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Me(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}var $w={tokenize:dJ},Vw={tokenize:fJ};function dJ(e){let t=this,r=[],o=0,n,a,i;return s;function s(g){if(o<r.length){let C=r[o];return t.containerState=C[1],e.attempt(C[0].continuation,l,p)(g)}return p(g)}function l(g){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&x();let C=t.events.length,T=C,P;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){P=t.events[T][1].end;break}b(o);let S=C;for(;S<t.events.length;)t.events[S][1].end=Object.assign({},P),S++;return jr(t.events,T+1,0,t.events.slice(C)),t.events.length=S,p(g)}return s(g)}function p(g){if(o===r.length){if(!n)return d(g);if(n.currentConstruct&&n.currentConstruct.concrete)return y(g);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vw,c,u)(g)}function c(g){return n&&x(),b(o),d(g)}function u(g){return t.parser.lazy[t.now().line]=o!==r.length,i=t.now().offset,y(g)}function d(g){return t.containerState={},e.attempt(Vw,f,y)(g)}function f(g){return o++,r.push([t.currentConstruct,t.containerState]),d(g)}function y(g){if(g===null){n&&x(),b(0),e.consume(g);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:n}),h(g)}function h(g){if(g===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(g);return}return Me(g)?(e.consume(g),v(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(g),h)}function v(g,C){let T=t.sliceStream(g);if(C&&T.push(null),g.previous=a,a&&(a.next=g),a=g,n.defineSkip(g.start),n.write(T),t.parser.lazy[g.start.line]){let P=n.events.length;for(;P--;)if(n.events[P][1].start.offset<i&&(!n.events[P][1].end||n.events[P][1].end.offset>i))return;let S=t.events.length,k=S,I,w;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){w=t.events[k][1].end;break}I=!0}for(b(o),P=S;P<t.events.length;)t.events[P][1].end=Object.assign({},w),P++;jr(t.events,k+1,0,t.events.slice(S)),t.events.length=P}}function b(g){let C=r.length;for(;C-- >g;){let T=r[C];t.containerState=T[1],T[0].exit.call(t,e)}r.length=g}function x(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function fJ(e,t,r){return Ke(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function T0(e){if(e===null||jt(e)||zw(e))return 1;if(Lw(e))return 2}function Hp(e,t,r){let o=[],n=-1;for(;++n<e.length;){let a=e[n].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}var Td={name:"attention",tokenize:hJ,resolveAll:mJ};function mJ(e,t){let r=-1,o,n,a,i,s,l,p,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let u=Object.assign({},e[o][1].end),d=Object.assign({},e[r][1].start);jw(u,-l),jw(d,l),i={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[o][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[r][1].start)},n={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},s.end)},e[o][1].end=Object.assign({},i.start),e[r][1].start=Object.assign({},s.end),p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Xr(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Xr(p,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",a,t]]),p=Xr(p,Hp(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=Xr(p,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=Xr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,jr(e,o-1,r-o+3,p),r=o+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function hJ(e,t){let r=this.parser.constructs.attentionMarkers.null,o=this.previous,n=T0(o),a;return i;function i(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;let p=e.exit("attentionSequence"),c=T0(l),u=!c||c===2&&n||r.includes(l),d=!n||n===2&&c||r.includes(o);return p._open=!!(a===42?u:u&&(n||!d)),p._close=!!(a===42?d:d&&(c||!u)),t(l)}}function jw(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var P0={name:"autolink",tokenize:yJ};function yJ(e,t,r){let o=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ro(f)?(e.consume(f),i):p(f)}function i(f){return f===43||f===45||f===46||dr(f)?(o=1,s(f)):p(f)}function s(f){return f===58?(e.consume(f),o=0,l):(f===43||f===45||f===46||dr(f))&&o++<32?(e.consume(f),s):(o=0,p(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||bd(f)?r(f):(e.consume(f),l)}function p(f){return f===64?(e.consume(f),c):Bw(f)?(e.consume(f),p):r(f)}function c(f){return dr(f)?u(f):r(f)}function u(f){return f===46?(e.consume(f),o=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||dr(f))&&o++<63){let y=f===45?d:u;return e.consume(f),y}return r(f)}}var Yi={tokenize:gJ,partial:!0};function gJ(e,t,r){return o;function o(a){return Ye(a)?Ke(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||Me(a)?t(a):r(a)}}var pg={name:"blockQuote",tokenize:vJ,continuation:{tokenize:bJ},exit:xJ};function vJ(e,t,r){let o=this;return n;function n(i){if(i===62){let s=o.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return r(i)}function a(i){return Ye(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function bJ(e,t,r){let o=this;return n;function n(i){return Ye(i)?Ke(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(pg,t,r)(i)}}function xJ(e){e.exit("blockQuote")}var cg={name:"characterEscape",tokenize:TJ};function TJ(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return Nw(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}var ug={name:"characterReference",tokenize:PJ};function PJ(e,t,r){let o=this,n=0,a,i;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,i=dr,c(u))}function p(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Mw,c):(e.enter("characterReferenceValue"),a=7,i=xd,c(u))}function c(u){if(u===59&&n){let d=e.exit("characterReferenceValue");return i===dr&&!jp(o.sliceSerialize(d))?r(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(u)&&n++<a?(e.consume(u),c):r(u)}}var Hw={tokenize:SJ,partial:!0},dg={name:"codeFenced",tokenize:CJ,concrete:!0};function CJ(e,t,r){let o=this,n={tokenize:T,partial:!0},a=0,i=0,s;return l;function l(P){return p(P)}function p(P){let S=o.events[o.events.length-1];return a=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=P,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(P)}function c(P){return P===s?(i++,e.consume(P),c):i<3?r(P):(e.exit("codeFencedFenceSequence"),Ye(P)?Ke(e,u,"whitespace")(P):u(P))}function u(P){return P===null||Me(P)?(e.exit("codeFencedFence"),o.interrupt?t(P):e.check(Hw,h,C)(P)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(P))}function d(P){return P===null||Me(P)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(P)):Ye(P)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ke(e,f,"whitespace")(P)):P===96&&P===s?r(P):(e.consume(P),d)}function f(P){return P===null||Me(P)?u(P):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(P))}function y(P){return P===null||Me(P)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(P)):P===96&&P===s?r(P):(e.consume(P),y)}function h(P){return e.attempt(n,C,v)(P)}function v(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),b}function b(P){return a>0&&Ye(P)?Ke(e,x,"linePrefix",a+1)(P):x(P)}function x(P){return P===null||Me(P)?e.check(Hw,h,C)(P):(e.enter("codeFlowValue"),g(P))}function g(P){return P===null||Me(P)?(e.exit("codeFlowValue"),x(P)):(e.consume(P),g)}function C(P){return e.exit("codeFenced"),t(P)}function T(P,S,k){let I=0;return w;function w(N){return P.enter("lineEnding"),P.consume(N),P.exit("lineEnding"),B}function B(N){return P.enter("codeFencedFence"),Ye(N)?Ke(P,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):M(N)}function M(N){return N===s?(P.enter("codeFencedFenceSequence"),O(N)):k(N)}function O(N){return N===s?(I++,P.consume(N),O):I>=i?(P.exit("codeFencedFenceSequence"),Ye(N)?Ke(P,$,"whitespace")(N):$(N)):k(N)}function $(N){return N===null||Me(N)?(P.exit("codeFencedFence"),S(N)):k(N)}}}function SJ(e,t,r){let o=this;return n;function n(i){return i===null?r(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}var Pd={name:"codeIndented",tokenize:RJ},kJ={tokenize:EJ,partial:!0};function RJ(e,t,r){let o=this;return n;function n(p){return e.enter("codeIndented"),Ke(e,a,"linePrefix",5)(p)}function a(p){let c=o.events[o.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(p):r(p)}function i(p){return p===null?l(p):Me(p)?e.attempt(kJ,i,l)(p):(e.enter("codeFlowValue"),s(p))}function s(p){return p===null||Me(p)?(e.exit("codeFlowValue"),i(p)):(e.consume(p),s)}function l(p){return e.exit("codeIndented"),t(p)}}function EJ(e,t,r){let o=this;return n;function n(i){return o.parser.lazy[o.now().line]?r(i):Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):Ke(e,a,"linePrefix",5)(i)}function a(i){let s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):Me(i)?n(i):r(i)}}var C0={name:"codeText",tokenize:DJ,resolve:IJ,previous:OJ};function IJ(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="codeTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function OJ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DJ(e,t,r){let o=this,n=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),n++,l):(e.exit("codeTextSequence"),p(d))}function p(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),p):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Me(d)?(e.exit("codeTextData"),p(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}var fg=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let o=r==null?Number.POSITIVE_INFINITY:r;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){let n=r||0;this.setCursor(Math.trunc(t));let a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return o&&Cd(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Cd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Cd(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cd(this.left,r.reverse())}}};function Cd(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function mg(e){let t={},r=-1,o,n,a,i,s,l,p,c=new fg(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(o=c.get(r),r&&o[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=o[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,_J(c,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,n=void 0;a--&&(i=c.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank");)i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=a);n&&(o[1].end=Object.assign({},c.get(n)[1].start),s=c.slice(n,r),s.unshift(o),c.splice(n,r-n+1,s))}}return jr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!p}function _J(e,t){let r=e.get(t)[1],o=e.get(t)[2],n=t-1,a=[],i=r._tokenizer||o.parser[r.contentType](r.start),s=i.events,l=[],p={},c,u,d=-1,f=r,y=0,h=0,v=[h];for(;f;){for(;e.get(++n)[1]!==f;);a.push(n),f._tokenizer||(c=o.sliceStream(f),f.next||c.push(null),u&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(h=d+1,v.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),d=v.length;d--;){let b=s.slice(v[d],v[d+1]),x=a.pop();l.push([x,x+b.length-1]),e.splice(x,2,b)}for(l.reverse(),d=-1;++d<l.length;)p[y+l[d][0]]=y+l[d][1],y+=l[d][1]-l[d][0]-1;return p}var S0={tokenize:BJ,resolve:AJ},wJ={tokenize:MJ,partial:!0};function AJ(e){return mg(e),e}function BJ(e,t){let r;return o;function o(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?a(s):Me(s)?e.check(wJ,i,a)(s):(e.consume(s),n)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function MJ(e,t,r){let o=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ke(e,a,"linePrefix")}function a(i){if(i===null||Me(i))return r(i);let s=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(o.parser.constructs.flow,r,t)(i)}}function hg(e,t,r,o,n,a,i,s,l){let p=l||Number.POSITIVE_INFINITY,c=0;return u;function u(b){return b===60?(e.enter(o),e.enter(n),e.enter(a),e.consume(b),e.exit(a),d):b===null||b===32||b===41||bd(b)?r(b):(e.enter(o),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function d(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(n),e.exit(o),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===62?(e.exit("chunkString"),e.exit(s),d(b)):b===null||b===60||Me(b)?r(b):(e.consume(b),b===92?y:f)}function y(b){return b===60||b===62||b===92?(e.consume(b),f):f(b)}function h(b){return!c&&(b===null||b===41||jt(b))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(o),t(b)):c<p&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||bd(b)?r(b):(e.consume(b),b===92?v:h)}function v(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function yg(e,t,r,o,n,a){let i=this,s=0,l;return p;function p(f){return e.enter(o),e.enter(n),e.consume(f),e.exit(n),e.enter(a),c}function c(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):f===93?(e.exit(a),e.enter(n),e.consume(f),e.exit(n),e.exit(o),t):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===null||f===91||f===93||Me(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!Ye(f)),f===92?d:u)}function d(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function gg(e,t,r,o,n,a){let i;return s;function s(d){return d===34||d===39||d===40?(e.enter(o),e.enter(n),e.consume(d),e.exit(n),i=d===40?41:d,l):r(d)}function l(d){return d===i?(e.enter(n),e.consume(d),e.exit(n),e.exit(o),t):(e.enter(a),p(d))}function p(d){return d===i?(e.exit(a),l(i)):d===null?r(d):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ke(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===i||d===null||Me(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?u:c)}function u(d){return d===i||d===92?(e.consume(d),c):c(d)}}function Js(e,t){let r;return o;function o(n){return Me(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,o):Ye(n)?Ke(e,o,r?"linePrefix":"lineSuffix")(n):t(n)}}var k0={name:"definition",tokenize:LJ},NJ={tokenize:zJ,partial:!0};function LJ(e,t,r){let o=this,n;return a;function a(f){return e.enter("definition"),i(f)}function i(f){return yg.call(o,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return n=Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return jt(f)?Js(e,p)(f):p(f)}function p(f){return hg(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(NJ,u,u)(f)}function u(f){return Ye(f)?Ke(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Me(f)?(e.exit("definition"),o.parser.defined.push(n),t(f)):r(f)}}function zJ(e,t,r){return o;function o(s){return jt(s)?Js(e,n)(s):r(s)}function n(s){return gg(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Ye(s)?Ke(e,i,"whitespace")(s):i(s)}function i(s){return s===null||Me(s)?t(s):r(s)}}var R0={name:"hardBreakEscape",tokenize:FJ};function FJ(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return Me(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}var E0={name:"headingAtx",tokenize:$J,resolve:VJ};function VJ(e,t){let r=e.length-2,o=3,n,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},jr(e,o,r-o+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function $J(e,t,r){let o=0;return n;function n(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&o++<6?(e.consume(c),i):c===null||jt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Me(c)?(e.exit("atxHeading"),t(c)):Ye(c)?Ke(e,s,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function p(c){return c===null||c===35||jt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),p)}}var Uw=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],I0=["pre","script","style","textarea"];var O0={name:"htmlFlow",tokenize:WJ,resolveTo:UJ,concrete:!0},jJ={tokenize:YJ,partial:!0},HJ={tokenize:GJ,partial:!0};function UJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function WJ(e,t,r){let o=this,n,a,i,s,l;return p;function p(A){return c(A)}function c(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),u}function u(A){return A===33?(e.consume(A),d):A===47?(e.consume(A),a=!0,h):A===63?(e.consume(A),n=3,o.interrupt?t:R):Ro(A)?(e.consume(A),i=String.fromCharCode(A),v):r(A)}function d(A){return A===45?(e.consume(A),n=2,f):A===91?(e.consume(A),n=5,s=0,y):Ro(A)?(e.consume(A),n=4,o.interrupt?t:R):r(A)}function f(A){return A===45?(e.consume(A),o.interrupt?t:R):r(A)}function y(A){let ee="CDATA[";return A===ee.charCodeAt(s++)?(e.consume(A),s===ee.length?o.interrupt?t:M:y):r(A)}function h(A){return Ro(A)?(e.consume(A),i=String.fromCharCode(A),v):r(A)}function v(A){if(A===null||A===47||A===62||jt(A)){let ee=A===47,ye=i.toLowerCase();return!ee&&!a&&I0.includes(ye)?(n=1,o.interrupt?t(A):M(A)):Uw.includes(i.toLowerCase())?(n=6,ee?(e.consume(A),b):o.interrupt?t(A):M(A)):(n=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(A):a?x(A):g(A))}return A===45||dr(A)?(e.consume(A),i+=String.fromCharCode(A),v):r(A)}function b(A){return A===62?(e.consume(A),o.interrupt?t:M):r(A)}function x(A){return Ye(A)?(e.consume(A),x):w(A)}function g(A){return A===47?(e.consume(A),w):A===58||A===95||Ro(A)?(e.consume(A),C):Ye(A)?(e.consume(A),g):w(A)}function C(A){return A===45||A===46||A===58||A===95||dr(A)?(e.consume(A),C):T(A)}function T(A){return A===61?(e.consume(A),P):Ye(A)?(e.consume(A),T):g(A)}function P(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),l=A,S):Ye(A)?(e.consume(A),P):k(A)}function S(A){return A===l?(e.consume(A),l=null,I):A===null||Me(A)?r(A):(e.consume(A),S)}function k(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||jt(A)?T(A):(e.consume(A),k)}function I(A){return A===47||A===62||Ye(A)?g(A):r(A)}function w(A){return A===62?(e.consume(A),B):r(A)}function B(A){return A===null||Me(A)?M(A):Ye(A)?(e.consume(A),B):r(A)}function M(A){return A===45&&n===2?(e.consume(A),_):A===60&&n===1?(e.consume(A),L):A===62&&n===4?(e.consume(A),q):A===63&&n===3?(e.consume(A),R):A===93&&n===5?(e.consume(A),z):Me(A)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(jJ,ie,O)(A)):A===null||Me(A)?(e.exit("htmlFlowData"),O(A)):(e.consume(A),M)}function O(A){return e.check(HJ,$,ie)(A)}function $(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),N}function N(A){return A===null||Me(A)?O(A):(e.enter("htmlFlowData"),M(A))}function _(A){return A===45?(e.consume(A),R):M(A)}function L(A){return A===47?(e.consume(A),i="",W):M(A)}function W(A){if(A===62){let ee=i.toLowerCase();return I0.includes(ee)?(e.consume(A),q):M(A)}return Ro(A)&&i.length<8?(e.consume(A),i+=String.fromCharCode(A),W):M(A)}function z(A){return A===93?(e.consume(A),R):M(A)}function R(A){return A===62?(e.consume(A),q):A===45&&n===2?(e.consume(A),R):M(A)}function q(A){return A===null||Me(A)?(e.exit("htmlFlowData"),ie(A)):(e.consume(A),q)}function ie(A){return e.exit("htmlFlow"),t(A)}}function GJ(e,t,r){let o=this;return n;function n(i){return Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):r(i)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}function YJ(e,t,r){return o;function o(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Yi,t,r)}}var D0={name:"htmlText",tokenize:JJ};function JJ(e,t,r){let o=this,n,a,i;return s;function s(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),l}function l(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),T):R===63?(e.consume(R),g):Ro(R)?(e.consume(R),k):r(R)}function p(R){return R===45?(e.consume(R),c):R===91?(e.consume(R),a=0,y):Ro(R)?(e.consume(R),x):r(R)}function c(R){return R===45?(e.consume(R),f):r(R)}function u(R){return R===null?r(R):R===45?(e.consume(R),d):Me(R)?(i=u,L(R)):(e.consume(R),u)}function d(R){return R===45?(e.consume(R),f):u(R)}function f(R){return R===62?_(R):R===45?d(R):u(R)}function y(R){let q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?h:y):r(R)}function h(R){return R===null?r(R):R===93?(e.consume(R),v):Me(R)?(i=h,L(R)):(e.consume(R),h)}function v(R){return R===93?(e.consume(R),b):h(R)}function b(R){return R===62?_(R):R===93?(e.consume(R),b):h(R)}function x(R){return R===null||R===62?_(R):Me(R)?(i=x,L(R)):(e.consume(R),x)}function g(R){return R===null?r(R):R===63?(e.consume(R),C):Me(R)?(i=g,L(R)):(e.consume(R),g)}function C(R){return R===62?_(R):g(R)}function T(R){return Ro(R)?(e.consume(R),P):r(R)}function P(R){return R===45||dr(R)?(e.consume(R),P):S(R)}function S(R){return Me(R)?(i=S,L(R)):Ye(R)?(e.consume(R),S):_(R)}function k(R){return R===45||dr(R)?(e.consume(R),k):R===47||R===62||jt(R)?I(R):r(R)}function I(R){return R===47?(e.consume(R),_):R===58||R===95||Ro(R)?(e.consume(R),w):Me(R)?(i=I,L(R)):Ye(R)?(e.consume(R),I):_(R)}function w(R){return R===45||R===46||R===58||R===95||dr(R)?(e.consume(R),w):B(R)}function B(R){return R===61?(e.consume(R),M):Me(R)?(i=B,L(R)):Ye(R)?(e.consume(R),B):I(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),n=R,O):Me(R)?(i=M,L(R)):Ye(R)?(e.consume(R),M):(e.consume(R),$)}function O(R){return R===n?(e.consume(R),n=void 0,N):R===null?r(R):Me(R)?(i=O,L(R)):(e.consume(R),O)}function $(R){return R===null||R===34||R===39||R===60||R===61||R===96?r(R):R===47||R===62||jt(R)?I(R):(e.consume(R),$)}function N(R){return R===47||R===62||jt(R)?I(R):r(R)}function _(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):r(R)}function L(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),W}function W(R){return Ye(R)?Ke(e,z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):z(R)}function z(R){return e.enter("htmlTextData"),i(R)}}var qs={name:"labelEnd",tokenize:eq,resolveTo:QJ,resolveAll:ZJ},qJ={tokenize:tq},KJ={tokenize:rq},XJ={tokenize:oq};function ZJ(e){let t=-1;for(;++t<e.length;){let r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function QJ(e,t){let r=e.length,o=0,n,a,i,s;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){o=2;break}}else n.type==="labelEnd"&&(i=r);let l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},p={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[a+o+2][1].end),end:Object.assign({},e[i-2][1].start)};return s=[["enter",l,t],["enter",p,t]],s=Xr(s,e.slice(a+1,a+o+3)),s=Xr(s,[["enter",c,t]]),s=Xr(s,Hp(t.parser.constructs.insideSpan.null,e.slice(a+o+4,i-3),t)),s=Xr(s,[["exit",c,t],e[i-2],e[i-1],["exit",p,t]]),s=Xr(s,e.slice(i+1)),s=Xr(s,[["exit",l,t]]),jr(e,a,e.length,s),e}function eq(e,t,r){let o=this,n=o.events.length,a,i;for(;n--;)if((o.events[n][1].type==="labelImage"||o.events[n][1].type==="labelLink")&&!o.events[n][1]._balanced){a=o.events[n][1];break}return s;function s(d){return a?a._inactive?u(d):(i=o.parser.defined.includes(Ba(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(qJ,c,i?c:u)(d):d===91?e.attempt(KJ,c,i?p:u)(d):i?c(d):u(d)}function p(d){return e.attempt(XJ,c,u)(d)}function c(d){return t(d)}function u(d){return a._balanced=!0,r(d)}}function tq(e,t,r){return o;function o(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),n}function n(u){return jt(u)?Js(e,a)(u):a(u)}function a(u){return u===41?c(u):hg(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return jt(u)?Js(e,l)(u):c(u)}function s(u){return r(u)}function l(u){return u===34||u===39||u===40?gg(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function p(u){return jt(u)?Js(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):r(u)}}function rq(e,t,r){let o=this;return n;function n(s){return yg.call(o,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return o.parser.defined.includes(Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function i(s){return r(s)}}function oq(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}var _0={name:"labelStartImage",tokenize:nq,resolveAll:qs.resolveAll};function nq(e,t,r){let o=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):r(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(s):t(s)}}var w0={name:"labelStartLink",tokenize:aq,resolveAll:qs.resolveAll};function aq(e,t,r){let o=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(i):t(i)}}var Sd={name:"lineEnding",tokenize:iq};function iq(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ke(e,t,"linePrefix")}}var Ks={name:"thematicBreak",tokenize:sq};function sq(e,t,r){let o=0,n;return a;function a(p){return e.enter("thematicBreak"),i(p)}function i(p){return n=p,s(p)}function s(p){return p===n?(e.enter("thematicBreakSequence"),l(p)):o>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):r(p)}function l(p){return p===n?(e.consume(p),o++,l):(e.exit("thematicBreakSequence"),Ye(p)?Ke(e,s,"whitespace")(p):s(p))}}var Hr={name:"list",tokenize:cq,continuation:{tokenize:uq},exit:fq},lq={tokenize:mq,partial:!0},pq={tokenize:dq,partial:!0};function cq(e,t,r){let o=this,n=o.events[o.events.length-1],a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(f){let y=o.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!o.containerState.marker||f===o.containerState.marker:xd(f)){if(o.containerState.type||(o.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ks,r,p)(f):p(f);if(!o.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return xd(f)&&++i<10?(e.consume(f),l):(!o.interrupt||i<2)&&(o.containerState.marker?f===o.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):r(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||f,e.check(Yi,o.interrupt?r:c,e.attempt(lq,d,u))}function c(f){return o.containerState.initialBlankLine=!0,a++,d(f)}function u(f){return Ye(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):r(f)}function d(f){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function uq(e,t,r){let o=this;return o.containerState._closeFlow=void 0,e.check(Yi,n,a);function n(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ke(e,t,"listItemIndent",o.containerState.size+1)(s)}function a(s){return o.containerState.furtherBlankLines||!Ye(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,i(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(pq,t,i)(s))}function i(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ke(e,e.attempt(Hr,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function dq(e,t,r){let o=this;return Ke(e,n,"listItemIndent",o.containerState.size+1);function n(a){let i=o.events[o.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===o.containerState.size?t(a):r(a)}}function fq(e){e.exit(this.containerState.type)}function mq(e,t,r){let o=this;return Ke(e,n,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){let i=o.events[o.events.length-1];return!Ye(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}var vg={name:"setextUnderline",tokenize:yq,resolveTo:hq};function hq(e,t){let r=e.length,o,n,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",i,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end=Object.assign({},e[a][1].end)):e[o][1]=i,e.push(["exit",i,t]),e}function yq(e,t,r){let o=this,n;return a;function a(p){let c=o.events.length,u;for(;c--;)if(o.events[c][1].type!=="lineEnding"&&o.events[c][1].type!=="linePrefix"&&o.events[c][1].type!=="content"){u=o.events[c][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||u)?(e.enter("setextHeadingLine"),n=p,i(p)):r(p)}function i(p){return e.enter("setextHeadingLineSequence"),s(p)}function s(p){return p===n?(e.consume(p),s):(e.exit("setextHeadingLineSequence"),Ye(p)?Ke(e,l,"lineSuffix")(p):l(p))}function l(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}var Ww={tokenize:gq};function gq(e){let t=this,r=e.attempt(Yi,o,e.attempt(this.parser.constructs.flowInitial,n,Ke(e,e.attempt(this.parser.constructs.flow,n,e.attempt(S0,n)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var Gw={resolveAll:Kw()},Yw=qw("string"),Jw=qw("text");function qw(e){return{tokenize:t,resolveAll:Kw(e==="text"?vq:void 0)};function t(r){let o=this,n=this.parser.constructs[e],a=r.attempt(n,i,s);return i;function i(c){return p(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){if(c===null)return!0;let u=n[c],d=-1;if(u)for(;++d<u.length;){let f=u[d];if(!f.previous||f.previous.call(o,o.previous))return!0}return!1}}}function Kw(e){return t;function t(r,o){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,o):r}}function vq(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let o=e[r-1][1],n=t.sliceStream(o),a=n.length,i=-1,s=0,l;for(;a--;){let p=n[a];if(typeof p=="string"){for(i=p.length;p.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(p===-2)l=!0,s++;else if(p!==-1){a++;break}}if(s){let p={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-s,offset:o.end.offset-s,_index:o.start._index+a,_bufferIndex:a?i:o.start._bufferIndex+i},end:Object.assign({},o.end)};o.end=Object.assign({},p.start),o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}function Xw(e,t,r){let o=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),n={},a=[],i=[],s=[],l=!0,p={consume:C,enter:T,exit:P,attempt:I(S),check:I(k),interrupt:I(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:y,now:v,defineSkip:b,write:f},u=t.tokenize.call(c,p),d;return t.resolveAll&&a.push(t),c;function f(O){return i=Xr(i,O),x(),i[i.length-1]!==null?[]:(w(t,0),c.events=Hp(a,c.events,c),c.events)}function y(O,$){return xq(h(O),$)}function h(O){return bq(i,O)}function v(){let{line:O,column:$,offset:N,_index:_,_bufferIndex:L}=o;return{line:O,column:$,offset:N,_index:_,_bufferIndex:L}}function b(O){n[O.line]=O.column,M()}function x(){let O;for(;o._index<i.length;){let $=i[o._index];if(typeof $=="string")for(O=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===O&&o._bufferIndex<$.length;)g($.charCodeAt(o._bufferIndex));else g($)}}function g(O){l=void 0,d=O,u=u(O)}function C(O){Me(O)?(o.line++,o.column=1,o.offset+=O===-3?2:1,M()):O!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===i[o._index].length&&(o._bufferIndex=-1,o._index++)),c.previous=O,l=!0}function T(O,$){let N=$||{};return N.type=O,N.start=v(),c.events.push(["enter",N,c]),s.push(N),N}function P(O){let $=s.pop();return $.end=v(),c.events.push(["exit",$,c]),$}function S(O,$){w(O,$.from)}function k(O,$){$.restore()}function I(O,$){return N;function N(_,L,W){let z,R,q,ie;return Array.isArray(_)?ee(_):"tokenize"in _?ee([_]):A(_);function A(U){return ce;function ce(me){let be=me!==null&&U[me],Te=me!==null&&U.null,Le=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return ee(Le)(me)}}function ee(U){return z=U,R=0,U.length===0?W:ye(U[R])}function ye(U){return ce;function ce(me){return ie=B(),q=U,U.partial||(c.currentConstruct=U),U.name&&c.parser.constructs.disable.null.includes(U.name)?se(me):U.tokenize.call($?Object.assign(Object.create(c),$):c,p,Ie,se)(me)}}function Ie(U){return l=!0,O(q,ie),L}function se(U){return l=!0,ie.restore(),++R<z.length?ye(z[R]):W}}}function w(O,$){O.resolveAll&&!a.includes(O)&&a.push(O),O.resolve&&jr(c.events,$,c.events.length-$,O.resolve(c.events.slice($),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function B(){let O=v(),$=c.previous,N=c.currentConstruct,_=c.events.length,L=Array.from(s);return{restore:W,from:_};function W(){o=O,c.previous=$,c.currentConstruct=N,c.events.length=_,s=L,M()}}function M(){o.line in n&&o.column<2&&(o.column=n[o.line],o.offset+=n[o.line]-1)}}function bq(e,t){let r=t.start._index,o=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex,i;if(r===n)i=[e[r].slice(o,a)];else{if(i=e.slice(r,n),o>-1){let s=i[0];typeof s=="string"?i[0]=s.slice(o):i.shift()}a>0&&i.push(e[n].slice(0,a))}return i}function xq(e,t){let r=-1,o=[],n;for(;++r<e.length;){let a=e[r],i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
133
133
|
`;break}case-3:{i=`\r
|
|
134
134
|
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&n)continue;i=" ";break}default:i=String.fromCharCode(a)}n=a===-2,o.push(i)}return o.join("")}var A0={};_n(A0,{attentionMarkers:()=>Iq,contentInitial:()=>Pq,disable:()=>Oq,document:()=>Tq,flow:()=>Sq,flowInitial:()=>Cq,insideSpan:()=>Eq,string:()=>kq,text:()=>Rq});var Tq={42:Hr,43:Hr,45:Hr,48:Hr,49:Hr,50:Hr,51:Hr,52:Hr,53:Hr,54:Hr,55:Hr,56:Hr,57:Hr,62:pg},Pq={91:k0},Cq={[-2]:Pd,[-1]:Pd,32:Pd},Sq={35:E0,42:Ks,45:[vg,Ks],60:O0,61:vg,95:Ks,96:dg,126:dg},kq={38:ug,92:cg},Rq={[-5]:Sd,[-4]:Sd,[-3]:Sd,33:_0,38:ug,42:Td,60:[P0,D0],91:w0,92:[R0,cg],93:qs,95:Td,96:C0},Eq={null:[Td,Gw]},Iq={null:[42,95]},Oq={null:[]};function B0(e){let r=Aw([A0,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:r,content:n(Fw),document:n($w),flow:n(Ww),string:n(Yw),text:n(Jw)};return o;function n(a){return i;function i(s){return Xw(o,a,s)}}}function M0(e){for(;!mg(e););return e}var Zw=/[\0\t\n\r]/g;function N0(){let e=1,t="",r=!0,o;return n;function n(a,i,s){let l=[],p,c,u,d,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,t="",r&&(a.charCodeAt(0)===65279&&u++,r=void 0);u<a.length;){if(Zw.lastIndex=u,p=Zw.exec(a),d=p&&p.index!==void 0?p.index:a.length,f=a.charCodeAt(d),!p){t=a.slice(u);break}if(f===10&&u===d&&o)l.push(-3),o=void 0;else switch(o&&(l.push(-5),o=void 0),u<d&&(l.push(a.slice(u,d)),e+=d-u),f){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:o=!0,e=1}u=d+1}return s&&(o&&l.push(-5),t&&l.push(t),l.push(null)),l}}var Dq=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qw(e){return e.replace(Dq,_q)}function _q(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let n=r.charCodeAt(1),a=n===120||n===88;return lg(r.slice(a?2:1),a?16:10)}return jp(r)||e}var tA={}.hasOwnProperty;function L0(e,t,r){return typeof t!="string"&&(r=t,t=void 0),wq(r)(M0(B0(r).document().write(N0()(e,t,!0))))}function wq(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ge),autolinkProtocol:I,autolinkEmail:I,atxHeading:a(We),blockQuote:a(ce),characterEscape:I,characterReference:I,codeFenced:a(me),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(me,i),codeText:a(be,i),codeTextData:I,data:I,codeFlowValue:I,definition:a(Te),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(Le),hardBreakEscape:a(ne),hardBreakTrailing:a(ne),htmlFlow:a(Q,i),htmlFlowData:I,htmlText:a(Q,i),htmlTextData:I,image:a(Ce),label:i,link:a(ge),listItem:a(Ae),listItemValue:d,listOrdered:a(Ve,u),listUnordered:a(Ve),paragraph:a(Oe),reference:A,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(We),strong:a(je),thematicBreak:a(Ze)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:U,autolinkProtocol:se,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:Ie,codeFenced:l(v),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:y,codeFlowValue:w,codeIndented:l(b),codeText:l(N),codeTextData:w,data:w,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:g,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(O),htmlFlowData:w,htmlText:l($),htmlTextData:w,image:l(L),label:z,labelText:W,lineEnding:B,link:l(_),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ee,resourceDestinationString:R,resourceTitleString:q,resource:ie,setextHeading:l(k),setextHeadingLineSequence:S,setextHeadingText:P,strong:l(),thematicBreak:l()}};rA(t,(e||{}).mdastExtensions||[]);let r={};return o;function o(Y){let fe={type:"root",children:[]},ke={stack:[fe],tokenStack:[],config:t,enter:s,exit:p,buffer:i,resume:c,data:r},J=[],K=-1;for(;++K<Y.length;)if(Y[K][1].type==="listOrdered"||Y[K][1].type==="listUnordered")if(Y[K][0]==="enter")J.push(K);else{let le=J.pop();K=n(Y,le,K)}for(K=-1;++K<Y.length;){let le=t[Y[K][0]];tA.call(le,Y[K][1].type)&&le[Y[K][1].type].call(Object.assign({sliceSerialize:Y[K][2].sliceSerialize},ke),Y[K][1])}if(ke.tokenStack.length>0){let le=ke.tokenStack[ke.tokenStack.length-1];(le[1]||eA).call(ke,void 0,le[0])}for(fe.position={start:Ji(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Ji(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},K=-1;++K<t.transforms.length;)fe=t.transforms[K](fe)||fe;return fe}function n(Y,fe,ke){let J=fe-1,K=-1,le=!1,_e,pe,ue,Ee;for(;++J<=ke;){let Ne=Y[J];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?K++:K--,Ee=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(_e&&!Ee&&!K&&!ue&&(ue=J),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!K&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||K===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(_e){let st=J;for(pe=void 0;st--;){let Je=Y[st];if(Je[1].type==="lineEnding"||Je[1].type==="lineEndingBlank"){if(Je[0]==="exit")continue;pe&&(Y[pe][1].type="lineEndingBlank",le=!0),Je[1].type="lineEnding",pe=st}else if(!(Je[1].type==="linePrefix"||Je[1].type==="blockQuotePrefix"||Je[1].type==="blockQuotePrefixWhitespace"||Je[1].type==="blockQuoteMarker"||Je[1].type==="listItemIndent"))break}ue&&(!pe||ue<pe)&&(_e._spread=!0),_e.end=Object.assign({},pe?Y[pe][1].start:Ne[1].end),Y.splice(pe||J,0,["exit",_e,Ne[2]]),J++,ke++}if(Ne[1].type==="listItemPrefix"){let st={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};_e=st,Y.splice(J,0,["enter",st,Ne[2]]),J++,ke++,ue=void 0,Ee=!0}}}return Y[fe][1]._spread=le,ke}function a(Y,fe){return ke;function ke(J){s.call(this,Y(J),J),fe&&fe.call(this,J)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(Y,fe,ke){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([fe,ke]),Y.position={start:Ji(fe.start),end:void 0}}function l(Y){return fe;function fe(ke){Y&&Y.call(this,ke),p.call(this,ke)}}function p(Y,fe){let ke=this.stack.pop(),J=this.tokenStack.pop();if(J)J[0].type!==Y.type&&(fe?fe.call(this,Y,J[0]):(J[1]||eA).call(this,Y,J[0]));else throw new Error("Cannot close `"+Y.type+"` ("+Wi({start:Y.start,end:Y.end})+"): it\u2019s not open");ke.position.end=Ji(Y.end)}function c(){return x0(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function d(Y){if(this.data.expectingFirstListItemValue){let fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function f(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=Y}function y(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=Y}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Y.replace(/(\r?\n|\r)$/g,"")}function x(Y){let fe=this.resume(),ke=this.stack[this.stack.length-1];ke.label=fe,ke.identifier=Ba(this.sliceSerialize(Y)).toLowerCase()}function g(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Y}function C(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Y}function T(Y){let fe=this.stack[this.stack.length-1];if(!fe.depth){let ke=this.sliceSerialize(Y).length;fe.depth=ke}}function P(){this.data.setextHeadingSlurpLineEnding=!0}function S(Y){let fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function I(Y){let ke=this.stack[this.stack.length-1].children,J=ke[ke.length-1];(!J||J.type!=="text")&&(J=$e(),J.position={start:Ji(Y.start),end:void 0},ke.push(J)),this.stack.push(J)}function w(Y){let fe=this.stack.pop();fe.value+=this.sliceSerialize(Y),fe.position.end=Ji(Y.end)}function B(Y){let fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ke=fe.children[fe.children.length-1];ke.position.end=Ji(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(fe.type)&&(I.call(this,Y),w.call(this,Y))}function M(){this.data.atHardBreak=!0}function O(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Y}function $(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Y}function N(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Y}function _(){let Y=this.stack[this.stack.length-1];if(this.data.inReference){let fe=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=fe,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function L(){let Y=this.stack[this.stack.length-1];if(this.data.inReference){let fe=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=fe,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function W(Y){let fe=this.sliceSerialize(Y),ke=this.stack[this.stack.length-2];ke.label=Qw(fe),ke.identifier=Ba(fe).toLowerCase()}function z(){let Y=this.stack[this.stack.length-1],fe=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){let J=Y.children;ke.children=J}else ke.alt=fe}function R(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Y}function q(){let Y=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Y}function ie(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function ee(Y){let fe=this.resume(),ke=this.stack[this.stack.length-1];ke.label=fe,ke.identifier=Ba(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function ye(Y){this.data.characterReferenceType=Y.type}function Ie(Y){let fe=this.sliceSerialize(Y),ke=this.data.characterReferenceType,J;ke?(J=lg(fe,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):J=jp(fe);let K=this.stack.pop();K.value+=J,K.position.end=Ji(Y.end)}function se(Y){w.call(this,Y);let fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(Y)}function U(Y){w.call(this,Y);let fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(Y)}function ce(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Te(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Le(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function ne(){return{type:"break"}}function Q(){return{type:"html",value:""}}function Ce(){return{type:"image",title:null,url:"",alt:null}}function ge(){return{type:"link",title:null,url:"",children:[]}}function Ve(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Ae(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Oe(){return{type:"paragraph",children:[]}}function je(){return{type:"strong",children:[]}}function $e(){return{type:"text",value:""}}function Ze(){return{type:"thematicBreak"}}}function Ji(e){return{line:e.line,column:e.column,offset:e.offset}}function rA(e,t){let r=-1;for(;++r<t.length;){let o=t[r];Array.isArray(o)?rA(e,o):Aq(e,o)}}function Aq(e,t){let r;for(r in t)if(tA.call(t,r))switch(r){case"canContainEols":{let o=t[r];o&&e[r].push(...o);break}case"transforms":{let o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{let o=t[r];o&&Object.assign(e[r],o);break}}}function eA(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Wi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Wi({start:t.start,end:t.end})+") is still open")}function bg(e){let t=this;t.parser=r;function r(o){return L0(o,Z(F(F({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}function oA(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function nA(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
135
135
|
`}]}function aA(e,t){let r=t.value?t.value+`
|
|
@@ -146,7 +146,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
146
146
|
|
|
147
147
|
Navigator\uC5D0 \uC874\uC7AC\uD558\uB294 NavigationGroup\uC5D0 \uC21C\uCC28\uC801\uC73C\uB85C \uC8FC\uC785\uB429\uB2C8\uB2E4.(\uBD88\uD3B8\uD558\uC9C0\uB9CC framer\uC758 \uC81C\uC57D\uC73C\uB85C \uC778\uD574 \uC774\uB807\uAC8C \uAD6C\uC131\uD588\uC2B5\uB2C8\uB2E4.)`},onSelect:{type:sn.EventHandler}};import{ControlType as Nd}from"framer";var HX={page:{type:Nd.Number,title:"Page",defaultValue:1,description:"\uD604\uC7AC \uD398\uC774\uC9C0"},rowCount:{type:Nd.Number,title:"Row count",defaultValue:20,description:"\uCD1D \uD589 \uC218"},pageSize:{type:Nd.Number,title:"Page size",defaultValue:25,description:"\uD55C \uD398\uC774\uC9C0\uC5D0 \uD45C\uC2DC\uD560 \uD589 \uC218"},size:{type:Nd.Enum,title:"Size",options:["sm","md","lg"],defaultValue:"md"},onPageChange:{type:Nd.EventHandler}};import{ControlType as ln}from"framer";var UX={label:{title:"Label",type:ln.String},placeholder:{title:"Placeholder",type:ln.String,defaultValue:"Enter a percentage"},helperText:{title:"Helper Text",type:ln.String},error:{title:"Error",type:ln.Boolean,defaultValue:!1},size:{title:"Size",type:ln.Enum,options:["sm","md","lg"],optionTitles:["Small","Medium","Large"]},value:{title:"Value",type:ln.Number,defaultValue:void 0},onChange:{type:ln.EventHandler},disabled:{title:"Disabled",type:ln.Boolean,defaultValue:!1},required:{title:"Required",type:ln.Boolean,defaultValue:!1},min:{title:"Minimum",type:ln.Number,defaultValue:void 0,description:"\uCD5C\uC18C \uD37C\uC13C\uD2B8 \uAC12\uC744 \uC124\uC815\uD569\uB2C8\uB2E4."},max:{title:"Maximum",type:ln.Number,defaultValue:void 0,description:"\uCD5C\uB300 \uD37C\uC13C\uD2B8 \uAC12\uC744 \uC124\uC815\uD569\uB2C8\uB2E4."},maxDecimalScale:{title:"Maximum Decimal Scale",type:ln.Number,defaultValue:0,description:"\uC18C\uC218\uC810 \uC774\uD558 \uCD5C\uB300 \uC790\uB9AC\uC218\uB97C \uC124\uC815\uD569\uB2C8\uB2E4."}};import{ControlType as La}from"framer";var WX={name:{title:"Name",type:La.String,defaultValue:"John Gordon",description:"\uC774\uB984 \uC785\uB825\uB780\uC785\uB2C8\uB2E4.ProfileCard\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4."},src:{title:"Image source",type:La.String,defaultValue:"",description:`\uC774\uBBF8\uC9C0 URL \uC785\uB825\uB780\uC785\uB2C8\uB2E4.
|
|
148
148
|
Avatar \uC0DD\uC131 \uC2DC 1\uC21C\uC704\uB85C \uACE0\uB824\uB429\uB2C8\uB2E4.`},alt:{title:"Image alt text",type:La.String,defaultValue:"",description:`\uB300\uCCB4 \uD14D\uC2A4\uD2B8 \uC785\uB825\uB780\uC785\uB2C8\uB2E4.
|
|
149
|
-
Avatar \uC0DD\uC131 \uC2DC 3\uC21C\uC704\uB85C \uACE0\uB824\uB429\uB2C8\uB2E4.`},caption:{title:"Caption",type:La.String,defaultValue:"j.gordon@haulla.com",description:"ProfileCard \uD558\uB2E8\uC5D0 \uD45C\uC2DC\uB418\uB294 caption\uC785\uB2C8\uB2E4."},chip:{title:"Chip",type:La.String,defaultValue:"PDT",description:"ProfileCard\uC5D0 \uD45C\uC2DC\uB418\uB294 chip\uC785\uB2C8\uB2E4."},size:{type:La.Enum,options:["sm","md"],defaultValue:"md"},items:{title:"Items",type:La.Array,control:{type:La.Object,controls:{text:{type:La.String}}},defaultValue:[]}};import{ControlType as ol}from"framer";var GX={orientation:{title:"Orientation",type:ol.Enum,options:["vertical","horizontal"],defaultValue:"vertical"},defaultValue:{title:"Checked Value",type:ol.String,defaultValue:"value1"},items:{title:"Items",type:ol.Array,control:{type:ol.Object,controls:{displayName:{title:"Display Name",type:ol.String},value:{title:"Value",type:ol.String},color:{title:"Color",type:ol.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]}}},defaultValue:[{displayName:"Value 1",value:"value1",color:"primary"},{displayName:"Value 2",value:"value2",color:"primary"},{displayName:"Value 3",value:"value3",color:"primary"},{displayName:"Value 4",value:"value4",color:"primary"},{displayName:"Value 5",value:"value5",color:"primary"},{displayName:"Value 6",value:"value6",color:"primary"}]}};import{ControlType as xB}from"framer";var YX={color:{title:"Color",type:xB.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:xB.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"}};import{ControlType as Ug}from"framer";var JX={animation:{title:"Animation type",type:Ug.Enum,options:["wave","pulse"]},variant:{title:"Variant",type:Ug.Enum,options:["circular","rectangular"],defaultValue:"rectangular"},target:{title:"Target",type:Ug.ComponentInstance},loading:{title:"Loading",type:Ug.Boolean,defaultValue:!1}};import{ControlType as uo}from"framer";var qX={size:{type:uo.Enum,options:["sm","md","lg"],defaultValue:"sm"},disabled:{title:"Disabled",type:uo.Boolean,defaultValue:!1},color:{title:"Color",type:uo.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:uo.Enum,options:["solid","outlined","soft","plain"]},orientation:{title:"Orientation",type:uo.Enum,options:["horizontal","vertical"],defaultValue:"horizontal"},valueLabelDisplay:{title:"Value Label Display",type:uo.Enum,options:["on","off","auto"],defaultValue:"auto"},min:{title:"Min",type:uo.Number,defaultValue:0},max:{title:"Max",type:uo.Number,defaultValue:100},step:{title:"Step",type:uo.Number,defaultValue:1},defaultValue:{title:"Value",type:uo.Number,defaultValue:0},marks:{title:"Marks",type:uo.Array,description:"\uC2AC\uB77C\uC774\uB4DC \uBC14\uC5D0 \uD45C\uC2DC\uD560 \uB9C8\uD06C\uB4E4\uC744 \uC124\uC815\uD569\uB2C8\uB2E4. \uD45C\uC2DC\uD560 \uB9C8\uD06C\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uBAA8\uB4E0 \uD56D\uBAA9\uC744 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",control:{type:uo.Object,controls:{value:{title:"Value",type:uo.Number},label:{title:"Label",type:uo.String}}},defaultValue:[{value:0,label:"0"},{value:50,label:"50"},{value:100,label:"100"}]}};import{ControlType as Zn}from"framer";var KX={steps:{type:Zn.Array,control:{type:Zn.Object,controls:{label:{type:Zn.String,title:"Label"},extraContent:{type:Zn.String,title:"Extra Content"},indicatorContent:{type:Zn.String,title:"Indicator Content"}}},defaultValue:[{label:"Step 1",extraContent:"Step 1 extra content",indicatorContent:"1"},{label:"Step 2",extraContent:"Step 2 extra content",indicatorContent:"2"},{label:"Step 3",extraContent:"Step 3 extra content",indicatorContent:"3"}]},activeStep:{type:Zn.Number,title:"Active Step",defaultValue:0},activeColor:{title:"Active Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},activeLineColor:{title:"Active Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},inactiveColor:{title:"Inactive Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.400"},inactiveLineColor:{title:"Inactive Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.300"}};import{ControlType as Ld}from"framer";var XX={onChange:{title:"onChange",type:Ld.EventHandler},disabled:{title:"Disabled",type:Ld.Boolean,defaultValue:!1},color:{title:"Color",type:Ld.Enum,options:[void 0,"primary","neutral","danger","success","warning"],optionTitles:["Auto","Primary","Neutral","Danger","Success","Warning"],description:"\uC0C9\uC0C1\uC744 \uC9C0\uC815\uD558\uBA74 Checked \uC0C1\uD0DC\uC5D0 \uAD00\uACC4 \uC5C6\uC774 \uC0C9\uC0C1\uC774 \uACE0\uC815\uB429\uB2C8\uB2E4."},variant:{title:"Variant",type:Ld.Enum,options:["solid","outlined","soft","plain"],defaultValue:void 0},size:{title:"Size",type:Ld.Enum,options:["sm","md","lg"],defaultValue:"md"}};import{ControlType as Do}from"framer";var ZX={color:{title:"Color",type:Do.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},size:{title:"Size",type:Do.Enum,options:["sm","md","lg"],defaultValue:"md"},variant:{title:"Variant",type:Do.Enum,options:["outlined","plain","solid","soft"],defaultValue:"plain"},orientation:{type:Do.Enum,options:["horizontal","vertical"]},disableUnderline:{type:Do.Boolean,defaultValue:!1},disableIndicator:{type:Do.Boolean,defaultValue:!1},indicatorInset:{type:Do.Boolean,defaultValue:!1},tabs:{type:Do.Array,control:{type:Do.Object,controls:{title:{type:Do.String},disabled:{type:Do.Boolean,defaultValue:!1}}}},contents:{title:"Contents",type:Do.Array,control:{type:Do.ComponentInstance}}};import{ControlType as to}from"framer";var QX={label:{title:"Label",type:to.String},error:{title:"Error",type:to.Boolean,defaultValue:!1},helperText:{title:"Helper Text",type:to.String},onChange:{type:to.EventHandler},disabled:{title:"Disabled",type:to.Boolean,defaultValue:!1},required:{title:"Required",type:to.Boolean,defaultValue:!1},color:{title:"Color",type:to.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"],defaultValue:"neutral"},variant:{title:"Variant",type:to.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"},defaultValue:{title:"Value",type:to.String,defaultValue:""},placeholder:{title:"Placeholder",type:to.String,defaultValue:"Type in here..."},endDecorator:{title:"End Decorator",type:to.ComponentInstance},startDecorator:{title:"Start Decorator",type:to.ComponentInstance},size:{title:"Size",type:to.Enum,options:["sm","md","lg"],defaultValue:"md"},minRows:{title:"Min Rows",type:to.Number,defaultValue:void 0},maxRows:{title:"Max Rows",type:to.Number,defaultValue:void 0}};import{ControlType as nl}from"framer";var eZ={textAlign:{title:"Text Align",type:nl.Enum,options:[void 0,"start","center","end"],optionTitles:["None","Start","Center","End"],defaultValue:void 0},level:{title:"Level",type:nl.Enum,options:["h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","inherit"],defaultValue:"body-md"},textColor:{title:"Text Color",type:nl.Enum,options:["background.backdrop","background.body","background.level1","background.level2","background.level3","background.popup","background.surface","background.tooltip","common.black","common.white","danger.50","danger.100","danger.200","danger.300","danger.400","danger.500","danger.600","danger.700","danger.800","danger.900","danger.darkChannel","danger.lightChannel","danger.mainChannel","danger.outlinedActiveBg","danger.outlinedBorder","danger.outlinedColor","danger.outlinedDisabledBorder","danger.outlinedDisabledColor","danger.outlinedHoverBg","danger.plainActiveBg","danger.plainColor","danger.plainDisabledColor","danger.plainHoverBg","danger.softActiveBg","danger.softActiveColor","danger.softBg","danger.softColor","danger.softDisabledBg","danger.softDisabledColor","danger.softHoverBg","danger.solidActiveBg","danger.solidBg","danger.solidColor","danger.solidDisabledBg","danger.solidDisabledColor","danger.solidHoverBg","divider","focusVisible","mode","neutral.50","neutral.100","neutral.200","neutral.300","neutral.400","neutral.500","neutral.600","neutral.700","neutral.800","neutral.900","neutral.darkChannel","neutral.lightChannel","neutral.mainChannel","neutral.outlinedActiveBg","neutral.outlinedBorder","neutral.outlinedColor","neutral.outlinedDisabledBorder","neutral.outlinedDisabledColor","neutral.outlinedHoverBg","neutral.plainActiveBg","neutral.plainColor","neutral.plainDisabledColor","neutral.plainHoverBg","neutral.plainHoverColor","neutral.softActiveBg","neutral.softActiveColor","neutral.softBg","neutral.softColor","neutral.softDisabledBg","neutral.softDisabledColor","neutral.softHoverBg","neutral.solidActiveBg","neutral.solidBg","neutral.solidColor","neutral.solidDisabledBg","neutral.solidDisabledColor","neutral.solidHoverBg","primary.50","primary.100","primary.200","primary.300","primary.400","primary.500","primary.600","primary.700","primary.800","primary.900","primary.darkChannel","primary.lightChannel","primary.mainChannel","primary.outlinedActiveBg","primary.outlinedBorder","primary.outlinedColor","primary.outlinedDisabledBorder","primary.outlinedDisabledColor","primary.outlinedHoverBg","primary.plainActiveBg","primary.plainColor","primary.plainDisabledColor","primary.plainHoverBg","primary.softActiveBg","primary.softActiveColor","primary.softBg","primary.softColor","primary.softDisabledBg","primary.softDisabledColor","primary.softHoverBg","primary.solidActiveBg","primary.solidBg","primary.solidColor","primary.solidDisabledBg","primary.solidDisabledColor","primary.solidHoverBg","success.50","success.100","success.200","success.300","success.400","success.500","success.600","success.700","success.800","success.900","success.darkChannel","success.lightChannel","success.mainChannel","success.outlinedActiveBg","success.outlinedBorder","success.outlinedColor","success.outlinedDisabledBorder","success.outlinedDisabledColor","success.outlinedHoverBg","success.plainActiveBg","success.plainColor","success.plainDisabledColor","success.plainHoverBg","success.softActiveBg","success.softActiveColor","success.softBg","success.softColor","success.softDisabledBg","success.softDisabledColor","success.softHoverBg","success.solidActiveBg","success.solidBg","success.solidColor","success.solidDisabledBg","success.solidDisabledColor","success.solidHoverBg","text.icon","text.primary","text.secondary","text.tertiary","warning.50","warning.100","warning.200","warning.300","warning.400","warning.500","warning.600","warning.700","warning.800","warning.900","warning.darkChannel","warning.lightChannel","warning.mainChannel","warning.outlinedActiveBg","warning.outlinedBorder","warning.outlinedColor","warning.outlinedDisabledBorder","warning.outlinedDisabledColor","warning.outlinedHoverBg","warning.plainActiveBg","warning.plainColor","warning.plainDisabledColor","warning.plainHoverBg","warning.softActiveBg","warning.softActiveColor","warning.softBg","warning.softColor","warning.softDisabledBg","warning.softDisabledColor","warning.softHoverBg","warning.solidActiveBg","warning.solidBg","warning.solidColor","warning.solidDisabledBg","warning.solidDisabledColor","warning.solidHoverBg"],defaultValue:"inherit"},fontWeight:{title:"Font Weight",type:nl.Enum,options:[void 0,"700","600","500","400"],optionTitles:["Recommend","Bold","Semibold","Medium","Regular"],defaultValue:void 0},text:{title:"Text",type:nl.String,defaultValue:"Typography",displayTextArea:!0},endDecorator:{title:"End Decorator",type:nl.ComponentInstance},startDecorator:{title:"Start Decorator",type:nl.ComponentInstance}};var rgt={useNumbering:{title:"\u{1F4AB} Numbering",type:fo.Boolean,defaultValue:!1},numbering:{title:" ",type:fo.Number,defaultValue:1,hidden:({useNumbering:e})=>!e},useResponsiveMargin:{title:"\u{1F4AB} Responsive Margin",type:fo.Boolean,defaultValue:!1},responsiveMargin:{title:" ",type:fo.Object,buttonTitle:"Set Margin",hidden:({useResponsiveMargin:e})=>!e,controls:{xs:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xsMixed",toggleTitles:["All","Individual"],valueKeys:["xsMarginTop","xsMarginRight","xsMarginBottom","xsMarginLeft"],valueLabels:["T","R","B","L"]},sm:{type:fo.FusedNumber,defaultValue:0,toggleKey:"smMixed",toggleTitles:["All","Individual"],valueKeys:["smMarginTop","smMarginRight","smMarginBottom","smMarginLeft"],valueLabels:["T","R","B","L"]},md:{type:fo.FusedNumber,defaultValue:0,toggleKey:"mdMixed",toggleTitles:["All","Individual"],valueKeys:["mdMarginTop","mdMarginRight","mdMarginBottom","mdMarginLeft"],valueLabels:["T","R","B","L"]},lg:{type:fo.FusedNumber,defaultValue:0,toggleKey:"lgMixed",toggleTitles:["All","Individual"],valueKeys:["lgMarginTop","lgMarginRight","lgMarginBottom","lgMarginLeft"],valueLabels:["T","R","B","L"]},xl:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xlMixed",toggleTitles:["All","Individual"],valueKeys:["xlMarginTop","xlMarginRight","xlMarginBottom","xlMarginLeft"],valueLabels:["T","R","B","L"]}}}},nZ=e=>n=>{var a=n,{useResponsiveMargin:t,responsiveMargin:r}=a,o=he(a,["useResponsiveMargin","responsiveMargin"]);let[i,s]=PB({}),l=()=>{r!=null&&r.xsMixed?s({marginLeft:r==null?void 0:r.xsMarginLeft,marginRight:r==null?void 0:r.xsMarginRight,marginTop:r==null?void 0:r.xsMarginTop,marginBottom:r==null?void 0:r.xsMarginBottom}):s({margin:r==null?void 0:r.xs})},p=()=>{r!=null&&r.smMixed?s({marginLeft:r==null?void 0:r.smMarginLeft,marginRight:r==null?void 0:r.smMarginRight,marginTop:r==null?void 0:r.smMarginTop,marginBottom:r==null?void 0:r.smMarginBottom}):s({margin:r==null?void 0:r.sm})},c=()=>{r!=null&&r.mdMixed?s({marginLeft:r==null?void 0:r.mdMarginLeft,marginRight:r==null?void 0:r.mdMarginRight,marginTop:r==null?void 0:r.mdMarginTop,marginBottom:r==null?void 0:r.mdMarginBottom}):s({margin:r==null?void 0:r.md})},u=()=>{r!=null&&r.lgMixed?s({marginLeft:r==null?void 0:r.lgMarginLeft,marginRight:r==null?void 0:r.lgMarginRight,marginTop:r==null?void 0:r.lgMarginTop,marginBottom:r==null?void 0:r.lgMarginBottom}):s({margin:r==null?void 0:r.lg})},d=()=>{r!=null&&r.xlMixed?s({marginLeft:r==null?void 0:r.xlMarginLeft,marginRight:r==null?void 0:r.xlMarginRight,marginTop:r==null?void 0:r.xlMarginTop,marginBottom:r==null?void 0:r.xlMarginBottom}):s({margin:r==null?void 0:r.xl})};return t?Wg(lZ,{onXsChange:l,onSmChange:p,onMdChange:c,onLgChange:u,onXlChange:d,children:Wg(e,Z(F({},o),{sx:i}))}):Wg(e,o)},ogt=e=>{let t=nZ(e);return a=>{var i=a,{useNumbering:r,numbering:o}=i,n=he(i,["useNumbering","numbering"]);let s=[{Component:t,props:n}];return r&&s.push({Component:Xc,props:{color:"neutral",badgeContent:o,style:{display:"inherit"},anchorOrigin:{vertical:"top",horizontal:"left"}}}),s.reduce((l,{Component:p,props:c})=>[tZ.createElement(p,c,...l)],[])}},aZ=(e,t)=>{TB(()=>{let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[e])},iZ=e=>{let t=Al(),[r,o]=PB("xs");return aZ(e,()=>{o(t.breakpoints.keys.reduce((n,a)=>{let i=t.breakpoints.values[a];return e.offsetWidth>=i?a:n},"xs"))}),r},sZ=e=>{let t=rZ(()=>{var r;return((r=CB(e==null?void 0:e.current,".groundNodeWrapper"))==null?void 0:r.querySelector("div[id]"))||document.querySelector("#canvas-container .groundNodeWrapper > div[id]")||document.body},[document,e==null?void 0:e.current]);return iZ(t)},lZ=e=>{let{children:t,onXsChange:r,onSmChange:o,onMdChange:n,onLgChange:a,onXlChange:i}=e,s=oZ(null),l=sZ(s);return TB(()=>{if(l==="xl"&&i){i();return}else if(l==="lg"&&a){a();return}else if(l==="md"&&n){n();return}else if(l==="sm"&&o){o();return}else if(l==="xs"&&r){r();return}},[l,r,o,n,a,i]),Wg("div",{ref:s,style:{width:0,height:0,position:"sticky",display:"none"}})};function CB(e,t){return e?e.matches(t)?e:CB(e.parentElement,t):null}var ngt={onXsChange:{title:"onXsChange",type:fo.EventHandler},onSmChange:{title:"onSmChange",type:fo.EventHandler},onMdChange:{title:"onMdChange",type:fo.EventHandler},onLgChange:{title:"onLgChange",type:fo.EventHandler},onXlChange:{title:"onXlChange",type:fo.EventHandler}};export{jh as Accordion,$h as AccordionDetails,Vh as AccordionSummary,Rx as Accordions,Ex as Alert,Wb as AspectRatio,ku as Autocomplete,Yc as AutocompleteListbox,Jc as AutocompleteOption,ny as Avatar,Kc as AvatarGroup,Xc as Badge,Ru as Box,$x as Breadcrumbs,Iu as Button,ix as ButtonGroup,Ou as Calendar,_u as Card,Yx as CardActions,Wx as CardContent,Gx as CardCover,Jx as CardOverflow,wu as Checkbox,Vs as Chip,Sn as CircularProgress,qx as Container,cp as CssBaseline,Ry as CurrencyInput,ST as DataTable,zy as DatePicker,kT as DateRangePicker,qu as DialogActions,rd as DialogContent,DT as DialogFrame,od as DialogTitle,ad as Divider,ru as Drawer,Eu as Dropdown,xu as FormControl,Pu as FormHelperText,Tu as FormLabel,ou as Grid,Cu as IconButton,$y as InfoSign,ju as Input,_T as InsetDrawer,au as LinearProgress,xa as Link,Uc as List,lu as ListDivider,ua as ListItem,Wc as ListItemButton,mx as ListItemContent,Oi as ListItemDecorator,Is as ListSubheader,nP as Markdown,Ra as Menu,iP as MenuButton,Ea as MenuItem,ET as Modal,Gy as ModalClose,nd as ModalDialog,OT as ModalFrame,IT as ModalOverflow,rB as MonthPicker,lP as MonthRangePicker,Ng as NavigationGroup,Lg as NavigationItem,pP as Navigator,Fy as Option,ed as Pagination,cP as PercentageInput,zg as ProfileMenu,_d as Radio,wd as RadioGroup,uP as RadioList,lZ as ResponsiveEmitter,Zu as Select,Hu as Sheet,vx as Skeleton,xx as Slider,Zo as Stack,Fg as Step,Tx as StepButton,Vg as StepIndicator,dP as Stepper,fP as Switch,hP as Tab,yP as TabList,gP as TabPanel,Uu as Table,mT as TableBody,fT as TableHead,mP as Tabs,Xu as Textarea,bP as ThemeProvider,Qu as Tooltip,Cr as Typography,aw as Uploader,ym as accordionClasses,Vn as accordionDetailsClasses,da as accordionSummaryClasses,BR as accordionsClasses,hX as accordionsPropertyControls,KR as alertClasses,yX as alertPropertyControls,eE as aspectRatioClasses,kn as autocompleteClasses,EE as autocompleteListboxClasses,_E as autocompleteOptionClasses,xP as autocompletePropertyControls,LE as avatarClasses,FE as avatarGroupClasses,gX as avatarPropertyControls,Bm as badgeClasses,vX as badgePropertyControls,Mm as boxClasses,UE as breadcrumbsClasses,bX as breadcrumbsPropertyControls,lo as buttonClasses,TX as buttonGroupPropertyControls,xX as buttonPropertyControls,SX as calendarPropertyControls,tI as cardActionsClasses,Rn as cardClasses,iI as cardContentClasses,pI as cardCoverClasses,Si as cardOverflowClasses,En as checkboxClasses,CX as checkboxPropertyControls,ep as chipClasses,kX as chipPropertyControls,lE as circularProgressClasses,rgt as commonPropertyControls,PX as containerPropertyControls,RX as currencyInputPropertyControls,EX as dataTablePropertyControls,IX as datePickerPropertyControls,OX as dateRangePickerPropertyControls,bI as dialogActionsClasses,PI as dialogContentClasses,DX as dialogFramePropertyControls,up as dialogTitleClasses,Vm as dividerClasses,_X as dividerPropertyControls,wI as drawerClasses,ei as extendTheme,_s as formControlClasses,wX as formControlPropertyControls,LI as formHelperTextClasses,th as formLabelClasses,VI as gridClasses,Es as iconButtonClasses,BX as iconButtonPropertyControls,MX as infoSignPropertyControls,qo as inputClasses,NX as inputPropertyControls,jI as linearProgressClasses,iu as linkClasses,PP as linkPropertyControls,xm as listClasses,qI as listDividerClasses,fa as listItemButtonClasses,ca as listItemClasses,XI as listItemContentClasses,e1 as listItemDecoratorClasses,SE as listSubheaderClasses,LX as markdownPropertyControls,a1 as menuButtonClasses,zX as menuButtonPropertyControls,r1 as menuClasses,ph as menuItemClasses,OI as modalClasses,l1 as modalCloseClasses,va as modalDialogClasses,FX as modalFramePropertyControls,f1 as modalOverflowClasses,VX as monthPickerPropertyControls,$X as monthRangePickerPropertyControls,jX as navigatorPropertyControls,yh as optionClasses,HX as paginationPropertyControls,UX as percentageInputPropertyControls,WX as profileMenuPropertyControls,_i as radioClasses,v1 as radioGroupClasses,GX as radioListPropertyControls,ngt as responsiveEmitterPropertyControls,Pa as selectClasses,TP as selectPropertyControls,S1 as sheetClasses,YX as sheetPropertyControls,E1 as skeletonClasses,JX as skeletonPropertyControls,yp as sliderClasses,qX as sliderPropertyControls,U1 as stackClasses,kh as stepButtonClasses,Lr as stepClasses,On as stepperClasses,KX as stepperPropertyControls,Un as switchClasses,XX as switchPropertyControls,eO as tabListClasses,rO as tabPanelClasses,q1 as tableClasses,aO as tabsClasses,ZX as tabsPropertyControls,hu as textareaClasses,QX as textareaPropertyControls,vP as theme,Nh as tooltipClasses,GE as typographyClasses,eZ as typographyPropertyControls,AX as uploaderPropertyControls,sZ as useCanvasResponsive,ak as useColorScheme,iZ as useResponsive,Al as useTheme,G as useThemeProps,ogt as withCommonControls};
|
|
149
|
+
Avatar \uC0DD\uC131 \uC2DC 3\uC21C\uC704\uB85C \uACE0\uB824\uB429\uB2C8\uB2E4.`},caption:{title:"Caption",type:La.String,defaultValue:"j.gordon@haulla.com",description:"ProfileCard \uD558\uB2E8\uC5D0 \uD45C\uC2DC\uB418\uB294 caption\uC785\uB2C8\uB2E4."},chip:{title:"Chip",type:La.String,defaultValue:"PDT",description:"ProfileCard\uC5D0 \uD45C\uC2DC\uB418\uB294 chip\uC785\uB2C8\uB2E4."},size:{type:La.Enum,options:["sm","md"],defaultValue:"md"},items:{title:"Items",type:La.Array,control:{type:La.Object,controls:{text:{type:La.String}}},defaultValue:[]}};import{ControlType as ol}from"framer";var GX={orientation:{title:"Orientation",type:ol.Enum,options:["vertical","horizontal"],defaultValue:"vertical"},defaultValue:{title:"Checked Value",type:ol.String,defaultValue:"value1"},items:{title:"Items",type:ol.Array,control:{type:ol.Object,controls:{displayName:{title:"Display Name",type:ol.String},value:{title:"Value",type:ol.String},color:{title:"Color",type:ol.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]}}},defaultValue:[{displayName:"Value 1",value:"value1",color:"primary"},{displayName:"Value 2",value:"value2",color:"primary"},{displayName:"Value 3",value:"value3",color:"primary"},{displayName:"Value 4",value:"value4",color:"primary"},{displayName:"Value 5",value:"value5",color:"primary"},{displayName:"Value 6",value:"value6",color:"primary"}]}};import{ControlType as xB}from"framer";var YX={color:{title:"Color",type:xB.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:xB.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"}};import{ControlType as Ug}from"framer";var JX={animation:{title:"Animation type",type:Ug.Enum,options:["wave","pulse"]},variant:{title:"Variant",type:Ug.Enum,options:["circular","rectangular"],defaultValue:"rectangular"},target:{title:"Target",type:Ug.ComponentInstance},loading:{title:"Loading",type:Ug.Boolean,defaultValue:!1}};import{ControlType as uo}from"framer";var qX={size:{type:uo.Enum,options:["sm","md","lg"],defaultValue:"sm"},disabled:{title:"Disabled",type:uo.Boolean,defaultValue:!1},color:{title:"Color",type:uo.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:uo.Enum,options:["solid","outlined","soft","plain"]},orientation:{title:"Orientation",type:uo.Enum,options:["horizontal","vertical"],defaultValue:"horizontal"},valueLabelDisplay:{title:"Value Label Display",type:uo.Enum,options:["on","off","auto"],defaultValue:"auto"},min:{title:"Min",type:uo.Number,defaultValue:0},max:{title:"Max",type:uo.Number,defaultValue:100},step:{title:"Step",type:uo.Number,defaultValue:1},defaultValue:{title:"Value",type:uo.Number,defaultValue:0},marks:{title:"Marks",type:uo.Array,description:"\uC2AC\uB77C\uC774\uB4DC \uBC14\uC5D0 \uD45C\uC2DC\uD560 \uB9C8\uD06C\uB4E4\uC744 \uC124\uC815\uD569\uB2C8\uB2E4. \uD45C\uC2DC\uD560 \uB9C8\uD06C\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uBAA8\uB4E0 \uD56D\uBAA9\uC744 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",control:{type:uo.Object,controls:{value:{title:"Value",type:uo.Number},label:{title:"Label",type:uo.String}}},defaultValue:[{value:0,label:"0"},{value:50,label:"50"},{value:100,label:"100"}]}};import{ControlType as Zn}from"framer";var KX={steps:{type:Zn.Array,control:{type:Zn.Object,controls:{label:{type:Zn.String,title:"Label"},extraContent:{type:Zn.String,title:"Extra Content"},indicatorContent:{type:Zn.String,title:"Indicator Content"}}},defaultValue:[{label:"Step 1",extraContent:"Step 1 extra content",indicatorContent:"1"},{label:"Step 2",extraContent:"Step 2 extra content",indicatorContent:"2"},{label:"Step 3",extraContent:"Step 3 extra content",indicatorContent:"3"}]},activeStep:{type:Zn.Number,title:"Active Step",defaultValue:0},activeColor:{title:"Active Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},activeLineColor:{title:"Active Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},inactiveColor:{title:"Inactive Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.400"},inactiveLineColor:{title:"Inactive Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.300"}};import{ControlType as Ld}from"framer";var XX={onChange:{title:"onChange",type:Ld.EventHandler},disabled:{title:"Disabled",type:Ld.Boolean,defaultValue:!1},color:{title:"Color",type:Ld.Enum,options:[void 0,"primary","neutral","danger","success","warning"],optionTitles:["Auto","Primary","Neutral","Danger","Success","Warning"],description:"\uC0C9\uC0C1\uC744 \uC9C0\uC815\uD558\uBA74 Checked \uC0C1\uD0DC\uC5D0 \uAD00\uACC4 \uC5C6\uC774 \uC0C9\uC0C1\uC774 \uACE0\uC815\uB429\uB2C8\uB2E4."},variant:{title:"Variant",type:Ld.Enum,options:["solid","outlined","soft","plain"],defaultValue:void 0},size:{title:"Size",type:Ld.Enum,options:["sm","md","lg"],defaultValue:"md"}};import{ControlType as Do}from"framer";var ZX={color:{title:"Color",type:Do.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},size:{title:"Size",type:Do.Enum,options:["sm","md","lg"],defaultValue:"md"},variant:{title:"Variant",type:Do.Enum,options:["outlined","plain","solid","soft"],defaultValue:"plain"},orientation:{type:Do.Enum,options:["horizontal","vertical"]},disableUnderline:{type:Do.Boolean,defaultValue:!1},disableIndicator:{type:Do.Boolean,defaultValue:!1},indicatorInset:{type:Do.Boolean,defaultValue:!1},tabs:{type:Do.Array,control:{type:Do.Object,controls:{title:{type:Do.String},disabled:{type:Do.Boolean,defaultValue:!1}}}},contents:{title:"Contents",type:Do.Array,control:{type:Do.ComponentInstance}}};import{ControlType as to}from"framer";var QX={label:{title:"Label",type:to.String},error:{title:"Error",type:to.Boolean,defaultValue:!1},helperText:{title:"Helper Text",type:to.String},onChange:{type:to.EventHandler},disabled:{title:"Disabled",type:to.Boolean,defaultValue:!1},required:{title:"Required",type:to.Boolean,defaultValue:!1},color:{title:"Color",type:to.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"],defaultValue:"neutral"},variant:{title:"Variant",type:to.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"},defaultValue:{title:"Value",type:to.String,defaultValue:""},placeholder:{title:"Placeholder",type:to.String,defaultValue:"Type in here..."},endDecorator:{title:"End Decorator",type:to.ComponentInstance},startDecorator:{title:"Start Decorator",type:to.ComponentInstance},size:{title:"Size",type:to.Enum,options:["sm","md","lg"],defaultValue:"md"},minRows:{title:"Min Rows",type:to.Number,defaultValue:void 0},maxRows:{title:"Max Rows",type:to.Number,defaultValue:void 0}};import{ControlType as nl}from"framer";var eZ={textAlign:{title:"Text Align",type:nl.Enum,options:[void 0,"start","center","end"],optionTitles:["None","Start","Center","End"],defaultValue:void 0},level:{title:"Level",type:nl.Enum,options:["h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","inherit"],defaultValue:"body-md"},textColor:{title:"Text Color",type:nl.Enum,options:["background.backdrop","background.body","background.level1","background.level2","background.level3","background.popup","background.surface","background.tooltip","common.black","common.white","danger.50","danger.100","danger.200","danger.300","danger.400","danger.500","danger.600","danger.700","danger.800","danger.900","danger.darkChannel","danger.lightChannel","danger.mainChannel","danger.outlinedActiveBg","danger.outlinedBorder","danger.outlinedColor","danger.outlinedDisabledBorder","danger.outlinedDisabledColor","danger.outlinedHoverBg","danger.plainActiveBg","danger.plainColor","danger.plainDisabledColor","danger.plainHoverBg","danger.softActiveBg","danger.softActiveColor","danger.softBg","danger.softColor","danger.softDisabledBg","danger.softDisabledColor","danger.softHoverBg","danger.solidActiveBg","danger.solidBg","danger.solidColor","danger.solidDisabledBg","danger.solidDisabledColor","danger.solidHoverBg","divider","focusVisible","mode","neutral.50","neutral.100","neutral.200","neutral.300","neutral.400","neutral.500","neutral.600","neutral.700","neutral.800","neutral.900","neutral.darkChannel","neutral.lightChannel","neutral.mainChannel","neutral.outlinedActiveBg","neutral.outlinedBorder","neutral.outlinedColor","neutral.outlinedDisabledBorder","neutral.outlinedDisabledColor","neutral.outlinedHoverBg","neutral.plainActiveBg","neutral.plainColor","neutral.plainDisabledColor","neutral.plainHoverBg","neutral.plainHoverColor","neutral.softActiveBg","neutral.softActiveColor","neutral.softBg","neutral.softColor","neutral.softDisabledBg","neutral.softDisabledColor","neutral.softHoverBg","neutral.solidActiveBg","neutral.solidBg","neutral.solidColor","neutral.solidDisabledBg","neutral.solidDisabledColor","neutral.solidHoverBg","primary.50","primary.100","primary.200","primary.300","primary.400","primary.500","primary.600","primary.700","primary.800","primary.900","primary.darkChannel","primary.lightChannel","primary.mainChannel","primary.outlinedActiveBg","primary.outlinedBorder","primary.outlinedColor","primary.outlinedDisabledBorder","primary.outlinedDisabledColor","primary.outlinedHoverBg","primary.plainActiveBg","primary.plainColor","primary.plainDisabledColor","primary.plainHoverBg","primary.softActiveBg","primary.softActiveColor","primary.softBg","primary.softColor","primary.softDisabledBg","primary.softDisabledColor","primary.softHoverBg","primary.solidActiveBg","primary.solidBg","primary.solidColor","primary.solidDisabledBg","primary.solidDisabledColor","primary.solidHoverBg","success.50","success.100","success.200","success.300","success.400","success.500","success.600","success.700","success.800","success.900","success.darkChannel","success.lightChannel","success.mainChannel","success.outlinedActiveBg","success.outlinedBorder","success.outlinedColor","success.outlinedDisabledBorder","success.outlinedDisabledColor","success.outlinedHoverBg","success.plainActiveBg","success.plainColor","success.plainDisabledColor","success.plainHoverBg","success.softActiveBg","success.softActiveColor","success.softBg","success.softColor","success.softDisabledBg","success.softDisabledColor","success.softHoverBg","success.solidActiveBg","success.solidBg","success.solidColor","success.solidDisabledBg","success.solidDisabledColor","success.solidHoverBg","text.icon","text.primary","text.secondary","text.tertiary","warning.50","warning.100","warning.200","warning.300","warning.400","warning.500","warning.600","warning.700","warning.800","warning.900","warning.darkChannel","warning.lightChannel","warning.mainChannel","warning.outlinedActiveBg","warning.outlinedBorder","warning.outlinedColor","warning.outlinedDisabledBorder","warning.outlinedDisabledColor","warning.outlinedHoverBg","warning.plainActiveBg","warning.plainColor","warning.plainDisabledColor","warning.plainHoverBg","warning.softActiveBg","warning.softActiveColor","warning.softBg","warning.softColor","warning.softDisabledBg","warning.softDisabledColor","warning.softHoverBg","warning.solidActiveBg","warning.solidBg","warning.solidColor","warning.solidDisabledBg","warning.solidDisabledColor","warning.solidHoverBg"],defaultValue:"inherit"},fontWeight:{title:"Font Weight",type:nl.Enum,options:[void 0,"700","600","500","400"],optionTitles:["Recommend","Bold","Semibold","Medium","Regular"],defaultValue:void 0},text:{title:"Text",type:nl.String,defaultValue:"Typography",displayTextArea:!0},endDecorator:{title:"End Decorator",type:nl.ComponentInstance},startDecorator:{title:"Start Decorator",type:nl.ComponentInstance}};var ogt={useNumbering:{title:"\u{1F4AB} Numbering",type:fo.Boolean,defaultValue:!1},numbering:{title:" ",type:fo.Number,defaultValue:1,hidden:({useNumbering:e})=>!e},useResponsiveMargin:{title:"\u{1F4AB} Responsive Margin",type:fo.Boolean,defaultValue:!1},responsiveMargin:{title:" ",type:fo.Object,buttonTitle:"Set Margin",hidden:({useResponsiveMargin:e})=>!e,controls:{xs:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xsMixed",toggleTitles:["All","Individual"],valueKeys:["xsMarginTop","xsMarginRight","xsMarginBottom","xsMarginLeft"],valueLabels:["T","R","B","L"]},sm:{type:fo.FusedNumber,defaultValue:0,toggleKey:"smMixed",toggleTitles:["All","Individual"],valueKeys:["smMarginTop","smMarginRight","smMarginBottom","smMarginLeft"],valueLabels:["T","R","B","L"]},md:{type:fo.FusedNumber,defaultValue:0,toggleKey:"mdMixed",toggleTitles:["All","Individual"],valueKeys:["mdMarginTop","mdMarginRight","mdMarginBottom","mdMarginLeft"],valueLabels:["T","R","B","L"]},lg:{type:fo.FusedNumber,defaultValue:0,toggleKey:"lgMixed",toggleTitles:["All","Individual"],valueKeys:["lgMarginTop","lgMarginRight","lgMarginBottom","lgMarginLeft"],valueLabels:["T","R","B","L"]},xl:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xlMixed",toggleTitles:["All","Individual"],valueKeys:["xlMarginTop","xlMarginRight","xlMarginBottom","xlMarginLeft"],valueLabels:["T","R","B","L"]}}}},nZ=e=>n=>{var a=n,{useResponsiveMargin:t,responsiveMargin:r}=a,o=he(a,["useResponsiveMargin","responsiveMargin"]);let[i,s]=PB({}),l=()=>{r!=null&&r.xsMixed?s({marginLeft:r==null?void 0:r.xsMarginLeft,marginRight:r==null?void 0:r.xsMarginRight,marginTop:r==null?void 0:r.xsMarginTop,marginBottom:r==null?void 0:r.xsMarginBottom}):s({margin:r==null?void 0:r.xs})},p=()=>{r!=null&&r.smMixed?s({marginLeft:r==null?void 0:r.smMarginLeft,marginRight:r==null?void 0:r.smMarginRight,marginTop:r==null?void 0:r.smMarginTop,marginBottom:r==null?void 0:r.smMarginBottom}):s({margin:r==null?void 0:r.sm})},c=()=>{r!=null&&r.mdMixed?s({marginLeft:r==null?void 0:r.mdMarginLeft,marginRight:r==null?void 0:r.mdMarginRight,marginTop:r==null?void 0:r.mdMarginTop,marginBottom:r==null?void 0:r.mdMarginBottom}):s({margin:r==null?void 0:r.md})},u=()=>{r!=null&&r.lgMixed?s({marginLeft:r==null?void 0:r.lgMarginLeft,marginRight:r==null?void 0:r.lgMarginRight,marginTop:r==null?void 0:r.lgMarginTop,marginBottom:r==null?void 0:r.lgMarginBottom}):s({margin:r==null?void 0:r.lg})},d=()=>{r!=null&&r.xlMixed?s({marginLeft:r==null?void 0:r.xlMarginLeft,marginRight:r==null?void 0:r.xlMarginRight,marginTop:r==null?void 0:r.xlMarginTop,marginBottom:r==null?void 0:r.xlMarginBottom}):s({margin:r==null?void 0:r.xl})};return t?Wg(lZ,{onXsChange:l,onSmChange:p,onMdChange:c,onLgChange:u,onXlChange:d,children:Wg(e,Z(F({},o),{sx:i}))}):Wg(e,o)},ngt=e=>{let t=nZ(e);return a=>{var i=a,{useNumbering:r,numbering:o}=i,n=he(i,["useNumbering","numbering"]);let s=[{Component:t,props:n}];return r&&s.push({Component:Xc,props:{color:"neutral",badgeContent:o,style:{display:"inherit"},anchorOrigin:{vertical:"top",horizontal:"left"}}}),s.reduce((l,{Component:p,props:c})=>[tZ.createElement(p,c,...l)],[])}},aZ=(e,t)=>{TB(()=>{let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[e])},iZ=e=>{let t=Al(),[r,o]=PB("xs");return aZ(e,()=>{o(t.breakpoints.keys.reduce((n,a)=>{let i=t.breakpoints.values[a];return e.offsetWidth>=i?a:n},"xs"))}),r},sZ=e=>{let t=rZ(()=>{var r;return((r=CB(e==null?void 0:e.current,".groundNodeWrapper"))==null?void 0:r.querySelector("div[id]"))||document.querySelector("#canvas-container .groundNodeWrapper > div[id]")||document.body},[document,e==null?void 0:e.current]);return iZ(t)},lZ=e=>{let{children:t,onXsChange:r,onSmChange:o,onMdChange:n,onLgChange:a,onXlChange:i}=e,s=oZ(null),l=sZ(s);return TB(()=>{if(l==="xl"&&i){i();return}else if(l==="lg"&&a){a();return}else if(l==="md"&&n){n();return}else if(l==="sm"&&o){o();return}else if(l==="xs"&&r){r();return}},[l,r,o,n,a,i]),Wg("div",{ref:s,style:{width:0,height:0,position:"sticky",display:"none"}})};function CB(e,t){return e?e.matches(t)?e:CB(e.parentElement,t):null}var agt={onXsChange:{title:"onXsChange",type:fo.EventHandler},onSmChange:{title:"onSmChange",type:fo.EventHandler},onMdChange:{title:"onMdChange",type:fo.EventHandler},onLgChange:{title:"onLgChange",type:fo.EventHandler},onXlChange:{title:"onXlChange",type:fo.EventHandler}};export{jh as Accordion,$h as AccordionDetails,Vh as AccordionSummary,Rx as Accordions,Ex as Alert,Wb as AspectRatio,ku as Autocomplete,Yc as AutocompleteListbox,Jc as AutocompleteOption,ny as Avatar,Kc as AvatarGroup,Xc as Badge,Ru as Box,$x as Breadcrumbs,Iu as Button,ix as ButtonGroup,Ou as Calendar,_u as Card,Yx as CardActions,Wx as CardContent,Gx as CardCover,Jx as CardOverflow,wu as Checkbox,Vs as Chip,Sn as CircularProgress,qx as Container,cp as CssBaseline,Ry as CurrencyInput,ST as DataTable,zy as DatePicker,kT as DateRangePicker,qu as DialogActions,rd as DialogContent,DT as DialogFrame,od as DialogTitle,ad as Divider,ru as Drawer,Eu as Dropdown,xu as FormControl,Pu as FormHelperText,Tu as FormLabel,ou as Grid,Cu as IconButton,$y as InfoSign,ju as Input,_T as InsetDrawer,au as LinearProgress,xa as Link,Uc as List,lu as ListDivider,ua as ListItem,Wc as ListItemButton,mx as ListItemContent,Oi as ListItemDecorator,Is as ListSubheader,nP as Markdown,Ra as Menu,iP as MenuButton,Ea as MenuItem,ET as Modal,Gy as ModalClose,nd as ModalDialog,OT as ModalFrame,IT as ModalOverflow,rB as MonthPicker,lP as MonthRangePicker,Ng as NavigationGroup,Lg as NavigationItem,pP as Navigator,Fy as Option,ed as Pagination,cP as PercentageInput,zg as ProfileMenu,_d as Radio,wd as RadioGroup,uP as RadioList,lZ as ResponsiveEmitter,Zu as Select,Hu as Sheet,vx as Skeleton,xx as Slider,Zo as Stack,Fg as Step,Tx as StepButton,Vg as StepIndicator,dP as Stepper,fP as Switch,hP as Tab,yP as TabList,gP as TabPanel,Uu as Table,mT as TableBody,fT as TableHead,mP as Tabs,Xu as Textarea,bP as ThemeProvider,Qu as Tooltip,Cr as Typography,aw as Uploader,ym as accordionClasses,Vn as accordionDetailsClasses,da as accordionSummaryClasses,BR as accordionsClasses,hX as accordionsPropertyControls,KR as alertClasses,yX as alertPropertyControls,eE as aspectRatioClasses,kn as autocompleteClasses,EE as autocompleteListboxClasses,_E as autocompleteOptionClasses,xP as autocompletePropertyControls,LE as avatarClasses,FE as avatarGroupClasses,gX as avatarPropertyControls,Bm as badgeClasses,vX as badgePropertyControls,Mm as boxClasses,UE as breadcrumbsClasses,bX as breadcrumbsPropertyControls,lo as buttonClasses,TX as buttonGroupPropertyControls,xX as buttonPropertyControls,SX as calendarPropertyControls,tI as cardActionsClasses,Rn as cardClasses,iI as cardContentClasses,pI as cardCoverClasses,Si as cardOverflowClasses,En as checkboxClasses,CX as checkboxPropertyControls,ep as chipClasses,kX as chipPropertyControls,lE as circularProgressClasses,ogt as commonPropertyControls,PX as containerPropertyControls,RX as currencyInputPropertyControls,EX as dataTablePropertyControls,IX as datePickerPropertyControls,OX as dateRangePickerPropertyControls,bI as dialogActionsClasses,PI as dialogContentClasses,DX as dialogFramePropertyControls,up as dialogTitleClasses,Vm as dividerClasses,_X as dividerPropertyControls,wI as drawerClasses,ei as extendTheme,_s as formControlClasses,wX as formControlPropertyControls,LI as formHelperTextClasses,th as formLabelClasses,VI as gridClasses,Es as iconButtonClasses,BX as iconButtonPropertyControls,MX as infoSignPropertyControls,qo as inputClasses,NX as inputPropertyControls,jI as linearProgressClasses,iu as linkClasses,PP as linkPropertyControls,xm as listClasses,qI as listDividerClasses,fa as listItemButtonClasses,ca as listItemClasses,XI as listItemContentClasses,e1 as listItemDecoratorClasses,SE as listSubheaderClasses,LX as markdownPropertyControls,a1 as menuButtonClasses,zX as menuButtonPropertyControls,r1 as menuClasses,ph as menuItemClasses,OI as modalClasses,l1 as modalCloseClasses,va as modalDialogClasses,FX as modalFramePropertyControls,f1 as modalOverflowClasses,VX as monthPickerPropertyControls,$X as monthRangePickerPropertyControls,jX as navigatorPropertyControls,yh as optionClasses,HX as paginationPropertyControls,UX as percentageInputPropertyControls,WX as profileMenuPropertyControls,_i as radioClasses,v1 as radioGroupClasses,GX as radioListPropertyControls,agt as responsiveEmitterPropertyControls,Pa as selectClasses,TP as selectPropertyControls,S1 as sheetClasses,YX as sheetPropertyControls,E1 as skeletonClasses,JX as skeletonPropertyControls,yp as sliderClasses,qX as sliderPropertyControls,U1 as stackClasses,kh as stepButtonClasses,Lr as stepClasses,On as stepperClasses,KX as stepperPropertyControls,Un as switchClasses,XX as switchPropertyControls,eO as tabListClasses,rO as tabPanelClasses,q1 as tableClasses,aO as tabsClasses,ZX as tabsPropertyControls,hu as textareaClasses,QX as textareaPropertyControls,vP as theme,Nh as tooltipClasses,GE as typographyClasses,eZ as typographyPropertyControls,AX as uploaderPropertyControls,sZ as useCanvasResponsive,ak as useColorScheme,iZ as useResponsive,Al as useTheme,G as useThemeProps,ngt as withCommonControls};
|
|
150
150
|
/*! Bundled license information:
|
|
151
151
|
|
|
152
152
|
react-is/cjs/react-is.production.min.js:
|