@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.26 → 0.0.1-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(ue,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@tanstack/react-query"),require("react-router-dom"),require("@ant-design/icons")):typeof define=="function"&&define.amd?define(["exports","react","antd","@tanstack/react-query","react-router-dom","@ant-design/icons"],Z):(ue=typeof globalThis<"u"?globalThis:ue||self,Z(ue["@prorobotech/openapi-k8s-toolkit"]={},ue.React,ue.antd,ue.reactQuery,ue.ReactRouterDOM,ue.antdIcons))})(this,function(ue,Z,z,wn,Qn,qt){"use strict";function oy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ef={exports:{}},Wt=ef.exports={},lr,fr;function mu(){throw new Error("setTimeout has not been defined")}function bu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?lr=setTimeout:lr=mu}catch{lr=mu}try{typeof clearTimeout=="function"?fr=clearTimeout:fr=bu}catch{fr=bu}})();function tf(e){if(lr===setTimeout)return setTimeout(e,0);if((lr===mu||!lr)&&setTimeout)return lr=setTimeout,setTimeout(e,0);try{return lr(e,0)}catch{try{return lr.call(null,e,0)}catch{return lr.call(this,e,0)}}}function ay(e){if(fr===clearTimeout)return clearTimeout(e);if((fr===bu||!fr)&&clearTimeout)return fr=clearTimeout,clearTimeout(e);try{return fr(e)}catch{try{return fr.call(null,e)}catch{return fr.call(this,e)}}}var Sr=[],Fi=!1,ii,Co=-1;function uy(){!Fi||!ii||(Fi=!1,ii.length?Sr=ii.concat(Sr):Co=-1,Sr.length&&nf())}function nf(){if(!Fi){var e=tf(uy);Fi=!0;for(var t=Sr.length;t;){for(ii=Sr,Sr=[];++Co<t;)ii&&ii[Co].run();Co=-1,t=Sr.length}ii=null,Fi=!1,ay(e)}}Wt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Sr.push(new rf(e,t)),Sr.length===1&&!Fi&&tf(nf)};function rf(e,t){this.fun=e,this.array=t}rf.prototype.run=function(){this.fun.apply(null,this.array)},Wt.title="browser",Wt.browser=!0,Wt.env={},Wt.argv=[],Wt.version="",Wt.versions={};function Ar(){}Wt.on=Ar,Wt.addListener=Ar,Wt.once=Ar,Wt.off=Ar,Wt.removeListener=Ar,Wt.removeAllListeners=Ar,Wt.emit=Ar,Wt.prependListener=Ar,Wt.prependOnceListener=Ar,Wt.listeners=function(e){return[]},Wt.binding=function(e){throw new Error("process.binding is not supported")},Wt.cwd=function(){return"/"},Wt.chdir=function(e){throw new Error("process.chdir is not supported")},Wt.umask=function(){return 0};var cy=ef.exports;const tt=oy(cy);var Sn=function(){return Sn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Sn.apply(this,arguments)};function Bi(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function ly(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var fy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hy=ly(function(e){return fy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft="-ms-",Cs="-moz-",mt="-webkit-",sf="comm",_o="rule",wu="decl",dy="@import",py="@namespace",of="@keyframes",gy="@layer",af=Math.abs,Su=String.fromCharCode,Au=Object.assign;function yy(e,t){return Zt(e,0)^45?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}function uf(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Je(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Zt(e,t){return e.charCodeAt(t)|0}function si(e,t,n){return e.slice(t,n)}function er(e){return e.length}function cf(e){return e.length}function _s(e,t){return t.push(e),e}function my(e,t){return e.map(t).join("")}function lf(e,t){return e.filter(function(n){return!Er(n,t)})}var To=1,Di=1,ff=0,Rn=0,Qt=0,Pi="";function Oo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:To,column:Di,length:u,return:"",siblings:l}}function Lr(e,t){return Au(Oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ri(e){for(;e.root;)e=Lr(e.root,{children:[e]});_s(e,e.siblings)}function by(){return Qt}function vy(){return Qt=Rn>0?Zt(Pi,--Rn):0,Di--,Qt===10&&(Di=1,To--),Qt}function tr(){return Qt=Rn<ff?Zt(Pi,Rn++):0,Di++,Qt===10&&(Di=1,To++),Qt}function jr(){return Zt(Pi,Rn)}function Io(){return Rn}function Fo(e,t){return si(Pi,e,t)}function ks(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 wy(e){return To=Di=1,ff=er(Pi=e),Rn=0,[]}function Sy(e){return Pi="",e}function Eu(e){return uf(Fo(Rn-1,xu(e===91?e+2:e===40?e+1:e)))}function Ay(e){for(;(Qt=jr())&&Qt<33;)tr();return ks(e)>2||ks(Qt)>3?"":" "}function Ey(e,t){for(;--t&&tr()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return Fo(e,Io()+(t<6&&jr()==32&&tr()==32))}function xu(e){for(;tr();)switch(Qt){case e:return Rn;case 34:case 39:e!==34&&e!==39&&xu(Qt);break;case 40:e===41&&xu(e);break;case 92:tr();break}return Rn}function xy(e,t){for(;tr()&&e+Qt!==57;)if(e+Qt===84&&jr()===47)break;return"/*"+Fo(t,Rn-1)+"*"+Su(e===47?e:tr())}function Cy(e){for(;!ks(jr());)tr();return Fo(e,Rn)}function _y(e){return Sy(Bo("",null,null,null,[""],e=wy(e),0,[0],e))}function Bo(e,t,n,i,o,a,u,l,f){for(var d=0,g=0,p=u,w=0,k=0,S=0,A=1,v=1,R=1,L=0,C="",x=o,I=a,O=i,D=C;v;)switch(S=L,L=tr()){case 40:if(S!=108&&Zt(D,p-1)==58){ko(D+=Je(Eu(L),"&","&\f"),"&\f",af(d?l[d-1]:0))!=-1&&(R=-1);break}case 34:case 39:case 91:D+=Eu(L);break;case 9:case 10:case 13:case 32:D+=Ay(S);break;case 92:D+=Ey(Io()-1,7);continue;case 47:switch(jr()){case 42:case 47:_s(ky(xy(tr(),Io()),t,n,f),f),(ks(S||1)==5||ks(jr()||1)==5)&&er(D)&&si(D,-1,void 0)!==" "&&(D+=" ");break;default:D+="/"}break;case 123*A:l[d++]=er(D)*R;case 125*A:case 59:case 0:switch(L){case 0:case 125:v=0;case 59+g:R==-1&&(D=Je(D,/\f/g,"")),k>0&&(er(D)-p||A===0&&S===47)&&_s(k>32?df(D+";",i,n,p-1,f):df(Je(D," ","")+";",i,n,p-2,f),f);break;case 59:D+=";";default:if(_s(O=hf(D,t,n,d,g,o,l,C,x=[],I=[],p,a),a),L===123)if(g===0)Bo(D,t,O,O,x,a,p,l,I);else{switch(w){case 99:if(Zt(D,3)===110)break;case 108:if(Zt(D,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Bo(e,O,O,i&&_s(hf(e,O,O,0,0,o,l,C,o,x=[],p,I),I),o,I,p,l,i?x:I):Bo(D,O,O,O,[""],I,0,l,I)}}d=g=k=0,A=R=1,C=D="",p=u;break;case 58:p=1+er(D),k=S;default:if(A<1){if(L==123)--A;else if(L==125&&A++==0&&vy()==125)continue}switch(D+=Su(L),L*A){case 38:R=g>0?1:(D+="\f",-1);break;case 44:l[d++]=(er(D)-1)*R,R=1;break;case 64:jr()===45&&(D+=Eu(tr())),w=jr(),g=p=er(C=D+=Cy(Io())),L++;break;case 45:S===45&&er(D)==2&&(A=0)}}return a}function hf(e,t,n,i,o,a,u,l,f,d,g,p){for(var w=o-1,k=o===0?a:[""],S=cf(k),A=0,v=0,R=0;A<i;++A)for(var L=0,C=si(e,w+1,w=af(v=u[A])),x=e;L<S;++L)(x=uf(v>0?k[L]+" "+C:Je(C,/&\f/g,k[L])))&&(f[R++]=x);return Oo(e,t,n,o===0?_o:l,f,d,g,p)}function ky(e,t,n,i){return Oo(e,t,n,sf,Su(by()),si(e,2,-2),0,i)}function df(e,t,n,i,o){return Oo(e,t,n,wu,si(e,0,i),si(e,i+1,-1),i,o)}function pf(e,t,n){switch(yy(e,t)){case 5103:return mt+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return mt+e+e;case 4855:return mt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Cs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+Cs+e+Ft+e+e;case 5936:switch(Zt(e,t+11)){case 114:return mt+e+Ft+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+Ft+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+Ft+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return mt+e+Ft+e+e;case 6165:return mt+e+Ft+"flex-"+e+e;case 5187:return mt+e+Je(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+Ft+"flex-$1$2")+e;case 5443:return mt+e+Ft+"flex-item-"+Je(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":Ft+"grid-row-"+Je(e,/flex-|-self/g,""))+e;case 4675:return mt+e+Ft+"flex-line-pack"+Je(e,/align-content|flex-|-self/g,"")+e;case 5548:return mt+e+Ft+Je(e,"shrink","negative")+e;case 5292:return mt+e+Ft+Je(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+Je(e,"-grow","")+mt+e+Ft+Je(e,"grow","positive")+e;case 4554:return mt+Je(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return Je(Je(Je(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return Je(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return Je(Je(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+Ft+"flex-pack:$3"),/space-between/,"justify")+mt+e+e;case 4200:if(!Er(e,/flex-|baseline/))return Ft+"grid-column-align"+si(e,t)+e;break;case 2592:case 3360:return Ft+Je(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~ko(e+(n=n[t].value),"span",0)?e:Ft+Je(e,"-start","")+e+Ft+"grid-row-span:"+(~ko(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":Ft+Je(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:Ft+Je(Je(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Je(e,/(.+)-inline(.+)/,mt+"$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(er(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+Cs+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ko(e,"stretch",0)?pf(Je(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Je(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,d){return Ft+o+":"+a+d+(u?Ft+o+"-span:"+(l?f:+f-+a)+d:"")+e});case 4949:if(Zt(e,t+6)===121)return Je(e,":",":"+mt)+e;break;case 6444:switch(Zt(e,Zt(e,14)===45?18:11)){case 120:return Je(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+mt+(Zt(e,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+Ft+"$2box$3")+e;case 100:return Je(e,":",":"+Ft)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Je(e,"scroll-","scroll-snap-")+e}return e}function Do(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function Ty(e,t,n,i){switch(e.type){case gy:if(e.children.length)break;case dy:case py:case wu:return e.return=e.return||e.value;case sf:return"";case of:return e.return=e.value+"{"+Do(e.children,i)+"}";case _o:if(!er(e.value=e.props.join(",")))return""}return er(n=Do(e.children,i))?e.return=e.value+"{"+n+"}":""}function Oy(e){var t=cf(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function Iy(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fy(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case wu:e.return=pf(e.value,e.length,n);return;case of:return Do([Lr(e,{value:Je(e.value,"@","@"+mt)})],i);case _o:if(e.length)return my(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ri(Lr(e,{props:[Je(o,/:(read-\w+)/,":"+Cs+"$1")]})),Ri(Lr(e,{props:[o]})),Au(e,{props:lf(n,i)});break;case"::placeholder":Ri(Lr(e,{props:[Je(o,/:(plac\w+)/,":"+mt+"input-$1")]})),Ri(Lr(e,{props:[Je(o,/:(plac\w+)/,":"+Cs+"$1")]})),Ri(Lr(e,{props:[Je(o,/:(plac\w+)/,Ft+"input-$1")]})),Ri(Lr(e,{props:[o]})),Au(e,{props:lf(n,i)});break}return""})}}var By={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},oi=typeof tt<"u"&&tt.env!==void 0&&(tt.env.REACT_APP_SC_ATTR||tt.env.SC_ATTR)||"data-styled",Cu=typeof window<"u"&&"HTMLElement"in window,Dy=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof tt<"u"&&tt.env!==void 0&&tt.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&tt.env.REACT_APP_SC_DISABLE_SPEEDY!==""?tt.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&tt.env.REACT_APP_SC_DISABLE_SPEEDY:typeof tt<"u"&&tt.env!==void 0&&tt.env.SC_DISABLE_SPEEDY!==void 0&&tt.env.SC_DISABLE_SPEEDY!==""?tt.env.SC_DISABLE_SPEEDY!=="false"&&tt.env.SC_DISABLE_SPEEDY:tt.env.NODE_ENV!=="production"),gf=/invalid hook call/i,Po=new Set,Py=function(e,t){if(tt.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(ue,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@tanstack/react-query"),require("react-router-dom"),require("@ant-design/icons")):typeof define=="function"&&define.amd?define(["exports","react","antd","@tanstack/react-query","react-router-dom","@ant-design/icons"],Z):(ue=typeof globalThis<"u"?globalThis:ue||self,Z(ue["@prorobotech/openapi-k8s-toolkit"]={},ue.React,ue.antd,ue.reactQuery,ue.ReactRouterDOM,ue.antdIcons))})(this,function(ue,Z,z,wn,Qn,qt){"use strict";function sy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ef={exports:{}},Wt=ef.exports={},lr,fr;function mu(){throw new Error("setTimeout has not been defined")}function bu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?lr=setTimeout:lr=mu}catch{lr=mu}try{typeof clearTimeout=="function"?fr=clearTimeout:fr=bu}catch{fr=bu}})();function tf(e){if(lr===setTimeout)return setTimeout(e,0);if((lr===mu||!lr)&&setTimeout)return lr=setTimeout,setTimeout(e,0);try{return lr(e,0)}catch{try{return lr.call(null,e,0)}catch{return lr.call(this,e,0)}}}function oy(e){if(fr===clearTimeout)return clearTimeout(e);if((fr===bu||!fr)&&clearTimeout)return fr=clearTimeout,clearTimeout(e);try{return fr(e)}catch{try{return fr.call(null,e)}catch{return fr.call(this,e)}}}var Sr=[],Fi=!1,ii,Co=-1;function ay(){!Fi||!ii||(Fi=!1,ii.length?Sr=ii.concat(Sr):Co=-1,Sr.length&&nf())}function nf(){if(!Fi){var e=tf(ay);Fi=!0;for(var t=Sr.length;t;){for(ii=Sr,Sr=[];++Co<t;)ii&&ii[Co].run();Co=-1,t=Sr.length}ii=null,Fi=!1,oy(e)}}Wt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Sr.push(new rf(e,t)),Sr.length===1&&!Fi&&tf(nf)};function rf(e,t){this.fun=e,this.array=t}rf.prototype.run=function(){this.fun.apply(null,this.array)},Wt.title="browser",Wt.browser=!0,Wt.env={},Wt.argv=[],Wt.version="",Wt.versions={};function Ar(){}Wt.on=Ar,Wt.addListener=Ar,Wt.once=Ar,Wt.off=Ar,Wt.removeListener=Ar,Wt.removeAllListeners=Ar,Wt.emit=Ar,Wt.prependListener=Ar,Wt.prependOnceListener=Ar,Wt.listeners=function(e){return[]},Wt.binding=function(e){throw new Error("process.binding is not supported")},Wt.cwd=function(){return"/"},Wt.chdir=function(e){throw new Error("process.chdir is not supported")},Wt.umask=function(){return 0};var uy=ef.exports;const tt=sy(uy);var Sn=function(){return Sn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Sn.apply(this,arguments)};function Bi(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function cy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ly=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fy=cy(function(e){return ly.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft="-ms-",Cs="-moz-",mt="-webkit-",sf="comm",_o="rule",wu="decl",hy="@import",dy="@namespace",of="@keyframes",py="@layer",af=Math.abs,Su=String.fromCharCode,Au=Object.assign;function gy(e,t){return Zt(e,0)^45?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}function uf(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Je(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Zt(e,t){return e.charCodeAt(t)|0}function si(e,t,n){return e.slice(t,n)}function er(e){return e.length}function cf(e){return e.length}function _s(e,t){return t.push(e),e}function yy(e,t){return e.map(t).join("")}function lf(e,t){return e.filter(function(n){return!Er(n,t)})}var To=1,Di=1,ff=0,Rn=0,Qt=0,Pi="";function Oo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:To,column:Di,length:u,return:"",siblings:l}}function Nr(e,t){return Au(Oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ri(e){for(;e.root;)e=Nr(e.root,{children:[e]});_s(e,e.siblings)}function my(){return Qt}function by(){return Qt=Rn>0?Zt(Pi,--Rn):0,Di--,Qt===10&&(Di=1,To--),Qt}function tr(){return Qt=Rn<ff?Zt(Pi,Rn++):0,Di++,Qt===10&&(Di=1,To++),Qt}function jr(){return Zt(Pi,Rn)}function Io(){return Rn}function Fo(e,t){return si(Pi,e,t)}function ks(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 vy(e){return To=Di=1,ff=er(Pi=e),Rn=0,[]}function wy(e){return Pi="",e}function Eu(e){return uf(Fo(Rn-1,xu(e===91?e+2:e===40?e+1:e)))}function Sy(e){for(;(Qt=jr())&&Qt<33;)tr();return ks(e)>2||ks(Qt)>3?"":" "}function Ay(e,t){for(;--t&&tr()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return Fo(e,Io()+(t<6&&jr()==32&&tr()==32))}function xu(e){for(;tr();)switch(Qt){case e:return Rn;case 34:case 39:e!==34&&e!==39&&xu(Qt);break;case 40:e===41&&xu(e);break;case 92:tr();break}return Rn}function Ey(e,t){for(;tr()&&e+Qt!==57;)if(e+Qt===84&&jr()===47)break;return"/*"+Fo(t,Rn-1)+"*"+Su(e===47?e:tr())}function xy(e){for(;!ks(jr());)tr();return Fo(e,Rn)}function Cy(e){return wy(Bo("",null,null,null,[""],e=vy(e),0,[0],e))}function Bo(e,t,n,i,o,a,u,l,f){for(var d=0,g=0,p=u,w=0,k=0,S=0,A=1,v=1,R=1,N=0,C="",x=o,I=a,O=i,D=C;v;)switch(S=N,N=tr()){case 40:if(S!=108&&Zt(D,p-1)==58){ko(D+=Je(Eu(N),"&","&\f"),"&\f",af(d?l[d-1]:0))!=-1&&(R=-1);break}case 34:case 39:case 91:D+=Eu(N);break;case 9:case 10:case 13:case 32:D+=Sy(S);break;case 92:D+=Ay(Io()-1,7);continue;case 47:switch(jr()){case 42:case 47:_s(_y(Ey(tr(),Io()),t,n,f),f),(ks(S||1)==5||ks(jr()||1)==5)&&er(D)&&si(D,-1,void 0)!==" "&&(D+=" ");break;default:D+="/"}break;case 123*A:l[d++]=er(D)*R;case 125*A:case 59:case 0:switch(N){case 0:case 125:v=0;case 59+g:R==-1&&(D=Je(D,/\f/g,"")),k>0&&(er(D)-p||A===0&&S===47)&&_s(k>32?df(D+";",i,n,p-1,f):df(Je(D," ","")+";",i,n,p-2,f),f);break;case 59:D+=";";default:if(_s(O=hf(D,t,n,d,g,o,l,C,x=[],I=[],p,a),a),N===123)if(g===0)Bo(D,t,O,O,x,a,p,l,I);else{switch(w){case 99:if(Zt(D,3)===110)break;case 108:if(Zt(D,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Bo(e,O,O,i&&_s(hf(e,O,O,0,0,o,l,C,o,x=[],p,I),I),o,I,p,l,i?x:I):Bo(D,O,O,O,[""],I,0,l,I)}}d=g=k=0,A=R=1,C=D="",p=u;break;case 58:p=1+er(D),k=S;default:if(A<1){if(N==123)--A;else if(N==125&&A++==0&&by()==125)continue}switch(D+=Su(N),N*A){case 38:R=g>0?1:(D+="\f",-1);break;case 44:l[d++]=(er(D)-1)*R,R=1;break;case 64:jr()===45&&(D+=Eu(tr())),w=jr(),g=p=er(C=D+=xy(Io())),N++;break;case 45:S===45&&er(D)==2&&(A=0)}}return a}function hf(e,t,n,i,o,a,u,l,f,d,g,p){for(var w=o-1,k=o===0?a:[""],S=cf(k),A=0,v=0,R=0;A<i;++A)for(var N=0,C=si(e,w+1,w=af(v=u[A])),x=e;N<S;++N)(x=uf(v>0?k[N]+" "+C:Je(C,/&\f/g,k[N])))&&(f[R++]=x);return Oo(e,t,n,o===0?_o:l,f,d,g,p)}function _y(e,t,n,i){return Oo(e,t,n,sf,Su(my()),si(e,2,-2),0,i)}function df(e,t,n,i,o){return Oo(e,t,n,wu,si(e,0,i),si(e,i+1,-1),i,o)}function pf(e,t,n){switch(gy(e,t)){case 5103:return mt+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return mt+e+e;case 4855:return mt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Cs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+Cs+e+Ft+e+e;case 5936:switch(Zt(e,t+11)){case 114:return mt+e+Ft+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+Ft+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+Ft+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return mt+e+Ft+e+e;case 6165:return mt+e+Ft+"flex-"+e+e;case 5187:return mt+e+Je(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+Ft+"flex-$1$2")+e;case 5443:return mt+e+Ft+"flex-item-"+Je(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":Ft+"grid-row-"+Je(e,/flex-|-self/g,""))+e;case 4675:return mt+e+Ft+"flex-line-pack"+Je(e,/align-content|flex-|-self/g,"")+e;case 5548:return mt+e+Ft+Je(e,"shrink","negative")+e;case 5292:return mt+e+Ft+Je(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+Je(e,"-grow","")+mt+e+Ft+Je(e,"grow","positive")+e;case 4554:return mt+Je(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return Je(Je(Je(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return Je(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return Je(Je(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+Ft+"flex-pack:$3"),/space-between/,"justify")+mt+e+e;case 4200:if(!Er(e,/flex-|baseline/))return Ft+"grid-column-align"+si(e,t)+e;break;case 2592:case 3360:return Ft+Je(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~ko(e+(n=n[t].value),"span",0)?e:Ft+Je(e,"-start","")+e+Ft+"grid-row-span:"+(~ko(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":Ft+Je(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:Ft+Je(Je(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Je(e,/(.+)-inline(.+)/,mt+"$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(er(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+Cs+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ko(e,"stretch",0)?pf(Je(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Je(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,d){return Ft+o+":"+a+d+(u?Ft+o+"-span:"+(l?f:+f-+a)+d:"")+e});case 4949:if(Zt(e,t+6)===121)return Je(e,":",":"+mt)+e;break;case 6444:switch(Zt(e,Zt(e,14)===45?18:11)){case 120:return Je(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+mt+(Zt(e,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+Ft+"$2box$3")+e;case 100:return Je(e,":",":"+Ft)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Je(e,"scroll-","scroll-snap-")+e}return e}function Do(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function ky(e,t,n,i){switch(e.type){case py:if(e.children.length)break;case hy:case dy:case wu:return e.return=e.return||e.value;case sf:return"";case of:return e.return=e.value+"{"+Do(e.children,i)+"}";case _o:if(!er(e.value=e.props.join(",")))return""}return er(n=Do(e.children,i))?e.return=e.value+"{"+n+"}":""}function Ty(e){var t=cf(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function Oy(e){return function(t){t.root||(t=t.return)&&e(t)}}function Iy(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case wu:e.return=pf(e.value,e.length,n);return;case of:return Do([Nr(e,{value:Je(e.value,"@","@"+mt)})],i);case _o:if(e.length)return yy(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ri(Nr(e,{props:[Je(o,/:(read-\w+)/,":"+Cs+"$1")]})),Ri(Nr(e,{props:[o]})),Au(e,{props:lf(n,i)});break;case"::placeholder":Ri(Nr(e,{props:[Je(o,/:(plac\w+)/,":"+mt+"input-$1")]})),Ri(Nr(e,{props:[Je(o,/:(plac\w+)/,":"+Cs+"$1")]})),Ri(Nr(e,{props:[Je(o,/:(plac\w+)/,Ft+"input-$1")]})),Ri(Nr(e,{props:[o]})),Au(e,{props:lf(n,i)});break}return""})}}var Fy={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},oi=typeof tt<"u"&&tt.env!==void 0&&(tt.env.REACT_APP_SC_ATTR||tt.env.SC_ATTR)||"data-styled",Cu=typeof window<"u"&&"HTMLElement"in window,By=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof tt<"u"&&tt.env!==void 0&&tt.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&tt.env.REACT_APP_SC_DISABLE_SPEEDY!==""?tt.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&tt.env.REACT_APP_SC_DISABLE_SPEEDY:typeof tt<"u"&&tt.env!==void 0&&tt.env.SC_DISABLE_SPEEDY!==void 0&&tt.env.SC_DISABLE_SPEEDY!==""?tt.env.SC_DISABLE_SPEEDY!=="false"&&tt.env.SC_DISABLE_SPEEDY:tt.env.NODE_ENV!=="production"),gf=/invalid hook call/i,Po=new Set,Dy=function(e,t){if(tt.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
2
2
  `)+`You may see this warning because you've called styled inside another component.
3
- To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];gf.test(u)?(a=!1,Po.delete(i)):o.apply(void 0,Bi([u],l,!1))},Z.useRef(),a&&!Po.has(i)&&(console.warn(i),Po.add(i))}catch(u){gf.test(u.message)&&Po.delete(i)}finally{console.error=o}}},Ro=Object.freeze([]),Ni=Object.freeze({});function Ry(e,t,n){return n===void 0&&(n=Ni),e.theme!==n.theme&&e.theme||t||n.theme}var _u=new Set(["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","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","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ny=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ly=/(^-|-$)/g;function yf(e){return e.replace(Ny,"-").replace(Ly,"")}var jy=/(a)(d)/gi,mf=function(e){return String.fromCharCode(e+(e>25?39:97))};function ku(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=mf(t%52)+n;return(mf(t%52)+n).replace(jy,"$1-$2")}var Tu,ai=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},bf=function(e){return ai(5381,e)};function $y(e){return ku(bf(e)>>>0)}function vf(e){return tt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ou(e){return typeof e=="string"&&(tt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var wf=typeof Symbol=="function"&&Symbol.for,Sf=wf?Symbol.for("react.memo"):60115,My=wf?Symbol.for("react.forward_ref"):60112,Uy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Af={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qy=((Tu={})[My]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tu[Sf]=Af,Tu);function Ef(e){return("type"in(t=e)&&t.type.$$typeof)===Sf?Af:"$$typeof"in e?qy[e.$$typeof]:Uy;var t}var Wy=Object.defineProperty,Ky=Object.getOwnPropertyNames,xf=Object.getOwnPropertySymbols,Hy=Object.getOwnPropertyDescriptor,zy=Object.getPrototypeOf,Cf=Object.prototype;function _f(e,t,n){if(typeof t!="string"){if(Cf){var i=zy(t);i&&i!==Cf&&_f(e,i,n)}var o=Ky(t);xf&&(o=o.concat(xf(t)));for(var a=Ef(e),u=Ef(t),l=0;l<o.length;++l){var f=o[l];if(!(f in Vy||n&&n[f]||u&&f in u||a&&f in a)){var d=Hy(t,f);try{Wy(e,f,d)}catch{}}}}return e}function Li(e){return typeof e=="function"}function Iu(e){return typeof e=="object"&&"styledComponentId"in e}function ui(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function kf(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function ji(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Fu(e,t,n){if(n===void 0&&(n=!1),!n&&!ji(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Fu(e[i],t[i]);else if(ji(t))for(var i in t)e[i]=Fu(e[i],t[i]);return e}function Bu(e,t){Object.defineProperty(e,"toString",{value:t})}var Gy=tt.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
3
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];gf.test(u)?(a=!1,Po.delete(i)):o.apply(void 0,Bi([u],l,!1))},Z.useRef(),a&&!Po.has(i)&&(console.warn(i),Po.add(i))}catch(u){gf.test(u.message)&&Po.delete(i)}finally{console.error=o}}},Ro=Object.freeze([]),Li=Object.freeze({});function Py(e,t,n){return n===void 0&&(n=Li),e.theme!==n.theme&&e.theme||t||n.theme}var _u=new Set(["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","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","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ry=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ly=/(^-|-$)/g;function yf(e){return e.replace(Ry,"-").replace(Ly,"")}var Ny=/(a)(d)/gi,mf=function(e){return String.fromCharCode(e+(e>25?39:97))};function ku(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=mf(t%52)+n;return(mf(t%52)+n).replace(Ny,"$1-$2")}var Tu,ai=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},bf=function(e){return ai(5381,e)};function jy(e){return ku(bf(e)>>>0)}function vf(e){return tt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ou(e){return typeof e=="string"&&(tt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var wf=typeof Symbol=="function"&&Symbol.for,Sf=wf?Symbol.for("react.memo"):60115,$y=wf?Symbol.for("react.forward_ref"):60112,My={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Uy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Af={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vy=((Tu={})[$y]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tu[Sf]=Af,Tu);function Ef(e){return("type"in(t=e)&&t.type.$$typeof)===Sf?Af:"$$typeof"in e?Vy[e.$$typeof]:My;var t}var qy=Object.defineProperty,Wy=Object.getOwnPropertyNames,xf=Object.getOwnPropertySymbols,Ky=Object.getOwnPropertyDescriptor,Hy=Object.getPrototypeOf,Cf=Object.prototype;function _f(e,t,n){if(typeof t!="string"){if(Cf){var i=Hy(t);i&&i!==Cf&&_f(e,i,n)}var o=Wy(t);xf&&(o=o.concat(xf(t)));for(var a=Ef(e),u=Ef(t),l=0;l<o.length;++l){var f=o[l];if(!(f in Uy||n&&n[f]||u&&f in u||a&&f in a)){var d=Ky(t,f);try{qy(e,f,d)}catch{}}}}return e}function Ni(e){return typeof e=="function"}function Iu(e){return typeof e=="object"&&"styledComponentId"in e}function ui(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function kf(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function ji(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Fu(e,t,n){if(n===void 0&&(n=!1),!n&&!ji(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Fu(e[i],t[i]);else if(ji(t))for(var i in t)e[i]=Fu(e[i],t[i]);return e}function Bu(e,t){Object.defineProperty(e,"toString",{value:t})}var zy=tt.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
4
4
 
5
5
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
6
6
 
@@ -41,10 +41,10 @@ as for instance in your render method then you may be running into this limitati
41
41
 
42
42
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
43
43
  Has styled-components' style tag been unmounted or altered by another script?
44
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Jy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function $i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tt.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Jy.apply(void 0,Bi([Gy[e]],t,!1)).trim())}var Yy=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw $i(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
45
- `);return n},e}(),No=new Map,Lo=new Map,Du=1,jo=function(e){if(No.has(e))return No.get(e);for(;Lo.has(Du);)Du++;var t=Du++;if(tt.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw $i(16,"".concat(t));return No.set(e,t),Lo.set(t,e),t},Xy=function(e,t){No.set(e,t),Lo.set(t,e)},Qy="style[".concat(oi,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),Zy=new RegExp("^".concat(oi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),em=function(e,t,n){for(var i,o=n.split(","),a=0,u=o.length;a<u;a++)(i=o[a])&&e.registerName(t,i)},tm=function(e,t){for(var n,i=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
- `),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(Zy);if(f){var d=0|parseInt(f[1],10),g=f[2];d!==0&&(Xy(g,d),em(e,g,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function nm(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Tf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(oi,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(oi,"active"),i.setAttribute("data-styled-version","6.0.7");var u=nm();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},rm=function(){function e(t){this.element=Tf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw $i(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),im=function(){function e(t){this.element=Tf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),sm=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Of=Cu,om={isServer:!Cu,useCSSOMInjection:!Dy},If=function(){function e(t,n,i){t===void 0&&(t=Ni),n===void 0&&(n={});var o=this;this.options=Sn(Sn({},om),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Cu&&Of&&(Of=!1,function(a){for(var u=document.querySelectorAll(Qy),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(oi)!=="active"&&(tm(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Bu(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",d=function(p){var w=function(R){return Lo.get(R)}(p);if(w===void 0)return"continue";var k=a.names.get(w),S=u.getGroup(p);if(k===void 0||S.length===0)return"continue";var A="".concat(oi,".g").concat(p,'[id="').concat(w,'"]'),v="";k!==void 0&&k.forEach(function(R){R.length>0&&(v+="".concat(R,","))}),f+="".concat(S).concat(A,'{content:"').concat(v,'"}').concat(`/*!sc*/
47
- `)},g=0;g<l;g++)d(g);return f}(o)})}return e.registerId=function(t){return jo(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Sn(Sn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new sm(o):i?new rm(o):new im(o)}(this.options),new Yy(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(jo(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(jo(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(jo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),am=/&/g,um=/^\s*\/\/.*$/gm;function Ff(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ff(n.children,t)),n})}function cm(e){var t,n,i,o=Ni,a=o.options,u=a===void 0?Ni:a,l=o.plugins,f=l===void 0?Ro:l,d=function(w,k,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):w},g=f.slice();g.push(function(w){w.type===_o&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(am,n).replace(i,d))}),u.prefix&&g.push(Fy),g.push(Ty);var p=function(w,k,S,A){k===void 0&&(k=""),S===void 0&&(S=""),A===void 0&&(A="&"),t=A,n=k,i=new RegExp("\\".concat(n,"\\b"),"g");var v=w.replace(um,""),R=_y(S||k?"".concat(S," ").concat(k," { ").concat(v," }"):v);u.namespace&&(R=Ff(R,u.namespace));var L=[];return Do(R,Oy(g.concat(Iy(function(C){return L.push(C)})))),L};return p.hash=f.length?f.reduce(function(w,k){return k.name||$i(15),ai(w,k.name)},5381).toString():"",p}var lm=new If,Pu=cm(),Bf=Z.createContext({shouldForwardProp:void 0,styleSheet:lm,stylis:Pu});Bf.Consumer,Z.createContext(void 0);function Df(){return Z.useContext(Bf)}var Pf=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Pu);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Bu(this,function(){throw $i(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pu),this.name+t.hash},e}(),fm=function(e){return e>="A"&&e<="Z"};function Rf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;fm(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Nf=function(e){return e==null||e===!1||e===""},Lf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Nf(a)&&(Array.isArray(a)&&a.isCss||Li(a)?i.push("".concat(Rf(o),":"),a,";"):ji(a)?i.push.apply(i,Bi(Bi(["".concat(o," {")],Lf(a),!1),["}"],!1)):i.push("".concat(Rf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in By||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function ci(e,t,n,i){if(Nf(e))return[];if(Iu(e))return[".".concat(e.styledComponentId)];if(Li(e)){if(!Li(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return tt.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Pf||ji(o)||o===null||console.error("".concat(vf(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ci(o,t,n,i)}var a;return e instanceof Pf?n?(e.inject(n,i),[e.getName(i)]):[e]:ji(e)?Lf(e):Array.isArray(e)?Array.prototype.concat.apply(Ro,e.map(function(u){return ci(u,t,n,i)})):[e.toString()]}function hm(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Li(n)&&!Iu(n))return!1}return!0}var dm=bf("6.0.7"),pm=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=tt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&hm(t),this.componentId=n,this.baseHash=ai(dm,n),this.baseStyle=i,If.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ui(o,this.staticRulesId);else{var a=kf(ci(this.rules,t,n,i)),u=ku(ai(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=ui(o,u),this.staticRulesId=u}else{for(var f=ai(this.baseHash,i.hash),d="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")d+=p,tt.env.NODE_ENV!=="production"&&(f=ai(f,p));else if(p){var w=kf(ci(p,t,n,i));f=ai(f,w),d+=w}}if(d){var k=ku(f>>>0);n.hasNameForId(this.componentId,k)||n.insertRules(this.componentId,k,i(d,".".concat(k),void 0,this.componentId)),o=ui(o,k)}}return o},e}(),jf=Z.createContext(void 0);jf.Consumer;var Ru={},$f=new Set;function gm(e,t,n){var i=Iu(e),o=e,a=!Ou(e),u=t.attrs,l=u===void 0?Ro:u,f=t.componentId,d=f===void 0?function(x,I){var O=typeof x!="string"?"sc":yf(x);Ru[O]=(Ru[O]||0)+1;var D="".concat(O,"-").concat($y("6.0.7"+O+Ru[O]));return I?"".concat(I,"-").concat(D):D}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(x){return Ou(x)?"styled.".concat(x):"Styled(".concat(vf(x),")")}(e):g,w=t.displayName&&t.componentId?"".concat(yf(t.displayName),"-").concat(t.componentId):t.componentId||d,k=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,S=t.shouldForwardProp;if(i&&o.shouldForwardProp){var A=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;S=function(x,I){return A(x,I)&&v(x,I)}}else S=A}var R=new pm(n,w,i?o.componentStyle:void 0);function L(x,I){return function(O,D,W){var Q=O.attrs,ce=O.componentStyle,fe=O.defaultProps,ge=O.foldedComponentIds,ye=O.styledComponentId,pe=O.target,he=Z.useContext(jf),Pe=Df(),Fe=O.shouldForwardProp||Pe.shouldForwardProp;tt.env.NODE_ENV!=="production"&&Z.useDebugValue(ye);var _e=function(X,oe,Ce){for(var We,xe=Sn(Sn({},oe),{className:void 0,theme:Ce}),Be=0;Be<X.length;Be+=1){var $e=Li(We=X[Be])?We(xe):We;for(var Ne in $e)xe[Ne]=Ne==="className"?ui(xe[Ne],$e[Ne]):Ne==="style"?Sn(Sn({},xe[Ne]),$e[Ne]):$e[Ne]}return oe.className&&(xe.className=ui(xe.className,oe.className)),xe}(Q,D,Ry(D,he,fe)||Ni),qe=_e.as||pe,Ee={};for(var we in _e)_e[we]===void 0||we[0]==="$"||we==="as"||we==="theme"||(we==="forwardedAs"?Ee.as=_e.forwardedAs:Fe&&!Fe(we,qe)||(Ee[we]=_e[we],Fe||tt.env.NODE_ENV!=="development"||hy(we)||$f.has(we)||!_u.has(qe)||($f.add(we),console.warn('styled-components: it looks like an unknown prop "'.concat(we,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var nt=function(X,oe){var Ce=Df(),We=X.generateAndInjectStyles(oe,Ce.styleSheet,Ce.stylis);return tt.env.NODE_ENV!=="production"&&Z.useDebugValue(We),We}(ce,_e);tt.env.NODE_ENV!=="production"&&O.warnTooManyClasses&&O.warnTooManyClasses(nt);var J=ui(ge,ye);return nt&&(J+=" "+nt),_e.className&&(J+=" "+_e.className),Ee[Ou(qe)&&!_u.has(qe)?"class":"className"]=J,Ee.ref=W,Z.createElement(qe,Ee)}(C,x,I)}tt.env.NODE_ENV!=="production"&&(L.displayName=p);var C=Z.forwardRef(L);return C.attrs=k,C.componentStyle=R,C.shouldForwardProp=S,tt.env.NODE_ENV!=="production"&&(C.displayName=p),C.foldedComponentIds=i?ui(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=w,C.target=i?o.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=i?function(I){for(var O=[],D=1;D<arguments.length;D++)O[D-1]=arguments[D];for(var W=0,Q=O;W<Q.length;W++)Fu(I,Q[W],!0);return I}({},o.defaultProps,x):x}}),tt.env.NODE_ENV!=="production"&&(Py(p,w),C.warnTooManyClasses=function(x,I){var O={},D=!1;return function(W){if(!D&&(O[W]=!0,Object.keys(O).length>=200)){var Q=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(Q,`.
44
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Gy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function $i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tt.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Gy.apply(void 0,Bi([zy[e]],t,!1)).trim())}var Jy=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw $i(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
45
+ `);return n},e}(),Lo=new Map,No=new Map,Du=1,jo=function(e){if(Lo.has(e))return Lo.get(e);for(;No.has(Du);)Du++;var t=Du++;if(tt.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw $i(16,"".concat(t));return Lo.set(e,t),No.set(t,e),t},Yy=function(e,t){Lo.set(e,t),No.set(t,e)},Xy="style[".concat(oi,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),Qy=new RegExp("^".concat(oi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Zy=function(e,t,n){for(var i,o=n.split(","),a=0,u=o.length;a<u;a++)(i=o[a])&&e.registerName(t,i)},em=function(e,t){for(var n,i=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
+ `),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(Qy);if(f){var d=0|parseInt(f[1],10),g=f[2];d!==0&&(Yy(g,d),Zy(e,g,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function tm(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Tf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(oi,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(oi,"active"),i.setAttribute("data-styled-version","6.0.7");var u=tm();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},nm=function(){function e(t){this.element=Tf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw $i(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),rm=function(){function e(t){this.element=Tf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),im=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Of=Cu,sm={isServer:!Cu,useCSSOMInjection:!By},If=function(){function e(t,n,i){t===void 0&&(t=Li),n===void 0&&(n={});var o=this;this.options=Sn(Sn({},sm),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Cu&&Of&&(Of=!1,function(a){for(var u=document.querySelectorAll(Xy),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(oi)!=="active"&&(em(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Bu(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",d=function(p){var w=function(R){return No.get(R)}(p);if(w===void 0)return"continue";var k=a.names.get(w),S=u.getGroup(p);if(k===void 0||S.length===0)return"continue";var A="".concat(oi,".g").concat(p,'[id="').concat(w,'"]'),v="";k!==void 0&&k.forEach(function(R){R.length>0&&(v+="".concat(R,","))}),f+="".concat(S).concat(A,'{content:"').concat(v,'"}').concat(`/*!sc*/
47
+ `)},g=0;g<l;g++)d(g);return f}(o)})}return e.registerId=function(t){return jo(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Sn(Sn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new im(o):i?new nm(o):new rm(o)}(this.options),new Jy(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(jo(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(jo(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(jo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),om=/&/g,am=/^\s*\/\/.*$/gm;function Ff(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ff(n.children,t)),n})}function um(e){var t,n,i,o=Li,a=o.options,u=a===void 0?Li:a,l=o.plugins,f=l===void 0?Ro:l,d=function(w,k,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):w},g=f.slice();g.push(function(w){w.type===_o&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(om,n).replace(i,d))}),u.prefix&&g.push(Iy),g.push(ky);var p=function(w,k,S,A){k===void 0&&(k=""),S===void 0&&(S=""),A===void 0&&(A="&"),t=A,n=k,i=new RegExp("\\".concat(n,"\\b"),"g");var v=w.replace(am,""),R=Cy(S||k?"".concat(S," ").concat(k," { ").concat(v," }"):v);u.namespace&&(R=Ff(R,u.namespace));var N=[];return Do(R,Ty(g.concat(Oy(function(C){return N.push(C)})))),N};return p.hash=f.length?f.reduce(function(w,k){return k.name||$i(15),ai(w,k.name)},5381).toString():"",p}var cm=new If,Pu=um(),Bf=Z.createContext({shouldForwardProp:void 0,styleSheet:cm,stylis:Pu});Bf.Consumer,Z.createContext(void 0);function Df(){return Z.useContext(Bf)}var Pf=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Pu);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Bu(this,function(){throw $i(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pu),this.name+t.hash},e}(),lm=function(e){return e>="A"&&e<="Z"};function Rf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;lm(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Lf=function(e){return e==null||e===!1||e===""},Nf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Lf(a)&&(Array.isArray(a)&&a.isCss||Ni(a)?i.push("".concat(Rf(o),":"),a,";"):ji(a)?i.push.apply(i,Bi(Bi(["".concat(o," {")],Nf(a),!1),["}"],!1)):i.push("".concat(Rf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Fy||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function ci(e,t,n,i){if(Lf(e))return[];if(Iu(e))return[".".concat(e.styledComponentId)];if(Ni(e)){if(!Ni(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return tt.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Pf||ji(o)||o===null||console.error("".concat(vf(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ci(o,t,n,i)}var a;return e instanceof Pf?n?(e.inject(n,i),[e.getName(i)]):[e]:ji(e)?Nf(e):Array.isArray(e)?Array.prototype.concat.apply(Ro,e.map(function(u){return ci(u,t,n,i)})):[e.toString()]}function fm(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ni(n)&&!Iu(n))return!1}return!0}var hm=bf("6.0.7"),dm=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=tt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&fm(t),this.componentId=n,this.baseHash=ai(hm,n),this.baseStyle=i,If.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ui(o,this.staticRulesId);else{var a=kf(ci(this.rules,t,n,i)),u=ku(ai(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=ui(o,u),this.staticRulesId=u}else{for(var f=ai(this.baseHash,i.hash),d="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")d+=p,tt.env.NODE_ENV!=="production"&&(f=ai(f,p));else if(p){var w=kf(ci(p,t,n,i));f=ai(f,w),d+=w}}if(d){var k=ku(f>>>0);n.hasNameForId(this.componentId,k)||n.insertRules(this.componentId,k,i(d,".".concat(k),void 0,this.componentId)),o=ui(o,k)}}return o},e}(),jf=Z.createContext(void 0);jf.Consumer;var Ru={},$f=new Set;function pm(e,t,n){var i=Iu(e),o=e,a=!Ou(e),u=t.attrs,l=u===void 0?Ro:u,f=t.componentId,d=f===void 0?function(x,I){var O=typeof x!="string"?"sc":yf(x);Ru[O]=(Ru[O]||0)+1;var D="".concat(O,"-").concat(jy("6.0.7"+O+Ru[O]));return I?"".concat(I,"-").concat(D):D}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(x){return Ou(x)?"styled.".concat(x):"Styled(".concat(vf(x),")")}(e):g,w=t.displayName&&t.componentId?"".concat(yf(t.displayName),"-").concat(t.componentId):t.componentId||d,k=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,S=t.shouldForwardProp;if(i&&o.shouldForwardProp){var A=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;S=function(x,I){return A(x,I)&&v(x,I)}}else S=A}var R=new dm(n,w,i?o.componentStyle:void 0);function N(x,I){return function(O,D,W){var Q=O.attrs,ce=O.componentStyle,fe=O.defaultProps,ge=O.foldedComponentIds,ye=O.styledComponentId,pe=O.target,he=Z.useContext(jf),Pe=Df(),Fe=O.shouldForwardProp||Pe.shouldForwardProp;tt.env.NODE_ENV!=="production"&&Z.useDebugValue(ye);var _e=function(X,oe,Ce){for(var We,xe=Sn(Sn({},oe),{className:void 0,theme:Ce}),Be=0;Be<X.length;Be+=1){var $e=Ni(We=X[Be])?We(xe):We;for(var Le in $e)xe[Le]=Le==="className"?ui(xe[Le],$e[Le]):Le==="style"?Sn(Sn({},xe[Le]),$e[Le]):$e[Le]}return oe.className&&(xe.className=ui(xe.className,oe.className)),xe}(Q,D,Py(D,he,fe)||Li),qe=_e.as||pe,Ee={};for(var we in _e)_e[we]===void 0||we[0]==="$"||we==="as"||we==="theme"||(we==="forwardedAs"?Ee.as=_e.forwardedAs:Fe&&!Fe(we,qe)||(Ee[we]=_e[we],Fe||tt.env.NODE_ENV!=="development"||fy(we)||$f.has(we)||!_u.has(qe)||($f.add(we),console.warn('styled-components: it looks like an unknown prop "'.concat(we,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var nt=function(X,oe){var Ce=Df(),We=X.generateAndInjectStyles(oe,Ce.styleSheet,Ce.stylis);return tt.env.NODE_ENV!=="production"&&Z.useDebugValue(We),We}(ce,_e);tt.env.NODE_ENV!=="production"&&O.warnTooManyClasses&&O.warnTooManyClasses(nt);var J=ui(ge,ye);return nt&&(J+=" "+nt),_e.className&&(J+=" "+_e.className),Ee[Ou(qe)&&!_u.has(qe)?"class":"className"]=J,Ee.ref=W,Z.createElement(qe,Ee)}(C,x,I)}tt.env.NODE_ENV!=="production"&&(N.displayName=p);var C=Z.forwardRef(N);return C.attrs=k,C.componentStyle=R,C.shouldForwardProp=S,tt.env.NODE_ENV!=="production"&&(C.displayName=p),C.foldedComponentIds=i?ui(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=w,C.target=i?o.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=i?function(I){for(var O=[],D=1;D<arguments.length;D++)O[D-1]=arguments[D];for(var W=0,Q=O;W<Q.length;W++)Fu(I,Q[W],!0);return I}({},o.defaultProps,x):x}}),tt.env.NODE_ENV!=="production"&&(Dy(p,w),C.warnTooManyClasses=function(x,I){var O={},D=!1;return function(W){if(!D&&(O[W]=!0,Object.keys(O).length>=200)){var Q=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(Q,`.
48
48
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
49
  Example:
50
50
  const Component = styled.div.attrs(props => ({
@@ -53,18 +53,18 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),D=!0,O={}}}}(p,w)),Bu(C,function(){return".".concat(C.styledComponentId)}),a&&_f(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function Mf(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Uf=function(e){return Object.assign(e,{isCss:!0})};function ym(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Li(e)||ji(e)){var i=e;return Uf(ci(Mf(Ro,Bi([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?ci(o):Uf(ci(Mf(o,t)))}function Nu(e,t,n){if(n===void 0&&(n=Ni),!t)throw $i(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,ym.apply(void 0,Bi([o],a,!1)))};return i.attrs=function(o){return Nu(e,t,Sn(Sn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Nu(e,t,Sn(Sn({},n),o))},i}var Vf=function(e){return Nu(gm,e)},Qe=Vf;_u.forEach(function(e){Qe[e]=Vf(e)}),tt.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
+ <Component />`),D=!0,O={}}}}(p,w)),Bu(C,function(){return".".concat(C.styledComponentId)}),a&&_f(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function Mf(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Uf=function(e){return Object.assign(e,{isCss:!0})};function gm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ni(e)||ji(e)){var i=e;return Uf(ci(Mf(Ro,Bi([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?ci(o):Uf(ci(Mf(o,t)))}function Lu(e,t,n){if(n===void 0&&(n=Li),!t)throw $i(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,gm.apply(void 0,Bi([o],a,!1)))};return i.attrs=function(o){return Lu(e,t,Sn(Sn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Lu(e,t,Sn(Sn({},n),o))},i}var Vf=function(e){return Lu(pm,e)},Qe=Vf;_u.forEach(function(e){Qe[e]=Vf(e)}),tt.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
57
  Perhaps you're looking to import 'styled-components/native'?
58
58
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);var $o="__sc-".concat(oi,"__");tt.env.NODE_ENV!=="production"&&tt.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[$o]||(window[$o]=0),window[$o]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Nn=Qe.div`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Ln=Qe.div`
61
61
  height: ${({$space:e,$spaceMob:t,$samespace:n})=>t||(e&&n?e:24)}px;
62
62
  width: 100%;
63
63
 
64
64
  @media (min-width: 1024px) {
65
65
  height: ${({$space:e})=>e??"48"}px;
66
66
  }
67
- `;var Lu={exports:{}},Ts={};/**
67
+ `;var Nu={exports:{}},Ts={};/**
68
68
  * @license React
69
69
  * react-jsx-runtime.production.min.js
70
70
  *
@@ -72,33 +72,33 @@ See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Nn=Qe.div`
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var qf;function mm(){if(qf)return Ts;qf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var g,p={},w=null,k=null;d!==void 0&&(w=""+d),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(k=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:w,ref:k,props:p,_owner:o.current}}return Ts.Fragment=n,Ts.jsx=u,Ts.jsxs=u,Ts}var Os={},Wf;function bm(){return Wf||(Wf=1,tt.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),S=Symbol.iterator,A="@@iterator";function v(M){if(M===null||typeof M!="object")return null;var le=S&&M[S]||M[A];return typeof le=="function"?le:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(M){{for(var le=arguments.length,be=new Array(le>1?le-1:0),Ie=1;Ie<le;Ie++)be[Ie-1]=arguments[Ie];C("error",M,be)}}function C(M,le,be){{var Ie=R.ReactDebugCurrentFrame,ft=Ie.getStackAddendum();ft!==""&&(le+="%s",be=be.concat([ft]));var ht=be.map(function(rt){return String(rt)});ht.unshift("Warning: "+le),Function.prototype.apply.call(console[M],console,ht)}}var x=!1,I=!1,O=!1,D=!1,W=!1,Q;Q=Symbol.for("react.module.reference");function ce(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===d||M===g||D||M===k||x||I||O||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===Q||M.getModuleId!==void 0))}function fe(M,le,be){var Ie=M.displayName;if(Ie)return Ie;var ft=le.displayName||le.name||"";return ft!==""?be+"("+ft+")":be}function ge(M){return M.displayName||"Context"}function ye(M){if(M==null)return null;if(typeof M.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var le=M;return ge(le)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return fe(M,M.render,"ForwardRef");case p:var Ie=M.displayName||null;return Ie!==null?Ie:ye(M.type)||"Memo";case w:{var ft=M,ht=ft._payload,rt=ft._init;try{return ye(rt(ht))}catch{return null}}}return null}var pe=Object.assign,he=0,Pe,Fe,_e,qe,Ee,we,nt;function J(){}J.__reactDisabledLog=!0;function X(){{if(he===0){Pe=console.log,Fe=console.info,_e=console.warn,qe=console.error,Ee=console.group,we=console.groupCollapsed,nt=console.groupEnd;var M={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}he++}}function oe(){{if(he--,he===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pe({},M,{value:Pe}),info:pe({},M,{value:Fe}),warn:pe({},M,{value:_e}),error:pe({},M,{value:qe}),group:pe({},M,{value:Ee}),groupCollapsed:pe({},M,{value:we}),groupEnd:pe({},M,{value:nt})})}he<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=R.ReactCurrentDispatcher,We;function xe(M,le,be){{if(We===void 0)try{throw Error()}catch(ft){var Ie=ft.stack.trim().match(/\n( *(at )?)/);We=Ie&&Ie[1]||""}return`
76
- `+We+M}}var Be=!1,$e;{var Ne=typeof WeakMap=="function"?WeakMap:Map;$e=new Ne}function Tt(M,le){if(!M||Be)return"";{var be=$e.get(M);if(be!==void 0)return be}var Ie;Be=!0;var ft=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ht;ht=Ce.current,Ce.current=null,X();try{if(le){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Gt){Ie=Gt}Reflect.construct(M,[],rt)}else{try{rt.call()}catch(Gt){Ie=Gt}M.call(rt.prototype)}}else{try{throw Error()}catch(Gt){Ie=Gt}M()}}catch(Gt){if(Gt&&Ie&&typeof Gt.stack=="string"){for(var Ye=Gt.stack.split(`
75
+ */var qf;function ym(){if(qf)return Ts;qf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var g,p={},w=null,k=null;d!==void 0&&(w=""+d),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(k=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:w,ref:k,props:p,_owner:o.current}}return Ts.Fragment=n,Ts.jsx=u,Ts.jsxs=u,Ts}var Os={},Wf;function mm(){return Wf||(Wf=1,tt.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),S=Symbol.iterator,A="@@iterator";function v(M){if(M===null||typeof M!="object")return null;var le=S&&M[S]||M[A];return typeof le=="function"?le:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(M){{for(var le=arguments.length,be=new Array(le>1?le-1:0),Ie=1;Ie<le;Ie++)be[Ie-1]=arguments[Ie];C("error",M,be)}}function C(M,le,be){{var Ie=R.ReactDebugCurrentFrame,ft=Ie.getStackAddendum();ft!==""&&(le+="%s",be=be.concat([ft]));var ht=be.map(function(rt){return String(rt)});ht.unshift("Warning: "+le),Function.prototype.apply.call(console[M],console,ht)}}var x=!1,I=!1,O=!1,D=!1,W=!1,Q;Q=Symbol.for("react.module.reference");function ce(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===d||M===g||D||M===k||x||I||O||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===Q||M.getModuleId!==void 0))}function fe(M,le,be){var Ie=M.displayName;if(Ie)return Ie;var ft=le.displayName||le.name||"";return ft!==""?be+"("+ft+")":be}function ge(M){return M.displayName||"Context"}function ye(M){if(M==null)return null;if(typeof M.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var le=M;return ge(le)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return fe(M,M.render,"ForwardRef");case p:var Ie=M.displayName||null;return Ie!==null?Ie:ye(M.type)||"Memo";case w:{var ft=M,ht=ft._payload,rt=ft._init;try{return ye(rt(ht))}catch{return null}}}return null}var pe=Object.assign,he=0,Pe,Fe,_e,qe,Ee,we,nt;function J(){}J.__reactDisabledLog=!0;function X(){{if(he===0){Pe=console.log,Fe=console.info,_e=console.warn,qe=console.error,Ee=console.group,we=console.groupCollapsed,nt=console.groupEnd;var M={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}he++}}function oe(){{if(he--,he===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pe({},M,{value:Pe}),info:pe({},M,{value:Fe}),warn:pe({},M,{value:_e}),error:pe({},M,{value:qe}),group:pe({},M,{value:Ee}),groupCollapsed:pe({},M,{value:we}),groupEnd:pe({},M,{value:nt})})}he<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=R.ReactCurrentDispatcher,We;function xe(M,le,be){{if(We===void 0)try{throw Error()}catch(ft){var Ie=ft.stack.trim().match(/\n( *(at )?)/);We=Ie&&Ie[1]||""}return`
76
+ `+We+M}}var Be=!1,$e;{var Le=typeof WeakMap=="function"?WeakMap:Map;$e=new Le}function Tt(M,le){if(!M||Be)return"";{var be=$e.get(M);if(be!==void 0)return be}var Ie;Be=!0;var ft=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ht;ht=Ce.current,Ce.current=null,X();try{if(le){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Gt){Ie=Gt}Reflect.construct(M,[],rt)}else{try{rt.call()}catch(Gt){Ie=Gt}M.call(rt.prototype)}}else{try{throw Error()}catch(Gt){Ie=Gt}M()}}catch(Gt){if(Gt&&Ie&&typeof Gt.stack=="string"){for(var Ye=Gt.stack.split(`
77
77
  `),en=Ie.stack.split(`
78
78
  `),Dt=Ye.length-1,Rt=en.length-1;Dt>=1&&Rt>=0&&Ye[Dt]!==en[Rt];)Rt--;for(;Dt>=1&&Rt>=0;Dt--,Rt--)if(Ye[Dt]!==en[Rt]){if(Dt!==1||Rt!==1)do if(Dt--,Rt--,Rt<0||Ye[Dt]!==en[Rt]){var fn=`
79
- `+Ye[Dt].replace(" at new "," at ");return M.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",M.displayName)),typeof M=="function"&&$e.set(M,fn),fn}while(Dt>=1&&Rt>=0);break}}}finally{Be=!1,Ce.current=ht,oe(),Error.prepareStackTrace=ft}var kn=M?M.displayName||M.name:"",sr=kn?xe(kn):"";return typeof M=="function"&&$e.set(M,sr),sr}function on(M,le,be){return Tt(M,!1)}function Lt(M){var le=M.prototype;return!!(le&&le.isReactComponent)}function jt(M,le,be){if(M==null)return"";if(typeof M=="function")return Tt(M,Lt(M));if(typeof M=="string")return xe(M);switch(M){case d:return xe("Suspense");case g:return xe("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return on(M.render);case p:return jt(M.type,le,be);case w:{var Ie=M,ft=Ie._payload,ht=Ie._init;try{return jt(ht(ft),le,be)}catch{}}}return""}var Se=Object.prototype.hasOwnProperty,ke={},He=R.ReactDebugCurrentFrame;function Ot(M){if(M){var le=M._owner,be=jt(M.type,M._source,le?le.type:null);He.setExtraStackFrame(be)}else He.setExtraStackFrame(null)}function pt(M,le,be,Ie,ft){{var ht=Function.call.bind(Se);for(var rt in M)if(ht(M,rt)){var Ye=void 0;try{if(typeof M[rt]!="function"){var en=Error((Ie||"React class")+": "+be+" type `"+rt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[rt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw en.name="Invariant Violation",en}Ye=M[rt](le,rt,Ie,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Dt){Ye=Dt}Ye&&!(Ye instanceof Error)&&(Ot(ft),L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ie||"React class",be,rt,typeof Ye),Ot(null)),Ye instanceof Error&&!(Ye.message in ke)&&(ke[Ye.message]=!0,Ot(ft),L("Failed %s type: %s",be,Ye.message),Ot(null))}}}var Et=Array.isArray;function me(M){return Et(M)}function Ze(M){{var le=typeof Symbol=="function"&&Symbol.toStringTag,be=le&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function xt(M){try{return ot(M),!1}catch{return!0}}function ot(M){return""+M}function Ut(M){if(xt(M))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(M)),ot(M)}var Oe=R.ReactCurrentOwner,De={key:!0,ref:!0,__self:!0,__source:!0},$t,T;function y(M){if(Se.call(M,"ref")){var le=Object.getOwnPropertyDescriptor(M,"ref").get;if(le&&le.isReactWarning)return!1}return M.ref!==void 0}function b(M){if(Se.call(M,"key")){var le=Object.getOwnPropertyDescriptor(M,"key").get;if(le&&le.isReactWarning)return!1}return M.key!==void 0}function N(M,le){typeof M.ref=="string"&&Oe.current}function V(M,le){{var be=function(){$t||($t=!0,L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",le))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,le){{var be=function(){T||(T=!0,L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",le))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,le,be,Ie,ft,ht,rt){var Ye={$$typeof:t,type:M,key:le,ref:be,props:rt,_owner:ht};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ft}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Me(M,le,be,Ie,ft){{var ht,rt={},Ye=null,en=null;be!==void 0&&(Ut(be),Ye=""+be),b(le)&&(Ut(le.key),Ye=""+le.key),y(le)&&(en=le.ref,N(le,ft));for(ht in le)Se.call(le,ht)&&!De.hasOwnProperty(ht)&&(rt[ht]=le[ht]);if(M&&M.defaultProps){var Dt=M.defaultProps;for(ht in Dt)rt[ht]===void 0&&(rt[ht]=Dt[ht])}if(Ye||en){var Rt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Ye&&V(rt,Rt),en&&G(rt,Rt)}return ee(M,Ye,en,ft,Ie,Oe.current,rt)}}var yt=R.ReactCurrentOwner,lt=R.ReactDebugCurrentFrame;function gt(M){if(M){var le=M._owner,be=jt(M.type,M._source,le?le.type:null);lt.setExtraStackFrame(be)}else lt.setExtraStackFrame(null)}var at;at=!1;function Kr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function vi(){{if(yt.current){var M=ye(yt.current.type);if(M)return`
79
+ `+Ye[Dt].replace(" at new "," at ");return M.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",M.displayName)),typeof M=="function"&&$e.set(M,fn),fn}while(Dt>=1&&Rt>=0);break}}}finally{Be=!1,Ce.current=ht,oe(),Error.prepareStackTrace=ft}var kn=M?M.displayName||M.name:"",sr=kn?xe(kn):"";return typeof M=="function"&&$e.set(M,sr),sr}function on(M,le,be){return Tt(M,!1)}function Nt(M){var le=M.prototype;return!!(le&&le.isReactComponent)}function jt(M,le,be){if(M==null)return"";if(typeof M=="function")return Tt(M,Nt(M));if(typeof M=="string")return xe(M);switch(M){case d:return xe("Suspense");case g:return xe("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return on(M.render);case p:return jt(M.type,le,be);case w:{var Ie=M,ft=Ie._payload,ht=Ie._init;try{return jt(ht(ft),le,be)}catch{}}}return""}var Se=Object.prototype.hasOwnProperty,ke={},He=R.ReactDebugCurrentFrame;function Ot(M){if(M){var le=M._owner,be=jt(M.type,M._source,le?le.type:null);He.setExtraStackFrame(be)}else He.setExtraStackFrame(null)}function pt(M,le,be,Ie,ft){{var ht=Function.call.bind(Se);for(var rt in M)if(ht(M,rt)){var Ye=void 0;try{if(typeof M[rt]!="function"){var en=Error((Ie||"React class")+": "+be+" type `"+rt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[rt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw en.name="Invariant Violation",en}Ye=M[rt](le,rt,Ie,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Dt){Ye=Dt}Ye&&!(Ye instanceof Error)&&(Ot(ft),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ie||"React class",be,rt,typeof Ye),Ot(null)),Ye instanceof Error&&!(Ye.message in ke)&&(ke[Ye.message]=!0,Ot(ft),N("Failed %s type: %s",be,Ye.message),Ot(null))}}}var Et=Array.isArray;function me(M){return Et(M)}function Ze(M){{var le=typeof Symbol=="function"&&Symbol.toStringTag,be=le&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function xt(M){try{return ot(M),!1}catch{return!0}}function ot(M){return""+M}function Ut(M){if(xt(M))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(M)),ot(M)}var Oe=R.ReactCurrentOwner,De={key:!0,ref:!0,__self:!0,__source:!0},$t,T;function y(M){if(Se.call(M,"ref")){var le=Object.getOwnPropertyDescriptor(M,"ref").get;if(le&&le.isReactWarning)return!1}return M.ref!==void 0}function b(M){if(Se.call(M,"key")){var le=Object.getOwnPropertyDescriptor(M,"key").get;if(le&&le.isReactWarning)return!1}return M.key!==void 0}function L(M,le){typeof M.ref=="string"&&Oe.current}function V(M,le){{var be=function(){$t||($t=!0,N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",le))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,le){{var be=function(){T||(T=!0,N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",le))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,le,be,Ie,ft,ht,rt){var Ye={$$typeof:t,type:M,key:le,ref:be,props:rt,_owner:ht};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ft}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Me(M,le,be,Ie,ft){{var ht,rt={},Ye=null,en=null;be!==void 0&&(Ut(be),Ye=""+be),b(le)&&(Ut(le.key),Ye=""+le.key),y(le)&&(en=le.ref,L(le,ft));for(ht in le)Se.call(le,ht)&&!De.hasOwnProperty(ht)&&(rt[ht]=le[ht]);if(M&&M.defaultProps){var Dt=M.defaultProps;for(ht in Dt)rt[ht]===void 0&&(rt[ht]=Dt[ht])}if(Ye||en){var Rt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Ye&&V(rt,Rt),en&&G(rt,Rt)}return ee(M,Ye,en,ft,Ie,Oe.current,rt)}}var yt=R.ReactCurrentOwner,lt=R.ReactDebugCurrentFrame;function gt(M){if(M){var le=M._owner,be=jt(M.type,M._source,le?le.type:null);lt.setExtraStackFrame(be)}else lt.setExtraStackFrame(null)}var at;at=!1;function Kr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function vi(){{if(yt.current){var M=ye(yt.current.type);if(M)return`
80
80
 
81
81
  Check the render method of \``+M+"`."}return""}}function os(M){return""}var as={};function us(M){{var le=vi();if(!le){var be=typeof M=="string"?M:M.displayName||M.name;be&&(le=`
82
82
 
83
- Check the top-level render call using <`+be+">.")}return le}}function Hr(M,le){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=us(le);if(as[be])return;as[be]=!0;var Ie="";M&&M._owner&&M._owner!==yt.current&&(Ie=" It was passed a child from "+ye(M._owner.type)+"."),gt(M),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Ie),gt(null)}}function wi(M,le){{if(typeof M!="object")return;if(me(M))for(var be=0;be<M.length;be++){var Ie=M[be];Kr(Ie)&&Hr(Ie,le)}else if(Kr(M))M._store&&(M._store.validated=!0);else if(M){var ft=v(M);if(typeof ft=="function"&&ft!==M.entries)for(var ht=ft.call(M),rt;!(rt=ht.next()).done;)Kr(rt.value)&&Hr(rt.value,le)}}}function no(M){{var le=M.type;if(le==null||typeof le=="string")return;var be;if(typeof le=="function")be=le.propTypes;else if(typeof le=="object"&&(le.$$typeof===f||le.$$typeof===p))be=le.propTypes;else return;if(be){var Ie=ye(le);pt(be,M.props,"prop",Ie,M)}else if(le.PropTypes!==void 0&&!at){at=!0;var ft=ye(le);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ft||"Unknown")}typeof le.getDefaultProps=="function"&&!le.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ro(M){{for(var le=Object.keys(M.props),be=0;be<le.length;be++){var Ie=le[be];if(Ie!=="children"&&Ie!=="key"){gt(M),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ie),gt(null);break}}M.ref!==null&&(gt(M),L("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var kr={};function ir(M,le,be,Ie,ft,ht){{var rt=ce(M);if(!rt){var Ye="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Ye+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var en=os();en?Ye+=en:Ye+=vi();var Dt;M===null?Dt="null":me(M)?Dt="array":M!==void 0&&M.$$typeof===t?(Dt="<"+(ye(M.type)||"Unknown")+" />",Ye=" Did you accidentally export a JSX literal instead of a component?"):Dt=typeof M,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Dt,Ye)}var Rt=Me(M,le,be,ft,ht);if(Rt==null)return Rt;if(rt){var fn=le.children;if(fn!==void 0)if(Ie)if(me(fn)){for(var kn=0;kn<fn.length;kn++)wi(fn[kn],M);Object.freeze&&Object.freeze(fn)}else L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wi(fn,M)}if(Se.call(le,"key")){var sr=ye(M),Gt=Object.keys(le).filter(function(ao){return ao!=="key"}),Si=Gt.length>0?"{key: someKey, "+Gt.join(": ..., ")+": ...}":"{key: someKey}";if(!kr[sr+Si]){var oo=Gt.length>0?"{"+Gt.join(": ..., ")+": ...}":"{}";L(`A props object containing a "key" prop is being spread into JSX:
83
+ Check the top-level render call using <`+be+">.")}return le}}function Hr(M,le){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=us(le);if(as[be])return;as[be]=!0;var Ie="";M&&M._owner&&M._owner!==yt.current&&(Ie=" It was passed a child from "+ye(M._owner.type)+"."),gt(M),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Ie),gt(null)}}function wi(M,le){{if(typeof M!="object")return;if(me(M))for(var be=0;be<M.length;be++){var Ie=M[be];Kr(Ie)&&Hr(Ie,le)}else if(Kr(M))M._store&&(M._store.validated=!0);else if(M){var ft=v(M);if(typeof ft=="function"&&ft!==M.entries)for(var ht=ft.call(M),rt;!(rt=ht.next()).done;)Kr(rt.value)&&Hr(rt.value,le)}}}function no(M){{var le=M.type;if(le==null||typeof le=="string")return;var be;if(typeof le=="function")be=le.propTypes;else if(typeof le=="object"&&(le.$$typeof===f||le.$$typeof===p))be=le.propTypes;else return;if(be){var Ie=ye(le);pt(be,M.props,"prop",Ie,M)}else if(le.PropTypes!==void 0&&!at){at=!0;var ft=ye(le);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ft||"Unknown")}typeof le.getDefaultProps=="function"&&!le.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ro(M){{for(var le=Object.keys(M.props),be=0;be<le.length;be++){var Ie=le[be];if(Ie!=="children"&&Ie!=="key"){gt(M),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ie),gt(null);break}}M.ref!==null&&(gt(M),N("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var kr={};function ir(M,le,be,Ie,ft,ht){{var rt=ce(M);if(!rt){var Ye="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Ye+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var en=os();en?Ye+=en:Ye+=vi();var Dt;M===null?Dt="null":me(M)?Dt="array":M!==void 0&&M.$$typeof===t?(Dt="<"+(ye(M.type)||"Unknown")+" />",Ye=" Did you accidentally export a JSX literal instead of a component?"):Dt=typeof M,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Dt,Ye)}var Rt=Me(M,le,be,ft,ht);if(Rt==null)return Rt;if(rt){var fn=le.children;if(fn!==void 0)if(Ie)if(me(fn)){for(var kn=0;kn<fn.length;kn++)wi(fn[kn],M);Object.freeze&&Object.freeze(fn)}else N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wi(fn,M)}if(Se.call(le,"key")){var sr=ye(M),Gt=Object.keys(le).filter(function(ao){return ao!=="key"}),Si=Gt.length>0?"{key: someKey, "+Gt.join(": ..., ")+": ...}":"{key: someKey}";if(!kr[sr+Si]){var oo=Gt.length>0?"{"+Gt.join(": ..., ")+": ...}":"{}";N(`A props object containing a "key" prop is being spread into JSX:
84
84
  let props = %s;
85
85
  <%s {...props} />
86
86
  React keys must be passed directly to JSX without using spread:
87
87
  let props = %s;
88
- <%s key={someKey} {...props} />`,Si,sr,oo,sr),kr[sr+Si]=!0}}return M===i?ro(Rt):no(Rt),Rt}}function zr(M,le,be){return ir(M,le,be,!0)}function io(M,le,be){return ir(M,le,be,!1)}var so=io,yn=zr;Os.Fragment=i,Os.jsx=so,Os.jsxs=yn}()),Os}tt.env.NODE_ENV==="production"?Lu.exports=mm():Lu.exports=bm();var F=Lu.exports;const vm={CustomTreeProvider:Qe.div`
88
+ <%s key={someKey} {...props} />`,Si,sr,oo,sr),kr[sr+Si]=!0}}return M===i?ro(Rt):no(Rt),Rt}}function zr(M,le,be){return ir(M,le,be,!0)}function io(M,le,be){return ir(M,le,be,!1)}var so=io,yn=zr;Os.Fragment=i,Os.jsx=so,Os.jsxs=yn}()),Os}tt.env.NODE_ENV==="production"?Nu.exports=ym():Nu.exports=mm();var F=Nu.exports;const bm={CustomTreeProvider:Qe.div`
89
89
  .ant-tree-switcher {
90
90
  display: flex;
91
91
  align-items: center;
92
92
  justify-content: center;
93
93
  }
94
- `},{Search:wm}=z.Input,Sm=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,g={},p=(v,R)=>{v.forEach(L=>{g[L.key]=R,L.children&&p(L.children,L.key)})};p(e,null);const w=v=>{const R=[];let L=g[v];for(;L;)R.push(L),L=g[L];return R},k=[],S=v=>{v.forEach(R=>{if(R.title.toLowerCase().includes(d.toLowerCase())){k.push(R.key);const C=w(R.key);k.push(...C)}R.children&&S(R.children)})};S(e);const A=Array.from(new Set(k)).filter(Boolean);i(A),a(d)},l=f=>f.map(d=>{const g=d.title,p=g.toLowerCase().indexOf(o.toLowerCase()),w=g.substring(0,p),k=g.substring(p+o.length),S=p>-1?F.jsxs("span",{children:[w,F.jsx("span",{style:{color:"#f50"},children:o}),k]}):F.jsx("span",{children:g});return d.children?{...d,title:S,children:l(d.children)}:{...d,title:S}});return F.jsxs(F.Fragment,{children:[F.jsx(wm,{style:{marginBottom:8},placeholder:"Search",onChange:u}),F.jsx(vm.CustomTreeProvider,{children:F.jsx(z.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,d)=>{t&&t(f,d),n.includes(d.node.key)?i([...n.filter(g=>g!==d.node.key)]):i([...n,d.node.key])}})})]})},Am=globalThis||void 0||self;function Kf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Em}=Object.prototype,{getPrototypeOf:ju}=Object,Mo=(e=>t=>{const n=Em.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hr=e=>(e=e.toLowerCase(),t=>Mo(t)===e),Uo=e=>t=>typeof t===e,{isArray:Mi}=Array,Is=Uo("undefined");function xm(e){return e!==null&&!Is(e)&&e.constructor!==null&&!Is(e.constructor)&&Ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hf=hr("ArrayBuffer");function Cm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hf(e.buffer),t}const _m=Uo("string"),Ln=Uo("function"),zf=Uo("number"),Vo=e=>e!==null&&typeof e=="object",km=e=>e===!0||e===!1,qo=e=>{if(Mo(e)!=="object")return!1;const t=ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Tm=hr("Date"),Om=hr("File"),Im=hr("Blob"),Fm=hr("FileList"),Bm=e=>Vo(e)&&Ln(e.pipe),Dm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ln(e.append)&&((t=Mo(e))==="formdata"||t==="object"&&Ln(e.toString)&&e.toString()==="[object FormData]"))},Pm=hr("URLSearchParams"),Rm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Mi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function Gf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Jf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Am,Yf=e=>!Is(e)&&e!==Jf;function $u(){const{caseless:e}=Yf(this)&&this||{},t={},n=(i,o)=>{const a=e&&Gf(t,o)||o;qo(t[a])&&qo(i)?t[a]=$u(t[a],i):qo(i)?t[a]=$u({},i):Mi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Fs(arguments[i],n);return t}const Nm=(e,t,n,{allOwnKeys:i}={})=>(Fs(t,(o,a)=>{n&&Ln(o)?e[a]=Kf(o,n):e[a]=o},{allOwnKeys:i}),e),Lm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jm=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},$m=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&ju(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Um=e=>{if(!e)return null;if(Mi(e))return e;let t=e.length;if(!zf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ju(Uint8Array)),qm=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Wm=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Km=hr("HTMLFormElement"),Hm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zm=hr("RegExp"),Qf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Fs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Gm=e=>{Qf(e,(t,n)=>{if(Ln(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Ln(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jm=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Mi(e)?i(e):i(String(e).split(t)),n},Ym=()=>{},Xm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Mu="abcdefghijklmnopqrstuvwxyz",Zf="0123456789",eh={DIGIT:Zf,ALPHA:Mu,ALPHA_DIGIT:Mu+Mu.toUpperCase()+Zf},Qm=(e=16,t=eh.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Zm(e){return!!(e&&Ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const e1=e=>{const t=new Array(10),n=(i,o)=>{if(Vo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Mi(i)?[]:{};return Fs(i,(u,l)=>{const f=n(u,o+1);!Is(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},t1=hr("AsyncFunction"),re={isArray:Mi,isArrayBuffer:Hf,isBuffer:xm,isFormData:Dm,isArrayBufferView:Cm,isString:_m,isNumber:zf,isBoolean:km,isObject:Vo,isPlainObject:qo,isUndefined:Is,isDate:Tm,isFile:Om,isBlob:Im,isRegExp:zm,isFunction:Ln,isStream:Bm,isURLSearchParams:Pm,isTypedArray:Vm,isFileList:Fm,forEach:Fs,merge:$u,extend:Nm,trim:Rm,stripBOM:Lm,inherits:jm,toFlatObject:$m,kindOf:Mo,kindOfTest:hr,endsWith:Mm,toArray:Um,forEachEntry:qm,matchAll:Wm,isHTMLForm:Km,hasOwnProperty:Xf,hasOwnProp:Xf,reduceDescriptors:Qf,freezeMethods:Gm,toObjectSet:Jm,toCamelCase:Hm,noop:Ym,toFiniteNumber:Xm,findKey:Gf,global:Jf,isContextDefined:Yf,ALPHABET:eh,generateString:Qm,isSpecCompliantForm:Zm,toJSONObject:e1,isAsyncFn:t1,isThenable:e=>e&&(Vo(e)||Ln(e))&&Ln(e.then)&&Ln(e.catch)};var th={},Wo={};Wo.byteLength=i1,Wo.toByteArray=o1,Wo.fromByteArray=c1;for(var dr=[],jn=[],n1=typeof Uint8Array<"u"?Uint8Array:Array,Uu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ui=0,r1=Uu.length;Ui<r1;++Ui)dr[Ui]=Uu[Ui],jn[Uu.charCodeAt(Ui)]=Ui;jn[45]=62,jn[95]=63;function nh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function i1(e){var t=nh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function s1(e,t,n){return(t+n)*3/4-n}function o1(e){var t,n=nh(e),i=n[0],o=n[1],a=new n1(s1(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=jn[e.charCodeAt(f)]<<18|jn[e.charCodeAt(f+1)]<<12|jn[e.charCodeAt(f+2)]<<6|jn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=jn[e.charCodeAt(f)]<<2|jn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=jn[e.charCodeAt(f)]<<10|jn[e.charCodeAt(f+1)]<<4|jn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function a1(e){return dr[e>>18&63]+dr[e>>12&63]+dr[e>>6&63]+dr[e&63]}function u1(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(a1(i));return o.join("")}function c1(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(u1(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(dr[t>>2]+dr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(dr[t>>10]+dr[t>>4&63]+dr[t<<2&63]+"=")),o.join("")}var Vu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Vu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,d=f>>1,g=-7,p=n?o-1:0,w=n?-1:1,k=e[t+p];for(p+=w,a=k&(1<<-g)-1,k>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=w,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===f)return u?NaN:(k?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-d}return(k?-1:1)*u*Math.pow(2,a-i)},Vu.write=function(e,t,n,i,o,a){var u,l,f,d=a*8-o-1,g=(1<<d)-1,p=g>>1,w=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=i?0:a-1,S=i?1:-1,A=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=w/f:t+=w*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+k]=l&255,k+=S,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+k]=u&255,k+=S,u/=256,d-=8);e[n+k-S]|=A*128};/*!
94
+ `},{Search:vm}=z.Input,wm=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,g={},p=(v,R)=>{v.forEach(N=>{g[N.key]=R,N.children&&p(N.children,N.key)})};p(e,null);const w=v=>{const R=[];let N=g[v];for(;N;)R.push(N),N=g[N];return R},k=[],S=v=>{v.forEach(R=>{if(R.title.toLowerCase().includes(d.toLowerCase())){k.push(R.key);const C=w(R.key);k.push(...C)}R.children&&S(R.children)})};S(e);const A=Array.from(new Set(k)).filter(Boolean);i(A),a(d)},l=f=>f.map(d=>{const g=d.title,p=g.toLowerCase().indexOf(o.toLowerCase()),w=g.substring(0,p),k=g.substring(p+o.length),S=p>-1?F.jsxs("span",{children:[w,F.jsx("span",{style:{color:"#f50"},children:o}),k]}):F.jsx("span",{children:g});return d.children?{...d,title:S,children:l(d.children)}:{...d,title:S}});return F.jsxs(F.Fragment,{children:[F.jsx(vm,{style:{marginBottom:8},placeholder:"Search",onChange:u}),F.jsx(bm.CustomTreeProvider,{children:F.jsx(z.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,d)=>{t&&t(f,d),n.includes(d.node.key)?i([...n.filter(g=>g!==d.node.key)]):i([...n,d.node.key])}})})]})},Sm=globalThis||void 0||self;function Kf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Am}=Object.prototype,{getPrototypeOf:ju}=Object,Mo=(e=>t=>{const n=Am.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hr=e=>(e=e.toLowerCase(),t=>Mo(t)===e),Uo=e=>t=>typeof t===e,{isArray:Mi}=Array,Is=Uo("undefined");function Em(e){return e!==null&&!Is(e)&&e.constructor!==null&&!Is(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hf=hr("ArrayBuffer");function xm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hf(e.buffer),t}const Cm=Uo("string"),Nn=Uo("function"),zf=Uo("number"),Vo=e=>e!==null&&typeof e=="object",_m=e=>e===!0||e===!1,qo=e=>{if(Mo(e)!=="object")return!1;const t=ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},km=hr("Date"),Tm=hr("File"),Om=hr("Blob"),Im=hr("FileList"),Fm=e=>Vo(e)&&Nn(e.pipe),Bm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=Mo(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},Dm=hr("URLSearchParams"),Pm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Mi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function Gf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Jf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Sm,Yf=e=>!Is(e)&&e!==Jf;function $u(){const{caseless:e}=Yf(this)&&this||{},t={},n=(i,o)=>{const a=e&&Gf(t,o)||o;qo(t[a])&&qo(i)?t[a]=$u(t[a],i):qo(i)?t[a]=$u({},i):Mi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Fs(arguments[i],n);return t}const Rm=(e,t,n,{allOwnKeys:i}={})=>(Fs(t,(o,a)=>{n&&Nn(o)?e[a]=Kf(o,n):e[a]=o},{allOwnKeys:i}),e),Lm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nm=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jm=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&ju(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$m=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Mm=e=>{if(!e)return null;if(Mi(e))return e;let t=e.length;if(!zf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Um=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ju(Uint8Array)),Vm=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},qm=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Wm=hr("HTMLFormElement"),Km=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Hm=hr("RegExp"),Qf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Fs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},zm=e=>{Qf(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Nn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Gm=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Mi(e)?i(e):i(String(e).split(t)),n},Jm=()=>{},Ym=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Mu="abcdefghijklmnopqrstuvwxyz",Zf="0123456789",eh={DIGIT:Zf,ALPHA:Mu,ALPHA_DIGIT:Mu+Mu.toUpperCase()+Zf},Xm=(e=16,t=eh.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Qm(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zm=e=>{const t=new Array(10),n=(i,o)=>{if(Vo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Mi(i)?[]:{};return Fs(i,(u,l)=>{const f=n(u,o+1);!Is(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},e1=hr("AsyncFunction"),re={isArray:Mi,isArrayBuffer:Hf,isBuffer:Em,isFormData:Bm,isArrayBufferView:xm,isString:Cm,isNumber:zf,isBoolean:_m,isObject:Vo,isPlainObject:qo,isUndefined:Is,isDate:km,isFile:Tm,isBlob:Om,isRegExp:Hm,isFunction:Nn,isStream:Fm,isURLSearchParams:Dm,isTypedArray:Um,isFileList:Im,forEach:Fs,merge:$u,extend:Rm,trim:Pm,stripBOM:Lm,inherits:Nm,toFlatObject:jm,kindOf:Mo,kindOfTest:hr,endsWith:$m,toArray:Mm,forEachEntry:Vm,matchAll:qm,isHTMLForm:Wm,hasOwnProperty:Xf,hasOwnProp:Xf,reduceDescriptors:Qf,freezeMethods:zm,toObjectSet:Gm,toCamelCase:Km,noop:Jm,toFiniteNumber:Ym,findKey:Gf,global:Jf,isContextDefined:Yf,ALPHABET:eh,generateString:Xm,isSpecCompliantForm:Qm,toJSONObject:Zm,isAsyncFn:e1,isThenable:e=>e&&(Vo(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch)};var th={},Wo={};Wo.byteLength=r1,Wo.toByteArray=s1,Wo.fromByteArray=u1;for(var dr=[],jn=[],t1=typeof Uint8Array<"u"?Uint8Array:Array,Uu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ui=0,n1=Uu.length;Ui<n1;++Ui)dr[Ui]=Uu[Ui],jn[Uu.charCodeAt(Ui)]=Ui;jn[45]=62,jn[95]=63;function nh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function r1(e){var t=nh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function i1(e,t,n){return(t+n)*3/4-n}function s1(e){var t,n=nh(e),i=n[0],o=n[1],a=new t1(i1(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=jn[e.charCodeAt(f)]<<18|jn[e.charCodeAt(f+1)]<<12|jn[e.charCodeAt(f+2)]<<6|jn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=jn[e.charCodeAt(f)]<<2|jn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=jn[e.charCodeAt(f)]<<10|jn[e.charCodeAt(f+1)]<<4|jn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function o1(e){return dr[e>>18&63]+dr[e>>12&63]+dr[e>>6&63]+dr[e&63]}function a1(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(o1(i));return o.join("")}function u1(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(a1(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(dr[t>>2]+dr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(dr[t>>10]+dr[t>>4&63]+dr[t<<2&63]+"=")),o.join("")}var Vu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Vu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,d=f>>1,g=-7,p=n?o-1:0,w=n?-1:1,k=e[t+p];for(p+=w,a=k&(1<<-g)-1,k>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=w,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===f)return u?NaN:(k?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-d}return(k?-1:1)*u*Math.pow(2,a-i)},Vu.write=function(e,t,n,i,o,a){var u,l,f,d=a*8-o-1,g=(1<<d)-1,p=g>>1,w=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=i?0:a-1,S=i?1:-1,A=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=w/f:t+=w*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+k]=l&255,k+=S,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+k]=u&255,k+=S,u/=256,d-=8);e[n+k-S]|=A*128};/*!
95
95
  * The buffer module from node.js, for the browser.
96
96
  *
97
97
  * @author Feross Aboukhadijeh <https://feross.org>
98
98
  * @license MIT
99
- */(function(e){const t=Wo,n=Vu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=I,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const T=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(T,y),T.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function d(T){if(T>o)throw new RangeError('The value "'+T+'" is invalid for option "size"');const y=new a(T);return Object.setPrototypeOf(y,g.prototype),y}function g(T,y,b){if(typeof T=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(T)}return p(T,y,b)}g.poolSize=8192;function p(T,y,b){if(typeof T=="string")return A(T,y);if(u.isView(T))return R(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(ot(T,u)||T&&ot(T.buffer,u)||typeof l<"u"&&(ot(T,l)||T&&ot(T.buffer,l)))return L(T,y,b);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const N=T.valueOf&&T.valueOf();if(N!=null&&N!==T)return g.from(N,y,b);const V=C(T);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return g.from(T[Symbol.toPrimitive]("string"),y,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}g.from=function(T,y,b){return p(T,y,b)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function w(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function k(T,y,b){return w(T),T<=0?d(T):y!==void 0?typeof b=="string"?d(T).fill(y,b):d(T).fill(y):d(T)}g.alloc=function(T,y,b){return k(T,y,b)};function S(T){return w(T),d(T<0?0:x(T)|0)}g.allocUnsafe=function(T){return S(T)},g.allocUnsafeSlow=function(T){return S(T)};function A(T,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const b=O(T,y)|0;let N=d(b);const V=N.write(T,y);return V!==b&&(N=N.slice(0,V)),N}function v(T){const y=T.length<0?0:x(T.length)|0,b=d(y);for(let N=0;N<y;N+=1)b[N]=T[N]&255;return b}function R(T){if(ot(T,a)){const y=new a(T);return L(y.buffer,y.byteOffset,y.byteLength)}return v(T)}function L(T,y,b){if(y<0||T.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');let N;return y===void 0&&b===void 0?N=new a(T):b===void 0?N=new a(T,y):N=new a(T,y,b),Object.setPrototypeOf(N,g.prototype),N}function C(T){if(g.isBuffer(T)){const y=x(T.length)|0,b=d(y);return b.length===0||T.copy(b,0,0,y),b}if(T.length!==void 0)return typeof T.length!="number"||Ut(T.length)?d(0):v(T);if(T.type==="Buffer"&&Array.isArray(T.data))return v(T.data)}function x(T){if(T>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return T|0}function I(T){return+T!=T&&(T=0),g.alloc(+T)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,b){if(ot(y,a)&&(y=g.from(y,y.offset,y.byteLength)),ot(b,a)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(y)||!g.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;let N=y.length,V=b.length;for(let G=0,ee=Math.min(N,V);G<ee;++G)if(y[G]!==b[G]){N=y[G],V=b[G];break}return N<V?-1:V<N?1:0},g.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let N;if(b===void 0)for(b=0,N=0;N<y.length;++N)b+=y[N].length;const V=g.allocUnsafe(b);let G=0;for(N=0;N<y.length;++N){let ee=y[N];if(ot(ee,a))G+ee.length>V.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(g.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function O(T,y){if(g.isBuffer(T))return T.length;if(u.isView(T)||ot(T,u))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const b=T.length,N=arguments.length>2&&arguments[2]===!0;if(!N&&b===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return pt(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Ze(T).length;default:if(V)return N?-1:pt(T).length;y=(""+y).toLowerCase(),V=!0}}g.byteLength=O;function D(T,y,b){let N=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,y>>>=0,b<=y))return"";for(T||(T="utf8");;)switch(T){case"hex":return nt(this,y,b);case"utf8":case"utf-8":return Fe(this,y,b);case"ascii":return Ee(this,y,b);case"latin1":case"binary":return we(this,y,b);case"base64":return Pe(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,y,b);default:if(N)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),N=!0}}g.prototype._isBuffer=!0;function W(T,y,b){const N=T[y];T[y]=T[b],T[b]=N}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<y;b+=2)W(this,b,b+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<y;b+=4)W(this,b,b+3),W(this,b+1,b+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<y;b+=8)W(this,b,b+7),W(this,b+1,b+6),W(this,b+2,b+5),W(this,b+3,b+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Fe(this,0,y):D.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,b,N,V,G){if(ot(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),N===void 0&&(N=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),b<0||N>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&b>=N)return 0;if(V>=G)return-1;if(b>=N)return 1;if(b>>>=0,N>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Me=N-b;const yt=Math.min(ee,Me),lt=this.slice(V,G),gt=y.slice(b,N);for(let at=0;at<yt;++at)if(lt[at]!==gt[at]){ee=lt[at],Me=gt[at];break}return ee<Me?-1:Me<ee?1:0};function Q(T,y,b,N,V){if(T.length===0)return-1;if(typeof b=="string"?(N=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Ut(b)&&(b=V?0:T.length-1),b<0&&(b=T.length+b),b>=T.length){if(V)return-1;b=T.length-1}else if(b<0)if(V)b=0;else return-1;if(typeof y=="string"&&(y=g.from(y,N)),g.isBuffer(y))return y.length===0?-1:ce(T,y,b,N,V);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(T,y,b):a.prototype.lastIndexOf.call(T,y,b):ce(T,[y],b,N,V);throw new TypeError("val must be string, number or Buffer")}function ce(T,y,b,N,V){let G=1,ee=T.length,Me=y.length;if(N!==void 0&&(N=String(N).toLowerCase(),N==="ucs2"||N==="ucs-2"||N==="utf16le"||N==="utf-16le")){if(T.length<2||y.length<2)return-1;G=2,ee/=2,Me/=2,b/=2}function yt(gt,at){return G===1?gt[at]:gt.readUInt16BE(at*G)}let lt;if(V){let gt=-1;for(lt=b;lt<ee;lt++)if(yt(T,lt)===yt(y,gt===-1?0:lt-gt)){if(gt===-1&&(gt=lt),lt-gt+1===Me)return gt*G}else gt!==-1&&(lt-=lt-gt),gt=-1}else for(b+Me>ee&&(b=ee-Me),lt=b;lt>=0;lt--){let gt=!0;for(let at=0;at<Me;at++)if(yt(T,lt+at)!==yt(y,at)){gt=!1;break}if(gt)return lt}return-1}g.prototype.includes=function(y,b,N){return this.indexOf(y,b,N)!==-1},g.prototype.indexOf=function(y,b,N){return Q(this,y,b,N,!0)},g.prototype.lastIndexOf=function(y,b,N){return Q(this,y,b,N,!1)};function fe(T,y,b,N){b=Number(b)||0;const V=T.length-b;N?(N=Number(N),N>V&&(N=V)):N=V;const G=y.length;N>G/2&&(N=G/2);let ee;for(ee=0;ee<N;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(Ut(Me))return ee;T[b+ee]=Me}return ee}function ge(T,y,b,N){return xt(pt(y,T.length-b),T,b,N)}function ye(T,y,b,N){return xt(Et(y),T,b,N)}function pe(T,y,b,N){return xt(Ze(y),T,b,N)}function he(T,y,b,N){return xt(me(y,T.length-b),T,b,N)}g.prototype.write=function(y,b,N,V){if(b===void 0)V="utf8",N=this.length,b=0;else if(N===void 0&&typeof b=="string")V=b,N=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(N)?(N=N>>>0,V===void 0&&(V="utf8")):(V=N,N=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-b;if((N===void 0||N>G)&&(N=G),y.length>0&&(N<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return fe(this,y,b,N);case"utf8":case"utf-8":return ge(this,y,b,N);case"ascii":case"latin1":case"binary":return ye(this,y,b,N);case"base64":return pe(this,y,b,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,y,b,N);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pe(T,y,b){return y===0&&b===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(y,b))}function Fe(T,y,b){b=Math.min(T.length,b);const N=[];let V=y;for(;V<b;){const G=T[V];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(V+Me<=b){let yt,lt,gt,at;switch(Me){case 1:G<128&&(ee=G);break;case 2:yt=T[V+1],(yt&192)===128&&(at=(G&31)<<6|yt&63,at>127&&(ee=at));break;case 3:yt=T[V+1],lt=T[V+2],(yt&192)===128&&(lt&192)===128&&(at=(G&15)<<12|(yt&63)<<6|lt&63,at>2047&&(at<55296||at>57343)&&(ee=at));break;case 4:yt=T[V+1],lt=T[V+2],gt=T[V+3],(yt&192)===128&&(lt&192)===128&&(gt&192)===128&&(at=(G&15)<<18|(yt&63)<<12|(lt&63)<<6|gt&63,at>65535&&at<1114112&&(ee=at))}}ee===null?(ee=65533,Me=1):ee>65535&&(ee-=65536,N.push(ee>>>10&1023|55296),ee=56320|ee&1023),N.push(ee),V+=Me}return qe(N)}const _e=4096;function qe(T){const y=T.length;if(y<=_e)return String.fromCharCode.apply(String,T);let b="",N=0;for(;N<y;)b+=String.fromCharCode.apply(String,T.slice(N,N+=_e));return b}function Ee(T,y,b){let N="";b=Math.min(T.length,b);for(let V=y;V<b;++V)N+=String.fromCharCode(T[V]&127);return N}function we(T,y,b){let N="";b=Math.min(T.length,b);for(let V=y;V<b;++V)N+=String.fromCharCode(T[V]);return N}function nt(T,y,b){const N=T.length;(!y||y<0)&&(y=0),(!b||b<0||b>N)&&(b=N);let V="";for(let G=y;G<b;++G)V+=Oe[T[G]];return V}function J(T,y,b){const N=T.slice(y,b);let V="";for(let G=0;G<N.length-1;G+=2)V+=String.fromCharCode(N[G]+N[G+1]*256);return V}g.prototype.slice=function(y,b){const N=this.length;y=~~y,b=b===void 0?N:~~b,y<0?(y+=N,y<0&&(y=0)):y>N&&(y=N),b<0?(b+=N,b<0&&(b=0)):b>N&&(b=N),b<y&&(b=y);const V=this.subarray(y,b);return Object.setPrototypeOf(V,g.prototype),V};function X(T,y,b){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+y>b)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,b,N){y=y>>>0,b=b>>>0,N||X(y,b,this.length);let V=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)V+=this[y+ee]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,b,N){y=y>>>0,b=b>>>0,N||X(y,b,this.length);let V=this[y+--b],G=1;for(;b>0&&(G*=256);)V+=this[y+--b]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],N=this[y+7];(b===void 0||N===void 0)&&ke(y,this.length-8);const V=b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+N*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],N=this[y+7];(b===void 0||N===void 0)&&ke(y,this.length-8);const V=b*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+N;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,b,N){y=y>>>0,b=b>>>0,N||X(y,b,this.length);let V=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)V+=this[y+ee]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*b)),V},g.prototype.readIntBE=function(y,b,N){y=y>>>0,b=b>>>0,N||X(y,b,this.length);let V=b,G=1,ee=this[y+--V];for(;V>0&&(G*=256);)ee+=this[y+--V]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*b)),ee},g.prototype.readInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,b){y=y>>>0,b||X(y,2,this.length);const N=this[y]|this[y+1]<<8;return N&32768?N|4294901760:N},g.prototype.readInt16BE=function(y,b){y=y>>>0,b||X(y,2,this.length);const N=this[y+1]|this[y]<<8;return N&32768?N|4294901760:N},g.prototype.readInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],N=this[y+7];(b===void 0||N===void 0)&&ke(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(N<<24);return(BigInt(V)<<BigInt(32))+BigInt(b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],N=this[y+7];(b===void 0||N===void 0)&&ke(y,this.length-8);const V=(b<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(V)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+N)}),g.prototype.readFloatLE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!1,52,8)};function oe(T,y,b,N,V,G){if(!g.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>V||y<G)throw new RangeError('"value" argument is out of bounds');if(b+N>T.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,b,N,V){if(y=+y,b=b>>>0,N=N>>>0,!V){const Me=Math.pow(2,8*N)-1;oe(this,y,b,N,Me,0)}let G=1,ee=0;for(this[b]=y&255;++ee<N&&(G*=256);)this[b+ee]=y/G&255;return b+N},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,b,N,V){if(y=+y,b=b>>>0,N=N>>>0,!V){const Me=Math.pow(2,8*N)-1;oe(this,y,b,N,Me,0)}let G=N-1,ee=1;for(this[b+G]=y&255;--G>=0&&(ee*=256);)this[b+G]=y/ee&255;return b+N},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,1,255,0),this[b]=y&255,b+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,4,4294967295,0),this[b+3]=y>>>24,this[b+2]=y>>>16,this[b+1]=y>>>8,this[b]=y&255,b+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,4,4294967295,0),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4};function Ce(T,y,b,N,V){jt(y,N,V,T,b,7);let G=Number(y&BigInt(4294967295));T[b++]=G,G=G>>8,T[b++]=G,G=G>>8,T[b++]=G,G=G>>8,T[b++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return T[b++]=ee,ee=ee>>8,T[b++]=ee,ee=ee>>8,T[b++]=ee,ee=ee>>8,T[b++]=ee,b}function We(T,y,b,N,V){jt(y,N,V,T,b,7);let G=Number(y&BigInt(4294967295));T[b+7]=G,G=G>>8,T[b+6]=G,G=G>>8,T[b+5]=G,G=G>>8,T[b+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return T[b+3]=ee,ee=ee>>8,T[b+2]=ee,ee=ee>>8,T[b+1]=ee,ee=ee>>8,T[b]=ee,b+8}g.prototype.writeBigUInt64LE=De(function(y,b=0){return Ce(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=De(function(y,b=0){return We(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,b,N,V){if(y=+y,b=b>>>0,!V){const yt=Math.pow(2,8*N-1);oe(this,y,b,N,yt-1,-yt)}let G=0,ee=1,Me=0;for(this[b]=y&255;++G<N&&(ee*=256);)y<0&&Me===0&&this[b+G-1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+N},g.prototype.writeIntBE=function(y,b,N,V){if(y=+y,b=b>>>0,!V){const yt=Math.pow(2,8*N-1);oe(this,y,b,N,yt-1,-yt)}let G=N-1,ee=1,Me=0;for(this[b+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[b+G+1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+N},g.prototype.writeInt8=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},g.prototype.writeInt16LE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},g.prototype.writeInt16BE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},g.prototype.writeInt32LE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,4,2147483647,-2147483648),this[b]=y&255,this[b+1]=y>>>8,this[b+2]=y>>>16,this[b+3]=y>>>24,b+4},g.prototype.writeInt32BE=function(y,b,N){return y=+y,b=b>>>0,N||oe(this,y,b,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4},g.prototype.writeBigInt64LE=De(function(y,b=0){return Ce(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=De(function(y,b=0){return We(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xe(T,y,b,N,V,G){if(b+N>T.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Be(T,y,b,N,V){return y=+y,b=b>>>0,V||xe(T,y,b,4),n.write(T,y,b,N,23,4),b+4}g.prototype.writeFloatLE=function(y,b,N){return Be(this,y,b,!0,N)},g.prototype.writeFloatBE=function(y,b,N){return Be(this,y,b,!1,N)};function $e(T,y,b,N,V){return y=+y,b=b>>>0,V||xe(T,y,b,8),n.write(T,y,b,N,52,8),b+8}g.prototype.writeDoubleLE=function(y,b,N){return $e(this,y,b,!0,N)},g.prototype.writeDoubleBE=function(y,b,N){return $e(this,y,b,!1,N)},g.prototype.copy=function(y,b,N,V){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(N||(N=0),!V&&V!==0&&(V=this.length),b>=y.length&&(b=y.length),b||(b=0),V>0&&V<N&&(V=N),V===N||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(N<0||N>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),y.length-b<V-N&&(V=y.length-b+N);const G=V-N;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,N,V):a.prototype.set.call(y,this.subarray(N,V),b),G},g.prototype.fill=function(y,b,N,V){if(typeof y=="string"){if(typeof b=="string"?(V=b,b=0,N=this.length):typeof N=="string"&&(V=N,N=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(y.length===1){const ee=y.charCodeAt(0);(V==="utf8"&&ee<128||V==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(b<0||this.length<b||this.length<N)throw new RangeError("Out of range index");if(N<=b)return this;b=b>>>0,N=N===void 0?this.length:N>>>0,y||(y=0);let G;if(typeof y=="number")for(G=b;G<N;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,V),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<N-b;++G)this[G+b]=ee[G%Me]}return this};const Ne={};function Tt(T,y,b){Ne[T]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(T,y){return`The "${T}" argument must be of type number. Received type ${typeof y}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(T,y,b){let N=`The value of "${T}" is out of range.`,V=b;return Number.isInteger(b)&&Math.abs(b)>2**32?V=on(String(b)):typeof b=="bigint"&&(V=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(V=on(V)),V+="n"),N+=` It must be ${y}. Received ${V}`,N},RangeError);function on(T){let y="",b=T.length;const N=T[0]==="-"?1:0;for(;b>=N+4;b-=3)y=`_${T.slice(b-3,b)}${y}`;return`${T.slice(0,b)}${y}`}function Lt(T,y,b){Se(y,"offset"),(T[y]===void 0||T[y+b]===void 0)&&ke(y,T.length-(b+1))}function jt(T,y,b,N,V,G){if(T>b||T<y){const ee=typeof y=="bigint"?"n":"";let Me;throw y===0||y===BigInt(0)?Me=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Me=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Ne.ERR_OUT_OF_RANGE("value",Me,T)}Lt(N,V,G)}function Se(T,y){if(typeof T!="number")throw new Ne.ERR_INVALID_ARG_TYPE(y,"number",T)}function ke(T,y,b){throw Math.floor(T)!==T?(Se(T,b),new Ne.ERR_OUT_OF_RANGE("offset","an integer",T)):y<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,T)}const He=/[^+/0-9A-Za-z-_]/g;function Ot(T){if(T=T.split("=")[0],T=T.trim().replace(He,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function pt(T,y){y=y||1/0;let b;const N=T.length;let V=null;const G=[];for(let ee=0;ee<N;++ee){if(b=T.charCodeAt(ee),b>55295&&b<57344){if(!V){if(b>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===N){(y-=3)>-1&&G.push(239,191,189);continue}V=b;continue}if(b<56320){(y-=3)>-1&&G.push(239,191,189),V=b;continue}b=(V-55296<<10|b-56320)+65536}else V&&(y-=3)>-1&&G.push(239,191,189);if(V=null,b<128){if((y-=1)<0)break;G.push(b)}else if(b<2048){if((y-=2)<0)break;G.push(b>>6|192,b&63|128)}else if(b<65536){if((y-=3)<0)break;G.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((y-=4)<0)break;G.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return G}function Et(T){const y=[];for(let b=0;b<T.length;++b)y.push(T.charCodeAt(b)&255);return y}function me(T,y){let b,N,V;const G=[];for(let ee=0;ee<T.length&&!((y-=2)<0);++ee)b=T.charCodeAt(ee),N=b>>8,V=b%256,G.push(V),G.push(N);return G}function Ze(T){return t.toByteArray(Ot(T))}function xt(T,y,b,N){let V;for(V=0;V<N&&!(V+b>=y.length||V>=T.length);++V)y[V+b]=T[V];return V}function ot(T,y){return T instanceof y||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===y.name}function Ut(T){return T!==T}const Oe=function(){const T="0123456789abcdef",y=new Array(256);for(let b=0;b<16;++b){const N=b*16;for(let V=0;V<16;++V)y[N+V]=T[b]+T[V]}return y}();function De(T){return typeof BigInt>"u"?$t:T}function $t(){throw new Error("BigInt not supported")}})(th);const l1=th.Buffer;function dt(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}re.inherits(dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rh=dt.prototype,ih={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ih[e]={value:e}}),Object.defineProperties(dt,ih),Object.defineProperty(rh,"isAxiosError",{value:!0}),dt.from=(e,t,n,i,o,a)=>{const u=Object.create(rh);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),dt.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const f1=null;function qu(e){return re.isPlainObject(e)||re.isArray(e)}function sh(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function oh(e,t,n){return e?e.concat(t).map(function(o,a){return o=sh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function h1(e){return re.isArray(e)&&!e.some(qu)}const d1=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,v){return!re.isUndefined(v[A])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function d(S){if(S===null)return"";if(re.isDate(S))return S.toISOString();if(!f&&re.isBlob(S))throw new dt("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(S)||re.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):l1.from(S):S}function g(S,A,v){let R=S;if(S&&!v&&typeof S=="object"){if(re.endsWith(A,"{}"))A=i?A:A.slice(0,-2),S=JSON.stringify(S);else if(re.isArray(S)&&h1(S)||(re.isFileList(S)||re.endsWith(A,"[]"))&&(R=re.toArray(S)))return A=sh(A),R.forEach(function(C,x){!(re.isUndefined(C)||C===null)&&t.append(u===!0?oh([A],x,a):u===null?A:A+"[]",d(C))}),!1}return qu(S)?!0:(t.append(oh(v,A,a),d(S)),!1)}const p=[],w=Object.assign(d1,{defaultVisitor:g,convertValue:d,isVisitable:qu});function k(S,A){if(!re.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+A.join("."));p.push(S),re.forEach(S,function(R,L){(!(re.isUndefined(R)||R===null)&&o.call(t,R,re.isString(L)?L.trim():L,A,w))===!0&&k(R,A?A.concat(L):[L])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return k(e),t}function ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Wu(e,t){this._pairs=[],e&&Ko(e,this,t)}const uh=Wu.prototype;uh.append=function(t,n){this._pairs.push([t,n])},uh.toString=function(t){const n=t?function(i){return t.call(this,i,ah)}:ah;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function p1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ch(e,t,n){if(!t)return e;const i=n&&n.encode||p1,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Wu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class lh{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(i){i!==null&&t(i)})}}const fh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g1=typeof URLSearchParams<"u"?URLSearchParams:Wu,y1=typeof FormData<"u"?FormData:null,m1=typeof Blob<"u"?Blob:null,b1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),v1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pr={classes:{URLSearchParams:g1,FormData:y1,Blob:m1},isStandardBrowserEnv:b1,isStandardBrowserWebWorkerEnv:v1,protocols:["http","https","file","blob","url","data"]};function w1(e,t){return Ko(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return pr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function S1(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function A1(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function hh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&re.isArray(o)?o.length:u,f?(re.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!re.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&re.isArray(o[u])&&(o[u]=A1(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(S1(i),o,n,0)}),n}return null}const E1={"Content-Type":void 0};function x1(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Vi={transitional:fh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return o&&o?JSON.stringify(hh(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return w1(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ko(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),x1(t)):t}],transformResponse:[function(t){const n=this.transitional||Vi.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&re.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?dt.from(l,dt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Vi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Vi.headers[t]=re.merge(E1)});const C1=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_1=e=>{const t={};let n,i,o;return e&&e.split(`
100
- `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&C1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},dh=Symbol("internals");function Bs(e){return e&&String(e).trim().toLowerCase()}function Ho(e){return e===!1||e==null?e:re.isArray(e)?e.map(Ho):String(e)}function k1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const T1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ku(e,t,n,i,o){if(re.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!re.isString(t)){if(re.isString(i))return t.indexOf(i)!==-1;if(re.isRegExp(i))return i.test(t)}}function O1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function I1(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,d){const g=Bs(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=Ho(l))}const u=(l,f)=>re.forEach(l,(d,g)=>a(d,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!T1(t)?u(_1(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Bs(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return k1(o);if(re.isFunction(n))return n.call(this,o,i);if(re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bs(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Ku(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Bs(u),u){const l=re.findKey(i,u);l&&(!n||Ku(i,i[l],l,n))&&(delete i[l],o=!0)}}return re.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||Ku(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return re.forEach(this,(o,a)=>{const u=re.findKey(i,a);if(u){n[u]=Ho(o),delete n[a];return}const l=t?O1(a):String(a).trim();l!==a&&delete n[a],n[l]=Ho(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
101
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[dh]=this[dh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Bs(u);i[l]||(I1(o,u),i[l]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.freezeMethods($n.prototype),re.freezeMethods($n);function Hu(e,t){const n=this||Vi,i=t||n,o=$n.from(i.headers);let a=i.data;return re.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function ph(e){return!!(e&&e.__CANCEL__)}function Ds(e,t,n){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ds,dt,{__CANCEL__:!0});function F1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dt("Request failed with status code "+n.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const B1=pr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),re.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),re.isString(a)&&f.push("path="+a),re.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function D1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function gh(e,t){return e&&!D1(t)?P1(e,t):t}const R1=pr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=re.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function N1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function L1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),g=i[a];u||(u=d),n[o]=f,i[o]=d;let p=a,w=0;for(;p!==o;)w+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const k=g&&d-g;return k?Math.round(w*1e3/k):void 0}}function yh(e,t){let n=0;const i=L1(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),d=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const zo={http:f1,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}re.isFormData(o)&&(pr.isStandardBrowserEnv||pr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(k+":"+S))}const g=gh(e.baseURL,e.url);d.open(e.method.toUpperCase(),ch(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const k=$n.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:k,config:e,request:d};F1(function(R){n(R),f()},function(R){i(R),f()},A),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new dt("Request aborted",dt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){i(new dt("Network Error",dt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||fh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new dt(S,A.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,e,d)),d=null},pr.isStandardBrowserEnv){const k=(e.withCredentials||R1(g))&&e.xsrfCookieName&&B1.read(e.xsrfCookieName);k&&a.set(e.xsrfHeaderName,k)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(S,A){d.setRequestHeader(A,S)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",yh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",yh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=k=>{d&&(i(!k||k.type?new Ds(null,e,d):k),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const w=N1(g);if(w&&pr.protocols.indexOf(w)===-1){i(new dt("Unsupported protocol "+w+":",dt.ERR_BAD_REQUEST,e));return}d.send(o||null)})}};re.forEach(zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const j1={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=re.isString(n)?zo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new dt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(zo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!re.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:zo};function zu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ds(null,e)}function mh(e){return zu(e),e.headers=$n.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),j1.getAdapter(e.adapter||Vi.adapter)(e).then(function(i){return zu(e),i.data=Hu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return ph(i)||(zu(e),i&&i.response&&(i.response.data=Hu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const bh=e=>e instanceof $n?e.toJSON():e;function qi(e,t){t=t||{};const n={};function i(d,g,p){return re.isPlainObject(d)&&re.isPlainObject(g)?re.merge.call({caseless:p},d,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(d,g,p){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d,p)}else return i(d,g,p)}function a(d,g){if(!re.isUndefined(g))return i(void 0,g)}function u(d,g){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,g)}function l(d,g,p){if(p in t)return i(d,g);if(p in e)return i(void 0,d)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,g)=>o(bh(d),bh(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,w=p(e[g],t[g],g);re.isUndefined(w)&&p!==l||(n[g]=w)}),n}const vh="1.4.0",Gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const wh={};Gu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+vh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new dt(o(u," has been removed"+(n?" in "+n:"")),dt.ERR_DEPRECATED);return n&&!wh[u]&&(wh[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function $1(e,t,n){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new dt("option "+a+" must be "+f,dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new dt("Unknown option "+a,dt.ERR_BAD_OPTION)}}const Ju={assertOptions:$1,validators:Gu},$r=Ju.validators;let li=class{constructor(t){this.defaults=t,this.interceptors={request:new lh,response:new lh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Ju.assertOptions(i,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Ju.assertOptions(o,{encode:$r.function,serialize:$r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&re.merge(a.common,a[n.method]),u&&re.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(f=f&&A.synchronous,l.unshift(A.fulfilled,A.rejected))});const d=[];this.interceptors.response.forEach(function(A){d.push(A.fulfilled,A.rejected)});let g,p=0,w;if(!f){const S=[mh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,d),w=S.length,g=Promise.resolve(n);p<w;)g=g.then(S[p++],S[p++]);return g}w=l.length;let k=n;for(p=0;p<w;){const S=l[p++],A=l[p++];try{k=S(k)}catch(v){A.call(this,v);break}}try{g=mh.call(this,k)}catch(S){return Promise.reject(S)}for(p=0,w=d.length;p<w;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=qi(this.defaults,t);const n=gh(t.baseURL,t.url);return ch(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){li.prototype[t]=function(n,i){return this.request(qi(i||{},{method:t,url:n,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(qi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}li.prototype[t]=n(),li.prototype[t+"Form"]=n(!0)});let M1=class sy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ds(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new sy(function(o){t=o}),cancel:t}}};function U1(e){return function(n){return e.apply(null,n)}}function V1(e){return re.isObject(e)&&e.isAxiosError===!0}const Yu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yu).forEach(([e,t])=>{Yu[t]=e});function Sh(e){const t=new li(e),n=Kf(li.prototype.request,t);return re.extend(n,li.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sh(qi(e,o))},n}const it=Sh(Vi);it.Axios=li,it.CanceledError=Ds,it.CancelToken=M1,it.isCancel=ph,it.VERSION=vh,it.toFormData=Ko,it.AxiosError=dt,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=U1,it.isAxiosError=V1,it.mergeConfig=qi,it.AxiosHeaders=$n,it.formToJSON=e=>hh(re.isHTMLForm(e)?new FormData(e):e),it.HttpStatusCode=Yu,it.default=it;const{Axios:yT,AxiosError:mT,CanceledError:bT,isCancel:vT,CancelToken:wT,VERSION:ST,all:AT,Cancel:ET,isAxiosError:Go,spread:xT,toFormData:CT,AxiosHeaders:_T,HttpStatusCode:kT,formToJSON:TT,mergeConfig:OT}=it,Jo=async({endpoint:e,body:t})=>it.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Yo=async({endpoint:e,body:t})=>it.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Xu=async({endpoint:e})=>it.delete(e),Qu=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Xu({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return F.jsx(z.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&F.jsx(z.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},q1=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>Xu({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return F.jsx(z.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&F.jsx(z.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},Ah=()=>{const{token:e}=z.theme.useToken();return F.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},Eh=()=>{const{token:e}=z.theme.useToken();return F.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},W1={ContentContainer:Qe.div`
99
+ */(function(e){const t=Wo,n=Vu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=I,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const T=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(T,y),T.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function d(T){if(T>o)throw new RangeError('The value "'+T+'" is invalid for option "size"');const y=new a(T);return Object.setPrototypeOf(y,g.prototype),y}function g(T,y,b){if(typeof T=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(T)}return p(T,y,b)}g.poolSize=8192;function p(T,y,b){if(typeof T=="string")return A(T,y);if(u.isView(T))return R(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(ot(T,u)||T&&ot(T.buffer,u)||typeof l<"u"&&(ot(T,l)||T&&ot(T.buffer,l)))return N(T,y,b);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=T.valueOf&&T.valueOf();if(L!=null&&L!==T)return g.from(L,y,b);const V=C(T);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return g.from(T[Symbol.toPrimitive]("string"),y,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}g.from=function(T,y,b){return p(T,y,b)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function w(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function k(T,y,b){return w(T),T<=0?d(T):y!==void 0?typeof b=="string"?d(T).fill(y,b):d(T).fill(y):d(T)}g.alloc=function(T,y,b){return k(T,y,b)};function S(T){return w(T),d(T<0?0:x(T)|0)}g.allocUnsafe=function(T){return S(T)},g.allocUnsafeSlow=function(T){return S(T)};function A(T,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const b=O(T,y)|0;let L=d(b);const V=L.write(T,y);return V!==b&&(L=L.slice(0,V)),L}function v(T){const y=T.length<0?0:x(T.length)|0,b=d(y);for(let L=0;L<y;L+=1)b[L]=T[L]&255;return b}function R(T){if(ot(T,a)){const y=new a(T);return N(y.buffer,y.byteOffset,y.byteLength)}return v(T)}function N(T,y,b){if(y<0||T.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');let L;return y===void 0&&b===void 0?L=new a(T):b===void 0?L=new a(T,y):L=new a(T,y,b),Object.setPrototypeOf(L,g.prototype),L}function C(T){if(g.isBuffer(T)){const y=x(T.length)|0,b=d(y);return b.length===0||T.copy(b,0,0,y),b}if(T.length!==void 0)return typeof T.length!="number"||Ut(T.length)?d(0):v(T);if(T.type==="Buffer"&&Array.isArray(T.data))return v(T.data)}function x(T){if(T>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return T|0}function I(T){return+T!=T&&(T=0),g.alloc(+T)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,b){if(ot(y,a)&&(y=g.from(y,y.offset,y.byteLength)),ot(b,a)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(y)||!g.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;let L=y.length,V=b.length;for(let G=0,ee=Math.min(L,V);G<ee;++G)if(y[G]!==b[G]){L=y[G],V=b[G];break}return L<V?-1:V<L?1:0},g.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let L;if(b===void 0)for(b=0,L=0;L<y.length;++L)b+=y[L].length;const V=g.allocUnsafe(b);let G=0;for(L=0;L<y.length;++L){let ee=y[L];if(ot(ee,a))G+ee.length>V.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(g.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function O(T,y){if(g.isBuffer(T))return T.length;if(u.isView(T)||ot(T,u))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const b=T.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&b===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return pt(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Ze(T).length;default:if(V)return L?-1:pt(T).length;y=(""+y).toLowerCase(),V=!0}}g.byteLength=O;function D(T,y,b){let L=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,y>>>=0,b<=y))return"";for(T||(T="utf8");;)switch(T){case"hex":return nt(this,y,b);case"utf8":case"utf-8":return Fe(this,y,b);case"ascii":return Ee(this,y,b);case"latin1":case"binary":return we(this,y,b);case"base64":return Pe(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,y,b);default:if(L)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),L=!0}}g.prototype._isBuffer=!0;function W(T,y,b){const L=T[y];T[y]=T[b],T[b]=L}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<y;b+=2)W(this,b,b+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<y;b+=4)W(this,b,b+3),W(this,b+1,b+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<y;b+=8)W(this,b,b+7),W(this,b+1,b+6),W(this,b+2,b+5),W(this,b+3,b+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Fe(this,0,y):D.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,b,L,V,G){if(ot(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),L===void 0&&(L=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),b<0||L>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&b>=L)return 0;if(V>=G)return-1;if(b>=L)return 1;if(b>>>=0,L>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Me=L-b;const yt=Math.min(ee,Me),lt=this.slice(V,G),gt=y.slice(b,L);for(let at=0;at<yt;++at)if(lt[at]!==gt[at]){ee=lt[at],Me=gt[at];break}return ee<Me?-1:Me<ee?1:0};function Q(T,y,b,L,V){if(T.length===0)return-1;if(typeof b=="string"?(L=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Ut(b)&&(b=V?0:T.length-1),b<0&&(b=T.length+b),b>=T.length){if(V)return-1;b=T.length-1}else if(b<0)if(V)b=0;else return-1;if(typeof y=="string"&&(y=g.from(y,L)),g.isBuffer(y))return y.length===0?-1:ce(T,y,b,L,V);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(T,y,b):a.prototype.lastIndexOf.call(T,y,b):ce(T,[y],b,L,V);throw new TypeError("val must be string, number or Buffer")}function ce(T,y,b,L,V){let G=1,ee=T.length,Me=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(T.length<2||y.length<2)return-1;G=2,ee/=2,Me/=2,b/=2}function yt(gt,at){return G===1?gt[at]:gt.readUInt16BE(at*G)}let lt;if(V){let gt=-1;for(lt=b;lt<ee;lt++)if(yt(T,lt)===yt(y,gt===-1?0:lt-gt)){if(gt===-1&&(gt=lt),lt-gt+1===Me)return gt*G}else gt!==-1&&(lt-=lt-gt),gt=-1}else for(b+Me>ee&&(b=ee-Me),lt=b;lt>=0;lt--){let gt=!0;for(let at=0;at<Me;at++)if(yt(T,lt+at)!==yt(y,at)){gt=!1;break}if(gt)return lt}return-1}g.prototype.includes=function(y,b,L){return this.indexOf(y,b,L)!==-1},g.prototype.indexOf=function(y,b,L){return Q(this,y,b,L,!0)},g.prototype.lastIndexOf=function(y,b,L){return Q(this,y,b,L,!1)};function fe(T,y,b,L){b=Number(b)||0;const V=T.length-b;L?(L=Number(L),L>V&&(L=V)):L=V;const G=y.length;L>G/2&&(L=G/2);let ee;for(ee=0;ee<L;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(Ut(Me))return ee;T[b+ee]=Me}return ee}function ge(T,y,b,L){return xt(pt(y,T.length-b),T,b,L)}function ye(T,y,b,L){return xt(Et(y),T,b,L)}function pe(T,y,b,L){return xt(Ze(y),T,b,L)}function he(T,y,b,L){return xt(me(y,T.length-b),T,b,L)}g.prototype.write=function(y,b,L,V){if(b===void 0)V="utf8",L=this.length,b=0;else if(L===void 0&&typeof b=="string")V=b,L=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(L)?(L=L>>>0,V===void 0&&(V="utf8")):(V=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-b;if((L===void 0||L>G)&&(L=G),y.length>0&&(L<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return fe(this,y,b,L);case"utf8":case"utf-8":return ge(this,y,b,L);case"ascii":case"latin1":case"binary":return ye(this,y,b,L);case"base64":return pe(this,y,b,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,y,b,L);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pe(T,y,b){return y===0&&b===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(y,b))}function Fe(T,y,b){b=Math.min(T.length,b);const L=[];let V=y;for(;V<b;){const G=T[V];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(V+Me<=b){let yt,lt,gt,at;switch(Me){case 1:G<128&&(ee=G);break;case 2:yt=T[V+1],(yt&192)===128&&(at=(G&31)<<6|yt&63,at>127&&(ee=at));break;case 3:yt=T[V+1],lt=T[V+2],(yt&192)===128&&(lt&192)===128&&(at=(G&15)<<12|(yt&63)<<6|lt&63,at>2047&&(at<55296||at>57343)&&(ee=at));break;case 4:yt=T[V+1],lt=T[V+2],gt=T[V+3],(yt&192)===128&&(lt&192)===128&&(gt&192)===128&&(at=(G&15)<<18|(yt&63)<<12|(lt&63)<<6|gt&63,at>65535&&at<1114112&&(ee=at))}}ee===null?(ee=65533,Me=1):ee>65535&&(ee-=65536,L.push(ee>>>10&1023|55296),ee=56320|ee&1023),L.push(ee),V+=Me}return qe(L)}const _e=4096;function qe(T){const y=T.length;if(y<=_e)return String.fromCharCode.apply(String,T);let b="",L=0;for(;L<y;)b+=String.fromCharCode.apply(String,T.slice(L,L+=_e));return b}function Ee(T,y,b){let L="";b=Math.min(T.length,b);for(let V=y;V<b;++V)L+=String.fromCharCode(T[V]&127);return L}function we(T,y,b){let L="";b=Math.min(T.length,b);for(let V=y;V<b;++V)L+=String.fromCharCode(T[V]);return L}function nt(T,y,b){const L=T.length;(!y||y<0)&&(y=0),(!b||b<0||b>L)&&(b=L);let V="";for(let G=y;G<b;++G)V+=Oe[T[G]];return V}function J(T,y,b){const L=T.slice(y,b);let V="";for(let G=0;G<L.length-1;G+=2)V+=String.fromCharCode(L[G]+L[G+1]*256);return V}g.prototype.slice=function(y,b){const L=this.length;y=~~y,b=b===void 0?L:~~b,y<0?(y+=L,y<0&&(y=0)):y>L&&(y=L),b<0?(b+=L,b<0&&(b=0)):b>L&&(b=L),b<y&&(b=y);const V=this.subarray(y,b);return Object.setPrototypeOf(V,g.prototype),V};function X(T,y,b){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+y>b)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let V=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)V+=this[y+ee]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let V=this[y+--b],G=1;for(;b>0&&(G*=256);)V+=this[y+--b]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&ke(y,this.length-8);const V=b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+L*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&ke(y,this.length-8);const V=b*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let V=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)V+=this[y+ee]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*b)),V},g.prototype.readIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let V=b,G=1,ee=this[y+--V];for(;V>0&&(G*=256);)ee+=this[y+--V]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*b)),ee},g.prototype.readInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},g.prototype.readInt16BE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},g.prototype.readInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&ke(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(V)<<BigInt(32))+BigInt(b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=De(function(y){y=y>>>0,Se(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&ke(y,this.length-8);const V=(b<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(V)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L)}),g.prototype.readFloatLE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!1,52,8)};function oe(T,y,b,L,V,G){if(!g.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>V||y<G)throw new RangeError('"value" argument is out of bounds');if(b+L>T.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,b,L,V){if(y=+y,b=b>>>0,L=L>>>0,!V){const Me=Math.pow(2,8*L)-1;oe(this,y,b,L,Me,0)}let G=1,ee=0;for(this[b]=y&255;++ee<L&&(G*=256);)this[b+ee]=y/G&255;return b+L},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,b,L,V){if(y=+y,b=b>>>0,L=L>>>0,!V){const Me=Math.pow(2,8*L)-1;oe(this,y,b,L,Me,0)}let G=L-1,ee=1;for(this[b+G]=y&255;--G>=0&&(ee*=256);)this[b+G]=y/ee&255;return b+L},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,1,255,0),this[b]=y&255,b+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,4,4294967295,0),this[b+3]=y>>>24,this[b+2]=y>>>16,this[b+1]=y>>>8,this[b]=y&255,b+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,4,4294967295,0),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4};function Ce(T,y,b,L,V){jt(y,L,V,T,b,7);let G=Number(y&BigInt(4294967295));T[b++]=G,G=G>>8,T[b++]=G,G=G>>8,T[b++]=G,G=G>>8,T[b++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return T[b++]=ee,ee=ee>>8,T[b++]=ee,ee=ee>>8,T[b++]=ee,ee=ee>>8,T[b++]=ee,b}function We(T,y,b,L,V){jt(y,L,V,T,b,7);let G=Number(y&BigInt(4294967295));T[b+7]=G,G=G>>8,T[b+6]=G,G=G>>8,T[b+5]=G,G=G>>8,T[b+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return T[b+3]=ee,ee=ee>>8,T[b+2]=ee,ee=ee>>8,T[b+1]=ee,ee=ee>>8,T[b]=ee,b+8}g.prototype.writeBigUInt64LE=De(function(y,b=0){return Ce(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=De(function(y,b=0){return We(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,b,L,V){if(y=+y,b=b>>>0,!V){const yt=Math.pow(2,8*L-1);oe(this,y,b,L,yt-1,-yt)}let G=0,ee=1,Me=0;for(this[b]=y&255;++G<L&&(ee*=256);)y<0&&Me===0&&this[b+G-1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+L},g.prototype.writeIntBE=function(y,b,L,V){if(y=+y,b=b>>>0,!V){const yt=Math.pow(2,8*L-1);oe(this,y,b,L,yt-1,-yt)}let G=L-1,ee=1,Me=0;for(this[b+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[b+G+1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+L},g.prototype.writeInt8=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},g.prototype.writeInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},g.prototype.writeInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},g.prototype.writeInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,4,2147483647,-2147483648),this[b]=y&255,this[b+1]=y>>>8,this[b+2]=y>>>16,this[b+3]=y>>>24,b+4},g.prototype.writeInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4},g.prototype.writeBigInt64LE=De(function(y,b=0){return Ce(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=De(function(y,b=0){return We(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xe(T,y,b,L,V,G){if(b+L>T.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Be(T,y,b,L,V){return y=+y,b=b>>>0,V||xe(T,y,b,4),n.write(T,y,b,L,23,4),b+4}g.prototype.writeFloatLE=function(y,b,L){return Be(this,y,b,!0,L)},g.prototype.writeFloatBE=function(y,b,L){return Be(this,y,b,!1,L)};function $e(T,y,b,L,V){return y=+y,b=b>>>0,V||xe(T,y,b,8),n.write(T,y,b,L,52,8),b+8}g.prototype.writeDoubleLE=function(y,b,L){return $e(this,y,b,!0,L)},g.prototype.writeDoubleBE=function(y,b,L){return $e(this,y,b,!1,L)},g.prototype.copy=function(y,b,L,V){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!V&&V!==0&&(V=this.length),b>=y.length&&(b=y.length),b||(b=0),V>0&&V<L&&(V=L),V===L||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),y.length-b<V-L&&(V=y.length-b+L);const G=V-L;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,L,V):a.prototype.set.call(y,this.subarray(L,V),b),G},g.prototype.fill=function(y,b,L,V){if(typeof y=="string"){if(typeof b=="string"?(V=b,b=0,L=this.length):typeof L=="string"&&(V=L,L=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(y.length===1){const ee=y.charCodeAt(0);(V==="utf8"&&ee<128||V==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(b<0||this.length<b||this.length<L)throw new RangeError("Out of range index");if(L<=b)return this;b=b>>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let G;if(typeof y=="number")for(G=b;G<L;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,V),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<L-b;++G)this[G+b]=ee[G%Me]}return this};const Le={};function Tt(T,y,b){Le[T]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(T,y){return`The "${T}" argument must be of type number. Received type ${typeof y}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(T,y,b){let L=`The value of "${T}" is out of range.`,V=b;return Number.isInteger(b)&&Math.abs(b)>2**32?V=on(String(b)):typeof b=="bigint"&&(V=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(V=on(V)),V+="n"),L+=` It must be ${y}. Received ${V}`,L},RangeError);function on(T){let y="",b=T.length;const L=T[0]==="-"?1:0;for(;b>=L+4;b-=3)y=`_${T.slice(b-3,b)}${y}`;return`${T.slice(0,b)}${y}`}function Nt(T,y,b){Se(y,"offset"),(T[y]===void 0||T[y+b]===void 0)&&ke(y,T.length-(b+1))}function jt(T,y,b,L,V,G){if(T>b||T<y){const ee=typeof y=="bigint"?"n":"";let Me;throw y===0||y===BigInt(0)?Me=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Me=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Le.ERR_OUT_OF_RANGE("value",Me,T)}Nt(L,V,G)}function Se(T,y){if(typeof T!="number")throw new Le.ERR_INVALID_ARG_TYPE(y,"number",T)}function ke(T,y,b){throw Math.floor(T)!==T?(Se(T,b),new Le.ERR_OUT_OF_RANGE("offset","an integer",T)):y<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,T)}const He=/[^+/0-9A-Za-z-_]/g;function Ot(T){if(T=T.split("=")[0],T=T.trim().replace(He,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function pt(T,y){y=y||1/0;let b;const L=T.length;let V=null;const G=[];for(let ee=0;ee<L;++ee){if(b=T.charCodeAt(ee),b>55295&&b<57344){if(!V){if(b>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===L){(y-=3)>-1&&G.push(239,191,189);continue}V=b;continue}if(b<56320){(y-=3)>-1&&G.push(239,191,189),V=b;continue}b=(V-55296<<10|b-56320)+65536}else V&&(y-=3)>-1&&G.push(239,191,189);if(V=null,b<128){if((y-=1)<0)break;G.push(b)}else if(b<2048){if((y-=2)<0)break;G.push(b>>6|192,b&63|128)}else if(b<65536){if((y-=3)<0)break;G.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((y-=4)<0)break;G.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return G}function Et(T){const y=[];for(let b=0;b<T.length;++b)y.push(T.charCodeAt(b)&255);return y}function me(T,y){let b,L,V;const G=[];for(let ee=0;ee<T.length&&!((y-=2)<0);++ee)b=T.charCodeAt(ee),L=b>>8,V=b%256,G.push(V),G.push(L);return G}function Ze(T){return t.toByteArray(Ot(T))}function xt(T,y,b,L){let V;for(V=0;V<L&&!(V+b>=y.length||V>=T.length);++V)y[V+b]=T[V];return V}function ot(T,y){return T instanceof y||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===y.name}function Ut(T){return T!==T}const Oe=function(){const T="0123456789abcdef",y=new Array(256);for(let b=0;b<16;++b){const L=b*16;for(let V=0;V<16;++V)y[L+V]=T[b]+T[V]}return y}();function De(T){return typeof BigInt>"u"?$t:T}function $t(){throw new Error("BigInt not supported")}})(th);const c1=th.Buffer;function dt(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}re.inherits(dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rh=dt.prototype,ih={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ih[e]={value:e}}),Object.defineProperties(dt,ih),Object.defineProperty(rh,"isAxiosError",{value:!0}),dt.from=(e,t,n,i,o,a)=>{const u=Object.create(rh);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),dt.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const l1=null;function qu(e){return re.isPlainObject(e)||re.isArray(e)}function sh(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function oh(e,t,n){return e?e.concat(t).map(function(o,a){return o=sh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function f1(e){return re.isArray(e)&&!e.some(qu)}const h1=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,v){return!re.isUndefined(v[A])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function d(S){if(S===null)return"";if(re.isDate(S))return S.toISOString();if(!f&&re.isBlob(S))throw new dt("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(S)||re.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):c1.from(S):S}function g(S,A,v){let R=S;if(S&&!v&&typeof S=="object"){if(re.endsWith(A,"{}"))A=i?A:A.slice(0,-2),S=JSON.stringify(S);else if(re.isArray(S)&&f1(S)||(re.isFileList(S)||re.endsWith(A,"[]"))&&(R=re.toArray(S)))return A=sh(A),R.forEach(function(C,x){!(re.isUndefined(C)||C===null)&&t.append(u===!0?oh([A],x,a):u===null?A:A+"[]",d(C))}),!1}return qu(S)?!0:(t.append(oh(v,A,a),d(S)),!1)}const p=[],w=Object.assign(h1,{defaultVisitor:g,convertValue:d,isVisitable:qu});function k(S,A){if(!re.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+A.join("."));p.push(S),re.forEach(S,function(R,N){(!(re.isUndefined(R)||R===null)&&o.call(t,R,re.isString(N)?N.trim():N,A,w))===!0&&k(R,A?A.concat(N):[N])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return k(e),t}function ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Wu(e,t){this._pairs=[],e&&Ko(e,this,t)}const uh=Wu.prototype;uh.append=function(t,n){this._pairs.push([t,n])},uh.toString=function(t){const n=t?function(i){return t.call(this,i,ah)}:ah;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function d1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ch(e,t,n){if(!t)return e;const i=n&&n.encode||d1,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Wu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class lh{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(i){i!==null&&t(i)})}}const fh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p1=typeof URLSearchParams<"u"?URLSearchParams:Wu,g1=typeof FormData<"u"?FormData:null,y1=typeof Blob<"u"?Blob:null,m1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),b1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pr={classes:{URLSearchParams:p1,FormData:g1,Blob:y1},isStandardBrowserEnv:m1,isStandardBrowserWebWorkerEnv:b1,protocols:["http","https","file","blob","url","data"]};function v1(e,t){return Ko(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return pr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function w1(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S1(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function hh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&re.isArray(o)?o.length:u,f?(re.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!re.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&re.isArray(o[u])&&(o[u]=S1(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(w1(i),o,n,0)}),n}return null}const A1={"Content-Type":void 0};function E1(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Vi={transitional:fh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return o&&o?JSON.stringify(hh(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return v1(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ko(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),E1(t)):t}],transformResponse:[function(t){const n=this.transitional||Vi.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&re.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?dt.from(l,dt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Vi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Vi.headers[t]=re.merge(A1)});const x1=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C1=e=>{const t={};let n,i,o;return e&&e.split(`
100
+ `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&x1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},dh=Symbol("internals");function Bs(e){return e&&String(e).trim().toLowerCase()}function Ho(e){return e===!1||e==null?e:re.isArray(e)?e.map(Ho):String(e)}function _1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const k1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ku(e,t,n,i,o){if(re.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!re.isString(t)){if(re.isString(i))return t.indexOf(i)!==-1;if(re.isRegExp(i))return i.test(t)}}function T1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function O1(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,d){const g=Bs(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=Ho(l))}const u=(l,f)=>re.forEach(l,(d,g)=>a(d,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!k1(t)?u(C1(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Bs(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return _1(o);if(re.isFunction(n))return n.call(this,o,i);if(re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bs(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Ku(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Bs(u),u){const l=re.findKey(i,u);l&&(!n||Ku(i,i[l],l,n))&&(delete i[l],o=!0)}}return re.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||Ku(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return re.forEach(this,(o,a)=>{const u=re.findKey(i,a);if(u){n[u]=Ho(o),delete n[a];return}const l=t?T1(a):String(a).trim();l!==a&&delete n[a],n[l]=Ho(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
101
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[dh]=this[dh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Bs(u);i[l]||(O1(o,u),i[l]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.freezeMethods($n.prototype),re.freezeMethods($n);function Hu(e,t){const n=this||Vi,i=t||n,o=$n.from(i.headers);let a=i.data;return re.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function ph(e){return!!(e&&e.__CANCEL__)}function Ds(e,t,n){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ds,dt,{__CANCEL__:!0});function I1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dt("Request failed with status code "+n.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const F1=pr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),re.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),re.isString(a)&&f.push("path="+a),re.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function B1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function D1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function gh(e,t){return e&&!B1(t)?D1(e,t):t}const P1=pr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=re.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function R1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function L1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),g=i[a];u||(u=d),n[o]=f,i[o]=d;let p=a,w=0;for(;p!==o;)w+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const k=g&&d-g;return k?Math.round(w*1e3/k):void 0}}function yh(e,t){let n=0;const i=L1(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),d=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const zo={http:l1,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}re.isFormData(o)&&(pr.isStandardBrowserEnv||pr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(k+":"+S))}const g=gh(e.baseURL,e.url);d.open(e.method.toUpperCase(),ch(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const k=$n.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:k,config:e,request:d};I1(function(R){n(R),f()},function(R){i(R),f()},A),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new dt("Request aborted",dt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){i(new dt("Network Error",dt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||fh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new dt(S,A.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,e,d)),d=null},pr.isStandardBrowserEnv){const k=(e.withCredentials||P1(g))&&e.xsrfCookieName&&F1.read(e.xsrfCookieName);k&&a.set(e.xsrfHeaderName,k)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(S,A){d.setRequestHeader(A,S)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",yh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",yh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=k=>{d&&(i(!k||k.type?new Ds(null,e,d):k),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const w=R1(g);if(w&&pr.protocols.indexOf(w)===-1){i(new dt("Unsupported protocol "+w+":",dt.ERR_BAD_REQUEST,e));return}d.send(o||null)})}};re.forEach(zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const N1={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=re.isString(n)?zo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new dt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(zo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!re.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:zo};function zu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ds(null,e)}function mh(e){return zu(e),e.headers=$n.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),N1.getAdapter(e.adapter||Vi.adapter)(e).then(function(i){return zu(e),i.data=Hu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return ph(i)||(zu(e),i&&i.response&&(i.response.data=Hu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const bh=e=>e instanceof $n?e.toJSON():e;function qi(e,t){t=t||{};const n={};function i(d,g,p){return re.isPlainObject(d)&&re.isPlainObject(g)?re.merge.call({caseless:p},d,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(d,g,p){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d,p)}else return i(d,g,p)}function a(d,g){if(!re.isUndefined(g))return i(void 0,g)}function u(d,g){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,g)}function l(d,g,p){if(p in t)return i(d,g);if(p in e)return i(void 0,d)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,g)=>o(bh(d),bh(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,w=p(e[g],t[g],g);re.isUndefined(w)&&p!==l||(n[g]=w)}),n}const vh="1.4.0",Gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const wh={};Gu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+vh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new dt(o(u," has been removed"+(n?" in "+n:"")),dt.ERR_DEPRECATED);return n&&!wh[u]&&(wh[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function j1(e,t,n){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new dt("option "+a+" must be "+f,dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new dt("Unknown option "+a,dt.ERR_BAD_OPTION)}}const Ju={assertOptions:j1,validators:Gu},$r=Ju.validators;let li=class{constructor(t){this.defaults=t,this.interceptors={request:new lh,response:new lh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Ju.assertOptions(i,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Ju.assertOptions(o,{encode:$r.function,serialize:$r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&re.merge(a.common,a[n.method]),u&&re.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(f=f&&A.synchronous,l.unshift(A.fulfilled,A.rejected))});const d=[];this.interceptors.response.forEach(function(A){d.push(A.fulfilled,A.rejected)});let g,p=0,w;if(!f){const S=[mh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,d),w=S.length,g=Promise.resolve(n);p<w;)g=g.then(S[p++],S[p++]);return g}w=l.length;let k=n;for(p=0;p<w;){const S=l[p++],A=l[p++];try{k=S(k)}catch(v){A.call(this,v);break}}try{g=mh.call(this,k)}catch(S){return Promise.reject(S)}for(p=0,w=d.length;p<w;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=qi(this.defaults,t);const n=gh(t.baseURL,t.url);return ch(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){li.prototype[t]=function(n,i){return this.request(qi(i||{},{method:t,url:n,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(qi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}li.prototype[t]=n(),li.prototype[t+"Form"]=n(!0)});let $1=class iy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ds(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new iy(function(o){t=o}),cancel:t}}};function M1(e){return function(n){return e.apply(null,n)}}function U1(e){return re.isObject(e)&&e.isAxiosError===!0}const Yu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yu).forEach(([e,t])=>{Yu[t]=e});function Sh(e){const t=new li(e),n=Kf(li.prototype.request,t);return re.extend(n,li.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sh(qi(e,o))},n}const it=Sh(Vi);it.Axios=li,it.CanceledError=Ds,it.CancelToken=$1,it.isCancel=ph,it.VERSION=vh,it.toFormData=Ko,it.AxiosError=dt,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=M1,it.isAxiosError=U1,it.mergeConfig=qi,it.AxiosHeaders=$n,it.formToJSON=e=>hh(re.isHTMLForm(e)?new FormData(e):e),it.HttpStatusCode=Yu,it.default=it;const{Axios:yT,AxiosError:mT,CanceledError:bT,isCancel:vT,CancelToken:wT,VERSION:ST,all:AT,Cancel:ET,isAxiosError:Go,spread:xT,toFormData:CT,AxiosHeaders:_T,HttpStatusCode:kT,formToJSON:TT,mergeConfig:OT}=it,Jo=async({endpoint:e,body:t})=>it.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Yo=async({endpoint:e,body:t})=>it.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Xu=async({endpoint:e})=>it.delete(e),Qu=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Xu({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return F.jsx(z.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&F.jsx(z.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},V1=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>Xu({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return F.jsx(z.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&F.jsx(z.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},Ah=()=>{const{token:e}=z.theme.useToken();return F.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},Eh=()=>{const{token:e}=z.theme.useToken();return F.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},q1={ContentContainer:Qe.div`
102
102
  border: 1px solid ${({$borderColor:e})=>e};
103
103
  border-radius: 6px;
104
104
  background-color: ${({$bgColor:e})=>e};
@@ -108,10 +108,10 @@ React keys must be passed directly to JSX without using spread:
108
108
  flex-grow: ${({$flexGrow:e})=>e};
109
109
  display: ${({$displayFlex:e})=>e?"flex":"block"};
110
110
  flex-flow: ${({$flexFlow:e})=>e};
111
- `},xh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=z.theme.useToken();return F.jsx(W1.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Ch=async({uri:e})=>it.get(e),sn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>wn.useQuery({queryKey:t,queryFn:async()=>{const o=await Ch({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Ct=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),K1=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?F.jsx(Qn.Link,{to:Ct({template:o,replaceValues:t}),children:Ct({template:i,replaceValues:t})}):Ct({template:i,replaceValues:t})})),_h=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Ct({template:o,replaceValues:t}),breadcrumbItems:K1({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>Qn.matchPath(o,n)),Zu={HeightDiv:Qe.div`
111
+ `},xh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=z.theme.useToken();return F.jsx(q1.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Ch=async({uri:e})=>it.get(e),sn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>wn.useQuery({queryKey:t,queryFn:async()=>{const o=await Ch({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Ct=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),W1=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?F.jsx(Qn.Link,{to:Ct({template:o,replaceValues:t}),children:Ct({template:i,replaceValues:t})}):Ct({template:i,replaceValues:t})})),_h=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Ct({template:o,replaceValues:t}),breadcrumbItems:W1({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>Qn.matchPath(o,n)),Zu={HeightDiv:Qe.div`
112
112
  min-height: 22px;
113
113
  width: 100%;
114
- `},kh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=_h({data:i,replaceValues:t,pathname:n});return o?F.jsx(Zu.HeightDiv,{children:F.jsx(z.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):F.jsx(Zu.HeightDiv,{})},H1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=sn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?F.jsx(Zu.HeightDiv,{children:F.jsx(z.Spin,{})}):a?F.jsx(kh,{data:a,replaceValues:i,pathname:o}):null},Th=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Ct({template:o,replaceValues:t}):void 0;return{key:n,label:u?F.jsx(Qn.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Th({rawLinks:a,replaceValues:t}):void 0}}),z1=(e,t)=>{const n=(i,o)=>i.flatMap(a=>{const u=[...o,a.key?a.key:String(a.key)],l=a.internalMetaLink?.startsWith("/")?a.internalMetaLink.slice(1):a.internalMetaLink,f=t.startsWith("/")?t.slice(1):t,d=l===f||l&&u&&l.includes(f)?u:[];let g=[];return"children"in a&&a.children&&(g=n(a.children,u)),[...d,...g]});return n(e,[])},Oh=({data:e,replaceValues:t,pathname:n})=>{const o=e.map(({pathToMatch:l,menuItems:f})=>({pathToMatch:Ct({template:l,replaceValues:t}),menuItems:Th({rawLinks:f,replaceValues:t})})).find(({pathToMatch:l})=>Qn.matchPath(l,n));if(!o)return;const u=(o?.menuItems?z1(o?.menuItems,n):[]).map(l=>typeof l=="string"?l:String(l));return{...o,selectedKeys:u}},G1={CustomMenu:Qe(z.Menu)`
114
+ `},kh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=_h({data:i,replaceValues:t,pathname:n});return o?F.jsx(Zu.HeightDiv,{children:F.jsx(z.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):F.jsx(Zu.HeightDiv,{})},K1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=sn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?F.jsx(Zu.HeightDiv,{children:F.jsx(z.Spin,{})}):a?F.jsx(kh,{data:a,replaceValues:i,pathname:o}):null},Th=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Ct({template:o,replaceValues:t}):void 0;return{key:n,label:u?F.jsx(Qn.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Th({rawLinks:a,replaceValues:t}):void 0}}),H1=(e,t)=>{const n=(i,o)=>i.flatMap(a=>{const u=[...o,a.key?a.key:String(a.key)],l=a.internalMetaLink?.startsWith("/")?a.internalMetaLink.slice(1):a.internalMetaLink,f=t.startsWith("/")?t.slice(1):t,d=l===f||l&&u&&l.includes(f)?u:[];let g=[];return"children"in a&&a.children&&(g=n(a.children,u)),[...d,...g]});return n(e,[])},Oh=({data:e,replaceValues:t,pathname:n})=>{const o=e.map(({pathToMatch:l,menuItems:f})=>({pathToMatch:Ct({template:l,replaceValues:t}),menuItems:Th({rawLinks:f,replaceValues:t})})).find(({pathToMatch:l})=>Qn.matchPath(l,n));if(!o)return;const u=(o?.menuItems?H1(o?.menuItems,n):[]).map(l=>typeof l=="string"?l:String(l));return{...o,selectedKeys:u}},z1={CustomMenu:Qe(z.Menu)`
115
115
  margin-top: 16px;
116
116
  font-size: 14px;
117
117
  line-height: 24px;
@@ -133,16 +133,16 @@ React keys must be passed directly to JSX without using spread:
133
133
  && .ant-menu-sub .ant-menu-item {
134
134
  margin: 0 !important;
135
135
  }
136
- `},Ih=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Oh({data:i,replaceValues:t,pathname:n});return o?F.jsx(G1.CustomMenu,{selectedKeys:o.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:o.menuItems}):null},J1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,hidden:a})=>{const{data:u,isError:l,isLoading:f}=sn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return l?null:f?F.jsx(z.Spin,{}):!u||a?null:F.jsx(Ih,{data:u,replaceValues:i,pathname:o})};var Xo={exports:{}};/**
136
+ `},Ih=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Oh({data:i,replaceValues:t,pathname:n});return o?F.jsx(z1.CustomMenu,{selectedKeys:o.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:o.menuItems}):null},G1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,hidden:a})=>{const{data:u,isError:l,isLoading:f}=sn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return l?null:f?F.jsx(z.Spin,{}):!u||a?null:F.jsx(Ih,{data:u,replaceValues:i,pathname:o})};var Xo={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */Xo.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,g="__lodash_placeholder__",p=1,w=2,k=4,S=1,A=2,v=1,R=2,L=4,C=8,x=16,I=32,O=64,D=128,W=256,Q=512,ce=30,fe="...",ge=800,ye=16,pe=1,he=2,Pe=3,Fe=1/0,_e=9007199254740991,qe=17976931348623157e292,Ee=NaN,we=4294967295,nt=we-1,J=we>>>1,X=[["ary",D],["bind",v],["bindKey",R],["curry",C],["curryRight",x],["flip",Q],["partial",I],["partialRight",O],["rearg",W]],oe="[object Arguments]",Ce="[object Array]",We="[object AsyncFunction]",xe="[object Boolean]",Be="[object Date]",$e="[object DOMException]",Ne="[object Error]",Tt="[object Function]",on="[object GeneratorFunction]",Lt="[object Map]",jt="[object Number]",Se="[object Null]",ke="[object Object]",He="[object Promise]",Ot="[object Proxy]",pt="[object RegExp]",Et="[object Set]",me="[object String]",Ze="[object Symbol]",xt="[object Undefined]",ot="[object WeakMap]",Ut="[object WeakSet]",Oe="[object ArrayBuffer]",De="[object DataView]",$t="[object Float32Array]",T="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",N="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",yt=/\b__p \+= '';/g,lt=/\b(__p \+=) '' \+/g,gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,at=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,vi=RegExp(at.source),os=RegExp(Kr.source),as=/<%-([\s\S]+?)%>/g,us=/<%([\s\S]+?)%>/g,Hr=/<%=([\s\S]+?)%>/g,wi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,no=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kr=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(kr.source),zr=/^\s+/,io=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,Dt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",Si="\\u0300-\\u036f",oo="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Ca=Si+oo+ao,_a="\\u2700-\\u27bf",ka="a-z\\xdf-\\xf6\\xf8-\\xff",qc="\\xac\\xb1\\xd7\\xf7",Wc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kc="\\u2000-\\u206f",Hc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tn="A-Z\\xc0-\\xd6\\xd8-\\xde",cs="\\ufe0e\\ufe0f",uo=qc+Wc+Kc+Hc,ls="['’]",zc="["+Gt+"]",Gr="["+uo+"]",fs="["+Ca+"]",Ta="\\d+",Oa="["+_a+"]",Ia="["+ka+"]",Fa="[^"+Gt+uo+Ta+_a+ka+Tn+"]",h="\\ud83c[\\udffb-\\udfff]",E="(?:"+fs+"|"+h+")",j="[^"+Gt+"]",q="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+Tn+"]",ze="\\u200d",vt="(?:"+Ia+"|"+Fa+")",tn="(?:"+de+"|"+Fa+")",Jt="(?:"+ls+"(?:d|ll|m|re|s|t|ve))?",Gp="(?:"+ls+"(?:D|LL|M|RE|S|T|VE))?",Jp=E+"?",Yp="["+cs+"]?",yA="(?:"+ze+"(?:"+[j,q,ne].join("|")+")"+Yp+Jp+")*",mA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xp=Yp+Jp+yA,vA="(?:"+[Oa,q,ne].join("|")+")"+Xp,wA="(?:"+[j+fs+"?",fs,q,ne,zc].join("|")+")",SA=RegExp(ls,"g"),AA=RegExp(fs,"g"),Gc=RegExp(h+"(?="+h+")|"+wA+Xp,"g"),EA=RegExp([de+"?"+Ia+"+"+Jt+"(?="+[Gr,de,"$"].join("|")+")",tn+"+"+Gp+"(?="+[Gr,de+vt,"$"].join("|")+")",de+"?"+vt+"+"+Jt,de+"+"+Gp,bA,mA,Ta,vA].join("|"),"g"),xA=RegExp("["+ze+Gt+Ca+cs+"]"),CA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_A=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kA=-1,Pt={};Pt[$t]=Pt[T]=Pt[y]=Pt[b]=Pt[N]=Pt[V]=Pt[G]=Pt[ee]=Pt[Me]=!0,Pt[oe]=Pt[Ce]=Pt[Oe]=Pt[xe]=Pt[De]=Pt[Be]=Pt[Ne]=Pt[Tt]=Pt[Lt]=Pt[jt]=Pt[ke]=Pt[pt]=Pt[Et]=Pt[me]=Pt[ot]=!1;var It={};It[oe]=It[Ce]=It[Oe]=It[De]=It[xe]=It[Be]=It[$t]=It[T]=It[y]=It[b]=It[N]=It[Lt]=It[jt]=It[ke]=It[pt]=It[Et]=It[me]=It[Ze]=It[V]=It[G]=It[ee]=It[Me]=!0,It[Ne]=It[Tt]=It[ot]=!1;var TA={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},OA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},IA={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},FA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},BA=parseFloat,DA=parseInt,Qp=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,PA=typeof self=="object"&&self&&self.Object===Object&&self,cn=Qp||PA||Function("return this")(),Jc=t&&!t.nodeType&&t,Ai=Jc&&!0&&e&&!e.nodeType&&e,Zp=Ai&&Ai.exports===Jc,Yc=Zp&&Qp.process,Wn=function(){try{var K=Ai&&Ai.require&&Ai.require("util").types;return K||Yc&&Yc.binding&&Yc.binding("util")}catch{}}(),eg=Wn&&Wn.isArrayBuffer,tg=Wn&&Wn.isDate,ng=Wn&&Wn.isMap,rg=Wn&&Wn.isRegExp,ig=Wn&&Wn.isSet,sg=Wn&&Wn.isTypedArray;function On(K,te,Y){switch(Y.length){case 0:return K.call(te);case 1:return K.call(te,Y[0]);case 2:return K.call(te,Y[0],Y[1]);case 3:return K.call(te,Y[0],Y[1],Y[2])}return K.apply(te,Y)}function RA(K,te,Y,Ae){for(var Ue=-1,wt=K==null?0:K.length;++Ue<wt;){var nn=K[Ue];te(Ae,nn,Y(nn),K)}return Ae}function Kn(K,te){for(var Y=-1,Ae=K==null?0:K.length;++Y<Ae&&te(K[Y],Y,K)!==!1;);return K}function NA(K,te){for(var Y=K==null?0:K.length;Y--&&te(K[Y],Y,K)!==!1;);return K}function og(K,te){for(var Y=-1,Ae=K==null?0:K.length;++Y<Ae;)if(!te(K[Y],Y,K))return!1;return!0}function Jr(K,te){for(var Y=-1,Ae=K==null?0:K.length,Ue=0,wt=[];++Y<Ae;){var nn=K[Y];te(nn,Y,K)&&(wt[Ue++]=nn)}return wt}function Ba(K,te){var Y=K==null?0:K.length;return!!Y&&hs(K,te,0)>-1}function Xc(K,te,Y){for(var Ae=-1,Ue=K==null?0:K.length;++Ae<Ue;)if(Y(te,K[Ae]))return!0;return!1}function Nt(K,te){for(var Y=-1,Ae=K==null?0:K.length,Ue=Array(Ae);++Y<Ae;)Ue[Y]=te(K[Y],Y,K);return Ue}function Yr(K,te){for(var Y=-1,Ae=te.length,Ue=K.length;++Y<Ae;)K[Ue+Y]=te[Y];return K}function Qc(K,te,Y,Ae){var Ue=-1,wt=K==null?0:K.length;for(Ae&&wt&&(Y=K[++Ue]);++Ue<wt;)Y=te(Y,K[Ue],Ue,K);return Y}function LA(K,te,Y,Ae){var Ue=K==null?0:K.length;for(Ae&&Ue&&(Y=K[--Ue]);Ue--;)Y=te(Y,K[Ue],Ue,K);return Y}function Zc(K,te){for(var Y=-1,Ae=K==null?0:K.length;++Y<Ae;)if(te(K[Y],Y,K))return!0;return!1}var jA=el("length");function $A(K){return K.split("")}function MA(K){return K.match(le)||[]}function ag(K,te,Y){var Ae;return Y(K,function(Ue,wt,nn){if(te(Ue,wt,nn))return Ae=wt,!1}),Ae}function Da(K,te,Y,Ae){for(var Ue=K.length,wt=Y+(Ae?1:-1);Ae?wt--:++wt<Ue;)if(te(K[wt],wt,K))return wt;return-1}function hs(K,te,Y){return te===te?QA(K,te,Y):Da(K,ug,Y)}function UA(K,te,Y,Ae){for(var Ue=Y-1,wt=K.length;++Ue<wt;)if(Ae(K[Ue],te))return Ue;return-1}function ug(K){return K!==K}function cg(K,te){var Y=K==null?0:K.length;return Y?nl(K,te)/Y:Ee}function el(K){return function(te){return te==null?n:te[K]}}function tl(K){return function(te){return K==null?n:K[te]}}function lg(K,te,Y,Ae,Ue){return Ue(K,function(wt,nn,_t){Y=Ae?(Ae=!1,wt):te(Y,wt,nn,_t)}),Y}function VA(K,te){var Y=K.length;for(K.sort(te);Y--;)K[Y]=K[Y].value;return K}function nl(K,te){for(var Y,Ae=-1,Ue=K.length;++Ae<Ue;){var wt=te(K[Ae]);wt!==n&&(Y=Y===n?wt:Y+wt)}return Y}function rl(K,te){for(var Y=-1,Ae=Array(K);++Y<K;)Ae[Y]=te(Y);return Ae}function qA(K,te){return Nt(te,function(Y){return[Y,K[Y]]})}function fg(K){return K&&K.slice(0,gg(K)+1).replace(zr,"")}function In(K){return function(te){return K(te)}}function il(K,te){return Nt(te,function(Y){return K[Y]})}function co(K,te){return K.has(te)}function hg(K,te){for(var Y=-1,Ae=K.length;++Y<Ae&&hs(te,K[Y],0)>-1;);return Y}function dg(K,te){for(var Y=K.length;Y--&&hs(te,K[Y],0)>-1;);return Y}function WA(K,te){for(var Y=K.length,Ae=0;Y--;)K[Y]===te&&++Ae;return Ae}var KA=tl(TA),HA=tl(OA);function zA(K){return"\\"+FA[K]}function GA(K,te){return K==null?n:K[te]}function ds(K){return xA.test(K)}function JA(K){return CA.test(K)}function YA(K){for(var te,Y=[];!(te=K.next()).done;)Y.push(te.value);return Y}function sl(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ae,Ue){Y[++te]=[Ue,Ae]}),Y}function pg(K,te){return function(Y){return K(te(Y))}}function Xr(K,te){for(var Y=-1,Ae=K.length,Ue=0,wt=[];++Y<Ae;){var nn=K[Y];(nn===te||nn===g)&&(K[Y]=g,wt[Ue++]=Y)}return wt}function Pa(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ae){Y[++te]=Ae}),Y}function XA(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ae){Y[++te]=[Ae,Ae]}),Y}function QA(K,te,Y){for(var Ae=Y-1,Ue=K.length;++Ae<Ue;)if(K[Ae]===te)return Ae;return-1}function ZA(K,te,Y){for(var Ae=Y+1;Ae--;)if(K[Ae]===te)return Ae;return Ae}function ps(K){return ds(K)?tE(K):jA(K)}function or(K){return ds(K)?nE(K):$A(K)}function gg(K){for(var te=K.length;te--&&io.test(K.charAt(te)););return te}var eE=tl(IA);function tE(K){for(var te=Gc.lastIndex=0;Gc.test(K);)++te;return te}function nE(K){return K.match(Gc)||[]}function rE(K){return K.match(EA)||[]}var iE=function K(te){te=te==null?cn:gs.defaults(cn.Object(),te,gs.pick(cn,_A));var Y=te.Array,Ae=te.Date,Ue=te.Error,wt=te.Function,nn=te.Math,_t=te.Object,ol=te.RegExp,sE=te.String,Hn=te.TypeError,Ra=Y.prototype,oE=wt.prototype,ys=_t.prototype,Na=te["__core-js_shared__"],La=oE.toString,At=ys.hasOwnProperty,aE=0,yg=function(){var r=/[^.]+$/.exec(Na&&Na.keys&&Na.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ja=ys.toString,uE=La.call(_t),cE=cn._,lE=ol("^"+La.call(At).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$a=Zp?te.Buffer:n,Qr=te.Symbol,Ma=te.Uint8Array,mg=$a?$a.allocUnsafe:n,Ua=pg(_t.getPrototypeOf,_t),bg=_t.create,vg=ys.propertyIsEnumerable,Va=Ra.splice,wg=Qr?Qr.isConcatSpreadable:n,lo=Qr?Qr.iterator:n,Ei=Qr?Qr.toStringTag:n,qa=function(){try{var r=Ti(_t,"defineProperty");return r({},"",{}),r}catch{}}(),fE=te.clearTimeout!==cn.clearTimeout&&te.clearTimeout,hE=Ae&&Ae.now!==cn.Date.now&&Ae.now,dE=te.setTimeout!==cn.setTimeout&&te.setTimeout,Wa=nn.ceil,Ka=nn.floor,al=_t.getOwnPropertySymbols,pE=$a?$a.isBuffer:n,Sg=te.isFinite,gE=Ra.join,yE=pg(_t.keys,_t),rn=nn.max,hn=nn.min,mE=Ae.now,bE=te.parseInt,Ag=nn.random,vE=Ra.reverse,ul=Ti(te,"DataView"),fo=Ti(te,"Map"),cl=Ti(te,"Promise"),ms=Ti(te,"Set"),ho=Ti(te,"WeakMap"),po=Ti(_t,"create"),Ha=ho&&new ho,bs={},wE=Oi(ul),SE=Oi(fo),AE=Oi(cl),EE=Oi(ms),xE=Oi(ho),za=Qr?Qr.prototype:n,go=za?za.valueOf:n,Eg=za?za.toString:n;function B(r){if(Vt(r)&&!Ke(r)&&!(r instanceof ut)){if(r instanceof zn)return r;if(At.call(r,"__wrapped__"))return x0(r)}return new zn(r)}var vs=function(){function r(){}return function(s){if(!Mt(s))return{};if(bg)return bg(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ga(){}function zn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}B.templateSettings={escape:as,evaluate:us,interpolate:Hr,variable:"",imports:{_:B}},B.prototype=Ga.prototype,B.prototype.constructor=B,zn.prototype=vs(Ga.prototype),zn.prototype.constructor=zn;function ut(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function CE(){var r=new ut(this.__wrapped__);return r.__actions__=An(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=An(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=An(this.__views__),r}function _E(){if(this.__filtered__){var r=new ut(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function kE(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ke(r),m=s<0,_=c?r.length:0,P=$2(0,_,this.__views__),$=P.start,U=P.end,H=U-$,ie=m?U:$-1,se=this.__iteratees__,ae=se.length,ve=0,Te=hn(H,this.__takeCount__);if(!c||!m&&_==H&&Te==H)return zg(r,this.__actions__);var Le=[];e:for(;H--&&ve<Te;){ie+=s;for(var Xe=-1,je=r[ie];++Xe<ae;){var st=se[Xe],ct=st.iteratee,Dn=st.type,vn=ct(je);if(Dn==he)je=vn;else if(!vn){if(Dn==pe)continue e;break e}}Le[ve++]=je}return Le}ut.prototype=vs(Ga.prototype),ut.prototype.constructor=ut;function xi(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function TE(){this.__data__=po?po(null):{},this.size=0}function OE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function IE(r){var s=this.__data__;if(po){var c=s[r];return c===f?n:c}return At.call(s,r)?s[r]:n}function FE(r){var s=this.__data__;return po?s[r]!==n:At.call(s,r)}function BE(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=po&&s===n?f:s,this}xi.prototype.clear=TE,xi.prototype.delete=OE,xi.prototype.get=IE,xi.prototype.has=FE,xi.prototype.set=BE;function Tr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function DE(){this.__data__=[],this.size=0}function PE(r){var s=this.__data__,c=Ja(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Va.call(s,c,1),--this.size,!0}function RE(r){var s=this.__data__,c=Ja(s,r);return c<0?n:s[c][1]}function NE(r){return Ja(this.__data__,r)>-1}function LE(r,s){var c=this.__data__,m=Ja(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Tr.prototype.clear=DE,Tr.prototype.delete=PE,Tr.prototype.get=RE,Tr.prototype.has=NE,Tr.prototype.set=LE;function Or(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function jE(){this.size=0,this.__data__={hash:new xi,map:new(fo||Tr),string:new xi}}function $E(r){var s=au(this,r).delete(r);return this.size-=s?1:0,s}function ME(r){return au(this,r).get(r)}function UE(r){return au(this,r).has(r)}function VE(r,s){var c=au(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Or.prototype.clear=jE,Or.prototype.delete=$E,Or.prototype.get=ME,Or.prototype.has=UE,Or.prototype.set=VE;function Ci(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Or;++s<c;)this.add(r[s])}function qE(r){return this.__data__.set(r,f),this}function WE(r){return this.__data__.has(r)}Ci.prototype.add=Ci.prototype.push=qE,Ci.prototype.has=WE;function ar(r){var s=this.__data__=new Tr(r);this.size=s.size}function KE(){this.__data__=new Tr,this.size=0}function HE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function zE(r){return this.__data__.get(r)}function GE(r){return this.__data__.has(r)}function JE(r,s){var c=this.__data__;if(c instanceof Tr){var m=c.__data__;if(!fo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Or(m)}return c.set(r,s),this.size=c.size,this}ar.prototype.clear=KE,ar.prototype.delete=HE,ar.prototype.get=zE,ar.prototype.has=GE,ar.prototype.set=JE;function xg(r,s){var c=Ke(r),m=!c&&Ii(r),_=!c&&!m&&ri(r),P=!c&&!m&&!_&&Es(r),$=c||m||_||P,U=$?rl(r.length,sE):[],H=U.length;for(var ie in r)(s||At.call(r,ie))&&!($&&(ie=="length"||_&&(ie=="offset"||ie=="parent")||P&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Dr(ie,H)))&&U.push(ie);return U}function Cg(r){var s=r.length;return s?r[wl(0,s-1)]:n}function YE(r,s){return uu(An(r),_i(s,0,r.length))}function XE(r){return uu(An(r))}function ll(r,s,c){(c!==n&&!ur(r[s],c)||c===n&&!(s in r))&&Ir(r,s,c)}function yo(r,s,c){var m=r[s];(!(At.call(r,s)&&ur(m,c))||c===n&&!(s in r))&&Ir(r,s,c)}function Ja(r,s){for(var c=r.length;c--;)if(ur(r[c][0],s))return c;return-1}function QE(r,s,c,m){return Zr(r,function(_,P,$){s(m,_,c(_),$)}),m}function _g(r,s){return r&&vr(s,an(s),r)}function ZE(r,s){return r&&vr(s,xn(s),r)}function Ir(r,s,c){s=="__proto__"&&qa?qa(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function fl(r,s){for(var c=-1,m=s.length,_=Y(m),P=r==null;++c<m;)_[c]=P?n:Kl(r,s[c]);return _}function _i(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function Gn(r,s,c,m,_,P){var $,U=s&p,H=s&w,ie=s&k;if(c&&($=_?c(r,m,_,P):c(r)),$!==n)return $;if(!Mt(r))return r;var se=Ke(r);if(se){if($=U2(r),!U)return An(r,$)}else{var ae=dn(r),ve=ae==Tt||ae==on;if(ri(r))return Yg(r,U);if(ae==ke||ae==oe||ve&&!_){if($=H||ve?{}:g0(r),!U)return H?I2(r,ZE($,r)):O2(r,_g($,r))}else{if(!It[ae])return _?r:{};$=V2(r,ae,U)}}P||(P=new ar);var Te=P.get(r);if(Te)return Te;P.set(r,$),W0(r)?r.forEach(function(je){$.add(Gn(je,s,c,je,r,P))}):V0(r)&&r.forEach(function(je,st){$.set(st,Gn(je,s,c,st,r,P))});var Le=ie?H?Fl:Il:H?xn:an,Xe=se?n:Le(r);return Kn(Xe||r,function(je,st){Xe&&(st=je,je=r[st]),yo($,st,Gn(je,s,c,st,r,P))}),$}function e2(r){var s=an(r);return function(c){return kg(c,r,s)}}function kg(r,s,c){var m=c.length;if(r==null)return!m;for(r=_t(r);m--;){var _=c[m],P=s[_],$=r[_];if($===n&&!(_ in r)||!P($))return!1}return!0}function Tg(r,s,c){if(typeof r!="function")throw new Hn(u);return Eo(function(){r.apply(n,c)},s)}function mo(r,s,c,m){var _=-1,P=Ba,$=!0,U=r.length,H=[],ie=s.length;if(!U)return H;c&&(s=Nt(s,In(c))),m?(P=Xc,$=!1):s.length>=o&&(P=co,$=!1,s=new Ci(s));e:for(;++_<U;){var se=r[_],ae=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ae===ae){for(var ve=ie;ve--;)if(s[ve]===ae)continue e;H.push(se)}else P(s,ae,m)||H.push(se)}return H}var Zr=t0(br),Og=t0(dl,!0);function t2(r,s){var c=!0;return Zr(r,function(m,_,P){return c=!!s(m,_,P),c}),c}function Ya(r,s,c){for(var m=-1,_=r.length;++m<_;){var P=r[m],$=s(P);if($!=null&&(U===n?$===$&&!Bn($):c($,U)))var U=$,H=P}return H}function n2(r,s,c,m){var _=r.length;for(c=Ge(c),c<0&&(c=-c>_?0:_+c),m=m===n||m>_?_:Ge(m),m<0&&(m+=_),m=c>m?0:H0(m);c<m;)r[c++]=s;return r}function Ig(r,s){var c=[];return Zr(r,function(m,_,P){s(m,_,P)&&c.push(m)}),c}function ln(r,s,c,m,_){var P=-1,$=r.length;for(c||(c=W2),_||(_=[]);++P<$;){var U=r[P];s>0&&c(U)?s>1?ln(U,s-1,c,m,_):Yr(_,U):m||(_[_.length]=U)}return _}var hl=n0(),Fg=n0(!0);function br(r,s){return r&&hl(r,s,an)}function dl(r,s){return r&&Fg(r,s,an)}function Xa(r,s){return Jr(s,function(c){return Pr(r[c])})}function ki(r,s){s=ti(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[wr(s[c++])];return c&&c==m?r:n}function Bg(r,s,c){var m=s(r);return Ke(r)?m:Yr(m,c(r))}function mn(r){return r==null?r===n?xt:Se:Ei&&Ei in _t(r)?j2(r):X2(r)}function pl(r,s){return r>s}function r2(r,s){return r!=null&&At.call(r,s)}function i2(r,s){return r!=null&&s in _t(r)}function s2(r,s,c){return r>=hn(s,c)&&r<rn(s,c)}function gl(r,s,c){for(var m=c?Xc:Ba,_=r[0].length,P=r.length,$=P,U=Y(P),H=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Nt(se,In(s))),H=hn(se.length,H),U[$]=!c&&(s||_>=120&&se.length>=120)?new Ci($&&se):n}se=r[0];var ae=-1,ve=U[0];e:for(;++ae<_&&ie.length<H;){var Te=se[ae],Le=s?s(Te):Te;if(Te=c||Te!==0?Te:0,!(ve?co(ve,Le):m(ie,Le,c))){for($=P;--$;){var Xe=U[$];if(!(Xe?co(Xe,Le):m(r[$],Le,c)))continue e}ve&&ve.push(Le),ie.push(Te)}}return ie}function o2(r,s,c,m){return br(r,function(_,P,$){s(m,c(_),P,$)}),m}function bo(r,s,c){s=ti(s,r),r=v0(r,s);var m=r==null?r:r[wr(Yn(s))];return m==null?n:On(m,r,c)}function Dg(r){return Vt(r)&&mn(r)==oe}function a2(r){return Vt(r)&&mn(r)==Oe}function u2(r){return Vt(r)&&mn(r)==Be}function vo(r,s,c,m,_){return r===s?!0:r==null||s==null||!Vt(r)&&!Vt(s)?r!==r&&s!==s:c2(r,s,c,m,vo,_)}function c2(r,s,c,m,_,P){var $=Ke(r),U=Ke(s),H=$?Ce:dn(r),ie=U?Ce:dn(s);H=H==oe?ke:H,ie=ie==oe?ke:ie;var se=H==ke,ae=ie==ke,ve=H==ie;if(ve&&ri(r)){if(!ri(s))return!1;$=!0,se=!1}if(ve&&!se)return P||(P=new ar),$||Es(r)?h0(r,s,c,m,_,P):N2(r,s,H,c,m,_,P);if(!(c&S)){var Te=se&&At.call(r,"__wrapped__"),Le=ae&&At.call(s,"__wrapped__");if(Te||Le){var Xe=Te?r.value():r,je=Le?s.value():s;return P||(P=new ar),_(Xe,je,c,m,P)}}return ve?(P||(P=new ar),L2(r,s,c,m,_,P)):!1}function l2(r){return Vt(r)&&dn(r)==Lt}function yl(r,s,c,m){var _=c.length,P=_,$=!m;if(r==null)return!P;for(r=_t(r);_--;){var U=c[_];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++_<P;){U=c[_];var H=U[0],ie=r[H],se=U[1];if($&&U[2]){if(ie===n&&!(H in r))return!1}else{var ae=new ar;if(m)var ve=m(ie,se,H,r,s,ae);if(!(ve===n?vo(se,ie,S|A,m,ae):ve))return!1}}return!0}function Pg(r){if(!Mt(r)||H2(r))return!1;var s=Pr(r)?lE:en;return s.test(Oi(r))}function f2(r){return Vt(r)&&mn(r)==pt}function h2(r){return Vt(r)&&dn(r)==Et}function d2(r){return Vt(r)&&pu(r.length)&&!!Pt[mn(r)]}function Rg(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?Ke(r)?jg(r[0],r[1]):Lg(r):ry(r)}function ml(r){if(!Ao(r))return yE(r);var s=[];for(var c in _t(r))At.call(r,c)&&c!="constructor"&&s.push(c);return s}function p2(r){if(!Mt(r))return Y2(r);var s=Ao(r),c=[];for(var m in r)m=="constructor"&&(s||!At.call(r,m))||c.push(m);return c}function bl(r,s){return r<s}function Ng(r,s){var c=-1,m=En(r)?Y(r.length):[];return Zr(r,function(_,P,$){m[++c]=s(_,P,$)}),m}function Lg(r){var s=Dl(r);return s.length==1&&s[0][2]?m0(s[0][0],s[0][1]):function(c){return c===r||yl(c,r,s)}}function jg(r,s){return Rl(r)&&y0(s)?m0(wr(r),s):function(c){var m=Kl(c,r);return m===n&&m===s?Hl(c,r):vo(s,m,S|A)}}function Qa(r,s,c,m,_){r!==s&&hl(s,function(P,$){if(_||(_=new ar),Mt(P))g2(r,s,$,c,Qa,m,_);else{var U=m?m(Ll(r,$),P,$+"",r,s,_):n;U===n&&(U=P),ll(r,$,U)}},xn)}function g2(r,s,c,m,_,P,$){var U=Ll(r,c),H=Ll(s,c),ie=$.get(H);if(ie){ll(r,c,ie);return}var se=P?P(U,H,c+"",r,s,$):n,ae=se===n;if(ae){var ve=Ke(H),Te=!ve&&ri(H),Le=!ve&&!Te&&Es(H);se=H,ve||Te||Le?Ke(U)?se=U:Yt(U)?se=An(U):Te?(ae=!1,se=Yg(H,!0)):Le?(ae=!1,se=Xg(H,!0)):se=[]:xo(H)||Ii(H)?(se=U,Ii(U)?se=z0(U):(!Mt(U)||Pr(U))&&(se=g0(H))):ae=!1}ae&&($.set(H,se),_(se,H,m,P,$),$.delete(H)),ll(r,c,se)}function $g(r,s){var c=r.length;if(c)return s+=s<0?c:0,Dr(s,c)?r[s]:n}function Mg(r,s,c){s.length?s=Nt(s,function(P){return Ke(P)?function($){return ki($,P.length===1?P[0]:P)}:P}):s=[Cn];var m=-1;s=Nt(s,In(Re()));var _=Ng(r,function(P,$,U){var H=Nt(s,function(ie){return ie(P)});return{criteria:H,index:++m,value:P}});return VA(_,function(P,$){return T2(P,$,c)})}function y2(r,s){return Ug(r,s,function(c,m){return Hl(r,m)})}function Ug(r,s,c){for(var m=-1,_=s.length,P={};++m<_;){var $=s[m],U=ki(r,$);c(U,$)&&wo(P,ti($,r),U)}return P}function m2(r){return function(s){return ki(s,r)}}function vl(r,s,c,m){var _=m?UA:hs,P=-1,$=s.length,U=r;for(r===s&&(s=An(s)),c&&(U=Nt(r,In(c)));++P<$;)for(var H=0,ie=s[P],se=c?c(ie):ie;(H=_(U,se,H,m))>-1;)U!==r&&Va.call(U,H,1),Va.call(r,H,1);return r}function Vg(r,s){for(var c=r?s.length:0,m=c-1;c--;){var _=s[c];if(c==m||_!==P){var P=_;Dr(_)?Va.call(r,_,1):El(r,_)}}return r}function wl(r,s){return r+Ka(Ag()*(s-r+1))}function b2(r,s,c,m){for(var _=-1,P=rn(Wa((s-r)/(c||1)),0),$=Y(P);P--;)$[m?P:++_]=r,r+=c;return $}function Sl(r,s){var c="";if(!r||s<1||s>_e)return c;do s%2&&(c+=r),s=Ka(s/2),s&&(r+=r);while(s);return c}function et(r,s){return jl(b0(r,s,Cn),r+"")}function v2(r){return Cg(xs(r))}function w2(r,s){var c=xs(r);return uu(c,_i(s,0,c.length))}function wo(r,s,c,m){if(!Mt(r))return r;s=ti(s,r);for(var _=-1,P=s.length,$=P-1,U=r;U!=null&&++_<P;){var H=wr(s[_]),ie=c;if(H==="__proto__"||H==="constructor"||H==="prototype")return r;if(_!=$){var se=U[H];ie=m?m(se,H,U):n,ie===n&&(ie=Mt(se)?se:Dr(s[_+1])?[]:{})}yo(U,H,ie),U=U[H]}return r}var qg=Ha?function(r,s){return Ha.set(r,s),r}:Cn,S2=qa?function(r,s){return qa(r,"toString",{configurable:!0,enumerable:!1,value:Gl(s),writable:!0})}:Cn;function A2(r){return uu(xs(r))}function Jn(r,s,c){var m=-1,_=r.length;s<0&&(s=-s>_?0:_+s),c=c>_?_:c,c<0&&(c+=_),_=s>c?0:c-s>>>0,s>>>=0;for(var P=Y(_);++m<_;)P[m]=r[m+s];return P}function E2(r,s){var c;return Zr(r,function(m,_,P){return c=s(m,_,P),!c}),!!c}function Za(r,s,c){var m=0,_=r==null?m:r.length;if(typeof s=="number"&&s===s&&_<=J){for(;m<_;){var P=m+_>>>1,$=r[P];$!==null&&!Bn($)&&(c?$<=s:$<s)?m=P+1:_=P}return _}return Al(r,s,Cn,c)}function Al(r,s,c,m){var _=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var $=s!==s,U=s===null,H=Bn(s),ie=s===n;_<P;){var se=Ka((_+P)/2),ae=c(r[se]),ve=ae!==n,Te=ae===null,Le=ae===ae,Xe=Bn(ae);if($)var je=m||Le;else ie?je=Le&&(m||ve):U?je=Le&&ve&&(m||!Te):H?je=Le&&ve&&!Te&&(m||!Xe):Te||Xe?je=!1:je=m?ae<=s:ae<s;je?_=se+1:P=se}return hn(P,nt)}function Wg(r,s){for(var c=-1,m=r.length,_=0,P=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ur(U,H)){var H=U;P[_++]=$===0?0:$}}return P}function Kg(r){return typeof r=="number"?r:Bn(r)?Ee:+r}function Fn(r){if(typeof r=="string")return r;if(Ke(r))return Nt(r,Fn)+"";if(Bn(r))return Eg?Eg.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ei(r,s,c){var m=-1,_=Ba,P=r.length,$=!0,U=[],H=U;if(c)$=!1,_=Xc;else if(P>=o){var ie=s?null:P2(r);if(ie)return Pa(ie);$=!1,_=co,H=new Ci}else H=s?[]:U;e:for(;++m<P;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,$&&ae===ae){for(var ve=H.length;ve--;)if(H[ve]===ae)continue e;s&&H.push(ae),U.push(se)}else _(H,ae,c)||(H!==U&&H.push(ae),U.push(se))}return U}function El(r,s){return s=ti(s,r),r=v0(r,s),r==null||delete r[wr(Yn(s))]}function Hg(r,s,c,m){return wo(r,s,c(ki(r,s)),m)}function eu(r,s,c,m){for(var _=r.length,P=m?_:-1;(m?P--:++P<_)&&s(r[P],P,r););return c?Jn(r,m?0:P,m?P+1:_):Jn(r,m?P+1:0,m?_:P)}function zg(r,s){var c=r;return c instanceof ut&&(c=c.value()),Qc(s,function(m,_){return _.func.apply(_.thisArg,Yr([m],_.args))},c)}function xl(r,s,c){var m=r.length;if(m<2)return m?ei(r[0]):[];for(var _=-1,P=Y(m);++_<m;)for(var $=r[_],U=-1;++U<m;)U!=_&&(P[_]=mo(P[_]||$,r[U],s,c));return ei(ln(P,1),s,c)}function Gg(r,s,c){for(var m=-1,_=r.length,P=s.length,$={};++m<_;){var U=m<P?s[m]:n;c($,r[m],U)}return $}function Cl(r){return Yt(r)?r:[]}function _l(r){return typeof r=="function"?r:Cn}function ti(r,s){return Ke(r)?r:Rl(r,s)?[r]:E0(St(r))}var x2=et;function ni(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Jn(r,s,c)}var Jg=fE||function(r){return cn.clearTimeout(r)};function Yg(r,s){if(s)return r.slice();var c=r.length,m=mg?mg(c):new r.constructor(c);return r.copy(m),m}function kl(r){var s=new r.constructor(r.byteLength);return new Ma(s).set(new Ma(r)),s}function C2(r,s){var c=s?kl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function _2(r){var s=new r.constructor(r.source,ht.exec(r));return s.lastIndex=r.lastIndex,s}function k2(r){return go?_t(go.call(r)):{}}function Xg(r,s){var c=s?kl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function Qg(r,s){if(r!==s){var c=r!==n,m=r===null,_=r===r,P=Bn(r),$=s!==n,U=s===null,H=s===s,ie=Bn(s);if(!U&&!ie&&!P&&r>s||P&&$&&H&&!U&&!ie||m&&$&&H||!c&&H||!_)return 1;if(!m&&!P&&!ie&&r<s||ie&&c&&_&&!m&&!P||U&&c&&_||!$&&_||!H)return-1}return 0}function T2(r,s,c){for(var m=-1,_=r.criteria,P=s.criteria,$=_.length,U=c.length;++m<$;){var H=Qg(_[m],P[m]);if(H){if(m>=U)return H;var ie=c[m];return H*(ie=="desc"?-1:1)}}return r.index-s.index}function Zg(r,s,c,m){for(var _=-1,P=r.length,$=c.length,U=-1,H=s.length,ie=rn(P-$,0),se=Y(H+ie),ae=!m;++U<H;)se[U]=s[U];for(;++_<$;)(ae||_<P)&&(se[c[_]]=r[_]);for(;ie--;)se[U++]=r[_++];return se}function e0(r,s,c,m){for(var _=-1,P=r.length,$=-1,U=c.length,H=-1,ie=s.length,se=rn(P-U,0),ae=Y(se+ie),ve=!m;++_<se;)ae[_]=r[_];for(var Te=_;++H<ie;)ae[Te+H]=s[H];for(;++$<U;)(ve||_<P)&&(ae[Te+c[$]]=r[_++]);return ae}function An(r,s){var c=-1,m=r.length;for(s||(s=Y(m));++c<m;)s[c]=r[c];return s}function vr(r,s,c,m){var _=!c;c||(c={});for(var P=-1,$=s.length;++P<$;){var U=s[P],H=m?m(c[U],r[U],U,c,r):n;H===n&&(H=r[U]),_?Ir(c,U,H):yo(c,U,H)}return c}function O2(r,s){return vr(r,Pl(r),s)}function I2(r,s){return vr(r,d0(r),s)}function tu(r,s){return function(c,m){var _=Ke(c)?RA:QE,P=s?s():{};return _(c,r,Re(m,2),P)}}function ws(r){return et(function(s,c){var m=-1,_=c.length,P=_>1?c[_-1]:n,$=_>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(_--,P):n,$&&bn(c[0],c[1],$)&&(P=_<3?n:P,_=1),s=_t(s);++m<_;){var U=c[m];U&&r(s,U,m,P)}return s})}function t0(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var _=c.length,P=s?_:-1,$=_t(c);(s?P--:++P<_)&&m($[P],P,$)!==!1;);return c}}function n0(r){return function(s,c,m){for(var _=-1,P=_t(s),$=m(s),U=$.length;U--;){var H=$[r?U:++_];if(c(P[H],H,P)===!1)break}return s}}function F2(r,s,c){var m=s&v,_=So(r);function P(){var $=this&&this!==cn&&this instanceof P?_:r;return $.apply(m?c:this,arguments)}return P}function r0(r){return function(s){s=St(s);var c=ds(s)?or(s):n,m=c?c[0]:s.charAt(0),_=c?ni(c,1).join(""):s.slice(1);return m[r]()+_}}function Ss(r){return function(s){return Qc(ty(ey(s).replace(SA,"")),r,"")}}function So(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=vs(r.prototype),m=r.apply(c,s);return Mt(m)?m:c}}function B2(r,s,c){var m=So(r);function _(){for(var P=arguments.length,$=Y(P),U=P,H=As(_);U--;)$[U]=arguments[U];var ie=P<3&&$[0]!==H&&$[P-1]!==H?[]:Xr($,H);if(P-=ie.length,P<c)return u0(r,s,nu,_.placeholder,n,$,ie,n,n,c-P);var se=this&&this!==cn&&this instanceof _?m:r;return On(se,this,$)}return _}function i0(r){return function(s,c,m){var _=_t(s);if(!En(s)){var P=Re(c,3);s=an(s),c=function(U){return P(_[U],U,_)}}var $=r(s,c,m);return $>-1?_[P?s[$]:$]:n}}function s0(r){return Br(function(s){var c=s.length,m=c,_=zn.prototype.thru;for(r&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new Hn(u);if(_&&!$&&ou(P)=="wrapper")var $=new zn([],!0)}for(m=$?m:c;++m<c;){P=s[m];var U=ou(P),H=U=="wrapper"?Bl(P):n;H&&Nl(H[0])&&H[1]==(D|C|I|W)&&!H[4].length&&H[9]==1?$=$[ou(H[0])].apply($,H[3]):$=P.length==1&&Nl(P)?$[U]():$.thru(P)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&Ke(se))return $.plant(se).value();for(var ae=0,ve=c?s[ae].apply(this,ie):se;++ae<c;)ve=s[ae].call(this,ve);return ve}})}function nu(r,s,c,m,_,P,$,U,H,ie){var se=s&D,ae=s&v,ve=s&R,Te=s&(C|x),Le=s&Q,Xe=ve?n:So(r);function je(){for(var st=arguments.length,ct=Y(st),Dn=st;Dn--;)ct[Dn]=arguments[Dn];if(Te)var vn=As(je),Pn=WA(ct,vn);if(m&&(ct=Zg(ct,m,_,Te)),P&&(ct=e0(ct,P,$,Te)),st-=Pn,Te&&st<ie){var Xt=Xr(ct,vn);return u0(r,s,nu,je.placeholder,c,ct,Xt,U,H,ie-st)}var cr=ae?c:this,Nr=ve?cr[r]:r;return st=ct.length,U?ct=Q2(ct,U):Le&&st>1&&ct.reverse(),se&&H<st&&(ct.length=H),this&&this!==cn&&this instanceof je&&(Nr=Xe||So(Nr)),Nr.apply(cr,ct)}return je}function o0(r,s){return function(c,m){return o2(c,r,s(m),{})}}function ru(r,s){return function(c,m){var _;if(c===n&&m===n)return s;if(c!==n&&(_=c),m!==n){if(_===n)return m;typeof c=="string"||typeof m=="string"?(c=Fn(c),m=Fn(m)):(c=Kg(c),m=Kg(m)),_=r(c,m)}return _}}function Tl(r){return Br(function(s){return s=Nt(s,In(Re())),et(function(c){var m=this;return r(s,function(_){return On(_,m,c)})})})}function iu(r,s){s=s===n?" ":Fn(s);var c=s.length;if(c<2)return c?Sl(s,r):s;var m=Sl(s,Wa(r/ps(s)));return ds(s)?ni(or(m),0,r).join(""):m.slice(0,r)}function D2(r,s,c,m){var _=s&v,P=So(r);function $(){for(var U=-1,H=arguments.length,ie=-1,se=m.length,ae=Y(se+H),ve=this&&this!==cn&&this instanceof $?P:r;++ie<se;)ae[ie]=m[ie];for(;H--;)ae[ie++]=arguments[++U];return On(ve,_?c:this,ae)}return $}function a0(r){return function(s,c,m){return m&&typeof m!="number"&&bn(s,c,m)&&(c=m=n),s=Rr(s),c===n?(c=s,s=0):c=Rr(c),m=m===n?s<c?1:-1:Rr(m),b2(s,c,m,r)}}function su(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Xn(s),c=Xn(c)),r(s,c)}}function u0(r,s,c,m,_,P,$,U,H,ie){var se=s&C,ae=se?$:n,ve=se?n:$,Te=se?P:n,Le=se?n:P;s|=se?I:O,s&=~(se?O:I),s&L||(s&=-4);var Xe=[r,s,_,Te,ae,Le,ve,U,H,ie],je=c.apply(n,Xe);return Nl(r)&&w0(je,Xe),je.placeholder=m,S0(je,r,s)}function Ol(r){var s=nn[r];return function(c,m){if(c=Xn(c),m=m==null?0:hn(Ge(m),292),m&&Sg(c)){var _=(St(c)+"e").split("e"),P=s(_[0]+"e"+(+_[1]+m));return _=(St(P)+"e").split("e"),+(_[0]+"e"+(+_[1]-m))}return s(c)}}var P2=ms&&1/Pa(new ms([,-0]))[1]==Fe?function(r){return new ms(r)}:Xl;function c0(r){return function(s){var c=dn(s);return c==Lt?sl(s):c==Et?XA(s):qA(s,r(s))}}function Fr(r,s,c,m,_,P,$,U){var H=s&R;if(!H&&typeof r!="function")throw new Hn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=_=n),$=$===n?$:rn(Ge($),0),U=U===n?U:Ge(U),ie-=_?_.length:0,s&O){var se=m,ae=_;m=_=n}var ve=H?n:Bl(r),Te=[r,s,c,m,_,se,ae,P,$,U];if(ve&&J2(Te,ve),r=Te[0],s=Te[1],c=Te[2],m=Te[3],_=Te[4],U=Te[9]=Te[9]===n?H?0:r.length:rn(Te[9]-ie,0),!U&&s&(C|x)&&(s&=-25),!s||s==v)var Le=F2(r,s,c);else s==C||s==x?Le=B2(r,s,U):(s==I||s==(v|I))&&!_.length?Le=D2(r,s,c,m):Le=nu.apply(n,Te);var Xe=ve?qg:w0;return S0(Xe(Le,Te),r,s)}function l0(r,s,c,m){return r===n||ur(r,ys[c])&&!At.call(m,c)?s:r}function f0(r,s,c,m,_,P){return Mt(r)&&Mt(s)&&(P.set(s,r),Qa(r,s,n,f0,P),P.delete(s)),r}function R2(r){return xo(r)?n:r}function h0(r,s,c,m,_,P){var $=c&S,U=r.length,H=s.length;if(U!=H&&!($&&H>U))return!1;var ie=P.get(r),se=P.get(s);if(ie&&se)return ie==s&&se==r;var ae=-1,ve=!0,Te=c&A?new Ci:n;for(P.set(r,s),P.set(s,r);++ae<U;){var Le=r[ae],Xe=s[ae];if(m)var je=$?m(Xe,Le,ae,s,r,P):m(Le,Xe,ae,r,s,P);if(je!==n){if(je)continue;ve=!1;break}if(Te){if(!Zc(s,function(st,ct){if(!co(Te,ct)&&(Le===st||_(Le,st,c,m,P)))return Te.push(ct)})){ve=!1;break}}else if(!(Le===Xe||_(Le,Xe,c,m,P))){ve=!1;break}}return P.delete(r),P.delete(s),ve}function N2(r,s,c,m,_,P,$){switch(c){case De:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case Oe:return!(r.byteLength!=s.byteLength||!P(new Ma(r),new Ma(s)));case xe:case Be:case jt:return ur(+r,+s);case Ne:return r.name==s.name&&r.message==s.message;case pt:case me:return r==s+"";case Lt:var U=sl;case Et:var H=m&S;if(U||(U=Pa),r.size!=s.size&&!H)return!1;var ie=$.get(r);if(ie)return ie==s;m|=A,$.set(r,s);var se=h0(U(r),U(s),m,_,P,$);return $.delete(r),se;case Ze:if(go)return go.call(r)==go.call(s)}return!1}function L2(r,s,c,m,_,P){var $=c&S,U=Il(r),H=U.length,ie=Il(s),se=ie.length;if(H!=se&&!$)return!1;for(var ae=H;ae--;){var ve=U[ae];if(!($?ve in s:At.call(s,ve)))return!1}var Te=P.get(r),Le=P.get(s);if(Te&&Le)return Te==s&&Le==r;var Xe=!0;P.set(r,s),P.set(s,r);for(var je=$;++ae<H;){ve=U[ae];var st=r[ve],ct=s[ve];if(m)var Dn=$?m(ct,st,ve,s,r,P):m(st,ct,ve,r,s,P);if(!(Dn===n?st===ct||_(st,ct,c,m,P):Dn)){Xe=!1;break}je||(je=ve=="constructor")}if(Xe&&!je){var vn=r.constructor,Pn=s.constructor;vn!=Pn&&"constructor"in r&&"constructor"in s&&!(typeof vn=="function"&&vn instanceof vn&&typeof Pn=="function"&&Pn instanceof Pn)&&(Xe=!1)}return P.delete(r),P.delete(s),Xe}function Br(r){return jl(b0(r,n,k0),r+"")}function Il(r){return Bg(r,an,Pl)}function Fl(r){return Bg(r,xn,d0)}var Bl=Ha?function(r){return Ha.get(r)}:Xl;function ou(r){for(var s=r.name+"",c=bs[s],m=At.call(bs,s)?c.length:0;m--;){var _=c[m],P=_.func;if(P==null||P==r)return _.name}return s}function As(r){var s=At.call(B,"placeholder")?B:r;return s.placeholder}function Re(){var r=B.iteratee||Jl;return r=r===Jl?Rg:r,arguments.length?r(arguments[0],arguments[1]):r}function au(r,s){var c=r.__data__;return K2(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Dl(r){for(var s=an(r),c=s.length;c--;){var m=s[c],_=r[m];s[c]=[m,_,y0(_)]}return s}function Ti(r,s){var c=GA(r,s);return Pg(c)?c:n}function j2(r){var s=At.call(r,Ei),c=r[Ei];try{r[Ei]=n;var m=!0}catch{}var _=ja.call(r);return m&&(s?r[Ei]=c:delete r[Ei]),_}var Pl=al?function(r){return r==null?[]:(r=_t(r),Jr(al(r),function(s){return vg.call(r,s)}))}:Ql,d0=al?function(r){for(var s=[];r;)Yr(s,Pl(r)),r=Ua(r);return s}:Ql,dn=mn;(ul&&dn(new ul(new ArrayBuffer(1)))!=De||fo&&dn(new fo)!=Lt||cl&&dn(cl.resolve())!=He||ms&&dn(new ms)!=Et||ho&&dn(new ho)!=ot)&&(dn=function(r){var s=mn(r),c=s==ke?r.constructor:n,m=c?Oi(c):"";if(m)switch(m){case wE:return De;case SE:return Lt;case AE:return He;case EE:return Et;case xE:return ot}return s});function $2(r,s,c){for(var m=-1,_=c.length;++m<_;){var P=c[m],$=P.size;switch(P.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=hn(s,r+$);break;case"takeRight":r=rn(r,s-$);break}}return{start:r,end:s}}function M2(r){var s=r.match(yn);return s?s[1].split(M):[]}function p0(r,s,c){s=ti(s,r);for(var m=-1,_=s.length,P=!1;++m<_;){var $=wr(s[m]);if(!(P=r!=null&&c(r,$)))break;r=r[$]}return P||++m!=_?P:(_=r==null?0:r.length,!!_&&pu(_)&&Dr($,_)&&(Ke(r)||Ii(r)))}function U2(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&At.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function g0(r){return typeof r.constructor=="function"&&!Ao(r)?vs(Ua(r)):{}}function V2(r,s,c){var m=r.constructor;switch(s){case Oe:return kl(r);case xe:case Be:return new m(+r);case De:return C2(r,c);case $t:case T:case y:case b:case N:case V:case G:case ee:case Me:return Xg(r,c);case Lt:return new m;case jt:case me:return new m(r);case pt:return _2(r);case Et:return new m;case Ze:return k2(r)}}function q2(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(so,`{
143
+ */Xo.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,g="__lodash_placeholder__",p=1,w=2,k=4,S=1,A=2,v=1,R=2,N=4,C=8,x=16,I=32,O=64,D=128,W=256,Q=512,ce=30,fe="...",ge=800,ye=16,pe=1,he=2,Pe=3,Fe=1/0,_e=9007199254740991,qe=17976931348623157e292,Ee=NaN,we=4294967295,nt=we-1,J=we>>>1,X=[["ary",D],["bind",v],["bindKey",R],["curry",C],["curryRight",x],["flip",Q],["partial",I],["partialRight",O],["rearg",W]],oe="[object Arguments]",Ce="[object Array]",We="[object AsyncFunction]",xe="[object Boolean]",Be="[object Date]",$e="[object DOMException]",Le="[object Error]",Tt="[object Function]",on="[object GeneratorFunction]",Nt="[object Map]",jt="[object Number]",Se="[object Null]",ke="[object Object]",He="[object Promise]",Ot="[object Proxy]",pt="[object RegExp]",Et="[object Set]",me="[object String]",Ze="[object Symbol]",xt="[object Undefined]",ot="[object WeakMap]",Ut="[object WeakSet]",Oe="[object ArrayBuffer]",De="[object DataView]",$t="[object Float32Array]",T="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",yt=/\b__p \+= '';/g,lt=/\b(__p \+=) '' \+/g,gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,at=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,vi=RegExp(at.source),os=RegExp(Kr.source),as=/<%-([\s\S]+?)%>/g,us=/<%([\s\S]+?)%>/g,Hr=/<%=([\s\S]+?)%>/g,wi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,no=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kr=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(kr.source),zr=/^\s+/,io=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,Dt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",Si="\\u0300-\\u036f",oo="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Ca=Si+oo+ao,_a="\\u2700-\\u27bf",ka="a-z\\xdf-\\xf6\\xf8-\\xff",qc="\\xac\\xb1\\xd7\\xf7",Wc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kc="\\u2000-\\u206f",Hc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tn="A-Z\\xc0-\\xd6\\xd8-\\xde",cs="\\ufe0e\\ufe0f",uo=qc+Wc+Kc+Hc,ls="['’]",zc="["+Gt+"]",Gr="["+uo+"]",fs="["+Ca+"]",Ta="\\d+",Oa="["+_a+"]",Ia="["+ka+"]",Fa="[^"+Gt+uo+Ta+_a+ka+Tn+"]",h="\\ud83c[\\udffb-\\udfff]",E="(?:"+fs+"|"+h+")",j="[^"+Gt+"]",q="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+Tn+"]",ze="\\u200d",vt="(?:"+Ia+"|"+Fa+")",tn="(?:"+de+"|"+Fa+")",Jt="(?:"+ls+"(?:d|ll|m|re|s|t|ve))?",zp="(?:"+ls+"(?:D|LL|M|RE|S|T|VE))?",Gp=E+"?",Jp="["+cs+"]?",yA="(?:"+ze+"(?:"+[j,q,ne].join("|")+")"+Jp+Gp+")*",mA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yp=Jp+Gp+yA,vA="(?:"+[Oa,q,ne].join("|")+")"+Yp,wA="(?:"+[j+fs+"?",fs,q,ne,zc].join("|")+")",SA=RegExp(ls,"g"),AA=RegExp(fs,"g"),Gc=RegExp(h+"(?="+h+")|"+wA+Yp,"g"),EA=RegExp([de+"?"+Ia+"+"+Jt+"(?="+[Gr,de,"$"].join("|")+")",tn+"+"+zp+"(?="+[Gr,de+vt,"$"].join("|")+")",de+"?"+vt+"+"+Jt,de+"+"+zp,bA,mA,Ta,vA].join("|"),"g"),xA=RegExp("["+ze+Gt+Ca+cs+"]"),CA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_A=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kA=-1,Pt={};Pt[$t]=Pt[T]=Pt[y]=Pt[b]=Pt[L]=Pt[V]=Pt[G]=Pt[ee]=Pt[Me]=!0,Pt[oe]=Pt[Ce]=Pt[Oe]=Pt[xe]=Pt[De]=Pt[Be]=Pt[Le]=Pt[Tt]=Pt[Nt]=Pt[jt]=Pt[ke]=Pt[pt]=Pt[Et]=Pt[me]=Pt[ot]=!1;var It={};It[oe]=It[Ce]=It[Oe]=It[De]=It[xe]=It[Be]=It[$t]=It[T]=It[y]=It[b]=It[L]=It[Nt]=It[jt]=It[ke]=It[pt]=It[Et]=It[me]=It[Ze]=It[V]=It[G]=It[ee]=It[Me]=!0,It[Le]=It[Tt]=It[ot]=!1;var TA={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},OA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},IA={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},FA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},BA=parseFloat,DA=parseInt,Xp=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,PA=typeof self=="object"&&self&&self.Object===Object&&self,cn=Xp||PA||Function("return this")(),Jc=t&&!t.nodeType&&t,Ai=Jc&&!0&&e&&!e.nodeType&&e,Qp=Ai&&Ai.exports===Jc,Yc=Qp&&Xp.process,Wn=function(){try{var K=Ai&&Ai.require&&Ai.require("util").types;return K||Yc&&Yc.binding&&Yc.binding("util")}catch{}}(),Zp=Wn&&Wn.isArrayBuffer,eg=Wn&&Wn.isDate,tg=Wn&&Wn.isMap,ng=Wn&&Wn.isRegExp,rg=Wn&&Wn.isSet,ig=Wn&&Wn.isTypedArray;function On(K,te,Y){switch(Y.length){case 0:return K.call(te);case 1:return K.call(te,Y[0]);case 2:return K.call(te,Y[0],Y[1]);case 3:return K.call(te,Y[0],Y[1],Y[2])}return K.apply(te,Y)}function RA(K,te,Y,Ae){for(var Ue=-1,wt=K==null?0:K.length;++Ue<wt;){var nn=K[Ue];te(Ae,nn,Y(nn),K)}return Ae}function Kn(K,te){for(var Y=-1,Ae=K==null?0:K.length;++Y<Ae&&te(K[Y],Y,K)!==!1;);return K}function LA(K,te){for(var Y=K==null?0:K.length;Y--&&te(K[Y],Y,K)!==!1;);return K}function sg(K,te){for(var Y=-1,Ae=K==null?0:K.length;++Y<Ae;)if(!te(K[Y],Y,K))return!1;return!0}function Jr(K,te){for(var Y=-1,Ae=K==null?0:K.length,Ue=0,wt=[];++Y<Ae;){var nn=K[Y];te(nn,Y,K)&&(wt[Ue++]=nn)}return wt}function Ba(K,te){var Y=K==null?0:K.length;return!!Y&&hs(K,te,0)>-1}function Xc(K,te,Y){for(var Ae=-1,Ue=K==null?0:K.length;++Ae<Ue;)if(Y(te,K[Ae]))return!0;return!1}function Lt(K,te){for(var Y=-1,Ae=K==null?0:K.length,Ue=Array(Ae);++Y<Ae;)Ue[Y]=te(K[Y],Y,K);return Ue}function Yr(K,te){for(var Y=-1,Ae=te.length,Ue=K.length;++Y<Ae;)K[Ue+Y]=te[Y];return K}function Qc(K,te,Y,Ae){var Ue=-1,wt=K==null?0:K.length;for(Ae&&wt&&(Y=K[++Ue]);++Ue<wt;)Y=te(Y,K[Ue],Ue,K);return Y}function NA(K,te,Y,Ae){var Ue=K==null?0:K.length;for(Ae&&Ue&&(Y=K[--Ue]);Ue--;)Y=te(Y,K[Ue],Ue,K);return Y}function Zc(K,te){for(var Y=-1,Ae=K==null?0:K.length;++Y<Ae;)if(te(K[Y],Y,K))return!0;return!1}var jA=el("length");function $A(K){return K.split("")}function MA(K){return K.match(le)||[]}function og(K,te,Y){var Ae;return Y(K,function(Ue,wt,nn){if(te(Ue,wt,nn))return Ae=wt,!1}),Ae}function Da(K,te,Y,Ae){for(var Ue=K.length,wt=Y+(Ae?1:-1);Ae?wt--:++wt<Ue;)if(te(K[wt],wt,K))return wt;return-1}function hs(K,te,Y){return te===te?QA(K,te,Y):Da(K,ag,Y)}function UA(K,te,Y,Ae){for(var Ue=Y-1,wt=K.length;++Ue<wt;)if(Ae(K[Ue],te))return Ue;return-1}function ag(K){return K!==K}function ug(K,te){var Y=K==null?0:K.length;return Y?nl(K,te)/Y:Ee}function el(K){return function(te){return te==null?n:te[K]}}function tl(K){return function(te){return K==null?n:K[te]}}function cg(K,te,Y,Ae,Ue){return Ue(K,function(wt,nn,_t){Y=Ae?(Ae=!1,wt):te(Y,wt,nn,_t)}),Y}function VA(K,te){var Y=K.length;for(K.sort(te);Y--;)K[Y]=K[Y].value;return K}function nl(K,te){for(var Y,Ae=-1,Ue=K.length;++Ae<Ue;){var wt=te(K[Ae]);wt!==n&&(Y=Y===n?wt:Y+wt)}return Y}function rl(K,te){for(var Y=-1,Ae=Array(K);++Y<K;)Ae[Y]=te(Y);return Ae}function qA(K,te){return Lt(te,function(Y){return[Y,K[Y]]})}function lg(K){return K&&K.slice(0,pg(K)+1).replace(zr,"")}function In(K){return function(te){return K(te)}}function il(K,te){return Lt(te,function(Y){return K[Y]})}function co(K,te){return K.has(te)}function fg(K,te){for(var Y=-1,Ae=K.length;++Y<Ae&&hs(te,K[Y],0)>-1;);return Y}function hg(K,te){for(var Y=K.length;Y--&&hs(te,K[Y],0)>-1;);return Y}function WA(K,te){for(var Y=K.length,Ae=0;Y--;)K[Y]===te&&++Ae;return Ae}var KA=tl(TA),HA=tl(OA);function zA(K){return"\\"+FA[K]}function GA(K,te){return K==null?n:K[te]}function ds(K){return xA.test(K)}function JA(K){return CA.test(K)}function YA(K){for(var te,Y=[];!(te=K.next()).done;)Y.push(te.value);return Y}function sl(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ae,Ue){Y[++te]=[Ue,Ae]}),Y}function dg(K,te){return function(Y){return K(te(Y))}}function Xr(K,te){for(var Y=-1,Ae=K.length,Ue=0,wt=[];++Y<Ae;){var nn=K[Y];(nn===te||nn===g)&&(K[Y]=g,wt[Ue++]=Y)}return wt}function Pa(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ae){Y[++te]=Ae}),Y}function XA(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ae){Y[++te]=[Ae,Ae]}),Y}function QA(K,te,Y){for(var Ae=Y-1,Ue=K.length;++Ae<Ue;)if(K[Ae]===te)return Ae;return-1}function ZA(K,te,Y){for(var Ae=Y+1;Ae--;)if(K[Ae]===te)return Ae;return Ae}function ps(K){return ds(K)?tE(K):jA(K)}function or(K){return ds(K)?nE(K):$A(K)}function pg(K){for(var te=K.length;te--&&io.test(K.charAt(te)););return te}var eE=tl(IA);function tE(K){for(var te=Gc.lastIndex=0;Gc.test(K);)++te;return te}function nE(K){return K.match(Gc)||[]}function rE(K){return K.match(EA)||[]}var iE=function K(te){te=te==null?cn:gs.defaults(cn.Object(),te,gs.pick(cn,_A));var Y=te.Array,Ae=te.Date,Ue=te.Error,wt=te.Function,nn=te.Math,_t=te.Object,ol=te.RegExp,sE=te.String,Hn=te.TypeError,Ra=Y.prototype,oE=wt.prototype,ys=_t.prototype,La=te["__core-js_shared__"],Na=oE.toString,At=ys.hasOwnProperty,aE=0,gg=function(){var r=/[^.]+$/.exec(La&&La.keys&&La.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ja=ys.toString,uE=Na.call(_t),cE=cn._,lE=ol("^"+Na.call(At).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$a=Qp?te.Buffer:n,Qr=te.Symbol,Ma=te.Uint8Array,yg=$a?$a.allocUnsafe:n,Ua=dg(_t.getPrototypeOf,_t),mg=_t.create,bg=ys.propertyIsEnumerable,Va=Ra.splice,vg=Qr?Qr.isConcatSpreadable:n,lo=Qr?Qr.iterator:n,Ei=Qr?Qr.toStringTag:n,qa=function(){try{var r=Ti(_t,"defineProperty");return r({},"",{}),r}catch{}}(),fE=te.clearTimeout!==cn.clearTimeout&&te.clearTimeout,hE=Ae&&Ae.now!==cn.Date.now&&Ae.now,dE=te.setTimeout!==cn.setTimeout&&te.setTimeout,Wa=nn.ceil,Ka=nn.floor,al=_t.getOwnPropertySymbols,pE=$a?$a.isBuffer:n,wg=te.isFinite,gE=Ra.join,yE=dg(_t.keys,_t),rn=nn.max,hn=nn.min,mE=Ae.now,bE=te.parseInt,Sg=nn.random,vE=Ra.reverse,ul=Ti(te,"DataView"),fo=Ti(te,"Map"),cl=Ti(te,"Promise"),ms=Ti(te,"Set"),ho=Ti(te,"WeakMap"),po=Ti(_t,"create"),Ha=ho&&new ho,bs={},wE=Oi(ul),SE=Oi(fo),AE=Oi(cl),EE=Oi(ms),xE=Oi(ho),za=Qr?Qr.prototype:n,go=za?za.valueOf:n,Ag=za?za.toString:n;function B(r){if(Vt(r)&&!Ke(r)&&!(r instanceof ut)){if(r instanceof zn)return r;if(At.call(r,"__wrapped__"))return E0(r)}return new zn(r)}var vs=function(){function r(){}return function(s){if(!Mt(s))return{};if(mg)return mg(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ga(){}function zn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}B.templateSettings={escape:as,evaluate:us,interpolate:Hr,variable:"",imports:{_:B}},B.prototype=Ga.prototype,B.prototype.constructor=B,zn.prototype=vs(Ga.prototype),zn.prototype.constructor=zn;function ut(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function CE(){var r=new ut(this.__wrapped__);return r.__actions__=An(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=An(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=An(this.__views__),r}function _E(){if(this.__filtered__){var r=new ut(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function kE(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ke(r),m=s<0,_=c?r.length:0,P=$2(0,_,this.__views__),$=P.start,U=P.end,H=U-$,ie=m?U:$-1,se=this.__iteratees__,ae=se.length,ve=0,Te=hn(H,this.__takeCount__);if(!c||!m&&_==H&&Te==H)return Hg(r,this.__actions__);var Ne=[];e:for(;H--&&ve<Te;){ie+=s;for(var Xe=-1,je=r[ie];++Xe<ae;){var st=se[Xe],ct=st.iteratee,Dn=st.type,vn=ct(je);if(Dn==he)je=vn;else if(!vn){if(Dn==pe)continue e;break e}}Ne[ve++]=je}return Ne}ut.prototype=vs(Ga.prototype),ut.prototype.constructor=ut;function xi(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function TE(){this.__data__=po?po(null):{},this.size=0}function OE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function IE(r){var s=this.__data__;if(po){var c=s[r];return c===f?n:c}return At.call(s,r)?s[r]:n}function FE(r){var s=this.__data__;return po?s[r]!==n:At.call(s,r)}function BE(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=po&&s===n?f:s,this}xi.prototype.clear=TE,xi.prototype.delete=OE,xi.prototype.get=IE,xi.prototype.has=FE,xi.prototype.set=BE;function Tr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function DE(){this.__data__=[],this.size=0}function PE(r){var s=this.__data__,c=Ja(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Va.call(s,c,1),--this.size,!0}function RE(r){var s=this.__data__,c=Ja(s,r);return c<0?n:s[c][1]}function LE(r){return Ja(this.__data__,r)>-1}function NE(r,s){var c=this.__data__,m=Ja(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Tr.prototype.clear=DE,Tr.prototype.delete=PE,Tr.prototype.get=RE,Tr.prototype.has=LE,Tr.prototype.set=NE;function Or(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function jE(){this.size=0,this.__data__={hash:new xi,map:new(fo||Tr),string:new xi}}function $E(r){var s=au(this,r).delete(r);return this.size-=s?1:0,s}function ME(r){return au(this,r).get(r)}function UE(r){return au(this,r).has(r)}function VE(r,s){var c=au(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Or.prototype.clear=jE,Or.prototype.delete=$E,Or.prototype.get=ME,Or.prototype.has=UE,Or.prototype.set=VE;function Ci(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Or;++s<c;)this.add(r[s])}function qE(r){return this.__data__.set(r,f),this}function WE(r){return this.__data__.has(r)}Ci.prototype.add=Ci.prototype.push=qE,Ci.prototype.has=WE;function ar(r){var s=this.__data__=new Tr(r);this.size=s.size}function KE(){this.__data__=new Tr,this.size=0}function HE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function zE(r){return this.__data__.get(r)}function GE(r){return this.__data__.has(r)}function JE(r,s){var c=this.__data__;if(c instanceof Tr){var m=c.__data__;if(!fo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Or(m)}return c.set(r,s),this.size=c.size,this}ar.prototype.clear=KE,ar.prototype.delete=HE,ar.prototype.get=zE,ar.prototype.has=GE,ar.prototype.set=JE;function Eg(r,s){var c=Ke(r),m=!c&&Ii(r),_=!c&&!m&&ri(r),P=!c&&!m&&!_&&Es(r),$=c||m||_||P,U=$?rl(r.length,sE):[],H=U.length;for(var ie in r)(s||At.call(r,ie))&&!($&&(ie=="length"||_&&(ie=="offset"||ie=="parent")||P&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Dr(ie,H)))&&U.push(ie);return U}function xg(r){var s=r.length;return s?r[wl(0,s-1)]:n}function YE(r,s){return uu(An(r),_i(s,0,r.length))}function XE(r){return uu(An(r))}function ll(r,s,c){(c!==n&&!ur(r[s],c)||c===n&&!(s in r))&&Ir(r,s,c)}function yo(r,s,c){var m=r[s];(!(At.call(r,s)&&ur(m,c))||c===n&&!(s in r))&&Ir(r,s,c)}function Ja(r,s){for(var c=r.length;c--;)if(ur(r[c][0],s))return c;return-1}function QE(r,s,c,m){return Zr(r,function(_,P,$){s(m,_,c(_),$)}),m}function Cg(r,s){return r&&vr(s,an(s),r)}function ZE(r,s){return r&&vr(s,xn(s),r)}function Ir(r,s,c){s=="__proto__"&&qa?qa(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function fl(r,s){for(var c=-1,m=s.length,_=Y(m),P=r==null;++c<m;)_[c]=P?n:Kl(r,s[c]);return _}function _i(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function Gn(r,s,c,m,_,P){var $,U=s&p,H=s&w,ie=s&k;if(c&&($=_?c(r,m,_,P):c(r)),$!==n)return $;if(!Mt(r))return r;var se=Ke(r);if(se){if($=U2(r),!U)return An(r,$)}else{var ae=dn(r),ve=ae==Tt||ae==on;if(ri(r))return Jg(r,U);if(ae==ke||ae==oe||ve&&!_){if($=H||ve?{}:p0(r),!U)return H?I2(r,ZE($,r)):O2(r,Cg($,r))}else{if(!It[ae])return _?r:{};$=V2(r,ae,U)}}P||(P=new ar);var Te=P.get(r);if(Te)return Te;P.set(r,$),q0(r)?r.forEach(function(je){$.add(Gn(je,s,c,je,r,P))}):U0(r)&&r.forEach(function(je,st){$.set(st,Gn(je,s,c,st,r,P))});var Ne=ie?H?Fl:Il:H?xn:an,Xe=se?n:Ne(r);return Kn(Xe||r,function(je,st){Xe&&(st=je,je=r[st]),yo($,st,Gn(je,s,c,st,r,P))}),$}function e2(r){var s=an(r);return function(c){return _g(c,r,s)}}function _g(r,s,c){var m=c.length;if(r==null)return!m;for(r=_t(r);m--;){var _=c[m],P=s[_],$=r[_];if($===n&&!(_ in r)||!P($))return!1}return!0}function kg(r,s,c){if(typeof r!="function")throw new Hn(u);return Eo(function(){r.apply(n,c)},s)}function mo(r,s,c,m){var _=-1,P=Ba,$=!0,U=r.length,H=[],ie=s.length;if(!U)return H;c&&(s=Lt(s,In(c))),m?(P=Xc,$=!1):s.length>=o&&(P=co,$=!1,s=new Ci(s));e:for(;++_<U;){var se=r[_],ae=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ae===ae){for(var ve=ie;ve--;)if(s[ve]===ae)continue e;H.push(se)}else P(s,ae,m)||H.push(se)}return H}var Zr=e0(br),Tg=e0(dl,!0);function t2(r,s){var c=!0;return Zr(r,function(m,_,P){return c=!!s(m,_,P),c}),c}function Ya(r,s,c){for(var m=-1,_=r.length;++m<_;){var P=r[m],$=s(P);if($!=null&&(U===n?$===$&&!Bn($):c($,U)))var U=$,H=P}return H}function n2(r,s,c,m){var _=r.length;for(c=Ge(c),c<0&&(c=-c>_?0:_+c),m=m===n||m>_?_:Ge(m),m<0&&(m+=_),m=c>m?0:K0(m);c<m;)r[c++]=s;return r}function Og(r,s){var c=[];return Zr(r,function(m,_,P){s(m,_,P)&&c.push(m)}),c}function ln(r,s,c,m,_){var P=-1,$=r.length;for(c||(c=W2),_||(_=[]);++P<$;){var U=r[P];s>0&&c(U)?s>1?ln(U,s-1,c,m,_):Yr(_,U):m||(_[_.length]=U)}return _}var hl=t0(),Ig=t0(!0);function br(r,s){return r&&hl(r,s,an)}function dl(r,s){return r&&Ig(r,s,an)}function Xa(r,s){return Jr(s,function(c){return Pr(r[c])})}function ki(r,s){s=ti(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[wr(s[c++])];return c&&c==m?r:n}function Fg(r,s,c){var m=s(r);return Ke(r)?m:Yr(m,c(r))}function mn(r){return r==null?r===n?xt:Se:Ei&&Ei in _t(r)?j2(r):X2(r)}function pl(r,s){return r>s}function r2(r,s){return r!=null&&At.call(r,s)}function i2(r,s){return r!=null&&s in _t(r)}function s2(r,s,c){return r>=hn(s,c)&&r<rn(s,c)}function gl(r,s,c){for(var m=c?Xc:Ba,_=r[0].length,P=r.length,$=P,U=Y(P),H=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Lt(se,In(s))),H=hn(se.length,H),U[$]=!c&&(s||_>=120&&se.length>=120)?new Ci($&&se):n}se=r[0];var ae=-1,ve=U[0];e:for(;++ae<_&&ie.length<H;){var Te=se[ae],Ne=s?s(Te):Te;if(Te=c||Te!==0?Te:0,!(ve?co(ve,Ne):m(ie,Ne,c))){for($=P;--$;){var Xe=U[$];if(!(Xe?co(Xe,Ne):m(r[$],Ne,c)))continue e}ve&&ve.push(Ne),ie.push(Te)}}return ie}function o2(r,s,c,m){return br(r,function(_,P,$){s(m,c(_),P,$)}),m}function bo(r,s,c){s=ti(s,r),r=b0(r,s);var m=r==null?r:r[wr(Yn(s))];return m==null?n:On(m,r,c)}function Bg(r){return Vt(r)&&mn(r)==oe}function a2(r){return Vt(r)&&mn(r)==Oe}function u2(r){return Vt(r)&&mn(r)==Be}function vo(r,s,c,m,_){return r===s?!0:r==null||s==null||!Vt(r)&&!Vt(s)?r!==r&&s!==s:c2(r,s,c,m,vo,_)}function c2(r,s,c,m,_,P){var $=Ke(r),U=Ke(s),H=$?Ce:dn(r),ie=U?Ce:dn(s);H=H==oe?ke:H,ie=ie==oe?ke:ie;var se=H==ke,ae=ie==ke,ve=H==ie;if(ve&&ri(r)){if(!ri(s))return!1;$=!0,se=!1}if(ve&&!se)return P||(P=new ar),$||Es(r)?f0(r,s,c,m,_,P):L2(r,s,H,c,m,_,P);if(!(c&S)){var Te=se&&At.call(r,"__wrapped__"),Ne=ae&&At.call(s,"__wrapped__");if(Te||Ne){var Xe=Te?r.value():r,je=Ne?s.value():s;return P||(P=new ar),_(Xe,je,c,m,P)}}return ve?(P||(P=new ar),N2(r,s,c,m,_,P)):!1}function l2(r){return Vt(r)&&dn(r)==Nt}function yl(r,s,c,m){var _=c.length,P=_,$=!m;if(r==null)return!P;for(r=_t(r);_--;){var U=c[_];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++_<P;){U=c[_];var H=U[0],ie=r[H],se=U[1];if($&&U[2]){if(ie===n&&!(H in r))return!1}else{var ae=new ar;if(m)var ve=m(ie,se,H,r,s,ae);if(!(ve===n?vo(se,ie,S|A,m,ae):ve))return!1}}return!0}function Dg(r){if(!Mt(r)||H2(r))return!1;var s=Pr(r)?lE:en;return s.test(Oi(r))}function f2(r){return Vt(r)&&mn(r)==pt}function h2(r){return Vt(r)&&dn(r)==Et}function d2(r){return Vt(r)&&pu(r.length)&&!!Pt[mn(r)]}function Pg(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?Ke(r)?Ng(r[0],r[1]):Lg(r):ny(r)}function ml(r){if(!Ao(r))return yE(r);var s=[];for(var c in _t(r))At.call(r,c)&&c!="constructor"&&s.push(c);return s}function p2(r){if(!Mt(r))return Y2(r);var s=Ao(r),c=[];for(var m in r)m=="constructor"&&(s||!At.call(r,m))||c.push(m);return c}function bl(r,s){return r<s}function Rg(r,s){var c=-1,m=En(r)?Y(r.length):[];return Zr(r,function(_,P,$){m[++c]=s(_,P,$)}),m}function Lg(r){var s=Dl(r);return s.length==1&&s[0][2]?y0(s[0][0],s[0][1]):function(c){return c===r||yl(c,r,s)}}function Ng(r,s){return Rl(r)&&g0(s)?y0(wr(r),s):function(c){var m=Kl(c,r);return m===n&&m===s?Hl(c,r):vo(s,m,S|A)}}function Qa(r,s,c,m,_){r!==s&&hl(s,function(P,$){if(_||(_=new ar),Mt(P))g2(r,s,$,c,Qa,m,_);else{var U=m?m(Nl(r,$),P,$+"",r,s,_):n;U===n&&(U=P),ll(r,$,U)}},xn)}function g2(r,s,c,m,_,P,$){var U=Nl(r,c),H=Nl(s,c),ie=$.get(H);if(ie){ll(r,c,ie);return}var se=P?P(U,H,c+"",r,s,$):n,ae=se===n;if(ae){var ve=Ke(H),Te=!ve&&ri(H),Ne=!ve&&!Te&&Es(H);se=H,ve||Te||Ne?Ke(U)?se=U:Yt(U)?se=An(U):Te?(ae=!1,se=Jg(H,!0)):Ne?(ae=!1,se=Yg(H,!0)):se=[]:xo(H)||Ii(H)?(se=U,Ii(U)?se=H0(U):(!Mt(U)||Pr(U))&&(se=p0(H))):ae=!1}ae&&($.set(H,se),_(se,H,m,P,$),$.delete(H)),ll(r,c,se)}function jg(r,s){var c=r.length;if(c)return s+=s<0?c:0,Dr(s,c)?r[s]:n}function $g(r,s,c){s.length?s=Lt(s,function(P){return Ke(P)?function($){return ki($,P.length===1?P[0]:P)}:P}):s=[Cn];var m=-1;s=Lt(s,In(Re()));var _=Rg(r,function(P,$,U){var H=Lt(s,function(ie){return ie(P)});return{criteria:H,index:++m,value:P}});return VA(_,function(P,$){return T2(P,$,c)})}function y2(r,s){return Mg(r,s,function(c,m){return Hl(r,m)})}function Mg(r,s,c){for(var m=-1,_=s.length,P={};++m<_;){var $=s[m],U=ki(r,$);c(U,$)&&wo(P,ti($,r),U)}return P}function m2(r){return function(s){return ki(s,r)}}function vl(r,s,c,m){var _=m?UA:hs,P=-1,$=s.length,U=r;for(r===s&&(s=An(s)),c&&(U=Lt(r,In(c)));++P<$;)for(var H=0,ie=s[P],se=c?c(ie):ie;(H=_(U,se,H,m))>-1;)U!==r&&Va.call(U,H,1),Va.call(r,H,1);return r}function Ug(r,s){for(var c=r?s.length:0,m=c-1;c--;){var _=s[c];if(c==m||_!==P){var P=_;Dr(_)?Va.call(r,_,1):El(r,_)}}return r}function wl(r,s){return r+Ka(Sg()*(s-r+1))}function b2(r,s,c,m){for(var _=-1,P=rn(Wa((s-r)/(c||1)),0),$=Y(P);P--;)$[m?P:++_]=r,r+=c;return $}function Sl(r,s){var c="";if(!r||s<1||s>_e)return c;do s%2&&(c+=r),s=Ka(s/2),s&&(r+=r);while(s);return c}function et(r,s){return jl(m0(r,s,Cn),r+"")}function v2(r){return xg(xs(r))}function w2(r,s){var c=xs(r);return uu(c,_i(s,0,c.length))}function wo(r,s,c,m){if(!Mt(r))return r;s=ti(s,r);for(var _=-1,P=s.length,$=P-1,U=r;U!=null&&++_<P;){var H=wr(s[_]),ie=c;if(H==="__proto__"||H==="constructor"||H==="prototype")return r;if(_!=$){var se=U[H];ie=m?m(se,H,U):n,ie===n&&(ie=Mt(se)?se:Dr(s[_+1])?[]:{})}yo(U,H,ie),U=U[H]}return r}var Vg=Ha?function(r,s){return Ha.set(r,s),r}:Cn,S2=qa?function(r,s){return qa(r,"toString",{configurable:!0,enumerable:!1,value:Gl(s),writable:!0})}:Cn;function A2(r){return uu(xs(r))}function Jn(r,s,c){var m=-1,_=r.length;s<0&&(s=-s>_?0:_+s),c=c>_?_:c,c<0&&(c+=_),_=s>c?0:c-s>>>0,s>>>=0;for(var P=Y(_);++m<_;)P[m]=r[m+s];return P}function E2(r,s){var c;return Zr(r,function(m,_,P){return c=s(m,_,P),!c}),!!c}function Za(r,s,c){var m=0,_=r==null?m:r.length;if(typeof s=="number"&&s===s&&_<=J){for(;m<_;){var P=m+_>>>1,$=r[P];$!==null&&!Bn($)&&(c?$<=s:$<s)?m=P+1:_=P}return _}return Al(r,s,Cn,c)}function Al(r,s,c,m){var _=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var $=s!==s,U=s===null,H=Bn(s),ie=s===n;_<P;){var se=Ka((_+P)/2),ae=c(r[se]),ve=ae!==n,Te=ae===null,Ne=ae===ae,Xe=Bn(ae);if($)var je=m||Ne;else ie?je=Ne&&(m||ve):U?je=Ne&&ve&&(m||!Te):H?je=Ne&&ve&&!Te&&(m||!Xe):Te||Xe?je=!1:je=m?ae<=s:ae<s;je?_=se+1:P=se}return hn(P,nt)}function qg(r,s){for(var c=-1,m=r.length,_=0,P=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ur(U,H)){var H=U;P[_++]=$===0?0:$}}return P}function Wg(r){return typeof r=="number"?r:Bn(r)?Ee:+r}function Fn(r){if(typeof r=="string")return r;if(Ke(r))return Lt(r,Fn)+"";if(Bn(r))return Ag?Ag.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ei(r,s,c){var m=-1,_=Ba,P=r.length,$=!0,U=[],H=U;if(c)$=!1,_=Xc;else if(P>=o){var ie=s?null:P2(r);if(ie)return Pa(ie);$=!1,_=co,H=new Ci}else H=s?[]:U;e:for(;++m<P;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,$&&ae===ae){for(var ve=H.length;ve--;)if(H[ve]===ae)continue e;s&&H.push(ae),U.push(se)}else _(H,ae,c)||(H!==U&&H.push(ae),U.push(se))}return U}function El(r,s){return s=ti(s,r),r=b0(r,s),r==null||delete r[wr(Yn(s))]}function Kg(r,s,c,m){return wo(r,s,c(ki(r,s)),m)}function eu(r,s,c,m){for(var _=r.length,P=m?_:-1;(m?P--:++P<_)&&s(r[P],P,r););return c?Jn(r,m?0:P,m?P+1:_):Jn(r,m?P+1:0,m?_:P)}function Hg(r,s){var c=r;return c instanceof ut&&(c=c.value()),Qc(s,function(m,_){return _.func.apply(_.thisArg,Yr([m],_.args))},c)}function xl(r,s,c){var m=r.length;if(m<2)return m?ei(r[0]):[];for(var _=-1,P=Y(m);++_<m;)for(var $=r[_],U=-1;++U<m;)U!=_&&(P[_]=mo(P[_]||$,r[U],s,c));return ei(ln(P,1),s,c)}function zg(r,s,c){for(var m=-1,_=r.length,P=s.length,$={};++m<_;){var U=m<P?s[m]:n;c($,r[m],U)}return $}function Cl(r){return Yt(r)?r:[]}function _l(r){return typeof r=="function"?r:Cn}function ti(r,s){return Ke(r)?r:Rl(r,s)?[r]:A0(St(r))}var x2=et;function ni(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Jn(r,s,c)}var Gg=fE||function(r){return cn.clearTimeout(r)};function Jg(r,s){if(s)return r.slice();var c=r.length,m=yg?yg(c):new r.constructor(c);return r.copy(m),m}function kl(r){var s=new r.constructor(r.byteLength);return new Ma(s).set(new Ma(r)),s}function C2(r,s){var c=s?kl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function _2(r){var s=new r.constructor(r.source,ht.exec(r));return s.lastIndex=r.lastIndex,s}function k2(r){return go?_t(go.call(r)):{}}function Yg(r,s){var c=s?kl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function Xg(r,s){if(r!==s){var c=r!==n,m=r===null,_=r===r,P=Bn(r),$=s!==n,U=s===null,H=s===s,ie=Bn(s);if(!U&&!ie&&!P&&r>s||P&&$&&H&&!U&&!ie||m&&$&&H||!c&&H||!_)return 1;if(!m&&!P&&!ie&&r<s||ie&&c&&_&&!m&&!P||U&&c&&_||!$&&_||!H)return-1}return 0}function T2(r,s,c){for(var m=-1,_=r.criteria,P=s.criteria,$=_.length,U=c.length;++m<$;){var H=Xg(_[m],P[m]);if(H){if(m>=U)return H;var ie=c[m];return H*(ie=="desc"?-1:1)}}return r.index-s.index}function Qg(r,s,c,m){for(var _=-1,P=r.length,$=c.length,U=-1,H=s.length,ie=rn(P-$,0),se=Y(H+ie),ae=!m;++U<H;)se[U]=s[U];for(;++_<$;)(ae||_<P)&&(se[c[_]]=r[_]);for(;ie--;)se[U++]=r[_++];return se}function Zg(r,s,c,m){for(var _=-1,P=r.length,$=-1,U=c.length,H=-1,ie=s.length,se=rn(P-U,0),ae=Y(se+ie),ve=!m;++_<se;)ae[_]=r[_];for(var Te=_;++H<ie;)ae[Te+H]=s[H];for(;++$<U;)(ve||_<P)&&(ae[Te+c[$]]=r[_++]);return ae}function An(r,s){var c=-1,m=r.length;for(s||(s=Y(m));++c<m;)s[c]=r[c];return s}function vr(r,s,c,m){var _=!c;c||(c={});for(var P=-1,$=s.length;++P<$;){var U=s[P],H=m?m(c[U],r[U],U,c,r):n;H===n&&(H=r[U]),_?Ir(c,U,H):yo(c,U,H)}return c}function O2(r,s){return vr(r,Pl(r),s)}function I2(r,s){return vr(r,h0(r),s)}function tu(r,s){return function(c,m){var _=Ke(c)?RA:QE,P=s?s():{};return _(c,r,Re(m,2),P)}}function ws(r){return et(function(s,c){var m=-1,_=c.length,P=_>1?c[_-1]:n,$=_>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(_--,P):n,$&&bn(c[0],c[1],$)&&(P=_<3?n:P,_=1),s=_t(s);++m<_;){var U=c[m];U&&r(s,U,m,P)}return s})}function e0(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var _=c.length,P=s?_:-1,$=_t(c);(s?P--:++P<_)&&m($[P],P,$)!==!1;);return c}}function t0(r){return function(s,c,m){for(var _=-1,P=_t(s),$=m(s),U=$.length;U--;){var H=$[r?U:++_];if(c(P[H],H,P)===!1)break}return s}}function F2(r,s,c){var m=s&v,_=So(r);function P(){var $=this&&this!==cn&&this instanceof P?_:r;return $.apply(m?c:this,arguments)}return P}function n0(r){return function(s){s=St(s);var c=ds(s)?or(s):n,m=c?c[0]:s.charAt(0),_=c?ni(c,1).join(""):s.slice(1);return m[r]()+_}}function Ss(r){return function(s){return Qc(ey(Z0(s).replace(SA,"")),r,"")}}function So(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=vs(r.prototype),m=r.apply(c,s);return Mt(m)?m:c}}function B2(r,s,c){var m=So(r);function _(){for(var P=arguments.length,$=Y(P),U=P,H=As(_);U--;)$[U]=arguments[U];var ie=P<3&&$[0]!==H&&$[P-1]!==H?[]:Xr($,H);if(P-=ie.length,P<c)return a0(r,s,nu,_.placeholder,n,$,ie,n,n,c-P);var se=this&&this!==cn&&this instanceof _?m:r;return On(se,this,$)}return _}function r0(r){return function(s,c,m){var _=_t(s);if(!En(s)){var P=Re(c,3);s=an(s),c=function(U){return P(_[U],U,_)}}var $=r(s,c,m);return $>-1?_[P?s[$]:$]:n}}function i0(r){return Br(function(s){var c=s.length,m=c,_=zn.prototype.thru;for(r&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new Hn(u);if(_&&!$&&ou(P)=="wrapper")var $=new zn([],!0)}for(m=$?m:c;++m<c;){P=s[m];var U=ou(P),H=U=="wrapper"?Bl(P):n;H&&Ll(H[0])&&H[1]==(D|C|I|W)&&!H[4].length&&H[9]==1?$=$[ou(H[0])].apply($,H[3]):$=P.length==1&&Ll(P)?$[U]():$.thru(P)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&Ke(se))return $.plant(se).value();for(var ae=0,ve=c?s[ae].apply(this,ie):se;++ae<c;)ve=s[ae].call(this,ve);return ve}})}function nu(r,s,c,m,_,P,$,U,H,ie){var se=s&D,ae=s&v,ve=s&R,Te=s&(C|x),Ne=s&Q,Xe=ve?n:So(r);function je(){for(var st=arguments.length,ct=Y(st),Dn=st;Dn--;)ct[Dn]=arguments[Dn];if(Te)var vn=As(je),Pn=WA(ct,vn);if(m&&(ct=Qg(ct,m,_,Te)),P&&(ct=Zg(ct,P,$,Te)),st-=Pn,Te&&st<ie){var Xt=Xr(ct,vn);return a0(r,s,nu,je.placeholder,c,ct,Xt,U,H,ie-st)}var cr=ae?c:this,Lr=ve?cr[r]:r;return st=ct.length,U?ct=Q2(ct,U):Ne&&st>1&&ct.reverse(),se&&H<st&&(ct.length=H),this&&this!==cn&&this instanceof je&&(Lr=Xe||So(Lr)),Lr.apply(cr,ct)}return je}function s0(r,s){return function(c,m){return o2(c,r,s(m),{})}}function ru(r,s){return function(c,m){var _;if(c===n&&m===n)return s;if(c!==n&&(_=c),m!==n){if(_===n)return m;typeof c=="string"||typeof m=="string"?(c=Fn(c),m=Fn(m)):(c=Wg(c),m=Wg(m)),_=r(c,m)}return _}}function Tl(r){return Br(function(s){return s=Lt(s,In(Re())),et(function(c){var m=this;return r(s,function(_){return On(_,m,c)})})})}function iu(r,s){s=s===n?" ":Fn(s);var c=s.length;if(c<2)return c?Sl(s,r):s;var m=Sl(s,Wa(r/ps(s)));return ds(s)?ni(or(m),0,r).join(""):m.slice(0,r)}function D2(r,s,c,m){var _=s&v,P=So(r);function $(){for(var U=-1,H=arguments.length,ie=-1,se=m.length,ae=Y(se+H),ve=this&&this!==cn&&this instanceof $?P:r;++ie<se;)ae[ie]=m[ie];for(;H--;)ae[ie++]=arguments[++U];return On(ve,_?c:this,ae)}return $}function o0(r){return function(s,c,m){return m&&typeof m!="number"&&bn(s,c,m)&&(c=m=n),s=Rr(s),c===n?(c=s,s=0):c=Rr(c),m=m===n?s<c?1:-1:Rr(m),b2(s,c,m,r)}}function su(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Xn(s),c=Xn(c)),r(s,c)}}function a0(r,s,c,m,_,P,$,U,H,ie){var se=s&C,ae=se?$:n,ve=se?n:$,Te=se?P:n,Ne=se?n:P;s|=se?I:O,s&=~(se?O:I),s&N||(s&=-4);var Xe=[r,s,_,Te,ae,Ne,ve,U,H,ie],je=c.apply(n,Xe);return Ll(r)&&v0(je,Xe),je.placeholder=m,w0(je,r,s)}function Ol(r){var s=nn[r];return function(c,m){if(c=Xn(c),m=m==null?0:hn(Ge(m),292),m&&wg(c)){var _=(St(c)+"e").split("e"),P=s(_[0]+"e"+(+_[1]+m));return _=(St(P)+"e").split("e"),+(_[0]+"e"+(+_[1]-m))}return s(c)}}var P2=ms&&1/Pa(new ms([,-0]))[1]==Fe?function(r){return new ms(r)}:Xl;function u0(r){return function(s){var c=dn(s);return c==Nt?sl(s):c==Et?XA(s):qA(s,r(s))}}function Fr(r,s,c,m,_,P,$,U){var H=s&R;if(!H&&typeof r!="function")throw new Hn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=_=n),$=$===n?$:rn(Ge($),0),U=U===n?U:Ge(U),ie-=_?_.length:0,s&O){var se=m,ae=_;m=_=n}var ve=H?n:Bl(r),Te=[r,s,c,m,_,se,ae,P,$,U];if(ve&&J2(Te,ve),r=Te[0],s=Te[1],c=Te[2],m=Te[3],_=Te[4],U=Te[9]=Te[9]===n?H?0:r.length:rn(Te[9]-ie,0),!U&&s&(C|x)&&(s&=-25),!s||s==v)var Ne=F2(r,s,c);else s==C||s==x?Ne=B2(r,s,U):(s==I||s==(v|I))&&!_.length?Ne=D2(r,s,c,m):Ne=nu.apply(n,Te);var Xe=ve?Vg:v0;return w0(Xe(Ne,Te),r,s)}function c0(r,s,c,m){return r===n||ur(r,ys[c])&&!At.call(m,c)?s:r}function l0(r,s,c,m,_,P){return Mt(r)&&Mt(s)&&(P.set(s,r),Qa(r,s,n,l0,P),P.delete(s)),r}function R2(r){return xo(r)?n:r}function f0(r,s,c,m,_,P){var $=c&S,U=r.length,H=s.length;if(U!=H&&!($&&H>U))return!1;var ie=P.get(r),se=P.get(s);if(ie&&se)return ie==s&&se==r;var ae=-1,ve=!0,Te=c&A?new Ci:n;for(P.set(r,s),P.set(s,r);++ae<U;){var Ne=r[ae],Xe=s[ae];if(m)var je=$?m(Xe,Ne,ae,s,r,P):m(Ne,Xe,ae,r,s,P);if(je!==n){if(je)continue;ve=!1;break}if(Te){if(!Zc(s,function(st,ct){if(!co(Te,ct)&&(Ne===st||_(Ne,st,c,m,P)))return Te.push(ct)})){ve=!1;break}}else if(!(Ne===Xe||_(Ne,Xe,c,m,P))){ve=!1;break}}return P.delete(r),P.delete(s),ve}function L2(r,s,c,m,_,P,$){switch(c){case De:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case Oe:return!(r.byteLength!=s.byteLength||!P(new Ma(r),new Ma(s)));case xe:case Be:case jt:return ur(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case pt:case me:return r==s+"";case Nt:var U=sl;case Et:var H=m&S;if(U||(U=Pa),r.size!=s.size&&!H)return!1;var ie=$.get(r);if(ie)return ie==s;m|=A,$.set(r,s);var se=f0(U(r),U(s),m,_,P,$);return $.delete(r),se;case Ze:if(go)return go.call(r)==go.call(s)}return!1}function N2(r,s,c,m,_,P){var $=c&S,U=Il(r),H=U.length,ie=Il(s),se=ie.length;if(H!=se&&!$)return!1;for(var ae=H;ae--;){var ve=U[ae];if(!($?ve in s:At.call(s,ve)))return!1}var Te=P.get(r),Ne=P.get(s);if(Te&&Ne)return Te==s&&Ne==r;var Xe=!0;P.set(r,s),P.set(s,r);for(var je=$;++ae<H;){ve=U[ae];var st=r[ve],ct=s[ve];if(m)var Dn=$?m(ct,st,ve,s,r,P):m(st,ct,ve,r,s,P);if(!(Dn===n?st===ct||_(st,ct,c,m,P):Dn)){Xe=!1;break}je||(je=ve=="constructor")}if(Xe&&!je){var vn=r.constructor,Pn=s.constructor;vn!=Pn&&"constructor"in r&&"constructor"in s&&!(typeof vn=="function"&&vn instanceof vn&&typeof Pn=="function"&&Pn instanceof Pn)&&(Xe=!1)}return P.delete(r),P.delete(s),Xe}function Br(r){return jl(m0(r,n,_0),r+"")}function Il(r){return Fg(r,an,Pl)}function Fl(r){return Fg(r,xn,h0)}var Bl=Ha?function(r){return Ha.get(r)}:Xl;function ou(r){for(var s=r.name+"",c=bs[s],m=At.call(bs,s)?c.length:0;m--;){var _=c[m],P=_.func;if(P==null||P==r)return _.name}return s}function As(r){var s=At.call(B,"placeholder")?B:r;return s.placeholder}function Re(){var r=B.iteratee||Jl;return r=r===Jl?Pg:r,arguments.length?r(arguments[0],arguments[1]):r}function au(r,s){var c=r.__data__;return K2(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Dl(r){for(var s=an(r),c=s.length;c--;){var m=s[c],_=r[m];s[c]=[m,_,g0(_)]}return s}function Ti(r,s){var c=GA(r,s);return Dg(c)?c:n}function j2(r){var s=At.call(r,Ei),c=r[Ei];try{r[Ei]=n;var m=!0}catch{}var _=ja.call(r);return m&&(s?r[Ei]=c:delete r[Ei]),_}var Pl=al?function(r){return r==null?[]:(r=_t(r),Jr(al(r),function(s){return bg.call(r,s)}))}:Ql,h0=al?function(r){for(var s=[];r;)Yr(s,Pl(r)),r=Ua(r);return s}:Ql,dn=mn;(ul&&dn(new ul(new ArrayBuffer(1)))!=De||fo&&dn(new fo)!=Nt||cl&&dn(cl.resolve())!=He||ms&&dn(new ms)!=Et||ho&&dn(new ho)!=ot)&&(dn=function(r){var s=mn(r),c=s==ke?r.constructor:n,m=c?Oi(c):"";if(m)switch(m){case wE:return De;case SE:return Nt;case AE:return He;case EE:return Et;case xE:return ot}return s});function $2(r,s,c){for(var m=-1,_=c.length;++m<_;){var P=c[m],$=P.size;switch(P.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=hn(s,r+$);break;case"takeRight":r=rn(r,s-$);break}}return{start:r,end:s}}function M2(r){var s=r.match(yn);return s?s[1].split(M):[]}function d0(r,s,c){s=ti(s,r);for(var m=-1,_=s.length,P=!1;++m<_;){var $=wr(s[m]);if(!(P=r!=null&&c(r,$)))break;r=r[$]}return P||++m!=_?P:(_=r==null?0:r.length,!!_&&pu(_)&&Dr($,_)&&(Ke(r)||Ii(r)))}function U2(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&At.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function p0(r){return typeof r.constructor=="function"&&!Ao(r)?vs(Ua(r)):{}}function V2(r,s,c){var m=r.constructor;switch(s){case Oe:return kl(r);case xe:case Be:return new m(+r);case De:return C2(r,c);case $t:case T:case y:case b:case L:case V:case G:case ee:case Me:return Yg(r,c);case Nt:return new m;case jt:case me:return new m(r);case pt:return _2(r);case Et:return new m;case Ze:return k2(r)}}function q2(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(so,`{
144
144
  /* [wrapped with `+s+`] */
145
- `)}function W2(r){return Ke(r)||Ii(r)||!!(wg&&r&&r[wg])}function Dr(r,s){var c=typeof r;return s=s??_e,!!s&&(c=="number"||c!="symbol"&&Rt.test(r))&&r>-1&&r%1==0&&r<s}function bn(r,s,c){if(!Mt(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Dr(s,c.length):m=="string"&&s in c)?ur(c[s],r):!1}function Rl(r,s){if(Ke(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Bn(r)?!0:no.test(r)||!wi.test(r)||s!=null&&r in _t(s)}function K2(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Nl(r){var s=ou(r),c=B[s];if(typeof c!="function"||!(s in ut.prototype))return!1;if(r===c)return!0;var m=Bl(c);return!!m&&r===m[0]}function H2(r){return!!yg&&yg in r}var z2=Na?Pr:Zl;function Ao(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ys;return r===c}function y0(r){return r===r&&!Mt(r)}function m0(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in _t(c))}}function G2(r){var s=hu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function J2(r,s){var c=r[1],m=s[1],_=c|m,P=_<(v|R|D),$=m==D&&c==C||m==D&&c==W&&r[7].length<=s[8]||m==(D|W)&&s[7].length<=s[8]&&c==C;if(!(P||$))return r;m&v&&(r[2]=s[2],_|=c&v?0:L);var U=s[3];if(U){var H=r[3];r[3]=H?Zg(H,U,s[4]):U,r[4]=H?Xr(r[3],g):s[4]}return U=s[5],U&&(H=r[5],r[5]=H?e0(H,U,s[6]):U,r[6]=H?Xr(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&D&&(r[8]=r[8]==null?s[8]:hn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=_,r}function Y2(r){var s=[];if(r!=null)for(var c in _t(r))s.push(c);return s}function X2(r){return ja.call(r)}function b0(r,s,c){return s=rn(s===n?r.length-1:s,0),function(){for(var m=arguments,_=-1,P=rn(m.length-s,0),$=Y(P);++_<P;)$[_]=m[s+_];_=-1;for(var U=Y(s+1);++_<s;)U[_]=m[_];return U[s]=c($),On(r,this,U)}}function v0(r,s){return s.length<2?r:ki(r,Jn(s,0,-1))}function Q2(r,s){for(var c=r.length,m=hn(s.length,c),_=An(r);m--;){var P=s[m];r[m]=Dr(P,c)?_[P]:n}return r}function Ll(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var w0=A0(qg),Eo=dE||function(r,s){return cn.setTimeout(r,s)},jl=A0(S2);function S0(r,s,c){var m=s+"";return jl(r,q2(m,Z2(M2(m),c)))}function A0(r){var s=0,c=0;return function(){var m=mE(),_=ye-(m-c);if(c=m,_>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function uu(r,s){var c=-1,m=r.length,_=m-1;for(s=s===n?m:s;++c<s;){var P=wl(c,_),$=r[P];r[P]=r[c],r[c]=$}return r.length=s,r}var E0=G2(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ro,function(c,m,_,P){s.push(_?P.replace(Ie,"$1"):m||c)}),s});function wr(r){if(typeof r=="string"||Bn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Oi(r){if(r!=null){try{return La.call(r)}catch{}try{return r+""}catch{}}return""}function Z2(r,s){return Kn(X,function(c){var m="_."+c[0];s&c[1]&&!Ba(r,m)&&r.push(m)}),r.sort()}function x0(r){if(r instanceof ut)return r.clone();var s=new zn(r.__wrapped__,r.__chain__);return s.__actions__=An(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function ex(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=rn(Ge(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var _=0,P=0,$=Y(Wa(m/s));_<m;)$[P++]=Jn(r,_,_+=s);return $}function tx(r){for(var s=-1,c=r==null?0:r.length,m=0,_=[];++s<c;){var P=r[s];P&&(_[m++]=P)}return _}function nx(){var r=arguments.length;if(!r)return[];for(var s=Y(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Yr(Ke(c)?An(c):[c],ln(s,1))}var rx=et(function(r,s){return Yt(r)?mo(r,ln(s,1,Yt,!0)):[]}),ix=et(function(r,s){var c=Yn(s);return Yt(c)&&(c=n),Yt(r)?mo(r,ln(s,1,Yt,!0),Re(c,2)):[]}),sx=et(function(r,s){var c=Yn(s);return Yt(c)&&(c=n),Yt(r)?mo(r,ln(s,1,Yt,!0),n,c):[]});function ox(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),Jn(r,s<0?0:s,m)):[]}function ax(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Jn(r,0,s<0?0:s)):[]}function ux(r,s){return r&&r.length?eu(r,Re(s,3),!0,!0):[]}function cx(r,s){return r&&r.length?eu(r,Re(s,3),!0):[]}function lx(r,s,c,m){var _=r==null?0:r.length;return _?(c&&typeof c!="number"&&bn(r,s,c)&&(c=0,m=_),n2(r,s,c,m)):[]}function C0(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=c==null?0:Ge(c);return _<0&&(_=rn(m+_,0)),Da(r,Re(s,3),_)}function _0(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=m-1;return c!==n&&(_=Ge(c),_=c<0?rn(m+_,0):hn(_,m-1)),Da(r,Re(s,3),_,!0)}function k0(r){var s=r==null?0:r.length;return s?ln(r,1):[]}function fx(r){var s=r==null?0:r.length;return s?ln(r,Fe):[]}function hx(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ge(s),ln(r,s)):[]}function dx(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var _=r[s];m[_[0]]=_[1]}return m}function T0(r){return r&&r.length?r[0]:n}function px(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=c==null?0:Ge(c);return _<0&&(_=rn(m+_,0)),hs(r,s,_)}function gx(r){var s=r==null?0:r.length;return s?Jn(r,0,-1):[]}var yx=et(function(r){var s=Nt(r,Cl);return s.length&&s[0]===r[0]?gl(s):[]}),mx=et(function(r){var s=Yn(r),c=Nt(r,Cl);return s===Yn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?gl(c,Re(s,2)):[]}),bx=et(function(r){var s=Yn(r),c=Nt(r,Cl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?gl(c,n,s):[]});function vx(r,s){return r==null?"":gE.call(r,s)}function Yn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function wx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=m;return c!==n&&(_=Ge(c),_=_<0?rn(m+_,0):hn(_,m-1)),s===s?ZA(r,s,_):Da(r,ug,_,!0)}function Sx(r,s){return r&&r.length?$g(r,Ge(s)):n}var Ax=et(O0);function O0(r,s){return r&&r.length&&s&&s.length?vl(r,s):r}function Ex(r,s,c){return r&&r.length&&s&&s.length?vl(r,s,Re(c,2)):r}function xx(r,s,c){return r&&r.length&&s&&s.length?vl(r,s,n,c):r}var Cx=Br(function(r,s){var c=r==null?0:r.length,m=fl(r,s);return Vg(r,Nt(s,function(_){return Dr(_,c)?+_:_}).sort(Qg)),m});function _x(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,_=[],P=r.length;for(s=Re(s,3);++m<P;){var $=r[m];s($,m,r)&&(c.push($),_.push(m))}return Vg(r,_),c}function $l(r){return r==null?r:vE.call(r)}function kx(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&bn(r,s,c)?(s=0,c=m):(s=s==null?0:Ge(s),c=c===n?m:Ge(c)),Jn(r,s,c)):[]}function Tx(r,s){return Za(r,s)}function Ox(r,s,c){return Al(r,s,Re(c,2))}function Ix(r,s){var c=r==null?0:r.length;if(c){var m=Za(r,s);if(m<c&&ur(r[m],s))return m}return-1}function Fx(r,s){return Za(r,s,!0)}function Bx(r,s,c){return Al(r,s,Re(c,2),!0)}function Dx(r,s){var c=r==null?0:r.length;if(c){var m=Za(r,s,!0)-1;if(ur(r[m],s))return m}return-1}function Px(r){return r&&r.length?Wg(r):[]}function Rx(r,s){return r&&r.length?Wg(r,Re(s,2)):[]}function Nx(r){var s=r==null?0:r.length;return s?Jn(r,1,s):[]}function Lx(r,s,c){return r&&r.length?(s=c||s===n?1:Ge(s),Jn(r,0,s<0?0:s)):[]}function jx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Jn(r,s<0?0:s,m)):[]}function $x(r,s){return r&&r.length?eu(r,Re(s,3),!1,!0):[]}function Mx(r,s){return r&&r.length?eu(r,Re(s,3)):[]}var Ux=et(function(r){return ei(ln(r,1,Yt,!0))}),Vx=et(function(r){var s=Yn(r);return Yt(s)&&(s=n),ei(ln(r,1,Yt,!0),Re(s,2))}),qx=et(function(r){var s=Yn(r);return s=typeof s=="function"?s:n,ei(ln(r,1,Yt,!0),n,s)});function Wx(r){return r&&r.length?ei(r):[]}function Kx(r,s){return r&&r.length?ei(r,Re(s,2)):[]}function Hx(r,s){return s=typeof s=="function"?s:n,r&&r.length?ei(r,n,s):[]}function Ml(r){if(!(r&&r.length))return[];var s=0;return r=Jr(r,function(c){if(Yt(c))return s=rn(c.length,s),!0}),rl(s,function(c){return Nt(r,el(c))})}function I0(r,s){if(!(r&&r.length))return[];var c=Ml(r);return s==null?c:Nt(c,function(m){return On(s,n,m)})}var zx=et(function(r,s){return Yt(r)?mo(r,s):[]}),Gx=et(function(r){return xl(Jr(r,Yt))}),Jx=et(function(r){var s=Yn(r);return Yt(s)&&(s=n),xl(Jr(r,Yt),Re(s,2))}),Yx=et(function(r){var s=Yn(r);return s=typeof s=="function"?s:n,xl(Jr(r,Yt),n,s)}),Xx=et(Ml);function Qx(r,s){return Gg(r||[],s||[],yo)}function Zx(r,s){return Gg(r||[],s||[],wo)}var eC=et(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,I0(r,c)});function F0(r){var s=B(r);return s.__chain__=!0,s}function tC(r,s){return s(r),r}function cu(r,s){return s(r)}var nC=Br(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,_=function(P){return fl(P,r)};return s>1||this.__actions__.length||!(m instanceof ut)||!Dr(c)?this.thru(_):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:cu,args:[_],thisArg:n}),new zn(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function rC(){return F0(this)}function iC(){return new zn(this.value(),this.__chain__)}function sC(){this.__values__===n&&(this.__values__=K0(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function oC(){return this}function aC(r){for(var s,c=this;c instanceof Ga;){var m=x0(c);m.__index__=0,m.__values__=n,s?_.__wrapped__=m:s=m;var _=m;c=c.__wrapped__}return _.__wrapped__=r,s}function uC(){var r=this.__wrapped__;if(r instanceof ut){var s=r;return this.__actions__.length&&(s=new ut(this)),s=s.reverse(),s.__actions__.push({func:cu,args:[$l],thisArg:n}),new zn(s,this.__chain__)}return this.thru($l)}function cC(){return zg(this.__wrapped__,this.__actions__)}var lC=tu(function(r,s,c){At.call(r,c)?++r[c]:Ir(r,c,1)});function fC(r,s,c){var m=Ke(r)?og:t2;return c&&bn(r,s,c)&&(s=n),m(r,Re(s,3))}function hC(r,s){var c=Ke(r)?Jr:Ig;return c(r,Re(s,3))}var dC=i0(C0),pC=i0(_0);function gC(r,s){return ln(lu(r,s),1)}function yC(r,s){return ln(lu(r,s),Fe)}function mC(r,s,c){return c=c===n?1:Ge(c),ln(lu(r,s),c)}function B0(r,s){var c=Ke(r)?Kn:Zr;return c(r,Re(s,3))}function D0(r,s){var c=Ke(r)?NA:Og;return c(r,Re(s,3))}var bC=tu(function(r,s,c){At.call(r,c)?r[c].push(s):Ir(r,c,[s])});function vC(r,s,c,m){r=En(r)?r:xs(r),c=c&&!m?Ge(c):0;var _=r.length;return c<0&&(c=rn(_+c,0)),gu(r)?c<=_&&r.indexOf(s,c)>-1:!!_&&hs(r,s,c)>-1}var wC=et(function(r,s,c){var m=-1,_=typeof s=="function",P=En(r)?Y(r.length):[];return Zr(r,function($){P[++m]=_?On(s,$,c):bo($,s,c)}),P}),SC=tu(function(r,s,c){Ir(r,c,s)});function lu(r,s){var c=Ke(r)?Nt:Ng;return c(r,Re(s,3))}function AC(r,s,c,m){return r==null?[]:(Ke(s)||(s=s==null?[]:[s]),c=m?n:c,Ke(c)||(c=c==null?[]:[c]),Mg(r,s,c))}var EC=tu(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function xC(r,s,c){var m=Ke(r)?Qc:lg,_=arguments.length<3;return m(r,Re(s,4),c,_,Zr)}function CC(r,s,c){var m=Ke(r)?LA:lg,_=arguments.length<3;return m(r,Re(s,4),c,_,Og)}function _C(r,s){var c=Ke(r)?Jr:Ig;return c(r,du(Re(s,3)))}function kC(r){var s=Ke(r)?Cg:v2;return s(r)}function TC(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=Ge(s);var m=Ke(r)?YE:w2;return m(r,s)}function OC(r){var s=Ke(r)?XE:A2;return s(r)}function IC(r){if(r==null)return 0;if(En(r))return gu(r)?ps(r):r.length;var s=dn(r);return s==Lt||s==Et?r.size:ml(r).length}function FC(r,s,c){var m=Ke(r)?Zc:E2;return c&&bn(r,s,c)&&(s=n),m(r,Re(s,3))}var BC=et(function(r,s){if(r==null)return[];var c=s.length;return c>1&&bn(r,s[0],s[1])?s=[]:c>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),Mg(r,ln(s,1),[])}),fu=hE||function(){return cn.Date.now()};function DC(r,s){if(typeof s!="function")throw new Hn(u);return r=Ge(r),function(){if(--r<1)return s.apply(this,arguments)}}function P0(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Fr(r,D,n,n,n,n,s)}function R0(r,s){var c;if(typeof s!="function")throw new Hn(u);return r=Ge(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Ul=et(function(r,s,c){var m=v;if(c.length){var _=Xr(c,As(Ul));m|=I}return Fr(r,m,s,c,_)}),N0=et(function(r,s,c){var m=v|R;if(c.length){var _=Xr(c,As(N0));m|=I}return Fr(s,m,r,c,_)});function L0(r,s,c){s=c?n:s;var m=Fr(r,C,n,n,n,n,n,s);return m.placeholder=L0.placeholder,m}function j0(r,s,c){s=c?n:s;var m=Fr(r,x,n,n,n,n,n,s);return m.placeholder=j0.placeholder,m}function $0(r,s,c){var m,_,P,$,U,H,ie=0,se=!1,ae=!1,ve=!0;if(typeof r!="function")throw new Hn(u);s=Xn(s)||0,Mt(c)&&(se=!!c.leading,ae="maxWait"in c,P=ae?rn(Xn(c.maxWait)||0,s):P,ve="trailing"in c?!!c.trailing:ve);function Te(Xt){var cr=m,Nr=_;return m=_=n,ie=Xt,$=r.apply(Nr,cr),$}function Le(Xt){return ie=Xt,U=Eo(st,s),se?Te(Xt):$}function Xe(Xt){var cr=Xt-H,Nr=Xt-ie,iy=s-cr;return ae?hn(iy,P-Nr):iy}function je(Xt){var cr=Xt-H,Nr=Xt-ie;return H===n||cr>=s||cr<0||ae&&Nr>=P}function st(){var Xt=fu();if(je(Xt))return ct(Xt);U=Eo(st,Xe(Xt))}function ct(Xt){return U=n,ve&&m?Te(Xt):(m=_=n,$)}function Dn(){U!==n&&Jg(U),ie=0,m=H=_=U=n}function vn(){return U===n?$:ct(fu())}function Pn(){var Xt=fu(),cr=je(Xt);if(m=arguments,_=this,H=Xt,cr){if(U===n)return Le(H);if(ae)return Jg(U),U=Eo(st,s),Te(H)}return U===n&&(U=Eo(st,s)),$}return Pn.cancel=Dn,Pn.flush=vn,Pn}var PC=et(function(r,s){return Tg(r,1,s)}),RC=et(function(r,s,c){return Tg(r,Xn(s)||0,c)});function NC(r){return Fr(r,Q)}function hu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Hn(u);var c=function(){var m=arguments,_=s?s.apply(this,m):m[0],P=c.cache;if(P.has(_))return P.get(_);var $=r.apply(this,m);return c.cache=P.set(_,$)||P,$};return c.cache=new(hu.Cache||Or),c}hu.Cache=Or;function du(r){if(typeof r!="function")throw new Hn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function LC(r){return R0(2,r)}var jC=x2(function(r,s){s=s.length==1&&Ke(s[0])?Nt(s[0],In(Re())):Nt(ln(s,1),In(Re()));var c=s.length;return et(function(m){for(var _=-1,P=hn(m.length,c);++_<P;)m[_]=s[_].call(this,m[_]);return On(r,this,m)})}),Vl=et(function(r,s){var c=Xr(s,As(Vl));return Fr(r,I,n,s,c)}),M0=et(function(r,s){var c=Xr(s,As(M0));return Fr(r,O,n,s,c)}),$C=Br(function(r,s){return Fr(r,W,n,n,n,s)});function MC(r,s){if(typeof r!="function")throw new Hn(u);return s=s===n?s:Ge(s),et(r,s)}function UC(r,s){if(typeof r!="function")throw new Hn(u);return s=s==null?0:rn(Ge(s),0),et(function(c){var m=c[s],_=ni(c,0,s);return m&&Yr(_,m),On(r,this,_)})}function VC(r,s,c){var m=!0,_=!0;if(typeof r!="function")throw new Hn(u);return Mt(c)&&(m="leading"in c?!!c.leading:m,_="trailing"in c?!!c.trailing:_),$0(r,s,{leading:m,maxWait:s,trailing:_})}function qC(r){return P0(r,1)}function WC(r,s){return Vl(_l(s),r)}function KC(){if(!arguments.length)return[];var r=arguments[0];return Ke(r)?r:[r]}function HC(r){return Gn(r,k)}function zC(r,s){return s=typeof s=="function"?s:n,Gn(r,k,s)}function GC(r){return Gn(r,p|k)}function JC(r,s){return s=typeof s=="function"?s:n,Gn(r,p|k,s)}function YC(r,s){return s==null||kg(r,s,an(s))}function ur(r,s){return r===s||r!==r&&s!==s}var XC=su(pl),QC=su(function(r,s){return r>=s}),Ii=Dg(function(){return arguments}())?Dg:function(r){return Vt(r)&&At.call(r,"callee")&&!vg.call(r,"callee")},Ke=Y.isArray,ZC=eg?In(eg):a2;function En(r){return r!=null&&pu(r.length)&&!Pr(r)}function Yt(r){return Vt(r)&&En(r)}function e_(r){return r===!0||r===!1||Vt(r)&&mn(r)==xe}var ri=pE||Zl,t_=tg?In(tg):u2;function n_(r){return Vt(r)&&r.nodeType===1&&!xo(r)}function r_(r){if(r==null)return!0;if(En(r)&&(Ke(r)||typeof r=="string"||typeof r.splice=="function"||ri(r)||Es(r)||Ii(r)))return!r.length;var s=dn(r);if(s==Lt||s==Et)return!r.size;if(Ao(r))return!ml(r).length;for(var c in r)if(At.call(r,c))return!1;return!0}function i_(r,s){return vo(r,s)}function s_(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?vo(r,s,n,c):!!m}function ql(r){if(!Vt(r))return!1;var s=mn(r);return s==Ne||s==$e||typeof r.message=="string"&&typeof r.name=="string"&&!xo(r)}function o_(r){return typeof r=="number"&&Sg(r)}function Pr(r){if(!Mt(r))return!1;var s=mn(r);return s==Tt||s==on||s==We||s==Ot}function U0(r){return typeof r=="number"&&r==Ge(r)}function pu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=_e}function Mt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Vt(r){return r!=null&&typeof r=="object"}var V0=ng?In(ng):l2;function a_(r,s){return r===s||yl(r,s,Dl(s))}function u_(r,s,c){return c=typeof c=="function"?c:n,yl(r,s,Dl(s),c)}function c_(r){return q0(r)&&r!=+r}function l_(r){if(z2(r))throw new Ue(a);return Pg(r)}function f_(r){return r===null}function h_(r){return r==null}function q0(r){return typeof r=="number"||Vt(r)&&mn(r)==jt}function xo(r){if(!Vt(r)||mn(r)!=ke)return!1;var s=Ua(r);if(s===null)return!0;var c=At.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&La.call(c)==uE}var Wl=rg?In(rg):f2;function d_(r){return U0(r)&&r>=-9007199254740991&&r<=_e}var W0=ig?In(ig):h2;function gu(r){return typeof r=="string"||!Ke(r)&&Vt(r)&&mn(r)==me}function Bn(r){return typeof r=="symbol"||Vt(r)&&mn(r)==Ze}var Es=sg?In(sg):d2;function p_(r){return r===n}function g_(r){return Vt(r)&&dn(r)==ot}function y_(r){return Vt(r)&&mn(r)==Ut}var m_=su(bl),b_=su(function(r,s){return r<=s});function K0(r){if(!r)return[];if(En(r))return gu(r)?or(r):An(r);if(lo&&r[lo])return YA(r[lo]());var s=dn(r),c=s==Lt?sl:s==Et?Pa:xs;return c(r)}function Rr(r){if(!r)return r===0?r:0;if(r=Xn(r),r===Fe||r===-1/0){var s=r<0?-1:1;return s*qe}return r===r?r:0}function Ge(r){var s=Rr(r),c=s%1;return s===s?c?s-c:s:0}function H0(r){return r?_i(Ge(r),0,we):0}function Xn(r){if(typeof r=="number")return r;if(Bn(r))return Ee;if(Mt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Mt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=fg(r);var c=Ye.test(r);return c||Dt.test(r)?DA(r.slice(2),c?2:8):rt.test(r)?Ee:+r}function z0(r){return vr(r,xn(r))}function v_(r){return r?_i(Ge(r),-9007199254740991,_e):r===0?r:0}function St(r){return r==null?"":Fn(r)}var w_=ws(function(r,s){if(Ao(s)||En(s)){vr(s,an(s),r);return}for(var c in s)At.call(s,c)&&yo(r,c,s[c])}),G0=ws(function(r,s){vr(s,xn(s),r)}),yu=ws(function(r,s,c,m){vr(s,xn(s),r,m)}),S_=ws(function(r,s,c,m){vr(s,an(s),r,m)}),A_=Br(fl);function E_(r,s){var c=vs(r);return s==null?c:_g(c,s)}var x_=et(function(r,s){r=_t(r);var c=-1,m=s.length,_=m>2?s[2]:n;for(_&&bn(s[0],s[1],_)&&(m=1);++c<m;)for(var P=s[c],$=xn(P),U=-1,H=$.length;++U<H;){var ie=$[U],se=r[ie];(se===n||ur(se,ys[ie])&&!At.call(r,ie))&&(r[ie]=P[ie])}return r}),C_=et(function(r){return r.push(n,f0),On(J0,n,r)});function __(r,s){return ag(r,Re(s,3),br)}function k_(r,s){return ag(r,Re(s,3),dl)}function T_(r,s){return r==null?r:hl(r,Re(s,3),xn)}function O_(r,s){return r==null?r:Fg(r,Re(s,3),xn)}function I_(r,s){return r&&br(r,Re(s,3))}function F_(r,s){return r&&dl(r,Re(s,3))}function B_(r){return r==null?[]:Xa(r,an(r))}function D_(r){return r==null?[]:Xa(r,xn(r))}function Kl(r,s,c){var m=r==null?n:ki(r,s);return m===n?c:m}function P_(r,s){return r!=null&&p0(r,s,r2)}function Hl(r,s){return r!=null&&p0(r,s,i2)}var R_=o0(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=ja.call(s)),r[s]=c},Gl(Cn)),N_=o0(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=ja.call(s)),At.call(r,s)?r[s].push(c):r[s]=[c]},Re),L_=et(bo);function an(r){return En(r)?xg(r):ml(r)}function xn(r){return En(r)?xg(r,!0):p2(r)}function j_(r,s){var c={};return s=Re(s,3),br(r,function(m,_,P){Ir(c,s(m,_,P),m)}),c}function $_(r,s){var c={};return s=Re(s,3),br(r,function(m,_,P){Ir(c,_,s(m,_,P))}),c}var M_=ws(function(r,s,c){Qa(r,s,c)}),J0=ws(function(r,s,c,m){Qa(r,s,c,m)}),U_=Br(function(r,s){var c={};if(r==null)return c;var m=!1;s=Nt(s,function(P){return P=ti(P,r),m||(m=P.length>1),P}),vr(r,Fl(r),c),m&&(c=Gn(c,p|w|k,R2));for(var _=s.length;_--;)El(c,s[_]);return c});function V_(r,s){return Y0(r,du(Re(s)))}var q_=Br(function(r,s){return r==null?{}:y2(r,s)});function Y0(r,s){if(r==null)return{};var c=Nt(Fl(r),function(m){return[m]});return s=Re(s),Ug(r,c,function(m,_){return s(m,_[0])})}function W_(r,s,c){s=ti(s,r);var m=-1,_=s.length;for(_||(_=1,r=n);++m<_;){var P=r==null?n:r[wr(s[m])];P===n&&(m=_,P=c),r=Pr(P)?P.call(r):P}return r}function K_(r,s,c){return r==null?r:wo(r,s,c)}function H_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:wo(r,s,c,m)}var X0=c0(an),Q0=c0(xn);function z_(r,s,c){var m=Ke(r),_=m||ri(r)||Es(r);if(s=Re(s,4),c==null){var P=r&&r.constructor;_?c=m?new P:[]:Mt(r)?c=Pr(P)?vs(Ua(r)):{}:c={}}return(_?Kn:br)(r,function($,U,H){return s(c,$,U,H)}),c}function G_(r,s){return r==null?!0:El(r,s)}function J_(r,s,c){return r==null?r:Hg(r,s,_l(c))}function Y_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Hg(r,s,_l(c),m)}function xs(r){return r==null?[]:il(r,an(r))}function X_(r){return r==null?[]:il(r,xn(r))}function Q_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Xn(c),c=c===c?c:0),s!==n&&(s=Xn(s),s=s===s?s:0),_i(Xn(r),s,c)}function Z_(r,s,c){return s=Rr(s),c===n?(c=s,s=0):c=Rr(c),r=Xn(r),s2(r,s,c)}function ek(r,s,c){if(c&&typeof c!="boolean"&&bn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=Rr(r),s===n?(s=r,r=0):s=Rr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var _=Ag();return hn(r+_*(s-r+BA("1e-"+((_+"").length-1))),s)}return wl(r,s)}var tk=Ss(function(r,s,c){return s=s.toLowerCase(),r+(c?Z0(s):s)});function Z0(r){return zl(St(r).toLowerCase())}function ey(r){return r=St(r),r&&r.replace(fn,KA).replace(AA,"")}function nk(r,s,c){r=St(r),s=Fn(s);var m=r.length;c=c===n?m:_i(Ge(c),0,m);var _=c;return c-=s.length,c>=0&&r.slice(c,_)==s}function rk(r){return r=St(r),r&&os.test(r)?r.replace(Kr,HA):r}function ik(r){return r=St(r),r&&ir.test(r)?r.replace(kr,"\\$&"):r}var sk=Ss(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),ok=Ss(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),ak=r0("toLowerCase");function uk(r,s,c){r=St(r),s=Ge(s);var m=s?ps(r):0;if(!s||m>=s)return r;var _=(s-m)/2;return iu(Ka(_),c)+r+iu(Wa(_),c)}function ck(r,s,c){r=St(r),s=Ge(s);var m=s?ps(r):0;return s&&m<s?r+iu(s-m,c):r}function lk(r,s,c){r=St(r),s=Ge(s);var m=s?ps(r):0;return s&&m<s?iu(s-m,c)+r:r}function fk(r,s,c){return c||s==null?s=0:s&&(s=+s),bE(St(r).replace(zr,""),s||0)}function hk(r,s,c){return(c?bn(r,s,c):s===n)?s=1:s=Ge(s),Sl(St(r),s)}function dk(){var r=arguments,s=St(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var pk=Ss(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function gk(r,s,c){return c&&typeof c!="number"&&bn(r,s,c)&&(s=c=n),c=c===n?we:c>>>0,c?(r=St(r),r&&(typeof s=="string"||s!=null&&!Wl(s))&&(s=Fn(s),!s&&ds(r))?ni(or(r),0,c):r.split(s,c)):[]}var yk=Ss(function(r,s,c){return r+(c?" ":"")+zl(s)});function mk(r,s,c){return r=St(r),c=c==null?0:_i(Ge(c),0,r.length),s=Fn(s),r.slice(c,c+s.length)==s}function bk(r,s,c){var m=B.templateSettings;c&&bn(r,s,c)&&(s=n),r=St(r),s=yu({},s,m,l0);var _=yu({},s.imports,m.imports,l0),P=an(_),$=il(_,P),U,H,ie=0,se=s.interpolate||kn,ae="__p += '",ve=ol((s.escape||kn).source+"|"+se.source+"|"+(se===Hr?ft:kn).source+"|"+(s.evaluate||kn).source+"|$","g"),Te="//# sourceURL="+(At.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kA+"]")+`
145
+ `)}function W2(r){return Ke(r)||Ii(r)||!!(vg&&r&&r[vg])}function Dr(r,s){var c=typeof r;return s=s??_e,!!s&&(c=="number"||c!="symbol"&&Rt.test(r))&&r>-1&&r%1==0&&r<s}function bn(r,s,c){if(!Mt(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Dr(s,c.length):m=="string"&&s in c)?ur(c[s],r):!1}function Rl(r,s){if(Ke(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Bn(r)?!0:no.test(r)||!wi.test(r)||s!=null&&r in _t(s)}function K2(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Ll(r){var s=ou(r),c=B[s];if(typeof c!="function"||!(s in ut.prototype))return!1;if(r===c)return!0;var m=Bl(c);return!!m&&r===m[0]}function H2(r){return!!gg&&gg in r}var z2=La?Pr:Zl;function Ao(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ys;return r===c}function g0(r){return r===r&&!Mt(r)}function y0(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in _t(c))}}function G2(r){var s=hu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function J2(r,s){var c=r[1],m=s[1],_=c|m,P=_<(v|R|D),$=m==D&&c==C||m==D&&c==W&&r[7].length<=s[8]||m==(D|W)&&s[7].length<=s[8]&&c==C;if(!(P||$))return r;m&v&&(r[2]=s[2],_|=c&v?0:N);var U=s[3];if(U){var H=r[3];r[3]=H?Qg(H,U,s[4]):U,r[4]=H?Xr(r[3],g):s[4]}return U=s[5],U&&(H=r[5],r[5]=H?Zg(H,U,s[6]):U,r[6]=H?Xr(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&D&&(r[8]=r[8]==null?s[8]:hn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=_,r}function Y2(r){var s=[];if(r!=null)for(var c in _t(r))s.push(c);return s}function X2(r){return ja.call(r)}function m0(r,s,c){return s=rn(s===n?r.length-1:s,0),function(){for(var m=arguments,_=-1,P=rn(m.length-s,0),$=Y(P);++_<P;)$[_]=m[s+_];_=-1;for(var U=Y(s+1);++_<s;)U[_]=m[_];return U[s]=c($),On(r,this,U)}}function b0(r,s){return s.length<2?r:ki(r,Jn(s,0,-1))}function Q2(r,s){for(var c=r.length,m=hn(s.length,c),_=An(r);m--;){var P=s[m];r[m]=Dr(P,c)?_[P]:n}return r}function Nl(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var v0=S0(Vg),Eo=dE||function(r,s){return cn.setTimeout(r,s)},jl=S0(S2);function w0(r,s,c){var m=s+"";return jl(r,q2(m,Z2(M2(m),c)))}function S0(r){var s=0,c=0;return function(){var m=mE(),_=ye-(m-c);if(c=m,_>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function uu(r,s){var c=-1,m=r.length,_=m-1;for(s=s===n?m:s;++c<s;){var P=wl(c,_),$=r[P];r[P]=r[c],r[c]=$}return r.length=s,r}var A0=G2(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ro,function(c,m,_,P){s.push(_?P.replace(Ie,"$1"):m||c)}),s});function wr(r){if(typeof r=="string"||Bn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Oi(r){if(r!=null){try{return Na.call(r)}catch{}try{return r+""}catch{}}return""}function Z2(r,s){return Kn(X,function(c){var m="_."+c[0];s&c[1]&&!Ba(r,m)&&r.push(m)}),r.sort()}function E0(r){if(r instanceof ut)return r.clone();var s=new zn(r.__wrapped__,r.__chain__);return s.__actions__=An(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function ex(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=rn(Ge(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var _=0,P=0,$=Y(Wa(m/s));_<m;)$[P++]=Jn(r,_,_+=s);return $}function tx(r){for(var s=-1,c=r==null?0:r.length,m=0,_=[];++s<c;){var P=r[s];P&&(_[m++]=P)}return _}function nx(){var r=arguments.length;if(!r)return[];for(var s=Y(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Yr(Ke(c)?An(c):[c],ln(s,1))}var rx=et(function(r,s){return Yt(r)?mo(r,ln(s,1,Yt,!0)):[]}),ix=et(function(r,s){var c=Yn(s);return Yt(c)&&(c=n),Yt(r)?mo(r,ln(s,1,Yt,!0),Re(c,2)):[]}),sx=et(function(r,s){var c=Yn(s);return Yt(c)&&(c=n),Yt(r)?mo(r,ln(s,1,Yt,!0),n,c):[]});function ox(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),Jn(r,s<0?0:s,m)):[]}function ax(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Jn(r,0,s<0?0:s)):[]}function ux(r,s){return r&&r.length?eu(r,Re(s,3),!0,!0):[]}function cx(r,s){return r&&r.length?eu(r,Re(s,3),!0):[]}function lx(r,s,c,m){var _=r==null?0:r.length;return _?(c&&typeof c!="number"&&bn(r,s,c)&&(c=0,m=_),n2(r,s,c,m)):[]}function x0(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=c==null?0:Ge(c);return _<0&&(_=rn(m+_,0)),Da(r,Re(s,3),_)}function C0(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=m-1;return c!==n&&(_=Ge(c),_=c<0?rn(m+_,0):hn(_,m-1)),Da(r,Re(s,3),_,!0)}function _0(r){var s=r==null?0:r.length;return s?ln(r,1):[]}function fx(r){var s=r==null?0:r.length;return s?ln(r,Fe):[]}function hx(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ge(s),ln(r,s)):[]}function dx(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var _=r[s];m[_[0]]=_[1]}return m}function k0(r){return r&&r.length?r[0]:n}function px(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=c==null?0:Ge(c);return _<0&&(_=rn(m+_,0)),hs(r,s,_)}function gx(r){var s=r==null?0:r.length;return s?Jn(r,0,-1):[]}var yx=et(function(r){var s=Lt(r,Cl);return s.length&&s[0]===r[0]?gl(s):[]}),mx=et(function(r){var s=Yn(r),c=Lt(r,Cl);return s===Yn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?gl(c,Re(s,2)):[]}),bx=et(function(r){var s=Yn(r),c=Lt(r,Cl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?gl(c,n,s):[]});function vx(r,s){return r==null?"":gE.call(r,s)}function Yn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function wx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var _=m;return c!==n&&(_=Ge(c),_=_<0?rn(m+_,0):hn(_,m-1)),s===s?ZA(r,s,_):Da(r,ag,_,!0)}function Sx(r,s){return r&&r.length?jg(r,Ge(s)):n}var Ax=et(T0);function T0(r,s){return r&&r.length&&s&&s.length?vl(r,s):r}function Ex(r,s,c){return r&&r.length&&s&&s.length?vl(r,s,Re(c,2)):r}function xx(r,s,c){return r&&r.length&&s&&s.length?vl(r,s,n,c):r}var Cx=Br(function(r,s){var c=r==null?0:r.length,m=fl(r,s);return Ug(r,Lt(s,function(_){return Dr(_,c)?+_:_}).sort(Xg)),m});function _x(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,_=[],P=r.length;for(s=Re(s,3);++m<P;){var $=r[m];s($,m,r)&&(c.push($),_.push(m))}return Ug(r,_),c}function $l(r){return r==null?r:vE.call(r)}function kx(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&bn(r,s,c)?(s=0,c=m):(s=s==null?0:Ge(s),c=c===n?m:Ge(c)),Jn(r,s,c)):[]}function Tx(r,s){return Za(r,s)}function Ox(r,s,c){return Al(r,s,Re(c,2))}function Ix(r,s){var c=r==null?0:r.length;if(c){var m=Za(r,s);if(m<c&&ur(r[m],s))return m}return-1}function Fx(r,s){return Za(r,s,!0)}function Bx(r,s,c){return Al(r,s,Re(c,2),!0)}function Dx(r,s){var c=r==null?0:r.length;if(c){var m=Za(r,s,!0)-1;if(ur(r[m],s))return m}return-1}function Px(r){return r&&r.length?qg(r):[]}function Rx(r,s){return r&&r.length?qg(r,Re(s,2)):[]}function Lx(r){var s=r==null?0:r.length;return s?Jn(r,1,s):[]}function Nx(r,s,c){return r&&r.length?(s=c||s===n?1:Ge(s),Jn(r,0,s<0?0:s)):[]}function jx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Jn(r,s<0?0:s,m)):[]}function $x(r,s){return r&&r.length?eu(r,Re(s,3),!1,!0):[]}function Mx(r,s){return r&&r.length?eu(r,Re(s,3)):[]}var Ux=et(function(r){return ei(ln(r,1,Yt,!0))}),Vx=et(function(r){var s=Yn(r);return Yt(s)&&(s=n),ei(ln(r,1,Yt,!0),Re(s,2))}),qx=et(function(r){var s=Yn(r);return s=typeof s=="function"?s:n,ei(ln(r,1,Yt,!0),n,s)});function Wx(r){return r&&r.length?ei(r):[]}function Kx(r,s){return r&&r.length?ei(r,Re(s,2)):[]}function Hx(r,s){return s=typeof s=="function"?s:n,r&&r.length?ei(r,n,s):[]}function Ml(r){if(!(r&&r.length))return[];var s=0;return r=Jr(r,function(c){if(Yt(c))return s=rn(c.length,s),!0}),rl(s,function(c){return Lt(r,el(c))})}function O0(r,s){if(!(r&&r.length))return[];var c=Ml(r);return s==null?c:Lt(c,function(m){return On(s,n,m)})}var zx=et(function(r,s){return Yt(r)?mo(r,s):[]}),Gx=et(function(r){return xl(Jr(r,Yt))}),Jx=et(function(r){var s=Yn(r);return Yt(s)&&(s=n),xl(Jr(r,Yt),Re(s,2))}),Yx=et(function(r){var s=Yn(r);return s=typeof s=="function"?s:n,xl(Jr(r,Yt),n,s)}),Xx=et(Ml);function Qx(r,s){return zg(r||[],s||[],yo)}function Zx(r,s){return zg(r||[],s||[],wo)}var eC=et(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,O0(r,c)});function I0(r){var s=B(r);return s.__chain__=!0,s}function tC(r,s){return s(r),r}function cu(r,s){return s(r)}var nC=Br(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,_=function(P){return fl(P,r)};return s>1||this.__actions__.length||!(m instanceof ut)||!Dr(c)?this.thru(_):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:cu,args:[_],thisArg:n}),new zn(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function rC(){return I0(this)}function iC(){return new zn(this.value(),this.__chain__)}function sC(){this.__values__===n&&(this.__values__=W0(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function oC(){return this}function aC(r){for(var s,c=this;c instanceof Ga;){var m=E0(c);m.__index__=0,m.__values__=n,s?_.__wrapped__=m:s=m;var _=m;c=c.__wrapped__}return _.__wrapped__=r,s}function uC(){var r=this.__wrapped__;if(r instanceof ut){var s=r;return this.__actions__.length&&(s=new ut(this)),s=s.reverse(),s.__actions__.push({func:cu,args:[$l],thisArg:n}),new zn(s,this.__chain__)}return this.thru($l)}function cC(){return Hg(this.__wrapped__,this.__actions__)}var lC=tu(function(r,s,c){At.call(r,c)?++r[c]:Ir(r,c,1)});function fC(r,s,c){var m=Ke(r)?sg:t2;return c&&bn(r,s,c)&&(s=n),m(r,Re(s,3))}function hC(r,s){var c=Ke(r)?Jr:Og;return c(r,Re(s,3))}var dC=r0(x0),pC=r0(C0);function gC(r,s){return ln(lu(r,s),1)}function yC(r,s){return ln(lu(r,s),Fe)}function mC(r,s,c){return c=c===n?1:Ge(c),ln(lu(r,s),c)}function F0(r,s){var c=Ke(r)?Kn:Zr;return c(r,Re(s,3))}function B0(r,s){var c=Ke(r)?LA:Tg;return c(r,Re(s,3))}var bC=tu(function(r,s,c){At.call(r,c)?r[c].push(s):Ir(r,c,[s])});function vC(r,s,c,m){r=En(r)?r:xs(r),c=c&&!m?Ge(c):0;var _=r.length;return c<0&&(c=rn(_+c,0)),gu(r)?c<=_&&r.indexOf(s,c)>-1:!!_&&hs(r,s,c)>-1}var wC=et(function(r,s,c){var m=-1,_=typeof s=="function",P=En(r)?Y(r.length):[];return Zr(r,function($){P[++m]=_?On(s,$,c):bo($,s,c)}),P}),SC=tu(function(r,s,c){Ir(r,c,s)});function lu(r,s){var c=Ke(r)?Lt:Rg;return c(r,Re(s,3))}function AC(r,s,c,m){return r==null?[]:(Ke(s)||(s=s==null?[]:[s]),c=m?n:c,Ke(c)||(c=c==null?[]:[c]),$g(r,s,c))}var EC=tu(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function xC(r,s,c){var m=Ke(r)?Qc:cg,_=arguments.length<3;return m(r,Re(s,4),c,_,Zr)}function CC(r,s,c){var m=Ke(r)?NA:cg,_=arguments.length<3;return m(r,Re(s,4),c,_,Tg)}function _C(r,s){var c=Ke(r)?Jr:Og;return c(r,du(Re(s,3)))}function kC(r){var s=Ke(r)?xg:v2;return s(r)}function TC(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=Ge(s);var m=Ke(r)?YE:w2;return m(r,s)}function OC(r){var s=Ke(r)?XE:A2;return s(r)}function IC(r){if(r==null)return 0;if(En(r))return gu(r)?ps(r):r.length;var s=dn(r);return s==Nt||s==Et?r.size:ml(r).length}function FC(r,s,c){var m=Ke(r)?Zc:E2;return c&&bn(r,s,c)&&(s=n),m(r,Re(s,3))}var BC=et(function(r,s){if(r==null)return[];var c=s.length;return c>1&&bn(r,s[0],s[1])?s=[]:c>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),$g(r,ln(s,1),[])}),fu=hE||function(){return cn.Date.now()};function DC(r,s){if(typeof s!="function")throw new Hn(u);return r=Ge(r),function(){if(--r<1)return s.apply(this,arguments)}}function D0(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Fr(r,D,n,n,n,n,s)}function P0(r,s){var c;if(typeof s!="function")throw new Hn(u);return r=Ge(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Ul=et(function(r,s,c){var m=v;if(c.length){var _=Xr(c,As(Ul));m|=I}return Fr(r,m,s,c,_)}),R0=et(function(r,s,c){var m=v|R;if(c.length){var _=Xr(c,As(R0));m|=I}return Fr(s,m,r,c,_)});function L0(r,s,c){s=c?n:s;var m=Fr(r,C,n,n,n,n,n,s);return m.placeholder=L0.placeholder,m}function N0(r,s,c){s=c?n:s;var m=Fr(r,x,n,n,n,n,n,s);return m.placeholder=N0.placeholder,m}function j0(r,s,c){var m,_,P,$,U,H,ie=0,se=!1,ae=!1,ve=!0;if(typeof r!="function")throw new Hn(u);s=Xn(s)||0,Mt(c)&&(se=!!c.leading,ae="maxWait"in c,P=ae?rn(Xn(c.maxWait)||0,s):P,ve="trailing"in c?!!c.trailing:ve);function Te(Xt){var cr=m,Lr=_;return m=_=n,ie=Xt,$=r.apply(Lr,cr),$}function Ne(Xt){return ie=Xt,U=Eo(st,s),se?Te(Xt):$}function Xe(Xt){var cr=Xt-H,Lr=Xt-ie,ry=s-cr;return ae?hn(ry,P-Lr):ry}function je(Xt){var cr=Xt-H,Lr=Xt-ie;return H===n||cr>=s||cr<0||ae&&Lr>=P}function st(){var Xt=fu();if(je(Xt))return ct(Xt);U=Eo(st,Xe(Xt))}function ct(Xt){return U=n,ve&&m?Te(Xt):(m=_=n,$)}function Dn(){U!==n&&Gg(U),ie=0,m=H=_=U=n}function vn(){return U===n?$:ct(fu())}function Pn(){var Xt=fu(),cr=je(Xt);if(m=arguments,_=this,H=Xt,cr){if(U===n)return Ne(H);if(ae)return Gg(U),U=Eo(st,s),Te(H)}return U===n&&(U=Eo(st,s)),$}return Pn.cancel=Dn,Pn.flush=vn,Pn}var PC=et(function(r,s){return kg(r,1,s)}),RC=et(function(r,s,c){return kg(r,Xn(s)||0,c)});function LC(r){return Fr(r,Q)}function hu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Hn(u);var c=function(){var m=arguments,_=s?s.apply(this,m):m[0],P=c.cache;if(P.has(_))return P.get(_);var $=r.apply(this,m);return c.cache=P.set(_,$)||P,$};return c.cache=new(hu.Cache||Or),c}hu.Cache=Or;function du(r){if(typeof r!="function")throw new Hn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function NC(r){return P0(2,r)}var jC=x2(function(r,s){s=s.length==1&&Ke(s[0])?Lt(s[0],In(Re())):Lt(ln(s,1),In(Re()));var c=s.length;return et(function(m){for(var _=-1,P=hn(m.length,c);++_<P;)m[_]=s[_].call(this,m[_]);return On(r,this,m)})}),Vl=et(function(r,s){var c=Xr(s,As(Vl));return Fr(r,I,n,s,c)}),$0=et(function(r,s){var c=Xr(s,As($0));return Fr(r,O,n,s,c)}),$C=Br(function(r,s){return Fr(r,W,n,n,n,s)});function MC(r,s){if(typeof r!="function")throw new Hn(u);return s=s===n?s:Ge(s),et(r,s)}function UC(r,s){if(typeof r!="function")throw new Hn(u);return s=s==null?0:rn(Ge(s),0),et(function(c){var m=c[s],_=ni(c,0,s);return m&&Yr(_,m),On(r,this,_)})}function VC(r,s,c){var m=!0,_=!0;if(typeof r!="function")throw new Hn(u);return Mt(c)&&(m="leading"in c?!!c.leading:m,_="trailing"in c?!!c.trailing:_),j0(r,s,{leading:m,maxWait:s,trailing:_})}function qC(r){return D0(r,1)}function WC(r,s){return Vl(_l(s),r)}function KC(){if(!arguments.length)return[];var r=arguments[0];return Ke(r)?r:[r]}function HC(r){return Gn(r,k)}function zC(r,s){return s=typeof s=="function"?s:n,Gn(r,k,s)}function GC(r){return Gn(r,p|k)}function JC(r,s){return s=typeof s=="function"?s:n,Gn(r,p|k,s)}function YC(r,s){return s==null||_g(r,s,an(s))}function ur(r,s){return r===s||r!==r&&s!==s}var XC=su(pl),QC=su(function(r,s){return r>=s}),Ii=Bg(function(){return arguments}())?Bg:function(r){return Vt(r)&&At.call(r,"callee")&&!bg.call(r,"callee")},Ke=Y.isArray,ZC=Zp?In(Zp):a2;function En(r){return r!=null&&pu(r.length)&&!Pr(r)}function Yt(r){return Vt(r)&&En(r)}function e_(r){return r===!0||r===!1||Vt(r)&&mn(r)==xe}var ri=pE||Zl,t_=eg?In(eg):u2;function n_(r){return Vt(r)&&r.nodeType===1&&!xo(r)}function r_(r){if(r==null)return!0;if(En(r)&&(Ke(r)||typeof r=="string"||typeof r.splice=="function"||ri(r)||Es(r)||Ii(r)))return!r.length;var s=dn(r);if(s==Nt||s==Et)return!r.size;if(Ao(r))return!ml(r).length;for(var c in r)if(At.call(r,c))return!1;return!0}function i_(r,s){return vo(r,s)}function s_(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?vo(r,s,n,c):!!m}function ql(r){if(!Vt(r))return!1;var s=mn(r);return s==Le||s==$e||typeof r.message=="string"&&typeof r.name=="string"&&!xo(r)}function o_(r){return typeof r=="number"&&wg(r)}function Pr(r){if(!Mt(r))return!1;var s=mn(r);return s==Tt||s==on||s==We||s==Ot}function M0(r){return typeof r=="number"&&r==Ge(r)}function pu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=_e}function Mt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Vt(r){return r!=null&&typeof r=="object"}var U0=tg?In(tg):l2;function a_(r,s){return r===s||yl(r,s,Dl(s))}function u_(r,s,c){return c=typeof c=="function"?c:n,yl(r,s,Dl(s),c)}function c_(r){return V0(r)&&r!=+r}function l_(r){if(z2(r))throw new Ue(a);return Dg(r)}function f_(r){return r===null}function h_(r){return r==null}function V0(r){return typeof r=="number"||Vt(r)&&mn(r)==jt}function xo(r){if(!Vt(r)||mn(r)!=ke)return!1;var s=Ua(r);if(s===null)return!0;var c=At.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Na.call(c)==uE}var Wl=ng?In(ng):f2;function d_(r){return M0(r)&&r>=-9007199254740991&&r<=_e}var q0=rg?In(rg):h2;function gu(r){return typeof r=="string"||!Ke(r)&&Vt(r)&&mn(r)==me}function Bn(r){return typeof r=="symbol"||Vt(r)&&mn(r)==Ze}var Es=ig?In(ig):d2;function p_(r){return r===n}function g_(r){return Vt(r)&&dn(r)==ot}function y_(r){return Vt(r)&&mn(r)==Ut}var m_=su(bl),b_=su(function(r,s){return r<=s});function W0(r){if(!r)return[];if(En(r))return gu(r)?or(r):An(r);if(lo&&r[lo])return YA(r[lo]());var s=dn(r),c=s==Nt?sl:s==Et?Pa:xs;return c(r)}function Rr(r){if(!r)return r===0?r:0;if(r=Xn(r),r===Fe||r===-1/0){var s=r<0?-1:1;return s*qe}return r===r?r:0}function Ge(r){var s=Rr(r),c=s%1;return s===s?c?s-c:s:0}function K0(r){return r?_i(Ge(r),0,we):0}function Xn(r){if(typeof r=="number")return r;if(Bn(r))return Ee;if(Mt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Mt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=lg(r);var c=Ye.test(r);return c||Dt.test(r)?DA(r.slice(2),c?2:8):rt.test(r)?Ee:+r}function H0(r){return vr(r,xn(r))}function v_(r){return r?_i(Ge(r),-9007199254740991,_e):r===0?r:0}function St(r){return r==null?"":Fn(r)}var w_=ws(function(r,s){if(Ao(s)||En(s)){vr(s,an(s),r);return}for(var c in s)At.call(s,c)&&yo(r,c,s[c])}),z0=ws(function(r,s){vr(s,xn(s),r)}),yu=ws(function(r,s,c,m){vr(s,xn(s),r,m)}),S_=ws(function(r,s,c,m){vr(s,an(s),r,m)}),A_=Br(fl);function E_(r,s){var c=vs(r);return s==null?c:Cg(c,s)}var x_=et(function(r,s){r=_t(r);var c=-1,m=s.length,_=m>2?s[2]:n;for(_&&bn(s[0],s[1],_)&&(m=1);++c<m;)for(var P=s[c],$=xn(P),U=-1,H=$.length;++U<H;){var ie=$[U],se=r[ie];(se===n||ur(se,ys[ie])&&!At.call(r,ie))&&(r[ie]=P[ie])}return r}),C_=et(function(r){return r.push(n,l0),On(G0,n,r)});function __(r,s){return og(r,Re(s,3),br)}function k_(r,s){return og(r,Re(s,3),dl)}function T_(r,s){return r==null?r:hl(r,Re(s,3),xn)}function O_(r,s){return r==null?r:Ig(r,Re(s,3),xn)}function I_(r,s){return r&&br(r,Re(s,3))}function F_(r,s){return r&&dl(r,Re(s,3))}function B_(r){return r==null?[]:Xa(r,an(r))}function D_(r){return r==null?[]:Xa(r,xn(r))}function Kl(r,s,c){var m=r==null?n:ki(r,s);return m===n?c:m}function P_(r,s){return r!=null&&d0(r,s,r2)}function Hl(r,s){return r!=null&&d0(r,s,i2)}var R_=s0(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=ja.call(s)),r[s]=c},Gl(Cn)),L_=s0(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=ja.call(s)),At.call(r,s)?r[s].push(c):r[s]=[c]},Re),N_=et(bo);function an(r){return En(r)?Eg(r):ml(r)}function xn(r){return En(r)?Eg(r,!0):p2(r)}function j_(r,s){var c={};return s=Re(s,3),br(r,function(m,_,P){Ir(c,s(m,_,P),m)}),c}function $_(r,s){var c={};return s=Re(s,3),br(r,function(m,_,P){Ir(c,_,s(m,_,P))}),c}var M_=ws(function(r,s,c){Qa(r,s,c)}),G0=ws(function(r,s,c,m){Qa(r,s,c,m)}),U_=Br(function(r,s){var c={};if(r==null)return c;var m=!1;s=Lt(s,function(P){return P=ti(P,r),m||(m=P.length>1),P}),vr(r,Fl(r),c),m&&(c=Gn(c,p|w|k,R2));for(var _=s.length;_--;)El(c,s[_]);return c});function V_(r,s){return J0(r,du(Re(s)))}var q_=Br(function(r,s){return r==null?{}:y2(r,s)});function J0(r,s){if(r==null)return{};var c=Lt(Fl(r),function(m){return[m]});return s=Re(s),Mg(r,c,function(m,_){return s(m,_[0])})}function W_(r,s,c){s=ti(s,r);var m=-1,_=s.length;for(_||(_=1,r=n);++m<_;){var P=r==null?n:r[wr(s[m])];P===n&&(m=_,P=c),r=Pr(P)?P.call(r):P}return r}function K_(r,s,c){return r==null?r:wo(r,s,c)}function H_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:wo(r,s,c,m)}var Y0=u0(an),X0=u0(xn);function z_(r,s,c){var m=Ke(r),_=m||ri(r)||Es(r);if(s=Re(s,4),c==null){var P=r&&r.constructor;_?c=m?new P:[]:Mt(r)?c=Pr(P)?vs(Ua(r)):{}:c={}}return(_?Kn:br)(r,function($,U,H){return s(c,$,U,H)}),c}function G_(r,s){return r==null?!0:El(r,s)}function J_(r,s,c){return r==null?r:Kg(r,s,_l(c))}function Y_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Kg(r,s,_l(c),m)}function xs(r){return r==null?[]:il(r,an(r))}function X_(r){return r==null?[]:il(r,xn(r))}function Q_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Xn(c),c=c===c?c:0),s!==n&&(s=Xn(s),s=s===s?s:0),_i(Xn(r),s,c)}function Z_(r,s,c){return s=Rr(s),c===n?(c=s,s=0):c=Rr(c),r=Xn(r),s2(r,s,c)}function ek(r,s,c){if(c&&typeof c!="boolean"&&bn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=Rr(r),s===n?(s=r,r=0):s=Rr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var _=Sg();return hn(r+_*(s-r+BA("1e-"+((_+"").length-1))),s)}return wl(r,s)}var tk=Ss(function(r,s,c){return s=s.toLowerCase(),r+(c?Q0(s):s)});function Q0(r){return zl(St(r).toLowerCase())}function Z0(r){return r=St(r),r&&r.replace(fn,KA).replace(AA,"")}function nk(r,s,c){r=St(r),s=Fn(s);var m=r.length;c=c===n?m:_i(Ge(c),0,m);var _=c;return c-=s.length,c>=0&&r.slice(c,_)==s}function rk(r){return r=St(r),r&&os.test(r)?r.replace(Kr,HA):r}function ik(r){return r=St(r),r&&ir.test(r)?r.replace(kr,"\\$&"):r}var sk=Ss(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),ok=Ss(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),ak=n0("toLowerCase");function uk(r,s,c){r=St(r),s=Ge(s);var m=s?ps(r):0;if(!s||m>=s)return r;var _=(s-m)/2;return iu(Ka(_),c)+r+iu(Wa(_),c)}function ck(r,s,c){r=St(r),s=Ge(s);var m=s?ps(r):0;return s&&m<s?r+iu(s-m,c):r}function lk(r,s,c){r=St(r),s=Ge(s);var m=s?ps(r):0;return s&&m<s?iu(s-m,c)+r:r}function fk(r,s,c){return c||s==null?s=0:s&&(s=+s),bE(St(r).replace(zr,""),s||0)}function hk(r,s,c){return(c?bn(r,s,c):s===n)?s=1:s=Ge(s),Sl(St(r),s)}function dk(){var r=arguments,s=St(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var pk=Ss(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function gk(r,s,c){return c&&typeof c!="number"&&bn(r,s,c)&&(s=c=n),c=c===n?we:c>>>0,c?(r=St(r),r&&(typeof s=="string"||s!=null&&!Wl(s))&&(s=Fn(s),!s&&ds(r))?ni(or(r),0,c):r.split(s,c)):[]}var yk=Ss(function(r,s,c){return r+(c?" ":"")+zl(s)});function mk(r,s,c){return r=St(r),c=c==null?0:_i(Ge(c),0,r.length),s=Fn(s),r.slice(c,c+s.length)==s}function bk(r,s,c){var m=B.templateSettings;c&&bn(r,s,c)&&(s=n),r=St(r),s=yu({},s,m,c0);var _=yu({},s.imports,m.imports,c0),P=an(_),$=il(_,P),U,H,ie=0,se=s.interpolate||kn,ae="__p += '",ve=ol((s.escape||kn).source+"|"+se.source+"|"+(se===Hr?ft:kn).source+"|"+(s.evaluate||kn).source+"|$","g"),Te="//# sourceURL="+(At.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kA+"]")+`
146
146
  `;r.replace(ve,function(je,st,ct,Dn,vn,Pn){return ct||(ct=Dn),ae+=r.slice(ie,Pn).replace(sr,zA),st&&(U=!0,ae+=`' +
147
147
  __e(`+st+`) +
148
148
  '`),vn&&(H=!0,ae+=`';
@@ -150,21 +150,21 @@ __e(`+st+`) +
150
150
  __p += '`),ct&&(ae+=`' +
151
151
  ((__t = (`+ct+`)) == null ? '' : __t) +
152
152
  '`),ie=Pn+je.length,je}),ae+=`';
153
- `;var Le=At.call(s,"variable")&&s.variable;if(!Le)ae=`with (obj) {
153
+ `;var Ne=At.call(s,"variable")&&s.variable;if(!Ne)ae=`with (obj) {
154
154
  `+ae+`
155
155
  }
156
- `;else if(be.test(Le))throw new Ue(l);ae=(H?ae.replace(yt,""):ae).replace(lt,"$1").replace(gt,"$1;"),ae="function("+(Le||"obj")+`) {
157
- `+(Le?"":`obj || (obj = {});
156
+ `;else if(be.test(Ne))throw new Ue(l);ae=(H?ae.replace(yt,""):ae).replace(lt,"$1").replace(gt,"$1;"),ae="function("+(Ne||"obj")+`) {
157
+ `+(Ne?"":`obj || (obj = {});
158
158
  `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
161
  `)+ae+`return __p
162
- }`;var Xe=ny(function(){return wt(P,Te+"return "+ae).apply(n,$)});if(Xe.source=ae,ql(Xe))throw Xe;return Xe}function vk(r){return St(r).toLowerCase()}function wk(r){return St(r).toUpperCase()}function Sk(r,s,c){if(r=St(r),r&&(c||s===n))return fg(r);if(!r||!(s=Fn(s)))return r;var m=or(r),_=or(s),P=hg(m,_),$=dg(m,_)+1;return ni(m,P,$).join("")}function Ak(r,s,c){if(r=St(r),r&&(c||s===n))return r.slice(0,gg(r)+1);if(!r||!(s=Fn(s)))return r;var m=or(r),_=dg(m,or(s))+1;return ni(m,0,_).join("")}function Ek(r,s,c){if(r=St(r),r&&(c||s===n))return r.replace(zr,"");if(!r||!(s=Fn(s)))return r;var m=or(r),_=hg(m,or(s));return ni(m,_).join("")}function xk(r,s){var c=ce,m=fe;if(Mt(s)){var _="separator"in s?s.separator:_;c="length"in s?Ge(s.length):c,m="omission"in s?Fn(s.omission):m}r=St(r);var P=r.length;if(ds(r)){var $=or(r);P=$.length}if(c>=P)return r;var U=c-ps(m);if(U<1)return m;var H=$?ni($,0,U).join(""):r.slice(0,U);if(_===n)return H+m;if($&&(U+=H.length-U),Wl(_)){if(r.slice(U).search(_)){var ie,se=H;for(_.global||(_=ol(_.source,St(ht.exec(_))+"g")),_.lastIndex=0;ie=_.exec(se);)var ae=ie.index;H=H.slice(0,ae===n?U:ae)}}else if(r.indexOf(Fn(_),U)!=U){var ve=H.lastIndexOf(_);ve>-1&&(H=H.slice(0,ve))}return H+m}function Ck(r){return r=St(r),r&&vi.test(r)?r.replace(at,eE):r}var _k=Ss(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),zl=r0("toUpperCase");function ty(r,s,c){return r=St(r),s=c?n:s,s===n?JA(r)?rE(r):MA(r):r.match(s)||[]}var ny=et(function(r,s){try{return On(r,n,s)}catch(c){return ql(c)?c:new Ue(c)}}),kk=Br(function(r,s){return Kn(s,function(c){c=wr(c),Ir(r,c,Ul(r[c],r))}),r});function Tk(r){var s=r==null?0:r.length,c=Re();return r=s?Nt(r,function(m){if(typeof m[1]!="function")throw new Hn(u);return[c(m[0]),m[1]]}):[],et(function(m){for(var _=-1;++_<s;){var P=r[_];if(On(P[0],this,m))return On(P[1],this,m)}})}function Ok(r){return e2(Gn(r,p))}function Gl(r){return function(){return r}}function Ik(r,s){return r==null||r!==r?s:r}var Fk=s0(),Bk=s0(!0);function Cn(r){return r}function Jl(r){return Rg(typeof r=="function"?r:Gn(r,p))}function Dk(r){return Lg(Gn(r,p))}function Pk(r,s){return jg(r,Gn(s,p))}var Rk=et(function(r,s){return function(c){return bo(c,r,s)}}),Nk=et(function(r,s){return function(c){return bo(r,c,s)}});function Yl(r,s,c){var m=an(s),_=Xa(s,m);c==null&&!(Mt(s)&&(_.length||!m.length))&&(c=s,s=r,r=this,_=Xa(s,an(s)));var P=!(Mt(c)&&"chain"in c)||!!c.chain,$=Pr(r);return Kn(_,function(U){var H=s[U];r[U]=H,$&&(r.prototype[U]=function(){var ie=this.__chain__;if(P||ie){var se=r(this.__wrapped__),ae=se.__actions__=An(this.__actions__);return ae.push({func:H,args:arguments,thisArg:r}),se.__chain__=ie,se}return H.apply(r,Yr([this.value()],arguments))})}),r}function Lk(){return cn._===this&&(cn._=cE),this}function Xl(){}function jk(r){return r=Ge(r),et(function(s){return $g(s,r)})}var $k=Tl(Nt),Mk=Tl(og),Uk=Tl(Zc);function ry(r){return Rl(r)?el(wr(r)):m2(r)}function Vk(r){return function(s){return r==null?n:ki(r,s)}}var qk=a0(),Wk=a0(!0);function Ql(){return[]}function Zl(){return!1}function Kk(){return{}}function Hk(){return""}function zk(){return!0}function Gk(r,s){if(r=Ge(r),r<1||r>_e)return[];var c=we,m=hn(r,we);s=Re(s),r-=we;for(var _=rl(m,s);++c<r;)s(c);return _}function Jk(r){return Ke(r)?Nt(r,wr):Bn(r)?[r]:An(E0(St(r)))}function Yk(r){var s=++aE;return St(r)+s}var Xk=ru(function(r,s){return r+s},0),Qk=Ol("ceil"),Zk=ru(function(r,s){return r/s},1),eT=Ol("floor");function tT(r){return r&&r.length?Ya(r,Cn,pl):n}function nT(r,s){return r&&r.length?Ya(r,Re(s,2),pl):n}function rT(r){return cg(r,Cn)}function iT(r,s){return cg(r,Re(s,2))}function sT(r){return r&&r.length?Ya(r,Cn,bl):n}function oT(r,s){return r&&r.length?Ya(r,Re(s,2),bl):n}var aT=ru(function(r,s){return r*s},1),uT=Ol("round"),cT=ru(function(r,s){return r-s},0);function lT(r){return r&&r.length?nl(r,Cn):0}function fT(r,s){return r&&r.length?nl(r,Re(s,2)):0}return B.after=DC,B.ary=P0,B.assign=w_,B.assignIn=G0,B.assignInWith=yu,B.assignWith=S_,B.at=A_,B.before=R0,B.bind=Ul,B.bindAll=kk,B.bindKey=N0,B.castArray=KC,B.chain=F0,B.chunk=ex,B.compact=tx,B.concat=nx,B.cond=Tk,B.conforms=Ok,B.constant=Gl,B.countBy=lC,B.create=E_,B.curry=L0,B.curryRight=j0,B.debounce=$0,B.defaults=x_,B.defaultsDeep=C_,B.defer=PC,B.delay=RC,B.difference=rx,B.differenceBy=ix,B.differenceWith=sx,B.drop=ox,B.dropRight=ax,B.dropRightWhile=ux,B.dropWhile=cx,B.fill=lx,B.filter=hC,B.flatMap=gC,B.flatMapDeep=yC,B.flatMapDepth=mC,B.flatten=k0,B.flattenDeep=fx,B.flattenDepth=hx,B.flip=NC,B.flow=Fk,B.flowRight=Bk,B.fromPairs=dx,B.functions=B_,B.functionsIn=D_,B.groupBy=bC,B.initial=gx,B.intersection=yx,B.intersectionBy=mx,B.intersectionWith=bx,B.invert=R_,B.invertBy=N_,B.invokeMap=wC,B.iteratee=Jl,B.keyBy=SC,B.keys=an,B.keysIn=xn,B.map=lu,B.mapKeys=j_,B.mapValues=$_,B.matches=Dk,B.matchesProperty=Pk,B.memoize=hu,B.merge=M_,B.mergeWith=J0,B.method=Rk,B.methodOf=Nk,B.mixin=Yl,B.negate=du,B.nthArg=jk,B.omit=U_,B.omitBy=V_,B.once=LC,B.orderBy=AC,B.over=$k,B.overArgs=jC,B.overEvery=Mk,B.overSome=Uk,B.partial=Vl,B.partialRight=M0,B.partition=EC,B.pick=q_,B.pickBy=Y0,B.property=ry,B.propertyOf=Vk,B.pull=Ax,B.pullAll=O0,B.pullAllBy=Ex,B.pullAllWith=xx,B.pullAt=Cx,B.range=qk,B.rangeRight=Wk,B.rearg=$C,B.reject=_C,B.remove=_x,B.rest=MC,B.reverse=$l,B.sampleSize=TC,B.set=K_,B.setWith=H_,B.shuffle=OC,B.slice=kx,B.sortBy=BC,B.sortedUniq=Px,B.sortedUniqBy=Rx,B.split=gk,B.spread=UC,B.tail=Nx,B.take=Lx,B.takeRight=jx,B.takeRightWhile=$x,B.takeWhile=Mx,B.tap=tC,B.throttle=VC,B.thru=cu,B.toArray=K0,B.toPairs=X0,B.toPairsIn=Q0,B.toPath=Jk,B.toPlainObject=z0,B.transform=z_,B.unary=qC,B.union=Ux,B.unionBy=Vx,B.unionWith=qx,B.uniq=Wx,B.uniqBy=Kx,B.uniqWith=Hx,B.unset=G_,B.unzip=Ml,B.unzipWith=I0,B.update=J_,B.updateWith=Y_,B.values=xs,B.valuesIn=X_,B.without=zx,B.words=ty,B.wrap=WC,B.xor=Gx,B.xorBy=Jx,B.xorWith=Yx,B.zip=Xx,B.zipObject=Qx,B.zipObjectDeep=Zx,B.zipWith=eC,B.entries=X0,B.entriesIn=Q0,B.extend=G0,B.extendWith=yu,Yl(B,B),B.add=Xk,B.attempt=ny,B.camelCase=tk,B.capitalize=Z0,B.ceil=Qk,B.clamp=Q_,B.clone=HC,B.cloneDeep=GC,B.cloneDeepWith=JC,B.cloneWith=zC,B.conformsTo=YC,B.deburr=ey,B.defaultTo=Ik,B.divide=Zk,B.endsWith=nk,B.eq=ur,B.escape=rk,B.escapeRegExp=ik,B.every=fC,B.find=dC,B.findIndex=C0,B.findKey=__,B.findLast=pC,B.findLastIndex=_0,B.findLastKey=k_,B.floor=eT,B.forEach=B0,B.forEachRight=D0,B.forIn=T_,B.forInRight=O_,B.forOwn=I_,B.forOwnRight=F_,B.get=Kl,B.gt=XC,B.gte=QC,B.has=P_,B.hasIn=Hl,B.head=T0,B.identity=Cn,B.includes=vC,B.indexOf=px,B.inRange=Z_,B.invoke=L_,B.isArguments=Ii,B.isArray=Ke,B.isArrayBuffer=ZC,B.isArrayLike=En,B.isArrayLikeObject=Yt,B.isBoolean=e_,B.isBuffer=ri,B.isDate=t_,B.isElement=n_,B.isEmpty=r_,B.isEqual=i_,B.isEqualWith=s_,B.isError=ql,B.isFinite=o_,B.isFunction=Pr,B.isInteger=U0,B.isLength=pu,B.isMap=V0,B.isMatch=a_,B.isMatchWith=u_,B.isNaN=c_,B.isNative=l_,B.isNil=h_,B.isNull=f_,B.isNumber=q0,B.isObject=Mt,B.isObjectLike=Vt,B.isPlainObject=xo,B.isRegExp=Wl,B.isSafeInteger=d_,B.isSet=W0,B.isString=gu,B.isSymbol=Bn,B.isTypedArray=Es,B.isUndefined=p_,B.isWeakMap=g_,B.isWeakSet=y_,B.join=vx,B.kebabCase=sk,B.last=Yn,B.lastIndexOf=wx,B.lowerCase=ok,B.lowerFirst=ak,B.lt=m_,B.lte=b_,B.max=tT,B.maxBy=nT,B.mean=rT,B.meanBy=iT,B.min=sT,B.minBy=oT,B.stubArray=Ql,B.stubFalse=Zl,B.stubObject=Kk,B.stubString=Hk,B.stubTrue=zk,B.multiply=aT,B.nth=Sx,B.noConflict=Lk,B.noop=Xl,B.now=fu,B.pad=uk,B.padEnd=ck,B.padStart=lk,B.parseInt=fk,B.random=ek,B.reduce=xC,B.reduceRight=CC,B.repeat=hk,B.replace=dk,B.result=W_,B.round=uT,B.runInContext=K,B.sample=kC,B.size=IC,B.snakeCase=pk,B.some=FC,B.sortedIndex=Tx,B.sortedIndexBy=Ox,B.sortedIndexOf=Ix,B.sortedLastIndex=Fx,B.sortedLastIndexBy=Bx,B.sortedLastIndexOf=Dx,B.startCase=yk,B.startsWith=mk,B.subtract=cT,B.sum=lT,B.sumBy=fT,B.template=bk,B.times=Gk,B.toFinite=Rr,B.toInteger=Ge,B.toLength=H0,B.toLower=vk,B.toNumber=Xn,B.toSafeInteger=v_,B.toString=St,B.toUpper=wk,B.trim=Sk,B.trimEnd=Ak,B.trimStart=Ek,B.truncate=xk,B.unescape=Ck,B.uniqueId=Yk,B.upperCase=_k,B.upperFirst=zl,B.each=B0,B.eachRight=D0,B.first=T0,Yl(B,function(){var r={};return br(B,function(s,c){At.call(B.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),B.VERSION=i,Kn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){B[r].placeholder=B}),Kn(["drop","take"],function(r,s){ut.prototype[r]=function(c){c=c===n?1:rn(Ge(c),0);var m=this.__filtered__&&!s?new ut(this):this.clone();return m.__filtered__?m.__takeCount__=hn(c,m.__takeCount__):m.__views__.push({size:hn(c,we),type:r+(m.__dir__<0?"Right":"")}),m},ut.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Kn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==pe||c==Pe;ut.prototype[r]=function(_){var P=this.clone();return P.__iteratees__.push({iteratee:Re(_,3),type:c}),P.__filtered__=P.__filtered__||m,P}}),Kn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ut.prototype[r]=function(){return this[c](1).value()[0]}}),Kn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ut.prototype[r]=function(){return this.__filtered__?new ut(this):this[c](1)}}),ut.prototype.compact=function(){return this.filter(Cn)},ut.prototype.find=function(r){return this.filter(r).head()},ut.prototype.findLast=function(r){return this.reverse().find(r)},ut.prototype.invokeMap=et(function(r,s){return typeof r=="function"?new ut(this):this.map(function(c){return bo(c,r,s)})}),ut.prototype.reject=function(r){return this.filter(du(Re(r)))},ut.prototype.slice=function(r,s){r=Ge(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ut(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ge(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ut.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ut.prototype.toArray=function(){return this.take(we)},br(ut.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),_=B[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);_&&(B.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,H=$ instanceof ut,ie=U[0],se=H||Ke($),ae=function(st){var ct=_.apply(B,Yr([st],U));return m&&ve?ct[0]:ct};se&&c&&typeof ie=="function"&&ie.length!=1&&(H=se=!1);var ve=this.__chain__,Te=!!this.__actions__.length,Le=P&&!ve,Xe=H&&!Te;if(!P&&se){$=Xe?$:new ut(this);var je=r.apply($,U);return je.__actions__.push({func:cu,args:[ae],thisArg:n}),new zn(je,ve)}return Le&&Xe?r.apply(this,U):(je=this.thru(ae),Le?m?je.value()[0]:je.value():je)})}),Kn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Ra[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);B.prototype[r]=function(){var _=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(Ke(P)?P:[],_)}return this[c](function($){return s.apply(Ke($)?$:[],_)})}}),br(ut.prototype,function(r,s){var c=B[s];if(c){var m=c.name+"";At.call(bs,m)||(bs[m]=[]),bs[m].push({name:s,func:c})}}),bs[nu(n,R).name]=[{name:"wrapper",func:n}],ut.prototype.clone=CE,ut.prototype.reverse=_E,ut.prototype.value=kE,B.prototype.at=nC,B.prototype.chain=rC,B.prototype.commit=iC,B.prototype.next=sC,B.prototype.plant=aC,B.prototype.reverse=uC,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=cC,B.prototype.first=B.prototype.head,lo&&(B.prototype[lo]=oC),B},gs=iE();Ai?((Ai.exports=gs)._=gs,Jc._=gs):cn._=gs}).call(Zn)}(Xo,Xo.exports);var fi=Xo.exports;const bt=vu(fi),Y1={ShortenedText:Qe.div`
162
+ }`;var Xe=ty(function(){return wt(P,Te+"return "+ae).apply(n,$)});if(Xe.source=ae,ql(Xe))throw Xe;return Xe}function vk(r){return St(r).toLowerCase()}function wk(r){return St(r).toUpperCase()}function Sk(r,s,c){if(r=St(r),r&&(c||s===n))return lg(r);if(!r||!(s=Fn(s)))return r;var m=or(r),_=or(s),P=fg(m,_),$=hg(m,_)+1;return ni(m,P,$).join("")}function Ak(r,s,c){if(r=St(r),r&&(c||s===n))return r.slice(0,pg(r)+1);if(!r||!(s=Fn(s)))return r;var m=or(r),_=hg(m,or(s))+1;return ni(m,0,_).join("")}function Ek(r,s,c){if(r=St(r),r&&(c||s===n))return r.replace(zr,"");if(!r||!(s=Fn(s)))return r;var m=or(r),_=fg(m,or(s));return ni(m,_).join("")}function xk(r,s){var c=ce,m=fe;if(Mt(s)){var _="separator"in s?s.separator:_;c="length"in s?Ge(s.length):c,m="omission"in s?Fn(s.omission):m}r=St(r);var P=r.length;if(ds(r)){var $=or(r);P=$.length}if(c>=P)return r;var U=c-ps(m);if(U<1)return m;var H=$?ni($,0,U).join(""):r.slice(0,U);if(_===n)return H+m;if($&&(U+=H.length-U),Wl(_)){if(r.slice(U).search(_)){var ie,se=H;for(_.global||(_=ol(_.source,St(ht.exec(_))+"g")),_.lastIndex=0;ie=_.exec(se);)var ae=ie.index;H=H.slice(0,ae===n?U:ae)}}else if(r.indexOf(Fn(_),U)!=U){var ve=H.lastIndexOf(_);ve>-1&&(H=H.slice(0,ve))}return H+m}function Ck(r){return r=St(r),r&&vi.test(r)?r.replace(at,eE):r}var _k=Ss(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),zl=n0("toUpperCase");function ey(r,s,c){return r=St(r),s=c?n:s,s===n?JA(r)?rE(r):MA(r):r.match(s)||[]}var ty=et(function(r,s){try{return On(r,n,s)}catch(c){return ql(c)?c:new Ue(c)}}),kk=Br(function(r,s){return Kn(s,function(c){c=wr(c),Ir(r,c,Ul(r[c],r))}),r});function Tk(r){var s=r==null?0:r.length,c=Re();return r=s?Lt(r,function(m){if(typeof m[1]!="function")throw new Hn(u);return[c(m[0]),m[1]]}):[],et(function(m){for(var _=-1;++_<s;){var P=r[_];if(On(P[0],this,m))return On(P[1],this,m)}})}function Ok(r){return e2(Gn(r,p))}function Gl(r){return function(){return r}}function Ik(r,s){return r==null||r!==r?s:r}var Fk=i0(),Bk=i0(!0);function Cn(r){return r}function Jl(r){return Pg(typeof r=="function"?r:Gn(r,p))}function Dk(r){return Lg(Gn(r,p))}function Pk(r,s){return Ng(r,Gn(s,p))}var Rk=et(function(r,s){return function(c){return bo(c,r,s)}}),Lk=et(function(r,s){return function(c){return bo(r,c,s)}});function Yl(r,s,c){var m=an(s),_=Xa(s,m);c==null&&!(Mt(s)&&(_.length||!m.length))&&(c=s,s=r,r=this,_=Xa(s,an(s)));var P=!(Mt(c)&&"chain"in c)||!!c.chain,$=Pr(r);return Kn(_,function(U){var H=s[U];r[U]=H,$&&(r.prototype[U]=function(){var ie=this.__chain__;if(P||ie){var se=r(this.__wrapped__),ae=se.__actions__=An(this.__actions__);return ae.push({func:H,args:arguments,thisArg:r}),se.__chain__=ie,se}return H.apply(r,Yr([this.value()],arguments))})}),r}function Nk(){return cn._===this&&(cn._=cE),this}function Xl(){}function jk(r){return r=Ge(r),et(function(s){return jg(s,r)})}var $k=Tl(Lt),Mk=Tl(sg),Uk=Tl(Zc);function ny(r){return Rl(r)?el(wr(r)):m2(r)}function Vk(r){return function(s){return r==null?n:ki(r,s)}}var qk=o0(),Wk=o0(!0);function Ql(){return[]}function Zl(){return!1}function Kk(){return{}}function Hk(){return""}function zk(){return!0}function Gk(r,s){if(r=Ge(r),r<1||r>_e)return[];var c=we,m=hn(r,we);s=Re(s),r-=we;for(var _=rl(m,s);++c<r;)s(c);return _}function Jk(r){return Ke(r)?Lt(r,wr):Bn(r)?[r]:An(A0(St(r)))}function Yk(r){var s=++aE;return St(r)+s}var Xk=ru(function(r,s){return r+s},0),Qk=Ol("ceil"),Zk=ru(function(r,s){return r/s},1),eT=Ol("floor");function tT(r){return r&&r.length?Ya(r,Cn,pl):n}function nT(r,s){return r&&r.length?Ya(r,Re(s,2),pl):n}function rT(r){return ug(r,Cn)}function iT(r,s){return ug(r,Re(s,2))}function sT(r){return r&&r.length?Ya(r,Cn,bl):n}function oT(r,s){return r&&r.length?Ya(r,Re(s,2),bl):n}var aT=ru(function(r,s){return r*s},1),uT=Ol("round"),cT=ru(function(r,s){return r-s},0);function lT(r){return r&&r.length?nl(r,Cn):0}function fT(r,s){return r&&r.length?nl(r,Re(s,2)):0}return B.after=DC,B.ary=D0,B.assign=w_,B.assignIn=z0,B.assignInWith=yu,B.assignWith=S_,B.at=A_,B.before=P0,B.bind=Ul,B.bindAll=kk,B.bindKey=R0,B.castArray=KC,B.chain=I0,B.chunk=ex,B.compact=tx,B.concat=nx,B.cond=Tk,B.conforms=Ok,B.constant=Gl,B.countBy=lC,B.create=E_,B.curry=L0,B.curryRight=N0,B.debounce=j0,B.defaults=x_,B.defaultsDeep=C_,B.defer=PC,B.delay=RC,B.difference=rx,B.differenceBy=ix,B.differenceWith=sx,B.drop=ox,B.dropRight=ax,B.dropRightWhile=ux,B.dropWhile=cx,B.fill=lx,B.filter=hC,B.flatMap=gC,B.flatMapDeep=yC,B.flatMapDepth=mC,B.flatten=_0,B.flattenDeep=fx,B.flattenDepth=hx,B.flip=LC,B.flow=Fk,B.flowRight=Bk,B.fromPairs=dx,B.functions=B_,B.functionsIn=D_,B.groupBy=bC,B.initial=gx,B.intersection=yx,B.intersectionBy=mx,B.intersectionWith=bx,B.invert=R_,B.invertBy=L_,B.invokeMap=wC,B.iteratee=Jl,B.keyBy=SC,B.keys=an,B.keysIn=xn,B.map=lu,B.mapKeys=j_,B.mapValues=$_,B.matches=Dk,B.matchesProperty=Pk,B.memoize=hu,B.merge=M_,B.mergeWith=G0,B.method=Rk,B.methodOf=Lk,B.mixin=Yl,B.negate=du,B.nthArg=jk,B.omit=U_,B.omitBy=V_,B.once=NC,B.orderBy=AC,B.over=$k,B.overArgs=jC,B.overEvery=Mk,B.overSome=Uk,B.partial=Vl,B.partialRight=$0,B.partition=EC,B.pick=q_,B.pickBy=J0,B.property=ny,B.propertyOf=Vk,B.pull=Ax,B.pullAll=T0,B.pullAllBy=Ex,B.pullAllWith=xx,B.pullAt=Cx,B.range=qk,B.rangeRight=Wk,B.rearg=$C,B.reject=_C,B.remove=_x,B.rest=MC,B.reverse=$l,B.sampleSize=TC,B.set=K_,B.setWith=H_,B.shuffle=OC,B.slice=kx,B.sortBy=BC,B.sortedUniq=Px,B.sortedUniqBy=Rx,B.split=gk,B.spread=UC,B.tail=Lx,B.take=Nx,B.takeRight=jx,B.takeRightWhile=$x,B.takeWhile=Mx,B.tap=tC,B.throttle=VC,B.thru=cu,B.toArray=W0,B.toPairs=Y0,B.toPairsIn=X0,B.toPath=Jk,B.toPlainObject=H0,B.transform=z_,B.unary=qC,B.union=Ux,B.unionBy=Vx,B.unionWith=qx,B.uniq=Wx,B.uniqBy=Kx,B.uniqWith=Hx,B.unset=G_,B.unzip=Ml,B.unzipWith=O0,B.update=J_,B.updateWith=Y_,B.values=xs,B.valuesIn=X_,B.without=zx,B.words=ey,B.wrap=WC,B.xor=Gx,B.xorBy=Jx,B.xorWith=Yx,B.zip=Xx,B.zipObject=Qx,B.zipObjectDeep=Zx,B.zipWith=eC,B.entries=Y0,B.entriesIn=X0,B.extend=z0,B.extendWith=yu,Yl(B,B),B.add=Xk,B.attempt=ty,B.camelCase=tk,B.capitalize=Q0,B.ceil=Qk,B.clamp=Q_,B.clone=HC,B.cloneDeep=GC,B.cloneDeepWith=JC,B.cloneWith=zC,B.conformsTo=YC,B.deburr=Z0,B.defaultTo=Ik,B.divide=Zk,B.endsWith=nk,B.eq=ur,B.escape=rk,B.escapeRegExp=ik,B.every=fC,B.find=dC,B.findIndex=x0,B.findKey=__,B.findLast=pC,B.findLastIndex=C0,B.findLastKey=k_,B.floor=eT,B.forEach=F0,B.forEachRight=B0,B.forIn=T_,B.forInRight=O_,B.forOwn=I_,B.forOwnRight=F_,B.get=Kl,B.gt=XC,B.gte=QC,B.has=P_,B.hasIn=Hl,B.head=k0,B.identity=Cn,B.includes=vC,B.indexOf=px,B.inRange=Z_,B.invoke=N_,B.isArguments=Ii,B.isArray=Ke,B.isArrayBuffer=ZC,B.isArrayLike=En,B.isArrayLikeObject=Yt,B.isBoolean=e_,B.isBuffer=ri,B.isDate=t_,B.isElement=n_,B.isEmpty=r_,B.isEqual=i_,B.isEqualWith=s_,B.isError=ql,B.isFinite=o_,B.isFunction=Pr,B.isInteger=M0,B.isLength=pu,B.isMap=U0,B.isMatch=a_,B.isMatchWith=u_,B.isNaN=c_,B.isNative=l_,B.isNil=h_,B.isNull=f_,B.isNumber=V0,B.isObject=Mt,B.isObjectLike=Vt,B.isPlainObject=xo,B.isRegExp=Wl,B.isSafeInteger=d_,B.isSet=q0,B.isString=gu,B.isSymbol=Bn,B.isTypedArray=Es,B.isUndefined=p_,B.isWeakMap=g_,B.isWeakSet=y_,B.join=vx,B.kebabCase=sk,B.last=Yn,B.lastIndexOf=wx,B.lowerCase=ok,B.lowerFirst=ak,B.lt=m_,B.lte=b_,B.max=tT,B.maxBy=nT,B.mean=rT,B.meanBy=iT,B.min=sT,B.minBy=oT,B.stubArray=Ql,B.stubFalse=Zl,B.stubObject=Kk,B.stubString=Hk,B.stubTrue=zk,B.multiply=aT,B.nth=Sx,B.noConflict=Nk,B.noop=Xl,B.now=fu,B.pad=uk,B.padEnd=ck,B.padStart=lk,B.parseInt=fk,B.random=ek,B.reduce=xC,B.reduceRight=CC,B.repeat=hk,B.replace=dk,B.result=W_,B.round=uT,B.runInContext=K,B.sample=kC,B.size=IC,B.snakeCase=pk,B.some=FC,B.sortedIndex=Tx,B.sortedIndexBy=Ox,B.sortedIndexOf=Ix,B.sortedLastIndex=Fx,B.sortedLastIndexBy=Bx,B.sortedLastIndexOf=Dx,B.startCase=yk,B.startsWith=mk,B.subtract=cT,B.sum=lT,B.sumBy=fT,B.template=bk,B.times=Gk,B.toFinite=Rr,B.toInteger=Ge,B.toLength=K0,B.toLower=vk,B.toNumber=Xn,B.toSafeInteger=v_,B.toString=St,B.toUpper=wk,B.trim=Sk,B.trimEnd=Ak,B.trimStart=Ek,B.truncate=xk,B.unescape=Ck,B.uniqueId=Yk,B.upperCase=_k,B.upperFirst=zl,B.each=F0,B.eachRight=B0,B.first=k0,Yl(B,function(){var r={};return br(B,function(s,c){At.call(B.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),B.VERSION=i,Kn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){B[r].placeholder=B}),Kn(["drop","take"],function(r,s){ut.prototype[r]=function(c){c=c===n?1:rn(Ge(c),0);var m=this.__filtered__&&!s?new ut(this):this.clone();return m.__filtered__?m.__takeCount__=hn(c,m.__takeCount__):m.__views__.push({size:hn(c,we),type:r+(m.__dir__<0?"Right":"")}),m},ut.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Kn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==pe||c==Pe;ut.prototype[r]=function(_){var P=this.clone();return P.__iteratees__.push({iteratee:Re(_,3),type:c}),P.__filtered__=P.__filtered__||m,P}}),Kn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ut.prototype[r]=function(){return this[c](1).value()[0]}}),Kn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ut.prototype[r]=function(){return this.__filtered__?new ut(this):this[c](1)}}),ut.prototype.compact=function(){return this.filter(Cn)},ut.prototype.find=function(r){return this.filter(r).head()},ut.prototype.findLast=function(r){return this.reverse().find(r)},ut.prototype.invokeMap=et(function(r,s){return typeof r=="function"?new ut(this):this.map(function(c){return bo(c,r,s)})}),ut.prototype.reject=function(r){return this.filter(du(Re(r)))},ut.prototype.slice=function(r,s){r=Ge(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ut(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ge(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ut.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ut.prototype.toArray=function(){return this.take(we)},br(ut.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),_=B[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);_&&(B.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,H=$ instanceof ut,ie=U[0],se=H||Ke($),ae=function(st){var ct=_.apply(B,Yr([st],U));return m&&ve?ct[0]:ct};se&&c&&typeof ie=="function"&&ie.length!=1&&(H=se=!1);var ve=this.__chain__,Te=!!this.__actions__.length,Ne=P&&!ve,Xe=H&&!Te;if(!P&&se){$=Xe?$:new ut(this);var je=r.apply($,U);return je.__actions__.push({func:cu,args:[ae],thisArg:n}),new zn(je,ve)}return Ne&&Xe?r.apply(this,U):(je=this.thru(ae),Ne?m?je.value()[0]:je.value():je)})}),Kn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Ra[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);B.prototype[r]=function(){var _=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(Ke(P)?P:[],_)}return this[c](function($){return s.apply(Ke($)?$:[],_)})}}),br(ut.prototype,function(r,s){var c=B[s];if(c){var m=c.name+"";At.call(bs,m)||(bs[m]=[]),bs[m].push({name:s,func:c})}}),bs[nu(n,R).name]=[{name:"wrapper",func:n}],ut.prototype.clone=CE,ut.prototype.reverse=_E,ut.prototype.value=kE,B.prototype.at=nC,B.prototype.chain=rC,B.prototype.commit=iC,B.prototype.next=sC,B.prototype.plant=aC,B.prototype.reverse=uC,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=cC,B.prototype.first=B.prototype.head,lo&&(B.prototype[lo]=oC),B},gs=iE();Ai?((Ai.exports=gs)._=gs,Jc._=gs):cn._=gs}).call(Zn)}(Xo,Xo.exports);var fi=Xo.exports;const bt=vu(fi),J1={ShortenedText:Qe.div`
163
163
  max-width: ${({$maxWidth:e})=>e}px;
164
164
  overflow: hidden;
165
165
  white-space: nowrap;
166
166
  text-overflow: ellipsis;
167
- `},Wi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return F.jsx(z.Tooltip,{title:e,placement:"top",children:i})}return F.jsx(z.Tooltip,{title:e,children:F.jsx(Y1.ShortenedText,{$maxWidth:n,children:e})})},X1=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return F.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[F.jsx(z.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),F.jsxs(z.Space,{children:[F.jsx(z.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),F.jsx(z.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},Q1=Qe.div`
167
+ `},Wi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return F.jsx(z.Tooltip,{title:e,placement:"top",children:i})}return F.jsx(z.Tooltip,{title:e,children:F.jsx(J1.ShortenedText,{$maxWidth:n,children:e})})},Y1=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return F.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[F.jsx(z.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),F.jsxs(z.Space,{children:[F.jsx(z.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),F.jsx(z.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},X1=Qe.div`
168
168
  td {
169
169
  cursor: ${({$isCursorPointer:e})=>e&&"pointer"};
170
170
  }
@@ -204,7 +204,7 @@ function print() { __p += __j.call(arguments, '') }
204
204
  && .ant-table-expanded-row-fixed {
205
205
  width: auto !important;
206
206
  }
207
- `,Z1=Qe.div`
207
+ `,Q1=Qe.div`
208
208
  && .ant-table-row .hideable {
209
209
  display: none;
210
210
  }
@@ -214,20 +214,20 @@ function print() { __p += __j.call(arguments, '') }
214
214
  grid-template-columns: repeat(2, 1fr);
215
215
  column-gap: 4px;
216
216
  }
217
- `,Fh={TableContainer:Q1,HideableControls:Z1},Bh=Qe(z.Button)`
217
+ `,Fh={TableContainer:X1,HideableControls:Q1},Bh=Qe(z.Button)`
218
218
  height: 24px !important;
219
- `,eb=Qe.div`
219
+ `,Z1=Qe.div`
220
220
  text-align: ${({$align:e})=>e};
221
- `,Dh=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>F.jsx(z.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?F.jsxs(z.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),F.jsx(z.Tooltip,{title:F.jsx(F.Fragment,{children:n(e.slice(t))}),children:F.jsxs(z.Tag,{children:["+",e.length-t]},"more")})]}):F.jsx(z.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Ph=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Rh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?Ph(f)?F.jsx(Dh,{tags:Object.entries(f).map(([d,g])=>`${d}: ${String(g)}`),trimLength:u}):F.jsx(Wi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?F.jsx(Dh,{tags:f.map(d=>d.toLocaleString()),trimLength:u}):F.jsx(Wi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?F.jsx(qt.CheckOutlined,{style:{color:"green"}}):F.jsx(qt.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?F.jsx(Wi,{trimLength:u,text:String(f)}):typeof f=="string"?F.jsx(Wi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?F.jsx(Wi,{trimLength:u,text:a}):F.jsx(Wi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:w})=>F.jsx(X1,{setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:w}),filterIcon:f=>F.jsx(qt.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?fi.get(d,g):d[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(w=>w.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const w=f.toLowerCase()==="true";return p===w}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?fi.get(f,g):f[g],w=Array.isArray(g)?fi.get(d,g):d[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof w=="object"&&!Array.isArray(w)&&w!==null?Object.keys(p).length-Object.keys(w).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(w)?p.length-w.length:p.length?-1:1:typeof p=="boolean"?p===w?0:p?-1:1:typeof p=="number"?typeof w=="number"?p-w:p?-1:1:typeof p=="string"?typeof w=="string"?p.localeCompare(w):p?-1:1:0}}})},Nh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>F.jsxs(eb,{$align:"right",className:"hideable",children:[F.jsx(Bh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||F.jsx(qt.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),F.jsx(Bh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||F.jsx(qt.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},Lh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:g=!1,tableProps:p})=>{const w=Qn.useNavigate();if(!i)return null;const k=Rh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!k)return null;const S=g?k:Nh({enrichedColumns:k,navigate:w,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!S)return null;const A=v=>`Total: ${v}`;return F.jsx(Fh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:F.jsx(Fh.HideableControls,{children:F.jsx(z.Table,{dataSource:n,columns:S,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:A},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(v,R)=>{d.onChange(v,R.map(({internalDataForControls:L})=>({name:L.entryName,endpoint:`${L.deletePathPrefix}/${L.apiGroupAndVersion}${L.namespace?`/namespaces/${L.namespace}`:""}/${L.typeName}/${L.entryName}`})))}}:void 0,onRow:v=>({onClick:()=>{if(o&&a){const R=fi.get(v,a),L=typeof R=="string"?R:JSON.stringify(R),C=o.replaceAll("~recordValue~",L);w(C)}}})})})})};function Qo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,g){if(!o[d]){if(!i[d]){var p=typeof Qo=="function"&&Qo;if(!g&&p)return p(d,!0);if(l)return l(d,!0);var w=new Error("Cannot find module '"+d+"'");throw w.code="MODULE_NOT_FOUND",w}var k=o[d]={exports:{}};i[d][0].call(k.exports,function(S){var A=i[d][1][S];return u(A||S)},k,k.exports,n,i,o,a)}return o[d].exports}for(var l=typeof Qo=="function"&&Qo,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,d,g,p,w,k,S,A,v,R,L,C,x,I,O,D;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},w={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(h,E){if(!h)throw new Error("ASSERT: "+E)}function Q(h){return h>=48&&h<=57}function ce(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function fe(h){return"01234567".indexOf(h)>=0}function ge(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0}function ye(h){return h===10||h===13||h===8232||h===8233}function pe(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&w.NonAsciiIdentifierStart.test(String.fromCharCode(h))}function he(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===92||h>=128&&w.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Pe(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Fe(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function _e(h){return h==="eval"||h==="arguments"}function qe(h){if(A&&Fe(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function Ee(h,E,j,q,ne){var de;W(typeof j=="number","Comment must have valid position"),!(O.lastCommentStart>=j)&&(O.lastCommentStart=j,de={type:h,value:E},D.range&&(de.range=[j,q]),D.loc&&(de.loc=ne),D.comments.push(de),D.attachComment&&(D.leadingComments.push(de),D.trailingComments.push(de)))}function we(h){var E,j,q,ne;for(E=v-h,j={start:{line:R,column:v-L-h}};v<C;)if(q=S.charCodeAt(v),++v,ye(q)){D.comments&&(ne=S.slice(E+h,v-1),j.end={line:R,column:v-L-1},Ee("Line",ne,E,v-1,j)),q===13&&S.charCodeAt(v)===10&&++v,++R,L=v;return}D.comments&&(ne=S.slice(E+h,v),j.end={line:R,column:v-L},Ee("Line",ne,E,v,j))}function nt(){var h,E,j,q;for(D.comments&&(h=v-2,E={start:{line:R,column:v-L-2}});v<C;)if(j=S.charCodeAt(v),ye(j))j===13&&S.charCodeAt(v+1)===10&&++v,++R,++v,L=v,v>=C&&Oe({},p.UnexpectedToken,"ILLEGAL");else if(j===42){if(S.charCodeAt(v+1)===47){++v,++v,D.comments&&(q=S.slice(h+2,v-2),E.end={line:R,column:v-L},Ee("Block",q,h,v,E));return}++v}else++v;Oe({},p.UnexpectedToken,"ILLEGAL")}function J(){var h,E;for(E=v===0;v<C;)if(h=S.charCodeAt(v),ge(h))++v;else if(ye(h))++v,h===13&&S.charCodeAt(v)===10&&++v,++R,L=v,E=!0;else if(h===47)if(h=S.charCodeAt(v+1),h===47)++v,++v,we(2),E=!0;else if(h===42)++v,++v,nt();else break;else if(E&&h===45)if(S.charCodeAt(v+1)===45&&S.charCodeAt(v+2)===62)v+=3,we(3);else break;else if(h===60)if(S.slice(v+1,v+4)==="!--")++v,++v,++v,++v,we(4);else break;else break}function X(h){var E,j,q,ne=0;for(j=h==="u"?4:2,E=0;E<j;++E)if(v<C&&ce(S[v]))q=S[v++],ne=ne*16+"0123456789abcdef".indexOf(q.toLowerCase());else return"";return String.fromCharCode(ne)}function oe(){var h,E;for(h=S.charCodeAt(v++),E=String.fromCharCode(h),h===92&&(S.charCodeAt(v)!==117&&Oe({},p.UnexpectedToken,"ILLEGAL"),++v,h=X("u"),(!h||h==="\\"||!pe(h.charCodeAt(0)))&&Oe({},p.UnexpectedToken,"ILLEGAL"),E=h);v<C&&(h=S.charCodeAt(v),!!he(h));)++v,E+=String.fromCharCode(h),h===92&&(E=E.substr(0,E.length-1),S.charCodeAt(v)!==117&&Oe({},p.UnexpectedToken,"ILLEGAL"),++v,h=X("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&Oe({},p.UnexpectedToken,"ILLEGAL"),E+=h);return E}function Ce(){var h,E;for(h=v++;v<C;){if(E=S.charCodeAt(v),E===92)return v=h,oe();if(he(E))++v;else break}return S.slice(h,v)}function We(){var h,E,j;return h=v,E=S.charCodeAt(v)===92?oe():Ce(),E.length===1?j=u.Identifier:qe(E)?j=u.Keyword:E==="null"?j=u.NullLiteral:E==="true"||E==="false"?j=u.BooleanLiteral:j=u.Identifier,{type:j,value:E,lineNumber:R,lineStart:L,start:h,end:v}}function xe(){var h=v,E=S.charCodeAt(v),j,q=S[v],ne,de,ze;switch(E){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++v,D.tokenize&&(E===40?D.openParenToken=D.tokens.length:E===123&&(D.openCurlyToken=D.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(E),lineNumber:R,lineStart:L,start:h,end:v};default:if(j=S.charCodeAt(v+1),j===61)switch(E){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return v+=2,{type:u.Punctuator,value:String.fromCharCode(E)+String.fromCharCode(j),lineNumber:R,lineStart:L,start:h,end:v};case 33:case 61:return v+=2,S.charCodeAt(v)===61&&++v,{type:u.Punctuator,value:S.slice(h,v),lineNumber:R,lineStart:L,start:h,end:v}}}if(ze=S.substr(v,4),ze===">>>=")return v+=4,{type:u.Punctuator,value:ze,lineNumber:R,lineStart:L,start:h,end:v};if(de=ze.substr(0,3),de===">>>"||de==="<<="||de===">>=")return v+=3,{type:u.Punctuator,value:de,lineNumber:R,lineStart:L,start:h,end:v};if(ne=de.substr(0,2),q===ne[1]&&"+-<>&|".indexOf(q)>=0||ne==="=>")return v+=2,{type:u.Punctuator,value:ne,lineNumber:R,lineStart:L,start:h,end:v};if("<>=!+-*%&|^/".indexOf(q)>=0)return++v,{type:u.Punctuator,value:q,lineNumber:R,lineStart:L,start:h,end:v};Oe({},p.UnexpectedToken,"ILLEGAL")}function Be(h){for(var E="";v<C&&ce(S[v]);)E+=S[v++];return E.length===0&&Oe({},p.UnexpectedToken,"ILLEGAL"),pe(S.charCodeAt(v))&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+E,16),lineNumber:R,lineStart:L,start:h,end:v}}function $e(h){for(var E="0"+S[v++];v<C&&fe(S[v]);)E+=S[v++];return(pe(S.charCodeAt(v))||Q(S.charCodeAt(v)))&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(E,8),octal:!0,lineNumber:R,lineStart:L,start:h,end:v}}function Ne(){var h,E,j;if(j=S[v],W(Q(j.charCodeAt(0))||j===".","Numeric literal must start with a decimal digit or a decimal point"),E=v,h="",j!=="."){if(h=S[v++],j=S[v],h==="0"){if(j==="x"||j==="X")return++v,Be(E);if(fe(j))return $e(E);j&&Q(j.charCodeAt(0))&&Oe({},p.UnexpectedToken,"ILLEGAL")}for(;Q(S.charCodeAt(v));)h+=S[v++];j=S[v]}if(j==="."){for(h+=S[v++];Q(S.charCodeAt(v));)h+=S[v++];j=S[v]}if(j==="e"||j==="E")if(h+=S[v++],j=S[v],(j==="+"||j==="-")&&(h+=S[v++]),Q(S.charCodeAt(v)))for(;Q(S.charCodeAt(v));)h+=S[v++];else Oe({},p.UnexpectedToken,"ILLEGAL");return pe(S.charCodeAt(v))&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:R,lineStart:L,start:E,end:v}}function Tt(){var h="",E,j,q,ne,de,ze,vt=!1,tn,Jt;for(tn=R,Jt=L,E=S[v],W(E==="'"||E==='"',"String literal must starts with a quote"),j=v,++v;v<C;)if(q=S[v++],q===E){E="";break}else if(q==="\\")if(q=S[v++],!q||!ye(q.charCodeAt(0)))switch(q){case"u":case"x":ze=v,de=X(q),de?h+=de:(v=ze,h+=q);break;case"n":h+=`
221
+ `,Dh=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>F.jsx(z.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?F.jsxs(z.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),F.jsx(z.Tooltip,{title:F.jsx(F.Fragment,{children:n(e.slice(t))}),children:F.jsxs(z.Tag,{children:["+",e.length-t]},"more")})]}):F.jsx(z.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Ph=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Rh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?Ph(f)?F.jsx(Dh,{tags:Object.entries(f).map(([d,g])=>`${d}: ${String(g)}`),trimLength:u}):F.jsx(Wi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?F.jsx(Dh,{tags:f.map(d=>d.toLocaleString()),trimLength:u}):F.jsx(Wi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?F.jsx(qt.CheckOutlined,{style:{color:"green"}}):F.jsx(qt.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?F.jsx(Wi,{trimLength:u,text:String(f)}):typeof f=="string"?F.jsx(Wi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?F.jsx(Wi,{trimLength:u,text:a}):F.jsx(Wi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:w})=>F.jsx(Y1,{setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:w}),filterIcon:f=>F.jsx(qt.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?fi.get(d,g):d[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(w=>w.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const w=f.toLowerCase()==="true";return p===w}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?fi.get(f,g):f[g],w=Array.isArray(g)?fi.get(d,g):d[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof w=="object"&&!Array.isArray(w)&&w!==null?Object.keys(p).length-Object.keys(w).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(w)?p.length-w.length:p.length?-1:1:typeof p=="boolean"?p===w?0:p?-1:1:typeof p=="number"?typeof w=="number"?p-w:p?-1:1:typeof p=="string"?typeof w=="string"?p.localeCompare(w):p?-1:1:0}}})},Lh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>F.jsxs(Z1,{$align:"right",className:"hideable",children:[F.jsx(Bh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||F.jsx(qt.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),F.jsx(Bh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||F.jsx(qt.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},Nh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:g=!1,tableProps:p})=>{const w=Qn.useNavigate();if(!i)return null;const k=Rh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!k)return null;const S=g?k:Lh({enrichedColumns:k,navigate:w,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!S)return null;const A=v=>`Total: ${v}`;return F.jsx(Fh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:F.jsx(Fh.HideableControls,{children:F.jsx(z.Table,{dataSource:n,columns:S,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:A},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(v,R)=>{d.onChange(v,R.map(({internalDataForControls:N})=>({name:N.entryName,endpoint:`${N.deletePathPrefix}/${N.apiGroupAndVersion}${N.namespace?`/namespaces/${N.namespace}`:""}/${N.typeName}/${N.entryName}`})))}}:void 0,onRow:v=>({onClick:()=>{if(o&&a){const R=fi.get(v,a),N=typeof R=="string"?R:JSON.stringify(R),C=o.replaceAll("~recordValue~",N);w(C)}}})})})})};function Qo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,g){if(!o[d]){if(!i[d]){var p=typeof Qo=="function"&&Qo;if(!g&&p)return p(d,!0);if(l)return l(d,!0);var w=new Error("Cannot find module '"+d+"'");throw w.code="MODULE_NOT_FOUND",w}var k=o[d]={exports:{}};i[d][0].call(k.exports,function(S){var A=i[d][1][S];return u(A||S)},k,k.exports,n,i,o,a)}return o[d].exports}for(var l=typeof Qo=="function"&&Qo,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,d,g,p,w,k,S,A,v,R,N,C,x,I,O,D;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},w={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(h,E){if(!h)throw new Error("ASSERT: "+E)}function Q(h){return h>=48&&h<=57}function ce(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function fe(h){return"01234567".indexOf(h)>=0}function ge(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0}function ye(h){return h===10||h===13||h===8232||h===8233}function pe(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&w.NonAsciiIdentifierStart.test(String.fromCharCode(h))}function he(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===92||h>=128&&w.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Pe(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Fe(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function _e(h){return h==="eval"||h==="arguments"}function qe(h){if(A&&Fe(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function Ee(h,E,j,q,ne){var de;W(typeof j=="number","Comment must have valid position"),!(O.lastCommentStart>=j)&&(O.lastCommentStart=j,de={type:h,value:E},D.range&&(de.range=[j,q]),D.loc&&(de.loc=ne),D.comments.push(de),D.attachComment&&(D.leadingComments.push(de),D.trailingComments.push(de)))}function we(h){var E,j,q,ne;for(E=v-h,j={start:{line:R,column:v-N-h}};v<C;)if(q=S.charCodeAt(v),++v,ye(q)){D.comments&&(ne=S.slice(E+h,v-1),j.end={line:R,column:v-N-1},Ee("Line",ne,E,v-1,j)),q===13&&S.charCodeAt(v)===10&&++v,++R,N=v;return}D.comments&&(ne=S.slice(E+h,v),j.end={line:R,column:v-N},Ee("Line",ne,E,v,j))}function nt(){var h,E,j,q;for(D.comments&&(h=v-2,E={start:{line:R,column:v-N-2}});v<C;)if(j=S.charCodeAt(v),ye(j))j===13&&S.charCodeAt(v+1)===10&&++v,++R,++v,N=v,v>=C&&Oe({},p.UnexpectedToken,"ILLEGAL");else if(j===42){if(S.charCodeAt(v+1)===47){++v,++v,D.comments&&(q=S.slice(h+2,v-2),E.end={line:R,column:v-N},Ee("Block",q,h,v,E));return}++v}else++v;Oe({},p.UnexpectedToken,"ILLEGAL")}function J(){var h,E;for(E=v===0;v<C;)if(h=S.charCodeAt(v),ge(h))++v;else if(ye(h))++v,h===13&&S.charCodeAt(v)===10&&++v,++R,N=v,E=!0;else if(h===47)if(h=S.charCodeAt(v+1),h===47)++v,++v,we(2),E=!0;else if(h===42)++v,++v,nt();else break;else if(E&&h===45)if(S.charCodeAt(v+1)===45&&S.charCodeAt(v+2)===62)v+=3,we(3);else break;else if(h===60)if(S.slice(v+1,v+4)==="!--")++v,++v,++v,++v,we(4);else break;else break}function X(h){var E,j,q,ne=0;for(j=h==="u"?4:2,E=0;E<j;++E)if(v<C&&ce(S[v]))q=S[v++],ne=ne*16+"0123456789abcdef".indexOf(q.toLowerCase());else return"";return String.fromCharCode(ne)}function oe(){var h,E;for(h=S.charCodeAt(v++),E=String.fromCharCode(h),h===92&&(S.charCodeAt(v)!==117&&Oe({},p.UnexpectedToken,"ILLEGAL"),++v,h=X("u"),(!h||h==="\\"||!pe(h.charCodeAt(0)))&&Oe({},p.UnexpectedToken,"ILLEGAL"),E=h);v<C&&(h=S.charCodeAt(v),!!he(h));)++v,E+=String.fromCharCode(h),h===92&&(E=E.substr(0,E.length-1),S.charCodeAt(v)!==117&&Oe({},p.UnexpectedToken,"ILLEGAL"),++v,h=X("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&Oe({},p.UnexpectedToken,"ILLEGAL"),E+=h);return E}function Ce(){var h,E;for(h=v++;v<C;){if(E=S.charCodeAt(v),E===92)return v=h,oe();if(he(E))++v;else break}return S.slice(h,v)}function We(){var h,E,j;return h=v,E=S.charCodeAt(v)===92?oe():Ce(),E.length===1?j=u.Identifier:qe(E)?j=u.Keyword:E==="null"?j=u.NullLiteral:E==="true"||E==="false"?j=u.BooleanLiteral:j=u.Identifier,{type:j,value:E,lineNumber:R,lineStart:N,start:h,end:v}}function xe(){var h=v,E=S.charCodeAt(v),j,q=S[v],ne,de,ze;switch(E){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++v,D.tokenize&&(E===40?D.openParenToken=D.tokens.length:E===123&&(D.openCurlyToken=D.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(E),lineNumber:R,lineStart:N,start:h,end:v};default:if(j=S.charCodeAt(v+1),j===61)switch(E){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return v+=2,{type:u.Punctuator,value:String.fromCharCode(E)+String.fromCharCode(j),lineNumber:R,lineStart:N,start:h,end:v};case 33:case 61:return v+=2,S.charCodeAt(v)===61&&++v,{type:u.Punctuator,value:S.slice(h,v),lineNumber:R,lineStart:N,start:h,end:v}}}if(ze=S.substr(v,4),ze===">>>=")return v+=4,{type:u.Punctuator,value:ze,lineNumber:R,lineStart:N,start:h,end:v};if(de=ze.substr(0,3),de===">>>"||de==="<<="||de===">>=")return v+=3,{type:u.Punctuator,value:de,lineNumber:R,lineStart:N,start:h,end:v};if(ne=de.substr(0,2),q===ne[1]&&"+-<>&|".indexOf(q)>=0||ne==="=>")return v+=2,{type:u.Punctuator,value:ne,lineNumber:R,lineStart:N,start:h,end:v};if("<>=!+-*%&|^/".indexOf(q)>=0)return++v,{type:u.Punctuator,value:q,lineNumber:R,lineStart:N,start:h,end:v};Oe({},p.UnexpectedToken,"ILLEGAL")}function Be(h){for(var E="";v<C&&ce(S[v]);)E+=S[v++];return E.length===0&&Oe({},p.UnexpectedToken,"ILLEGAL"),pe(S.charCodeAt(v))&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+E,16),lineNumber:R,lineStart:N,start:h,end:v}}function $e(h){for(var E="0"+S[v++];v<C&&fe(S[v]);)E+=S[v++];return(pe(S.charCodeAt(v))||Q(S.charCodeAt(v)))&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(E,8),octal:!0,lineNumber:R,lineStart:N,start:h,end:v}}function Le(){var h,E,j;if(j=S[v],W(Q(j.charCodeAt(0))||j===".","Numeric literal must start with a decimal digit or a decimal point"),E=v,h="",j!=="."){if(h=S[v++],j=S[v],h==="0"){if(j==="x"||j==="X")return++v,Be(E);if(fe(j))return $e(E);j&&Q(j.charCodeAt(0))&&Oe({},p.UnexpectedToken,"ILLEGAL")}for(;Q(S.charCodeAt(v));)h+=S[v++];j=S[v]}if(j==="."){for(h+=S[v++];Q(S.charCodeAt(v));)h+=S[v++];j=S[v]}if(j==="e"||j==="E")if(h+=S[v++],j=S[v],(j==="+"||j==="-")&&(h+=S[v++]),Q(S.charCodeAt(v)))for(;Q(S.charCodeAt(v));)h+=S[v++];else Oe({},p.UnexpectedToken,"ILLEGAL");return pe(S.charCodeAt(v))&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:R,lineStart:N,start:E,end:v}}function Tt(){var h="",E,j,q,ne,de,ze,vt=!1,tn,Jt;for(tn=R,Jt=N,E=S[v],W(E==="'"||E==='"',"String literal must starts with a quote"),j=v,++v;v<C;)if(q=S[v++],q===E){E="";break}else if(q==="\\")if(q=S[v++],!q||!ye(q.charCodeAt(0)))switch(q){case"u":case"x":ze=v,de=X(q),de?h+=de:(v=ze,h+=q);break;case"n":h+=`
222
222
  `;break;case"r":h+="\r";break;case"t":h+=" ";break;case"b":h+="\b";break;case"f":h+="\f";break;case"v":h+="\v";break;default:fe(q)?(ne="01234567".indexOf(q),ne!==0&&(vt=!0),v<C&&fe(S[v])&&(vt=!0,ne=ne*8+"01234567".indexOf(S[v++]),"0123".indexOf(q)>=0&&v<C&&fe(S[v])&&(ne=ne*8+"01234567".indexOf(S[v++]))),h+=String.fromCharCode(ne)):h+=q;break}else++R,q==="\r"&&S[v]===`
223
- `&&++v,L=v;else{if(ye(q.charCodeAt(0)))break;h+=q}return E!==""&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:vt,startLineNumber:tn,startLineStart:Jt,lineNumber:R,lineStart:L,start:j,end:v}}function on(h,E){var j;try{j=new RegExp(h,E)}catch{Oe({},p.InvalidRegExp)}return j}function Lt(){var h,E,j,q,ne;for(h=S[v],W(h==="/","Regular expression literal must start with a slash"),E=S[v++],j=!1,q=!1;v<C;)if(h=S[v++],E+=h,h==="\\")h=S[v++],ye(h.charCodeAt(0))&&Oe({},p.UnterminatedRegExp),E+=h;else if(ye(h.charCodeAt(0)))Oe({},p.UnterminatedRegExp);else if(j)h==="]"&&(j=!1);else if(h==="/"){q=!0;break}else h==="["&&(j=!0);return q||Oe({},p.UnterminatedRegExp),ne=E.substr(1,E.length-2),{value:ne,literal:E}}function jt(){var h,E,j,q;for(E="",j="";v<C&&(h=S[v],!!he(h.charCodeAt(0)));)if(++v,h==="\\"&&v<C)if(h=S[v],h==="u"){if(++v,q=v,h=X("u"),h)for(j+=h,E+="\\u";q<v;++q)E+=S[q];else v=q,j+="u",E+="\\u";De({},p.UnexpectedToken,"ILLEGAL")}else E+="\\",De({},p.UnexpectedToken,"ILLEGAL");else j+=h,E+=h;return{value:j,literal:E}}function Se(){var h,E,j,q;return I=null,J(),h=v,E=Lt(),j=jt(),q=on(E.value,j.value),D.tokenize?{type:u.RegularExpression,value:q,lineNumber:R,lineStart:L,start:h,end:v}:{literal:E.literal+j.literal,value:q,start:h,end:v}}function ke(){var h,E,j,q;return J(),h=v,E={start:{line:R,column:v-L}},j=Se(),E.end={line:R,column:v-L},D.tokenize||(D.tokens.length>0&&(q=D.tokens[D.tokens.length-1],q.range[0]===h&&q.type==="Punctuator"&&(q.value==="/"||q.value==="/=")&&D.tokens.pop()),D.tokens.push({type:"RegularExpression",value:j.literal,range:[h,v],loc:E})),j}function He(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function Ot(){var h,E;if(h=D.tokens[D.tokens.length-1],!h)return ke();if(h.type==="Punctuator"){if(h.value==="]")return xe();if(h.value===")")return E=D.tokens[D.openParenToken-1],E&&E.type==="Keyword"&&(E.value==="if"||E.value==="while"||E.value==="for"||E.value==="with")?ke():xe();if(h.value==="}"){if(D.tokens[D.openCurlyToken-3]&&D.tokens[D.openCurlyToken-3].type==="Keyword"){if(E=D.tokens[D.openCurlyToken-4],!E)return xe()}else if(D.tokens[D.openCurlyToken-4]&&D.tokens[D.openCurlyToken-4].type==="Keyword"){if(E=D.tokens[D.openCurlyToken-5],!E)return ke()}else return xe();return f.indexOf(E.value)>=0?xe():ke()}return ke()}return h.type==="Keyword"?ke():xe()}function pt(){var h;return J(),v>=C?{type:u.EOF,lineNumber:R,lineStart:L,start:v,end:v}:(h=S.charCodeAt(v),pe(h)?We():h===40||h===41||h===59?xe():h===39||h===34?Tt():h===46?Q(S.charCodeAt(v+1))?Ne():xe():Q(h)?Ne():D.tokenize&&h===47?Ot():xe())}function Et(){var h,E,j;return J(),h={start:{line:R,column:v-L}},E=pt(),h.end={line:R,column:v-L},E.type!==u.EOF&&(j=S.slice(E.start,E.end),D.tokens.push({type:l[E.type],value:j,range:[E.start,E.end],loc:h})),E}function me(){var h;return h=I,v=h.end,R=h.lineNumber,L=h.lineStart,I=typeof D.tokens<"u"?Et():pt(),v=h.end,R=h.lineNumber,L=h.lineStart,h}function Ze(){var h,E,j;h=v,E=R,j=L,I=typeof D.tokens<"u"?Et():pt(),v=h,R=E,L=j}function xt(h,E){this.line=h,this.column=E}function ot(h,E,j,q){this.start=new xt(h,E),this.end=new xt(j,q)}k={name:"SyntaxTree",processComment:function(h){var E,j;if(!(h.type===d.Program&&h.body.length>0)){for(D.trailingComments.length>0?D.trailingComments[0].range[0]>=h.range[1]?(j=D.trailingComments,D.trailingComments=[]):D.trailingComments.length=0:D.bottomRightStack.length>0&&D.bottomRightStack[D.bottomRightStack.length-1].trailingComments&&D.bottomRightStack[D.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&(j=D.bottomRightStack[D.bottomRightStack.length-1].trailingComments,delete D.bottomRightStack[D.bottomRightStack.length-1].trailingComments);D.bottomRightStack.length>0&&D.bottomRightStack[D.bottomRightStack.length-1].range[0]>=h.range[0];)E=D.bottomRightStack.pop();E?E.leadingComments&&E.leadingComments[E.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=E.leadingComments,delete E.leadingComments):D.leadingComments.length>0&&D.leadingComments[D.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=D.leadingComments,D.leadingComments=[]),j&&(h.trailingComments=j),D.bottomRightStack.push(h)}},markEnd:function(h,E){return D.range&&(h.range=[E.start,v]),D.loc&&(h.loc=new ot(E.startLineNumber===void 0?E.lineNumber:E.startLineNumber,E.start-(E.startLineStart===void 0?E.lineStart:E.startLineStart),R,v-L),this.postProcess(h)),D.attachComment&&this.processComment(h),h},postProcess:function(h){return D.source&&(h.loc.source=D.source),h},createArrayExpression:function(h){return{type:d.ArrayExpression,elements:h}},createAssignmentExpression:function(h,E,j){return{type:d.AssignmentExpression,operator:h,left:E,right:j}},createBinaryExpression:function(h,E,j){var q=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:q,operator:h,left:E,right:j}},createBlockStatement:function(h){return{type:d.BlockStatement,body:h}},createBreakStatement:function(h){return{type:d.BreakStatement,label:h}},createCallExpression:function(h,E){return{type:d.CallExpression,callee:h,arguments:E}},createCatchClause:function(h,E){return{type:d.CatchClause,param:h,body:E}},createConditionalExpression:function(h,E,j){return{type:d.ConditionalExpression,test:h,consequent:E,alternate:j}},createContinueStatement:function(h){return{type:d.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(h,E){return{type:d.DoWhileStatement,body:h,test:E}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(h){return{type:d.ExpressionStatement,expression:h}},createForStatement:function(h,E,j,q){return{type:d.ForStatement,init:h,test:E,update:j,body:q}},createForInStatement:function(h,E,j){return{type:d.ForInStatement,left:h,right:E,body:j,each:!1}},createFunctionDeclaration:function(h,E,j,q){return{type:d.FunctionDeclaration,id:h,params:E,defaults:j,body:q,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,E,j,q){return{type:d.FunctionExpression,id:h,params:E,defaults:j,body:q,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:d.Identifier,name:h}},createIfStatement:function(h,E,j){return{type:d.IfStatement,test:h,consequent:E,alternate:j}},createLabeledStatement:function(h,E){return{type:d.LabeledStatement,label:h,body:E}},createLiteral:function(h){return{type:d.Literal,value:h.value,raw:S.slice(h.start,h.end)}},createMemberExpression:function(h,E,j){return{type:d.MemberExpression,computed:h==="[",object:E,property:j}},createNewExpression:function(h,E){return{type:d.NewExpression,callee:h,arguments:E}},createObjectExpression:function(h){return{type:d.ObjectExpression,properties:h}},createPostfixExpression:function(h,E){return{type:d.UpdateExpression,operator:h,argument:E,prefix:!1}},createProgram:function(h){return{type:d.Program,body:h}},createProperty:function(h,E,j){return{type:d.Property,key:E,value:j,kind:h}},createReturnStatement:function(h){return{type:d.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:d.SequenceExpression,expressions:h}},createSwitchCase:function(h,E){return{type:d.SwitchCase,test:h,consequent:E}},createSwitchStatement:function(h,E){return{type:d.SwitchStatement,discriminant:h,cases:E}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(h){return{type:d.ThrowStatement,argument:h}},createTryStatement:function(h,E,j,q){return{type:d.TryStatement,block:h,guardedHandlers:E,handlers:j,finalizer:q}},createUnaryExpression:function(h,E){return h==="++"||h==="--"?{type:d.UpdateExpression,operator:h,argument:E,prefix:!0}:{type:d.UnaryExpression,operator:h,argument:E,prefix:!0}},createVariableDeclaration:function(h,E){return{type:d.VariableDeclaration,declarations:h,kind:E}},createVariableDeclarator:function(h,E){return{type:d.VariableDeclarator,id:h,init:E}},createWhileStatement:function(h,E){return{type:d.WhileStatement,test:h,body:E}},createWithStatement:function(h,E){return{type:d.WithStatement,object:h,body:E}}};function Ut(){var h,E,j,q;return h=v,E=R,j=L,J(),q=R!==E,v=h,R=E,L=j,q}function Oe(h,E){var j,q=Array.prototype.slice.call(arguments,2),ne=E.replace(/%(\d)/g,function(de,ze){return W(ze<q.length,"Message reference must be in range"),q[ze]});throw typeof h.lineNumber=="number"?(j=new Error("Line "+h.lineNumber+": "+ne),j.index=h.start,j.lineNumber=h.lineNumber,j.column=h.start-L+1):(j=new Error("Line "+R+": "+ne),j.index=v,j.lineNumber=R,j.column=v-L+1),j.description=ne,j}function De(){try{Oe.apply(null,arguments)}catch(h){if(D.errors)D.errors.push(h);else throw h}}function $t(h){if(h.type===u.EOF&&Oe(h,p.UnexpectedEOS),h.type===u.NumericLiteral&&Oe(h,p.UnexpectedNumber),h.type===u.StringLiteral&&Oe(h,p.UnexpectedString),h.type===u.Identifier&&Oe(h,p.UnexpectedIdentifier),h.type===u.Keyword){if(Pe(h.value))Oe(h,p.UnexpectedReserved);else if(A&&Fe(h.value)){De(h,p.StrictReservedWord);return}Oe(h,p.UnexpectedToken,h.value)}Oe(h,p.UnexpectedToken,h.value)}function T(h){var E=me();(E.type!==u.Punctuator||E.value!==h)&&$t(E)}function y(h){var E=me();(E.type!==u.Keyword||E.value!==h)&&$t(E)}function b(h){return I.type===u.Punctuator&&I.value===h}function N(h){return I.type===u.Keyword&&I.value===h}function V(){var h;return I.type!==u.Punctuator?!1:(h=I.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(S.charCodeAt(v)===59||b(";")){me();return}h=R,J(),R===h&&I.type!==u.EOF&&!b("}")&&$t(I)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Me(){var h=[],E;for(E=I,T("[");!b("]");)b(",")?(me(),h.push(null)):(h.push(yn()),b("]")||T(","));return me(),x.markEnd(x.createArrayExpression(h),E)}function yt(h,E){var j,q,ne;return j=A,ne=I,q=cs(),E&&A&&_e(h[0].name)&&De(E,p.StrictParamName),A=j,x.markEnd(x.createFunctionExpression(null,h,[],q),ne)}function lt(){var h,E;return E=I,h=me(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(A&&h.octal&&De(h,p.StrictOctalLiteral),x.markEnd(x.createLiteral(h),E)):x.markEnd(x.createIdentifier(h.value),E)}function gt(){var h,E,j,q,ne,de;if(h=I,de=I,h.type===u.Identifier)return j=lt(),h.value==="get"&&!b(":")?(E=lt(),T("("),T(")"),q=yt([]),x.markEnd(x.createProperty("get",E,q),de)):h.value==="set"&&!b(":")?(E=lt(),T("("),h=I,h.type!==u.Identifier?(T(")"),De(h,p.UnexpectedToken,h.value),q=yt([])):(ne=[Ie()],T(")"),q=yt(ne,h)),x.markEnd(x.createProperty("set",E,q),de)):(T(":"),q=yn(),x.markEnd(x.createProperty("init",j,q),de));if(h.type===u.EOF||h.type===u.Punctuator)$t(h);else return E=lt(),T(":"),q=yn(),x.markEnd(x.createProperty("init",E,q),de)}function at(){var h=[],E,j,q,ne,de={},ze=String,vt;for(vt=I,T("{");!b("}");)E=gt(),E.key.type===d.Identifier?j=E.key.name:j=ze(E.key.value),ne=E.kind==="init"?g.Data:E.kind==="get"?g.Get:g.Set,q="$"+j,Object.prototype.hasOwnProperty.call(de,q)?(de[q]===g.Data?A&&ne===g.Data?De({},p.StrictDuplicateProperty):ne!==g.Data&&De({},p.AccessorDataProperty):ne===g.Data?De({},p.AccessorDataProperty):de[q]&ne&&De({},p.AccessorGetSet),de[q]|=ne):de[q]=ne,h.push(E),b("}")||T(",");return T("}"),x.markEnd(x.createObjectExpression(h),vt)}function Kr(){var h;return T("("),h=M(),T(")"),h}function vi(){var h,E,j,q;if(b("("))return Kr();if(b("["))return Me();if(b("{"))return at();if(h=I.type,q=I,h===u.Identifier)j=x.createIdentifier(me().value);else if(h===u.StringLiteral||h===u.NumericLiteral)A&&I.octal&&De(I,p.StrictOctalLiteral),j=x.createLiteral(me());else if(h===u.Keyword){if(N("function"))return zc();N("this")?(me(),j=x.createThisExpression()):$t(me())}else h===u.BooleanLiteral?(E=me(),E.value=E.value==="true",j=x.createLiteral(E)):h===u.NullLiteral?(E=me(),E.value=null,j=x.createLiteral(E)):b("/")||b("/=")?(typeof D.tokens<"u"?j=x.createLiteral(ke()):j=x.createLiteral(Se()),Ze()):$t(me());return x.markEnd(j,q)}function os(){var h=[];if(T("("),!b(")"))for(;v<C&&(h.push(yn()),!b(")"));)T(",");return T(")"),h}function as(){var h,E;return E=I,h=me(),He(h)||$t(h),x.markEnd(x.createIdentifier(h.value),E)}function us(){return T("."),as()}function Hr(){var h;return T("["),h=M(),T("]"),h}function wi(){var h,E,j;return j=I,y("new"),h=ro(),E=b("(")?os():[],x.markEnd(x.createNewExpression(h,E),j)}function no(){var h,E,j,q,ne;for(ne=I,h=O.allowIn,O.allowIn=!0,E=N("new")?wi():vi(),O.allowIn=h;;){if(b("."))q=us(),E=x.createMemberExpression(".",E,q);else if(b("("))j=os(),E=x.createCallExpression(E,j);else if(b("["))q=Hr(),E=x.createMemberExpression("[",E,q);else break;x.markEnd(E,ne)}return E}function ro(){var h,E,j,q;for(q=I,h=O.allowIn,E=N("new")?wi():vi(),O.allowIn=h;b(".")||b("[");)b("[")?(j=Hr(),E=x.createMemberExpression("[",E,j)):(j=us(),E=x.createMemberExpression(".",E,j)),x.markEnd(E,q);return E}function kr(){var h,E,j=I;return h=no(),I.type===u.Punctuator&&(b("++")||b("--"))&&!Ut()&&(A&&h.type===d.Identifier&&_e(h.name)&&De({},p.StrictLHSPostfix),ee(h)||De({},p.InvalidLHSInAssignment),E=me(),h=x.markEnd(x.createPostfixExpression(E.value,h),j)),h}function ir(){var h,E,j;return I.type!==u.Punctuator&&I.type!==u.Keyword?E=kr():b("++")||b("--")?(j=I,h=me(),E=ir(),A&&E.type===d.Identifier&&_e(E.name)&&De({},p.StrictLHSPrefix),ee(E)||De({},p.InvalidLHSInAssignment),E=x.createUnaryExpression(h.value,E),E=x.markEnd(E,j)):b("+")||b("-")||b("~")||b("!")?(j=I,h=me(),E=ir(),E=x.createUnaryExpression(h.value,E),E=x.markEnd(E,j)):N("delete")||N("void")||N("typeof")?(j=I,h=me(),E=ir(),E=x.createUnaryExpression(h.value,E),E=x.markEnd(E,j),A&&E.operator==="delete"&&E.argument.type===d.Identifier&&De({},p.StrictDelete)):E=kr(),E}function zr(h,E){var j=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":j=1;break;case"&&":j=2;break;case"|":j=3;break;case"^":j=4;break;case"&":j=5;break;case"==":case"!=":case"===":case"!==":j=6;break;case"<":case">":case"<=":case">=":case"instanceof":j=7;break;case"in":j=E?7:0;break;case"<<":case">>":case">>>":j=8;break;case"+":case"-":j=9;break;case"*":case"/":case"%":j=11;break}return j}function io(){var h,E,j,q,ne,de,ze,vt,tn,Jt;if(h=I,tn=ir(),q=I,ne=zr(q,O.allowIn),ne===0)return tn;for(q.prec=ne,me(),E=[h,I],ze=ir(),de=[tn,q,ze];(ne=zr(I,O.allowIn))>0;){for(;de.length>2&&ne<=de[de.length-2].prec;)ze=de.pop(),vt=de.pop().value,tn=de.pop(),j=x.createBinaryExpression(vt,tn,ze),E.pop(),h=E[E.length-1],x.markEnd(j,h),de.push(j);q=me(),q.prec=ne,de.push(q),E.push(I),j=ir(),de.push(j)}for(Jt=de.length-1,j=de[Jt],E.pop();Jt>1;)j=x.createBinaryExpression(de[Jt-1].value,de[Jt-2],j),Jt-=2,h=E.pop(),x.markEnd(j,h);return j}function so(){var h,E,j,q,ne;return ne=I,h=io(),b("?")&&(me(),E=O.allowIn,O.allowIn=!0,j=yn(),O.allowIn=E,T(":"),q=yn(),h=x.createConditionalExpression(h,j,q),x.markEnd(h,ne)),h}function yn(){var h,E,j,q,ne;return h=I,ne=I,q=E=so(),V()&&(ee(E)||De({},p.InvalidLHSInAssignment),A&&E.type===d.Identifier&&_e(E.name)&&De(h,p.StrictLHSAssignment),h=me(),j=yn(),q=x.markEnd(x.createAssignmentExpression(h.value,E,j),ne)),q}function M(){var h,E=I;if(h=yn(),b(",")){for(h=x.createSequenceExpression([h]);v<C&&b(",");)me(),h.expressions.push(yn());x.markEnd(h,E)}return h}function le(){for(var h=[],E;v<C&&!(b("}")||(E=Gr(),typeof E>"u"));)h.push(E);return h}function be(){var h,E;return E=I,T("{"),h=le(),T("}"),x.markEnd(x.createBlockStatement(h),E)}function Ie(){var h,E;return E=I,h=me(),h.type!==u.Identifier&&$t(h),x.markEnd(x.createIdentifier(h.value),E)}function ft(h){var E=null,j,q;return q=I,j=Ie(),A&&_e(j.name)&&De({},p.StrictVarName),h==="const"?(T("="),E=yn()):b("=")&&(me(),E=yn()),x.markEnd(x.createVariableDeclarator(j,E),q)}function ht(h){var E=[];do{if(E.push(ft(h)),!b(","))break;me()}while(v<C);return E}function rt(){var h;return y("var"),h=ht(),G(),x.createVariableDeclaration(h,"var")}function Ye(h){var E,j;return j=I,y(h),E=ht(h),G(),x.markEnd(x.createVariableDeclaration(E,h),j)}function en(){return T(";"),x.createEmptyStatement()}function Dt(){var h=M();return G(),x.createExpressionStatement(h)}function Rt(){var h,E,j;return y("if"),T("("),h=M(),T(")"),E=Tn(),N("else")?(me(),j=Tn()):j=null,x.createIfStatement(h,E,j)}function fn(){var h,E,j;return y("do"),j=O.inIteration,O.inIteration=!0,h=Tn(),O.inIteration=j,y("while"),T("("),E=M(),T(")"),b(";")&&me(),x.createDoWhileStatement(h,E)}function kn(){var h,E,j;return y("while"),T("("),h=M(),T(")"),j=O.inIteration,O.inIteration=!0,E=Tn(),O.inIteration=j,x.createWhileStatement(h,E)}function sr(){var h,E,j;return j=I,h=me(),E=ht(),x.markEnd(x.createVariableDeclaration(E,h.value),j)}function Gt(){var h,E,j,q,ne,de,ze;return h=E=j=null,y("for"),T("("),b(";")?me():(N("var")||N("let")?(O.allowIn=!1,h=sr(),O.allowIn=!0,h.declarations.length===1&&N("in")&&(me(),q=h,ne=M(),h=null)):(O.allowIn=!1,h=M(),O.allowIn=!0,N("in")&&(ee(h)||De({},p.InvalidLHSInForIn),me(),q=h,ne=M(),h=null)),typeof q>"u"&&T(";")),typeof q>"u"&&(b(";")||(E=M()),T(";"),b(")")||(j=M())),T(")"),ze=O.inIteration,O.inIteration=!0,de=Tn(),O.inIteration=ze,typeof q>"u"?x.createForStatement(h,E,j,de):x.createForInStatement(q,ne,de)}function Si(){var h=null,E;return y("continue"),S.charCodeAt(v)===59?(me(),O.inIteration||Oe({},p.IllegalContinue),x.createContinueStatement(null)):Ut()?(O.inIteration||Oe({},p.IllegalContinue),x.createContinueStatement(null)):(I.type===u.Identifier&&(h=Ie(),E="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,E)||Oe({},p.UnknownLabel,h.name)),G(),h===null&&!O.inIteration&&Oe({},p.IllegalContinue),x.createContinueStatement(h))}function oo(){var h=null,E;return y("break"),S.charCodeAt(v)===59?(me(),O.inIteration||O.inSwitch||Oe({},p.IllegalBreak),x.createBreakStatement(null)):Ut()?(O.inIteration||O.inSwitch||Oe({},p.IllegalBreak),x.createBreakStatement(null)):(I.type===u.Identifier&&(h=Ie(),E="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,E)||Oe({},p.UnknownLabel,h.name)),G(),h===null&&!(O.inIteration||O.inSwitch)&&Oe({},p.IllegalBreak),x.createBreakStatement(h))}function ao(){var h=null;return y("return"),O.inFunctionBody||De({},p.IllegalReturn),S.charCodeAt(v)===32&&pe(S.charCodeAt(v+1))?(h=M(),G(),x.createReturnStatement(h)):Ut()?x.createReturnStatement(null):(b(";")||!b("}")&&I.type!==u.EOF&&(h=M()),G(),x.createReturnStatement(h))}function Ca(){var h,E;return A&&(J(),De({},p.StrictModeWith)),y("with"),T("("),h=M(),T(")"),E=Tn(),x.createWithStatement(h,E)}function _a(){var h,E=[],j,q;for(q=I,N("default")?(me(),h=null):(y("case"),h=M()),T(":");v<C&&!(b("}")||N("default")||N("case"));)j=Tn(),E.push(j);return x.markEnd(x.createSwitchCase(h,E),q)}function ka(){var h,E,j,q,ne;if(y("switch"),T("("),h=M(),T(")"),T("{"),E=[],b("}"))return me(),x.createSwitchStatement(h,E);for(q=O.inSwitch,O.inSwitch=!0,ne=!1;v<C&&!b("}");)j=_a(),j.test===null&&(ne&&Oe({},p.MultipleDefaultsInSwitch),ne=!0),E.push(j);return O.inSwitch=q,T("}"),x.createSwitchStatement(h,E)}function qc(){var h;return y("throw"),Ut()&&Oe({},p.NewlineAfterThrow),h=M(),G(),x.createThrowStatement(h)}function Wc(){var h,E,j;return j=I,y("catch"),T("("),b(")")&&$t(I),h=Ie(),A&&_e(h.name)&&De({},p.StrictCatchVariable),T(")"),E=be(),x.markEnd(x.createCatchClause(h,E),j)}function Kc(){var h,E=[],j=null;return y("try"),h=be(),N("catch")&&E.push(Wc()),N("finally")&&(me(),j=be()),E.length===0&&!j&&Oe({},p.NoCatchOrFinally),x.createTryStatement(h,[],E,j)}function Hc(){return y("debugger"),G(),x.createDebuggerStatement()}function Tn(){var h=I.type,E,j,q,ne;if(h===u.EOF&&$t(I),h===u.Punctuator&&I.value==="{")return be();if(ne=I,h===u.Punctuator)switch(I.value){case";":return x.markEnd(en(),ne);case"(":return x.markEnd(Dt(),ne)}if(h===u.Keyword)switch(I.value){case"break":return x.markEnd(oo(),ne);case"continue":return x.markEnd(Si(),ne);case"debugger":return x.markEnd(Hc(),ne);case"do":return x.markEnd(fn(),ne);case"for":return x.markEnd(Gt(),ne);case"function":return x.markEnd(ls(),ne);case"if":return x.markEnd(Rt(),ne);case"return":return x.markEnd(ao(),ne);case"switch":return x.markEnd(ka(),ne);case"throw":return x.markEnd(qc(),ne);case"try":return x.markEnd(Kc(),ne);case"var":return x.markEnd(rt(),ne);case"while":return x.markEnd(kn(),ne);case"with":return x.markEnd(Ca(),ne)}return E=M(),E.type===d.Identifier&&b(":")?(me(),q="$"+E.name,Object.prototype.hasOwnProperty.call(O.labelSet,q)&&Oe({},p.Redeclaration,"Label",E.name),O.labelSet[q]=!0,j=Tn(),delete O.labelSet[q],x.markEnd(x.createLabeledStatement(E,j),ne)):(G(),x.markEnd(x.createExpressionStatement(E),ne))}function cs(){var h,E=[],j,q,ne,de,ze,vt,tn,Jt;for(Jt=I,T("{");v<C&&!(I.type!==u.StringLiteral||(j=I,h=Gr(),E.push(h),h.expression.type!==d.Literal));)q=S.slice(j.start+1,j.end-1),q==="use strict"?(A=!0,ne&&De(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(de=O.labelSet,ze=O.inIteration,vt=O.inSwitch,tn=O.inFunctionBody,O.labelSet={},O.inIteration=!1,O.inSwitch=!1,O.inFunctionBody=!0;v<C&&!(b("}")||(h=Gr(),typeof h>"u"));)E.push(h);return T("}"),O.labelSet=de,O.inIteration=ze,O.inSwitch=vt,O.inFunctionBody=tn,x.markEnd(x.createBlockStatement(E),Jt)}function uo(h){var E,j=[],q,ne,de,ze,vt;if(T("("),!b(")"))for(de={};v<C&&(q=I,E=Ie(),ze="$"+q.value,A?(_e(q.value)&&(ne=q,vt=p.StrictParamName),Object.prototype.hasOwnProperty.call(de,ze)&&(ne=q,vt=p.StrictParamDupe)):h||(_e(q.value)?(h=q,vt=p.StrictParamName):Fe(q.value)?(h=q,vt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(de,ze)&&(h=q,vt=p.StrictParamDupe)),j.push(E),de[ze]=!0,!b(")"));)T(",");return T(")"),{params:j,stricted:ne,firstRestricted:h,message:vt}}function ls(){var h,E=[],j,q,ne,de,ze,vt,tn,Jt;return Jt=I,y("function"),q=I,h=Ie(),A?_e(q.value)&&De(q,p.StrictFunctionName):_e(q.value)?(ze=q,vt=p.StrictFunctionName):Fe(q.value)&&(ze=q,vt=p.StrictReservedWord),de=uo(ze),E=de.params,ne=de.stricted,ze=de.firstRestricted,de.message&&(vt=de.message),tn=A,j=cs(),A&&ze&&Oe(ze,vt),A&&ne&&De(ne,vt),A=tn,x.markEnd(x.createFunctionDeclaration(h,E,[],j),Jt)}function zc(){var h,E=null,j,q,ne,de,ze=[],vt,tn,Jt;return Jt=I,y("function"),b("(")||(h=I,E=Ie(),A?_e(h.value)&&De(h,p.StrictFunctionName):_e(h.value)?(q=h,ne=p.StrictFunctionName):Fe(h.value)&&(q=h,ne=p.StrictReservedWord)),de=uo(q),ze=de.params,j=de.stricted,q=de.firstRestricted,de.message&&(ne=de.message),tn=A,vt=cs(),A&&q&&Oe(q,ne),A&&j&&De(j,ne),A=tn,x.markEnd(x.createFunctionExpression(E,ze,[],vt),Jt)}function Gr(){if(I.type===u.Keyword)switch(I.value){case"const":case"let":return Ye(I.value);case"function":return ls();default:return Tn()}if(I.type!==u.EOF)return Tn()}function fs(){for(var h,E=[],j,q,ne;v<C&&(j=I,!(j.type!==u.StringLiteral||(h=Gr(),E.push(h),h.expression.type!==d.Literal)));)q=S.slice(j.start+1,j.end-1),q==="use strict"?(A=!0,ne&&De(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(;v<C&&(h=Gr(),!(typeof h>"u"));)E.push(h);return E}function Ta(){var h,E;return J(),Ze(),E=I,A=!1,h=fs(),x.markEnd(x.createProgram(h),E)}function Oa(){var h,E,j,q=[];for(h=0;h<D.tokens.length;++h)E=D.tokens[h],j={type:E.type,value:E.value},D.range&&(j.range=E.range),D.loc&&(j.loc=E.loc),q.push(j);D.tokens=q}function Ia(h,E){var j,q,ne;j=String,typeof h!="string"&&!(h instanceof String)&&(h=j(h)),x=k,S=h,v=0,R=S.length>0?1:0,L=0,C=S.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},E=E||{},E.tokens=!0,D.tokens=[],D.tokenize=!0,D.openParenToken=-1,D.openCurlyToken=-1,D.range=typeof E.range=="boolean"&&E.range,D.loc=typeof E.loc=="boolean"&&E.loc,typeof E.comment=="boolean"&&E.comment&&(D.comments=[]),typeof E.tolerant=="boolean"&&E.tolerant&&(D.errors=[]);try{if(Ze(),I.type===u.EOF)return D.tokens;for(q=me();I.type!==u.EOF;)try{q=me()}catch(de){if(q=I,D.errors){D.errors.push(de);break}else throw de}Oa(),ne=D.tokens,typeof D.comments<"u"&&(ne.comments=D.comments),typeof D.errors<"u"&&(ne.errors=D.errors)}catch(de){throw de}finally{D={}}return ne}function Fa(h,E){var j,q;q=String,typeof h!="string"&&!(h instanceof String)&&(h=q(h)),x=k,S=h,v=0,R=S.length>0?1:0,L=0,C=S.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},typeof E<"u"&&(D.range=typeof E.range=="boolean"&&E.range,D.loc=typeof E.loc=="boolean"&&E.loc,D.attachComment=typeof E.attachComment=="boolean"&&E.attachComment,D.loc&&E.source!==null&&E.source!==void 0&&(D.source=q(E.source)),typeof E.tokens=="boolean"&&E.tokens&&(D.tokens=[]),typeof E.comment=="boolean"&&E.comment&&(D.comments=[]),typeof E.tolerant=="boolean"&&E.tolerant&&(D.errors=[]),D.attachComment&&(D.range=!0,D.comments=[],D.bottomRightStack=[],D.trailingComments=[],D.leadingComments=[]));try{j=Ta(),typeof D.comments<"u"&&(j.comments=D.comments),typeof D.tokens<"u"&&(Oa(),j.tokens=D.tokens),typeof D.errors<"u"&&(j.errors=D.errors)}catch(ne){throw ne}finally{D={}}return j}a.version="1.2.2",a.tokenize=Ia,a.parse=Fa,a.Syntax=function(){var h,E={};typeof Object.create=="function"&&(E=Object.create(null));for(h in d)d.hasOwnProperty(h)&&(E[h]=d[h]);return typeof Object.freeze=="function"&&Object.freeze(E),E}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(w,k,S,A,v,R,L){A.ast||(A.ast=f,f.initialize());var C=R.length-1;switch(v){case 1:return A.ast.set({expression:{type:"root",value:R[C]}}),A.ast.unshift(),A.ast.yield();case 2:return A.ast.set({expression:{type:"root",value:R[C-1]}}),A.ast.unshift(),A.ast.yield();case 3:return A.ast.unshift(),A.ast.yield();case 4:return A.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:R[C-1]}}),A.ast.unshift(),A.ast.yield();case 5:break;case 6:break;case 7:A.ast.set({operation:"member"}),A.ast.push();break;case 8:A.ast.set({operation:"subscript"}),A.ast.push();break;case 9:A.ast.set({scope:"child"});break;case 10:A.ast.set({scope:"descendant"});break;case 11:break;case 12:A.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:A.ast.set({expression:{type:"wildcard",value:R[C]}});break;case 15:A.ast.set({expression:{type:"identifier",value:R[C]}});break;case 16:A.ast.set({expression:{type:"script_expression",value:R[C]}});break;case 17:A.ast.set({expression:{type:"numeric_literal",value:parseInt(R[C])}});break;case 18:break;case 19:A.ast.set({scope:"child"});break;case 20:A.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:R[C].length>1?A.ast.set({expression:{type:"union",value:R[C]}}):this.$=R[C];break;case 25:this.$=[R[C]];break;case 26:this.$=R[C-2].concat(R[C]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(R[C])}},A.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:R[C]}},A.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:R[C]}},A.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:R[C]}},A.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:R[C]}},A.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:R[C]}},A.ast.set(this.$);break;case 33:this.$=R[C];break;case 34:this.$=R[C];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(w,k){if(k.recoverable)this.trace(w);else throw new Error(w)},parse:function(w){var k=this,S=[0],A=[null],v=[],R=this.table,L="",C=0,x=0,I=2,O=1,D=v.slice.call(arguments,1);this.lexer.setInput(w),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;v.push(W);var Q=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(){var we;return we=k.lexer.lex()||O,typeof we!="number"&&(we=k.symbols_[we]||we),we}for(var fe,ge,ye,pe,he={},Pe,Fe,_e,qe;;){if(ge=S[S.length-1],this.defaultActions[ge]?ye=this.defaultActions[ge]:((fe===null||typeof fe>"u")&&(fe=ce()),ye=R[ge]&&R[ge][fe]),typeof ye>"u"||!ye.length||!ye[0]){var Ee="";qe=[];for(Pe in R[ge])this.terminals_[Pe]&&Pe>I&&qe.push("'"+this.terminals_[Pe]+"'");this.lexer.showPosition?Ee="Parse error on line "+(C+1)+`:
223
+ `&&++v,N=v;else{if(ye(q.charCodeAt(0)))break;h+=q}return E!==""&&Oe({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:vt,startLineNumber:tn,startLineStart:Jt,lineNumber:R,lineStart:N,start:j,end:v}}function on(h,E){var j;try{j=new RegExp(h,E)}catch{Oe({},p.InvalidRegExp)}return j}function Nt(){var h,E,j,q,ne;for(h=S[v],W(h==="/","Regular expression literal must start with a slash"),E=S[v++],j=!1,q=!1;v<C;)if(h=S[v++],E+=h,h==="\\")h=S[v++],ye(h.charCodeAt(0))&&Oe({},p.UnterminatedRegExp),E+=h;else if(ye(h.charCodeAt(0)))Oe({},p.UnterminatedRegExp);else if(j)h==="]"&&(j=!1);else if(h==="/"){q=!0;break}else h==="["&&(j=!0);return q||Oe({},p.UnterminatedRegExp),ne=E.substr(1,E.length-2),{value:ne,literal:E}}function jt(){var h,E,j,q;for(E="",j="";v<C&&(h=S[v],!!he(h.charCodeAt(0)));)if(++v,h==="\\"&&v<C)if(h=S[v],h==="u"){if(++v,q=v,h=X("u"),h)for(j+=h,E+="\\u";q<v;++q)E+=S[q];else v=q,j+="u",E+="\\u";De({},p.UnexpectedToken,"ILLEGAL")}else E+="\\",De({},p.UnexpectedToken,"ILLEGAL");else j+=h,E+=h;return{value:j,literal:E}}function Se(){var h,E,j,q;return I=null,J(),h=v,E=Nt(),j=jt(),q=on(E.value,j.value),D.tokenize?{type:u.RegularExpression,value:q,lineNumber:R,lineStart:N,start:h,end:v}:{literal:E.literal+j.literal,value:q,start:h,end:v}}function ke(){var h,E,j,q;return J(),h=v,E={start:{line:R,column:v-N}},j=Se(),E.end={line:R,column:v-N},D.tokenize||(D.tokens.length>0&&(q=D.tokens[D.tokens.length-1],q.range[0]===h&&q.type==="Punctuator"&&(q.value==="/"||q.value==="/=")&&D.tokens.pop()),D.tokens.push({type:"RegularExpression",value:j.literal,range:[h,v],loc:E})),j}function He(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function Ot(){var h,E;if(h=D.tokens[D.tokens.length-1],!h)return ke();if(h.type==="Punctuator"){if(h.value==="]")return xe();if(h.value===")")return E=D.tokens[D.openParenToken-1],E&&E.type==="Keyword"&&(E.value==="if"||E.value==="while"||E.value==="for"||E.value==="with")?ke():xe();if(h.value==="}"){if(D.tokens[D.openCurlyToken-3]&&D.tokens[D.openCurlyToken-3].type==="Keyword"){if(E=D.tokens[D.openCurlyToken-4],!E)return xe()}else if(D.tokens[D.openCurlyToken-4]&&D.tokens[D.openCurlyToken-4].type==="Keyword"){if(E=D.tokens[D.openCurlyToken-5],!E)return ke()}else return xe();return f.indexOf(E.value)>=0?xe():ke()}return ke()}return h.type==="Keyword"?ke():xe()}function pt(){var h;return J(),v>=C?{type:u.EOF,lineNumber:R,lineStart:N,start:v,end:v}:(h=S.charCodeAt(v),pe(h)?We():h===40||h===41||h===59?xe():h===39||h===34?Tt():h===46?Q(S.charCodeAt(v+1))?Le():xe():Q(h)?Le():D.tokenize&&h===47?Ot():xe())}function Et(){var h,E,j;return J(),h={start:{line:R,column:v-N}},E=pt(),h.end={line:R,column:v-N},E.type!==u.EOF&&(j=S.slice(E.start,E.end),D.tokens.push({type:l[E.type],value:j,range:[E.start,E.end],loc:h})),E}function me(){var h;return h=I,v=h.end,R=h.lineNumber,N=h.lineStart,I=typeof D.tokens<"u"?Et():pt(),v=h.end,R=h.lineNumber,N=h.lineStart,h}function Ze(){var h,E,j;h=v,E=R,j=N,I=typeof D.tokens<"u"?Et():pt(),v=h,R=E,N=j}function xt(h,E){this.line=h,this.column=E}function ot(h,E,j,q){this.start=new xt(h,E),this.end=new xt(j,q)}k={name:"SyntaxTree",processComment:function(h){var E,j;if(!(h.type===d.Program&&h.body.length>0)){for(D.trailingComments.length>0?D.trailingComments[0].range[0]>=h.range[1]?(j=D.trailingComments,D.trailingComments=[]):D.trailingComments.length=0:D.bottomRightStack.length>0&&D.bottomRightStack[D.bottomRightStack.length-1].trailingComments&&D.bottomRightStack[D.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&(j=D.bottomRightStack[D.bottomRightStack.length-1].trailingComments,delete D.bottomRightStack[D.bottomRightStack.length-1].trailingComments);D.bottomRightStack.length>0&&D.bottomRightStack[D.bottomRightStack.length-1].range[0]>=h.range[0];)E=D.bottomRightStack.pop();E?E.leadingComments&&E.leadingComments[E.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=E.leadingComments,delete E.leadingComments):D.leadingComments.length>0&&D.leadingComments[D.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=D.leadingComments,D.leadingComments=[]),j&&(h.trailingComments=j),D.bottomRightStack.push(h)}},markEnd:function(h,E){return D.range&&(h.range=[E.start,v]),D.loc&&(h.loc=new ot(E.startLineNumber===void 0?E.lineNumber:E.startLineNumber,E.start-(E.startLineStart===void 0?E.lineStart:E.startLineStart),R,v-N),this.postProcess(h)),D.attachComment&&this.processComment(h),h},postProcess:function(h){return D.source&&(h.loc.source=D.source),h},createArrayExpression:function(h){return{type:d.ArrayExpression,elements:h}},createAssignmentExpression:function(h,E,j){return{type:d.AssignmentExpression,operator:h,left:E,right:j}},createBinaryExpression:function(h,E,j){var q=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:q,operator:h,left:E,right:j}},createBlockStatement:function(h){return{type:d.BlockStatement,body:h}},createBreakStatement:function(h){return{type:d.BreakStatement,label:h}},createCallExpression:function(h,E){return{type:d.CallExpression,callee:h,arguments:E}},createCatchClause:function(h,E){return{type:d.CatchClause,param:h,body:E}},createConditionalExpression:function(h,E,j){return{type:d.ConditionalExpression,test:h,consequent:E,alternate:j}},createContinueStatement:function(h){return{type:d.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(h,E){return{type:d.DoWhileStatement,body:h,test:E}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(h){return{type:d.ExpressionStatement,expression:h}},createForStatement:function(h,E,j,q){return{type:d.ForStatement,init:h,test:E,update:j,body:q}},createForInStatement:function(h,E,j){return{type:d.ForInStatement,left:h,right:E,body:j,each:!1}},createFunctionDeclaration:function(h,E,j,q){return{type:d.FunctionDeclaration,id:h,params:E,defaults:j,body:q,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,E,j,q){return{type:d.FunctionExpression,id:h,params:E,defaults:j,body:q,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:d.Identifier,name:h}},createIfStatement:function(h,E,j){return{type:d.IfStatement,test:h,consequent:E,alternate:j}},createLabeledStatement:function(h,E){return{type:d.LabeledStatement,label:h,body:E}},createLiteral:function(h){return{type:d.Literal,value:h.value,raw:S.slice(h.start,h.end)}},createMemberExpression:function(h,E,j){return{type:d.MemberExpression,computed:h==="[",object:E,property:j}},createNewExpression:function(h,E){return{type:d.NewExpression,callee:h,arguments:E}},createObjectExpression:function(h){return{type:d.ObjectExpression,properties:h}},createPostfixExpression:function(h,E){return{type:d.UpdateExpression,operator:h,argument:E,prefix:!1}},createProgram:function(h){return{type:d.Program,body:h}},createProperty:function(h,E,j){return{type:d.Property,key:E,value:j,kind:h}},createReturnStatement:function(h){return{type:d.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:d.SequenceExpression,expressions:h}},createSwitchCase:function(h,E){return{type:d.SwitchCase,test:h,consequent:E}},createSwitchStatement:function(h,E){return{type:d.SwitchStatement,discriminant:h,cases:E}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(h){return{type:d.ThrowStatement,argument:h}},createTryStatement:function(h,E,j,q){return{type:d.TryStatement,block:h,guardedHandlers:E,handlers:j,finalizer:q}},createUnaryExpression:function(h,E){return h==="++"||h==="--"?{type:d.UpdateExpression,operator:h,argument:E,prefix:!0}:{type:d.UnaryExpression,operator:h,argument:E,prefix:!0}},createVariableDeclaration:function(h,E){return{type:d.VariableDeclaration,declarations:h,kind:E}},createVariableDeclarator:function(h,E){return{type:d.VariableDeclarator,id:h,init:E}},createWhileStatement:function(h,E){return{type:d.WhileStatement,test:h,body:E}},createWithStatement:function(h,E){return{type:d.WithStatement,object:h,body:E}}};function Ut(){var h,E,j,q;return h=v,E=R,j=N,J(),q=R!==E,v=h,R=E,N=j,q}function Oe(h,E){var j,q=Array.prototype.slice.call(arguments,2),ne=E.replace(/%(\d)/g,function(de,ze){return W(ze<q.length,"Message reference must be in range"),q[ze]});throw typeof h.lineNumber=="number"?(j=new Error("Line "+h.lineNumber+": "+ne),j.index=h.start,j.lineNumber=h.lineNumber,j.column=h.start-N+1):(j=new Error("Line "+R+": "+ne),j.index=v,j.lineNumber=R,j.column=v-N+1),j.description=ne,j}function De(){try{Oe.apply(null,arguments)}catch(h){if(D.errors)D.errors.push(h);else throw h}}function $t(h){if(h.type===u.EOF&&Oe(h,p.UnexpectedEOS),h.type===u.NumericLiteral&&Oe(h,p.UnexpectedNumber),h.type===u.StringLiteral&&Oe(h,p.UnexpectedString),h.type===u.Identifier&&Oe(h,p.UnexpectedIdentifier),h.type===u.Keyword){if(Pe(h.value))Oe(h,p.UnexpectedReserved);else if(A&&Fe(h.value)){De(h,p.StrictReservedWord);return}Oe(h,p.UnexpectedToken,h.value)}Oe(h,p.UnexpectedToken,h.value)}function T(h){var E=me();(E.type!==u.Punctuator||E.value!==h)&&$t(E)}function y(h){var E=me();(E.type!==u.Keyword||E.value!==h)&&$t(E)}function b(h){return I.type===u.Punctuator&&I.value===h}function L(h){return I.type===u.Keyword&&I.value===h}function V(){var h;return I.type!==u.Punctuator?!1:(h=I.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(S.charCodeAt(v)===59||b(";")){me();return}h=R,J(),R===h&&I.type!==u.EOF&&!b("}")&&$t(I)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Me(){var h=[],E;for(E=I,T("[");!b("]");)b(",")?(me(),h.push(null)):(h.push(yn()),b("]")||T(","));return me(),x.markEnd(x.createArrayExpression(h),E)}function yt(h,E){var j,q,ne;return j=A,ne=I,q=cs(),E&&A&&_e(h[0].name)&&De(E,p.StrictParamName),A=j,x.markEnd(x.createFunctionExpression(null,h,[],q),ne)}function lt(){var h,E;return E=I,h=me(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(A&&h.octal&&De(h,p.StrictOctalLiteral),x.markEnd(x.createLiteral(h),E)):x.markEnd(x.createIdentifier(h.value),E)}function gt(){var h,E,j,q,ne,de;if(h=I,de=I,h.type===u.Identifier)return j=lt(),h.value==="get"&&!b(":")?(E=lt(),T("("),T(")"),q=yt([]),x.markEnd(x.createProperty("get",E,q),de)):h.value==="set"&&!b(":")?(E=lt(),T("("),h=I,h.type!==u.Identifier?(T(")"),De(h,p.UnexpectedToken,h.value),q=yt([])):(ne=[Ie()],T(")"),q=yt(ne,h)),x.markEnd(x.createProperty("set",E,q),de)):(T(":"),q=yn(),x.markEnd(x.createProperty("init",j,q),de));if(h.type===u.EOF||h.type===u.Punctuator)$t(h);else return E=lt(),T(":"),q=yn(),x.markEnd(x.createProperty("init",E,q),de)}function at(){var h=[],E,j,q,ne,de={},ze=String,vt;for(vt=I,T("{");!b("}");)E=gt(),E.key.type===d.Identifier?j=E.key.name:j=ze(E.key.value),ne=E.kind==="init"?g.Data:E.kind==="get"?g.Get:g.Set,q="$"+j,Object.prototype.hasOwnProperty.call(de,q)?(de[q]===g.Data?A&&ne===g.Data?De({},p.StrictDuplicateProperty):ne!==g.Data&&De({},p.AccessorDataProperty):ne===g.Data?De({},p.AccessorDataProperty):de[q]&ne&&De({},p.AccessorGetSet),de[q]|=ne):de[q]=ne,h.push(E),b("}")||T(",");return T("}"),x.markEnd(x.createObjectExpression(h),vt)}function Kr(){var h;return T("("),h=M(),T(")"),h}function vi(){var h,E,j,q;if(b("("))return Kr();if(b("["))return Me();if(b("{"))return at();if(h=I.type,q=I,h===u.Identifier)j=x.createIdentifier(me().value);else if(h===u.StringLiteral||h===u.NumericLiteral)A&&I.octal&&De(I,p.StrictOctalLiteral),j=x.createLiteral(me());else if(h===u.Keyword){if(L("function"))return zc();L("this")?(me(),j=x.createThisExpression()):$t(me())}else h===u.BooleanLiteral?(E=me(),E.value=E.value==="true",j=x.createLiteral(E)):h===u.NullLiteral?(E=me(),E.value=null,j=x.createLiteral(E)):b("/")||b("/=")?(typeof D.tokens<"u"?j=x.createLiteral(ke()):j=x.createLiteral(Se()),Ze()):$t(me());return x.markEnd(j,q)}function os(){var h=[];if(T("("),!b(")"))for(;v<C&&(h.push(yn()),!b(")"));)T(",");return T(")"),h}function as(){var h,E;return E=I,h=me(),He(h)||$t(h),x.markEnd(x.createIdentifier(h.value),E)}function us(){return T("."),as()}function Hr(){var h;return T("["),h=M(),T("]"),h}function wi(){var h,E,j;return j=I,y("new"),h=ro(),E=b("(")?os():[],x.markEnd(x.createNewExpression(h,E),j)}function no(){var h,E,j,q,ne;for(ne=I,h=O.allowIn,O.allowIn=!0,E=L("new")?wi():vi(),O.allowIn=h;;){if(b("."))q=us(),E=x.createMemberExpression(".",E,q);else if(b("("))j=os(),E=x.createCallExpression(E,j);else if(b("["))q=Hr(),E=x.createMemberExpression("[",E,q);else break;x.markEnd(E,ne)}return E}function ro(){var h,E,j,q;for(q=I,h=O.allowIn,E=L("new")?wi():vi(),O.allowIn=h;b(".")||b("[");)b("[")?(j=Hr(),E=x.createMemberExpression("[",E,j)):(j=us(),E=x.createMemberExpression(".",E,j)),x.markEnd(E,q);return E}function kr(){var h,E,j=I;return h=no(),I.type===u.Punctuator&&(b("++")||b("--"))&&!Ut()&&(A&&h.type===d.Identifier&&_e(h.name)&&De({},p.StrictLHSPostfix),ee(h)||De({},p.InvalidLHSInAssignment),E=me(),h=x.markEnd(x.createPostfixExpression(E.value,h),j)),h}function ir(){var h,E,j;return I.type!==u.Punctuator&&I.type!==u.Keyword?E=kr():b("++")||b("--")?(j=I,h=me(),E=ir(),A&&E.type===d.Identifier&&_e(E.name)&&De({},p.StrictLHSPrefix),ee(E)||De({},p.InvalidLHSInAssignment),E=x.createUnaryExpression(h.value,E),E=x.markEnd(E,j)):b("+")||b("-")||b("~")||b("!")?(j=I,h=me(),E=ir(),E=x.createUnaryExpression(h.value,E),E=x.markEnd(E,j)):L("delete")||L("void")||L("typeof")?(j=I,h=me(),E=ir(),E=x.createUnaryExpression(h.value,E),E=x.markEnd(E,j),A&&E.operator==="delete"&&E.argument.type===d.Identifier&&De({},p.StrictDelete)):E=kr(),E}function zr(h,E){var j=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":j=1;break;case"&&":j=2;break;case"|":j=3;break;case"^":j=4;break;case"&":j=5;break;case"==":case"!=":case"===":case"!==":j=6;break;case"<":case">":case"<=":case">=":case"instanceof":j=7;break;case"in":j=E?7:0;break;case"<<":case">>":case">>>":j=8;break;case"+":case"-":j=9;break;case"*":case"/":case"%":j=11;break}return j}function io(){var h,E,j,q,ne,de,ze,vt,tn,Jt;if(h=I,tn=ir(),q=I,ne=zr(q,O.allowIn),ne===0)return tn;for(q.prec=ne,me(),E=[h,I],ze=ir(),de=[tn,q,ze];(ne=zr(I,O.allowIn))>0;){for(;de.length>2&&ne<=de[de.length-2].prec;)ze=de.pop(),vt=de.pop().value,tn=de.pop(),j=x.createBinaryExpression(vt,tn,ze),E.pop(),h=E[E.length-1],x.markEnd(j,h),de.push(j);q=me(),q.prec=ne,de.push(q),E.push(I),j=ir(),de.push(j)}for(Jt=de.length-1,j=de[Jt],E.pop();Jt>1;)j=x.createBinaryExpression(de[Jt-1].value,de[Jt-2],j),Jt-=2,h=E.pop(),x.markEnd(j,h);return j}function so(){var h,E,j,q,ne;return ne=I,h=io(),b("?")&&(me(),E=O.allowIn,O.allowIn=!0,j=yn(),O.allowIn=E,T(":"),q=yn(),h=x.createConditionalExpression(h,j,q),x.markEnd(h,ne)),h}function yn(){var h,E,j,q,ne;return h=I,ne=I,q=E=so(),V()&&(ee(E)||De({},p.InvalidLHSInAssignment),A&&E.type===d.Identifier&&_e(E.name)&&De(h,p.StrictLHSAssignment),h=me(),j=yn(),q=x.markEnd(x.createAssignmentExpression(h.value,E,j),ne)),q}function M(){var h,E=I;if(h=yn(),b(",")){for(h=x.createSequenceExpression([h]);v<C&&b(",");)me(),h.expressions.push(yn());x.markEnd(h,E)}return h}function le(){for(var h=[],E;v<C&&!(b("}")||(E=Gr(),typeof E>"u"));)h.push(E);return h}function be(){var h,E;return E=I,T("{"),h=le(),T("}"),x.markEnd(x.createBlockStatement(h),E)}function Ie(){var h,E;return E=I,h=me(),h.type!==u.Identifier&&$t(h),x.markEnd(x.createIdentifier(h.value),E)}function ft(h){var E=null,j,q;return q=I,j=Ie(),A&&_e(j.name)&&De({},p.StrictVarName),h==="const"?(T("="),E=yn()):b("=")&&(me(),E=yn()),x.markEnd(x.createVariableDeclarator(j,E),q)}function ht(h){var E=[];do{if(E.push(ft(h)),!b(","))break;me()}while(v<C);return E}function rt(){var h;return y("var"),h=ht(),G(),x.createVariableDeclaration(h,"var")}function Ye(h){var E,j;return j=I,y(h),E=ht(h),G(),x.markEnd(x.createVariableDeclaration(E,h),j)}function en(){return T(";"),x.createEmptyStatement()}function Dt(){var h=M();return G(),x.createExpressionStatement(h)}function Rt(){var h,E,j;return y("if"),T("("),h=M(),T(")"),E=Tn(),L("else")?(me(),j=Tn()):j=null,x.createIfStatement(h,E,j)}function fn(){var h,E,j;return y("do"),j=O.inIteration,O.inIteration=!0,h=Tn(),O.inIteration=j,y("while"),T("("),E=M(),T(")"),b(";")&&me(),x.createDoWhileStatement(h,E)}function kn(){var h,E,j;return y("while"),T("("),h=M(),T(")"),j=O.inIteration,O.inIteration=!0,E=Tn(),O.inIteration=j,x.createWhileStatement(h,E)}function sr(){var h,E,j;return j=I,h=me(),E=ht(),x.markEnd(x.createVariableDeclaration(E,h.value),j)}function Gt(){var h,E,j,q,ne,de,ze;return h=E=j=null,y("for"),T("("),b(";")?me():(L("var")||L("let")?(O.allowIn=!1,h=sr(),O.allowIn=!0,h.declarations.length===1&&L("in")&&(me(),q=h,ne=M(),h=null)):(O.allowIn=!1,h=M(),O.allowIn=!0,L("in")&&(ee(h)||De({},p.InvalidLHSInForIn),me(),q=h,ne=M(),h=null)),typeof q>"u"&&T(";")),typeof q>"u"&&(b(";")||(E=M()),T(";"),b(")")||(j=M())),T(")"),ze=O.inIteration,O.inIteration=!0,de=Tn(),O.inIteration=ze,typeof q>"u"?x.createForStatement(h,E,j,de):x.createForInStatement(q,ne,de)}function Si(){var h=null,E;return y("continue"),S.charCodeAt(v)===59?(me(),O.inIteration||Oe({},p.IllegalContinue),x.createContinueStatement(null)):Ut()?(O.inIteration||Oe({},p.IllegalContinue),x.createContinueStatement(null)):(I.type===u.Identifier&&(h=Ie(),E="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,E)||Oe({},p.UnknownLabel,h.name)),G(),h===null&&!O.inIteration&&Oe({},p.IllegalContinue),x.createContinueStatement(h))}function oo(){var h=null,E;return y("break"),S.charCodeAt(v)===59?(me(),O.inIteration||O.inSwitch||Oe({},p.IllegalBreak),x.createBreakStatement(null)):Ut()?(O.inIteration||O.inSwitch||Oe({},p.IllegalBreak),x.createBreakStatement(null)):(I.type===u.Identifier&&(h=Ie(),E="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,E)||Oe({},p.UnknownLabel,h.name)),G(),h===null&&!(O.inIteration||O.inSwitch)&&Oe({},p.IllegalBreak),x.createBreakStatement(h))}function ao(){var h=null;return y("return"),O.inFunctionBody||De({},p.IllegalReturn),S.charCodeAt(v)===32&&pe(S.charCodeAt(v+1))?(h=M(),G(),x.createReturnStatement(h)):Ut()?x.createReturnStatement(null):(b(";")||!b("}")&&I.type!==u.EOF&&(h=M()),G(),x.createReturnStatement(h))}function Ca(){var h,E;return A&&(J(),De({},p.StrictModeWith)),y("with"),T("("),h=M(),T(")"),E=Tn(),x.createWithStatement(h,E)}function _a(){var h,E=[],j,q;for(q=I,L("default")?(me(),h=null):(y("case"),h=M()),T(":");v<C&&!(b("}")||L("default")||L("case"));)j=Tn(),E.push(j);return x.markEnd(x.createSwitchCase(h,E),q)}function ka(){var h,E,j,q,ne;if(y("switch"),T("("),h=M(),T(")"),T("{"),E=[],b("}"))return me(),x.createSwitchStatement(h,E);for(q=O.inSwitch,O.inSwitch=!0,ne=!1;v<C&&!b("}");)j=_a(),j.test===null&&(ne&&Oe({},p.MultipleDefaultsInSwitch),ne=!0),E.push(j);return O.inSwitch=q,T("}"),x.createSwitchStatement(h,E)}function qc(){var h;return y("throw"),Ut()&&Oe({},p.NewlineAfterThrow),h=M(),G(),x.createThrowStatement(h)}function Wc(){var h,E,j;return j=I,y("catch"),T("("),b(")")&&$t(I),h=Ie(),A&&_e(h.name)&&De({},p.StrictCatchVariable),T(")"),E=be(),x.markEnd(x.createCatchClause(h,E),j)}function Kc(){var h,E=[],j=null;return y("try"),h=be(),L("catch")&&E.push(Wc()),L("finally")&&(me(),j=be()),E.length===0&&!j&&Oe({},p.NoCatchOrFinally),x.createTryStatement(h,[],E,j)}function Hc(){return y("debugger"),G(),x.createDebuggerStatement()}function Tn(){var h=I.type,E,j,q,ne;if(h===u.EOF&&$t(I),h===u.Punctuator&&I.value==="{")return be();if(ne=I,h===u.Punctuator)switch(I.value){case";":return x.markEnd(en(),ne);case"(":return x.markEnd(Dt(),ne)}if(h===u.Keyword)switch(I.value){case"break":return x.markEnd(oo(),ne);case"continue":return x.markEnd(Si(),ne);case"debugger":return x.markEnd(Hc(),ne);case"do":return x.markEnd(fn(),ne);case"for":return x.markEnd(Gt(),ne);case"function":return x.markEnd(ls(),ne);case"if":return x.markEnd(Rt(),ne);case"return":return x.markEnd(ao(),ne);case"switch":return x.markEnd(ka(),ne);case"throw":return x.markEnd(qc(),ne);case"try":return x.markEnd(Kc(),ne);case"var":return x.markEnd(rt(),ne);case"while":return x.markEnd(kn(),ne);case"with":return x.markEnd(Ca(),ne)}return E=M(),E.type===d.Identifier&&b(":")?(me(),q="$"+E.name,Object.prototype.hasOwnProperty.call(O.labelSet,q)&&Oe({},p.Redeclaration,"Label",E.name),O.labelSet[q]=!0,j=Tn(),delete O.labelSet[q],x.markEnd(x.createLabeledStatement(E,j),ne)):(G(),x.markEnd(x.createExpressionStatement(E),ne))}function cs(){var h,E=[],j,q,ne,de,ze,vt,tn,Jt;for(Jt=I,T("{");v<C&&!(I.type!==u.StringLiteral||(j=I,h=Gr(),E.push(h),h.expression.type!==d.Literal));)q=S.slice(j.start+1,j.end-1),q==="use strict"?(A=!0,ne&&De(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(de=O.labelSet,ze=O.inIteration,vt=O.inSwitch,tn=O.inFunctionBody,O.labelSet={},O.inIteration=!1,O.inSwitch=!1,O.inFunctionBody=!0;v<C&&!(b("}")||(h=Gr(),typeof h>"u"));)E.push(h);return T("}"),O.labelSet=de,O.inIteration=ze,O.inSwitch=vt,O.inFunctionBody=tn,x.markEnd(x.createBlockStatement(E),Jt)}function uo(h){var E,j=[],q,ne,de,ze,vt;if(T("("),!b(")"))for(de={};v<C&&(q=I,E=Ie(),ze="$"+q.value,A?(_e(q.value)&&(ne=q,vt=p.StrictParamName),Object.prototype.hasOwnProperty.call(de,ze)&&(ne=q,vt=p.StrictParamDupe)):h||(_e(q.value)?(h=q,vt=p.StrictParamName):Fe(q.value)?(h=q,vt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(de,ze)&&(h=q,vt=p.StrictParamDupe)),j.push(E),de[ze]=!0,!b(")"));)T(",");return T(")"),{params:j,stricted:ne,firstRestricted:h,message:vt}}function ls(){var h,E=[],j,q,ne,de,ze,vt,tn,Jt;return Jt=I,y("function"),q=I,h=Ie(),A?_e(q.value)&&De(q,p.StrictFunctionName):_e(q.value)?(ze=q,vt=p.StrictFunctionName):Fe(q.value)&&(ze=q,vt=p.StrictReservedWord),de=uo(ze),E=de.params,ne=de.stricted,ze=de.firstRestricted,de.message&&(vt=de.message),tn=A,j=cs(),A&&ze&&Oe(ze,vt),A&&ne&&De(ne,vt),A=tn,x.markEnd(x.createFunctionDeclaration(h,E,[],j),Jt)}function zc(){var h,E=null,j,q,ne,de,ze=[],vt,tn,Jt;return Jt=I,y("function"),b("(")||(h=I,E=Ie(),A?_e(h.value)&&De(h,p.StrictFunctionName):_e(h.value)?(q=h,ne=p.StrictFunctionName):Fe(h.value)&&(q=h,ne=p.StrictReservedWord)),de=uo(q),ze=de.params,j=de.stricted,q=de.firstRestricted,de.message&&(ne=de.message),tn=A,vt=cs(),A&&q&&Oe(q,ne),A&&j&&De(j,ne),A=tn,x.markEnd(x.createFunctionExpression(E,ze,[],vt),Jt)}function Gr(){if(I.type===u.Keyword)switch(I.value){case"const":case"let":return Ye(I.value);case"function":return ls();default:return Tn()}if(I.type!==u.EOF)return Tn()}function fs(){for(var h,E=[],j,q,ne;v<C&&(j=I,!(j.type!==u.StringLiteral||(h=Gr(),E.push(h),h.expression.type!==d.Literal)));)q=S.slice(j.start+1,j.end-1),q==="use strict"?(A=!0,ne&&De(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(;v<C&&(h=Gr(),!(typeof h>"u"));)E.push(h);return E}function Ta(){var h,E;return J(),Ze(),E=I,A=!1,h=fs(),x.markEnd(x.createProgram(h),E)}function Oa(){var h,E,j,q=[];for(h=0;h<D.tokens.length;++h)E=D.tokens[h],j={type:E.type,value:E.value},D.range&&(j.range=E.range),D.loc&&(j.loc=E.loc),q.push(j);D.tokens=q}function Ia(h,E){var j,q,ne;j=String,typeof h!="string"&&!(h instanceof String)&&(h=j(h)),x=k,S=h,v=0,R=S.length>0?1:0,N=0,C=S.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},E=E||{},E.tokens=!0,D.tokens=[],D.tokenize=!0,D.openParenToken=-1,D.openCurlyToken=-1,D.range=typeof E.range=="boolean"&&E.range,D.loc=typeof E.loc=="boolean"&&E.loc,typeof E.comment=="boolean"&&E.comment&&(D.comments=[]),typeof E.tolerant=="boolean"&&E.tolerant&&(D.errors=[]);try{if(Ze(),I.type===u.EOF)return D.tokens;for(q=me();I.type!==u.EOF;)try{q=me()}catch(de){if(q=I,D.errors){D.errors.push(de);break}else throw de}Oa(),ne=D.tokens,typeof D.comments<"u"&&(ne.comments=D.comments),typeof D.errors<"u"&&(ne.errors=D.errors)}catch(de){throw de}finally{D={}}return ne}function Fa(h,E){var j,q;q=String,typeof h!="string"&&!(h instanceof String)&&(h=q(h)),x=k,S=h,v=0,R=S.length>0?1:0,N=0,C=S.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},typeof E<"u"&&(D.range=typeof E.range=="boolean"&&E.range,D.loc=typeof E.loc=="boolean"&&E.loc,D.attachComment=typeof E.attachComment=="boolean"&&E.attachComment,D.loc&&E.source!==null&&E.source!==void 0&&(D.source=q(E.source)),typeof E.tokens=="boolean"&&E.tokens&&(D.tokens=[]),typeof E.comment=="boolean"&&E.comment&&(D.comments=[]),typeof E.tolerant=="boolean"&&E.tolerant&&(D.errors=[]),D.attachComment&&(D.range=!0,D.comments=[],D.bottomRightStack=[],D.trailingComments=[],D.leadingComments=[]));try{j=Ta(),typeof D.comments<"u"&&(j.comments=D.comments),typeof D.tokens<"u"&&(Oa(),j.tokens=D.tokens),typeof D.errors<"u"&&(j.errors=D.errors)}catch(ne){throw ne}finally{D={}}return j}a.version="1.2.2",a.tokenize=Ia,a.parse=Fa,a.Syntax=function(){var h,E={};typeof Object.create=="function"&&(E=Object.create(null));for(h in d)d.hasOwnProperty(h)&&(E[h]=d[h]);return typeof Object.freeze=="function"&&Object.freeze(E),E}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(w,k,S,A,v,R,N){A.ast||(A.ast=f,f.initialize());var C=R.length-1;switch(v){case 1:return A.ast.set({expression:{type:"root",value:R[C]}}),A.ast.unshift(),A.ast.yield();case 2:return A.ast.set({expression:{type:"root",value:R[C-1]}}),A.ast.unshift(),A.ast.yield();case 3:return A.ast.unshift(),A.ast.yield();case 4:return A.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:R[C-1]}}),A.ast.unshift(),A.ast.yield();case 5:break;case 6:break;case 7:A.ast.set({operation:"member"}),A.ast.push();break;case 8:A.ast.set({operation:"subscript"}),A.ast.push();break;case 9:A.ast.set({scope:"child"});break;case 10:A.ast.set({scope:"descendant"});break;case 11:break;case 12:A.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:A.ast.set({expression:{type:"wildcard",value:R[C]}});break;case 15:A.ast.set({expression:{type:"identifier",value:R[C]}});break;case 16:A.ast.set({expression:{type:"script_expression",value:R[C]}});break;case 17:A.ast.set({expression:{type:"numeric_literal",value:parseInt(R[C])}});break;case 18:break;case 19:A.ast.set({scope:"child"});break;case 20:A.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:R[C].length>1?A.ast.set({expression:{type:"union",value:R[C]}}):this.$=R[C];break;case 25:this.$=[R[C]];break;case 26:this.$=R[C-2].concat(R[C]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(R[C])}},A.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:R[C]}},A.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:R[C]}},A.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:R[C]}},A.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:R[C]}},A.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:R[C]}},A.ast.set(this.$);break;case 33:this.$=R[C];break;case 34:this.$=R[C];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(w,k){if(k.recoverable)this.trace(w);else throw new Error(w)},parse:function(w){var k=this,S=[0],A=[null],v=[],R=this.table,N="",C=0,x=0,I=2,O=1,D=v.slice.call(arguments,1);this.lexer.setInput(w),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;v.push(W);var Q=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(){var we;return we=k.lexer.lex()||O,typeof we!="number"&&(we=k.symbols_[we]||we),we}for(var fe,ge,ye,pe,he={},Pe,Fe,_e,qe;;){if(ge=S[S.length-1],this.defaultActions[ge]?ye=this.defaultActions[ge]:((fe===null||typeof fe>"u")&&(fe=ce()),ye=R[ge]&&R[ge][fe]),typeof ye>"u"||!ye.length||!ye[0]){var Ee="";qe=[];for(Pe in R[ge])this.terminals_[Pe]&&Pe>I&&qe.push("'"+this.terminals_[Pe]+"'");this.lexer.showPosition?Ee="Parse error on line "+(C+1)+`:
224
224
  `+this.lexer.showPosition()+`
225
- Expecting `+qe.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Ee="Parse error on line "+(C+1)+": Unexpected "+(fe==O?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Ee,{text:this.lexer.match,token:this.terminals_[fe]||fe,line:this.lexer.yylineno,loc:W,expected:qe})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+fe);switch(ye[0]){case 1:S.push(fe),A.push(this.lexer.yytext),v.push(this.lexer.yylloc),S.push(ye[1]),fe=null,x=this.lexer.yyleng,L=this.lexer.yytext,C=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(Fe=this.productions_[ye[1]][1],he.$=A[A.length-Fe],he._$={first_line:v[v.length-(Fe||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-(Fe||1)].first_column,last_column:v[v.length-1].last_column},Q&&(he._$.range=[v[v.length-(Fe||1)].range[0],v[v.length-1].range[1]]),pe=this.performAction.apply(he,[L,x,C,this.yy,ye[1],A,v].concat(D)),typeof pe<"u")return pe;Fe&&(S=S.slice(0,-1*Fe*2),A=A.slice(0,-1*Fe),v=v.slice(0,-1*Fe)),S.push(this.productions_[ye[1]][0]),A.push(he.$),v.push(he._$),_e=R[S[S.length-2]][S[S.length-1]],S.push(_e);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var w in p)this._node[w]=p[w];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(k,S){if(this.yy.parser)this.yy.parser.parseError(k,S);else throw new Error(k)},setInput:function(w){return this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,S=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k-1),this.offset-=k;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===A.length?this.yylloc.first_column:0)+A[A.length-S.length].length-S[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
225
+ Expecting `+qe.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Ee="Parse error on line "+(C+1)+": Unexpected "+(fe==O?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Ee,{text:this.lexer.match,token:this.terminals_[fe]||fe,line:this.lexer.yylineno,loc:W,expected:qe})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+fe);switch(ye[0]){case 1:S.push(fe),A.push(this.lexer.yytext),v.push(this.lexer.yylloc),S.push(ye[1]),fe=null,x=this.lexer.yyleng,N=this.lexer.yytext,C=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(Fe=this.productions_[ye[1]][1],he.$=A[A.length-Fe],he._$={first_line:v[v.length-(Fe||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-(Fe||1)].first_column,last_column:v[v.length-1].last_column},Q&&(he._$.range=[v[v.length-(Fe||1)].range[0],v[v.length-1].range[1]]),pe=this.performAction.apply(he,[N,x,C,this.yy,ye[1],A,v].concat(D)),typeof pe<"u")return pe;Fe&&(S=S.slice(0,-1*Fe*2),A=A.slice(0,-1*Fe),v=v.slice(0,-1*Fe)),S.push(this.productions_[ye[1]][0]),A.push(he.$),v.push(he._$),_e=R[S[S.length-2]][S[S.length-1]],S.push(_e);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var w in p)this._node[w]=p[w];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(k,S){if(this.yy.parser)this.yy.parser.parseError(k,S);else throw new Error(k)},setInput:function(w){return this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,S=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k-1),this.offset-=k;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===A.length?this.yylloc.first_column:0)+A[A.length-S.length].length-S[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
226
226
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
227
227
  `+k+"^"},test_match:function(w,k){var S,A,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),A=w[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],S=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var R in v)this[R]=v[R];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,k,S,A;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),R=0;R<v.length;R++)if(S=this._input.match(this.rules[v[R]]),S&&(!k||S[0].length>k[0].length)){if(k=S,A=R,this.options.backtrack_lexer){if(w=this.test_match(S,v[R]),w!==!1)return w;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(w=this.test_match(k,v[A]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
228
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,S,A,v){switch(A){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return S.yytext=S.yytext.substr(1,S.yyleng-2),32;case 11:return S.yytext=S.yytext.substr(1,S.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(d)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=k(!0),this.descend=k()},d.prototype.keys=Object.keys,d.prototype.resolve=function(C){var x=[C.operation,C.scope,C.expression.type].join("-"),I=this._fns[x];if(!I)throw new Error("couldn't resolve key: "+x);return I.bind(this)},d.prototype.register=function(C,x){if(!x instanceof Function)throw new Error("handler must be a function");this._fns[C]=x},d.prototype._fns={"member-child-identifier":function(C,x){var I=C.expression.value,O=x.value;if(O instanceof Object&&I in O)return[{value:O[I],path:x.path.concat(I)}]},"member-descendant-identifier":A(function(C,x,I){return C==I}),"subscript-child-numeric_literal":S(function(C,x,I){return C===I}),"member-child-numeric_literal":S(function(C,x,I){return String(C)===String(I)}),"subscript-descendant-numeric_literal":A(function(C,x,I){return C===I}),"member-child-wildcard":S(function(){return!0}),"member-descendant-wildcard":A(function(){return!0}),"subscript-descendant-wildcard":A(function(){return!0}),"subscript-child-wildcard":S(function(){return!0}),"subscript-child-slice":function(C,x){if(p(x.value)){var I=C.expression.value.split(":").map(L),O=x.value.map(function(D,W){return{value:D,path:x.path.concat(W)}});return u.apply(null,[O].concat(I))}},"subscript-child-union":function(C,x){var I=[];return C.expression.value.forEach(function(O){var D={operation:"subscript",scope:"child",expression:O.expression},W=this.resolve(D),Q=W(D,x);Q&&(I=I.concat(Q))},this),R(I)},"subscript-descendant-union":function(C,x,I){var O=n(".."),D=this,W=[],Q=O.nodes(x,"$..*").slice(1);return Q.forEach(function(ce){W.length>=I||C.expression.value.forEach(function(fe){var ge={operation:"subscript",scope:"child",expression:fe.expression},ye=D.resolve(ge),pe=ye(ge,ce);W=W.concat(pe)})}),R(W)},"subscript-child-filter_expression":function(C,x,I){var O=C.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,W=function(Q,ce){return v(D,{"@":ce})};return this.descend(x,null,W,I)},"subscript-descendant-filter_expression":function(C,x,I){var O=C.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,W=function(Q,ce){return v(D,{"@":ce})};return this.traverse(x,null,W,I)},"subscript-child-script_expression":function(C,x){var I=C.expression.value.slice(1,-1);return g(x,I,"$[{{value}}]")},"member-child-script_expression":function(C,x){var I=C.expression.value.slice(1,-1);return g(x,I,"$.{{value}}")},"member-descendant-script_expression":function(C,x){var I=C.expression.value.slice(1,-1);return g(x,I,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function g(C,x,I){var O=n("./index"),D=a.parse(x).body[0].expression,W=v(D,{"@":C.value}),Q=I.replace(/\{\{\s*value\s*\}\}/g,W),ce=O.nodes(C.value,Q);return ce.forEach(function(fe){fe.path=C.path.concat(fe.path.slice(1))}),ce}function p(C){return Array.isArray(C)}function w(C){return C&&!(C instanceof Array)&&C instanceof Object}function k(C){return function(x,I,O,D){var W=x.value,Q=x.path,ce=[],fe=function(ge,ye){p(ge)?(ge.forEach(function(pe,he){ce.length>=D||O(he,pe,I)&&ce.push({path:ye.concat(he),value:pe})}),ge.forEach(function(pe,he){ce.length>=D||C&&fe(pe,ye.concat(he))})):w(ge)&&(this.keys(ge).forEach(function(pe){ce.length>=D||O(pe,ge[pe],I)&&ce.push({path:ye.concat(pe),value:ge[pe]})}),this.keys(ge).forEach(function(pe){ce.length>=D||C&&fe(ge[pe],ye.concat(pe))}))}.bind(this);return fe(W,Q),ce}}function S(C){return function(x,I,O){return this.descend(I,x.expression.value,C,O)}}function A(C){return function(x,I,O){return this.traverse(I,x.expression.value,C,O)}}function v(){try{return l.apply(this,arguments)}catch{}}function R(C){return C=C.filter(function(x){return x}),f(C,function(x){return x.path.map(function(I){return String(I).replace("-","--")}).join("-")})}function L(C){var x=String(C);return x.match(/^-?[0-9]+$/)?parseInt(x):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new l,this.handlers=new f},d.prototype.parse=function(w){return a.ok(g(w),"we need a path"),this.parser.parse(w)},d.prototype.parent=function(w,k){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var S=this.nodes(w,k)[0];return S.path.pop(),this.value(w,S.path)},d.prototype.apply=function(w,k,S){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),a.equal(typeof S,"function","fn needs to be function");var A=this.nodes(w,k).sort(function(v,R){return R.path.length-v.path.length});return A.forEach(function(v){var R=v.path.pop(),L=this.value(w,this.stringify(v.path)),C=v.value=S.call(w,L[R]);L[R]=C},this),A},d.prototype.value=function(w,k,S){if(a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),arguments.length>=3){var A=this.nodes(w,k).shift();if(!A)return this._vivify(w,k,S);var v=A.path.slice(-1).shift(),R=this.parent(w,this.stringify(A.path));R[v]=S}return this.query(w,this.stringify(k),1).shift()},d.prototype._vivify=function(w,k,S){var A=this;a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var v=this.parser.parse(k).map(function(L){return L.expression.value}),R=function(L,C){var x=L.pop(),I=A.value(w,L);I||(R(L.concat(),typeof x=="string"?{}:[]),I=A.value(w,L)),I[x]=C};return R(v,S),this.query(w,k)[0]},d.prototype.query=function(w,k,S){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(g(k),"we need a path");var A=this.nodes(w,k,S).map(function(v){return v.value});return A},d.prototype.paths=function(w,k,S){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var A=this.nodes(w,k,S).map(function(v){return v.path});return A},d.prototype.nodes=function(w,k,S){if(a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),S===0)return[];var A=this.parser.parse(k),v=this.handlers,R=[{path:["$"],value:w}],L=[];return A.length&&A[0].expression.type=="root"&&A.shift(),A.length?(A.forEach(function(C,x){if(!(L.length>=S)){var I=v.resolve(C),O=[];R.forEach(function(D){if(!(L.length>=S)){var W=I(C,D,S);x==A.length-1?L=L.concat(W||[]):O=O.concat(W||[])}}),R=O}}),S?L.slice(0,S):L):R},d.prototype.stringify=function(w){a.ok(w,"we need a path");var k="$",S={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return w=this._normalize(w),w.forEach(function(A){if(A.expression.type!="root"){var v=[A.scope,A.operation].join("-"),R=S[v],L;if(A.expression.type=="string_literal"?L=JSON.stringify(A.expression.value):L=A.expression.value,!R)throw new Error("couldn't find template "+v);k+=R.replace(/{{value}}/,L)}}),k},d.prototype._normalize=function(w){if(a.ok(w,"we need a path"),typeof w=="string")return this.parser.parse(w);if(Array.isArray(w)&&typeof w[0]=="string"){var k=[{expression:{type:"root",value:"$"}}];return w.forEach(function(S,A){if(!(S=="$"&&A===0))if(typeof S=="string"&&S.match("^"+u.identifier+"$"))k.push({operation:"member",scope:"child",expression:{value:S,type:"identifier"}});else{var v=typeof S=="number"?"numeric_literal":"string_literal";k.push({operation:"subscript",scope:"child",expression:{value:S,type:v}})}}),k}else if(Array.isArray(w)&&typeof w[0]=="object")return w;throw new Error("couldn't understand path "+w)};function g(w){return Object.prototype.toString.call(w)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var g=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(d>0?0:g-1)),f=a(f===0?0:f||(d>0?g:-1)),l=d>0?Math.max(0,l):Math.min(g,l),f=d>0?Math.min(f,g):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],w=l;w!=f&&!(d<0&&w<=f||d>0&&w>=f);w+=d)p.push(u[w]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=k;f.AssertionError=function(I){this.name="AssertionError",this.actual=I.actual,this.expected=I.expected,this.operator=I.operator,I.message?(this.message=I.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var O=I.stackStartFunction||w;if(Error.captureStackTrace)Error.captureStackTrace(this,O);else{var D=new Error;if(D.stack){var W=D.stack,Q=O.name,ce=W.indexOf(`
228
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,S,A,v){switch(A){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return S.yytext=S.yytext.substr(1,S.yyleng-2),32;case 11:return S.yytext=S.yytext.substr(1,S.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(d)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=k(!0),this.descend=k()},d.prototype.keys=Object.keys,d.prototype.resolve=function(C){var x=[C.operation,C.scope,C.expression.type].join("-"),I=this._fns[x];if(!I)throw new Error("couldn't resolve key: "+x);return I.bind(this)},d.prototype.register=function(C,x){if(!x instanceof Function)throw new Error("handler must be a function");this._fns[C]=x},d.prototype._fns={"member-child-identifier":function(C,x){var I=C.expression.value,O=x.value;if(O instanceof Object&&I in O)return[{value:O[I],path:x.path.concat(I)}]},"member-descendant-identifier":A(function(C,x,I){return C==I}),"subscript-child-numeric_literal":S(function(C,x,I){return C===I}),"member-child-numeric_literal":S(function(C,x,I){return String(C)===String(I)}),"subscript-descendant-numeric_literal":A(function(C,x,I){return C===I}),"member-child-wildcard":S(function(){return!0}),"member-descendant-wildcard":A(function(){return!0}),"subscript-descendant-wildcard":A(function(){return!0}),"subscript-child-wildcard":S(function(){return!0}),"subscript-child-slice":function(C,x){if(p(x.value)){var I=C.expression.value.split(":").map(N),O=x.value.map(function(D,W){return{value:D,path:x.path.concat(W)}});return u.apply(null,[O].concat(I))}},"subscript-child-union":function(C,x){var I=[];return C.expression.value.forEach(function(O){var D={operation:"subscript",scope:"child",expression:O.expression},W=this.resolve(D),Q=W(D,x);Q&&(I=I.concat(Q))},this),R(I)},"subscript-descendant-union":function(C,x,I){var O=n(".."),D=this,W=[],Q=O.nodes(x,"$..*").slice(1);return Q.forEach(function(ce){W.length>=I||C.expression.value.forEach(function(fe){var ge={operation:"subscript",scope:"child",expression:fe.expression},ye=D.resolve(ge),pe=ye(ge,ce);W=W.concat(pe)})}),R(W)},"subscript-child-filter_expression":function(C,x,I){var O=C.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,W=function(Q,ce){return v(D,{"@":ce})};return this.descend(x,null,W,I)},"subscript-descendant-filter_expression":function(C,x,I){var O=C.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,W=function(Q,ce){return v(D,{"@":ce})};return this.traverse(x,null,W,I)},"subscript-child-script_expression":function(C,x){var I=C.expression.value.slice(1,-1);return g(x,I,"$[{{value}}]")},"member-child-script_expression":function(C,x){var I=C.expression.value.slice(1,-1);return g(x,I,"$.{{value}}")},"member-descendant-script_expression":function(C,x){var I=C.expression.value.slice(1,-1);return g(x,I,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function g(C,x,I){var O=n("./index"),D=a.parse(x).body[0].expression,W=v(D,{"@":C.value}),Q=I.replace(/\{\{\s*value\s*\}\}/g,W),ce=O.nodes(C.value,Q);return ce.forEach(function(fe){fe.path=C.path.concat(fe.path.slice(1))}),ce}function p(C){return Array.isArray(C)}function w(C){return C&&!(C instanceof Array)&&C instanceof Object}function k(C){return function(x,I,O,D){var W=x.value,Q=x.path,ce=[],fe=function(ge,ye){p(ge)?(ge.forEach(function(pe,he){ce.length>=D||O(he,pe,I)&&ce.push({path:ye.concat(he),value:pe})}),ge.forEach(function(pe,he){ce.length>=D||C&&fe(pe,ye.concat(he))})):w(ge)&&(this.keys(ge).forEach(function(pe){ce.length>=D||O(pe,ge[pe],I)&&ce.push({path:ye.concat(pe),value:ge[pe]})}),this.keys(ge).forEach(function(pe){ce.length>=D||C&&fe(ge[pe],ye.concat(pe))}))}.bind(this);return fe(W,Q),ce}}function S(C){return function(x,I,O){return this.descend(I,x.expression.value,C,O)}}function A(C){return function(x,I,O){return this.traverse(I,x.expression.value,C,O)}}function v(){try{return l.apply(this,arguments)}catch{}}function R(C){return C=C.filter(function(x){return x}),f(C,function(x){return x.path.map(function(I){return String(I).replace("-","--")}).join("-")})}function N(C){var x=String(C);return x.match(/^-?[0-9]+$/)?parseInt(x):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new l,this.handlers=new f},d.prototype.parse=function(w){return a.ok(g(w),"we need a path"),this.parser.parse(w)},d.prototype.parent=function(w,k){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var S=this.nodes(w,k)[0];return S.path.pop(),this.value(w,S.path)},d.prototype.apply=function(w,k,S){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),a.equal(typeof S,"function","fn needs to be function");var A=this.nodes(w,k).sort(function(v,R){return R.path.length-v.path.length});return A.forEach(function(v){var R=v.path.pop(),N=this.value(w,this.stringify(v.path)),C=v.value=S.call(w,N[R]);N[R]=C},this),A},d.prototype.value=function(w,k,S){if(a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),arguments.length>=3){var A=this.nodes(w,k).shift();if(!A)return this._vivify(w,k,S);var v=A.path.slice(-1).shift(),R=this.parent(w,this.stringify(A.path));R[v]=S}return this.query(w,this.stringify(k),1).shift()},d.prototype._vivify=function(w,k,S){var A=this;a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var v=this.parser.parse(k).map(function(N){return N.expression.value}),R=function(N,C){var x=N.pop(),I=A.value(w,N);I||(R(N.concat(),typeof x=="string"?{}:[]),I=A.value(w,N)),I[x]=C};return R(v,S),this.query(w,k)[0]},d.prototype.query=function(w,k,S){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(g(k),"we need a path");var A=this.nodes(w,k,S).map(function(v){return v.value});return A},d.prototype.paths=function(w,k,S){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var A=this.nodes(w,k,S).map(function(v){return v.path});return A},d.prototype.nodes=function(w,k,S){if(a.ok(w instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),S===0)return[];var A=this.parser.parse(k),v=this.handlers,R=[{path:["$"],value:w}],N=[];return A.length&&A[0].expression.type=="root"&&A.shift(),A.length?(A.forEach(function(C,x){if(!(N.length>=S)){var I=v.resolve(C),O=[];R.forEach(function(D){if(!(N.length>=S)){var W=I(C,D,S);x==A.length-1?N=N.concat(W||[]):O=O.concat(W||[])}}),R=O}}),S?N.slice(0,S):N):R},d.prototype.stringify=function(w){a.ok(w,"we need a path");var k="$",S={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return w=this._normalize(w),w.forEach(function(A){if(A.expression.type!="root"){var v=[A.scope,A.operation].join("-"),R=S[v],N;if(A.expression.type=="string_literal"?N=JSON.stringify(A.expression.value):N=A.expression.value,!R)throw new Error("couldn't find template "+v);k+=R.replace(/{{value}}/,N)}}),k},d.prototype._normalize=function(w){if(a.ok(w,"we need a path"),typeof w=="string")return this.parser.parse(w);if(Array.isArray(w)&&typeof w[0]=="string"){var k=[{expression:{type:"root",value:"$"}}];return w.forEach(function(S,A){if(!(S=="$"&&A===0))if(typeof S=="string"&&S.match("^"+u.identifier+"$"))k.push({operation:"member",scope:"child",expression:{value:S,type:"identifier"}});else{var v=typeof S=="number"?"numeric_literal":"string_literal";k.push({operation:"subscript",scope:"child",expression:{value:S,type:v}})}}),k}else if(Array.isArray(w)&&typeof w[0]=="object")return w;throw new Error("couldn't understand path "+w)};function g(w){return Object.prototype.toString.call(w)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var g=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(d>0?0:g-1)),f=a(f===0?0:f||(d>0?g:-1)),l=d>0?Math.max(0,l):Math.min(g,l),f=d>0?Math.min(f,g):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],w=l;w!=f&&!(d<0&&w<=f||d>0&&w>=f);w+=d)p.push(u[w]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=k;f.AssertionError=function(I){this.name="AssertionError",this.actual=I.actual,this.expected=I.expected,this.operator=I.operator,I.message?(this.message=I.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var O=I.stackStartFunction||w;if(Error.captureStackTrace)Error.captureStackTrace(this,O);else{var D=new Error;if(D.stack){var W=D.stack,Q=O.name,ce=W.indexOf(`
229
229
  `+Q);if(ce>=0){var fe=W.indexOf(`
230
- `,ce+1);W=W.substring(fe+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function d(x,I){return a.isUndefined(I)?""+I:a.isNumber(I)&&!isFinite(I)||a.isFunction(I)||a.isRegExp(I)?I.toString():I}function g(x,I){return a.isString(x)?x.length<I?x:x.slice(0,I):x}function p(x){return g(JSON.stringify(x.actual,d),128)+" "+x.operator+" "+g(JSON.stringify(x.expected,d),128)}function w(x,I,O,D,W){throw new f.AssertionError({message:O,actual:x,expected:I,operator:D,stackStartFunction:W})}f.fail=w;function k(x,I){x||w(x,!0,I,"==",f.ok)}f.ok=k,f.equal=function(I,O,D){I!=O&&w(I,O,D,"==",f.equal)},f.notEqual=function(I,O,D){I==O&&w(I,O,D,"!=",f.notEqual)},f.deepEqual=function(I,O,D){S(I,O)||w(I,O,D,"deepEqual",f.deepEqual)};function S(x,I){if(x===I)return!0;if(a.isBuffer(x)&&a.isBuffer(I)){if(x.length!=I.length)return!1;for(var O=0;O<x.length;O++)if(x[O]!==I[O])return!1;return!0}else return a.isDate(x)&&a.isDate(I)?x.getTime()===I.getTime():a.isRegExp(x)&&a.isRegExp(I)?x.source===I.source&&x.global===I.global&&x.multiline===I.multiline&&x.lastIndex===I.lastIndex&&x.ignoreCase===I.ignoreCase:!a.isObject(x)&&!a.isObject(I)?x==I:v(x,I)}function A(x){return Object.prototype.toString.call(x)=="[object Arguments]"}function v(x,I){if(a.isNullOrUndefined(x)||a.isNullOrUndefined(I)||x.prototype!==I.prototype)return!1;if(a.isPrimitive(x)||a.isPrimitive(I))return x===I;var O=A(x),D=A(I);if(O&&!D||!O&&D)return!1;if(O)return x=u.call(x),I=u.call(I),S(x,I);var W=C(x),Q=C(I),ce,fe;if(W.length!=Q.length)return!1;for(W.sort(),Q.sort(),fe=W.length-1;fe>=0;fe--)if(W[fe]!=Q[fe])return!1;for(fe=W.length-1;fe>=0;fe--)if(ce=W[fe],!S(x[ce],I[ce]))return!1;return!0}f.notDeepEqual=function(I,O,D){S(I,O)&&w(I,O,D,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(I,O,D){I!==O&&w(I,O,D,"===",f.strictEqual)},f.notStrictEqual=function(I,O,D){I===O&&w(I,O,D,"!==",f.notStrictEqual)};function R(x,I){return!x||!I?!1:Object.prototype.toString.call(I)=="[object RegExp]"?I.test(x):x instanceof I?!0:I.call({},x)===!0}function L(x,I,O,D){var W;a.isString(O)&&(D=O,O=null);try{I()}catch(Q){W=Q}if(D=(O&&O.name?" ("+O.name+").":".")+(D?" "+D:"."),x&&!W&&w(W,O,"Missing expected exception"+D),!x&&R(W,O)&&w(W,O,"Got unwanted exception"+D),x&&W&&O&&!R(W,O)||!x&&W)throw W}f.throws=function(x,I,O){L.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(x,I){L.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(x){if(x)throw x};var C=Object.keys||function(x){var I=[];for(var O in x)l.call(x,O)&&I.push(O);return I}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(J){if(!Q(J)){for(var X=[],oe=0;oe<arguments.length;oe++)X.push(g(arguments[oe]));return X.join(" ")}for(var oe=1,Ce=arguments,We=Ce.length,xe=String(J).replace(l,function($e){if($e==="%%")return"%";if(oe>=We)return $e;switch($e){case"%s":return String(Ce[oe++]);case"%d":return Number(Ce[oe++]);case"%j":try{return JSON.stringify(Ce[oe++])}catch{return"[Circular]"}default:return $e}}),Be=Ce[oe];oe<We;Be=Ce[++oe])O(Be)||!ye(Be)?xe+=" "+Be:xe+=" "+g(Be);return xe},o.deprecate=function(J,X){if(fe(u.process))return function(){return o.deprecate(J,X).apply(this,arguments)};if(a.noDeprecation===!0)return J;var oe=!1;function Ce(){if(!oe){if(a.throwDeprecation)throw new Error(X);a.traceDeprecation?console.trace(X):console.error(X),oe=!0}return J.apply(this,arguments)}return Ce};var f={},d;o.debuglog=function(J){if(fe(d)&&(d=a.env.NODE_DEBUG||""),J=J.toUpperCase(),!f[J])if(new RegExp("\\b"+J+"\\b","i").test(d)){var X=a.pid;f[J]=function(){var oe=o.format.apply(o,arguments);console.error("%s %d: %s",J,X,oe)}}else f[J]=function(){};return f[J]};function g(J,X){var oe={seen:[],stylize:w};return arguments.length>=3&&(oe.depth=arguments[2]),arguments.length>=4&&(oe.colors=arguments[3]),I(X)?oe.showHidden=X:X&&o._extend(oe,X),fe(oe.showHidden)&&(oe.showHidden=!1),fe(oe.depth)&&(oe.depth=2),fe(oe.colors)&&(oe.colors=!1),fe(oe.customInspect)&&(oe.customInspect=!0),oe.colors&&(oe.stylize=p),S(oe,J,oe.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(J,X){var oe=g.styles[X];return oe?"\x1B["+g.colors[oe][0]+"m"+J+"\x1B["+g.colors[oe][1]+"m":J}function w(J,X){return J}function k(J){var X={};return J.forEach(function(oe,Ce){X[oe]=!0}),X}function S(J,X,oe){if(J.customInspect&&X&&Pe(X.inspect)&&X.inspect!==o.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Ce=X.inspect(oe,J);return Q(Ce)||(Ce=S(J,Ce,oe)),Ce}var We=A(J,X);if(We)return We;var xe=Object.keys(X),Be=k(xe);if(J.showHidden&&(xe=Object.getOwnPropertyNames(X)),he(X)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return v(X);if(xe.length===0){if(Pe(X)){var $e=X.name?": "+X.name:"";return J.stylize("[Function"+$e+"]","special")}if(ge(X))return J.stylize(RegExp.prototype.toString.call(X),"regexp");if(pe(X))return J.stylize(Date.prototype.toString.call(X),"date");if(he(X))return v(X)}var Ne="",Tt=!1,on=["{","}"];if(x(X)&&(Tt=!0,on=["[","]"]),Pe(X)){var Lt=X.name?": "+X.name:"";Ne=" [Function"+Lt+"]"}if(ge(X)&&(Ne=" "+RegExp.prototype.toString.call(X)),pe(X)&&(Ne=" "+Date.prototype.toUTCString.call(X)),he(X)&&(Ne=" "+v(X)),xe.length===0&&(!Tt||X.length==0))return on[0]+Ne+on[1];if(oe<0)return ge(X)?J.stylize(RegExp.prototype.toString.call(X),"regexp"):J.stylize("[Object]","special");J.seen.push(X);var jt;return Tt?jt=R(J,X,oe,Be,xe):jt=xe.map(function(Se){return L(J,X,oe,Be,Se,Tt)}),J.seen.pop(),C(jt,Ne,on)}function A(J,X){if(fe(X))return J.stylize("undefined","undefined");if(Q(X)){var oe="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(oe,"string")}if(W(X))return J.stylize(""+X,"number");if(I(X))return J.stylize(""+X,"boolean");if(O(X))return J.stylize("null","null")}function v(J){return"["+Error.prototype.toString.call(J)+"]"}function R(J,X,oe,Ce,We){for(var xe=[],Be=0,$e=X.length;Be<$e;++Be)nt(X,String(Be))?xe.push(L(J,X,oe,Ce,String(Be),!0)):xe.push("");return We.forEach(function(Ne){Ne.match(/^\d+$/)||xe.push(L(J,X,oe,Ce,Ne,!0))}),xe}function L(J,X,oe,Ce,We,xe){var Be,$e,Ne;if(Ne=Object.getOwnPropertyDescriptor(X,We)||{value:X[We]},Ne.get?Ne.set?$e=J.stylize("[Getter/Setter]","special"):$e=J.stylize("[Getter]","special"):Ne.set&&($e=J.stylize("[Setter]","special")),nt(Ce,We)||(Be="["+We+"]"),$e||(J.seen.indexOf(Ne.value)<0?(O(oe)?$e=S(J,Ne.value,null):$e=S(J,Ne.value,oe-1),$e.indexOf(`
230
+ `,ce+1);W=W.substring(fe+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function d(x,I){return a.isUndefined(I)?""+I:a.isNumber(I)&&!isFinite(I)||a.isFunction(I)||a.isRegExp(I)?I.toString():I}function g(x,I){return a.isString(x)?x.length<I?x:x.slice(0,I):x}function p(x){return g(JSON.stringify(x.actual,d),128)+" "+x.operator+" "+g(JSON.stringify(x.expected,d),128)}function w(x,I,O,D,W){throw new f.AssertionError({message:O,actual:x,expected:I,operator:D,stackStartFunction:W})}f.fail=w;function k(x,I){x||w(x,!0,I,"==",f.ok)}f.ok=k,f.equal=function(I,O,D){I!=O&&w(I,O,D,"==",f.equal)},f.notEqual=function(I,O,D){I==O&&w(I,O,D,"!=",f.notEqual)},f.deepEqual=function(I,O,D){S(I,O)||w(I,O,D,"deepEqual",f.deepEqual)};function S(x,I){if(x===I)return!0;if(a.isBuffer(x)&&a.isBuffer(I)){if(x.length!=I.length)return!1;for(var O=0;O<x.length;O++)if(x[O]!==I[O])return!1;return!0}else return a.isDate(x)&&a.isDate(I)?x.getTime()===I.getTime():a.isRegExp(x)&&a.isRegExp(I)?x.source===I.source&&x.global===I.global&&x.multiline===I.multiline&&x.lastIndex===I.lastIndex&&x.ignoreCase===I.ignoreCase:!a.isObject(x)&&!a.isObject(I)?x==I:v(x,I)}function A(x){return Object.prototype.toString.call(x)=="[object Arguments]"}function v(x,I){if(a.isNullOrUndefined(x)||a.isNullOrUndefined(I)||x.prototype!==I.prototype)return!1;if(a.isPrimitive(x)||a.isPrimitive(I))return x===I;var O=A(x),D=A(I);if(O&&!D||!O&&D)return!1;if(O)return x=u.call(x),I=u.call(I),S(x,I);var W=C(x),Q=C(I),ce,fe;if(W.length!=Q.length)return!1;for(W.sort(),Q.sort(),fe=W.length-1;fe>=0;fe--)if(W[fe]!=Q[fe])return!1;for(fe=W.length-1;fe>=0;fe--)if(ce=W[fe],!S(x[ce],I[ce]))return!1;return!0}f.notDeepEqual=function(I,O,D){S(I,O)&&w(I,O,D,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(I,O,D){I!==O&&w(I,O,D,"===",f.strictEqual)},f.notStrictEqual=function(I,O,D){I===O&&w(I,O,D,"!==",f.notStrictEqual)};function R(x,I){return!x||!I?!1:Object.prototype.toString.call(I)=="[object RegExp]"?I.test(x):x instanceof I?!0:I.call({},x)===!0}function N(x,I,O,D){var W;a.isString(O)&&(D=O,O=null);try{I()}catch(Q){W=Q}if(D=(O&&O.name?" ("+O.name+").":".")+(D?" "+D:"."),x&&!W&&w(W,O,"Missing expected exception"+D),!x&&R(W,O)&&w(W,O,"Got unwanted exception"+D),x&&W&&O&&!R(W,O)||!x&&W)throw W}f.throws=function(x,I,O){N.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(x,I){N.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(x){if(x)throw x};var C=Object.keys||function(x){var I=[];for(var O in x)l.call(x,O)&&I.push(O);return I}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(J){if(!Q(J)){for(var X=[],oe=0;oe<arguments.length;oe++)X.push(g(arguments[oe]));return X.join(" ")}for(var oe=1,Ce=arguments,We=Ce.length,xe=String(J).replace(l,function($e){if($e==="%%")return"%";if(oe>=We)return $e;switch($e){case"%s":return String(Ce[oe++]);case"%d":return Number(Ce[oe++]);case"%j":try{return JSON.stringify(Ce[oe++])}catch{return"[Circular]"}default:return $e}}),Be=Ce[oe];oe<We;Be=Ce[++oe])O(Be)||!ye(Be)?xe+=" "+Be:xe+=" "+g(Be);return xe},o.deprecate=function(J,X){if(fe(u.process))return function(){return o.deprecate(J,X).apply(this,arguments)};if(a.noDeprecation===!0)return J;var oe=!1;function Ce(){if(!oe){if(a.throwDeprecation)throw new Error(X);a.traceDeprecation?console.trace(X):console.error(X),oe=!0}return J.apply(this,arguments)}return Ce};var f={},d;o.debuglog=function(J){if(fe(d)&&(d=a.env.NODE_DEBUG||""),J=J.toUpperCase(),!f[J])if(new RegExp("\\b"+J+"\\b","i").test(d)){var X=a.pid;f[J]=function(){var oe=o.format.apply(o,arguments);console.error("%s %d: %s",J,X,oe)}}else f[J]=function(){};return f[J]};function g(J,X){var oe={seen:[],stylize:w};return arguments.length>=3&&(oe.depth=arguments[2]),arguments.length>=4&&(oe.colors=arguments[3]),I(X)?oe.showHidden=X:X&&o._extend(oe,X),fe(oe.showHidden)&&(oe.showHidden=!1),fe(oe.depth)&&(oe.depth=2),fe(oe.colors)&&(oe.colors=!1),fe(oe.customInspect)&&(oe.customInspect=!0),oe.colors&&(oe.stylize=p),S(oe,J,oe.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(J,X){var oe=g.styles[X];return oe?"\x1B["+g.colors[oe][0]+"m"+J+"\x1B["+g.colors[oe][1]+"m":J}function w(J,X){return J}function k(J){var X={};return J.forEach(function(oe,Ce){X[oe]=!0}),X}function S(J,X,oe){if(J.customInspect&&X&&Pe(X.inspect)&&X.inspect!==o.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Ce=X.inspect(oe,J);return Q(Ce)||(Ce=S(J,Ce,oe)),Ce}var We=A(J,X);if(We)return We;var xe=Object.keys(X),Be=k(xe);if(J.showHidden&&(xe=Object.getOwnPropertyNames(X)),he(X)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return v(X);if(xe.length===0){if(Pe(X)){var $e=X.name?": "+X.name:"";return J.stylize("[Function"+$e+"]","special")}if(ge(X))return J.stylize(RegExp.prototype.toString.call(X),"regexp");if(pe(X))return J.stylize(Date.prototype.toString.call(X),"date");if(he(X))return v(X)}var Le="",Tt=!1,on=["{","}"];if(x(X)&&(Tt=!0,on=["[","]"]),Pe(X)){var Nt=X.name?": "+X.name:"";Le=" [Function"+Nt+"]"}if(ge(X)&&(Le=" "+RegExp.prototype.toString.call(X)),pe(X)&&(Le=" "+Date.prototype.toUTCString.call(X)),he(X)&&(Le=" "+v(X)),xe.length===0&&(!Tt||X.length==0))return on[0]+Le+on[1];if(oe<0)return ge(X)?J.stylize(RegExp.prototype.toString.call(X),"regexp"):J.stylize("[Object]","special");J.seen.push(X);var jt;return Tt?jt=R(J,X,oe,Be,xe):jt=xe.map(function(Se){return N(J,X,oe,Be,Se,Tt)}),J.seen.pop(),C(jt,Le,on)}function A(J,X){if(fe(X))return J.stylize("undefined","undefined");if(Q(X)){var oe="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(oe,"string")}if(W(X))return J.stylize(""+X,"number");if(I(X))return J.stylize(""+X,"boolean");if(O(X))return J.stylize("null","null")}function v(J){return"["+Error.prototype.toString.call(J)+"]"}function R(J,X,oe,Ce,We){for(var xe=[],Be=0,$e=X.length;Be<$e;++Be)nt(X,String(Be))?xe.push(N(J,X,oe,Ce,String(Be),!0)):xe.push("");return We.forEach(function(Le){Le.match(/^\d+$/)||xe.push(N(J,X,oe,Ce,Le,!0))}),xe}function N(J,X,oe,Ce,We,xe){var Be,$e,Le;if(Le=Object.getOwnPropertyDescriptor(X,We)||{value:X[We]},Le.get?Le.set?$e=J.stylize("[Getter/Setter]","special"):$e=J.stylize("[Getter]","special"):Le.set&&($e=J.stylize("[Setter]","special")),nt(Ce,We)||(Be="["+We+"]"),$e||(J.seen.indexOf(Le.value)<0?(O(oe)?$e=S(J,Le.value,null):$e=S(J,Le.value,oe-1),$e.indexOf(`
231
231
  `)>-1&&(xe?$e=$e.split(`
232
232
  `).map(function(Tt){return" "+Tt}).join(`
233
233
  `).substr(2):$e=`
@@ -236,7 +236,7 @@ Expecting `+qe.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Ee="Parse erro
236
236
  `))):$e=J.stylize("[Circular]","special")),fe(Be)){if(xe&&We.match(/^\d+$/))return $e;Be=JSON.stringify(""+We),Be.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Be=Be.substr(1,Be.length-2),Be=J.stylize(Be,"name")):(Be=Be.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Be=J.stylize(Be,"string"))}return Be+": "+$e}function C(J,X,oe){var Ce=J.reduce(function(We,xe){return xe.indexOf(`
237
237
  `)>=0,We+xe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ce>60?oe[0]+(X===""?"":X+`
238
238
  `)+" "+J.join(`,
239
- `)+" "+oe[1]:oe[0]+X+" "+J.join(", ")+" "+oe[1]}function x(J){return Array.isArray(J)}o.isArray=x;function I(J){return typeof J=="boolean"}o.isBoolean=I;function O(J){return J===null}o.isNull=O;function D(J){return J==null}o.isNullOrUndefined=D;function W(J){return typeof J=="number"}o.isNumber=W;function Q(J){return typeof J=="string"}o.isString=Q;function ce(J){return typeof J=="symbol"}o.isSymbol=ce;function fe(J){return J===void 0}o.isUndefined=fe;function ge(J){return ye(J)&&_e(J)==="[object RegExp]"}o.isRegExp=ge;function ye(J){return typeof J=="object"&&J!==null}o.isObject=ye;function pe(J){return ye(J)&&_e(J)==="[object Date]"}o.isDate=pe;function he(J){return ye(J)&&(_e(J)==="[object Error]"||J instanceof Error)}o.isError=he;function Pe(J){return typeof J=="function"}o.isFunction=Pe;function Fe(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}o.isPrimitive=Fe,o.isBuffer=n("./support/isBuffer");function _e(J){return Object.prototype.toString.call(J)}function qe(J){return J<10?"0"+J.toString(10):J.toString(10)}var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var J=new Date,X=[qe(J.getHours()),qe(J.getMinutes()),qe(J.getSeconds())].join(":");return[J.getDate(),Ee[J.getMonth()],X].join(" ")}o.log=function(){console.log("%s - %s",we(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(J,X){if(!X||!ye(X))return J;for(var oe=Object.keys(X),Ce=oe.length;Ce--;)J[oe[Ce]]=X[oe[Ce]];return J};function nt(J,X){return Object.prototype.hasOwnProperty.call(J,X)}}).call(this,n("_process"),typeof Zn<"u"?Zn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var w=0,k=g.length-1;k>=0;k--){var S=g[k];S==="."?g.splice(k,1):S===".."?(g.splice(k,1),w++):w&&(g.splice(k,1),w--)}if(p)for(;w--;w)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,w=arguments.length-1;w>=-1&&!p;w--){var k=w>=0?arguments[w]:a.cwd();if(typeof k!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!k)continue;g=k+"/"+g,p=k.charAt(0)==="/"}return g=u(f(g.split("/"),function(S){return!!S}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),w=d(g,-1)==="/";return g=u(f(g.split("/"),function(k){return!!k}),!p).join("/"),!g&&!p&&(g="."),g&&w&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,w){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function w(C){for(var x=0;x<C.length&&C[x]==="";x++);for(var I=C.length-1;I>=0&&C[I]==="";I--);return x>I?[]:C.slice(x,I-x+1)}for(var k=w(g.split("/")),S=w(p.split("/")),A=Math.min(k.length,S.length),v=A,R=0;R<A;R++)if(k[R]!==S[R]){v=R;break}for(var L=[],R=v;R<k.length;R++)L.push("..");return L=L.concat(S.slice(v)),L.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),w=p===47,k=-1,S=!0,A=g.length-1;A>=1;--A)if(p=g.charCodeAt(A),p===47){if(!S){k=A;break}}else S=!1;return k===-1?w?"/":".":w&&k===1?"/":g.slice(0,k)};function l(g){typeof g!="string"&&(g=g+"");var p=0,w=-1,k=!0,S;for(S=g.length-1;S>=0;--S)if(g.charCodeAt(S)===47){if(!k){p=S+1;break}}else w===-1&&(k=!1,w=S+1);return w===-1?"":g.slice(p,w)}o.basename=function(g,p){var w=l(g);return p&&w.substr(-1*p.length)===p&&(w=w.substr(0,w.length-p.length)),w},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,w=0,k=-1,S=!0,A=0,v=g.length-1;v>=0;--v){var R=g.charCodeAt(v);if(R===47){if(!S){w=v+1;break}continue}k===-1&&(S=!1,k=v+1),R===46?p===-1?p=v:A!==1&&(A=1):p!==-1&&(A=-1)}return p===-1||k===-1||A===0||A===1&&p===k-1&&p===w+1?"":g.slice(p,k)};function f(g,p){if(g.filter)return g.filter(p);for(var w=[],k=0;k<g.length;k++)p(g[k],k,g)&&w.push(g[k]);return w}var d="ab".substr(-1)==="b"?function(g,p,w){return g.substr(p,w)}:function(g,p,w){return p<0&&(p=g.length+p),g.substr(p,w)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function g(x){if(u===setTimeout)return setTimeout(x,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(x,0);try{return u(x,0)}catch{try{return u.call(null,x,0)}catch{return u.call(this,x,0)}}}function p(x){if(l===clearTimeout)return clearTimeout(x);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(x);try{return l(x)}catch{try{return l.call(null,x)}catch{return l.call(this,x)}}}var w=[],k=!1,S,A=-1;function v(){!k||!S||(k=!1,S.length?w=S.concat(w):A=-1,w.length&&R())}function R(){if(!k){var x=g(v);k=!0;for(var I=w.length;I;){for(S=w,w=[];++A<I;)S&&S[A].run();A=-1,I=w.length}S=null,k=!1,p(x)}}a.nextTick=function(x){var I=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)I[O-1]=arguments[O];w.push(new L(x,I)),w.length===1&&!k&&g(R)};function L(x,I){this.fun=x,this.array=I}L.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function C(){}a.on=C,a.addListener=C,a.once=C,a.off=C,a.removeListener=C,a.removeAllListeners=C,a.emit=C,a.prependListener=C,a.prependOnceListener=C,a.listeners=function(x){return[]},a.binding=function(x){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(x){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function g(p,w){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var k=g(p.argument);return p.operator==="+"?+k:p.operator==="-"?-k:p.operator==="~"?~k:p.operator==="!"?!k:f}else if(p.type==="ArrayExpression"){for(var S=[],A=0,v=p.elements.length;A<v;A++){var R=g(p.elements[A]);if(R===f)return f;S.push(R)}return S}else if(p.type==="ObjectExpression"){for(var L={},A=0;A<p.properties.length;A++){var C=p.properties[A],x=C.value===null?C.value:g(C.value);if(x===f)return f;L[C.key.value||C.key.name]=x}return L}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var v=g(p.left);if(v===f)return f;var I=g(p.right);if(I===f)return f;var O=p.operator;return O==="=="?v==I:O==="==="?v===I:O==="!="?v!=I:O==="!=="?v!==I:O==="+"?v+I:O==="-"?v-I:O==="*"?v*I:O==="/"?v/I:O==="%"?v%I:O==="<"?v<I:O==="<="?v<=I:O===">"?v>I:O===">="?v>=I:O==="|"?v|I:O==="&"?v&I:O==="^"?v^I:O==="&&"?v&&I:O==="||"?v||I:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var D=g(p.callee);if(D===f||typeof D!="function")return f;var W=p.callee.object?g(p.callee.object):f;W===f&&(W=null);for(var Q=[],A=0,v=p.arguments.length;A<v;A++){var R=g(p.arguments[A]);if(R===f)return f;Q.push(R)}return D.apply(W,Q)}else if(p.type==="MemberExpression"){var L=g(p.object);if(L===f||typeof L=="function")return f;if(p.property.type==="Identifier")return L[p.property.name];var C=g(p.property);return C===f?f:L[C]}else if(p.type==="ConditionalExpression"){var k=g(p.test);return k===f?f:g(k?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var k=g(p.expression);return k===f?f:k}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var ce=p.body.body,fe={};Object.keys(l).forEach(function(Ee){fe[Ee]=l[Ee]});for(var A=0;A<p.params.length;A++){var ge=p.params[A];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var A in ce)if(g(ce[A])===f)return f;l=fe;var ye=Object.keys(l),pe=ye.map(function(Ee){return l[Ee]});return Function(ye.join(", "),"return "+a(p)).apply(null,pe)}else if(p.type==="TemplateLiteral"){for(var he="",A=0;A<p.expressions.length;A++)he+=g(p.quasis[A]),he+=g(p.expressions[A]);return he+=g(p.quasis[A]),he}else if(p.type==="TaggedTemplateExpression"){var Pe=g(p.tag),Fe=p.quasi,_e=Fe.quasis.map(g),qe=Fe.expressions.map(g);return Pe.apply(null,[_e].concat(qe))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(jh);var tb=jh.exports;const nb=vu(tb),un=[];for(let e=0;e<256;++e)un.push((e+256).toString(16).slice(1));function rb(e,t=0){return(un[e[t+0]]+un[e[t+1]]+un[e[t+2]]+un[e[t+3]]+"-"+un[e[t+4]]+un[e[t+5]]+"-"+un[e[t+6]]+un[e[t+7]]+"-"+un[e[t+8]]+un[e[t+9]]+"-"+un[e[t+10]]+un[e[t+11]]+un[e[t+12]]+un[e[t+13]]+un[e[t+14]]+un[e[t+15]]).toLowerCase()}let ec;const ib=new Uint8Array(16);function sb(){if(!ec){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ec=crypto.getRandomValues.bind(crypto)}return ec(ib)}const $h={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mh(e,t,n){if($h.randomUUID&&!e)return $h.randomUUID();e=e||{};const i=e.random||(e.rng||sb)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,rb(i)}const Uh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let d="";f.includes("[")&&(d=Mh(),o.push({dataIndex:d,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:d||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:JSON.stringify(l),...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:d,jsonPath:g})=>{const p=nb.query(l,`$${g}`);f[d]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:JSON.stringify(l),...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},ob=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:w})=>{if(!i&&!a)return null;const{dataSource:k,columns:S}=Uh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return F.jsx(Lh,{theme:e,baseprefix:t,dataSource:k,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:w})};var ab="Expected a function",Vh=NaN,ub="[object Symbol]",cb=/^\s+|\s+$/g,lb=/^[-+]0x[0-9a-f]+$/i,fb=/^0b[01]+$/i,hb=/^0o[0-7]+$/i,db=parseInt,pb=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,gb=typeof self=="object"&&self&&self.Object===Object&&self,yb=pb||gb||Function("return this")(),mb=Object.prototype,bb=mb.toString,vb=Math.max,wb=Math.min,tc=function(){return yb.Date.now()};function Sb(e,t,n){var i,o,a,u,l,f,d=0,g=!1,p=!1,w=!0;if(typeof e!="function")throw new TypeError(ab);t=qh(t)||0,nc(n)&&(g=!!n.leading,p="maxWait"in n,a=p?vb(qh(n.maxWait)||0,t):a,w="trailing"in n?!!n.trailing:w);function k(O){var D=i,W=o;return i=o=void 0,d=O,u=e.apply(W,D),u}function S(O){return d=O,l=setTimeout(R,t),g?k(O):u}function A(O){var D=O-f,W=O-d,Q=t-D;return p?wb(Q,a-W):Q}function v(O){var D=O-f,W=O-d;return f===void 0||D>=t||D<0||p&&W>=a}function R(){var O=tc();if(v(O))return L(O);l=setTimeout(R,A(O))}function L(O){return l=void 0,w&&i?k(O):(i=o=void 0,u)}function C(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function x(){return l===void 0?u:L(tc())}function I(){var O=tc(),D=v(O);if(i=arguments,o=this,f=O,D){if(l===void 0)return S(f);if(p)return l=setTimeout(R,t),k(f)}return l===void 0&&(l=setTimeout(R,t)),u}return I.cancel=C,I.flush=x,I}function nc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ab(e){return!!e&&typeof e=="object"}function Eb(e){return typeof e=="symbol"||Ab(e)&&bb.call(e)==ub}function qh(e){if(typeof e=="number")return e;if(Eb(e))return Vh;if(nc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(cb,"");var n=fb.test(e);return n||hb.test(e)?db(e.slice(2),n?2:8):lb.test(e)?Vh:+e}var xb=Sb;const Wh=vu(xb);function Cb(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function _b(e,t=500,n){const i=Z.useRef();Cb(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=Wh(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Z.useEffect(()=>{i.current=Wh(e,t,n)},[e,t,n]),o}const Kh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return it.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Mr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>wn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Kh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),rc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),Ps=(e,t,n=[])=>{const i=(a,u)=>a.length!==u.length?!1:a.every((l,f)=>l===u[f]),o=a=>t.some(u=>i(a,Array.isArray(u)?u:[u]));return typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(a=>{const u=[...n,a];if(typeof e[a]=="object"&&!Array.isArray(e[a])&&e[a]!==null)Ps(e[a],t,u),Object.keys(e[a]).length===0&&!o(u)&&delete e[a];else{const l=(typeof e[a]=="string"||Array.isArray(e[a]))&&e[a].length===0,f=e[a]===void 0;(l||f)&&!o(u)&&delete e[a]}}),e},Ki=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeNameBecauseOfSuddenBug"&&(e.nodeName=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Ki(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Ki(t))),e),Zo=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeName"&&(e.nodeNameBecauseOfSuddenBug=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Zo(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Zo(t))),e);function Rs(e,t){const n=10**t;return Math.floor(e*n)/n}const kb=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Rs(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Rs(n,1)},ic=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Rs(t,1)}return 0},sc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Rs(t,1)}return 0},Ns=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=Ns(u,t,n,l);o=o.concat(f)}}return o},ea=(e,t)=>{const n=bt.cloneDeep(e),i=Ns(t,"type","rangeInputCpu");return Ns(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,`${parseFloat(l)}`)}),n},oc=(e,t)=>{const n=bt.cloneDeep(e),i=Ns(t,"type","rangeInputCpu");return Ns(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,sc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,ic(l))}),n},ac=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...ac(o,a)]:[a]}),Hh=e=>e.map((t,n)=>e.slice(0,n+1)),Tb=Qe.div`
239
+ `)+" "+oe[1]:oe[0]+X+" "+J.join(", ")+" "+oe[1]}function x(J){return Array.isArray(J)}o.isArray=x;function I(J){return typeof J=="boolean"}o.isBoolean=I;function O(J){return J===null}o.isNull=O;function D(J){return J==null}o.isNullOrUndefined=D;function W(J){return typeof J=="number"}o.isNumber=W;function Q(J){return typeof J=="string"}o.isString=Q;function ce(J){return typeof J=="symbol"}o.isSymbol=ce;function fe(J){return J===void 0}o.isUndefined=fe;function ge(J){return ye(J)&&_e(J)==="[object RegExp]"}o.isRegExp=ge;function ye(J){return typeof J=="object"&&J!==null}o.isObject=ye;function pe(J){return ye(J)&&_e(J)==="[object Date]"}o.isDate=pe;function he(J){return ye(J)&&(_e(J)==="[object Error]"||J instanceof Error)}o.isError=he;function Pe(J){return typeof J=="function"}o.isFunction=Pe;function Fe(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}o.isPrimitive=Fe,o.isBuffer=n("./support/isBuffer");function _e(J){return Object.prototype.toString.call(J)}function qe(J){return J<10?"0"+J.toString(10):J.toString(10)}var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var J=new Date,X=[qe(J.getHours()),qe(J.getMinutes()),qe(J.getSeconds())].join(":");return[J.getDate(),Ee[J.getMonth()],X].join(" ")}o.log=function(){console.log("%s - %s",we(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(J,X){if(!X||!ye(X))return J;for(var oe=Object.keys(X),Ce=oe.length;Ce--;)J[oe[Ce]]=X[oe[Ce]];return J};function nt(J,X){return Object.prototype.hasOwnProperty.call(J,X)}}).call(this,n("_process"),typeof Zn<"u"?Zn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var w=0,k=g.length-1;k>=0;k--){var S=g[k];S==="."?g.splice(k,1):S===".."?(g.splice(k,1),w++):w&&(g.splice(k,1),w--)}if(p)for(;w--;w)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,w=arguments.length-1;w>=-1&&!p;w--){var k=w>=0?arguments[w]:a.cwd();if(typeof k!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!k)continue;g=k+"/"+g,p=k.charAt(0)==="/"}return g=u(f(g.split("/"),function(S){return!!S}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),w=d(g,-1)==="/";return g=u(f(g.split("/"),function(k){return!!k}),!p).join("/"),!g&&!p&&(g="."),g&&w&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,w){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function w(C){for(var x=0;x<C.length&&C[x]==="";x++);for(var I=C.length-1;I>=0&&C[I]==="";I--);return x>I?[]:C.slice(x,I-x+1)}for(var k=w(g.split("/")),S=w(p.split("/")),A=Math.min(k.length,S.length),v=A,R=0;R<A;R++)if(k[R]!==S[R]){v=R;break}for(var N=[],R=v;R<k.length;R++)N.push("..");return N=N.concat(S.slice(v)),N.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),w=p===47,k=-1,S=!0,A=g.length-1;A>=1;--A)if(p=g.charCodeAt(A),p===47){if(!S){k=A;break}}else S=!1;return k===-1?w?"/":".":w&&k===1?"/":g.slice(0,k)};function l(g){typeof g!="string"&&(g=g+"");var p=0,w=-1,k=!0,S;for(S=g.length-1;S>=0;--S)if(g.charCodeAt(S)===47){if(!k){p=S+1;break}}else w===-1&&(k=!1,w=S+1);return w===-1?"":g.slice(p,w)}o.basename=function(g,p){var w=l(g);return p&&w.substr(-1*p.length)===p&&(w=w.substr(0,w.length-p.length)),w},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,w=0,k=-1,S=!0,A=0,v=g.length-1;v>=0;--v){var R=g.charCodeAt(v);if(R===47){if(!S){w=v+1;break}continue}k===-1&&(S=!1,k=v+1),R===46?p===-1?p=v:A!==1&&(A=1):p!==-1&&(A=-1)}return p===-1||k===-1||A===0||A===1&&p===k-1&&p===w+1?"":g.slice(p,k)};function f(g,p){if(g.filter)return g.filter(p);for(var w=[],k=0;k<g.length;k++)p(g[k],k,g)&&w.push(g[k]);return w}var d="ab".substr(-1)==="b"?function(g,p,w){return g.substr(p,w)}:function(g,p,w){return p<0&&(p=g.length+p),g.substr(p,w)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function g(x){if(u===setTimeout)return setTimeout(x,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(x,0);try{return u(x,0)}catch{try{return u.call(null,x,0)}catch{return u.call(this,x,0)}}}function p(x){if(l===clearTimeout)return clearTimeout(x);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(x);try{return l(x)}catch{try{return l.call(null,x)}catch{return l.call(this,x)}}}var w=[],k=!1,S,A=-1;function v(){!k||!S||(k=!1,S.length?w=S.concat(w):A=-1,w.length&&R())}function R(){if(!k){var x=g(v);k=!0;for(var I=w.length;I;){for(S=w,w=[];++A<I;)S&&S[A].run();A=-1,I=w.length}S=null,k=!1,p(x)}}a.nextTick=function(x){var I=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)I[O-1]=arguments[O];w.push(new N(x,I)),w.length===1&&!k&&g(R)};function N(x,I){this.fun=x,this.array=I}N.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function C(){}a.on=C,a.addListener=C,a.once=C,a.off=C,a.removeListener=C,a.removeAllListeners=C,a.emit=C,a.prependListener=C,a.prependOnceListener=C,a.listeners=function(x){return[]},a.binding=function(x){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(x){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function g(p,w){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var k=g(p.argument);return p.operator==="+"?+k:p.operator==="-"?-k:p.operator==="~"?~k:p.operator==="!"?!k:f}else if(p.type==="ArrayExpression"){for(var S=[],A=0,v=p.elements.length;A<v;A++){var R=g(p.elements[A]);if(R===f)return f;S.push(R)}return S}else if(p.type==="ObjectExpression"){for(var N={},A=0;A<p.properties.length;A++){var C=p.properties[A],x=C.value===null?C.value:g(C.value);if(x===f)return f;N[C.key.value||C.key.name]=x}return N}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var v=g(p.left);if(v===f)return f;var I=g(p.right);if(I===f)return f;var O=p.operator;return O==="=="?v==I:O==="==="?v===I:O==="!="?v!=I:O==="!=="?v!==I:O==="+"?v+I:O==="-"?v-I:O==="*"?v*I:O==="/"?v/I:O==="%"?v%I:O==="<"?v<I:O==="<="?v<=I:O===">"?v>I:O===">="?v>=I:O==="|"?v|I:O==="&"?v&I:O==="^"?v^I:O==="&&"?v&&I:O==="||"?v||I:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var D=g(p.callee);if(D===f||typeof D!="function")return f;var W=p.callee.object?g(p.callee.object):f;W===f&&(W=null);for(var Q=[],A=0,v=p.arguments.length;A<v;A++){var R=g(p.arguments[A]);if(R===f)return f;Q.push(R)}return D.apply(W,Q)}else if(p.type==="MemberExpression"){var N=g(p.object);if(N===f||typeof N=="function")return f;if(p.property.type==="Identifier")return N[p.property.name];var C=g(p.property);return C===f?f:N[C]}else if(p.type==="ConditionalExpression"){var k=g(p.test);return k===f?f:g(k?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var k=g(p.expression);return k===f?f:k}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var ce=p.body.body,fe={};Object.keys(l).forEach(function(Ee){fe[Ee]=l[Ee]});for(var A=0;A<p.params.length;A++){var ge=p.params[A];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var A in ce)if(g(ce[A])===f)return f;l=fe;var ye=Object.keys(l),pe=ye.map(function(Ee){return l[Ee]});return Function(ye.join(", "),"return "+a(p)).apply(null,pe)}else if(p.type==="TemplateLiteral"){for(var he="",A=0;A<p.expressions.length;A++)he+=g(p.quasis[A]),he+=g(p.expressions[A]);return he+=g(p.quasis[A]),he}else if(p.type==="TaggedTemplateExpression"){var Pe=g(p.tag),Fe=p.quasi,_e=Fe.quasis.map(g),qe=Fe.expressions.map(g);return Pe.apply(null,[_e].concat(qe))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(jh);var eb=jh.exports;const tb=vu(eb),$h=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let d="";f.includes("[")&&(d=JSON.stringify(f),o.push({dataIndex:d,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:d||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:d,jsonPath:g})=>{const p=tb.query(l,`$${g}`);f[d]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},nb=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:w})=>{if(!i&&!a)return null;const{dataSource:k,columns:S}=$h({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return F.jsx(Nh,{theme:e,baseprefix:t,dataSource:k,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:w})};var rb="Expected a function",Mh=NaN,ib="[object Symbol]",sb=/^\s+|\s+$/g,ob=/^[-+]0x[0-9a-f]+$/i,ab=/^0b[01]+$/i,ub=/^0o[0-7]+$/i,cb=parseInt,lb=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,fb=typeof self=="object"&&self&&self.Object===Object&&self,hb=lb||fb||Function("return this")(),db=Object.prototype,pb=db.toString,gb=Math.max,yb=Math.min,ec=function(){return hb.Date.now()};function mb(e,t,n){var i,o,a,u,l,f,d=0,g=!1,p=!1,w=!0;if(typeof e!="function")throw new TypeError(rb);t=Uh(t)||0,tc(n)&&(g=!!n.leading,p="maxWait"in n,a=p?gb(Uh(n.maxWait)||0,t):a,w="trailing"in n?!!n.trailing:w);function k(O){var D=i,W=o;return i=o=void 0,d=O,u=e.apply(W,D),u}function S(O){return d=O,l=setTimeout(R,t),g?k(O):u}function A(O){var D=O-f,W=O-d,Q=t-D;return p?yb(Q,a-W):Q}function v(O){var D=O-f,W=O-d;return f===void 0||D>=t||D<0||p&&W>=a}function R(){var O=ec();if(v(O))return N(O);l=setTimeout(R,A(O))}function N(O){return l=void 0,w&&i?k(O):(i=o=void 0,u)}function C(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function x(){return l===void 0?u:N(ec())}function I(){var O=ec(),D=v(O);if(i=arguments,o=this,f=O,D){if(l===void 0)return S(f);if(p)return l=setTimeout(R,t),k(f)}return l===void 0&&(l=setTimeout(R,t)),u}return I.cancel=C,I.flush=x,I}function tc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function bb(e){return!!e&&typeof e=="object"}function vb(e){return typeof e=="symbol"||bb(e)&&pb.call(e)==ib}function Uh(e){if(typeof e=="number")return e;if(vb(e))return Mh;if(tc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(sb,"");var n=ab.test(e);return n||ub.test(e)?cb(e.slice(2),n?2:8):ob.test(e)?Mh:+e}var wb=mb;const Vh=vu(wb);function Sb(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function Ab(e,t=500,n){const i=Z.useRef();Sb(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=Vh(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Z.useEffect(()=>{i.current=Vh(e,t,n)},[e,t,n]),o}const qh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return it.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Mr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>wn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await qh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),nc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),Ps=(e,t,n=[])=>{const i=(a,u)=>a.length!==u.length?!1:a.every((l,f)=>l===u[f]),o=a=>t.some(u=>i(a,Array.isArray(u)?u:[u]));return typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(a=>{const u=[...n,a];if(typeof e[a]=="object"&&!Array.isArray(e[a])&&e[a]!==null)Ps(e[a],t,u),Object.keys(e[a]).length===0&&!o(u)&&delete e[a];else{const l=(typeof e[a]=="string"||Array.isArray(e[a]))&&e[a].length===0,f=e[a]===void 0;(l||f)&&!o(u)&&delete e[a]}}),e},Ki=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeNameBecauseOfSuddenBug"&&(e.nodeName=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Ki(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Ki(t))),e),Zo=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeName"&&(e.nodeNameBecauseOfSuddenBug=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Zo(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Zo(t))),e);function Rs(e,t){const n=10**t;return Math.floor(e*n)/n}const Eb=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Rs(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Rs(n,1)},rc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Rs(t,1)}return 0},ic=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Rs(t,1)}return 0},Ls=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=Ls(u,t,n,l);o=o.concat(f)}}return o},ea=(e,t)=>{const n=bt.cloneDeep(e),i=Ls(t,"type","rangeInputCpu");return Ls(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,`${parseFloat(l)}`)}),n},sc=(e,t)=>{const n=bt.cloneDeep(e),i=Ls(t,"type","rangeInputCpu");return Ls(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,ic(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,rc(l))}),n},oc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...oc(o,a)]:[a]}),Wh=e=>e.map((t,n)=>e.slice(0,n+1)),xb=Qe.div`
240
240
  display: flex;
241
241
  flex-direction: column;
242
242
  gap: 8px;
@@ -244,26 +244,26 @@ Expecting `+qe.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Ee="Parse erro
244
244
  margin-bottom: 16px;
245
245
  border: 1px solid #434343;
246
246
  border-radius: 8px;
247
- `,Ob=Qe.div`
247
+ `,Cb=Qe.div`
248
248
  display: flex;
249
249
  align-items: center;
250
250
  justify-content: flex-start;
251
251
  cursor: pointer;
252
- `,Ib=Qe.div`
252
+ `,_b=Qe.div`
253
253
  display: ${({$isOpen:e})=>e?"block":"none"};
254
254
  padding: 4px;
255
- `,uc={Container:Tb,TitleBar:Ob,Content:Ib},zh=({title:e,formName:t,expandedControls:n,children:i})=>{const o=n.expandedKeys.some(u=>JSON.stringify(u)===JSON.stringify(t)),a=()=>{o?n.onExpandClose(t):n.onExpandOpen(t)};return F.jsxs(uc.Container,{children:[F.jsxs(uc.TitleBar,{onClick:()=>a(),children:[F.jsx("div",{children:o?F.jsx(qt.CaretDownOutlined,{size:14}):F.jsx(qt.CaretRightOutlined,{size:14})}),F.jsx("div",{children:e})]}),F.jsx(uc.Content,{$isOpen:o,children:i})]})},Mn=Qe.div`
255
+ `,ac={Container:xb,TitleBar:Cb,Content:_b},Kh=({title:e,formName:t,expandedControls:n,children:i})=>{const o=n.expandedKeys.some(u=>JSON.stringify(u)===JSON.stringify(t)),a=()=>{o?n.onExpandClose(t):n.onExpandOpen(t)};return F.jsxs(ac.Container,{children:[F.jsxs(ac.TitleBar,{onClick:()=>a(),children:[F.jsx("div",{children:o?F.jsx(qt.CaretDownOutlined,{size:14}):F.jsx(qt.CaretRightOutlined,{size:14})}),F.jsx("div",{children:e})]}),F.jsx(ac.Content,{$isOpen:o,children:i})]})},Mn=Qe.div`
256
256
  display: ${({$isHidden:e})=>e?"none":"block"};
257
- `,Fb={PossibleHiddenContainerWidthPadding:Qe(Mn)`
257
+ `,kb={PossibleHiddenContainerWidthPadding:Qe(Mn)`
258
258
  padding-left: 4px;
259
- `},hi=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return F.jsx(Fb.PossibleHiddenContainerWidthPadding,{$isHidden:t.isPersistedKeysShown===!1,children:F.jsx(z.Checkbox,{onClick:a=>{a.preventDefault(),a.stopPropagation(),o()},checked:i})})},Bb={CursorPointer:Qe.span`
259
+ `},hi=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return F.jsx(kb.PossibleHiddenContainerWidthPadding,{$isHidden:t.isPersistedKeysShown===!1,children:F.jsx(z.Checkbox,{onClick:a=>{a.preventDefault(),a.stopPropagation(),o()},checked:i})})},Tb={CursorPointer:Qe.span`
260
260
  cursor: pointer;
261
261
  margin-left: 4px;
262
262
  display: inline;
263
- `},Ur=e=>{const{children:t,...n}=e;return F.jsx(Bb.CursorPointer,{children:F.jsx(z.Typography.Text,{...n,children:t})})},xr=Qe(z.Form.Item)`
263
+ `},Ur=e=>{const{children:t,...n}=e;return F.jsx(Tb.CursorPointer,{children:F.jsx(z.Typography.Text,{...n,children:t})})},xr=Qe(z.Form.Item)`
264
264
  margin-bottom: 8px;
265
- `;function Db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gh(Object(n),!0).forEach(function(i){Db(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pb(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Rb(e,t){if(e==null)return{};var n=Pb(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Nb(e,t){return Lb(e)||jb(e,t)||$b(e,t)||Mb()}function Lb(e){if(Array.isArray(e))return e}function jb(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function $b(e,t){if(e){if(typeof e=="string")return Yh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yh(e,t)}}function Yh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Mb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
266
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ub(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(n),!0).forEach(function(i){Ub(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Vb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function Ls(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ta(e){return{}.toString.call(e).includes("Object")}function qb(e){return!Object.keys(e).length}function js(e){return typeof e=="function"}function Wb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kb(e,t){return ta(t)||Vr("changeType"),Object.keys(t).some(function(n){return!Wb(e,n)})&&Vr("changeField"),t}function Hb(e){js(e)||Vr("selectorType")}function zb(e){js(e)||ta(e)||Vr("handlerType"),ta(e)&&Object.values(e).some(function(t){return!js(t)})&&Vr("handlersType")}function Gb(e){e||Vr("initialIsRequired"),ta(e)||Vr("initialType"),qb(e)&&Vr("initialContent")}function Jb(e,t){throw new Error(e[t]||e.default)}var Yb={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Vr=Ls(Jb)(Yb),na={changes:Kb,selector:Hb,handler:zb,initial:Gb};function Xb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};na.initial(e),na.handler(t);var n={current:e},i=Ls(ev)(n,t),o=Ls(Zb)(n),a=Ls(na.changes)(e),u=Ls(Qb)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return na.selector(d),d(n.current)}function f(d){Vb(i,o,a,u)(d)}return[l,f]}function Qb(e,t){return js(t)?t(e.current):t}function Zb(e,t){return e.current=Qh(Qh({},e.current),t),t}function ev(e,t,n){return js(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var tv={create:Xb},nv={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function rv(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function iv(e){return{}.toString.call(e).includes("Object")}function sv(e){return e||ed("configIsRequired"),iv(e)||ed("configType"),e.urls?(ov(),{paths:{vs:e.urls.monacoBase}}):e}function ov(){console.warn(Zh.deprecation)}function av(e,t){throw new Error(e[t]||e.default)}var Zh={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
265
+ `;function Ob(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(n),!0).forEach(function(i){Ob(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ib(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Fb(e,t){if(e==null)return{};var n=Ib(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Bb(e,t){return Db(e)||Pb(e,t)||Rb(e,t)||Lb()}function Db(e){if(Array.isArray(e))return e}function Pb(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function Rb(e,t){if(e){if(typeof e=="string")return Gh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gh(e,t)}}function Gh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Lb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
266
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jh(Object(n),!0).forEach(function(i){Nb(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function jb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function Ns(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ta(e){return{}.toString.call(e).includes("Object")}function $b(e){return!Object.keys(e).length}function js(e){return typeof e=="function"}function Mb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ub(e,t){return ta(t)||Vr("changeType"),Object.keys(t).some(function(n){return!Mb(e,n)})&&Vr("changeField"),t}function Vb(e){js(e)||Vr("selectorType")}function qb(e){js(e)||ta(e)||Vr("handlerType"),ta(e)&&Object.values(e).some(function(t){return!js(t)})&&Vr("handlersType")}function Wb(e){e||Vr("initialIsRequired"),ta(e)||Vr("initialType"),$b(e)&&Vr("initialContent")}function Kb(e,t){throw new Error(e[t]||e.default)}var Hb={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Vr=Ns(Kb)(Hb),na={changes:Ub,selector:Vb,handler:qb,initial:Wb};function zb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};na.initial(e),na.handler(t);var n={current:e},i=Ns(Yb)(n,t),o=Ns(Jb)(n),a=Ns(na.changes)(e),u=Ns(Gb)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return na.selector(d),d(n.current)}function f(d){jb(i,o,a,u)(d)}return[l,f]}function Gb(e,t){return js(t)?t(e.current):t}function Jb(e,t){return e.current=Yh(Yh({},e.current),t),t}function Yb(e,t,n){return js(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var Xb={create:zb},Qb={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Zb(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ev(e){return{}.toString.call(e).includes("Object")}function tv(e){return e||Qh("configIsRequired"),ev(e)||Qh("configType"),e.urls?(nv(),{paths:{vs:e.urls.monacoBase}}):e}function nv(){console.warn(Xh.deprecation)}function rv(e,t){throw new Error(e[t]||e.default)}var Xh={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
267
267
  You are using deprecated way of configuration.
268
268
 
269
269
  Instead of using
@@ -272,42 +272,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
272
272
  monaco.config({ paths: { vs: '...' } })
273
273
 
274
274
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
275
- `},ed=rv(av)(Zh),uv={config:sv},cv=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function td(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],td(e[n],t[n]))}),Jh(Jh({},e),t)}var lv={type:"cancelation",msg:"operation is manually canceled"};function cc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(lv):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var fv=tv.create({config:nv,isInitialized:!1,resolve:null,reject:null,monaco:null}),nd=Nb(fv,2),$s=nd[0],ra=nd[1];function hv(e){var t=uv.config(e),n=t.monaco,i=Rb(t,["monaco"]);ra(function(o){return{config:td(o.config,i),monaco:n}})}function dv(){var e=$s(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(ra({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),cc(lc);if(window.monaco&&window.monaco.editor)return rd(window.monaco),e.resolve(window.monaco),cc(lc);cv(pv,yv)(mv)}return cc(lc)}function pv(e){return document.body.appendChild(e)}function gv(e){var t=document.createElement("script");return e&&(t.src=e),t}function yv(e){var t=$s(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=gv("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function mv(){var e=$s(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){rd(n),e.resolve(n)},function(n){e.reject(n)})}function rd(e){$s().monaco||ra({monaco:e})}function bv(){return $s(function(e){var t=e.monaco;return t})}var lc=new Promise(function(e,t){return ra({resolve:e,reject:t})}),Ms={config:hv,init:dv,__getMonacoInstance:bv},vv={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},fc=vv,wv={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Sv=wv;function Av({children:e}){return Z.createElement("div",{style:Sv.container},e)}var Ev=Av,xv=Ev;function Cv({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...fc.wrapper,width:e,height:t},...u},!n&&Z.createElement(xv,null,i),Z.createElement("div",{ref:o,style:{...fc.fullWidth,...!n&&fc.hide},className:a}))}var _v=Cv,id=Z.memo(_v);function kv(e){Z.useEffect(e,[])}var hc=kv;function Tv(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=Tv;function Us(){}function Hi(e,t,n,i){return Ov(e,i)||Iv(e,t,n,i)}function Ov(e,t){return e.editor.getModel(sd(e,t))}function Iv(e,t,n,i){return e.editor.createModel(t,n,i?sd(e,i):void 0)}function sd(e,t){return e.Uri.parse(t)}function Fv({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:g="Loading...",options:p={},height:w="100%",width:k="100%",className:S,wrapperProps:A={},beforeMount:v=Us,onMount:R=Us}){let[L,C]=Z.useState(!1),[x,I]=Z.useState(!0),O=Z.useRef(null),D=Z.useRef(null),W=Z.useRef(null),Q=Z.useRef(R),ce=Z.useRef(v),fe=Z.useRef(!1);hc(()=>{let he=Ms.init();return he.then(Pe=>(D.current=Pe)&&I(!1)).catch(Pe=>Pe?.type!=="cancelation"&&console.error("Monaco initialization: error:",Pe)),()=>O.current?pe():he.cancel()}),_n(()=>{if(O.current&&D.current){let he=O.current.getOriginalEditor(),Pe=Hi(D.current,e||"",i||n||"text",a||"");Pe!==he.getModel()&&he.setModel(Pe)}},[a],L),_n(()=>{if(O.current&&D.current){let he=O.current.getModifiedEditor(),Pe=Hi(D.current,t||"",o||n||"text",u||"");Pe!==he.getModel()&&he.setModel(Pe)}},[u],L),_n(()=>{let he=O.current.getModifiedEditor();he.getOption(D.current.editor.EditorOption.readOnly)?he.setValue(t||""):t!==he.getValue()&&(he.executeEdits("",[{range:he.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),he.pushUndoStop())},[t],L),_n(()=>{O.current?.getModel()?.original.setValue(e||"")},[e],L),_n(()=>{let{original:he,modified:Pe}=O.current.getModel();D.current.editor.setModelLanguage(he,i||n||"text"),D.current.editor.setModelLanguage(Pe,o||n||"text")},[n,i,o],L),_n(()=>{D.current?.editor.setTheme(d)},[d],L),_n(()=>{O.current?.updateOptions(p)},[p],L);let ge=Z.useCallback(()=>{if(!D.current)return;ce.current(D.current);let he=Hi(D.current,e||"",i||n||"text",a||""),Pe=Hi(D.current,t||"",o||n||"text",u||"");O.current?.setModel({original:he,modified:Pe})},[n,t,o,e,i,a,u]),ye=Z.useCallback(()=>{!fe.current&&W.current&&(O.current=D.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...p}),ge(),D.current?.editor.setTheme(d),C(!0),fe.current=!0)},[p,d,ge]);Z.useEffect(()=>{L&&Q.current(O.current,D.current)},[L]),Z.useEffect(()=>{!x&&!L&&ye()},[x,L,ye]);function pe(){let he=O.current?.getModel();l||he?.original?.dispose(),f||he?.modified?.dispose(),O.current?.dispose()}return Z.createElement(id,{width:k,height:w,isEditorReady:L,loading:g,_ref:W,className:S,wrapperProps:A})}var Bv=Fv,Dv=Z.memo(Bv);function Pv(){let[e,t]=Z.useState(Ms.__getMonacoInstance());return hc(()=>{let n;return e||(n=Ms.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Rv=Pv;function Nv(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Lv=Nv,ia=new Map;function jv({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:w=!1,width:k="100%",height:S="100%",className:A,wrapperProps:v={},beforeMount:R=Us,onMount:L=Us,onChange:C,onValidate:x=Us}){let[I,O]=Z.useState(!1),[D,W]=Z.useState(!0),Q=Z.useRef(null),ce=Z.useRef(null),fe=Z.useRef(null),ge=Z.useRef(L),ye=Z.useRef(R),pe=Z.useRef(),he=Z.useRef(i),Pe=Lv(a),Fe=Z.useRef(!1),_e=Z.useRef(!1);hc(()=>{let we=Ms.init();return we.then(nt=>(Q.current=nt)&&W(!1)).catch(nt=>nt?.type!=="cancelation"&&console.error("Monaco initialization: error:",nt)),()=>ce.current?Ee():we.cancel()}),_n(()=>{let we=Hi(Q.current,e||i||"",t||o||"",a||n||"");we!==ce.current?.getModel()&&(p&&ia.set(Pe,ce.current?.saveViewState()),ce.current?.setModel(we),p&&ce.current?.restoreViewState(ia.get(a)))},[a],I),_n(()=>{ce.current?.updateOptions(d)},[d],I),_n(()=>{!ce.current||i===void 0||(ce.current.getOption(Q.current.editor.EditorOption.readOnly)?ce.current.setValue(i):i!==ce.current.getValue()&&(_e.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),_e.current=!1))},[i],I),_n(()=>{let we=ce.current?.getModel();we&&o&&Q.current?.editor.setModelLanguage(we,o)},[o],I),_n(()=>{l!==void 0&&ce.current?.revealLine(l)},[l],I),_n(()=>{Q.current?.editor.setTheme(u)},[u],I);let qe=Z.useCallback(()=>{if(!(!fe.current||!Q.current)&&!Fe.current){ye.current(Q.current);let we=a||n,nt=Hi(Q.current,i||e||"",t||o||"",we||"");ce.current=Q.current?.editor.create(fe.current,{model:nt,automaticLayout:!0,...d},g),p&&ce.current.restoreViewState(ia.get(we)),Q.current.editor.setTheme(u),l!==void 0&&ce.current.revealLine(l),O(!0),Fe.current=!0}},[e,t,n,i,o,a,d,g,p,u,l]);Z.useEffect(()=>{I&&ge.current(ce.current,Q.current)},[I]),Z.useEffect(()=>{!D&&!I&&qe()},[D,I,qe]),he.current=i,Z.useEffect(()=>{I&&C&&(pe.current?.dispose(),pe.current=ce.current?.onDidChangeModelContent(we=>{_e.current||C(ce.current.getValue(),we)}))},[I,C]),Z.useEffect(()=>{if(I){let we=Q.current.editor.onDidChangeMarkers(nt=>{let J=ce.current.getModel()?.uri;if(J&&nt.find(X=>X.path===J.path)){let X=Q.current.editor.getModelMarkers({resource:J});x?.(X)}});return()=>{we?.dispose()}}return()=>{}},[I,x]);function Ee(){pe.current?.dispose(),w?p&&ia.set(a,ce.current.saveViewState()):ce.current.getModel()?.dispose(),ce.current.dispose()}return Z.createElement(id,{width:k,height:S,isEditorReady:I,loading:f,_ref:fe,className:A,wrapperProps:v})}var $v=jv,od=Z.memo($v),dc=od;const Mv=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Dv,Editor:od,default:dc,loader:Ms,useMonaco:Rv},Symbol.toStringTag,{value:"Module"})),pc=Symbol.for("yaml.alias"),gc=Symbol.for("yaml.document"),qr=Symbol.for("yaml.map"),ad=Symbol.for("yaml.pair"),gr=Symbol.for("yaml.scalar"),zi=Symbol.for("yaml.seq"),Un=Symbol.for("yaml.node.type"),Gi=e=>!!e&&typeof e=="object"&&e[Un]===pc,Vs=e=>!!e&&typeof e=="object"&&e[Un]===gc,qs=e=>!!e&&typeof e=="object"&&e[Un]===qr,Kt=e=>!!e&&typeof e=="object"&&e[Un]===ad,kt=e=>!!e&&typeof e=="object"&&e[Un]===gr,Ws=e=>!!e&&typeof e=="object"&&e[Un]===zi;function Ht(e){if(e&&typeof e=="object")switch(e[Un]){case qr:case zi:return!0}return!1}function zt(e){if(e&&typeof e=="object")switch(e[Un]){case pc:case qr:case gr:case zi:return!0}return!1}const Uv=e=>(kt(e)||Ht(e))&&!!e.anchor,di=Symbol("break visit"),Vv=Symbol("skip children"),Ks=Symbol("remove node");function pi(e,t){const n=qv(t);Vs(e)?Ji(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Ji(null,e,n,Object.freeze([]))}pi.BREAK=di,pi.SKIP=Vv,pi.REMOVE=Ks;function Ji(e,t,n,i){const o=Wv(e,t,n,i);if(zt(o)||Kt(o))return Kv(e,i,o),Ji(e,o,n,i);if(typeof o!="symbol"){if(Ht(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Ji(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===di)return di;u===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Kt(t)){i=Object.freeze(i.concat(t));const a=Ji("key",t.key,n,i);if(a===di)return di;a===Ks&&(t.key=null);const u=Ji("value",t.value,n,i);if(u===di)return di;u===Ks&&(t.value=null)}}return o}function qv(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Wv(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(qs(t))return n.Map?.(e,t,i);if(Ws(t))return n.Seq?.(e,t,i);if(Kt(t))return n.Pair?.(e,t,i);if(kt(t))return n.Scalar?.(e,t,i);if(Gi(t))return n.Alias?.(e,t,i)}function Kv(e,t,n){const i=t[t.length-1];if(Ht(i))i.items[e]=n;else if(Kt(i))e==="key"?i.key=n:i.value=n;else if(Vs(i))i.contents=n;else{const o=Gi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Hv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},zv=e=>e.replace(/[!,[\]{}]/g,t=>Hv[t]);class pn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},pn.defaultYaml,t),this.tags=Object.assign({},pn.defaultTags,n)}clone(){const t=new pn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new pn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:pn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},pn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:pn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},pn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+zv(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&zt(t.contents)){const a={};pi(t.contents,(u,l)=>{zt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
276
- `)}}pn.defaultYaml={explicit:!1,version:"1.2"},pn.defaultTags={"!!":"tag:yaml.org,2002:"};function ud(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function cd(e){const t=new Set;return pi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function ld(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Gv(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=cd(e));const u=ld(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(kt(u.node)||Ht(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Yi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Yi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Yi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Yi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Yi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Vn(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Vn(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Uv(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class yc{constructor(t){Object.defineProperty(this,Un,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Vs(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Vn(this,"",u);if(typeof o=="function")for(const{count:f,res:d}of u.anchors.values())o(d,f);return typeof a=="function"?Yi(a,{"":l},"",l):l}}class mc extends yc{constructor(t){super(pc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return pi(t,{Node:(i,o)=>{if(o===this)return pi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Vn(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=sa(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(ud(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function sa(e,t,n){if(Gi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Ht(t)){let i=0;for(const o of t.items){const a=sa(e,o,n);a>i&&(i=a)}return i}else if(Kt(t)){const i=sa(e,t.key,n),o=sa(e,t.value,n);return Math.max(i,o)}return 1}const fd=e=>!e||typeof e!="function"&&typeof e!="object";class Ve extends yc{constructor(t){super(gr),this.value=t}toJSON(t,n){return n?.keep?this.value:Vn(this.value,t,n)}toString(){return String(this.value)}}Ve.BLOCK_FOLDED="BLOCK_FOLDED",Ve.BLOCK_LITERAL="BLOCK_LITERAL",Ve.PLAIN="PLAIN",Ve.QUOTE_DOUBLE="QUOTE_DOUBLE",Ve.QUOTE_SINGLE="QUOTE_SINGLE";const Jv="tag:yaml.org,2002:";function Yv(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Hs(e,t,n){if(Vs(e)&&(e=e.contents),zt(e))return e;if(Kt(e)){const p=n.schema[qr].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new mc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Jv+t.slice(2));let d=Yv(e,t,u.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new Ve(e);return f&&(f.node=p),p}d=e instanceof Map?u[qr]:Symbol.iterator in Object(e)?u[zi]:u[qr]}a&&(a(d),delete n.onTagObj);const g=d?.createNode?d.createNode(n.schema,e,n):typeof d?.nodeClass?.from=="function"?d.nodeClass.from(n.schema,e,n):new Ve(e);return t?g.tag=t:d.default||(g.tag=d.tag),f&&(f.node=g),g}function oa(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Hs(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const zs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class hd extends yc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>zt(i)||Kt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(zs(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Ht(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,oa(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(Ht(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&kt(a)?a.value:a:Ht(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Kt(n))return!1;const i=n.value;return i==null||t&&kt(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Ht(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(Ht(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,oa(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const Xv=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const gi=(e,t,n)=>e.endsWith(`
275
+ `},Qh=Zb(rv)(Xh),iv={config:tv},sv=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function Zh(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Zh(e[n],t[n]))}),zh(zh({},e),t)}var ov={type:"cancelation",msg:"operation is manually canceled"};function uc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(ov):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var av=Xb.create({config:Qb,isInitialized:!1,resolve:null,reject:null,monaco:null}),ed=Bb(av,2),$s=ed[0],ra=ed[1];function uv(e){var t=iv.config(e),n=t.monaco,i=Fb(t,["monaco"]);ra(function(o){return{config:Zh(o.config,i),monaco:n}})}function cv(){var e=$s(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(ra({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),uc(cc);if(window.monaco&&window.monaco.editor)return td(window.monaco),e.resolve(window.monaco),uc(cc);sv(lv,hv)(dv)}return uc(cc)}function lv(e){return document.body.appendChild(e)}function fv(e){var t=document.createElement("script");return e&&(t.src=e),t}function hv(e){var t=$s(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=fv("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function dv(){var e=$s(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){td(n),e.resolve(n)},function(n){e.reject(n)})}function td(e){$s().monaco||ra({monaco:e})}function pv(){return $s(function(e){var t=e.monaco;return t})}var cc=new Promise(function(e,t){return ra({resolve:e,reject:t})}),Ms={config:uv,init:cv,__getMonacoInstance:pv},gv={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},lc=gv,yv={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},mv=yv;function bv({children:e}){return Z.createElement("div",{style:mv.container},e)}var vv=bv,wv=vv;function Sv({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...lc.wrapper,width:e,height:t},...u},!n&&Z.createElement(wv,null,i),Z.createElement("div",{ref:o,style:{...lc.fullWidth,...!n&&lc.hide},className:a}))}var Av=Sv,nd=Z.memo(Av);function Ev(e){Z.useEffect(e,[])}var fc=Ev;function xv(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=xv;function Us(){}function Hi(e,t,n,i){return Cv(e,i)||_v(e,t,n,i)}function Cv(e,t){return e.editor.getModel(rd(e,t))}function _v(e,t,n,i){return e.editor.createModel(t,n,i?rd(e,i):void 0)}function rd(e,t){return e.Uri.parse(t)}function kv({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:g="Loading...",options:p={},height:w="100%",width:k="100%",className:S,wrapperProps:A={},beforeMount:v=Us,onMount:R=Us}){let[N,C]=Z.useState(!1),[x,I]=Z.useState(!0),O=Z.useRef(null),D=Z.useRef(null),W=Z.useRef(null),Q=Z.useRef(R),ce=Z.useRef(v),fe=Z.useRef(!1);fc(()=>{let he=Ms.init();return he.then(Pe=>(D.current=Pe)&&I(!1)).catch(Pe=>Pe?.type!=="cancelation"&&console.error("Monaco initialization: error:",Pe)),()=>O.current?pe():he.cancel()}),_n(()=>{if(O.current&&D.current){let he=O.current.getOriginalEditor(),Pe=Hi(D.current,e||"",i||n||"text",a||"");Pe!==he.getModel()&&he.setModel(Pe)}},[a],N),_n(()=>{if(O.current&&D.current){let he=O.current.getModifiedEditor(),Pe=Hi(D.current,t||"",o||n||"text",u||"");Pe!==he.getModel()&&he.setModel(Pe)}},[u],N),_n(()=>{let he=O.current.getModifiedEditor();he.getOption(D.current.editor.EditorOption.readOnly)?he.setValue(t||""):t!==he.getValue()&&(he.executeEdits("",[{range:he.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),he.pushUndoStop())},[t],N),_n(()=>{O.current?.getModel()?.original.setValue(e||"")},[e],N),_n(()=>{let{original:he,modified:Pe}=O.current.getModel();D.current.editor.setModelLanguage(he,i||n||"text"),D.current.editor.setModelLanguage(Pe,o||n||"text")},[n,i,o],N),_n(()=>{D.current?.editor.setTheme(d)},[d],N),_n(()=>{O.current?.updateOptions(p)},[p],N);let ge=Z.useCallback(()=>{if(!D.current)return;ce.current(D.current);let he=Hi(D.current,e||"",i||n||"text",a||""),Pe=Hi(D.current,t||"",o||n||"text",u||"");O.current?.setModel({original:he,modified:Pe})},[n,t,o,e,i,a,u]),ye=Z.useCallback(()=>{!fe.current&&W.current&&(O.current=D.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...p}),ge(),D.current?.editor.setTheme(d),C(!0),fe.current=!0)},[p,d,ge]);Z.useEffect(()=>{N&&Q.current(O.current,D.current)},[N]),Z.useEffect(()=>{!x&&!N&&ye()},[x,N,ye]);function pe(){let he=O.current?.getModel();l||he?.original?.dispose(),f||he?.modified?.dispose(),O.current?.dispose()}return Z.createElement(nd,{width:k,height:w,isEditorReady:N,loading:g,_ref:W,className:S,wrapperProps:A})}var Tv=kv,Ov=Z.memo(Tv);function Iv(){let[e,t]=Z.useState(Ms.__getMonacoInstance());return fc(()=>{let n;return e||(n=Ms.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Fv=Iv;function Bv(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Dv=Bv,ia=new Map;function Pv({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:w=!1,width:k="100%",height:S="100%",className:A,wrapperProps:v={},beforeMount:R=Us,onMount:N=Us,onChange:C,onValidate:x=Us}){let[I,O]=Z.useState(!1),[D,W]=Z.useState(!0),Q=Z.useRef(null),ce=Z.useRef(null),fe=Z.useRef(null),ge=Z.useRef(N),ye=Z.useRef(R),pe=Z.useRef(),he=Z.useRef(i),Pe=Dv(a),Fe=Z.useRef(!1),_e=Z.useRef(!1);fc(()=>{let we=Ms.init();return we.then(nt=>(Q.current=nt)&&W(!1)).catch(nt=>nt?.type!=="cancelation"&&console.error("Monaco initialization: error:",nt)),()=>ce.current?Ee():we.cancel()}),_n(()=>{let we=Hi(Q.current,e||i||"",t||o||"",a||n||"");we!==ce.current?.getModel()&&(p&&ia.set(Pe,ce.current?.saveViewState()),ce.current?.setModel(we),p&&ce.current?.restoreViewState(ia.get(a)))},[a],I),_n(()=>{ce.current?.updateOptions(d)},[d],I),_n(()=>{!ce.current||i===void 0||(ce.current.getOption(Q.current.editor.EditorOption.readOnly)?ce.current.setValue(i):i!==ce.current.getValue()&&(_e.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),_e.current=!1))},[i],I),_n(()=>{let we=ce.current?.getModel();we&&o&&Q.current?.editor.setModelLanguage(we,o)},[o],I),_n(()=>{l!==void 0&&ce.current?.revealLine(l)},[l],I),_n(()=>{Q.current?.editor.setTheme(u)},[u],I);let qe=Z.useCallback(()=>{if(!(!fe.current||!Q.current)&&!Fe.current){ye.current(Q.current);let we=a||n,nt=Hi(Q.current,i||e||"",t||o||"",we||"");ce.current=Q.current?.editor.create(fe.current,{model:nt,automaticLayout:!0,...d},g),p&&ce.current.restoreViewState(ia.get(we)),Q.current.editor.setTheme(u),l!==void 0&&ce.current.revealLine(l),O(!0),Fe.current=!0}},[e,t,n,i,o,a,d,g,p,u,l]);Z.useEffect(()=>{I&&ge.current(ce.current,Q.current)},[I]),Z.useEffect(()=>{!D&&!I&&qe()},[D,I,qe]),he.current=i,Z.useEffect(()=>{I&&C&&(pe.current?.dispose(),pe.current=ce.current?.onDidChangeModelContent(we=>{_e.current||C(ce.current.getValue(),we)}))},[I,C]),Z.useEffect(()=>{if(I){let we=Q.current.editor.onDidChangeMarkers(nt=>{let J=ce.current.getModel()?.uri;if(J&&nt.find(X=>X.path===J.path)){let X=Q.current.editor.getModelMarkers({resource:J});x?.(X)}});return()=>{we?.dispose()}}return()=>{}},[I,x]);function Ee(){pe.current?.dispose(),w?p&&ia.set(a,ce.current.saveViewState()):ce.current.getModel()?.dispose(),ce.current.dispose()}return Z.createElement(nd,{width:k,height:S,isEditorReady:I,loading:f,_ref:fe,className:A,wrapperProps:v})}var Rv=Pv,id=Z.memo(Rv),hc=id;const Lv=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Ov,Editor:id,default:hc,loader:Ms,useMonaco:Fv},Symbol.toStringTag,{value:"Module"})),dc=Symbol.for("yaml.alias"),pc=Symbol.for("yaml.document"),qr=Symbol.for("yaml.map"),sd=Symbol.for("yaml.pair"),gr=Symbol.for("yaml.scalar"),zi=Symbol.for("yaml.seq"),Un=Symbol.for("yaml.node.type"),Gi=e=>!!e&&typeof e=="object"&&e[Un]===dc,Vs=e=>!!e&&typeof e=="object"&&e[Un]===pc,qs=e=>!!e&&typeof e=="object"&&e[Un]===qr,Kt=e=>!!e&&typeof e=="object"&&e[Un]===sd,kt=e=>!!e&&typeof e=="object"&&e[Un]===gr,Ws=e=>!!e&&typeof e=="object"&&e[Un]===zi;function Ht(e){if(e&&typeof e=="object")switch(e[Un]){case qr:case zi:return!0}return!1}function zt(e){if(e&&typeof e=="object")switch(e[Un]){case dc:case qr:case gr:case zi:return!0}return!1}const Nv=e=>(kt(e)||Ht(e))&&!!e.anchor,di=Symbol("break visit"),jv=Symbol("skip children"),Ks=Symbol("remove node");function pi(e,t){const n=$v(t);Vs(e)?Ji(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Ji(null,e,n,Object.freeze([]))}pi.BREAK=di,pi.SKIP=jv,pi.REMOVE=Ks;function Ji(e,t,n,i){const o=Mv(e,t,n,i);if(zt(o)||Kt(o))return Uv(e,i,o),Ji(e,o,n,i);if(typeof o!="symbol"){if(Ht(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Ji(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===di)return di;u===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Kt(t)){i=Object.freeze(i.concat(t));const a=Ji("key",t.key,n,i);if(a===di)return di;a===Ks&&(t.key=null);const u=Ji("value",t.value,n,i);if(u===di)return di;u===Ks&&(t.value=null)}}return o}function $v(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Mv(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(qs(t))return n.Map?.(e,t,i);if(Ws(t))return n.Seq?.(e,t,i);if(Kt(t))return n.Pair?.(e,t,i);if(kt(t))return n.Scalar?.(e,t,i);if(Gi(t))return n.Alias?.(e,t,i)}function Uv(e,t,n){const i=t[t.length-1];if(Ht(i))i.items[e]=n;else if(Kt(i))e==="key"?i.key=n:i.value=n;else if(Vs(i))i.contents=n;else{const o=Gi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Vv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},qv=e=>e.replace(/[!,[\]{}]/g,t=>Vv[t]);class pn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},pn.defaultYaml,t),this.tags=Object.assign({},pn.defaultTags,n)}clone(){const t=new pn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new pn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:pn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},pn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:pn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},pn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+qv(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&zt(t.contents)){const a={};pi(t.contents,(u,l)=>{zt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
276
+ `)}}pn.defaultYaml={explicit:!1,version:"1.2"},pn.defaultTags={"!!":"tag:yaml.org,2002:"};function od(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function ad(e){const t=new Set;return pi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function ud(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Wv(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=ad(e));const u=ud(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(kt(u.node)||Ht(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Yi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Yi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Yi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Yi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Yi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Vn(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Vn(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Nv(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class gc{constructor(t){Object.defineProperty(this,Un,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Vs(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Vn(this,"",u);if(typeof o=="function")for(const{count:f,res:d}of u.anchors.values())o(d,f);return typeof a=="function"?Yi(a,{"":l},"",l):l}}class yc extends gc{constructor(t){super(dc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return pi(t,{Node:(i,o)=>{if(o===this)return pi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Vn(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=sa(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(od(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function sa(e,t,n){if(Gi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Ht(t)){let i=0;for(const o of t.items){const a=sa(e,o,n);a>i&&(i=a)}return i}else if(Kt(t)){const i=sa(e,t.key,n),o=sa(e,t.value,n);return Math.max(i,o)}return 1}const cd=e=>!e||typeof e!="function"&&typeof e!="object";class Ve extends gc{constructor(t){super(gr),this.value=t}toJSON(t,n){return n?.keep?this.value:Vn(this.value,t,n)}toString(){return String(this.value)}}Ve.BLOCK_FOLDED="BLOCK_FOLDED",Ve.BLOCK_LITERAL="BLOCK_LITERAL",Ve.PLAIN="PLAIN",Ve.QUOTE_DOUBLE="QUOTE_DOUBLE",Ve.QUOTE_SINGLE="QUOTE_SINGLE";const Kv="tag:yaml.org,2002:";function Hv(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Hs(e,t,n){if(Vs(e)&&(e=e.contents),zt(e))return e;if(Kt(e)){const p=n.schema[qr].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new yc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Kv+t.slice(2));let d=Hv(e,t,u.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new Ve(e);return f&&(f.node=p),p}d=e instanceof Map?u[qr]:Symbol.iterator in Object(e)?u[zi]:u[qr]}a&&(a(d),delete n.onTagObj);const g=d?.createNode?d.createNode(n.schema,e,n):typeof d?.nodeClass?.from=="function"?d.nodeClass.from(n.schema,e,n):new Ve(e);return t?g.tag=t:d.default||(g.tag=d.tag),f&&(f.node=g),g}function oa(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Hs(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const zs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ld extends gc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>zt(i)||Kt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(zs(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Ht(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,oa(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(Ht(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&kt(a)?a.value:a:Ht(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Kt(n))return!1;const i=n.value;return i==null||t&&kt(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Ht(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(Ht(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,oa(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const zv=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const gi=(e,t,n)=>e.endsWith(`
277
277
  `)?Cr(n,t):n.includes(`
278
278
  `)?`
279
- `+Cr(n,t):(e.endsWith(" ")?"":" ")+n,dd="flow",bc="block",aa="quoted";function ua(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const d=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):p=o-i);let w,k,S=!1,A=-1,v=-1,R=-1;n===bc&&(A=pd(e,A,t.length),A!==-1&&(p=A+f));for(let C;C=e[A+=1];){if(n===aa&&C==="\\"){switch(v=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}R=A}if(C===`
280
- `)n===bc&&(A=pd(e,A,t.length)),p=A+t.length+f,w=void 0;else{if(C===" "&&k&&k!==" "&&k!==`
279
+ `+Cr(n,t):(e.endsWith(" ")?"":" ")+n,fd="flow",mc="block",aa="quoted";function ua(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const d=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):p=o-i);let w,k,S=!1,A=-1,v=-1,R=-1;n===mc&&(A=hd(e,A,t.length),A!==-1&&(p=A+f));for(let C;C=e[A+=1];){if(n===aa&&C==="\\"){switch(v=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}R=A}if(C===`
280
+ `)n===mc&&(A=hd(e,A,t.length)),p=A+t.length+f,w=void 0;else{if(C===" "&&k&&k!==" "&&k!==`
281
281
  `&&k!==" "){const x=e[A+1];x&&x!==" "&&x!==`
282
- `&&x!==" "&&(w=A)}if(A>=p)if(w)d.push(w),p=w+f,w=void 0;else if(n===aa){for(;k===" "||k===" ";)k=C,C=e[A+=1],S=!0;const x=A>R+1?A-2:v-1;if(g[x])return e;d.push(x),g[x]=!0,p=x+f,w=void 0}else S=!0}k=C}if(S&&l&&l(),d.length===0)return e;u&&u();let L=e.slice(0,d[0]);for(let C=0;C<d.length;++C){const x=d[C],I=d[C+1]||e.length;x===0?L=`
283
- ${t}${e.slice(0,I)}`:(n===aa&&g[x]&&(L+=`${e[x]}\\`),L+=`
284
- ${t}${e.slice(x+1,I)}`)}return L}function pd(e,t,n){let i=t,o=t+1,a=e[o];for(;a===" "||a===" ";)if(t<o+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
285
- `);i=t,o=t+1,a=e[o]}return i}const ca=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),la=e=>/^(%|---|\.\.\.)/m.test(e);function Qv(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let a=0,u=0;a<o;++a)if(e[a]===`
282
+ `&&x!==" "&&(w=A)}if(A>=p)if(w)d.push(w),p=w+f,w=void 0;else if(n===aa){for(;k===" "||k===" ";)k=C,C=e[A+=1],S=!0;const x=A>R+1?A-2:v-1;if(g[x])return e;d.push(x),g[x]=!0,p=x+f,w=void 0}else S=!0}k=C}if(S&&l&&l(),d.length===0)return e;u&&u();let N=e.slice(0,d[0]);for(let C=0;C<d.length;++C){const x=d[C],I=d[C+1]||e.length;x===0?N=`
283
+ ${t}${e.slice(0,I)}`:(n===aa&&g[x]&&(N+=`${e[x]}\\`),N+=`
284
+ ${t}${e.slice(x+1,I)}`)}return N}function hd(e,t,n){let i=t,o=t+1,a=e[o];for(;a===" "||a===" ";)if(t<o+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
285
+ `);i=t,o=t+1,a=e[o]}return i}const ca=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),la=e=>/^(%|---|\.\.\.)/m.test(e);function Gv(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let a=0,u=0;a<o;++a)if(e[a]===`
286
286
  `){if(a-u>i)return!0;if(u=a+1,o-u<=i)return!1}return!0}function Gs(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(la(e)?" ":"");let u="",l=0;for(let f=0,d=n[f];d;d=n[++f])if(d===" "&&n[f+1]==="\\"&&n[f+2]==="n"&&(u+=n.slice(l,f)+"\\ ",f+=1,l=f,d="\\"),d==="\\")switch(n[f+1]){case"u":{u+=n.slice(l,f);const g=n.substr(f+2,4);switch(g){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:g.substr(0,2)==="00"?u+="\\x"+g.substr(2):u+=n.substr(f,6)}f+=5,l=f+1}break;case"n":if(i||n[f+2]==='"'||n.length<o)f+=1;else{for(u+=n.slice(l,f)+`
287
287
 
288
288
  `;n[f+2]==="\\"&&n[f+3]==="n"&&n[f+4]!=='"';)u+=`
289
- `,f+=2;u+=a,n[f+2]===" "&&(u+="\\"),f+=1,l=f+1}break;default:f+=1}return u=l?u+n.slice(l):n,i?u:ua(u,a,aa,ca(t,!1))}function vc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
289
+ `,f+=2;u+=a,n[f+2]===" "&&(u+="\\"),f+=1,l=f+1}break;default:f+=1}return u=l?u+n.slice(l):n,i?u:ua(u,a,aa,ca(t,!1))}function bc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
290
290
  `)||/[ \t]\n|\n[ \t]/.test(e))return Gs(e,t);const n=t.indent||(la(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
291
- ${n}`)+"'";return t.implicitKey?i:ua(i,n,dd,ca(t,!1))}function Xi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Gs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=vc:a&&!o?i=Gs:i=n?vc:Gs}return i(e,t)}let wc;try{wc=new RegExp(`(^|(?<!
291
+ ${n}`)+"'";return t.implicitKey?i:ua(i,n,fd,ca(t,!1))}function Xi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Gs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=bc:a&&!o?i=Gs:i=n?bc:Gs}return i(e,t)}let vc;try{vc=new RegExp(`(^|(?<!
292
292
  ))
293
293
  +(?!
294
- |$)`,"g")}catch{wc=/\n+(?!\n|$)/g}function fa({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Xi(n,i);const d=i.indent||(i.forceBlockIndent||la(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===Ve.BLOCK_FOLDED?!1:t===Ve.BLOCK_LITERAL?!0:!Qv(n,f,d.length);if(!n)return g?`|
294
+ |$)`,"g")}catch{vc=/\n+(?!\n|$)/g}function fa({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Xi(n,i);const d=i.indent||(i.forceBlockIndent||la(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===Ve.BLOCK_FOLDED?!1:t===Ve.BLOCK_LITERAL?!0:!Gv(n,f,d.length);if(!n)return g?`|
295
295
  `:`>
296
296
  `;let p,w;for(w=n.length;w>0;--w){const I=n[w-1];if(I!==`
297
297
  `&&I!==" "&&I!==" ")break}let k=n.substring(w);const S=k.indexOf(`
298
298
  `);S===-1?p="-":n===k||S!==k.length-1?(p="+",a&&a()):p="",k&&(n=n.slice(0,-k.length),k[k.length-1]===`
299
- `&&(k=k.slice(0,-1)),k=k.replace(wc,`$&${d}`));let A=!1,v,R=-1;for(v=0;v<n.length;++v){const I=n[v];if(I===" ")A=!0;else if(I===`
300
- `)R=v;else break}let L=n.substring(0,R<v?R+1:v);L&&(n=n.substring(L.length),L=L.replace(/\n+/g,`$&${d}`));let x=(A?d?"2":"1":"")+p;if(e&&(x+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const I=n.replace(/\n+/g,`
301
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let O=!1;const D=ca(i,!0);u!=="folded"&&t!==Ve.BLOCK_FOLDED&&(D.onOverflow=()=>{O=!0});const W=ua(`${L}${I}${k}`,d,bc,D);if(!O)return`>${x}
299
+ `&&(k=k.slice(0,-1)),k=k.replace(vc,`$&${d}`));let A=!1,v,R=-1;for(v=0;v<n.length;++v){const I=n[v];if(I===" ")A=!0;else if(I===`
300
+ `)R=v;else break}let N=n.substring(0,R<v?R+1:v);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${d}`));let x=(A?d?"2":"1":"")+p;if(e&&(x+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const I=n.replace(/\n+/g,`
301
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let O=!1;const D=ca(i,!0);u!=="folded"&&t!==Ve.BLOCK_FOLDED&&(D.onOverflow=()=>{O=!0});const W=ua(`${N}${I}${k}`,d,mc,D);if(!O)return`>${x}
302
302
  ${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${x}
303
- ${d}${L}${n}${k}`}function Zv(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:g}=t;if(l&&a.includes(`
303
+ ${d}${N}${n}${k}`}function Jv(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:g}=t;if(l&&a.includes(`
304
304
  `)||g&&/[[\]{},]/.test(a))return Xi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
305
305
  `)?Xi(a,t):fa(e,t,n,i);if(!l&&!g&&o!==Ve.PLAIN&&a.includes(`
306
306
  `))return fa(e,t,n,i);if(la(a)){if(f==="")return t.forceBlockIndent=!0,fa(e,t,n,i);if(l&&f===d)return Xi(a,t)}const p=a.replace(/\n+/g,`$&
307
- ${f}`);if(u){const w=A=>A.default&&A.tag!=="tag:yaml.org,2002:str"&&A.test?.test(p),{compat:k,tags:S}=t.doc.schema;if(S.some(w)||k?.some(w))return Xi(a,t)}return l?p:ua(p,f,dd,ca(t,!1))}function Sc(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==Ve.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=Ve.QUOTE_DOUBLE);const f=g=>{switch(g){case Ve.BLOCK_FOLDED:case Ve.BLOCK_LITERAL:return o||a?Xi(u.value,t):fa(u,t,n,i);case Ve.QUOTE_DOUBLE:return Gs(u.value,t);case Ve.QUOTE_SINGLE:return vc(u.value,t);case Ve.PLAIN:return Zv(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:g,defaultStringType:p}=t.options,w=o&&g||p;if(d=f(w),d===null)throw new Error(`Unsupported default string type ${w}`)}return d}function gd(e,t){const n=Object.assign({blockQuote:!0,commentString:Xv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function ew(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(kt(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function tw(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(kt(e)||Ht(e))&&e.anchor;a&&ud(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function Qi(e,t,n,i){if(Kt(e))return e.toString(t,n,i);if(Gi(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=zt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=ew(t.doc.schema.tags,a));const u=tw(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):kt(a)?Sc(a,t,n,i):a.toString(t,n,i);return u?kt(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
308
- ${t.indent}${l}`:l}function nw({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:g,simpleKeys:p}}=n;let w=zt(e)&&e.comment||null;if(p){if(w)throw new Error("With simple keys, key nodes cannot have comments");if(Ht(e)||!zt(e)&&typeof e=="object"){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let k=!p&&(!e||w&&t==null&&!n.inFlow||Ht(e)||(kt(e)?e.type===Ve.BLOCK_FOLDED||e.type===Ve.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!k&&(p||!a),indent:l+f});let S=!1,A=!1,v=Qi(e,n,()=>S=!0,()=>A=!0);if(!k&&!n.inFlow&&v.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(n.inFlow){if(a||t==null)return S&&i&&i(),v===""?"?":k?`? ${v}`:v}else if(a&&!p||t==null&&k)return v=`? ${v}`,w&&!S?v+=gi(v,n.indent,d(w)):A&&o&&o(),v;S&&(w=null),k?(w&&(v+=gi(v,n.indent,d(w))),v=`? ${v}
309
- ${l}:`):(v=`${v}:`,w&&(v+=gi(v,n.indent,d(w))));let R,L,C;zt(t)?(R=!!t.spaceBefore,L=t.commentBefore,C=t.comment):(R=!1,L=null,C=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!k&&!w&&kt(t)&&(n.indentAtStart=v.length+1),A=!1,!g&&f.length>=2&&!n.inFlow&&!k&&Ws(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let x=!1;const I=Qi(t,n,()=>x=!0,()=>A=!0);let O=" ";if(w||R||L){if(O=R?`
310
- `:"",L){const D=d(L);O+=`
307
+ ${f}`);if(u){const w=A=>A.default&&A.tag!=="tag:yaml.org,2002:str"&&A.test?.test(p),{compat:k,tags:S}=t.doc.schema;if(S.some(w)||k?.some(w))return Xi(a,t)}return l?p:ua(p,f,fd,ca(t,!1))}function wc(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==Ve.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=Ve.QUOTE_DOUBLE);const f=g=>{switch(g){case Ve.BLOCK_FOLDED:case Ve.BLOCK_LITERAL:return o||a?Xi(u.value,t):fa(u,t,n,i);case Ve.QUOTE_DOUBLE:return Gs(u.value,t);case Ve.QUOTE_SINGLE:return bc(u.value,t);case Ve.PLAIN:return Jv(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:g,defaultStringType:p}=t.options,w=o&&g||p;if(d=f(w),d===null)throw new Error(`Unsupported default string type ${w}`)}return d}function dd(e,t){const n=Object.assign({blockQuote:!0,commentString:zv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function Yv(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(kt(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function Xv(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(kt(e)||Ht(e))&&e.anchor;a&&od(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function Qi(e,t,n,i){if(Kt(e))return e.toString(t,n,i);if(Gi(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=zt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Yv(t.doc.schema.tags,a));const u=Xv(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):kt(a)?wc(a,t,n,i):a.toString(t,n,i);return u?kt(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
308
+ ${t.indent}${l}`:l}function Qv({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:g,simpleKeys:p}}=n;let w=zt(e)&&e.comment||null;if(p){if(w)throw new Error("With simple keys, key nodes cannot have comments");if(Ht(e)||!zt(e)&&typeof e=="object"){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let k=!p&&(!e||w&&t==null&&!n.inFlow||Ht(e)||(kt(e)?e.type===Ve.BLOCK_FOLDED||e.type===Ve.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!k&&(p||!a),indent:l+f});let S=!1,A=!1,v=Qi(e,n,()=>S=!0,()=>A=!0);if(!k&&!n.inFlow&&v.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(n.inFlow){if(a||t==null)return S&&i&&i(),v===""?"?":k?`? ${v}`:v}else if(a&&!p||t==null&&k)return v=`? ${v}`,w&&!S?v+=gi(v,n.indent,d(w)):A&&o&&o(),v;S&&(w=null),k?(w&&(v+=gi(v,n.indent,d(w))),v=`? ${v}
309
+ ${l}:`):(v=`${v}:`,w&&(v+=gi(v,n.indent,d(w))));let R,N,C;zt(t)?(R=!!t.spaceBefore,N=t.commentBefore,C=t.comment):(R=!1,N=null,C=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!k&&!w&&kt(t)&&(n.indentAtStart=v.length+1),A=!1,!g&&f.length>=2&&!n.inFlow&&!k&&Ws(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let x=!1;const I=Qi(t,n,()=>x=!0,()=>A=!0);let O=" ";if(w||R||N){if(O=R?`
310
+ `:"",N){const D=d(N);O+=`
311
311
  ${Cr(D,n.indent)}`}I===""&&!n.inFlow?O===`
312
312
  `&&(O=`
313
313
 
@@ -315,34 +315,34 @@ ${Cr(D,n.indent)}`}I===""&&!n.inFlow?O===`
315
315
  ${n.indent}`}else if(!k&&Ht(t)){const D=I[0],W=I.indexOf(`
316
316
  `),Q=W!==-1,ce=n.inFlow??t.flow??t.items.length===0;if(Q||!ce){let fe=!1;if(Q&&(D==="&"||D==="!")){let ge=I.indexOf(" ");D==="&"&&ge!==-1&&ge<W&&I[ge+1]==="!"&&(ge=I.indexOf(" ",ge+1)),(ge===-1||W<ge)&&(fe=!0)}fe||(O=`
317
317
  ${n.indent}`)}}else(I===""||I[0]===`
318
- `)&&(O="");return v+=O+I,n.inFlow?x&&i&&i():C&&!x?v+=gi(v,n.indent,d(C)):A&&o&&o(),v}function yd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const ha="<<",_r={identify:e=>e===ha||typeof e=="symbol"&&e.description===ha,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ve(Symbol(ha)),{addToJSMap:md}),stringify:()=>ha},rw=(e,t)=>(_r.identify(t)||kt(t)&&(!t.type||t.type===Ve.PLAIN)&&_r.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===_r.tag&&n.default);function md(e,t,n){if(n=e&&Gi(n)?n.resolve(e.doc):n,Ws(n))for(const i of n.items)Ac(e,t,i);else if(Array.isArray(n))for(const i of n)Ac(e,t,i);else Ac(e,t,n)}function Ac(e,t,n){const i=e&&Gi(n)?n.resolve(e.doc):n;if(!qs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function bd(e,t,{key:n,value:i}){if(zt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(rw(e,n))md(e,t,i);else{const o=Vn(n,"",e);if(t instanceof Map)t.set(o,Vn(i,o,e));else if(t instanceof Set)t.add(o);else{const a=iw(n,o,e),u=Vn(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function iw(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(zt(e)&&n?.doc){const i=gd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),yd(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Ec(e,t,n){const i=Hs(e,void 0,n),o=Hs(t,void 0,n);return new gn(i,o)}class gn{constructor(t,n=null){Object.defineProperty(this,Un,{value:ad}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return zt(n)&&(n=n.clone(t)),zt(i)&&(i=i.clone(t)),new gn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return bd(n,i,this)}toString(t,n,i){return t?.doc?nw(this,t,n,i):JSON.stringify(this)}}function vd(e,t,n){return(t.inFlow??e.flow?ow:sw)(e,t,n)}function sw({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const w=[];for(let S=0;S<t.length;++S){const A=t[S];let v=null;if(zt(A))!p&&A.spaceBefore&&w.push(""),da(n,w,A.commentBefore,p),A.comment&&(v=A.comment);else if(Kt(A)){const L=zt(A.key)?A.key:null;L&&(!p&&L.spaceBefore&&w.push(""),da(n,w,L.commentBefore,p))}p=!1;let R=Qi(A,g,()=>v=null,()=>p=!0);v&&(R+=gi(R,a,d(v))),p&&v&&(p=!1),w.push(i+R)}let k;if(w.length===0)k=o.start+o.end;else{k=w[0];for(let S=1;S<w.length;++S){const A=w[S];k+=A?`
318
+ `)&&(O="");return v+=O+I,n.inFlow?x&&i&&i():C&&!x?v+=gi(v,n.indent,d(C)):A&&o&&o(),v}function pd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const ha="<<",_r={identify:e=>e===ha||typeof e=="symbol"&&e.description===ha,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ve(Symbol(ha)),{addToJSMap:gd}),stringify:()=>ha},Zv=(e,t)=>(_r.identify(t)||kt(t)&&(!t.type||t.type===Ve.PLAIN)&&_r.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===_r.tag&&n.default);function gd(e,t,n){if(n=e&&Gi(n)?n.resolve(e.doc):n,Ws(n))for(const i of n.items)Sc(e,t,i);else if(Array.isArray(n))for(const i of n)Sc(e,t,i);else Sc(e,t,n)}function Sc(e,t,n){const i=e&&Gi(n)?n.resolve(e.doc):n;if(!qs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function yd(e,t,{key:n,value:i}){if(zt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Zv(e,n))gd(e,t,i);else{const o=Vn(n,"",e);if(t instanceof Map)t.set(o,Vn(i,o,e));else if(t instanceof Set)t.add(o);else{const a=ew(n,o,e),u=Vn(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function ew(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(zt(e)&&n?.doc){const i=dd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),pd(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Ac(e,t,n){const i=Hs(e,void 0,n),o=Hs(t,void 0,n);return new gn(i,o)}class gn{constructor(t,n=null){Object.defineProperty(this,Un,{value:sd}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return zt(n)&&(n=n.clone(t)),zt(i)&&(i=i.clone(t)),new gn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return yd(n,i,this)}toString(t,n,i){return t?.doc?Qv(this,t,n,i):JSON.stringify(this)}}function md(e,t,n){return(t.inFlow??e.flow?nw:tw)(e,t,n)}function tw({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const w=[];for(let S=0;S<t.length;++S){const A=t[S];let v=null;if(zt(A))!p&&A.spaceBefore&&w.push(""),da(n,w,A.commentBefore,p),A.comment&&(v=A.comment);else if(Kt(A)){const N=zt(A.key)?A.key:null;N&&(!p&&N.spaceBefore&&w.push(""),da(n,w,N.commentBefore,p))}p=!1;let R=Qi(A,g,()=>v=null,()=>p=!0);v&&(R+=gi(R,a,d(v))),p&&v&&(p=!1),w.push(i+R)}let k;if(w.length===0)k=o.start+o.end;else{k=w[0];for(let S=1;S<w.length;++S){const A=w[S];k+=A?`
319
319
  ${f}${A}`:`
320
320
  `}}return e?(k+=`
321
- `+Cr(d(e),f),l&&l()):p&&u&&u(),k}function ow({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let d=!1,g=0;const p=[];for(let S=0;S<e.length;++S){const A=e[S];let v=null;if(zt(A))A.spaceBefore&&p.push(""),da(t,p,A.commentBefore,!1),A.comment&&(v=A.comment);else if(Kt(A)){const L=zt(A.key)?A.key:null;L&&(L.spaceBefore&&p.push(""),da(t,p,L.commentBefore,!1),L.comment&&(d=!0));const C=zt(A.value)?A.value:null;C?(C.comment&&(v=C.comment),C.commentBefore&&(d=!0)):A.value==null&&L?.comment&&(v=L.comment)}v&&(d=!0);let R=Qi(A,f,()=>v=null);S<e.length-1&&(R+=","),v&&(R+=gi(R,i,l(v))),!d&&(p.length>g||R.includes(`
321
+ `+Cr(d(e),f),l&&l()):p&&u&&u(),k}function nw({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let d=!1,g=0;const p=[];for(let S=0;S<e.length;++S){const A=e[S];let v=null;if(zt(A))A.spaceBefore&&p.push(""),da(t,p,A.commentBefore,!1),A.comment&&(v=A.comment);else if(Kt(A)){const N=zt(A.key)?A.key:null;N&&(N.spaceBefore&&p.push(""),da(t,p,N.commentBefore,!1),N.comment&&(d=!0));const C=zt(A.value)?A.value:null;C?(C.comment&&(v=C.comment),C.commentBefore&&(d=!0)):A.value==null&&N?.comment&&(v=N.comment)}v&&(d=!0);let R=Qi(A,f,()=>v=null);S<e.length-1&&(R+=","),v&&(R+=gi(R,i,l(v))),!d&&(p.length>g||R.includes(`
322
322
  `))&&(d=!0),p.push(R),g=p.length}const{start:w,end:k}=n;if(p.length===0)return w+k;if(!d){const S=p.reduce((A,v)=>A+v.length+2,2);d=t.options.lineWidth>0&&S>t.options.lineWidth}if(d){let S=w;for(const A of p)S+=A?`
323
323
  ${a}${o}${A}`:`
324
324
  `;return`${S}
325
- ${o}${k}`}else return`${w}${u}${p.join(" ")}${u}${k}`}function da({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=Cr(t(i),e);n.push(a.trimStart())}}function yi(e,t){const n=kt(t)?t.value:t;for(const i of e)if(Kt(i)&&(i.key===t||i.key===n||kt(i.key)&&i.key.value===n))return i}class qn extends hd{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(qr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,d)=>{if(typeof a=="function")d=a.call(n,f,d);else if(Array.isArray(a)&&!a.includes(f))return;(d!==void 0||o)&&u.items.push(Ec(f,d,i))};if(n instanceof Map)for(const[f,d]of n)l(f,d);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Kt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new gn(t,t?.value):i=new gn(t.key,t.value);const o=yi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);kt(o.value)&&fd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=yi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=yi(this.items,t)?.value;return(!n&&kt(o)?o.value:o)??void 0}has(t){return!!yi(this.items,t)}set(t,n){this.add(new gn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)bd(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Kt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),vd(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const Zi={collection:"map",default:!0,nodeClass:qn,tag:"tag:yaml.org,2002:map",resolve(e,t){return qs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>qn.from(e,t,n)};class mi extends hd{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(zi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=pa(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=pa(t);if(typeof i!="number")return;const o=this.items[i];return!n&&kt(o)?o.value:o}has(t){const n=pa(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=pa(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];kt(o)&&fd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Vn(a,String(o++),n));return i}toString(t,n,i){return t?vd(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Hs(l,void 0,i))}}return a}}function pa(e){let t=kt(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const es={collection:"seq",default:!0,nodeClass:mi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ws(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>mi.from(e,t,n)},ga={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),Sc(e,t,n,i)}},ya={identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ve(null),stringify:({source:e},t)=>typeof e=="string"&&ya.test.test(e)?e:t.options.nullStr},xc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ve(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&xc.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function nr({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const wd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:nr},Sd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():nr(e)}},Ad={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ve(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:nr},ma=e=>typeof e=="bigint"||Number.isInteger(e),Cc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Ed(e,t,n){const{value:i}=e;return ma(i)&&i>=0?n+i.toString(t):nr(e)}const xd={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Cc(e,2,8,n),stringify:e=>Ed(e,8,"0o")},Cd={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Cc(e,0,10,n),stringify:nr},_d={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Cc(e,2,16,n),stringify:e=>Ed(e,16,"0x")},aw=[Zi,es,ga,ya,xc,xd,Cd,_d,wd,Sd,Ad];function kd(e){return typeof e=="bigint"||Number.isInteger(e)}const ba=({value:e})=>JSON.stringify(e),uw=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ba},{identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ba},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ba},{identify:kd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>kd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ba}],cw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},lw=[Zi,es].concat(uw,cw),_c={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let d=0;d<u.length;++d)f+=String.fromCharCode(u[d]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ve.BLOCK_LITERAL),t!==Ve.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),d=Math.ceil(l.length/f),g=new Array(d);for(let p=0,w=0;p<d;++p,w+=f)g[p]=l.substr(w,f);l=g.join(t===Ve.BLOCK_LITERAL?`
326
- `:" ")}return Sc({comment:e,type:t,value:l},i,o,a)}};function Td(e,t){if(Ws(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Kt(i)){if(qs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new gn(new Ve(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
325
+ ${o}${k}`}else return`${w}${u}${p.join(" ")}${u}${k}`}function da({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=Cr(t(i),e);n.push(a.trimStart())}}function yi(e,t){const n=kt(t)?t.value:t;for(const i of e)if(Kt(i)&&(i.key===t||i.key===n||kt(i.key)&&i.key.value===n))return i}class qn extends ld{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(qr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,d)=>{if(typeof a=="function")d=a.call(n,f,d);else if(Array.isArray(a)&&!a.includes(f))return;(d!==void 0||o)&&u.items.push(Ac(f,d,i))};if(n instanceof Map)for(const[f,d]of n)l(f,d);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Kt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new gn(t,t?.value):i=new gn(t.key,t.value);const o=yi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);kt(o.value)&&cd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=yi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=yi(this.items,t)?.value;return(!n&&kt(o)?o.value:o)??void 0}has(t){return!!yi(this.items,t)}set(t,n){this.add(new gn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)yd(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Kt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),md(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const Zi={collection:"map",default:!0,nodeClass:qn,tag:"tag:yaml.org,2002:map",resolve(e,t){return qs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>qn.from(e,t,n)};class mi extends ld{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(zi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=pa(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=pa(t);if(typeof i!="number")return;const o=this.items[i];return!n&&kt(o)?o.value:o}has(t){const n=pa(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=pa(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];kt(o)&&cd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Vn(a,String(o++),n));return i}toString(t,n,i){return t?md(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Hs(l,void 0,i))}}return a}}function pa(e){let t=kt(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const es={collection:"seq",default:!0,nodeClass:mi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ws(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>mi.from(e,t,n)},ga={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),wc(e,t,n,i)}},ya={identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ve(null),stringify:({source:e},t)=>typeof e=="string"&&ya.test.test(e)?e:t.options.nullStr},Ec={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ve(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Ec.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function nr({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const bd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:nr},vd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():nr(e)}},wd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ve(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:nr},ma=e=>typeof e=="bigint"||Number.isInteger(e),xc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Sd(e,t,n){const{value:i}=e;return ma(i)&&i>=0?n+i.toString(t):nr(e)}const Ad={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>xc(e,2,8,n),stringify:e=>Sd(e,8,"0o")},Ed={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>xc(e,0,10,n),stringify:nr},xd={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>xc(e,2,16,n),stringify:e=>Sd(e,16,"0x")},rw=[Zi,es,ga,ya,Ec,Ad,Ed,xd,bd,vd,wd];function Cd(e){return typeof e=="bigint"||Number.isInteger(e)}const ba=({value:e})=>JSON.stringify(e),iw=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ba},{identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ba},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ba},{identify:Cd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Cd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ba}],sw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},ow=[Zi,es].concat(iw,sw),Cc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let d=0;d<u.length;++d)f+=String.fromCharCode(u[d]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ve.BLOCK_LITERAL),t!==Ve.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),d=Math.ceil(l.length/f),g=new Array(d);for(let p=0,w=0;p<d;++p,w+=f)g[p]=l.substr(w,f);l=g.join(t===Ve.BLOCK_LITERAL?`
326
+ `:" ")}return wc({comment:e,type:t,value:l},i,o,a)}};function _d(e,t){if(Ws(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Kt(i)){if(qs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new gn(new Ve(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
327
327
  ${o.key.commentBefore}`:i.commentBefore),i.comment){const a=o.value??o.key;a.comment=a.comment?`${i.comment}
328
- ${a.comment}`:i.comment}i=o}e.items[n]=Kt(i)?i:new gn(i)}}else t("Expected a sequence for this tag");return e}function Od(e,t,n){const{replacer:i}=n,o=new mi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const d=Object.keys(u);if(d.length===1)l=d[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=u;o.items.push(Ec(l,f,n))}return o}const kc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Td,createNode:Od};class ts extends mi{constructor(){super(),this.add=qn.prototype.add.bind(this),this.delete=qn.prototype.delete.bind(this),this.get=qn.prototype.get.bind(this),this.has=qn.prototype.has.bind(this),this.set=qn.prototype.set.bind(this),this.tag=ts.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Kt(o)?(a=Vn(o.key,"",n),u=Vn(o.value,a,n)):a=Vn(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=Od(t,n,i),a=new this;return a.items=o.items,a}}ts.tag="tag:yaml.org,2002:omap";const Tc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ts,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Td(e,t),i=[];for(const{key:o}of n.items)kt(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ts,n)},createNode:(e,t,n)=>ts.from(e,t,n)};function Id({value:e,source:t},n){return t&&(e?Fd:Bd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Fd={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ve(!0),stringify:Id},Bd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ve(!1),stringify:Id},fw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:nr},hw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():nr(e)}},dw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ve(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:nr},Js=e=>typeof e=="bigint"||Number.isInteger(e);function va(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function Oc(e,t,n){const{value:i}=e;if(Js(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return nr(e)}const pw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>va(e,2,2,n),stringify:e=>Oc(e,2,"0b")},gw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>va(e,1,8,n),stringify:e=>Oc(e,8,"0")},yw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>va(e,0,10,n),stringify:nr},mw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>va(e,2,16,n),stringify:e=>Oc(e,16,"0x")};class ns extends qn{constructor(t){super(t),this.tag=ns.tag}add(t){let n;Kt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new gn(t.key,null):n=new gn(t,null),yi(this.items,n.key)||this.items.push(n)}get(t,n){const i=yi(this.items,t);return!n&&Kt(i)?kt(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=yi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new gn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(Ec(u,null,i));return a}}ns.tag="tag:yaml.org,2002:set";const Ic={collection:"map",identify:e=>e instanceof Set,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ns.from(e,t,n),resolve(e,t){if(qs(e)){if(e.hasAllNullValues(!0))return Object.assign(new ns,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Fc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function Dd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return nr(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Pd={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Fc(e,n),stringify:Dd},Rd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Fc(e,!1),stringify:Dd},wa={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(wa.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Fc(g,!1);Math.abs(p)<30&&(p*=60),d-=6e4*p}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Nd=[Zi,es,ga,ya,Fd,Bd,pw,gw,yw,mw,fw,hw,dw,_c,_r,Tc,kc,Ic,Pd,Rd,wa],Ld=new Map([["core",aw],["failsafe",[Zi,es,ga]],["json",lw],["yaml11",Nd],["yaml-1.1",Nd]]),jd={binary:_c,bool:xc,float:Ad,floatExp:Sd,floatNaN:wd,floatTime:Rd,int:Cd,intHex:_d,intOct:xd,intTime:Pd,map:Zi,merge:_r,null:ya,omap:Tc,pairs:kc,seq:es,set:Ic,timestamp:wa},bw={"tag:yaml.org,2002:binary":_c,"tag:yaml.org,2002:merge":_r,"tag:yaml.org,2002:omap":Tc,"tag:yaml.org,2002:pairs":kc,"tag:yaml.org,2002:set":Ic,"tag:yaml.org,2002:timestamp":wa};function Bc(e,t,n){const i=Ld.get(t);if(i&&!e)return n&&!i.includes(_r)?i.concat(_r):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Ld.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(_r)),o.reduce((a,u)=>{const l=typeof u=="string"?jd[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(jd).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const vw=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Dc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Bc(t,"compat"):t?Bc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?bw:{},this.tags=Bc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,qr,{value:Zi}),Object.defineProperty(this,gr,{value:ga}),Object.defineProperty(this,zi,{value:es}),this.sortMapEntries=typeof u=="function"?u:u===!0?vw:null}clone(){const t=Object.create(Dc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function ww(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=gd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(Cr(f,""))}let u=!1,l=null;if(e.contents){if(zt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(Cr(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=Qi(e.contents,o,()=>l=null,f);l&&(d+=gi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(Qi(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
328
+ ${a.comment}`:i.comment}i=o}e.items[n]=Kt(i)?i:new gn(i)}}else t("Expected a sequence for this tag");return e}function kd(e,t,n){const{replacer:i}=n,o=new mi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const d=Object.keys(u);if(d.length===1)l=d[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=u;o.items.push(Ac(l,f,n))}return o}const _c={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:_d,createNode:kd};class ts extends mi{constructor(){super(),this.add=qn.prototype.add.bind(this),this.delete=qn.prototype.delete.bind(this),this.get=qn.prototype.get.bind(this),this.has=qn.prototype.has.bind(this),this.set=qn.prototype.set.bind(this),this.tag=ts.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Kt(o)?(a=Vn(o.key,"",n),u=Vn(o.value,a,n)):a=Vn(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=kd(t,n,i),a=new this;return a.items=o.items,a}}ts.tag="tag:yaml.org,2002:omap";const kc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ts,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=_d(e,t),i=[];for(const{key:o}of n.items)kt(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ts,n)},createNode:(e,t,n)=>ts.from(e,t,n)};function Td({value:e,source:t},n){return t&&(e?Od:Id).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Od={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ve(!0),stringify:Td},Id={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ve(!1),stringify:Td},aw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:nr},uw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():nr(e)}},cw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ve(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:nr},Js=e=>typeof e=="bigint"||Number.isInteger(e);function va(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function Tc(e,t,n){const{value:i}=e;if(Js(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return nr(e)}const lw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>va(e,2,2,n),stringify:e=>Tc(e,2,"0b")},fw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>va(e,1,8,n),stringify:e=>Tc(e,8,"0")},hw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>va(e,0,10,n),stringify:nr},dw={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>va(e,2,16,n),stringify:e=>Tc(e,16,"0x")};class ns extends qn{constructor(t){super(t),this.tag=ns.tag}add(t){let n;Kt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new gn(t.key,null):n=new gn(t,null),yi(this.items,n.key)||this.items.push(n)}get(t,n){const i=yi(this.items,t);return!n&&Kt(i)?kt(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=yi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new gn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(Ac(u,null,i));return a}}ns.tag="tag:yaml.org,2002:set";const Oc={collection:"map",identify:e=>e instanceof Set,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ns.from(e,t,n),resolve(e,t){if(qs(e)){if(e.hasAllNullValues(!0))return Object.assign(new ns,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ic(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function Fd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return nr(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Bd={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Ic(e,n),stringify:Fd},Dd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Ic(e,!1),stringify:Fd},wa={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(wa.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Ic(g,!1);Math.abs(p)<30&&(p*=60),d-=6e4*p}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Pd=[Zi,es,ga,ya,Od,Id,lw,fw,hw,dw,aw,uw,cw,Cc,_r,kc,_c,Oc,Bd,Dd,wa],Rd=new Map([["core",rw],["failsafe",[Zi,es,ga]],["json",ow],["yaml11",Pd],["yaml-1.1",Pd]]),Ld={binary:Cc,bool:Ec,float:wd,floatExp:vd,floatNaN:bd,floatTime:Dd,int:Ed,intHex:xd,intOct:Ad,intTime:Bd,map:Zi,merge:_r,null:ya,omap:kc,pairs:_c,seq:es,set:Oc,timestamp:wa},pw={"tag:yaml.org,2002:binary":Cc,"tag:yaml.org,2002:merge":_r,"tag:yaml.org,2002:omap":kc,"tag:yaml.org,2002:pairs":_c,"tag:yaml.org,2002:set":Oc,"tag:yaml.org,2002:timestamp":wa};function Fc(e,t,n){const i=Rd.get(t);if(i&&!e)return n&&!i.includes(_r)?i.concat(_r):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Rd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(_r)),o.reduce((a,u)=>{const l=typeof u=="string"?Ld[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(Ld).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const gw=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Bc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Fc(t,"compat"):t?Fc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?pw:{},this.tags=Fc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,qr,{value:Zi}),Object.defineProperty(this,gr,{value:ga}),Object.defineProperty(this,zi,{value:es}),this.sortMapEntries=typeof u=="function"?u:u===!0?gw:null}clone(){const t=Object.create(Bc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function yw(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=dd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(Cr(f,""))}let u=!1,l=null;if(e.contents){if(zt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(Cr(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=Qi(e.contents,o,()=>l=null,f);l&&(d+=gi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(Qi(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
329
329
  `)?(n.push("..."),n.push(Cr(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&u&&(f=f.replace(/^\n+/,"")),f&&((!u||l)&&n[n.length-1]!==""&&n.push(""),n.push(Cr(a(f),"")))}return n.join(`
330
330
  `)+`
331
- `}class Ys{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Un,{value:gc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new pn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Ys.prototype,{[Un]:{value:gc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=zt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){rs(this.contents)&&this.contents.add(t)}addIn(t,n){rs(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=cd(this);t.anchor=!n||i.has(n)?ld(n||"a",i):n}return new mc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const v=L=>typeof L=="number"||L instanceof String||L instanceof Number,R=n.filter(v).map(String);R.length>0&&(n=n.concat(R)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:g}=i??{},{onAnchor:p,setAnchors:w,sourceObjects:k}=Gv(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:k},A=Hs(t,g,S);return l&&Ht(A)&&(A.flow=!0),w(),A}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new gn(o,a)}delete(t){return rs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return zs(t)?this.contents==null?!1:(this.contents=null,!0):rs(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ht(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return zs(t)?!n&&kt(this.contents)?this.contents.value:this.contents:Ht(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ht(this.contents)?this.contents.has(t):!1}hasIn(t){return zs(t)?this.contents!==void 0:Ht(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=oa(this.schema,[t],n):rs(this.contents)&&this.contents.set(t,n)}setIn(t,n){zs(t)?this.contents=n:this.contents==null?this.contents=oa(this.schema,Array.from(t),n):rs(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new pn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new pn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Dc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Vn(this.contents,n??"",l);if(typeof a=="function")for(const{count:d,res:g}of l.anchors.values())a(g,d);return typeof u=="function"?Yi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return ww(this,t)}}function rs(e){if(Ht(e))return!0;throw new Error("Expected a YAML collection as document contents")}class $d extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Xs extends $d{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class Sw extends $d{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Md=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
331
+ `}class Ys{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Un,{value:pc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new pn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Ys.prototype,{[Un]:{value:pc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=zt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){rs(this.contents)&&this.contents.add(t)}addIn(t,n){rs(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=ad(this);t.anchor=!n||i.has(n)?ud(n||"a",i):n}return new yc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const v=N=>typeof N=="number"||N instanceof String||N instanceof Number,R=n.filter(v).map(String);R.length>0&&(n=n.concat(R)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:g}=i??{},{onAnchor:p,setAnchors:w,sourceObjects:k}=Wv(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:k},A=Hs(t,g,S);return l&&Ht(A)&&(A.flow=!0),w(),A}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new gn(o,a)}delete(t){return rs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return zs(t)?this.contents==null?!1:(this.contents=null,!0):rs(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ht(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return zs(t)?!n&&kt(this.contents)?this.contents.value:this.contents:Ht(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ht(this.contents)?this.contents.has(t):!1}hasIn(t){return zs(t)?this.contents!==void 0:Ht(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=oa(this.schema,[t],n):rs(this.contents)&&this.contents.set(t,n)}setIn(t,n){zs(t)?this.contents=n:this.contents==null?this.contents=oa(this.schema,Array.from(t),n):rs(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new pn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new pn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Bc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Vn(this.contents,n??"",l);if(typeof a=="function")for(const{count:d,res:g}of l.anchors.values())a(g,d);return typeof u=="function"?Yi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return yw(this,t)}}function rs(e){if(Ht(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Nd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Xs extends Nd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class mw extends Nd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const jd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
332
332
  `),u=l+u}if(/[^ ]/.test(u)){let l=1;const f=n.linePos[1];f&&f.line===i&&f.col>o&&(l=Math.max(1,Math.min(f.col-o,80-a)));const d=" ".repeat(a)+"^".repeat(l);n.message+=`:
333
333
 
334
334
  ${u}
335
335
  ${d}
336
- `}};function is(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,g=l,p="",w="",k=!1,S=!1,A=null,v=null,R=null,L=null,C=null,x=null,I=null;for(const W of e)switch(S&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S=!1),A&&(d&&W.type!=="comment"&&W.type!=="newline"&&a(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(A=W),g=!0;break;case"comment":{g||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Q=W.source.substring(1)||" ";p?p+=w+Q:p=Q,w="",d=!1;break}case"newline":d?p?p+=W.source:(!x||n!=="seq-item-ind")&&(f=!0):w+=W.source,d=!0,k=!0,(v||R)&&(L=W),g=!0;break;case"anchor":v&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=W,I===null&&(I=W.offset),d=!1,g=!1,S=!0;break;case"tag":{R&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),R=W,I===null&&(I=W.offset),d=!1,g=!1,S=!0;break}case n:(v||R)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),x&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),x=W,d=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){C&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=W,d=!1,g=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,g=!1}const O=e[e.length-1],D=O?O.offset+O.source.length:o;return S&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A&&(d&&A.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:C,found:x,spaceBefore:f,comment:p,hasNewline:k,anchor:v,tag:R,newlineAfterProp:L,end:D,start:I??D}}function Qs(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
337
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Qs(t.key)||Qs(t.value))return!0}return!1;default:return!0}}function Pc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Qs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Ud(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||kt(a)&&kt(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Vd="All mapping items must start at the same column";function Aw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??qn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,d=null;for(const g of i.items){const{start:p,key:w,sep:k,value:S}=g,A=is(p,{indicator:"explicit-key-ind",next:w??k?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),v=!A.found;if(v){if(w&&(w.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in w&&w.indent!==i.indent&&o(f,"BAD_INDENT",Vd)),!A.anchor&&!A.tag&&!k){d=A.end,A.comment&&(l.comment?l.comment+=`
338
- `+A.comment:l.comment=A.comment);continue}(A.newlineAfterProp||Qs(w))&&o(w??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else A.found?.indent!==i.indent&&o(f,"BAD_INDENT",Vd);n.atKey=!0;const R=A.end,L=w?e(n,w,A,o):t(n,R,p,null,A,o);n.schema.compat&&Pc(i.indent,w,o),n.atKey=!1,Ud(n,l.items,L)&&o(R,"DUPLICATE_KEY","Map keys must be unique");const C=is(k??[],{indicator:"map-value-ind",next:S,offset:L.range[2],onError:o,parentIndent:i.indent,startOnNewline:!w||w.type==="block-scalar"});if(f=C.end,C.found){v&&(S?.type==="block-map"&&!C.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&A.start<C.found.offset-1024&&o(L.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const x=S?e(n,S,C,o):t(n,f,k,null,C,o);n.schema.compat&&Pc(i.indent,S,o),f=x.range[2];const I=new gn(L,x);n.options.keepSourceTokens&&(I.srcToken=g),l.items.push(I)}else{v&&o(L.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(L.comment?L.comment+=`
339
- `+C.comment:L.comment=C.comment);const x=new gn(L);n.options.keepSourceTokens&&(x.srcToken=g),l.items.push(x)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function Ew({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??mi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:g,value:p}of i.items){const w=is(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!w.found)if(w.anchor||w.tag||p)p&&p.type==="block-seq"?o(w.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{d=w.end,w.comment&&(l.comment=w.comment);continue}const k=p?e(n,p,w,o):t(n,w.end,g,null,w,o);n.schema.compat&&Pc(i.indent,p,o),f=k.range[2],l.items.push(k)}return l.range=[i.offset,f,d??f],l}function Zs(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:d}=l;switch(d){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Rc="Block collections are not allowed within flow collections",Nc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function xw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?qn:mi),d=new f(n.schema);d.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let v=0;v<i.items.length;++v){const R=i.items[v],{start:L,key:C,sep:x,value:I}=R,O=is(L,{flow:l,indicator:"explicit-key-ind",next:C??x?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!x&&!I){v===0&&O.comma?o(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):v<i.items.length-1&&o(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),O.comment&&(d.comment?d.comment+=`
340
- `+O.comment:d.comment=O.comment),p=O.end;continue}!u&&n.options.strict&&Qs(C)&&o(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(v===0)O.comma&&o(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(O.comma||o(O.start,"MISSING_CHAR",`Missing , between ${l} items`),O.comment){let D="";e:for(const W of L)switch(W.type){case"comma":case"space":break;case"comment":D=W.source.substring(1);break e;default:break e}if(D){let W=d.items[d.items.length-1];Kt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
341
- `+D:W.comment=D,O.comment=O.comment.substring(D.length+1)}}if(!u&&!x&&!O.found){const D=I?e(n,I,O,o):t(n,O.end,x,null,O,o);d.items.push(D),p=D.range[2],Nc(I)&&o(D.range,"BLOCK_IN_FLOW",Rc)}else{n.atKey=!0;const D=O.end,W=C?e(n,C,O,o):t(n,D,L,null,O,o);Nc(C)&&o(W.range,"BLOCK_IN_FLOW",Rc),n.atKey=!1;const Q=is(x??[],{flow:l,indicator:"map-value-ind",next:I,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(Q.found){if(!u&&!O.found&&n.options.strict){if(x)for(const ge of x){if(ge===Q.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<Q.found.offset-1024&&o(Q.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${l}`):o(Q.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const ce=I?e(n,I,Q,o):Q.found?t(n,Q.end,x,null,Q,o):null;ce?Nc(I)&&o(ce.range,"BLOCK_IN_FLOW",Rc):Q.comment&&(W.comment?W.comment+=`
342
- `+Q.comment:W.comment=Q.comment);const fe=new gn(W,ce);if(n.options.keepSourceTokens&&(fe.srcToken=R),u){const ge=d;Ud(n,ge.items,W)&&o(D,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(fe)}else{const ge=new qn(n.schema);ge.flow=!0,ge.items.push(fe);const ye=(ce??W).range;ge.range=[W.range[0],ye[1],ye[2]],d.items.push(ge)}p=ce?ce.range[2]:Q.end}}const w=u?"}":"]",[k,...S]=i.end;let A=p;if(k&&k.source===w)A=k.offset+k.source.length;else{const v=l[0].toUpperCase()+l.substring(1),R=g?`${v} must end with a ${w}`:`${v} in block collection must be sufficiently indented and end with a ${w}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",R),k&&k.source.length!==1&&S.unshift(k)}if(S.length>0){const v=Zs(S,A,n.options.strict,o);v.comment&&(d.comment?d.comment+=`
343
- `+v.comment:d.comment=v.comment),d.range=[i.offset,A,v.offset]}else d.range=[i.offset,A,A];return d}function Lc(e,t,n,i,o,a){const u=n.type==="block-map"?Aw(e,t,n,i,a):n.type==="block-seq"?Ew(e,t,n,i,a):xw(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function Cw(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,w=>o(a,"TAG_RESOLVE_FAILED",w)):null;if(n.type==="block-seq"){const{anchor:w,newlineAfterProp:k}=i,S=w&&a?w.offset>a.offset?w:a:w??a;S&&(!k||k.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===qn.tagName&&l==="map"||u===mi.tagName&&l==="seq")return Lc(e,t,n,o,u);let f=t.schema.tags.find(w=>w.tag===u&&w.collection===l);if(!f){const w=t.schema.knownTags[u];if(w&&w.collection===l)t.schema.tags.push(Object.assign({},w,{default:!1})),f=w;else return w?.collection?o(a,"BAD_COLLECTION_TYPE",`${w.tag} used for ${l} collection, but expects ${w.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Lc(e,t,n,o,u)}const d=Lc(e,t,n,o,u,f),g=f.resolve?.(d,w=>o(a,"TAG_RESOLVE_FAILED",w),t.options)??d,p=zt(g)?g:new Ve(g);return p.range=d.range,p.tag=u,f?.format&&(p.format=f.format),p}function _w(e,t,n){const i=t.offset,o=kw(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?Ve.BLOCK_FOLDED:Ve.BLOCK_LITERAL,u=t.source?Tw(t.source):[];let l=u.length;for(let A=u.length-1;A>=0;--A){const v=u[A][1];if(v===""||v==="\r")l=A;else break}if(l===0){const A=o.chomp==="+"&&u.length>0?`
336
+ `}};function is(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,g=l,p="",w="",k=!1,S=!1,A=null,v=null,R=null,N=null,C=null,x=null,I=null;for(const W of e)switch(S&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S=!1),A&&(d&&W.type!=="comment"&&W.type!=="newline"&&a(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(A=W),g=!0;break;case"comment":{g||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Q=W.source.substring(1)||" ";p?p+=w+Q:p=Q,w="",d=!1;break}case"newline":d?p?p+=W.source:(!x||n!=="seq-item-ind")&&(f=!0):w+=W.source,d=!0,k=!0,(v||R)&&(N=W),g=!0;break;case"anchor":v&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=W,I===null&&(I=W.offset),d=!1,g=!1,S=!0;break;case"tag":{R&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),R=W,I===null&&(I=W.offset),d=!1,g=!1,S=!0;break}case n:(v||R)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),x&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),x=W,d=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){C&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=W,d=!1,g=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,g=!1}const O=e[e.length-1],D=O?O.offset+O.source.length:o;return S&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A&&(d&&A.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:C,found:x,spaceBefore:f,comment:p,hasNewline:k,anchor:v,tag:R,newlineAfterProp:N,end:D,start:I??D}}function Qs(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
337
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Qs(t.key)||Qs(t.value))return!0}return!1;default:return!0}}function Dc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Qs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function $d(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||kt(a)&&kt(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Md="All mapping items must start at the same column";function bw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??qn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,d=null;for(const g of i.items){const{start:p,key:w,sep:k,value:S}=g,A=is(p,{indicator:"explicit-key-ind",next:w??k?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),v=!A.found;if(v){if(w&&(w.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in w&&w.indent!==i.indent&&o(f,"BAD_INDENT",Md)),!A.anchor&&!A.tag&&!k){d=A.end,A.comment&&(l.comment?l.comment+=`
338
+ `+A.comment:l.comment=A.comment);continue}(A.newlineAfterProp||Qs(w))&&o(w??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else A.found?.indent!==i.indent&&o(f,"BAD_INDENT",Md);n.atKey=!0;const R=A.end,N=w?e(n,w,A,o):t(n,R,p,null,A,o);n.schema.compat&&Dc(i.indent,w,o),n.atKey=!1,$d(n,l.items,N)&&o(R,"DUPLICATE_KEY","Map keys must be unique");const C=is(k??[],{indicator:"map-value-ind",next:S,offset:N.range[2],onError:o,parentIndent:i.indent,startOnNewline:!w||w.type==="block-scalar"});if(f=C.end,C.found){v&&(S?.type==="block-map"&&!C.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&A.start<C.found.offset-1024&&o(N.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const x=S?e(n,S,C,o):t(n,f,k,null,C,o);n.schema.compat&&Dc(i.indent,S,o),f=x.range[2];const I=new gn(N,x);n.options.keepSourceTokens&&(I.srcToken=g),l.items.push(I)}else{v&&o(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(N.comment?N.comment+=`
339
+ `+C.comment:N.comment=C.comment);const x=new gn(N);n.options.keepSourceTokens&&(x.srcToken=g),l.items.push(x)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function vw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??mi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:g,value:p}of i.items){const w=is(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!w.found)if(w.anchor||w.tag||p)p&&p.type==="block-seq"?o(w.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{d=w.end,w.comment&&(l.comment=w.comment);continue}const k=p?e(n,p,w,o):t(n,w.end,g,null,w,o);n.schema.compat&&Dc(i.indent,p,o),f=k.range[2],l.items.push(k)}return l.range=[i.offset,f,d??f],l}function Zs(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:d}=l;switch(d){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Pc="Block collections are not allowed within flow collections",Rc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function ww({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?qn:mi),d=new f(n.schema);d.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let v=0;v<i.items.length;++v){const R=i.items[v],{start:N,key:C,sep:x,value:I}=R,O=is(N,{flow:l,indicator:"explicit-key-ind",next:C??x?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!x&&!I){v===0&&O.comma?o(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):v<i.items.length-1&&o(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),O.comment&&(d.comment?d.comment+=`
340
+ `+O.comment:d.comment=O.comment),p=O.end;continue}!u&&n.options.strict&&Qs(C)&&o(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(v===0)O.comma&&o(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(O.comma||o(O.start,"MISSING_CHAR",`Missing , between ${l} items`),O.comment){let D="";e:for(const W of N)switch(W.type){case"comma":case"space":break;case"comment":D=W.source.substring(1);break e;default:break e}if(D){let W=d.items[d.items.length-1];Kt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
341
+ `+D:W.comment=D,O.comment=O.comment.substring(D.length+1)}}if(!u&&!x&&!O.found){const D=I?e(n,I,O,o):t(n,O.end,x,null,O,o);d.items.push(D),p=D.range[2],Rc(I)&&o(D.range,"BLOCK_IN_FLOW",Pc)}else{n.atKey=!0;const D=O.end,W=C?e(n,C,O,o):t(n,D,N,null,O,o);Rc(C)&&o(W.range,"BLOCK_IN_FLOW",Pc),n.atKey=!1;const Q=is(x??[],{flow:l,indicator:"map-value-ind",next:I,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(Q.found){if(!u&&!O.found&&n.options.strict){if(x)for(const ge of x){if(ge===Q.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<Q.found.offset-1024&&o(Q.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${l}`):o(Q.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const ce=I?e(n,I,Q,o):Q.found?t(n,Q.end,x,null,Q,o):null;ce?Rc(I)&&o(ce.range,"BLOCK_IN_FLOW",Pc):Q.comment&&(W.comment?W.comment+=`
342
+ `+Q.comment:W.comment=Q.comment);const fe=new gn(W,ce);if(n.options.keepSourceTokens&&(fe.srcToken=R),u){const ge=d;$d(n,ge.items,W)&&o(D,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(fe)}else{const ge=new qn(n.schema);ge.flow=!0,ge.items.push(fe);const ye=(ce??W).range;ge.range=[W.range[0],ye[1],ye[2]],d.items.push(ge)}p=ce?ce.range[2]:Q.end}}const w=u?"}":"]",[k,...S]=i.end;let A=p;if(k&&k.source===w)A=k.offset+k.source.length;else{const v=l[0].toUpperCase()+l.substring(1),R=g?`${v} must end with a ${w}`:`${v} in block collection must be sufficiently indented and end with a ${w}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",R),k&&k.source.length!==1&&S.unshift(k)}if(S.length>0){const v=Zs(S,A,n.options.strict,o);v.comment&&(d.comment?d.comment+=`
343
+ `+v.comment:d.comment=v.comment),d.range=[i.offset,A,v.offset]}else d.range=[i.offset,A,A];return d}function Lc(e,t,n,i,o,a){const u=n.type==="block-map"?bw(e,t,n,i,a):n.type==="block-seq"?vw(e,t,n,i,a):ww(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function Sw(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,w=>o(a,"TAG_RESOLVE_FAILED",w)):null;if(n.type==="block-seq"){const{anchor:w,newlineAfterProp:k}=i,S=w&&a?w.offset>a.offset?w:a:w??a;S&&(!k||k.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===qn.tagName&&l==="map"||u===mi.tagName&&l==="seq")return Lc(e,t,n,o,u);let f=t.schema.tags.find(w=>w.tag===u&&w.collection===l);if(!f){const w=t.schema.knownTags[u];if(w&&w.collection===l)t.schema.tags.push(Object.assign({},w,{default:!1})),f=w;else return w?.collection?o(a,"BAD_COLLECTION_TYPE",`${w.tag} used for ${l} collection, but expects ${w.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Lc(e,t,n,o,u)}const d=Lc(e,t,n,o,u,f),g=f.resolve?.(d,w=>o(a,"TAG_RESOLVE_FAILED",w),t.options)??d,p=zt(g)?g:new Ve(g);return p.range=d.range,p.tag=u,f?.format&&(p.format=f.format),p}function Aw(e,t,n){const i=t.offset,o=Ew(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?Ve.BLOCK_FOLDED:Ve.BLOCK_LITERAL,u=t.source?xw(t.source):[];let l=u.length;for(let A=u.length-1;A>=0;--A){const v=u[A][1];if(v===""||v==="\r")l=A;else break}if(l===0){const A=o.chomp==="+"&&u.length>0?`
344
344
  `.repeat(Math.max(1,u.length-1)):"";let v=i+o.length;return t.source&&(v+=t.source.length),{value:A,type:a,comment:o.comment,range:[i,v,v]}}let f=t.indent+o.indent,d=t.offset+o.length,g=0;for(let A=0;A<l;++A){const[v,R]=u[A];if(R===""||R==="\r")o.indent===0&&v.length>f&&(f=v.length);else{v.length<f&&n(d+v.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=v.length),g=A,f===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=v.length+R.length+1}for(let A=u.length-1;A>=l;--A)u[A][0].length>f&&(l=A+1);let p="",w="",k=!1;for(let A=0;A<g;++A)p+=u[A][0].slice(f)+`
345
- `;for(let A=g;A<l;++A){let[v,R]=u[A];d+=v.length+R.length+1;const L=R[R.length-1]==="\r";if(L&&(R=R.slice(0,-1)),R&&v.length<f){const x=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-R.length-(L?2:1),"BAD_INDENT",x),v=""}a===Ve.BLOCK_LITERAL?(p+=w+v.slice(f)+R,w=`
345
+ `;for(let A=g;A<l;++A){let[v,R]=u[A];d+=v.length+R.length+1;const N=R[R.length-1]==="\r";if(N&&(R=R.slice(0,-1)),R&&v.length<f){const x=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-R.length-(N?2:1),"BAD_INDENT",x),v=""}a===Ve.BLOCK_LITERAL?(p+=w+v.slice(f)+R,w=`
346
346
  `):v.length>f||R[0]===" "?(w===" "?w=`
347
347
  `:!k&&w===`
348
348
  `&&(w=`
@@ -355,92 +355,92 @@ ${d}
355
355
  `+u[A][0].slice(f);p[p.length-1]!==`
356
356
  `&&(p+=`
357
357
  `);break;default:p+=`
358
- `}const S=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,S,S]}}function kw({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let w=1;w<o.length;++w){const k=o[w];if(!l&&(k==="-"||k==="+"))l=k;else{const S=Number(k);!u&&S?u=S:f===-1&&(f=e+w)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,g="",p=o.length;for(let w=1;w<t.length;++w){const k=t[w];switch(k.type){case"space":d=!0;case"newline":p+=k.source.length;break;case"comment":n&&!d&&i(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=k.source.length,g=k.source.substring(1);break;case"error":i(k,"UNEXPECTED_TOKEN",k.message),p+=k.source.length;break;default:{const S=`Unexpected token in block scalar header: ${k.type}`;i(k,"UNEXPECTED_TOKEN",S);const A=k.source;A&&typeof A=="string"&&(p+=A.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function Tw(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function Ow(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(w,k,S)=>n(i+w,k,S);switch(o){case"scalar":l=Ve.PLAIN,f=Iw(a,d);break;case"single-quoted-scalar":l=Ve.QUOTE_SINGLE,f=Fw(a,d);break;case"double-quoted-scalar":l=Ve.QUOTE_DOUBLE,f=Bw(a,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=Zs(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function Iw(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),qd(e)}function Fw(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),qd(e.slice(1,-1)).replace(/''/g,"'")}function qd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
358
+ `}const S=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,S,S]}}function Ew({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let w=1;w<o.length;++w){const k=o[w];if(!l&&(k==="-"||k==="+"))l=k;else{const S=Number(k);!u&&S?u=S:f===-1&&(f=e+w)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,g="",p=o.length;for(let w=1;w<t.length;++w){const k=t[w];switch(k.type){case"space":d=!0;case"newline":p+=k.source.length;break;case"comment":n&&!d&&i(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=k.source.length,g=k.source.substring(1);break;case"error":i(k,"UNEXPECTED_TOKEN",k.message),p+=k.source.length;break;default:{const S=`Unexpected token in block scalar header: ${k.type}`;i(k,"UNEXPECTED_TOKEN",S);const A=k.source;A&&typeof A=="string"&&(p+=A.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function xw(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function Cw(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(w,k,S)=>n(i+w,k,S);switch(o){case"scalar":l=Ve.PLAIN,f=_w(a,d);break;case"single-quoted-scalar":l=Ve.QUOTE_SINGLE,f=kw(a,d);break;case"double-quoted-scalar":l=Ve.QUOTE_DOUBLE,f=Tw(a,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=Zs(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function _w(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Ud(e)}function kw(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Ud(e.slice(1,-1)).replace(/''/g,"'")}function Ud(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
359
359
  `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
360
360
  `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],a=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?a===`
361
361
  `?o+=a:a=`
362
- `:(o+=a+i[1],a=" "),u=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,i=l.exec(e),o+a+(i?.[1]??"")}function Bw(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
362
+ `:(o+=a+i[1],a=" "),u=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,i=l.exec(e),o+a+(i?.[1]??"")}function Tw(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
363
363
  `))if(o===`
364
- `){const{fold:a,offset:u}=Dw(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Pw[a];if(u)n+=u;else if(a===`
364
+ `){const{fold:a,offset:u}=Ow(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Iw[a];if(u)n+=u;else if(a===`
365
365
  `)for(a=e[i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="\r"&&e[i+1]===`
366
- `)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){const l={x:2,u:4,U:8}[a];n+=Rw(e,i+1,l,t),i+=l}else{const l=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const a=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
366
+ `)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){const l={x:2,u:4,U:8}[a];n+=Fw(e,i+1,l,t),i+=l}else{const l=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const a=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
367
367
  `&&!(u==="\r"&&e[i+2]===`
368
- `)&&(n+=i>a?e.slice(a,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Dw(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
368
+ `)&&(n+=i>a?e.slice(a,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Ow(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
369
369
  `||i==="\r")&&!(i==="\r"&&e[t+2]!==`
370
370
  `);)i===`
371
371
  `&&(n+=`
372
- `),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Pw={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
373
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Rw(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function Wd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?_w(e,t,i):Ow(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[gr]:f?d=Nw(e.schema,o,f,n,i):t.type==="scalar"?d=Lw(e,o,t,i):d=e.schema[gr];let g;try{const p=d.resolve(o,w=>i(n??t,"TAG_RESOLVE_FAILED",w),e.options);g=kt(p)?p:new Ve(p)}catch(p){const w=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",w),g=new Ve(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),d.format&&(g.format=d.format),u&&(g.comment=u),g}function Nw(e,t,n,i,o){if(n==="!")return e[gr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[gr])}function Lw({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[gr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[gr];if(u.tag!==l.tag){const f=t.tagString(u.tag),d=t.tagString(l.tag),g=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function jw(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const $w={composeNode:Kd,composeEmptyNode:jc};function Kd(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,g=!0;switch(t.type){case"alias":d=Mw(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=Wd(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=Cw($w,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),d=jc(e,t.offset,void 0,null,n,i),g=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!kt(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(d.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?d.comment=u:d.commentBefore=u),e.options.keepSourceTokens&&g&&(d.srcToken=t),d}function jc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const g={type:"scalar",offset:jw(t,n,i),indent:-1,source:""},p=Wd(e,g,l,d);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function Mw({options:e},{offset:t,source:n,end:i},o){const a=new mc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=Zs(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Uw(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Ys(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=is(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?Kd(d,o,g,u):jc(d,g.end,i,null,g,u);const p=f.contents.range[2],w=Zs(a,p,!1,u);return w.comment&&(f.comment=w.comment),f.range=[n,p,w.offset],f}function eo(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Hd(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
372
+ `),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Iw={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
373
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Fw(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function Vd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Aw(e,t,i):Cw(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[gr]:f?d=Bw(e.schema,o,f,n,i):t.type==="scalar"?d=Dw(e,o,t,i):d=e.schema[gr];let g;try{const p=d.resolve(o,w=>i(n??t,"TAG_RESOLVE_FAILED",w),e.options);g=kt(p)?p:new Ve(p)}catch(p){const w=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",w),g=new Ve(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),d.format&&(g.format=d.format),u&&(g.comment=u),g}function Bw(e,t,n,i,o){if(n==="!")return e[gr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[gr])}function Dw({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[gr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[gr];if(u.tag!==l.tag){const f=t.tagString(u.tag),d=t.tagString(l.tag),g=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function Pw(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const Rw={composeNode:qd,composeEmptyNode:Nc};function qd(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,g=!0;switch(t.type){case"alias":d=Lw(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=Vd(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=Sw(Rw,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),d=Nc(e,t.offset,void 0,null,n,i),g=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!kt(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(d.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?d.comment=u:d.commentBefore=u),e.options.keepSourceTokens&&g&&(d.srcToken=t),d}function Nc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const g={type:"scalar",offset:Pw(t,n,i),indent:-1,source:""},p=Vd(e,g,l,d);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function Lw({options:e},{offset:t,source:n,end:i},o){const a=new yc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=Zs(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Nw(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Ys(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=is(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?qd(d,o,g,u):Nc(d,g.end,i,null,g,u);const p=f.contents.range[2],w=Zs(a,p,!1,u);return w.comment&&(f.comment=w.comment),f.range=[n,p,w.offset],f}function eo(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Wd(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
374
374
 
375
375
  `:`
376
- `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Vw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=eo(n);a?this.warnings.push(new Sw(u,i,o)):this.errors.push(new Xs(u,i,o))},this.directives=new pn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=Hd(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
376
+ `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class jw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=eo(n);a?this.warnings.push(new mw(u,i,o)):this.errors.push(new Xs(u,i,o))},this.directives=new pn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=Wd(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
377
377
  ${i}`:i;else if(o||t.directives.docStart||!a)t.commentBefore=i;else if(Ht(a)&&!a.flow&&a.items.length>0){let u=a.items[0];Kt(u)&&(u=u.key);const l=u.commentBefore;u.commentBefore=l?`${i}
378
378
  ${l}`:i}else{const u=a.commentBefore;a.commentBefore=u?`${i}
379
- ${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Hd(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=eo(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Uw(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Xs(eo(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new Xs(eo(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=Zs(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
380
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Xs(eo(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new Ys(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const zd="\uFEFF",Gd="",Jd="",$c="";function qw(e){switch(e){case zd:return"byte-order-mark";case Gd:return"doc-mode";case Jd:return"flow-error-end";case $c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
379
+ ${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Wd(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=eo(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Nw(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Xs(eo(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new Xs(eo(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=Zs(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
380
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Xs(eo(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new Ys(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const Kd="\uFEFF",Hd="",zd="",jc="";function $w(e){switch(e){case Kd:return"byte-order-mark";case Hd:return"doc-mode";case zd:return"flow-error-end";case jc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
381
381
  `:case`\r
382
382
  `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function rr(e){switch(e){case void 0:case" ":case`
383
- `:case"\r":case" ":return!0;default:return!1}}const Yd=new Set("0123456789ABCDEFabcdef"),Ww=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Sa=new Set(",[]{}"),Kw=new Set(` ,[]{}
384
- \r `),Mc=e=>!e||Kw.has(e);class Hw{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
383
+ `:case"\r":case" ":return!0;default:return!1}}const Gd=new Set("0123456789ABCDEFabcdef"),Mw=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Sa=new Set(",[]{}"),Uw=new Set(` ,[]{}
384
+ \r `),$c=e=>!e||Uw.has(e);class Vw{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
385
385
  `?!0:n==="\r"?this.buffer[t+1]===`
386
386
  `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){const o=this.buffer[i+t+1];if(o===`
387
387
  `||!o&&!this.atEnd)return t+i+1}return n===`
388
388
  `||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&rr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
389
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===zd&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const a=t[i-1];if(a===" "||a===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const a=t[n-1];if(a===" "||a===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Gd,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&rr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!rr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&rr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Mc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&rr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Jd,yield*this.parseLineStart();let a=0;for(;o[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),o[a]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Mc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||rr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
389
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Kd&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const a=t[i-1];if(a===" "||a===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const a=t[n-1];if(a===" "||a===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Hd,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&rr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!rr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&rr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil($c),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&rr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield zd,yield*this.parseLineStart();let a=0;for(;o[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),o[a]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil($c),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||rr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
390
390
  `,this.pos);if(o!==-1){for(;o!==-1;){const a=this.continueScalar(o+1);if(a===-1)break;o=i.indexOf(`
391
391
  `,a)}o!==-1&&(n=o-(i[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>rr(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let a=this.pos;i=this.buffer[a];++a)switch(i){case" ":n+=1;break;case`
392
392
  `:t=a,n=0;break;case"\r":{const u=this.buffer[a+1];if(!u&&!this.atEnd)return this.setNext("block-scalar");if(u===`
393
393
  `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const a=this.continueScalar(t+1);if(a===-1)break;t=this.buffer.indexOf(`
394
394
  `,a)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(i=this.buffer[o];i===" ";)i=this.buffer[++o];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
395
395
  `;)i=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let a=t-1,u=this.buffer[a];u==="\r"&&(u=this.buffer[--a]);const l=a;for(;u===" ";)u=this.buffer[--a];if(u===`
396
- `&&a>=this.pos&&a+1+n>l)t=a;else break}while(!0);return yield $c,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const a=this.buffer[i+1];if(rr(a)||t&&Sa.has(a))break;n=i}else if(rr(o)){let a=this.buffer[i+1];if(o==="\r"&&(a===`
396
+ `&&a>=this.pos&&a+1+n>l)t=a;else break}while(!0);return yield jc,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const a=this.buffer[i+1];if(rr(a)||t&&Sa.has(a))break;n=i}else if(rr(o)){let a=this.buffer[i+1];if(o==="\r"&&(a===`
397
397
  `?(i+=1,o=`
398
398
  `,a=this.buffer[i+1]):n=i),a==="#"||t&&Sa.has(a))break;if(o===`
399
- `){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&Sa.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield $c,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Mc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(rr(n)||t&&Sa.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!rr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Ww.has(n))n=this.buffer[++t];else if(n==="%"&&Yd.has(this.buffer[t+1])&&Yd.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
399
+ `){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&Sa.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield jc,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil($c))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(rr(n)||t&&Sa.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!rr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Mw.has(n))n=this.buffer[++t];else if(n==="%"&&Gd.has(this.buffer[t+1])&&Gd.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
400
400
  `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
401
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class zw{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const a=n+i>>1;this.lineStarts[a]<t?n=a+1:i=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function bi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Xd(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Qd(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Aa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ss(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Zd(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!bi(t.start,"explicit-key-ind")&&!bi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Qd(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Gw{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Hw,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=qw(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Zd(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Xd(o.start)===-1&&(n.indent===0||o.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Xd(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Aa(this.peek(2)),i=ss(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
401
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class qw{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const a=n+i>>1;this.lineStarts[a]<t?n=a+1:i=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function bi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Jd(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Yd(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Aa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ss(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Xd(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!bi(t.start,"explicit-key-ind")&&!bi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Yd(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Ww{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Vw,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=$w(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Xd(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Jd(o.start)===-1&&(n.indent===0||o.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Jd(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Aa(this.peek(2)),i=ss(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
402
402
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
403
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(bi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(Qd(n.key)&&!bi(n.sep,"newline")){const u=ss(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(bi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=ss(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):bi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||bi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=Aa(i),a=ss(o);Zd(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
403
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(bi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(Yd(n.key)&&!bi(n.sep,"newline")){const u=ss(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(bi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=ss(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):bi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||bi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=Aa(i),a=ss(o);Xd(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
404
404
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
405
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Aa(t),i=ss(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Aa(t),i=ss(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Jw(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new zw||null,prettyErrors:t}}function Yw(e,t={}){const{lineCounter:n,prettyErrors:i}=Jw(t),o=new Gw(n?.addNewLine),a=new Vw(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new Xs(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Md(e,n)),u.warnings.forEach(Md(e,n))),u}function ep(e,t,n){let i;const o=Yw(e,n);if(!o)return null;if(o.warnings.forEach(a=>yd(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function tp(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Vs(e)&&!i?e.toString(n):new Ys(e,i,n).toString(n)}const Xw={BorderRadiusContainer:Qe.div`
405
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Aa(t),i=ss(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Aa(t),i=ss(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Kw(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new qw||null,prettyErrors:t}}function Hw(e,t={}){const{lineCounter:n,prettyErrors:i}=Kw(t),o=new Ww(n?.addNewLine),a=new jw(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new Xs(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(jd(e,n)),u.warnings.forEach(jd(e,n))),u}function Qd(e,t,n){let i;const o=Hw(e,n);if(!o)return null;if(o.warnings.forEach(a=>pd(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function Zd(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Vs(e)&&!i?e.toString(n):new Ys(e,i,n).toString(n)}const zw={BorderRadiusContainer:Qe.div`
406
406
  height: 100%;
407
407
 
408
408
  .monaco-editor,
409
409
  .overflow-guard {
410
410
  border-radius: 8px;
411
411
  }
412
- `},Qw=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(tp(t))},[t]),F.jsx(Xw.BorderRadiusContainer,{children:F.jsx(dc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(ep(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Zw={BorderRadiusContainer:Qe.div`
412
+ `},Gw=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(Zd(t))},[t]),F.jsx(zw.BorderRadiusContainer,{children:F.jsx(hc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(Qd(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Jw={BorderRadiusContainer:Qe.div`
413
413
  min-height: 75vh;
414
414
 
415
415
  .monaco-editor,
416
416
  .overflow-guard {
417
417
  border-radius: 8px;
418
418
  }
419
- `},eS=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f})=>{const d=Qn.useNavigate(),[g,p]=Z.useState(""),[w,k]=Z.useState(!1),[S,A]=Z.useState();Z.useEffect(()=>{p(tp(n))},[n]);const v=()=>{k(!0),A(void 0);const R=ep(g),{namespace:L}=R.metadata,{name:C}=R.metadata,x=R,I=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${L}`:""}/${l}/${o?"":C}`;o?Jo({endpoint:I,body:x}).then(O=>{console.log(O),f&&d(f)}).catch(O=>{console.log("Form submit error",O),k(!1),A(O)}):Yo({endpoint:I,body:x}).then(O=>{console.log(O),f&&d(f)}).catch(O=>{console.log("Form submit error",O),k(!1),A(O)})};return F.jsxs(F.Fragment,{children:[S&&F.jsx(z.Alert,{message:`An error has occurred: ${S?.response?.data?.message} `,type:"error"}),F.jsx(Zw.BorderRadiusContainer,{children:F.jsx(dc,{defaultLanguage:"yaml",width:"100%",height:"75vh",value:g,onChange:R=>{p(R||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),F.jsx(Nn,{$space:12,$samespace:!0}),F.jsx(z.Button,{type:"primary",onClick:v,loading:w,children:"Submit"})]})},Bt=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},tS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w})=>{const{clusterName:k,namespace:S,syntheticProject:A,entryName:v}=w,R=z.Form.useFormInstance(),L=z.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,R),C=Ct({template:p.valueUri,replaceValues:{clusterName:k,namespace:S,syntheticProject:A,entryName:v}}),{data:x,isError:I,isLoading:O}=sn({uri:C,refetchInterval:!1,queryKey:[C||"",JSON.stringify(e)],isEnabled:!!C});if(O)return F.jsx("div",{children:"Loading"});if(I)return F.jsx("div",{children:"Error"});const D=bt.get(x,["items"]),W=p.criteria?D.filter(pe=>{const he=bt.get(pe,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?he===p.criteria?.value:he!==p.criteria?.value}):D,Q=p.criteria?.keepPrefilled!==!1?D.find(pe=>bt.get(pe,p.keysToValue)===L):void 0,ce=Q?[Q,...W]:W,ge=(Array.isArray(ce)?ce.map(pe=>({value:bt.get(pe,p.keysToValue),label:p.keysToLabel?bt.get(pe,p.keysToLabel):bt.get(pe,p.keysToValue)})).map(({value:pe,label:he})=>({label:typeof he=="string"?he:JSON.stringify(he),value:typeof pe=="string"?pe:JSON.stringify(pe)})):[]).reduce((pe,he)=>(pe.some(Fe=>Fe.value===he.value)||pe.push(he),pe),[]),ye=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&F.jsxs(z.Tooltip,{title:l,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),f&&F.jsx(Ur,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),F.jsx(hi,{formName:i||e,persistedControls:g,type:"arr"})]}),F.jsx(xr,{name:n||ye,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Select,{mode:p.mode,placeholder:"Select",options:ge,filterOption:rc,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},yr=({valueObj:e,keysToValue:t,logic:n})=>{const i=bt.get(e,t);return n==="cpuLike"?ic(i):sc(i)},np=({value:e})=>Number(e.toFixed(1)),rp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},ip=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},nS=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:g,logic:p})=>{let w=0,k=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=yr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});w=np({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=yr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),A=yr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});w=rp({valueFirst:S,valueSecond:A})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=yr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),A=yr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});w=ip({valueFirst:S,valueSecond:A})}if(e.min.type==="number"&&(w=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=yr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});k=np({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=yr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),A=yr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});k=rp({valueFirst:S,valueSecond:A})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof g=="object"&&g!==null){const S=yr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:p}),A=yr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});k=ip({valueFirst:S,valueSecond:A})}return e.max.type==="number"&&(k=e.max.value),{minValue:w,maxValue:k}},rS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,initialValue:d,max:g,min:p,step:w=1,...k})=>{const[S,A]=Z.useState(d||p);return Z.useEffect(()=>{(Number.isNaN(S)||S<p)&&A(p),S>g&&A(g),A(S)},[S,p,g]),F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),f&&F.jsxs(z.Tooltip,{title:f,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),F.jsx(hi,{formName:i||e,persistedControls:l,type:"number"})]}),F.jsxs(z.Row,{children:[F.jsxs(z.Col,{span:12,children:[F.jsx(xr,{name:n||e,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Slider,{min:p,max:g,step:w,...k})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),F.jsx(z.Typography.Text,{children:F.jsxs(z.Flex,{justify:"space-between",children:[F.jsx("span",{children:p}),F.jsx("span",{children:g})]})})]}),F.jsx(z.Col,{span:4,children:F.jsx(xr,{name:n||e,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.InputNumber,{min:p,max:g,step:w,value:S,disabled:k.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},iS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p})=>{const{clusterName:w,namespace:k,syntheticProject:S,entryName:A}=p,v=f?g.edit:g.add,R=v.min.type==="resourceValue"?Ct({template:v.min.valueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,L=v.min.type==="substractResourceValues"?Ct({template:v.min.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,C=v.min.type==="substractResourceValues"?Ct({template:v.min.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,x=v.min.type==="addResourceValues"?Ct({template:v.min.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,I=v.min.type==="addResourceValues"?Ct({template:v.min.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,O=v.max.type==="resourceValue"?Ct({template:v.max.valueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,D=v.max.type==="substractResourceValues"?Ct({template:v.max.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,W=v.max.type==="substractResourceValues"?Ct({template:v.max.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,Q=v.max.type==="addResourceValues"?Ct({template:v.max.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,ce=v.max.type==="addResourceValues"?Ct({template:v.max.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,{data:fe,isError:ge,isLoading:ye}=sn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:pe,isError:he,isLoading:Pe}=sn({uri:L||"",refetchInterval:!1,queryKey:[L||"",JSON.stringify(e)],isEnabled:!!L}),{data:Fe,isError:_e,isLoading:qe}=sn({uri:C||"",refetchInterval:!1,queryKey:[C||"",JSON.stringify(e)],isEnabled:!!C}),{data:Ee,isError:we,isLoading:nt}=sn({uri:x||"",refetchInterval:!1,queryKey:[x||"",JSON.stringify(e)],isEnabled:!!x}),{data:J,isError:X,isLoading:oe}=sn({uri:I||"",refetchInterval:!1,queryKey:[I||"",JSON.stringify(e)],isEnabled:!!I}),{data:Ce,isError:We,isLoading:xe}=sn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Be,isError:$e,isLoading:Ne}=sn({uri:D||"",refetchInterval:!1,queryKey:[D||"",JSON.stringify(e)],isEnabled:!!D}),{data:Tt,isError:on,isLoading:Lt}=sn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:jt,isError:Se,isLoading:ke}=sn({uri:Q||"",refetchInterval:!1,queryKey:[Q||"",JSON.stringify(e)],isEnabled:!!Q}),{data:He,isError:Ot,isLoading:pt}=sn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{minValue:Et,maxValue:me}=nS({minMaxAndStep:v,minValueObj:fe,minSubstractFirstValueObj:pe,minSubstractSecondValueObj:Fe,minAddFirstValueObj:Ee,minAddSecondValueObj:J,maxValueObj:Ce,maxSubstractFirstValueObj:Be,maxSubstractSecondValueObj:Tt,maxAddFirstValueObj:jt,maxAddSecondValueObj:He,logic:g.logic}),Ze=f?g.edit.step:g.add.step;return v.min.type==="resourceValue"&&ye||v.min.type==="substractResourceValues"&&(Pe||qe)||v.min.type==="addResourceValues"&&(nt||oe)||v.max.type==="resourceValue"&&xe||v.max.type==="substractResourceValues"&&(Ne||Lt)||v.max.type==="addResourceValues"&&(ke||pt)?F.jsx("div",{children:"Loading"}):v.min.type==="resourceValue"&&ge||v.min.type==="substractResourceValues"&&(he||_e)||v.min.type==="addResourceValues"&&(we||X)||v.max.type==="resourceValue"&&We||v.max.type==="substractResourceValues"&&($e||on)||v.max.type==="addResourceValues"&&(Se||Ot)?F.jsx("div",{children:"Error"}):F.jsx(rS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:Et,max:me,step:Ze,persistedControls:d})},sS=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>n?F.jsxs(Mn,{$isHidden:t,children:[F.jsxs(z.Typography.Text,{children:["namespace",F.jsx(z.Typography.Text,{type:"danger",children:"*"}),i&&F.jsx(Ur,{type:"secondary",onClick:()=>o({path:e}),children:"Удалить"})]}),F.jsx(xr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null,oS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g})=>{const p=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&F.jsxs(z.Tooltip,{title:l,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),f&&F.jsx(Ur,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),F.jsx(hi,{formName:i||e,persistedControls:g,type:"str"})]}),F.jsx(xr,{name:n||p,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Input,{placeholder:Bt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},aS=Qe.div`
419
+ `},Yw=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f})=>{const d=Qn.useNavigate(),[g,p]=Z.useState(""),[w,k]=Z.useState(!1),[S,A]=Z.useState();Z.useEffect(()=>{p(Zd(n))},[n]);const v=()=>{k(!0),A(void 0);const R=Qd(g),{namespace:N}=R.metadata,{name:C}=R.metadata,x=R,I=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${N}`:""}/${l}/${o?"":C}`;o?Jo({endpoint:I,body:x}).then(O=>{console.log(O),f&&d(f)}).catch(O=>{console.log("Form submit error",O),k(!1),A(O)}):Yo({endpoint:I,body:x}).then(O=>{console.log(O),f&&d(f)}).catch(O=>{console.log("Form submit error",O),k(!1),A(O)})};return F.jsxs(F.Fragment,{children:[S&&F.jsx(z.Alert,{message:`An error has occurred: ${S?.response?.data?.message} `,type:"error"}),F.jsx(Jw.BorderRadiusContainer,{children:F.jsx(hc,{defaultLanguage:"yaml",width:"100%",height:"75vh",value:g,onChange:R=>{p(R||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),F.jsx(Ln,{$space:12,$samespace:!0}),F.jsx(z.Button,{type:"primary",onClick:v,loading:w,children:"Submit"})]})},Bt=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},Xw=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w})=>{const{clusterName:k,namespace:S,syntheticProject:A,entryName:v}=w,R=z.Form.useFormInstance(),N=z.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,R),C=Ct({template:p.valueUri,replaceValues:{clusterName:k,namespace:S,syntheticProject:A,entryName:v}}),{data:x,isError:I,isLoading:O}=sn({uri:C,refetchInterval:!1,queryKey:[C||"",JSON.stringify(e)],isEnabled:!!C});if(O)return F.jsx("div",{children:"Loading"});if(I)return F.jsx("div",{children:"Error"});const D=bt.get(x,["items"]),W=p.criteria?D.filter(pe=>{const he=bt.get(pe,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?he===p.criteria?.value:he!==p.criteria?.value}):D,Q=p.criteria?.keepPrefilled!==!1?D.find(pe=>bt.get(pe,p.keysToValue)===N):void 0,ce=Q?[Q,...W]:W,ge=(Array.isArray(ce)?ce.map(pe=>({value:bt.get(pe,p.keysToValue),label:p.keysToLabel?bt.get(pe,p.keysToLabel):bt.get(pe,p.keysToValue)})).map(({value:pe,label:he})=>({label:typeof he=="string"?he:JSON.stringify(he),value:typeof pe=="string"?pe:JSON.stringify(pe)})):[]).reduce((pe,he)=>(pe.some(Fe=>Fe.value===he.value)||pe.push(he),pe),[]),ye=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&F.jsxs(z.Tooltip,{title:l,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),f&&F.jsx(Ur,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),F.jsx(hi,{formName:i||e,persistedControls:g,type:"arr"})]}),F.jsx(xr,{name:n||ye,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Select,{mode:p.mode,placeholder:"Select",options:ge,filterOption:nc,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},yr=({valueObj:e,keysToValue:t,logic:n})=>{const i=bt.get(e,t);return n==="cpuLike"?rc(i):ic(i)},ep=({value:e})=>Number(e.toFixed(1)),tp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},np=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},Qw=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:g,logic:p})=>{let w=0,k=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=yr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});w=ep({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=yr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),A=yr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});w=tp({valueFirst:S,valueSecond:A})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=yr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),A=yr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});w=np({valueFirst:S,valueSecond:A})}if(e.min.type==="number"&&(w=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=yr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});k=ep({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=yr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),A=yr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});k=tp({valueFirst:S,valueSecond:A})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof g=="object"&&g!==null){const S=yr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:p}),A=yr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});k=np({valueFirst:S,valueSecond:A})}return e.max.type==="number"&&(k=e.max.value),{minValue:w,maxValue:k}},Zw=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,initialValue:d,max:g,min:p,step:w=1,...k})=>{const[S,A]=Z.useState(d||p);return Z.useEffect(()=>{(Number.isNaN(S)||S<p)&&A(p),S>g&&A(g),A(S)},[S,p,g]),F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),f&&F.jsxs(z.Tooltip,{title:f,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),F.jsx(hi,{formName:i||e,persistedControls:l,type:"number"})]}),F.jsxs(z.Row,{children:[F.jsxs(z.Col,{span:12,children:[F.jsx(xr,{name:n||e,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Slider,{min:p,max:g,step:w,...k})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),F.jsx(z.Typography.Text,{children:F.jsxs(z.Flex,{justify:"space-between",children:[F.jsx("span",{children:p}),F.jsx("span",{children:g})]})})]}),F.jsx(z.Col,{span:4,children:F.jsx(xr,{name:n||e,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.InputNumber,{min:p,max:g,step:w,value:S,disabled:k.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},eS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p})=>{const{clusterName:w,namespace:k,syntheticProject:S,entryName:A}=p,v=f?g.edit:g.add,R=v.min.type==="resourceValue"?Ct({template:v.min.valueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,N=v.min.type==="substractResourceValues"?Ct({template:v.min.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,C=v.min.type==="substractResourceValues"?Ct({template:v.min.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,x=v.min.type==="addResourceValues"?Ct({template:v.min.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,I=v.min.type==="addResourceValues"?Ct({template:v.min.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,O=v.max.type==="resourceValue"?Ct({template:v.max.valueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,D=v.max.type==="substractResourceValues"?Ct({template:v.max.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,W=v.max.type==="substractResourceValues"?Ct({template:v.max.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,Q=v.max.type==="addResourceValues"?Ct({template:v.max.firstValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,ce=v.max.type==="addResourceValues"?Ct({template:v.max.secondValueUri,replaceValues:{clusterName:w,namespace:k,syntheticProject:S,entryName:A}}):void 0,{data:fe,isError:ge,isLoading:ye}=sn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:pe,isError:he,isLoading:Pe}=sn({uri:N||"",refetchInterval:!1,queryKey:[N||"",JSON.stringify(e)],isEnabled:!!N}),{data:Fe,isError:_e,isLoading:qe}=sn({uri:C||"",refetchInterval:!1,queryKey:[C||"",JSON.stringify(e)],isEnabled:!!C}),{data:Ee,isError:we,isLoading:nt}=sn({uri:x||"",refetchInterval:!1,queryKey:[x||"",JSON.stringify(e)],isEnabled:!!x}),{data:J,isError:X,isLoading:oe}=sn({uri:I||"",refetchInterval:!1,queryKey:[I||"",JSON.stringify(e)],isEnabled:!!I}),{data:Ce,isError:We,isLoading:xe}=sn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Be,isError:$e,isLoading:Le}=sn({uri:D||"",refetchInterval:!1,queryKey:[D||"",JSON.stringify(e)],isEnabled:!!D}),{data:Tt,isError:on,isLoading:Nt}=sn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:jt,isError:Se,isLoading:ke}=sn({uri:Q||"",refetchInterval:!1,queryKey:[Q||"",JSON.stringify(e)],isEnabled:!!Q}),{data:He,isError:Ot,isLoading:pt}=sn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{minValue:Et,maxValue:me}=Qw({minMaxAndStep:v,minValueObj:fe,minSubstractFirstValueObj:pe,minSubstractSecondValueObj:Fe,minAddFirstValueObj:Ee,minAddSecondValueObj:J,maxValueObj:Ce,maxSubstractFirstValueObj:Be,maxSubstractSecondValueObj:Tt,maxAddFirstValueObj:jt,maxAddSecondValueObj:He,logic:g.logic}),Ze=f?g.edit.step:g.add.step;return v.min.type==="resourceValue"&&ye||v.min.type==="substractResourceValues"&&(Pe||qe)||v.min.type==="addResourceValues"&&(nt||oe)||v.max.type==="resourceValue"&&xe||v.max.type==="substractResourceValues"&&(Le||Nt)||v.max.type==="addResourceValues"&&(ke||pt)?F.jsx("div",{children:"Loading"}):v.min.type==="resourceValue"&&ge||v.min.type==="substractResourceValues"&&(he||_e)||v.min.type==="addResourceValues"&&(we||X)||v.max.type==="resourceValue"&&We||v.max.type==="substractResourceValues"&&($e||on)||v.max.type==="addResourceValues"&&(Se||Ot)?F.jsx("div",{children:"Error"}):F.jsx(Zw,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:Et,max:me,step:Ze,persistedControls:d})},tS=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>n?F.jsxs(Mn,{$isHidden:t,children:[F.jsxs(z.Typography.Text,{children:["namespace",F.jsx(z.Typography.Text,{type:"danger",children:"*"}),i&&F.jsx(Ur,{type:"secondary",onClick:()=>o({path:e}),children:"Удалить"})]}),F.jsx(xr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null,nS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g})=>{const p=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&F.jsxs(z.Tooltip,{title:l,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),f&&F.jsx(Ur,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),F.jsx(hi,{formName:i||e,persistedControls:g,type:"str"})]}),F.jsx(xr,{name:n||p,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Input,{placeholder:Bt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},rS=Qe.div`
420
420
  display: flex;
421
- `,uS=Qe.div`
421
+ `,iS=Qe.div`
422
422
  margin-left: 8px;
423
423
  cursor: pointer;
424
424
  padding-top: 4px;
425
- `,sp={SwitchAndCrossContainer:aS,CrossContainer:uS},cS=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>F.jsxs(Mn,{$isHidden:i,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o&&F.jsxs(z.Tooltip,{title:o,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),u&&F.jsx(Ur,{type:"secondary",onClick:()=>l({path:e}),children:"Удалить"})]}),F.jsxs(sp.SwitchAndCrossContainer,{children:[F.jsx(xr,{name:n||e,children:F.jsx(z.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),F.jsx(sp.CrossContainer,{onClick:()=>{a&&a(e)},children:F.jsx(z.Typography.Text,{type:"secondary",children:"x"})})]})]}),lS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p})=>{const w=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&F.jsxs(z.Tooltip,{title:l,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),f&&F.jsx(Ur,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),F.jsx(hi,{formName:i||e,persistedControls:p,type:"str"})]}),F.jsx(xr,{name:n||w,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Select,{options:g.map(k=>({value:k,label:k})),placeholder:Bt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},fS=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>F.jsxs(Mn,{$isHidden:l,children:[F.jsxs(z.Typography.Text,{children:[Bt(t),a?.includes(Bt(t))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),f&&F.jsxs(z.Tooltip,{title:f,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),d&&F.jsx(Ur,{type:"secondary",onClick:()=>g({path:t}),children:"Удалить"}),F.jsx(hi,{formName:o||t,persistedControls:p,type:"number"})]}),F.jsx(xr,{name:i||t,rules:[{required:u===!1&&a?.includes(Bt(t))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.InputNumber,{placeholder:Bt(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}),hS=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},mr=(e,t)=>{if(!e)return!1;for(const n of e)if(hS(n,t))return!0;return!1},dS=Qe.div`
425
+ `,rp={SwitchAndCrossContainer:rS,CrossContainer:iS},sS=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>F.jsxs(Mn,{$isHidden:i,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o&&F.jsxs(z.Tooltip,{title:o,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),u&&F.jsx(Ur,{type:"secondary",onClick:()=>l({path:e}),children:"Удалить"})]}),F.jsxs(rp.SwitchAndCrossContainer,{children:[F.jsx(xr,{name:n||e,children:F.jsx(z.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),F.jsx(rp.CrossContainer,{onClick:()=>{a&&a(e)},children:F.jsx(z.Typography.Text,{type:"secondary",children:"x"})})]})]}),oS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p})=>{const w=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return F.jsxs(Mn,{$isHidden:u,children:[F.jsxs(z.Typography.Text,{children:[Bt(e),o?.includes(Bt(e))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&F.jsxs(z.Tooltip,{title:l,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),f&&F.jsx(Ur,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),F.jsx(hi,{formName:i||e,persistedControls:p,type:"str"})]}),F.jsx(xr,{name:n||w,rules:[{required:a===!1&&o?.includes(Bt(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.Select,{options:g.map(k=>({value:k,label:k})),placeholder:Bt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},aS=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>F.jsxs(Mn,{$isHidden:l,children:[F.jsxs(z.Typography.Text,{children:[Bt(t),a?.includes(Bt(t))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),f&&F.jsxs(z.Tooltip,{title:f,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),d&&F.jsx(Ur,{type:"secondary",onClick:()=>g({path:t}),children:"Удалить"}),F.jsx(hi,{formName:o||t,persistedControls:p,type:"number"})]}),F.jsx(xr,{name:i||t,rules:[{required:u===!1&&a?.includes(Bt(t))}],validateTrigger:"onBlur",hasFeedback:!0,children:F.jsx(z.InputNumber,{placeholder:Bt(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}),uS=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},mr=(e,t)=>{if(!e)return!1;for(const n of e)if(uS(n,t))return!0;return!1},cS=Qe.div`
426
426
  display: grid;
427
427
  grid-template-columns: repeat(2, 1fr);
428
428
  gap: 8px;
429
429
  height: 100%;
430
430
  min-height: 80vh;
431
- `,pS=Qe(z.Form.List)`
431
+ `,lS=Qe(z.Form.List)`
432
432
  margin-bottom: 8px;
433
- `,gS=Qe.div`
433
+ `,fS=Qe.div`
434
434
  display: grid;
435
435
  grid-template-columns: auto 45px;
436
436
  margin-left: 8px;
437
- `,yS=Qe.div`
437
+ `,hS=Qe.div`
438
438
  display: flex;
439
439
  align-items: flex-start;
440
440
  margin-top: 5px;
441
- `,mS=Qe.div`
441
+ `,dS=Qe.div`
442
442
  min-height: 80vh;
443
- `,to={ResetedFormList:pS,ContainerWithRemoveButton:gS,MinusContainer:yS,Container:dS,DebugContainer:mS},op=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?F.jsx(sS,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:d,removeField:g}):F.jsx(oS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:d,removeField:g,persistedControls:p}),bS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p})=>F.jsx(lS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p}),ap=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>F.jsx(fS,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p}),up=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p})=>F.jsx(iS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:d,urlParams:p}),cp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w})=>F.jsx(tS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w}),lp=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>F.jsx(cS,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l}),fp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:d,makeValueUndefined:g,addField:p,isAdditionalProperties:w,removeField:k,isEdit:S,expandedControls:A,persistedControls:v,urlParams:R})=>e.type==="array"?F.jsxs(Mn,{$isHidden:f,children:[F.jsxs(z.Typography.Text,{children:[Bt(t),u?.includes(Bt(t))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),d&&F.jsxs(z.Tooltip,{title:d,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),w&&F.jsx(Ur,{type:"secondary",onClick:()=>k({path:t}),children:"Удалить"}),F.jsx(hi,{formName:a||t,persistedControls:v,type:"arr"})]}),F.jsx(to.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Bt(t))?[{validator:async(L,C)=>{if(!C||C.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(L,{add:C,remove:x},{errors:I})=>F.jsxs(F.Fragment,{children:[L.map(O=>{const D=e.items?.type,W=e.items?.description,Q=e.items;return F.jsxs(to.ContainerWithRemoveButton,{children:[F.jsxs("div",{children:[D!=="object"&&F.jsxs(F.Fragment,{children:[D==="string"&&op({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,removeField:k,persistedControls:v}),(D==="number"||D==="integer")&&ap({isNumber:D==="number",name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,removeField:k,persistedControls:v}),(D==="rangeInputCpu"||D==="rangeInputMemory")&&up({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,isEdit:S,persistedControls:v,customProps:e.items.customProps,urlParams:R}),D==="listInput"&&cp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,removeField:k,persistedControls:v,customProps:e.items.customProps,urlParams:R}),D==="boolean"&&lp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:W,makeValueUndefined:g,removeField:k}),D==="array"&&fp({schema:e.items,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,makeValueUndefined:g,addField:p,removeField:k,isEdit:S,expandedControls:A,persistedControls:v,urlParams:R})]}),D==="object"&&Q?.properties&&hp({properties:Q.properties,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],required:Q.required,forceNonRequired:l,description:W,makeValueUndefined:g,addField:p,isAdditionalProperties:w,removeField:k,isEdit:S,expandedControls:A,persistedControls:v,urlParams:R})]}),F.jsx(to.MinusContainer,{children:F.jsx(qt.MinusCircleOutlined,{size:14,onClick:()=>x(O.name)})})]},O.key)}),F.jsxs(z.Form.Item,{children:[F.jsx(z.Button,{type:"dashed",onClick:()=>C(),icon:F.jsx(qt.PlusOutlined,{}),children:"Add"}),F.jsx(z.Form.ErrorList,{errors:I})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,Ea=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:d,description:g,namespaceData:p,makeValueUndefined:w,addField:k,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:L})=>F.jsx(Mn,{$isHidden:f,children:Object.keys(e).map(C=>{if(e[C].type==="string"&&e[C].enum)return bS({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:R,options:e[C].enum||[]});if(e[C].type==="string"&&!e[C].enum||Object.keys(e[C]).includes("x-kubernetes-int-or-string"))return op({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,namespaceData:p,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:R});if(e[C].type==="number"||e[C].type==="integer")return ap({isNumber:e[C].type==="number",name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:R});if(e[C].type==="rangeInputCpu"||e[C].type==="rangeInputMemory")return up({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isEdit:A,customProps:e[C].customProps,persistedControls:R,urlParams:L});if(e[C].type==="listInput")return cp({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,customProps:e[C].customProps,removeField:S,persistedControls:R,urlParams:L});if(e[C].type==="boolean")return lp({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,makeValueUndefined:w,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S});if(e[C].type==="array")return fp({schema:e[C],name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,makeValueUndefined:w,addField:k,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:L});if(e[C].additionalProperties){const x=e[C].properties?Ea({properties:e[C].properties,name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:e[C].required,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),hiddenPaths:d,description:e[C].description,namespaceData:p,makeValueUndefined:w,addField:k,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:L}):void 0;return F.jsx(Mn,{$isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),children:F.jsxs(zh,{title:F.jsxs(z.Typography.Text,{children:[C,g&&F.jsxs(z.Tooltip,{title:g,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]})]}),formName:Array.isArray(t)?[...t,String(C)]:[t,String(C)],expandedControls:v,children:[F.jsx(z.Input.Search,{placeholder:"Введите имя поля",allowClear:!0,enterButton:"Добавить",onSearch:I=>{if(I.length>0){const O=e[C]?.additionalProperties;k({path:Array.isArray(t)?[...t,String(C)]:[t,String(C)],name:I,type:O.type,items:O.items,nestedProperties:O.properties||{},required:O.required})}}}),x]})},Array.isArray(t)?[...t,String(C)].join("-"):[t,String(C)].join("-"))}return e[C].type==="object"&&e[C].properties?hp({properties:e[C].properties,name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,selfRequired:u?.includes(C),required:e[C].required,forceNonRequired:l||!u?.includes(C),isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),hiddenPaths:d,description:e[C].description,namespaceData:p,makeValueUndefined:w,addField:k,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:L}):e[C].type==="object"&&e[C]["x-kubernetes-preserve-unknown-fields"]?F.jsx(z.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(C)):null})}),hp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:w,makeValueUndefined:k,addField:S,isAdditionalProperties:A,removeField:v,isEdit:R,expandedControls:L,persistedControls:C,urlParams:x})=>{const I=Ea({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:w,makeValueUndefined:k,addField:S,removeField:v,isEdit:R,expandedControls:L,persistedControls:C,urlParams:x});return F.jsx(Mn,{$isHidden:d,children:F.jsx(zh,{title:F.jsxs(z.Typography.Text,{children:[Bt(t),u&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),p&&F.jsxs(z.Tooltip,{title:p,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),A&&F.jsx(Ur,{type:"secondary",onClick:()=>v({path:t}),children:"Удалить"}),F.jsx(hi,{formName:a||t,persistedControls:C,type:"obj"})]}),formName:o||t,expandedControls:L,children:F.jsx("div",{style:{marginLeft:"20px"},children:I})},Array.isArray(t)?t.join("-"):t)})},dp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,values:i}=t;return!(typeof n!="string"||!Array.isArray(i))},vS=Z.lazy(()=>Promise.resolve().then(()=>Mv)),pp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:w,isCreate:k,type:S,apiGroupApiVersion:A,kindName:v,typeName:R,backlink:L})=>{const C=Qn.useNavigate(),[x]=z.Form.useForm(),I=z.Form.useWatch(["metadata","namespace"],x),[O,D]=Z.useState(a),[W,Q]=Z.useState(),ce=_b(Q,500),[fe,ge]=Z.useState(!1),[ye,pe]=Z.useState(),[he,Pe]=Z.useState(!1),[Fe,_e]=Z.useState(f||[]),[qe,Ee]=Z.useState(d||[]),[we,nt]=Z.useState(!1),J=Mr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:w?I:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:k===!0}),X=Mr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:w?I:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:k!==!0}),oe=()=>{x.validateFields().then(()=>{ge(!0),pe(void 0);const Se=x.getFieldsValue(),ke=Ps(Se,qe),He=Ki(ke),pt=ea(He,O),{namespace:Et}=ke.metadata,me=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${A}${w?`/namespaces/${Et}`:""}/${R}/${k?"":ke.metadata.name}`;k?Jo({endpoint:me,body:pt}).then(Ze=>{console.log(Ze),L&&C(L)}).catch(Ze=>{if(console.log("Form submit error",Ze),ge(!1),Go(Ze)&&Ze.response?.data.message.includes("Required value")){const ot=(Ze.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Ut=Array.from({length:ot.length},(T,y)=>ot.slice(0,y+1)),Oe=[...Fe,...Ut],De=new Set,$t=Oe.filter(T=>{const y=Array.isArray(T)?JSON.stringify(T):T;return De.has(y)?!1:(De.add(y),!0)});_e([...$t])}pe(Ze)}):Yo({endpoint:me,body:pt}).then(Ze=>{console.log(Ze),L&&C(L)}).catch(Ze=>{if(console.log("Form submit error",Ze),ge(!1),Go(Ze)&&Ze.response?.data.message.includes("Required value")){const ot=(Ze.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Ut=Array.from({length:ot.length},(T,y)=>ot.slice(0,y+1)),Oe=[...Fe,...Ut],De=new Set,$t=Oe.filter(T=>{const y=Array.isArray(T)?JSON.stringify(T):T;return De.has(y)?!1:(De.add(y),!0)});_e([...$t])}pe(Ze)})}).catch(Se=>{console.log("Validating error",Se);const ke=Se.errorFields.reduce((xt,ot)=>[...xt,ot.name],[]),Ot=ke.filter(xt=>Array.isArray(xt)).flatMap(xt=>Array.from({length:xt.length},(ot,Ut)=>xt.slice(0,Ut+1))),pt=ke.filter(xt=>!Array.isArray(xt)),Et=[...Fe,...pt,...Ot],me=new Set,Ze=Et.filter(xt=>{const ot=Array.isArray(xt)?JSON.stringify(xt):xt;return me.has(ot)?!1:(me.add(ot),!0)});_e([...Ze])})},Ce=Z.useCallback(()=>{const Se=x.getFieldsValue(),ke=Ps(Se,qe),He=Ki(ke),pt=ea(He,O);ce(pt)},[x,ce,O,qe]),We=Se=>{const ke=Zo(Se),He=oc(ke,O);ke&&x.setFieldsValue(He)};if(Z.useEffect(()=>{const Se=S==="apis"?`${A}/${R}`:`v1/${R}`,ke=o?.items.find(He=>typeof He=="object"&&!Array.isArray(He)&&He!==null&&He.spec&&typeof He.spec=="object"&&!Array.isArray(He.spec)&&He.spec!==null&&typeof He.spec.overrideType=="string"&&He.spec.overrideType===Se);if(dp(ke)&&ke.spec.values.forEach(({path:He,value:Ot})=>{x.setFieldValue(He,Ot)}),g){const He=oc(g,O);x.setFieldsValue(He)}Ce()},[g,x,o,S,A,R,Ce,O]),Z.useEffect(()=>{let Se=[];const ke=S==="apis"?`${A}/${R}`:`v1/${R}`,He=o?.items.find(me=>typeof me=="object"&&!Array.isArray(me)&&me!==null&&me.spec&&typeof me.spec=="object"&&!Array.isArray(me.spec)&&me.spec!==null&&typeof me.spec.overrideType=="string"&&me.spec.overrideType===ke);dp(He)&&(Se=He.spec.values.flatMap(({path:me})=>Hh(me))),g&&typeof g=="object"&&g!==null&&(Se=[...Se,...ac(g)]);const Ot=[...Fe,...Se],pt=new Set,Et=Ot.filter(me=>{const Ze=Array.isArray(me)?JSON.stringify(me):me;return pt.has(Ze)?!1:(pt.add(Ze),!0)});_e([...Et])},[A,o,g,S,R]),Z.useEffect(()=>{p&&x.setFieldValue(["metadata","namespace"],p),Ce()},[p,Ce,x]),Z.useEffect(()=>{k&&x.setFieldsValue({apiVersion:A==="api/v1"?"v1":A,kind:v}),Ce()},[k,v,A,Ce,x]),Z.useEffect(()=>{const Se=x.getFieldsValue(),ke=Ps(Se,qe),He=Ki(ke),pt=ea(He,O);ce(pt)},[ce,O,x,qe]),Z.useEffect(()=>{Ce()},[O,Ce]),!O)return null;const xe=w?{filterSelectOptions:rc,selectValues:w.map(Se=>({label:Se,value:Se})),disabled:!!p}:void 0,Be=Se=>{x.setFieldValue(Se,void 0),Ce()},$e=({path:Se,name:ke,type:He,items:Ot,nestedProperties:pt,required:Et})=>{const Ze=(Array.isArray(Se)?Se:[Se]).reduceRight((Ut,Oe)=>({[Oe]:{properties:Ut}}),{[ke]:{type:He,items:Ot,properties:pt,required:Et,isAdditionalProperties:!0}}),xt=bt.cloneDeep(O),ot=bt.merge(xt,Ze);console.log("newObject",Ze),console.log("newProperties",ot),D(ot)},Ne=({path:Se})=>{const He=(Array.isArray(Se)?Se:[Se]).flatMap(pt=>[pt,"properties"]).slice(0,-1),Ot=bt.cloneDeep(O);bt.unset(Ot,He),D(Ot)},Tt=Se=>{_e([...Fe,Se])},on=Se=>{_e([...Fe.filter(ke=>JSON.stringify(ke)!==JSON.stringify(Se))])},Lt=(Se,ke)=>{ke&&x.getFieldValue(Se)===void 0&&(ke==="str"&&x.setFieldValue(Se,""),ke==="number"&&x.setFieldValue(Se,0),ke==="arr"&&x.setFieldValue(Se,[]),ke==="obj"&&x.setFieldValue(Se,{})),Ee([...qe,Se])},jt=Se=>{console.log(Se),Ee([...qe.filter(ke=>JSON.stringify(ke)!==JSON.stringify(Se))])};return F.jsxs(to.Container,{children:[F.jsx("div",{children:F.jsxs(z.Form,{form:x,onValuesChange:Ce,children:[Ea({properties:O,name:[],required:u,hiddenPaths:l,namespaceData:xe,makeValueUndefined:Be,addField:$e,removeField:Ne,isEdit:!k,expandedControls:{onExpandOpen:Tt,onExpandClose:on,expandedKeys:Fe},persistedControls:{onPersistMark:Lt,onPersistUnmark:jt,persistedKeys:qe,isPersistedKeysShown:we},urlParams:n}),F.jsxs("div",{children:["Show persisted checkboxes:"," ",F.jsx(z.Switch,{value:we,onChange:Se=>nt(Se),size:"small"})]}),F.jsx(Nn,{$space:12,$samespace:!0}),F.jsx(z.Alert,{type:"warning",message:"Будут отправлены только данные из формы. Пустые поля будут удалены рекурсивно"}),k&&J.data?.status.allowed===!1&&F.jsxs(F.Fragment,{children:[F.jsx(Nn,{$space:12,$samespace:!0}),F.jsx(z.Alert,{type:"warning",message:"Недостаточно прав для создания"})]}),!k&&X.data?.status.allowed===!1&&F.jsxs(F.Fragment,{children:[F.jsx(Nn,{$space:12,$samespace:!0}),F.jsx(z.Alert,{type:"warning",message:"Недостаточно прав для редактирования"})]}),F.jsx(Nn,{$space:12,$samespace:!0}),ye&&F.jsxs(F.Fragment,{children:[F.jsx(Nn,{$space:16,$samespace:!0}),F.jsx(z.Alert,{message:`An error has occurred: ${ye?.response?.data?.message} `,type:"error"}),F.jsx(Nn,{$space:16,$samespace:!0})]}),F.jsxs(z.Flex,{gap:16,children:[F.jsx(xr,{children:F.jsx(z.Button,{type:"primary",onClick:oe,loading:fe,children:"Submit"})}),L&&F.jsx(z.Button,{onClick:()=>C(L),children:"Cancel"}),F.jsx(z.Button,{onClick:()=>Pe(!0),icon:F.jsx(qt.BugOutlined,{})})]})]})}),F.jsx("div",{children:F.jsx(Qw,{theme:t,currentValues:W||{},onChange:We})}),he&&F.jsx(z.Modal,{open:he,onOk:()=>Pe(!1),onCancel:()=>Pe(!1),onClose:()=>Pe(!1),title:"Debug for properties",width:"90vw",children:F.jsx(to.DebugContainer,{children:F.jsx(Z.Suspense,{fallback:F.jsx("div",{children:"Loading..."}),children:F.jsx(vS,{defaultLanguage:"json",width:"100%",height:"80vh",theme:"vs-dark",value:JSON.stringify(O,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},gp=({properties:e,currentPath:t=[],result:n=[]})=>(e&&Object.keys(e).forEach(i=>{const o=[...t,i];i==="additionalProperties"?n.push(t):typeof e[i]=="object"&&e[i]!==null&&gp({properties:e[i],currentPath:o,result:n})}),n),yp=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:yp({path:i,defaultValue:t})}},wS=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=bt.get(t,a.join("."))}catch{}if(u){const l=bt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(p=>{const w={[p]:{type:l,isAdditionalProperties:!0}},k=bt.cloneDeep(f);f.properties=bt.merge(k.properties,w)});const d=yp({path:o,defaultValue:f});return bt.merge(i,d)}return i},{}),mp=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},bp=({typeName:e,apiGroup:t,apiVersion:n,swagger:i})=>{const o=`/apis/${t}/${n}/${e}`,a=`/apis/${t}/${n}/namespaces/{namespace}/${e}`,u=Object.keys(i.paths||{}).includes(o),l=Object.keys(i.paths||{}).includes(a);return{isClusterWide:u,isNamespaceScoped:l}},Uc=({typeName:e,swagger:t})=>{const n=`/api/v1/${e}`,i=`/api/v1/namespaces/{namespace}/${e}`,o=Object.keys(t.paths||{}).includes(n),a=Object.keys(t.paths||{}).includes(i);return{isClusterWide:o,isNamespaceScoped:a}},vp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,strategy:i,schema:o,hidden:a,expanded:u,persisted:l}=t;return!(typeof n!="string"||typeof n!="string"||typeof i!="string"||!(typeof o=="object"&&o!==null)||!Array.isArray(a)&&typeof a<"u"||!Array.isArray(u)&&typeof u<"u"||!Array.isArray(l)&&typeof l<"u")},wp=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Uc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=bp({apiGroup:t.apiGroup,apiVersion:t.apiVersion,typeName:t.typeName,swagger:e});o&&(i=!0),n=`/apis/${t.apiGroup}/${t.apiVersion}${o?"/namespaces/{namespace}":""}/${t.typeName}`}return{swaggerPath:n,isNamespaced:i}},Sp=({swagger:e,swaggerPath:t})=>{const n=e?.paths?.[t]?.post;if(!n)return{bodyParametersSchema:void 0,kindName:void 0,error:`No post data for ${t}`};const i=n?.["x-kubernetes-group-version-kind"];if(!i)return{bodyParametersSchema:void 0,kindName:void 0,error:`postData with no x-kubernetes-group-version-kind: ${JSON.stringify(n,null,2)}`};const o=i?.kind;if(!o)return{bodyParametersSchema:void 0,kindName:void 0,error:`x-kubernetes-group-version-kind with no kind: ${JSON.stringify(i,null,2)}`};const a=n?.parameters;if(!a){const f=`postData with no parameters: ${JSON.stringify(n,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const u=a?.filter(f=>f.in==="body")[0];if(!u){const f=`paremeters with no {in: body}: ${JSON.stringify(a,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const l=u.schema;if(!l){const f=`bodyParameters with no schema:${JSON.stringify(u,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}return Object.keys(l).includes("$ref")?{bodyParametersSchema:l,kindName:o,error:"Underefed schema"}:{bodyParametersSchema:l,kindName:o,error:void 0}},Ap=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(vp(e))if(e.spec.hidden&&(i=e.spec.hidden),e.spec.expanded&&(o=e.spec.expanded),e.spec.persisted&&(a=e.spec.persisted),e.spec.strategy==="fullReplace")e.spec.schema.properties?u=e.spec.schema.properties:u=t,e.spec.schema.required?l=e.spec.schema.required:l=n.required;else if(e.spec.strategy==="merge"){if(e.spec.schema.properties){const f=bt.cloneDeep(t);u=bt.merge(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...n.required||[],...e.spec.schema.required]:l=n.required}else if(e.spec.strategy==="replace"){if(e.spec.schema.properties){const f=bt.cloneDeep(t);u=mp(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...e.spec.schema.required]:l=n.required}else u=t,l=n.required;else u=t,l=n.required;return{hiddenPaths:i,expandedPaths:o,persistedPaths:a,propertiesToApply:u,requiredToApply:l}},SS=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:d,backlink:g,modeData:p})=>{const[w,k]=Z.useState(void 0),[S,A]=Z.useState([]),[v,R]=Z.useState([]),[L,C]=Z.useState([]),[x,I]=Z.useState([]),[O,D]=Z.useState(""),[W,Q]=Z.useState(!1),[ce,fe]=Z.useState(!1),ge=Z.useCallback(()=>{p&&(p.onChange("Manual"),p.onDisabled())},[p]);return Z.useEffect(()=>{if(!a)return;const{swaggerPath:ye,isNamespaced:pe}=wp({swagger:a,data:f});pe&&Q(!0);const{bodyParametersSchema:he,kindName:Pe,error:Fe}=Sp({swagger:a,swaggerPath:ye});if(Fe){fe(Fe),console.log(Fe),ge();return}Pe&&D(Pe);const _e=gp({properties:he.properties}),qe=wS({pathsWithAdditionalProperties:_e,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:he}),Ee=bt.cloneDeep(he.properties),we=bt.merge(Ee,qe),nt=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,J=l?.items.find(Be=>Be.spec.overrideType===nt),{hiddenPaths:X,expandedPaths:oe,persistedPaths:Ce,propertiesToApply:We,requiredToApply:xe}=Ap({specificCustomOverrides:J,newProperties:we,bodyParametersSchema:he});X&&R(X),oe&&C(oe),Ce&&I(Ce),We&&k(We),xe&&A(xe)},[a,f,ge,l]),p?.current==="Manual"?F.jsx(eS,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:d,type:f.type,isNameSpaced:W?u?.items.map(ye=>ye.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g}):!w&&!ce?null:ce?F.jsx(z.Alert,{message:ce,type:"error"}):F.jsx(pp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:w,required:S,hiddenPaths:v,expandedPaths:L,persistedPaths:x,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:d,type:f.type,isNameSpaced:W?u?.items.map(ye=>ye.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:O,typeName:f.typeName,backlink:g},JSON.stringify(w)+JSON.stringify(S)+JSON.stringify(v)+JSON.stringify(f))},AS={CustomCard:Qe(z.Card)`
443
+ `,to={ResetedFormList:lS,ContainerWithRemoveButton:fS,MinusContainer:hS,Container:cS,DebugContainer:dS},ip=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?F.jsx(tS,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:d,removeField:g}):F.jsx(nS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:d,removeField:g,persistedControls:p}),pS=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p})=>F.jsx(oS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p}),sp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>F.jsx(aS,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p}),op=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p})=>F.jsx(eS,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:d,urlParams:p}),ap=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w})=>F.jsx(Xw,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w}),up=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>F.jsx(sS,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l}),cp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:d,makeValueUndefined:g,addField:p,isAdditionalProperties:w,removeField:k,isEdit:S,expandedControls:A,persistedControls:v,urlParams:R})=>e.type==="array"?F.jsxs(Mn,{$isHidden:f,children:[F.jsxs(z.Typography.Text,{children:[Bt(t),u?.includes(Bt(t))&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),d&&F.jsxs(z.Tooltip,{title:d,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),w&&F.jsx(Ur,{type:"secondary",onClick:()=>k({path:t}),children:"Удалить"}),F.jsx(hi,{formName:a||t,persistedControls:v,type:"arr"})]}),F.jsx(to.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Bt(t))?[{validator:async(N,C)=>{if(!C||C.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(N,{add:C,remove:x},{errors:I})=>F.jsxs(F.Fragment,{children:[N.map(O=>{const D=e.items?.type,W=e.items?.description,Q=e.items;return F.jsxs(to.ContainerWithRemoveButton,{children:[F.jsxs("div",{children:[D!=="object"&&F.jsxs(F.Fragment,{children:[D==="string"&&ip({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,removeField:k,persistedControls:v}),(D==="number"||D==="integer")&&sp({isNumber:D==="number",name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,removeField:k,persistedControls:v}),(D==="rangeInputCpu"||D==="rangeInputMemory")&&op({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,isEdit:S,persistedControls:v,customProps:e.items.customProps,urlParams:R}),D==="listInput"&&ap({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,removeField:k,persistedControls:v,customProps:e.items.customProps,urlParams:R}),D==="boolean"&&up({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:W,makeValueUndefined:g,removeField:k}),D==="array"&&cp({schema:e.items,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:W,makeValueUndefined:g,addField:p,removeField:k,isEdit:S,expandedControls:A,persistedControls:v,urlParams:R})]}),D==="object"&&Q?.properties&&lp({properties:Q.properties,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],required:Q.required,forceNonRequired:l,description:W,makeValueUndefined:g,addField:p,isAdditionalProperties:w,removeField:k,isEdit:S,expandedControls:A,persistedControls:v,urlParams:R})]}),F.jsx(to.MinusContainer,{children:F.jsx(qt.MinusCircleOutlined,{size:14,onClick:()=>x(O.name)})})]},O.key)}),F.jsxs(z.Form.Item,{children:[F.jsx(z.Button,{type:"dashed",onClick:()=>C(),icon:F.jsx(qt.PlusOutlined,{}),children:"Add"}),F.jsx(z.Form.ErrorList,{errors:I})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,Ea=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:d,description:g,namespaceData:p,makeValueUndefined:w,addField:k,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:N})=>F.jsx(Mn,{$isHidden:f,children:Object.keys(e).map(C=>{if(e[C].type==="string"&&e[C].enum)return pS({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:R,options:e[C].enum||[]});if(e[C].type==="string"&&!e[C].enum||Object.keys(e[C]).includes("x-kubernetes-int-or-string"))return ip({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,namespaceData:p,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:R});if(e[C].type==="number"||e[C].type==="integer")return sp({isNumber:e[C].type==="number",name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:R});if(e[C].type==="rangeInputCpu"||e[C].type==="rangeInputMemory")return op({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isEdit:A,customProps:e[C].customProps,persistedControls:R,urlParams:N});if(e[C].type==="listInput")return ap({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,customProps:e[C].customProps,removeField:S,persistedControls:R,urlParams:N});if(e[C].type==="boolean")return up({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,makeValueUndefined:w,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S});if(e[C].type==="array")return cp({schema:e[C],name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,makeValueUndefined:w,addField:k,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:N});if(e[C].additionalProperties){const x=e[C].properties?Ea({properties:e[C].properties,name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:e[C].required,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),hiddenPaths:d,description:e[C].description,namespaceData:p,makeValueUndefined:w,addField:k,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:N}):void 0;return F.jsx(Mn,{$isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),children:F.jsxs(Kh,{title:F.jsxs(z.Typography.Text,{children:[C,g&&F.jsxs(z.Tooltip,{title:g,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]})]}),formName:Array.isArray(t)?[...t,String(C)]:[t,String(C)],expandedControls:v,children:[F.jsx(z.Input.Search,{placeholder:"Введите имя поля",allowClear:!0,enterButton:"Добавить",onSearch:I=>{if(I.length>0){const O=e[C]?.additionalProperties;k({path:Array.isArray(t)?[...t,String(C)]:[t,String(C)],name:I,type:O.type,items:O.items,nestedProperties:O.properties||{},required:O.required})}}}),x]})},Array.isArray(t)?[...t,String(C)].join("-"):[t,String(C)].join("-"))}return e[C].type==="object"&&e[C].properties?lp({properties:e[C].properties,name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,selfRequired:u?.includes(C),required:e[C].required,forceNonRequired:l||!u?.includes(C),isHidden:mr(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),hiddenPaths:d,description:e[C].description,namespaceData:p,makeValueUndefined:w,addField:k,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,isEdit:A,expandedControls:v,persistedControls:R,urlParams:N}):e[C].type==="object"&&e[C]["x-kubernetes-preserve-unknown-fields"]?F.jsx(z.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(C)):null})}),lp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:w,makeValueUndefined:k,addField:S,isAdditionalProperties:A,removeField:v,isEdit:R,expandedControls:N,persistedControls:C,urlParams:x})=>{const I=Ea({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:w,makeValueUndefined:k,addField:S,removeField:v,isEdit:R,expandedControls:N,persistedControls:C,urlParams:x});return F.jsx(Mn,{$isHidden:d,children:F.jsx(Kh,{title:F.jsxs(z.Typography.Text,{children:[Bt(t),u&&F.jsx(z.Typography.Text,{type:"danger",children:"*"}),p&&F.jsxs(z.Tooltip,{title:p,children:[" ",F.jsx(qt.QuestionCircleOutlined,{})]}),A&&F.jsx(Ur,{type:"secondary",onClick:()=>v({path:t}),children:"Удалить"}),F.jsx(hi,{formName:a||t,persistedControls:C,type:"obj"})]}),formName:o||t,expandedControls:N,children:F.jsx("div",{style:{marginLeft:"20px"},children:I})},Array.isArray(t)?t.join("-"):t)})},fp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,values:i}=t;return!(typeof n!="string"||!Array.isArray(i))},gS=Z.lazy(()=>Promise.resolve().then(()=>Lv)),hp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:w,isCreate:k,type:S,apiGroupApiVersion:A,kindName:v,typeName:R,backlink:N})=>{const C=Qn.useNavigate(),[x]=z.Form.useForm(),I=z.Form.useWatch(["metadata","namespace"],x),[O,D]=Z.useState(a),[W,Q]=Z.useState(),ce=Ab(Q,500),[fe,ge]=Z.useState(!1),[ye,pe]=Z.useState(),[he,Pe]=Z.useState(!1),[Fe,_e]=Z.useState(f||[]),[qe,Ee]=Z.useState(d||[]),[we,nt]=Z.useState(!1),J=Mr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:w?I:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:k===!0}),X=Mr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:w?I:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:k!==!0}),oe=()=>{x.validateFields().then(()=>{ge(!0),pe(void 0);const Se=x.getFieldsValue(),ke=Ps(Se,qe),He=Ki(ke),pt=ea(He,O),{namespace:Et}=ke.metadata,me=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${A}${w?`/namespaces/${Et}`:""}/${R}/${k?"":ke.metadata.name}`;k?Jo({endpoint:me,body:pt}).then(Ze=>{console.log(Ze),N&&C(N)}).catch(Ze=>{if(console.log("Form submit error",Ze),ge(!1),Go(Ze)&&Ze.response?.data.message.includes("Required value")){const ot=(Ze.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Ut=Array.from({length:ot.length},(T,y)=>ot.slice(0,y+1)),Oe=[...Fe,...Ut],De=new Set,$t=Oe.filter(T=>{const y=Array.isArray(T)?JSON.stringify(T):T;return De.has(y)?!1:(De.add(y),!0)});_e([...$t])}pe(Ze)}):Yo({endpoint:me,body:pt}).then(Ze=>{console.log(Ze),N&&C(N)}).catch(Ze=>{if(console.log("Form submit error",Ze),ge(!1),Go(Ze)&&Ze.response?.data.message.includes("Required value")){const ot=(Ze.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Ut=Array.from({length:ot.length},(T,y)=>ot.slice(0,y+1)),Oe=[...Fe,...Ut],De=new Set,$t=Oe.filter(T=>{const y=Array.isArray(T)?JSON.stringify(T):T;return De.has(y)?!1:(De.add(y),!0)});_e([...$t])}pe(Ze)})}).catch(Se=>{console.log("Validating error",Se);const ke=Se.errorFields.reduce((xt,ot)=>[...xt,ot.name],[]),Ot=ke.filter(xt=>Array.isArray(xt)).flatMap(xt=>Array.from({length:xt.length},(ot,Ut)=>xt.slice(0,Ut+1))),pt=ke.filter(xt=>!Array.isArray(xt)),Et=[...Fe,...pt,...Ot],me=new Set,Ze=Et.filter(xt=>{const ot=Array.isArray(xt)?JSON.stringify(xt):xt;return me.has(ot)?!1:(me.add(ot),!0)});_e([...Ze])})},Ce=Z.useCallback(()=>{const Se=x.getFieldsValue(),ke=Ps(Se,qe),He=Ki(ke),pt=ea(He,O);ce(pt)},[x,ce,O,qe]),We=Se=>{const ke=Zo(Se),He=sc(ke,O);ke&&x.setFieldsValue(He)};if(Z.useEffect(()=>{const Se=S==="apis"?`${A}/${R}`:`v1/${R}`,ke=o?.items.find(He=>typeof He=="object"&&!Array.isArray(He)&&He!==null&&He.spec&&typeof He.spec=="object"&&!Array.isArray(He.spec)&&He.spec!==null&&typeof He.spec.overrideType=="string"&&He.spec.overrideType===Se);if(fp(ke)&&ke.spec.values.forEach(({path:He,value:Ot})=>{x.setFieldValue(He,Ot)}),g){const He=sc(g,O);x.setFieldsValue(He)}Ce()},[g,x,o,S,A,R,Ce,O]),Z.useEffect(()=>{let Se=[];const ke=S==="apis"?`${A}/${R}`:`v1/${R}`,He=o?.items.find(me=>typeof me=="object"&&!Array.isArray(me)&&me!==null&&me.spec&&typeof me.spec=="object"&&!Array.isArray(me.spec)&&me.spec!==null&&typeof me.spec.overrideType=="string"&&me.spec.overrideType===ke);fp(He)&&(Se=He.spec.values.flatMap(({path:me})=>Wh(me))),g&&typeof g=="object"&&g!==null&&(Se=[...Se,...oc(g)]);const Ot=[...Fe,...Se],pt=new Set,Et=Ot.filter(me=>{const Ze=Array.isArray(me)?JSON.stringify(me):me;return pt.has(Ze)?!1:(pt.add(Ze),!0)});_e([...Et])},[A,o,g,S,R]),Z.useEffect(()=>{p&&x.setFieldValue(["metadata","namespace"],p),Ce()},[p,Ce,x]),Z.useEffect(()=>{k&&x.setFieldsValue({apiVersion:A==="api/v1"?"v1":A,kind:v}),Ce()},[k,v,A,Ce,x]),Z.useEffect(()=>{const Se=x.getFieldsValue(),ke=Ps(Se,qe),He=Ki(ke),pt=ea(He,O);ce(pt)},[ce,O,x,qe]),Z.useEffect(()=>{Ce()},[O,Ce]),!O)return null;const xe=w?{filterSelectOptions:nc,selectValues:w.map(Se=>({label:Se,value:Se})),disabled:!!p}:void 0,Be=Se=>{x.setFieldValue(Se,void 0),Ce()},$e=({path:Se,name:ke,type:He,items:Ot,nestedProperties:pt,required:Et})=>{const Ze=(Array.isArray(Se)?Se:[Se]).reduceRight((Ut,Oe)=>({[Oe]:{properties:Ut}}),{[ke]:{type:He,items:Ot,properties:pt,required:Et,isAdditionalProperties:!0}}),xt=bt.cloneDeep(O),ot=bt.merge(xt,Ze);console.log("newObject",Ze),console.log("newProperties",ot),D(ot)},Le=({path:Se})=>{const He=(Array.isArray(Se)?Se:[Se]).flatMap(pt=>[pt,"properties"]).slice(0,-1),Ot=bt.cloneDeep(O);bt.unset(Ot,He),D(Ot)},Tt=Se=>{_e([...Fe,Se])},on=Se=>{_e([...Fe.filter(ke=>JSON.stringify(ke)!==JSON.stringify(Se))])},Nt=(Se,ke)=>{ke&&x.getFieldValue(Se)===void 0&&(ke==="str"&&x.setFieldValue(Se,""),ke==="number"&&x.setFieldValue(Se,0),ke==="arr"&&x.setFieldValue(Se,[]),ke==="obj"&&x.setFieldValue(Se,{})),Ee([...qe,Se])},jt=Se=>{console.log(Se),Ee([...qe.filter(ke=>JSON.stringify(ke)!==JSON.stringify(Se))])};return F.jsxs(to.Container,{children:[F.jsx("div",{children:F.jsxs(z.Form,{form:x,onValuesChange:Ce,children:[Ea({properties:O,name:[],required:u,hiddenPaths:l,namespaceData:xe,makeValueUndefined:Be,addField:$e,removeField:Le,isEdit:!k,expandedControls:{onExpandOpen:Tt,onExpandClose:on,expandedKeys:Fe},persistedControls:{onPersistMark:Nt,onPersistUnmark:jt,persistedKeys:qe,isPersistedKeysShown:we},urlParams:n}),F.jsxs("div",{children:["Show persisted checkboxes:"," ",F.jsx(z.Switch,{value:we,onChange:Se=>nt(Se),size:"small"})]}),F.jsx(Ln,{$space:12,$samespace:!0}),F.jsx(z.Alert,{type:"warning",message:"Будут отправлены только данные из формы. Пустые поля будут удалены рекурсивно"}),k&&J.data?.status.allowed===!1&&F.jsxs(F.Fragment,{children:[F.jsx(Ln,{$space:12,$samespace:!0}),F.jsx(z.Alert,{type:"warning",message:"Недостаточно прав для создания"})]}),!k&&X.data?.status.allowed===!1&&F.jsxs(F.Fragment,{children:[F.jsx(Ln,{$space:12,$samespace:!0}),F.jsx(z.Alert,{type:"warning",message:"Недостаточно прав для редактирования"})]}),F.jsx(Ln,{$space:12,$samespace:!0}),ye&&F.jsxs(F.Fragment,{children:[F.jsx(Ln,{$space:16,$samespace:!0}),F.jsx(z.Alert,{message:`An error has occurred: ${ye?.response?.data?.message} `,type:"error"}),F.jsx(Ln,{$space:16,$samespace:!0})]}),F.jsxs(z.Flex,{gap:16,children:[F.jsx(xr,{children:F.jsx(z.Button,{type:"primary",onClick:oe,loading:fe,children:"Submit"})}),N&&F.jsx(z.Button,{onClick:()=>C(N),children:"Cancel"}),F.jsx(z.Button,{onClick:()=>Pe(!0),icon:F.jsx(qt.BugOutlined,{})})]})]})}),F.jsx("div",{children:F.jsx(Gw,{theme:t,currentValues:W||{},onChange:We})}),he&&F.jsx(z.Modal,{open:he,onOk:()=>Pe(!1),onCancel:()=>Pe(!1),onClose:()=>Pe(!1),title:"Debug for properties",width:"90vw",children:F.jsx(to.DebugContainer,{children:F.jsx(Z.Suspense,{fallback:F.jsx("div",{children:"Loading..."}),children:F.jsx(gS,{defaultLanguage:"json",width:"100%",height:"80vh",theme:"vs-dark",value:JSON.stringify(O,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},dp=({properties:e,currentPath:t=[],result:n=[]})=>(e&&Object.keys(e).forEach(i=>{const o=[...t,i];i==="additionalProperties"?n.push(t):typeof e[i]=="object"&&e[i]!==null&&dp({properties:e[i],currentPath:o,result:n})}),n),pp=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:pp({path:i,defaultValue:t})}},yS=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=bt.get(t,a.join("."))}catch{}if(u){const l=bt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(p=>{const w={[p]:{type:l,isAdditionalProperties:!0}},k=bt.cloneDeep(f);f.properties=bt.merge(k.properties,w)});const d=pp({path:o,defaultValue:f});return bt.merge(i,d)}return i},{}),gp=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},yp=({typeName:e,apiGroup:t,apiVersion:n,swagger:i})=>{const o=`/apis/${t}/${n}/${e}`,a=`/apis/${t}/${n}/namespaces/{namespace}/${e}`,u=Object.keys(i.paths||{}).includes(o),l=Object.keys(i.paths||{}).includes(a);return{isClusterWide:u,isNamespaceScoped:l}},Mc=({typeName:e,swagger:t})=>{const n=`/api/v1/${e}`,i=`/api/v1/namespaces/{namespace}/${e}`,o=Object.keys(t.paths||{}).includes(n),a=Object.keys(t.paths||{}).includes(i);return{isClusterWide:o,isNamespaceScoped:a}},mp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,strategy:i,schema:o,hidden:a,expanded:u,persisted:l}=t;return!(typeof n!="string"||typeof n!="string"||typeof i!="string"||!(typeof o=="object"&&o!==null)||!Array.isArray(a)&&typeof a<"u"||!Array.isArray(u)&&typeof u<"u"||!Array.isArray(l)&&typeof l<"u")},bp=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Mc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=yp({apiGroup:t.apiGroup,apiVersion:t.apiVersion,typeName:t.typeName,swagger:e});o&&(i=!0),n=`/apis/${t.apiGroup}/${t.apiVersion}${o?"/namespaces/{namespace}":""}/${t.typeName}`}return{swaggerPath:n,isNamespaced:i}},vp=({swagger:e,swaggerPath:t})=>{const n=e?.paths?.[t]?.post;if(!n)return{bodyParametersSchema:void 0,kindName:void 0,error:`No post data for ${t}`};const i=n?.["x-kubernetes-group-version-kind"];if(!i)return{bodyParametersSchema:void 0,kindName:void 0,error:`postData with no x-kubernetes-group-version-kind: ${JSON.stringify(n,null,2)}`};const o=i?.kind;if(!o)return{bodyParametersSchema:void 0,kindName:void 0,error:`x-kubernetes-group-version-kind with no kind: ${JSON.stringify(i,null,2)}`};const a=n?.parameters;if(!a){const f=`postData with no parameters: ${JSON.stringify(n,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const u=a?.filter(f=>f.in==="body")[0];if(!u){const f=`paremeters with no {in: body}: ${JSON.stringify(a,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const l=u.schema;if(!l){const f=`bodyParameters with no schema:${JSON.stringify(u,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}return Object.keys(l).includes("$ref")?{bodyParametersSchema:l,kindName:o,error:"Underefed schema"}:{bodyParametersSchema:l,kindName:o,error:void 0}},wp=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(mp(e))if(e.spec.hidden&&(i=e.spec.hidden),e.spec.expanded&&(o=e.spec.expanded),e.spec.persisted&&(a=e.spec.persisted),e.spec.strategy==="fullReplace")e.spec.schema.properties?u=e.spec.schema.properties:u=t,e.spec.schema.required?l=e.spec.schema.required:l=n.required;else if(e.spec.strategy==="merge"){if(e.spec.schema.properties){const f=bt.cloneDeep(t);u=bt.merge(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...n.required||[],...e.spec.schema.required]:l=n.required}else if(e.spec.strategy==="replace"){if(e.spec.schema.properties){const f=bt.cloneDeep(t);u=gp(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...e.spec.schema.required]:l=n.required}else u=t,l=n.required;else u=t,l=n.required;return{hiddenPaths:i,expandedPaths:o,persistedPaths:a,propertiesToApply:u,requiredToApply:l}},mS=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:d,backlink:g,modeData:p})=>{const[w,k]=Z.useState(void 0),[S,A]=Z.useState([]),[v,R]=Z.useState([]),[N,C]=Z.useState([]),[x,I]=Z.useState([]),[O,D]=Z.useState(""),[W,Q]=Z.useState(!1),[ce,fe]=Z.useState(!1),ge=Z.useCallback(()=>{p&&(p.onChange("Manual"),p.onDisabled())},[p]);return Z.useEffect(()=>{if(!a)return;const{swaggerPath:ye,isNamespaced:pe}=bp({swagger:a,data:f});pe&&Q(!0);const{bodyParametersSchema:he,kindName:Pe,error:Fe}=vp({swagger:a,swaggerPath:ye});if(Fe){fe(Fe),console.log(Fe),ge();return}Pe&&D(Pe);const _e=dp({properties:he.properties}),qe=yS({pathsWithAdditionalProperties:_e,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:he}),Ee=bt.cloneDeep(he.properties),we=bt.merge(Ee,qe),nt=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,J=l?.items.find(Be=>Be.spec.overrideType===nt),{hiddenPaths:X,expandedPaths:oe,persistedPaths:Ce,propertiesToApply:We,requiredToApply:xe}=wp({specificCustomOverrides:J,newProperties:we,bodyParametersSchema:he});X&&R(X),oe&&C(oe),Ce&&I(Ce),We&&k(We),xe&&A(xe)},[a,f,ge,l]),p?.current==="Manual"?F.jsx(Yw,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:d,type:f.type,isNameSpaced:W?u?.items.map(ye=>ye.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g}):!w&&!ce?null:ce?F.jsx(z.Alert,{message:ce,type:"error"}):F.jsx(hp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:w,required:S,hiddenPaths:v,expandedPaths:N,persistedPaths:x,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:d,type:f.type,isNameSpaced:W?u?.items.map(ye=>ye.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:O,typeName:f.typeName,backlink:g},JSON.stringify(w)+JSON.stringify(S)+JSON.stringify(v)+JSON.stringify(f))},bS={CustomCard:Qe(z.Card)`
444
444
  display: flex;
445
445
  justify-content: center;
446
446
  align-items: center;
@@ -459,7 +459,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
459
459
  overflow-x: auto;
460
460
  padding: 8px;
461
461
  }
462
- `},ES=({onAddClick:e})=>F.jsx(AS.CustomCard,{onClick:e,children:F.jsx(qt.PlusOutlined,{})}),xS=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[g]=z.Form.useForm(),p=z.Form.useWatch("type",g),w=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,k=A=>{if(typeof a=="boolean"){Jo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Mh()},spec:{...A}}}).then(()=>{u(!1),f()}).catch(v=>{(Go(v)||v instanceof Error)&&l(v)}).finally(()=>u(!1));return}Yo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...A}}}).then(()=>{u(!1),d()}).catch(v=>{(Go(v)||v instanceof Error)&&l(v)}).finally(()=>u(!1))},S=()=>{g.validateFields().then(()=>{k(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return F.jsx(z.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S,children:F.jsxs(z.Form,{form:g,name:"control-hooks",initialValues:{...w},children:[F.jsx(z.Form.Item,{label:"Name",name:"name",children:F.jsx(z.Input,{required:!0})}),F.jsx(z.Form.Item,{label:"Description",name:"description",children:F.jsx(z.Input,{required:!0})}),F.jsx(z.Form.Item,{label:"Icon",name:"icon",children:F.jsx(z.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),F.jsx(z.Form.Item,{label:"Resources type",name:"type",children:F.jsx(z.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),F.jsx(z.Form.Item,{label:"Enter API group",name:"apiGroup",children:F.jsx(z.Input,{disabled:p==="direct"||p==="built-in"})}),F.jsx(z.Form.Item,{label:"Enter API version",name:"apiVersion",children:F.jsx(z.Input,{disabled:p==="direct"||p==="built-in"})}),F.jsx(z.Form.Item,{label:"Enter resource type",name:"typeName",children:F.jsx(z.Input,{disabled:p==="direct"})}),F.jsx(z.Form.Item,{label:"Enter path",name:"pathToNav",children:F.jsx(z.Input,{disabled:p!=="direct"})}),F.jsx(z.Form.Item,{label:"Tags",name:"tags",children:F.jsx(z.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),F.jsx(z.Form.Item,{label:"Disabled",name:"disabled",children:F.jsx(z.Switch,{})}),F.jsx(z.Form.Item,{label:"Hidden",name:"hidden",children:F.jsx(z.Switch,{})})]})})},CS=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},_S=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,kS=Qe(z.Card)`
462
+ `},vS=({onAddClick:e})=>F.jsx(bS.CustomCard,{onClick:e,children:F.jsx(qt.PlusOutlined,{})}),un=[];for(let e=0;e<256;++e)un.push((e+256).toString(16).slice(1));function wS(e,t=0){return(un[e[t+0]]+un[e[t+1]]+un[e[t+2]]+un[e[t+3]]+"-"+un[e[t+4]]+un[e[t+5]]+"-"+un[e[t+6]]+un[e[t+7]]+"-"+un[e[t+8]]+un[e[t+9]]+"-"+un[e[t+10]]+un[e[t+11]]+un[e[t+12]]+un[e[t+13]]+un[e[t+14]]+un[e[t+15]]).toLowerCase()}let Uc;const SS=new Uint8Array(16);function AS(){if(!Uc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Uc=crypto.getRandomValues.bind(crypto)}return Uc(SS)}const Sp={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ES(e,t,n){if(Sp.randomUUID&&!e)return Sp.randomUUID();e=e||{};const i=e.random||(e.rng||AS)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,wS(i)}const xS=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[g]=z.Form.useForm(),p=z.Form.useWatch("type",g),w=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,k=A=>{if(typeof a=="boolean"){Jo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:ES()},spec:{...A}}}).then(()=>{u(!1),f()}).catch(v=>{(Go(v)||v instanceof Error)&&l(v)}).finally(()=>u(!1));return}Yo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...A}}}).then(()=>{u(!1),d()}).catch(v=>{(Go(v)||v instanceof Error)&&l(v)}).finally(()=>u(!1))},S=()=>{g.validateFields().then(()=>{k(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return F.jsx(z.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S,children:F.jsxs(z.Form,{form:g,name:"control-hooks",initialValues:{...w},children:[F.jsx(z.Form.Item,{label:"Name",name:"name",children:F.jsx(z.Input,{required:!0})}),F.jsx(z.Form.Item,{label:"Description",name:"description",children:F.jsx(z.Input,{required:!0})}),F.jsx(z.Form.Item,{label:"Icon",name:"icon",children:F.jsx(z.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),F.jsx(z.Form.Item,{label:"Resources type",name:"type",children:F.jsx(z.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),F.jsx(z.Form.Item,{label:"Enter API group",name:"apiGroup",children:F.jsx(z.Input,{disabled:p==="direct"||p==="built-in"})}),F.jsx(z.Form.Item,{label:"Enter API version",name:"apiVersion",children:F.jsx(z.Input,{disabled:p==="direct"||p==="built-in"})}),F.jsx(z.Form.Item,{label:"Enter resource type",name:"typeName",children:F.jsx(z.Input,{disabled:p==="direct"})}),F.jsx(z.Form.Item,{label:"Enter path",name:"pathToNav",children:F.jsx(z.Input,{disabled:p!=="direct"})}),F.jsx(z.Form.Item,{label:"Tags",name:"tags",children:F.jsx(z.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),F.jsx(z.Form.Item,{label:"Disabled",name:"disabled",children:F.jsx(z.Switch,{})}),F.jsx(z.Form.Item,{label:"Hidden",name:"hidden",children:F.jsx(z.Switch,{})})]})})},CS=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},_S=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,kS=Qe(z.Card)`
463
463
  position: relative;
464
464
  width: 238px;
465
465
  overflow-x: auto;
@@ -522,7 +522,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
522
522
  position: absolute;
523
523
  bottom: 6px;
524
524
  right: 6px;
525
- `,Wr={CustomCard:kS,ImageContainer:TS,OverflowContainer:OS,TitleContainer:IS,TagsContainer:FS,CustomTag:BS,DescriptionContainer:DS,EditButtonContainer:PS},Vc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,tags:p,disabled:w,isEditMode:k,onDeleteClick:S,onEditClick:A,addedMode:v})=>{const{useToken:R}=z.theme,{token:L}=R(),C=Qn.useNavigate();let x="";try{x=window.atob(i)}catch{x="Can't decode"}const I=CS({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}),O=v&&u!=="direct"?_S({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:g}):void 0,{data:D,error:W}=sn({uri:O||"",queryKey:[O||""],refetchInterval:!1,isEnabled:v&&O!==void 0});return v&&(W||u==="direct")?null:F.jsx(Wr.CustomCard,{$isDisabled:w,$hoverColor:L.colorPrimary,onClick:()=>w?null:C(I),children:F.jsxs(z.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[F.jsxs(z.Flex,{justify:"space-between",children:[F.jsx(Wr.ImageContainer,{dangerouslySetInnerHTML:{__html:x}}),k&&F.jsx("div",{onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),S&&S()},children:F.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),F.jsxs(Wr.OverflowContainer,{children:[F.jsxs(Wr.TitleContainer,{children:[n," ",v&&F.jsxs("span",{children:["x",D?.items?.length]})]}),F.jsx(Wr.TagsContainer,{children:p.map(Q=>F.jsx(Wr.CustomTag,{children:Q},Q))}),F.jsx(Wr.DescriptionContainer,{children:F.jsx(z.Typography.Text,{type:"secondary",children:t})})]}),F.jsx(Wr.EditButtonContainer,{children:k&&F.jsx("div",{onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),A&&A()},children:F.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},RS=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return F.jsx(z.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},NS={BigValue:Qe.div`
525
+ `,Wr={CustomCard:kS,ImageContainer:TS,OverflowContainer:OS,TitleContainer:IS,TagsContainer:FS,CustomTag:BS,DescriptionContainer:DS,EditButtonContainer:PS},Vc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,tags:p,disabled:w,isEditMode:k,onDeleteClick:S,onEditClick:A,addedMode:v})=>{const{useToken:R}=z.theme,{token:N}=R(),C=Qn.useNavigate();let x="";try{x=window.atob(i)}catch{x="Can't decode"}const I=CS({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}),O=v&&u!=="direct"?_S({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:g}):void 0,{data:D,error:W}=sn({uri:O||"",queryKey:[O||""],refetchInterval:!1,isEnabled:v&&O!==void 0});return v&&(W||u==="direct")?null:F.jsx(Wr.CustomCard,{$isDisabled:w,$hoverColor:N.colorPrimary,onClick:()=>w?null:C(I),children:F.jsxs(z.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[F.jsxs(z.Flex,{justify:"space-between",children:[F.jsx(Wr.ImageContainer,{dangerouslySetInnerHTML:{__html:x}}),k&&F.jsx("div",{onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),S&&S()},children:F.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),F.jsxs(Wr.OverflowContainer,{children:[F.jsxs(Wr.TitleContainer,{children:[n," ",v&&F.jsxs("span",{children:["x",D?.items?.length]})]}),F.jsx(Wr.TagsContainer,{children:p.map(Q=>F.jsx(Wr.CustomTag,{children:Q},Q))}),F.jsx(Wr.DescriptionContainer,{children:F.jsx(z.Typography.Text,{type:"secondary",children:t})})]}),F.jsx(Wr.EditButtonContainer,{children:k&&F.jsx("div",{onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),A&&A()},children:F.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},RS=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return F.jsx(z.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},LS={BigValue:Qe.div`
526
526
  font-size: 36px;
527
527
  line-height: 36px;
528
528
  font-weight: 700;
@@ -535,7 +535,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
535
535
  -webkit-box-orient: vertical;
536
536
  line-clamp: 1;
537
537
  word-break: break-all;
538
- `},Ep=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=z.notification.useNotification(),[d,g]=Z.useState(!1),[p,w]=Z.useState(!1),[k,S]=Z.useState(!1),[A,v]=Z.useState(),[R,L]=Z.useState(),[C,x]=Z.useState([]),[I,O]=Z.useState([]),[D,W]=Z.useState([]),[Q,ce]=Z.useState([]),{data:fe,isLoading:ge,error:ye}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),pe=Mr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),he=Mr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Pe=Mr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Fe=()=>l.success({message:"Card created",key:"create-marketplace-success"}),_e=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{fe&&(d?(x(fe.items.map(({spec:Ee})=>Ee).sort()),W(fe.items.flatMap(({spec:Ee})=>Ee.tags).filter((Ee,we,nt)=>nt.indexOf(Ee)===we))):(x(fe.items.map(({spec:Ee})=>Ee).filter(({hidden:Ee})=>Ee!==!0).sort()),W(fe.items.filter(({spec:Ee})=>Ee.hidden!==!0).flatMap(({spec:Ee})=>Ee.tags).filter((Ee,we,nt)=>nt.indexOf(Ee)===we))))},[fe,d]),Z.useEffect(()=>{let Ee=[];Q&&Q.length>0?Ee=C.filter(({name:we,description:nt,tags:J})=>Q.some(X=>we.toLowerCase().includes(X.toLowerCase()))||Q.some(X=>nt.toLowerCase().includes(X.toLowerCase()))||Q.some(X=>J.some(oe=>oe.toLowerCase().includes(X.toLowerCase())))).sort():Ee=C.sort(),O(Ee)},[Q,C]),ye)return F.jsx("div",{children:JSON.stringify(ye)});if(ge)return F.jsx(z.Spin,{});if(!fe)return F.jsx("div",{children:"No panels"});const qe=()=>{g(!d)};return F.jsxs(F.Fragment,{children:[f,F.jsxs(z.Flex,{justify:"space-between",children:[F.jsx("div",{children:F.jsxs(z.Flex,{gap:12,vertical:!0,children:[F.jsx("div",{children:F.jsx(z.Typography.Text,{type:"secondary",children:"Available Products"})}),F.jsx("div",{children:F.jsx(NS.BigValue,{children:"Marketplace"})})]})}),F.jsx("div",{children:F.jsxs(z.Flex,{gap:12,vertical:!0,children:[F.jsx(RS,{uniqueTags:D,selectedTags:Q,onSelectedTags:ce}),(pe.data?.status.allowed||he.data?.status.allowed||Pe.data?.status.allowed)&&F.jsxs(z.Flex,{align:"center",gap:8,children:[F.jsx(z.Switch,{defaultChecked:!0,checked:d,onClick:qe})," Edit Mode"]})]})})]}),F.jsx(Nn,{$space:20,$samespace:!0}),A&&F.jsx(z.Alert,{description:JSON.stringify(A),message:"Card was not created",onClose:()=>v(void 0),type:"error"}),R&&F.jsx(z.Alert,{description:JSON.stringify(R),message:"Card was not deleted",onClose:()=>L(void 0),type:"error"}),F.jsxs(z.Flex,{gap:22,wrap:!0,children:[e&&t&&I.map(({name:Ee,description:we,icon:nt,type:J,pathToNav:X,typeName:oe,apiGroup:Ce,apiVersion:We,tags:xe,disabled:Be})=>F.jsx(Vc,{baseprefix:u,description:we,disabled:Be,icon:nt,isEditMode:d,name:Ee,clusterName:e,namespace:t,type:J,pathToNav:X,typeName:oe,apiGroup:Ce,apiVersion:We,tags:xe,onDeleteClick:()=>{const $e=fe.items.find(({spec:Ne})=>Ne.name===Ee);S($e?{name:$e.metadata.name}:!1)},onEditClick:()=>{w(fe.items.find(({spec:$e})=>$e.name===Ee)||!1)}},Ee)),d&&F.jsx(ES,{onAddClick:()=>{w(!0)}})]}),p&&F.jsx(xS,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:v,setIsOpen:w,onCreateSuccess:Fe,onUpdateSuccess:_e}),typeof k!="boolean"&&F.jsx(Qu,{name:k.name,onClose:()=>S(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${k.name}`})]})},LS=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:F.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:F.jsxs(z.Flex,{align:"center",gap:8,children:[F.jsx(Eh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:F.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:F.jsxs(z.Flex,{align:"center",gap:8,children:[F.jsx(Ah,{}),"Delete"]})})}),i};return F.jsx(z.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:F.jsx(z.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:F.jsx(qt.EllipsisOutlined,{})})})},jS=()=>{const e=()=>["g-advanced-credit-factory","g-advanced-credit-factory","g-advanced-credit-factory","g-advanced-credit-factory"].map((t,n)=>({key:`${t}-${n}`,label:F.jsx("div",{onClick:i=>{i.stopPropagation()},children:t})}));return F.jsx(z.Dropdown,{placement:"bottomRight",menu:{items:e()},trigger:["click"],children:F.jsxs(z.Button,{type:"link",onClick:t=>{t.preventDefault(),t.stopPropagation()},children:["Access Groups",F.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},$S=Qe.div`
538
+ `},Ap=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=z.notification.useNotification(),[d,g]=Z.useState(!1),[p,w]=Z.useState(!1),[k,S]=Z.useState(!1),[A,v]=Z.useState(),[R,N]=Z.useState(),[C,x]=Z.useState([]),[I,O]=Z.useState([]),[D,W]=Z.useState([]),[Q,ce]=Z.useState([]),{data:fe,isLoading:ge,error:ye}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),pe=Mr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),he=Mr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Pe=Mr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Fe=()=>l.success({message:"Card created",key:"create-marketplace-success"}),_e=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{fe&&(d?(x(fe.items.map(({spec:Ee})=>Ee).sort()),W(fe.items.flatMap(({spec:Ee})=>Ee.tags).filter((Ee,we,nt)=>nt.indexOf(Ee)===we))):(x(fe.items.map(({spec:Ee})=>Ee).filter(({hidden:Ee})=>Ee!==!0).sort()),W(fe.items.filter(({spec:Ee})=>Ee.hidden!==!0).flatMap(({spec:Ee})=>Ee.tags).filter((Ee,we,nt)=>nt.indexOf(Ee)===we))))},[fe,d]),Z.useEffect(()=>{let Ee=[];Q&&Q.length>0?Ee=C.filter(({name:we,description:nt,tags:J})=>Q.some(X=>we.toLowerCase().includes(X.toLowerCase()))||Q.some(X=>nt.toLowerCase().includes(X.toLowerCase()))||Q.some(X=>J.some(oe=>oe.toLowerCase().includes(X.toLowerCase())))).sort():Ee=C.sort(),O(Ee)},[Q,C]),ye)return F.jsx("div",{children:JSON.stringify(ye)});if(ge)return F.jsx(z.Spin,{});if(!fe)return F.jsx("div",{children:"No panels"});const qe=()=>{g(!d)};return F.jsxs(F.Fragment,{children:[f,F.jsxs(z.Flex,{justify:"space-between",children:[F.jsx("div",{children:F.jsxs(z.Flex,{gap:12,vertical:!0,children:[F.jsx("div",{children:F.jsx(z.Typography.Text,{type:"secondary",children:"Available Products"})}),F.jsx("div",{children:F.jsx(LS.BigValue,{children:"Marketplace"})})]})}),F.jsx("div",{children:F.jsxs(z.Flex,{gap:12,vertical:!0,children:[F.jsx(RS,{uniqueTags:D,selectedTags:Q,onSelectedTags:ce}),(pe.data?.status.allowed||he.data?.status.allowed||Pe.data?.status.allowed)&&F.jsxs(z.Flex,{align:"center",gap:8,children:[F.jsx(z.Switch,{defaultChecked:!0,checked:d,onClick:qe})," Edit Mode"]})]})})]}),F.jsx(Ln,{$space:20,$samespace:!0}),A&&F.jsx(z.Alert,{description:JSON.stringify(A),message:"Card was not created",onClose:()=>v(void 0),type:"error"}),R&&F.jsx(z.Alert,{description:JSON.stringify(R),message:"Card was not deleted",onClose:()=>N(void 0),type:"error"}),F.jsxs(z.Flex,{gap:22,wrap:!0,children:[e&&t&&I.map(({name:Ee,description:we,icon:nt,type:J,pathToNav:X,typeName:oe,apiGroup:Ce,apiVersion:We,tags:xe,disabled:Be})=>F.jsx(Vc,{baseprefix:u,description:we,disabled:Be,icon:nt,isEditMode:d,name:Ee,clusterName:e,namespace:t,type:J,pathToNav:X,typeName:oe,apiGroup:Ce,apiVersion:We,tags:xe,onDeleteClick:()=>{const $e=fe.items.find(({spec:Le})=>Le.name===Ee);S($e?{name:$e.metadata.name}:!1)},onEditClick:()=>{w(fe.items.find(({spec:$e})=>$e.name===Ee)||!1)}},Ee)),d&&F.jsx(vS,{onAddClick:()=>{w(!0)}})]}),p&&F.jsx(xS,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:v,setIsOpen:w,onCreateSuccess:Fe,onUpdateSuccess:_e}),typeof k!="boolean"&&F.jsx(Qu,{name:k.name,onClose:()=>S(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${k.name}`})]})},NS=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:F.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:F.jsxs(z.Flex,{align:"center",gap:8,children:[F.jsx(Eh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:F.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:F.jsxs(z.Flex,{align:"center",gap:8,children:[F.jsx(Ah,{}),"Delete"]})})}),i};return F.jsx(z.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:F.jsx(z.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:F.jsx(qt.EllipsisOutlined,{})})})},jS=()=>{const e=()=>["g-advanced-credit-factory","g-advanced-credit-factory","g-advanced-credit-factory","g-advanced-credit-factory"].map((t,n)=>({key:`${t}-${n}`,label:F.jsx("div",{onClick:i=>{i.stopPropagation()},children:t})}));return F.jsx(z.Dropdown,{placement:"bottomRight",menu:{items:e()},trigger:["click"],children:F.jsxs(z.Button,{type:"link",onClick:t=>{t.preventDefault(),t.stopPropagation()},children:["Access Groups",F.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},$S=Qe.div`
539
539
  width: 45.33px;
540
540
  height: 1px;
541
541
  `,MS=Qe.div`
@@ -551,5 +551,5 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
551
551
  -webkit-box-orient: vertical;
552
552
  line-clamp: 1;
553
553
  word-break: break-all;
554
- `,xp={ActionMenuPlaceholder:$S,BigValue:MS},Cp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectVersion:o,mpResourceName:a,projectResourceName:u,baseprefix:l,children:f})=>{const d=Qn.useNavigate(),{data:g,isLoading:p}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${a}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:w,isLoading:k,error:S}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${o}/${u}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[A,v]=Z.useState(!1),R=Mr({apiGroup:n,typeName:u,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),L=Mr({apiGroup:n,typeName:u,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),C=Z.useCallback(()=>{d(`${l}/${e}/forms/apis/${n}/${o}/${u}/${t}?backlink=${l}/clusters/${e}`)},[l,e,t,n,o,u,d]);if(k)return F.jsx(z.Spin,{});if(!w||S)return null;const x=w.status.conditions.find(({type:I})=>I==="Ready");return F.jsxs(F.Fragment,{children:[F.jsxs(z.Flex,{justify:"space-between",children:[F.jsxs("div",{children:[F.jsxs(z.Flex,{gap:20,vertical:!0,children:[F.jsx("div",{children:F.jsx(z.Typography.Text,{type:"secondary",children:"Project Business Name"})}),F.jsx("div",{children:F.jsxs(z.Flex,{gap:"small",children:[F.jsx(xp.BigValue,{children:w.spec.businessName||"-"}),x&&F.jsx(z.Flex,{align:"center",gap:"small",children:F.jsx(z.Typography.Text,{type:x.status==="True"?"success":"warning",children:x.reason})})]})})]}),f]}),F.jsx("div",{children:F.jsxs(z.Flex,{gap:24,vertical:!0,children:[F.jsx(z.Flex,{justify:"flex-end",children:x?.status==="True"&&(R.data?.status.allowed||L.data?.status.allowed)?F.jsx(LS,{onDelete:L.data?.status.allowed?()=>{v(!0)}:void 0,onUpdate:R.data?.status.allowed?C:void 0}):F.jsx(xp.ActionMenuPlaceholder,{})}),F.jsx(jS,{})]})})]}),F.jsx(Nn,{$space:24,$samespace:!0}),F.jsx(z.Typography.Text,{type:"secondary",children:"Added Products"}),F.jsx(Nn,{$space:12,$samespace:!0}),F.jsxs(z.Flex,{gap:22,wrap:!0,children:[p&&F.jsx(z.Spin,{}),e&&t&&g?.items.map(({spec:I})=>I).sort().map(({name:I,description:O,icon:D,type:W,pathToNav:Q,typeName:ce,apiGroup:fe,apiVersion:ge,tags:ye,disabled:pe})=>F.jsx(Vc,{baseprefix:l,description:O,disabled:pe,icon:D,isEditMode:!1,name:I,clusterName:e,namespace:t,type:W,pathToNav:Q,typeName:ce,apiGroup:fe,apiVersion:ge,tags:ye,addedMode:!0},I))]}),A&&F.jsx(Qu,{name:w.metadata.name,onClose:()=>{v(!1),d(`${l}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${n}/${o}/${u}/${w.metadata.name}`})]})},_p=({items:e,components:t})=>F.jsx(F.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return F.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);const a=n.children?F.jsx(_p,{items:n.children,components:t}):null;return F.jsx(Z.Fragment,{children:F.jsx(o,{data:n.data,children:a})},i)})}),kp=e=>F.jsx(_p,{...e}),US=({data:e})=>{const{id:t,text:n,...i}=e;return F.jsx(z.Typography.Text,{...i,children:n})},VS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Card,{...i,children:t})},qS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Flex,{...i,children:t})},WS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Row,{...i,children:t})},KS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Col,{...i,children:t})},HS=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return F.jsxs(z.Button,{...o,children:[e.text,t]})},Tp=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return F.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Z.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Op=Tp(),zS=Op.Provider,xa=Op.useTypedContext,GS=({data:e})=>{const n=xa().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Ct({template:e.text,replaceValues:n});return F.jsx("span",{children:i})},Ip=Z.createContext(void 0),JS=({urls:e,children:t})=>{const n=wn.useQueries({queries:e.map((f,d)=>({queryKey:["multi",d,f],queryFn:async()=>(await it.get(f)).data}))}),i={},o=[];n.forEach((f,d)=>{i[`req${d}`]=f.data,o[d]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Z.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return F.jsx(Ip.Provider,{value:l,children:t})},Fp=()=>{const e=Z.useContext(Ip);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},YS={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx("div",{...i,children:t})},antdText:US,antdCard:VS,antdFlex:qS,antdRow:WS,antdCol:KS,antdButton:HS,partsOfUrl:GS,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Fp(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(w=>w[1]),p=fi.get(t[`req${d}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?F.jsx("div",{children:"Loading..."}):i?F.jsxs("div",{children:[F.jsx("h4",{children:"Errors:"}),F.jsx("ul",{children:o.map((u,l)=>u&&F.jsx("li",{children:u.message},l))})]}):F.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Fp(),a=xa(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,g,p)=>{try{const w=parseInt(g,10),k=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(A=>A[1]),S=fi.get(t[`req${w}`],k);return S!=null?String(S):""}catch{return d}}):"",[e?.text,t]);if(n)return F.jsx("div",{children:"Loading..."});if(i)return F.jsxs("div",{children:[F.jsx("h4",{children:"Errors:"}),F.jsx("ul",{children:o.map((d,g)=>d&&F.jsx("li",{children:d.message},g))})]});const l=a.partsOfUrl.reduce((d,g,p)=>(d[p.toString()]=g,d),{}),f=Ct({template:u,replaceValues:l});return F.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=xa().partsOfUrl.reduce((g,p,w)=>(g[w.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return F.jsx(Cp,{clusterName:f,namespace:d,...a,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=xa().partsOfUrl.reduce((g,p,w)=>(g[w.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return F.jsx(Ep,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(xh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(Nn,{...i})}},Bp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Ct({template:i,replaceValues:n}))},XS=e=>{const t=Qn.useLocation(),{urlsToFetch:n}=e,i=Bp({urls:n,locationPathname:t.pathname});return F.jsx(zS,{value:{partsOfUrl:t.pathname.split("/")},children:F.jsx(JS,{urls:i,children:F.jsx(kp,{...e})})})},QS=e=>typeof e=="object"&&"value"in e&&"highlight"in e,ZS=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const d=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[d]=t[d]||{};for(const w of g)p[w]=p[w]||{},p=p[w];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(QS(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},eA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),tA=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:d})=>d==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:d})=>!o.includes(d)&&!d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),l=t?.groups.filter(({name:d})=>o.includes(d)||d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:d})=>Uc({typeName:d,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},nA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w,pathname:k})=>e.map(({pathToMatch:A,pathToNavigate:v,keysToParse:R})=>({pathToMatch:A?Ct({template:A,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w}}):void 0,pathToNavigate:v?Ct({template:v,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w}}):void 0,keysToParse:R})).find(({pathToMatch:A})=>A?Qn.matchPath(A,k):!1),Dp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),Pp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Rp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Np=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),rA=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Dp(n)?n.spec.additionalPrinterColumns:void 0,o=Pp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Rp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Np(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},iA=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/openapi/v2`),Lp=async()=>it.get("/clusterlist"),jp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},$p=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Mp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return it.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Up=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>it.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),Vp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Wp=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/apis/`),Kp=async({clusterName:e,apiGroup:t,apiVersion:n})=>it.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Hp=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/api/v1`),zp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>it.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),sA=({refetchInterval:e})=>wn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Lp()).data,refetchInterval:e!==void 0?e:5e3}),oA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>wn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await jp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),aA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>wn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await $p({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),uA=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>wn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Mp({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),cA=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>wn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Up({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),lA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>wn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await Vp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),fA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>wn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await qp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),hA=({clusterName:e})=>wn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Wp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),dA=({clusterName:e,apiGroup:t,apiVersion:n})=>wn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Kp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),pA=({clusterName:e})=>wn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Hp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),gA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>wn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await zp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});ue.BlackholeForm=pp,ue.BlackholeFormDataProvider=SS,ue.ContentCard=xh,ue.DeleteIcon=Ah,ue.DeleteModal=Qu,ue.DeleteModalMany=q1,ue.DynamicComponents=YS,ue.DynamicRenderer=kp,ue.DynamicRendererWithProviders=XS,ue.EditIcon=Eh,ue.EnrichedTable=Lh,ue.EnrichedTableProvider=ob,ue.ManageableBreadcrumbs=kh,ue.ManageableBreadcrumbsWithDataProvider=H1,ue.ManageableSidebar=Ih,ue.ManageableSidebarWithDataProvider=J1,ue.MarketPlace=Ep,ue.MarketplaceCard=Vc,ue.ProjectInfoCard=Cp,ue.Spacer=Nn,ue.TreeWithSearch=Sm,ue.checkIfApiInstanceNamespaceScoped=bp,ue.checkIfBuiltInInstanceNamespaceScoped=Uc,ue.checkPermission=Kh,ue.createContextFactory=Tp,ue.createNewEntry=Jo,ue.deleteEntry=Xu,ue.filterSelectOptions=rc,ue.floorToDecimal=Rs,ue.getAllPathsFromObj=ac,ue.getApiResourceSingle=$p,ue.getApiResourceTypes=Wp,ue.getApiResourceTypesByApiGroup=Kp,ue.getApiResources=jp,ue.getBodyParametersSchema=Sp,ue.getBuiltinResourceSingle=Up,ue.getBuiltinResourceTypes=Hp,ue.getBuiltinResources=Mp,ue.getBuiltinTreeData=eA,ue.getClusterList=Lp,ue.getCrdData=zp,ue.getCrdResourceSingle=qp,ue.getCrdResources=Vp,ue.getDirectUnknownResource=Ch,ue.getEnrichedColumns=Rh,ue.getEnrichedColumnsWithControls=Nh,ue.getGroupsByCategory=tA,ue.getObjectFormItemsDraft=Ea,ue.getPrefixSubarrays=Hh,ue.getStringByName=Bt,ue.getSwagger=iA,ue.getSwaggerPathAndIsNamespaceScoped=wp,ue.groupsToTreeData=ZS,ue.isFlatObject=Ph,ue.isFormOverride=vp,ue.isWithAdditionalPrinterColumns=Dp,ue.isWithAdditionalPrinterColumnsColWidths=Np,ue.isWithAdditionalPrinterColumnsTrimLengths=Rp,ue.isWithAdditionalPrinterColumnsUndefinedValues=Pp,ue.normalizeValuesForQuotas=ea,ue.normalizeValuesForQuotasToNumber=oc,ue.overwriteMatchingKeys=mp,ue.parseCustomOverrides=rA,ue.parseQuotaValue=kb,ue.parseQuotaValueCpu=ic,ue.parseQuotaValueMemoryAndStorage=sc,ue.prepareDataForEnrichedColumns=Uh,ue.prepareDataForManageableBreadcrumbs=_h,ue.prepareDataForManageableSidebar=Oh,ue.prepareTableMappings=nA,ue.prepareTemplate=Ct,ue.prepareUrlsToFetchForDynamicRenderer=Bp,ue.processOverride=Ap,ue.removeEmptyFormValues=Ps,ue.renameBrokenFieldBack=Ki,ue.renameBrokenFieldBackToFormAgain=Zo,ue.updateEntry=Yo,ue.useApiResourceSingle=aA,ue.useApiResourceTypesByGroup=dA,ue.useApiResources=oA,ue.useApisResourceTypes=hA,ue.useBuiltinResourceSingle=cA,ue.useBuiltinResourceTypes=pA,ue.useBuiltinResources=uA,ue.useClusterList=sA,ue.useCrdData=gA,ue.useCrdResourceSingle=fA,ue.useCrdResources=lA,ue.useDirectUnknownResource=sn,ue.usePermissions=Mr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
554
+ `,Ep={ActionMenuPlaceholder:$S,BigValue:MS},xp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectVersion:o,mpResourceName:a,projectResourceName:u,baseprefix:l,children:f})=>{const d=Qn.useNavigate(),{data:g,isLoading:p}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${a}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:w,isLoading:k,error:S}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${o}/${u}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[A,v]=Z.useState(!1),R=Mr({apiGroup:n,typeName:u,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),N=Mr({apiGroup:n,typeName:u,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),C=Z.useCallback(()=>{d(`${l}/${e}/forms/apis/${n}/${o}/${u}/${t}?backlink=${l}/clusters/${e}`)},[l,e,t,n,o,u,d]);if(k)return F.jsx(z.Spin,{});if(!w||S)return null;const x=w.status.conditions.find(({type:I})=>I==="Ready");return F.jsxs(F.Fragment,{children:[F.jsxs(z.Flex,{justify:"space-between",children:[F.jsxs("div",{children:[F.jsxs(z.Flex,{gap:20,vertical:!0,children:[F.jsx("div",{children:F.jsx(z.Typography.Text,{type:"secondary",children:"Project Business Name"})}),F.jsx("div",{children:F.jsxs(z.Flex,{gap:"small",children:[F.jsx(Ep.BigValue,{children:w.spec.businessName||"-"}),x&&F.jsx(z.Flex,{align:"center",gap:"small",children:F.jsx(z.Typography.Text,{type:x.status==="True"?"success":"warning",children:x.reason})})]})})]}),f]}),F.jsx("div",{children:F.jsxs(z.Flex,{gap:24,vertical:!0,children:[F.jsx(z.Flex,{justify:"flex-end",children:x?.status==="True"&&(R.data?.status.allowed||N.data?.status.allowed)?F.jsx(NS,{onDelete:N.data?.status.allowed?()=>{v(!0)}:void 0,onUpdate:R.data?.status.allowed?C:void 0}):F.jsx(Ep.ActionMenuPlaceholder,{})}),F.jsx(jS,{})]})})]}),F.jsx(Ln,{$space:24,$samespace:!0}),F.jsx(z.Typography.Text,{type:"secondary",children:"Added Products"}),F.jsx(Ln,{$space:12,$samespace:!0}),F.jsxs(z.Flex,{gap:22,wrap:!0,children:[p&&F.jsx(z.Spin,{}),e&&t&&g?.items.map(({spec:I})=>I).sort().map(({name:I,description:O,icon:D,type:W,pathToNav:Q,typeName:ce,apiGroup:fe,apiVersion:ge,tags:ye,disabled:pe})=>F.jsx(Vc,{baseprefix:l,description:O,disabled:pe,icon:D,isEditMode:!1,name:I,clusterName:e,namespace:t,type:W,pathToNav:Q,typeName:ce,apiGroup:fe,apiVersion:ge,tags:ye,addedMode:!0},I))]}),A&&F.jsx(Qu,{name:w.metadata.name,onClose:()=>{v(!1),d(`${l}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${n}/${o}/${u}/${w.metadata.name}`})]})},Cp=({items:e,components:t})=>F.jsx(F.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return F.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);const a=n.children?F.jsx(Cp,{items:n.children,components:t}):null;return F.jsx(Z.Fragment,{children:F.jsx(o,{data:n.data,children:a})},i)})}),_p=e=>F.jsx(Cp,{...e}),US=({data:e})=>{const{id:t,text:n,...i}=e;return F.jsx(z.Typography.Text,{...i,children:n})},VS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Card,{...i,children:t})},qS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Flex,{...i,children:t})},WS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Row,{...i,children:t})},KS=({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(z.Col,{...i,children:t})},HS=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return F.jsxs(z.Button,{...o,children:[e.text,t]})},kp=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return F.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Z.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Tp=kp(),zS=Tp.Provider,xa=Tp.useTypedContext,GS=({data:e})=>{const n=xa().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Ct({template:e.text,replaceValues:n});return F.jsx("span",{children:i})},Op=Z.createContext(void 0),JS=({urls:e,children:t})=>{const n=wn.useQueries({queries:e.map((f,d)=>({queryKey:["multi",d,f],queryFn:async()=>(await it.get(f)).data}))}),i={},o=[];n.forEach((f,d)=>{i[`req${d}`]=f.data,o[d]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Z.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return F.jsx(Op.Provider,{value:l,children:t})},Ip=()=>{const e=Z.useContext(Op);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},YS={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx("div",{...i,children:t})},antdText:US,antdCard:VS,antdFlex:qS,antdRow:WS,antdCol:KS,antdButton:HS,partsOfUrl:GS,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ip(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(w=>w[1]),p=fi.get(t[`req${d}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?F.jsx("div",{children:"Loading..."}):i?F.jsxs("div",{children:[F.jsx("h4",{children:"Errors:"}),F.jsx("ul",{children:o.map((u,l)=>u&&F.jsx("li",{children:u.message},l))})]}):F.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ip(),a=xa(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,g,p)=>{try{const w=parseInt(g,10),k=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(A=>A[1]),S=fi.get(t[`req${w}`],k);return S!=null?String(S):""}catch{return d}}):"",[e?.text,t]);if(n)return F.jsx("div",{children:"Loading..."});if(i)return F.jsxs("div",{children:[F.jsx("h4",{children:"Errors:"}),F.jsx("ul",{children:o.map((d,g)=>d&&F.jsx("li",{children:d.message},g))})]});const l=a.partsOfUrl.reduce((d,g,p)=>(d[p.toString()]=g,d),{}),f=Ct({template:u,replaceValues:l});return F.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=xa().partsOfUrl.reduce((g,p,w)=>(g[w.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return F.jsx(xp,{clusterName:f,namespace:d,...a,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=xa().partsOfUrl.reduce((g,p,w)=>(g[w.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return F.jsx(Ap,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(xh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return F.jsx(Ln,{...i})}},Fp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Ct({template:i,replaceValues:n}))},XS=e=>{const t=Qn.useLocation(),{urlsToFetch:n}=e,i=Fp({urls:n,locationPathname:t.pathname});return F.jsx(zS,{value:{partsOfUrl:t.pathname.split("/")},children:F.jsx(JS,{urls:i,children:F.jsx(_p,{...e})})})},QS=e=>typeof e=="object"&&"value"in e&&"highlight"in e,ZS=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const d=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[d]=t[d]||{};for(const w of g)p[w]=p[w]||{},p=p[w];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(QS(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},eA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),tA=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:d})=>d==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:d})=>!o.includes(d)&&!d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),l=t?.groups.filter(({name:d})=>o.includes(d)||d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:d})=>Mc({typeName:d,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},nA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w,pathname:k})=>e.map(({pathToMatch:A,pathToNavigate:v,keysToParse:R})=>({pathToMatch:A?Ct({template:A,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w}}):void 0,pathToNavigate:v?Ct({template:v,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w}}):void 0,keysToParse:R})).find(({pathToMatch:A})=>A?Qn.matchPath(A,k):!1),Bp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),Dp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Pp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Rp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),rA=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Bp(n)?n.spec.additionalPrinterColumns:void 0,o=Dp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Pp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Rp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},iA=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/openapi/v2`),Lp=async()=>it.get("/clusterlist"),Np=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},jp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),$p=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return it.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Mp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>it.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),Up=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Vp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),qp=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/apis/`),Wp=async({clusterName:e,apiGroup:t,apiVersion:n})=>it.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Kp=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/api/v1`),Hp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>it.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),sA=({refetchInterval:e})=>wn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Lp()).data,refetchInterval:e!==void 0?e:5e3}),oA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>wn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await Np({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),aA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>wn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await jp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),uA=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>wn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await $p({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),cA=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>wn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Mp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),lA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>wn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await Up({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),fA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>wn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Vp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),hA=({clusterName:e})=>wn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await qp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),dA=({clusterName:e,apiGroup:t,apiVersion:n})=>wn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Wp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),pA=({clusterName:e})=>wn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Kp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),gA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>wn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Hp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});ue.BlackholeForm=hp,ue.BlackholeFormDataProvider=mS,ue.ContentCard=xh,ue.DeleteIcon=Ah,ue.DeleteModal=Qu,ue.DeleteModalMany=V1,ue.DynamicComponents=YS,ue.DynamicRenderer=_p,ue.DynamicRendererWithProviders=XS,ue.EditIcon=Eh,ue.EnrichedTable=Nh,ue.EnrichedTableProvider=nb,ue.ManageableBreadcrumbs=kh,ue.ManageableBreadcrumbsWithDataProvider=K1,ue.ManageableSidebar=Ih,ue.ManageableSidebarWithDataProvider=G1,ue.MarketPlace=Ap,ue.MarketplaceCard=Vc,ue.ProjectInfoCard=xp,ue.Spacer=Ln,ue.TreeWithSearch=wm,ue.checkIfApiInstanceNamespaceScoped=yp,ue.checkIfBuiltInInstanceNamespaceScoped=Mc,ue.checkPermission=qh,ue.createContextFactory=kp,ue.createNewEntry=Jo,ue.deleteEntry=Xu,ue.filterSelectOptions=nc,ue.floorToDecimal=Rs,ue.getAllPathsFromObj=oc,ue.getApiResourceSingle=jp,ue.getApiResourceTypes=qp,ue.getApiResourceTypesByApiGroup=Wp,ue.getApiResources=Np,ue.getBodyParametersSchema=vp,ue.getBuiltinResourceSingle=Mp,ue.getBuiltinResourceTypes=Kp,ue.getBuiltinResources=$p,ue.getBuiltinTreeData=eA,ue.getClusterList=Lp,ue.getCrdData=Hp,ue.getCrdResourceSingle=Vp,ue.getCrdResources=Up,ue.getDirectUnknownResource=Ch,ue.getEnrichedColumns=Rh,ue.getEnrichedColumnsWithControls=Lh,ue.getGroupsByCategory=tA,ue.getObjectFormItemsDraft=Ea,ue.getPrefixSubarrays=Wh,ue.getStringByName=Bt,ue.getSwagger=iA,ue.getSwaggerPathAndIsNamespaceScoped=bp,ue.groupsToTreeData=ZS,ue.isFlatObject=Ph,ue.isFormOverride=mp,ue.isWithAdditionalPrinterColumns=Bp,ue.isWithAdditionalPrinterColumnsColWidths=Rp,ue.isWithAdditionalPrinterColumnsTrimLengths=Pp,ue.isWithAdditionalPrinterColumnsUndefinedValues=Dp,ue.normalizeValuesForQuotas=ea,ue.normalizeValuesForQuotasToNumber=sc,ue.overwriteMatchingKeys=gp,ue.parseCustomOverrides=rA,ue.parseQuotaValue=Eb,ue.parseQuotaValueCpu=rc,ue.parseQuotaValueMemoryAndStorage=ic,ue.prepareDataForEnrichedColumns=$h,ue.prepareDataForManageableBreadcrumbs=_h,ue.prepareDataForManageableSidebar=Oh,ue.prepareTableMappings=nA,ue.prepareTemplate=Ct,ue.prepareUrlsToFetchForDynamicRenderer=Fp,ue.processOverride=wp,ue.removeEmptyFormValues=Ps,ue.renameBrokenFieldBack=Ki,ue.renameBrokenFieldBackToFormAgain=Zo,ue.updateEntry=Yo,ue.useApiResourceSingle=aA,ue.useApiResourceTypesByGroup=dA,ue.useApiResources=oA,ue.useApisResourceTypes=hA,ue.useBuiltinResourceSingle=cA,ue.useBuiltinResourceTypes=pA,ue.useBuiltinResources=uA,ue.useClusterList=sA,ue.useCrdData=gA,ue.useCrdResourceSingle=fA,ue.useCrdResources=lA,ue.useDirectUnknownResource=sn,ue.usePermissions=Mr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
555
555
  //# sourceMappingURL=openapi-k8s-toolkit.umd.js.map