@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.17 → 0.0.1-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi-k8s-toolkit.es.js +957 -956
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +54 -54
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/EnrichedTable/EnrichedTable.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(le,re){typeof exports=="object"&&typeof module<"u"?re(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"],re):(le=typeof globalThis<"u"?globalThis:le||self,re(le["@prorobotech/openapi-k8s-toolkit"]={},le.React,le.antd,le.reactQuery,le.ReactRouterDOM,le.antdIcons))})(this,function(le,re,ue,Cn,wr,Qt){"use strict";function Hy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jl={exports:{}},Vt=Jl.exports={},ur,cr;function fu(){throw new Error("setTimeout has not been defined")}function hu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ur=setTimeout:ur=fu}catch{ur=fu}try{typeof clearTimeout=="function"?cr=clearTimeout:cr=hu}catch{cr=hu}})();function Yl(e){if(ur===setTimeout)return setTimeout(e,0);if((ur===fu||!ur)&&setTimeout)return ur=setTimeout,setTimeout(e,0);try{return ur(e,0)}catch{try{return ur.call(null,e,0)}catch{return ur.call(this,e,0)}}}function zy(e){if(cr===clearTimeout)return clearTimeout(e);if((cr===hu||!cr)&&clearTimeout)return cr=clearTimeout,clearTimeout(e);try{return cr(e)}catch{try{return cr.call(null,e)}catch{return cr.call(this,e)}}}var vr=[],ki=!1,ni,So=-1;function Gy(){!ki||!ni||(ki=!1,ni.length?vr=ni.concat(vr):So=-1,vr.length&&Xl())}function Xl(){if(!ki){var e=Yl(Gy);ki=!0;for(var t=vr.length;t;){for(ni=vr,vr=[];++So<t;)ni&&ni[So].run();So=-1,t=vr.length}ni=null,ki=!1,zy(e)}}Vt.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];vr.push(new Ql(e,t)),vr.length===1&&!ki&&Yl(Xl)};function Ql(e,t){this.fun=e,this.array=t}Ql.prototype.run=function(){this.fun.apply(null,this.array)},Vt.title="browser",Vt.browser=!0,Vt.env={},Vt.argv=[],Vt.version="",Vt.versions={};function Ar(){}Vt.on=Ar,Vt.addListener=Ar,Vt.once=Ar,Vt.off=Ar,Vt.removeListener=Ar,Vt.removeAllListeners=Ar,Vt.emit=Ar,Vt.prependListener=Ar,Vt.prependOnceListener=Ar,Vt.listeners=function(e){return[]},Vt.binding=function(e){throw new Error("process.binding is not supported")},Vt.cwd=function(){return"/"},Vt.chdir=function(e){throw new Error("process.chdir is not supported")},Vt.umask=function(){return 0};var Jy=Jl.exports;const et=Hy(Jy);var wn=function(){return wn=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},wn.apply(this,arguments)};function Oi(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 Yy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xy=/^((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)-.*))$/,Qy=Yy(function(e){return Xy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",Es="-moz-",gt="-webkit-",Zl="comm",xo="rule",du="decl",Zy="@import",e0="@namespace",ef="@keyframes",t0="@layer",tf=Math.abs,gu=String.fromCharCode,yu=Object.assign;function n0(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 nf(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Co(e,t,n){return e.indexOf(t,n)}function Zt(e,t){return e.charCodeAt(t)|0}function ri(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function rf(e){return e.length}function Ss(e,t){return t.push(e),e}function r0(e,t){return e.map(t).join("")}function sf(e,t){return e.filter(function(n){return!Er(n,t)})}var _o=1,Ii=1,of=0,Pn=0,Xt=0,Fi="";function To(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:_o,column:Ii,length:u,return:"",siblings:l}}function Nr(e,t){return yu(To("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Bi(e){for(;e.root;)e=Nr(e.root,{children:[e]});Ss(e,e.siblings)}function i0(){return Xt}function s0(){return Xt=Pn>0?Zt(Fi,--Pn):0,Ii--,Xt===10&&(Ii=1,_o--),Xt}function Zn(){return Xt=Pn<of?Zt(Fi,Pn++):0,Ii++,Xt===10&&(Ii=1,_o++),Xt}function Lr(){return Zt(Fi,Pn)}function ko(){return Pn}function Oo(e,t){return ri(Fi,e,t)}function xs(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 o0(e){return _o=Ii=1,of=Qn(Fi=e),Pn=0,[]}function a0(e){return Fi="",e}function mu(e){return nf(Oo(Pn-1,bu(e===91?e+2:e===40?e+1:e)))}function u0(e){for(;(Xt=Lr())&&Xt<33;)Zn();return xs(e)>2||xs(Xt)>3?"":" "}function c0(e,t){for(;--t&&Zn()&&!(Xt<48||Xt>102||Xt>57&&Xt<65||Xt>70&&Xt<97););return Oo(e,ko()+(t<6&&Lr()==32&&Zn()==32))}function bu(e){for(;Zn();)switch(Xt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&bu(Xt);break;case 40:e===41&&bu(e);break;case 92:Zn();break}return Pn}function l0(e,t){for(;Zn()&&e+Xt!==57;)if(e+Xt===84&&Lr()===47)break;return"/*"+Oo(t,Pn-1)+"*"+gu(e===47?e:Zn())}function f0(e){for(;!xs(Lr());)Zn();return Oo(e,Pn)}function h0(e){return a0(Io("",null,null,null,[""],e=o0(e),0,[0],e))}function Io(e,t,n,i,o,a,u,l,f){for(var y=0,g=0,d=u,v=0,k=0,A=0,E=1,w=1,P=1,L=0,T="",x=o,I=a,O=i,D=T;w;)switch(A=L,L=Zn()){case 40:if(A!=108&&Zt(D,d-1)==58){Co(D+=Ge(mu(L),"&","&\f"),"&\f",tf(y?l[y-1]:0))!=-1&&(P=-1);break}case 34:case 39:case 91:D+=mu(L);break;case 9:case 10:case 13:case 32:D+=u0(A);break;case 92:D+=c0(ko()-1,7);continue;case 47:switch(Lr()){case 42:case 47:Ss(p0(l0(Zn(),ko()),t,n,f),f),(xs(A||1)==5||xs(Lr()||1)==5)&&Qn(D)&&ri(D,-1,void 0)!==" "&&(D+=" ");break;default:D+="/"}break;case 123*E:l[y++]=Qn(D)*P;case 125*E:case 59:case 0:switch(L){case 0:case 125:w=0;case 59+g:P==-1&&(D=Ge(D,/\f/g,"")),k>0&&(Qn(D)-d||E===0&&A===47)&&Ss(k>32?uf(D+";",i,n,d-1,f):uf(Ge(D," ","")+";",i,n,d-2,f),f);break;case 59:D+=";";default:if(Ss(O=af(D,t,n,y,g,o,l,T,x=[],I=[],d,a),a),L===123)if(g===0)Io(D,t,O,O,x,a,d,l,I);else{switch(v){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?Io(e,O,O,i&&Ss(af(e,O,O,0,0,o,l,T,o,x=[],d,I),I),o,I,d,l,i?x:I):Io(D,O,O,O,[""],I,0,l,I)}}y=g=k=0,E=P=1,T=D="",d=u;break;case 58:d=1+Qn(D),k=A;default:if(E<1){if(L==123)--E;else if(L==125&&E++==0&&s0()==125)continue}switch(D+=gu(L),L*E){case 38:P=g>0?1:(D+="\f",-1);break;case 44:l[y++]=(Qn(D)-1)*P,P=1;break;case 64:Lr()===45&&(D+=mu(Zn())),v=Lr(),g=d=Qn(T=D+=f0(ko())),L++;break;case 45:A===45&&Qn(D)==2&&(E=0)}}return a}function af(e,t,n,i,o,a,u,l,f,y,g,d){for(var v=o-1,k=o===0?a:[""],A=rf(k),E=0,w=0,P=0;E<i;++E)for(var L=0,T=ri(e,v+1,v=tf(w=u[E])),x=e;L<A;++L)(x=nf(w>0?k[L]+" "+T:Ge(T,/&\f/g,k[L])))&&(f[P++]=x);return To(e,t,n,o===0?xo:l,f,y,g,d)}function p0(e,t,n,i){return To(e,t,n,Zl,gu(i0()),ri(e,2,-2),0,i)}function uf(e,t,n,i,o){return To(e,t,n,du,ri(e,0,i),ri(e,i+1,-1),i,o)}function cf(e,t,n){switch(n0(e,t)){case 5103:return gt+"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 gt+e+e;case 4855:return gt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Es+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Es+e+It+e+e;case 5936:switch(Zt(e,t+11)){case 114:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+It+e+e;case 6165:return gt+e+It+"flex-"+e+e;case 5187:return gt+e+Ge(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return gt+e+It+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":It+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return gt+e+It+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+It+Ge(e,"shrink","negative")+e;case 5292:return gt+e+It+Ge(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Ge(e,"-grow","")+gt+e+It+Ge(e,"grow","positive")+e;case 4554:return gt+Ge(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!Er(e,/flex-|baseline/))return It+"grid-column-align"+ri(e,t)+e;break;case 2592:case 3360:return It+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~Co(e+(n=n[t].value),"span",0)?e:It+Ge(e,"-start","")+e+It+"grid-row-span:"+(~Co(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":It+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:It+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,gt+"$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(Qn(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Es+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Co(e,"stretch",0)?cf(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,y){return It+o+":"+a+y+(u?It+o+"-span:"+(l?f:+f-+a)+y:"")+e});case 4949:if(Zt(e,t+6)===121)return Ge(e,":",":"+gt)+e;break;case 6444:switch(Zt(e,Zt(e,14)===45?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(Zt(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+It+"$2box$3")+e;case 100:return Ge(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Fo(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function d0(e,t,n,i){switch(e.type){case t0:if(e.children.length)break;case Zy:case e0:case du:return e.return=e.return||e.value;case Zl:return"";case ef:return e.return=e.value+"{"+Fo(e.children,i)+"}";case xo:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Fo(e.children,i))?e.return=e.value+"{"+n+"}":""}function g0(e){var t=rf(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 y0(e){return function(t){t.root||(t=t.return)&&e(t)}}function m0(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case du:e.return=cf(e.value,e.length,n);return;case ef:return Fo([Nr(e,{value:Ge(e.value,"@","@"+gt)})],i);case xo:if(e.length)return r0(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Bi(Nr(e,{props:[Ge(o,/:(read-\w+)/,":"+Es+"$1")]})),Bi(Nr(e,{props:[o]})),yu(e,{props:sf(n,i)});break;case"::placeholder":Bi(Nr(e,{props:[Ge(o,/:(plac\w+)/,":"+gt+"input-$1")]})),Bi(Nr(e,{props:[Ge(o,/:(plac\w+)/,":"+Es+"$1")]})),Bi(Nr(e,{props:[Ge(o,/:(plac\w+)/,It+"input-$1")]})),Bi(Nr(e,{props:[o]})),yu(e,{props:sf(n,i)});break}return""})}}var b0={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},ii=typeof et<"u"&&et.env!==void 0&&(et.env.REACT_APP_SC_ATTR||et.env.SC_ATTR)||"data-styled",wu=typeof window<"u"&&"HTMLElement"in window,w0=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==""?et.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&et.env.REACT_APP_SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.SC_DISABLE_SPEEDY!==void 0&&et.env.SC_DISABLE_SPEEDY!==""?et.env.SC_DISABLE_SPEEDY!=="false"&&et.env.SC_DISABLE_SPEEDY:et.env.NODE_ENV!=="production"),lf=/invalid hook call/i,Bo=new Set,v0=function(e,t){if(et.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(le,re){typeof exports=="object"&&typeof module<"u"?re(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"],re):(le=typeof globalThis<"u"?globalThis:le||self,re(le["@prorobotech/openapi-k8s-toolkit"]={},le.React,le.antd,le.reactQuery,le.ReactRouterDOM,le.antdIcons))})(this,function(le,re,ue,Cn,wr,Qt){"use strict";function Hy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jl={exports:{}},Vt=Jl.exports={},ur,cr;function fu(){throw new Error("setTimeout has not been defined")}function hu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ur=setTimeout:ur=fu}catch{ur=fu}try{typeof clearTimeout=="function"?cr=clearTimeout:cr=hu}catch{cr=hu}})();function Yl(e){if(ur===setTimeout)return setTimeout(e,0);if((ur===fu||!ur)&&setTimeout)return ur=setTimeout,setTimeout(e,0);try{return ur(e,0)}catch{try{return ur.call(null,e,0)}catch{return ur.call(this,e,0)}}}function zy(e){if(cr===clearTimeout)return clearTimeout(e);if((cr===hu||!cr)&&clearTimeout)return cr=clearTimeout,clearTimeout(e);try{return cr(e)}catch{try{return cr.call(null,e)}catch{return cr.call(this,e)}}}var vr=[],ki=!1,ni,So=-1;function Gy(){!ki||!ni||(ki=!1,ni.length?vr=ni.concat(vr):So=-1,vr.length&&Xl())}function Xl(){if(!ki){var e=Yl(Gy);ki=!0;for(var t=vr.length;t;){for(ni=vr,vr=[];++So<t;)ni&&ni[So].run();So=-1,t=vr.length}ni=null,ki=!1,zy(e)}}Vt.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];vr.push(new Ql(e,t)),vr.length===1&&!ki&&Yl(Xl)};function Ql(e,t){this.fun=e,this.array=t}Ql.prototype.run=function(){this.fun.apply(null,this.array)},Vt.title="browser",Vt.browser=!0,Vt.env={},Vt.argv=[],Vt.version="",Vt.versions={};function Ar(){}Vt.on=Ar,Vt.addListener=Ar,Vt.once=Ar,Vt.off=Ar,Vt.removeListener=Ar,Vt.removeAllListeners=Ar,Vt.emit=Ar,Vt.prependListener=Ar,Vt.prependOnceListener=Ar,Vt.listeners=function(e){return[]},Vt.binding=function(e){throw new Error("process.binding is not supported")},Vt.cwd=function(){return"/"},Vt.chdir=function(e){throw new Error("process.chdir is not supported")},Vt.umask=function(){return 0};var Jy=Jl.exports;const et=Hy(Jy);var wn=function(){return wn=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},wn.apply(this,arguments)};function Oi(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 Yy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xy=/^((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)-.*))$/,Qy=Yy(function(e){return Xy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",Es="-moz-",gt="-webkit-",Zl="comm",xo="rule",du="decl",Zy="@import",e0="@namespace",ef="@keyframes",t0="@layer",tf=Math.abs,gu=String.fromCharCode,yu=Object.assign;function n0(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 nf(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Co(e,t,n){return e.indexOf(t,n)}function Zt(e,t){return e.charCodeAt(t)|0}function ri(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function rf(e){return e.length}function Ss(e,t){return t.push(e),e}function r0(e,t){return e.map(t).join("")}function sf(e,t){return e.filter(function(n){return!Er(n,t)})}var _o=1,Ii=1,of=0,Pn=0,Xt=0,Fi="";function To(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:_o,column:Ii,length:u,return:"",siblings:l}}function Nr(e,t){return yu(To("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Bi(e){for(;e.root;)e=Nr(e.root,{children:[e]});Ss(e,e.siblings)}function i0(){return Xt}function s0(){return Xt=Pn>0?Zt(Fi,--Pn):0,Ii--,Xt===10&&(Ii=1,_o--),Xt}function Zn(){return Xt=Pn<of?Zt(Fi,Pn++):0,Ii++,Xt===10&&(Ii=1,_o++),Xt}function Lr(){return Zt(Fi,Pn)}function ko(){return Pn}function Oo(e,t){return ri(Fi,e,t)}function xs(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 o0(e){return _o=Ii=1,of=Qn(Fi=e),Pn=0,[]}function a0(e){return Fi="",e}function mu(e){return nf(Oo(Pn-1,bu(e===91?e+2:e===40?e+1:e)))}function u0(e){for(;(Xt=Lr())&&Xt<33;)Zn();return xs(e)>2||xs(Xt)>3?"":" "}function c0(e,t){for(;--t&&Zn()&&!(Xt<48||Xt>102||Xt>57&&Xt<65||Xt>70&&Xt<97););return Oo(e,ko()+(t<6&&Lr()==32&&Zn()==32))}function bu(e){for(;Zn();)switch(Xt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&bu(Xt);break;case 40:e===41&&bu(e);break;case 92:Zn();break}return Pn}function l0(e,t){for(;Zn()&&e+Xt!==57;)if(e+Xt===84&&Lr()===47)break;return"/*"+Oo(t,Pn-1)+"*"+gu(e===47?e:Zn())}function f0(e){for(;!xs(Lr());)Zn();return Oo(e,Pn)}function h0(e){return a0(Io("",null,null,null,[""],e=o0(e),0,[0],e))}function Io(e,t,n,i,o,a,u,l,f){for(var y=0,g=0,d=u,v=0,k=0,E=0,A=1,w=1,R=1,L=0,T="",x=o,I=a,O=i,D=T;w;)switch(E=L,L=Zn()){case 40:if(E!=108&&Zt(D,d-1)==58){Co(D+=Ge(mu(L),"&","&\f"),"&\f",tf(y?l[y-1]:0))!=-1&&(R=-1);break}case 34:case 39:case 91:D+=mu(L);break;case 9:case 10:case 13:case 32:D+=u0(E);break;case 92:D+=c0(ko()-1,7);continue;case 47:switch(Lr()){case 42:case 47:Ss(p0(l0(Zn(),ko()),t,n,f),f),(xs(E||1)==5||xs(Lr()||1)==5)&&Qn(D)&&ri(D,-1,void 0)!==" "&&(D+=" ");break;default:D+="/"}break;case 123*A:l[y++]=Qn(D)*R;case 125*A:case 59:case 0:switch(L){case 0:case 125:w=0;case 59+g:R==-1&&(D=Ge(D,/\f/g,"")),k>0&&(Qn(D)-d||A===0&&E===47)&&Ss(k>32?uf(D+";",i,n,d-1,f):uf(Ge(D," ","")+";",i,n,d-2,f),f);break;case 59:D+=";";default:if(Ss(O=af(D,t,n,y,g,o,l,T,x=[],I=[],d,a),a),L===123)if(g===0)Io(D,t,O,O,x,a,d,l,I);else{switch(v){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?Io(e,O,O,i&&Ss(af(e,O,O,0,0,o,l,T,o,x=[],d,I),I),o,I,d,l,i?x:I):Io(D,O,O,O,[""],I,0,l,I)}}y=g=k=0,A=R=1,T=D="",d=u;break;case 58:d=1+Qn(D),k=E;default:if(A<1){if(L==123)--A;else if(L==125&&A++==0&&s0()==125)continue}switch(D+=gu(L),L*A){case 38:R=g>0?1:(D+="\f",-1);break;case 44:l[y++]=(Qn(D)-1)*R,R=1;break;case 64:Lr()===45&&(D+=mu(Zn())),v=Lr(),g=d=Qn(T=D+=f0(ko())),L++;break;case 45:E===45&&Qn(D)==2&&(A=0)}}return a}function af(e,t,n,i,o,a,u,l,f,y,g,d){for(var v=o-1,k=o===0?a:[""],E=rf(k),A=0,w=0,R=0;A<i;++A)for(var L=0,T=ri(e,v+1,v=tf(w=u[A])),x=e;L<E;++L)(x=nf(w>0?k[L]+" "+T:Ge(T,/&\f/g,k[L])))&&(f[R++]=x);return To(e,t,n,o===0?xo:l,f,y,g,d)}function p0(e,t,n,i){return To(e,t,n,Zl,gu(i0()),ri(e,2,-2),0,i)}function uf(e,t,n,i,o){return To(e,t,n,du,ri(e,0,i),ri(e,i+1,-1),i,o)}function cf(e,t,n){switch(n0(e,t)){case 5103:return gt+"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 gt+e+e;case 4855:return gt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Es+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Es+e+It+e+e;case 5936:switch(Zt(e,t+11)){case 114:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+It+e+e;case 6165:return gt+e+It+"flex-"+e+e;case 5187:return gt+e+Ge(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return gt+e+It+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":It+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return gt+e+It+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+It+Ge(e,"shrink","negative")+e;case 5292:return gt+e+It+Ge(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Ge(e,"-grow","")+gt+e+It+Ge(e,"grow","positive")+e;case 4554:return gt+Ge(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!Er(e,/flex-|baseline/))return It+"grid-column-align"+ri(e,t)+e;break;case 2592:case 3360:return It+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~Co(e+(n=n[t].value),"span",0)?e:It+Ge(e,"-start","")+e+It+"grid-row-span:"+(~Co(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":It+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:It+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,gt+"$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(Qn(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Es+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Co(e,"stretch",0)?cf(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,y){return It+o+":"+a+y+(u?It+o+"-span:"+(l?f:+f-+a)+y:"")+e});case 4949:if(Zt(e,t+6)===121)return Ge(e,":",":"+gt)+e;break;case 6444:switch(Zt(e,Zt(e,14)===45?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(Zt(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+It+"$2box$3")+e;case 100:return Ge(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Fo(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function d0(e,t,n,i){switch(e.type){case t0:if(e.children.length)break;case Zy:case e0:case du:return e.return=e.return||e.value;case Zl:return"";case ef:return e.return=e.value+"{"+Fo(e.children,i)+"}";case xo:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Fo(e.children,i))?e.return=e.value+"{"+n+"}":""}function g0(e){var t=rf(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 y0(e){return function(t){t.root||(t=t.return)&&e(t)}}function m0(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case du:e.return=cf(e.value,e.length,n);return;case ef:return Fo([Nr(e,{value:Ge(e.value,"@","@"+gt)})],i);case xo:if(e.length)return r0(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Bi(Nr(e,{props:[Ge(o,/:(read-\w+)/,":"+Es+"$1")]})),Bi(Nr(e,{props:[o]})),yu(e,{props:sf(n,i)});break;case"::placeholder":Bi(Nr(e,{props:[Ge(o,/:(plac\w+)/,":"+gt+"input-$1")]})),Bi(Nr(e,{props:[Ge(o,/:(plac\w+)/,":"+Es+"$1")]})),Bi(Nr(e,{props:[Ge(o,/:(plac\w+)/,It+"input-$1")]})),Bi(Nr(e,{props:[o]})),yu(e,{props:sf(n,i)});break}return""})}}var b0={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},ii=typeof et<"u"&&et.env!==void 0&&(et.env.REACT_APP_SC_ATTR||et.env.SC_ATTR)||"data-styled",wu=typeof window<"u"&&"HTMLElement"in window,w0=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==""?et.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&et.env.REACT_APP_SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.SC_DISABLE_SPEEDY!==void 0&&et.env.SC_DISABLE_SPEEDY!==""?et.env.SC_DISABLE_SPEEDY!=="false"&&et.env.SC_DISABLE_SPEEDY:et.env.NODE_ENV!=="production"),lf=/invalid hook call/i,Bo=new Set,v0=function(e,t){if(et.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
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];lf.test(u)?(a=!1,Bo.delete(i)):o.apply(void 0,Oi([u],l,!1))},re.useRef(),a&&!Bo.has(i)&&(console.warn(i),Bo.add(i))}catch(u){lf.test(u.message)&&Bo.delete(i)}finally{console.error=o}}},Do=Object.freeze([]),Di=Object.freeze({});function A0(e,t,n){return n===void 0&&(n=Di),e.theme!==n.theme&&e.theme||t||n.theme}var vu=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"]),E0=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,S0=/(^-|-$)/g;function ff(e){return e.replace(E0,"-").replace(S0,"")}var x0=/(a)(d)/gi,hf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Au(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=hf(t%52)+n;return(hf(t%52)+n).replace(x0,"$1-$2")}var Eu,si=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},pf=function(e){return si(5381,e)};function C0(e){return Au(pf(e)>>>0)}function df(e){return et.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Su(e){return typeof e=="string"&&(et.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var gf=typeof Symbol=="function"&&Symbol.for,yf=gf?Symbol.for("react.memo"):60115,_0=gf?Symbol.for("react.forward_ref"):60112,T0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},k0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},O0=((Eu={})[_0]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Eu[yf]=mf,Eu);function bf(e){return("type"in(t=e)&&t.type.$$typeof)===yf?mf:"$$typeof"in e?O0[e.$$typeof]:T0;var t}var I0=Object.defineProperty,F0=Object.getOwnPropertyNames,wf=Object.getOwnPropertySymbols,B0=Object.getOwnPropertyDescriptor,D0=Object.getPrototypeOf,vf=Object.prototype;function Af(e,t,n){if(typeof t!="string"){if(vf){var i=D0(t);i&&i!==vf&&Af(e,i,n)}var o=F0(t);wf&&(o=o.concat(wf(t)));for(var a=bf(e),u=bf(t),l=0;l<o.length;++l){var f=o[l];if(!(f in k0||n&&n[f]||u&&f in u||a&&f in a)){var y=B0(t,f);try{I0(e,f,y)}catch{}}}}return e}function Ri(e){return typeof e=="function"}function xu(e){return typeof e=="object"&&"styledComponentId"in e}function oi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ef(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Pi(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Cu(e,t,n){if(n===void 0&&(n=!1),!n&&!Pi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Cu(e[i],t[i]);else if(Pi(t))for(var i in t)e[i]=Cu(e[i],t[i]);return e}function _u(e,t){Object.defineProperty(e,"toString",{value:t})}var R0=et.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
4
4
|
|
|
@@ -43,8 +43,8 @@ as for instance in your render method then you may be running into this limitati
|
|
|
43
43
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
44
44
|
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function P0(){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 Ni(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return et.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(P0.apply(void 0,Oi([R0[e]],t,!1)).trim())}var N0=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 Ni(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
45
|
`);return n},e}(),Ro=new Map,Po=new Map,Tu=1,No=function(e){if(Ro.has(e))return Ro.get(e);for(;Po.has(Tu);)Tu++;var t=Tu++;if(et.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Ni(16,"".concat(t));return Ro.set(e,t),Po.set(t,e),t},L0=function(e,t){Ro.set(e,t),Po.set(t,e)},$0="style[".concat(ii,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),j0=new RegExp("^".concat(ii,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),M0=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)},U0=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(j0);if(f){var y=0|parseInt(f[1],10),g=f[2];y!==0&&(L0(g,y),M0(e,g,f[3]),e.getTag().insertRules(y,o)),o.length=0}else o.push(l)}}};function V0(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Sf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(ii,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(ii,"active"),i.setAttribute("data-styled-version","6.0.7");var u=V0();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},q0=function(){function e(t){this.element=Sf(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 Ni(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}(),W0=function(){function e(t){this.element=Sf(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}(),K0=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}(),xf=wu,H0={isServer:!wu,useCSSOMInjection:!w0},Cf=function(){function e(t,n,i){t===void 0&&(t=Di),n===void 0&&(n={});var o=this;this.options=wn(wn({},H0),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&wu&&xf&&(xf=!1,function(a){for(var u=document.querySelectorAll($0),l=0,f=u.length;l<f;l++){var y=u[l];y&&y.getAttribute(ii)!=="active"&&(U0(a,y),y.parentNode&&y.parentNode.removeChild(y))}}(this)),_u(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",y=function(d){var v=function(
|
|
47
|
-
`)},g=0;g<l;g++)y(g);return f}(o)})}return e.registerId=function(t){return No(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(wn(wn({},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 K0(o):i?new q0(o):new W0(o)}(this.options),new N0(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(No(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(No(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(No(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),z0=/&/g,G0=/^\s*\/\/.*$/gm;function _f(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=_f(n.children,t)),n})}function J0(e){var t,n,i,o=Di,a=o.options,u=a===void 0?Di:a,l=o.plugins,f=l===void 0?Do:l,y=function(v,k,
|
|
46
|
+
`),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(j0);if(f){var y=0|parseInt(f[1],10),g=f[2];y!==0&&(L0(g,y),M0(e,g,f[3]),e.getTag().insertRules(y,o)),o.length=0}else o.push(l)}}};function V0(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Sf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(ii,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(ii,"active"),i.setAttribute("data-styled-version","6.0.7");var u=V0();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},q0=function(){function e(t){this.element=Sf(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 Ni(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}(),W0=function(){function e(t){this.element=Sf(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}(),K0=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}(),xf=wu,H0={isServer:!wu,useCSSOMInjection:!w0},Cf=function(){function e(t,n,i){t===void 0&&(t=Di),n===void 0&&(n={});var o=this;this.options=wn(wn({},H0),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&wu&&xf&&(xf=!1,function(a){for(var u=document.querySelectorAll($0),l=0,f=u.length;l<f;l++){var y=u[l];y&&y.getAttribute(ii)!=="active"&&(U0(a,y),y.parentNode&&y.parentNode.removeChild(y))}}(this)),_u(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",y=function(d){var v=function(R){return Po.get(R)}(d);if(v===void 0)return"continue";var k=a.names.get(v),E=u.getGroup(d);if(k===void 0||E.length===0)return"continue";var A="".concat(ii,".g").concat(d,'[id="').concat(v,'"]'),w="";k!==void 0&&k.forEach(function(R){R.length>0&&(w+="".concat(R,","))}),f+="".concat(E).concat(A,'{content:"').concat(w,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},g=0;g<l;g++)y(g);return f}(o)})}return e.registerId=function(t){return No(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(wn(wn({},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 K0(o):i?new q0(o):new W0(o)}(this.options),new N0(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(No(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(No(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(No(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),z0=/&/g,G0=/^\s*\/\/.*$/gm;function _f(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=_f(n.children,t)),n})}function J0(e){var t,n,i,o=Di,a=o.options,u=a===void 0?Di:a,l=o.plugins,f=l===void 0?Do:l,y=function(v,k,E){return E===n||E.startsWith(n)&&E.endsWith(n)&&E.replaceAll(n,"").length>0?".".concat(t):v},g=f.slice();g.push(function(v){v.type===xo&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(z0,n).replace(i,y))}),u.prefix&&g.push(m0),g.push(d0);var d=function(v,k,E,A){k===void 0&&(k=""),E===void 0&&(E=""),A===void 0&&(A="&"),t=A,n=k,i=new RegExp("\\".concat(n,"\\b"),"g");var w=v.replace(G0,""),R=h0(E||k?"".concat(E," ").concat(k," { ").concat(w," }"):w);u.namespace&&(R=_f(R,u.namespace));var L=[];return Fo(R,g0(g.concat(y0(function(T){return L.push(T)})))),L};return d.hash=f.length?f.reduce(function(v,k){return k.name||Ni(15),si(v,k.name)},5381).toString():"",d}var Y0=new Cf,ku=J0(),Tf=re.createContext({shouldForwardProp:void 0,styleSheet:Y0,stylis:ku});Tf.Consumer,re.createContext(void 0);function kf(){return re.useContext(Tf)}var Of=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=ku);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,_u(this,function(){throw Ni(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ku),this.name+t.hash},e}(),X0=function(e){return e>="A"&&e<="Z"};function If(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;X0(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Ff=function(e){return e==null||e===!1||e===""},Bf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Ff(a)&&(Array.isArray(a)&&a.isCss||Ri(a)?i.push("".concat(If(o),":"),a,";"):Pi(a)?i.push.apply(i,Oi(Oi(["".concat(o," {")],Bf(a),!1),["}"],!1)):i.push("".concat(If(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in b0||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function ai(e,t,n,i){if(Ff(e))return[];if(xu(e))return[".".concat(e.styledComponentId)];if(Ri(e)){if(!Ri(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return et.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Of||Pi(o)||o===null||console.error("".concat(df(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.")),ai(o,t,n,i)}var a;return e instanceof Of?n?(e.inject(n,i),[e.getName(i)]):[e]:Pi(e)?Bf(e):Array.isArray(e)?Array.prototype.concat.apply(Do,e.map(function(u){return ai(u,t,n,i)})):[e.toString()]}function Q0(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ri(n)&&!xu(n))return!1}return!0}var Z0=pf("6.0.7"),em=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=et.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&Q0(t),this.componentId=n,this.baseHash=si(Z0,n),this.baseStyle=i,Cf.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=oi(o,this.staticRulesId);else{var a=Ef(ai(this.rules,t,n,i)),u=Au(si(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=oi(o,u),this.staticRulesId=u}else{for(var f=si(this.baseHash,i.hash),y="",g=0;g<this.rules.length;g++){var d=this.rules[g];if(typeof d=="string")y+=d,et.env.NODE_ENV!=="production"&&(f=si(f,d));else if(d){var v=Ef(ai(d,t,n,i));f=si(f,v),y+=v}}if(y){var k=Au(f>>>0);n.hasNameForId(this.componentId,k)||n.insertRules(this.componentId,k,i(y,".".concat(k),void 0,this.componentId)),o=oi(o,k)}}return o},e}(),Df=re.createContext(void 0);Df.Consumer;var Ou={},Rf=new Set;function tm(e,t,n){var i=xu(e),o=e,a=!Su(e),u=t.attrs,l=u===void 0?Do:u,f=t.componentId,y=f===void 0?function(x,I){var O=typeof x!="string"?"sc":ff(x);Ou[O]=(Ou[O]||0)+1;var D="".concat(O,"-").concat(C0("6.0.7"+O+Ou[O]));return I?"".concat(I,"-").concat(D):D}(t.displayName,t.parentComponentId):f,g=t.displayName,d=g===void 0?function(x){return Su(x)?"styled.".concat(x):"Styled(".concat(df(x),")")}(e):g,v=t.displayName&&t.componentId?"".concat(ff(t.displayName),"-").concat(t.componentId):t.componentId||y,k=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,E=t.shouldForwardProp;if(i&&o.shouldForwardProp){var A=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;E=function(x,I){return A(x,I)&&w(x,I)}}else E=A}var R=new em(n,v,i?o.componentStyle:void 0);function L(x,I){return function(O,D,K){var ie=O.attrs,ce=O.componentStyle,fe=O.defaultProps,ye=O.foldedComponentIds,we=O.styledComponentId,ge=O.target,he=re.useContext(Df),Re=kf(),Ie=O.shouldForwardProp||Re.shouldForwardProp;et.env.NODE_ENV!=="production"&&re.useDebugValue(we);var Te=function(Y,oe,xe){for(var Ke,Se=wn(wn({},oe),{className:void 0,theme:xe}),Fe=0;Fe<Y.length;Fe+=1){var je=Ri(Ke=Y[Fe])?Ke(Se):Ke;for(var Le in je)Se[Le]=Le==="className"?oi(Se[Le],je[Le]):Le==="style"?wn(wn({},Se[Le]),je[Le]):je[Le]}return oe.className&&(Se.className=oi(Se.className,oe.className)),Se}(ie,D,A0(D,he,fe)||Di),We=Te.as||ge,Xe={};for(var Ee in Te)Te[Ee]===void 0||Ee[0]==="$"||Ee==="as"||Ee==="theme"||(Ee==="forwardedAs"?Xe.as=Te.forwardedAs:Ie&&!Ie(Ee,We)||(Xe[Ee]=Te[Ee],Ie||et.env.NODE_ENV!=="development"||Qy(Ee)||Rf.has(Ee)||!vu.has(We)||(Rf.add(Ee),console.warn('styled-components: it looks like an unknown prop "'.concat(Ee,'" 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 wt=function(Y,oe){var xe=kf(),Ke=Y.generateAndInjectStyles(oe,xe.styleSheet,xe.stylis);return et.env.NODE_ENV!=="production"&&re.useDebugValue(Ke),Ke}(ce,Te);et.env.NODE_ENV!=="production"&&O.warnTooManyClasses&&O.warnTooManyClasses(wt);var G=oi(ye,we);return wt&&(G+=" "+wt),Te.className&&(G+=" "+Te.className),Xe[Su(We)&&!vu.has(We)?"class":"className"]=G,Xe.ref=K,re.createElement(We,Xe)}(T,x,I)}et.env.NODE_ENV!=="production"&&(L.displayName=d);var T=re.forwardRef(L);return T.attrs=k,T.componentStyle=R,T.shouldForwardProp=E,et.env.NODE_ENV!=="production"&&(T.displayName=d),T.foldedComponentIds=i?oi(o.foldedComponentIds,o.styledComponentId):"",T.styledComponentId=v,T.target=i?o.target:e,Object.defineProperty(T,"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 K=0,ie=O;K<ie.length;K++)Cu(I,ie[K],!0);return I}({},o.defaultProps,x):x}}),et.env.NODE_ENV!=="production"&&(v0(d,v),T.warnTooManyClasses=function(x,I){var O={},D=!1;return function(K){if(!D&&(O[K]=!0,Object.keys(O).length>=200)){var ie=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(ie,`.
|
|
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 => ({
|
|
@@ -72,11 +72,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Lo]+=1);const $r=Ct.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 $f;function rm(){if($f)return Cs;$f=1;var e=re,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,y){var g,d={},v=null,k=null;y!==void 0&&(v=""+y),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(k=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(d[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)d[g]===void 0&&(d[g]=f[g]);return{$$typeof:t,type:l,key:v,ref:k,props:d,_owner:o.current}}return Cs.Fragment=n,Cs.jsx=u,Cs.jsxs=u,Cs}var _s={},jf;function im(){return jf||(jf=1,et.env.NODE_ENV!=="production"&&function(){var e=re,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"),y=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),
|
|
75
|
+
*/var $f;function rm(){if($f)return Cs;$f=1;var e=re,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,y){var g,d={},v=null,k=null;y!==void 0&&(v=""+y),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(k=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(d[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)d[g]===void 0&&(d[g]=f[g]);return{$$typeof:t,type:l,key:v,ref:k,props:d,_owner:o.current}}return Cs.Fragment=n,Cs.jsx=u,Cs.jsxs=u,Cs}var _s={},jf;function im(){return jf||(jf=1,et.env.NODE_ENV!=="production"&&function(){var e=re,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"),y=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),E=Symbol.iterator,A="@@iterator";function w(M){if(M===null||typeof M!="object")return null;var ae=E&&M[E]||M[A];return typeof ae=="function"?ae:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(M){{for(var ae=arguments.length,me=new Array(ae>1?ae-1:0),Oe=1;Oe<ae;Oe++)me[Oe-1]=arguments[Oe];T("error",M,me)}}function T(M,ae,me){{var Oe=R.ReactDebugCurrentFrame,ct=Oe.getStackAddendum();ct!==""&&(ae+="%s",me=me.concat([ct]));var lt=me.map(function(tt){return String(tt)});lt.unshift("Warning: "+ae),Function.prototype.apply.call(console[M],console,lt)}}var x=!1,I=!1,O=!1,D=!1,K=!1,ie;ie=Symbol.for("react.module.reference");function ce(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||K||M===o||M===y||M===g||D||M===k||x||I||O||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===d||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===ie||M.getModuleId!==void 0))}function fe(M,ae,me){var Oe=M.displayName;if(Oe)return Oe;var ct=ae.displayName||ae.name||"";return ct!==""?me+"("+ct+")":me}function ye(M){return M.displayName||"Context"}function we(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 y:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var ae=M;return ye(ae)+".Consumer";case u:var me=M;return ye(me._context)+".Provider";case f:return fe(M,M.render,"ForwardRef");case d:var Oe=M.displayName||null;return Oe!==null?Oe:we(M.type)||"Memo";case v:{var ct=M,lt=ct._payload,tt=ct._init;try{return we(tt(lt))}catch{return null}}}return null}var ge=Object.assign,he=0,Re,Ie,Te,We,Xe,Ee,wt;function G(){}G.__reactDisabledLog=!0;function Y(){{if(he===0){Re=console.log,Ie=console.info,Te=console.warn,We=console.error,Xe=console.group,Ee=console.groupCollapsed,wt=console.groupEnd;var M={configurable:!0,enumerable:!0,value:G,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:ge({},M,{value:Re}),info:ge({},M,{value:Ie}),warn:ge({},M,{value:Te}),error:ge({},M,{value:We}),group:ge({},M,{value:Xe}),groupCollapsed:ge({},M,{value:Ee}),groupEnd:ge({},M,{value:wt})})}he<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=R.ReactCurrentDispatcher,Ke;function Se(M,ae,me){{if(Ke===void 0)try{throw Error()}catch(ct){var Oe=ct.stack.trim().match(/\n( *(at )?)/);Ke=Oe&&Oe[1]||""}return`
|
|
76
76
|
`+Ke+M}}var Fe=!1,je;{var Le=typeof WeakMap=="function"?WeakMap:Map;je=new Le}function Tt(M,ae){if(!M||Fe)return"";{var me=je.get(M);if(me!==void 0)return me}var Oe;Fe=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var lt;lt=xe.current,xe.current=null,Y();try{if(ae){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(zt){Oe=zt}Reflect.construct(M,[],tt)}else{try{tt.call()}catch(zt){Oe=zt}M.call(tt.prototype)}}else{try{throw Error()}catch(zt){Oe=zt}M()}}catch(zt){if(zt&&Oe&&typeof zt.stack=="string"){for(var Je=zt.stack.split(`
|
|
77
77
|
`),en=Oe.stack.split(`
|
|
78
78
|
`),Bt=Je.length-1,Rt=en.length-1;Bt>=1&&Rt>=0&&Je[Bt]!==en[Rt];)Rt--;for(;Bt>=1&&Rt>=0;Bt--,Rt--)if(Je[Bt]!==en[Rt]){if(Bt!==1||Rt!==1)do if(Bt--,Rt--,Rt<0||Je[Bt]!==en[Rt]){var ln=`
|
|
79
|
-
`+Je[Bt].replace(" at new "," at ");return M.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",M.displayName)),typeof M=="function"&&je.set(M,ln),ln}while(Bt>=1&&Rt>=0);break}}}finally{Fe=!1,xe.current=lt,oe(),Error.prepareStackTrace=ct}var Tn=M?M.displayName||M.name:"",rr=Tn?Se(Tn):"";return typeof M=="function"&&je.set(M,rr),rr}function sn(M,ae,me){return Tt(M,!1)}function Nt(M){var ae=M.prototype;return!!(ae&&ae.isReactComponent)}function Lt(M,ae,me){if(M==null)return"";if(typeof M=="function")return Tt(M,Nt(M));if(typeof M=="string")return Se(M);switch(M){case y:return Se("Suspense");case g:return Se("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return sn(M.render);case d:return Lt(M.type,ae,me);case v:{var Oe=M,ct=Oe._payload,lt=Oe._init;try{return Lt(lt(ct),ae,me)}catch{}}}return""}var ve=Object.prototype.hasOwnProperty,Ce={},qe=
|
|
79
|
+
`+Je[Bt].replace(" at new "," at ");return M.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",M.displayName)),typeof M=="function"&&je.set(M,ln),ln}while(Bt>=1&&Rt>=0);break}}}finally{Fe=!1,xe.current=lt,oe(),Error.prepareStackTrace=ct}var Tn=M?M.displayName||M.name:"",rr=Tn?Se(Tn):"";return typeof M=="function"&&je.set(M,rr),rr}function sn(M,ae,me){return Tt(M,!1)}function Nt(M){var ae=M.prototype;return!!(ae&&ae.isReactComponent)}function Lt(M,ae,me){if(M==null)return"";if(typeof M=="function")return Tt(M,Nt(M));if(typeof M=="string")return Se(M);switch(M){case y:return Se("Suspense");case g:return Se("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return sn(M.render);case d:return Lt(M.type,ae,me);case v:{var Oe=M,ct=Oe._payload,lt=Oe._init;try{return Lt(lt(ct),ae,me)}catch{}}}return""}var ve=Object.prototype.hasOwnProperty,Ce={},qe=R.ReactDebugCurrentFrame;function kt(M){if(M){var ae=M._owner,me=Lt(M.type,M._source,ae?ae.type:null);qe.setExtraStackFrame(me)}else qe.setExtraStackFrame(null)}function ht(M,ae,me,Oe,ct){{var lt=Function.call.bind(ve);for(var tt in M)if(lt(M,tt)){var Je=void 0;try{if(typeof M[tt]!="function"){var en=Error((Oe||"React class")+": "+me+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw en.name="Invariant Violation",en}Je=M[tt](ae,tt,Oe,me,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bt){Je=Bt}Je&&!(Je instanceof Error)&&(kt(ct),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).",Oe||"React class",me,tt,typeof Je),kt(null)),Je instanceof Error&&!(Je.message in Ce)&&(Ce[Je.message]=!0,kt(ct),L("Failed %s type: %s",me,Je.message),kt(null))}}}var Et=Array.isArray;function de(M){return Et(M)}function Qe(M){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,me=ae&&M[Symbol.toStringTag]||M.constructor.name||"Object";return me}}function St(M){try{return it(M),!1}catch{return!0}}function it(M){return""+M}function Mt(M){if(St(M))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(M)),it(M)}var ke=R.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},$t,_;function p(M){if(ve.call(M,"ref")){var ae=Object.getOwnPropertyDescriptor(M,"ref").get;if(ae&&ae.isReactWarning)return!1}return M.ref!==void 0}function b(M){if(ve.call(M,"key")){var ae=Object.getOwnPropertyDescriptor(M,"key").get;if(ae&&ae.isReactWarning)return!1}return M.key!==void 0}function P(M,ae){typeof M.ref=="string"&&ke.current}function V(M,ae){{var me=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)",ae))};me.isReactWarning=!0,Object.defineProperty(M,"key",{get:me,configurable:!0})}}function z(M,ae){{var me=function(){_||(_=!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)",ae))};me.isReactWarning=!0,Object.defineProperty(M,"ref",{get:me,configurable:!0})}}var X=function(M,ae,me,Oe,ct,lt,tt){var Je={$$typeof:t,type:M,key:ae,ref:me,props:tt,_owner:lt};return Je._store={},Object.defineProperty(Je._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Je,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.defineProperty(Je,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(Je.props),Object.freeze(Je)),Je};function $e(M,ae,me,Oe,ct){{var lt,tt={},Je=null,en=null;me!==void 0&&(Mt(me),Je=""+me),b(ae)&&(Mt(ae.key),Je=""+ae.key),p(ae)&&(en=ae.ref,P(ae,ct));for(lt in ae)ve.call(ae,lt)&&!Be.hasOwnProperty(lt)&&(tt[lt]=ae[lt]);if(M&&M.defaultProps){var Bt=M.defaultProps;for(lt in Bt)tt[lt]===void 0&&(tt[lt]=Bt[lt])}if(Je||en){var Rt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Je&&V(tt,Rt),en&&z(tt,Rt)}return X(M,Je,en,ct,Oe,ke.current,tt)}}var dt=R.ReactCurrentOwner,ut=R.ReactDebugCurrentFrame;function pt(M){if(M){var ae=M._owner,me=Lt(M.type,M._source,ae?ae.type:null);ut.setExtraStackFrame(me)}else ut.setExtraStackFrame(null)}var st;st=!1;function qr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function yi(){{if(dt.current){var M=we(dt.current.type);if(M)return`
|
|
80
80
|
|
|
81
81
|
Check the render method of \``+M+"`."}return""}}function rs(M){return""}var is={};function ss(M){{var ae=yi();if(!ae){var me=typeof M=="string"?M:M.displayName||M.name;me&&(ae=`
|
|
82
82
|
|
|
@@ -91,14 +91,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
91
91
|
align-items: center;
|
|
92
92
|
justify-content: center;
|
|
93
93
|
}
|
|
94
|
-
`},{Search:om}=ue.Input,am=({treeData:e,onSelect:t})=>{const[n,i]=re.useState([]),[o,a]=re.useState(""),u=f=>{const{value:y}=f.target,g={},d=(w,
|
|
94
|
+
`},{Search:om}=ue.Input,am=({treeData:e,onSelect:t})=>{const[n,i]=re.useState([]),[o,a]=re.useState(""),u=f=>{const{value:y}=f.target,g={},d=(w,R)=>{w.forEach(L=>{g[L.key]=R,L.children&&d(L.children,L.key)})};d(e,null);const v=w=>{const R=[];let L=g[w];for(;L;)R.push(L),L=g[L];return R},k=[],E=w=>{w.forEach(R=>{if(R.title.toLowerCase().includes(y.toLowerCase())){k.push(R.key);const T=v(R.key);k.push(...T)}R.children&&E(R.children)})};E(e);const A=Array.from(new Set(k)).filter(Boolean);i(A),a(y)},l=f=>f.map(y=>{const g=y.title,d=g.toLowerCase().indexOf(o.toLowerCase()),v=g.substring(0,d),k=g.substring(d+o.length),E=d>-1?$.jsxs("span",{children:[v,$.jsx("span",{style:{color:"#f50"},children:o}),k]}):$.jsx("span",{children:g});return y.children?{...y,title:E,children:l(y.children)}:{...y,title:E}});return $.jsxs($.Fragment,{children:[$.jsx(om,{style:{marginBottom:8},placeholder:"Search",onChange:u}),$.jsx(sm.CustomTreeProvider,{children:$.jsx(ue.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,y)=>{t&&t(f,y),n.includes(y.node.key)?i([...n.filter(g=>g!==y.node.key)]):i([...n,y.node.key])}})})]})},um=globalThis||void 0||self;function Mf(e,t){return function(){return e.apply(t,arguments)}}const{toString:cm}=Object.prototype,{getPrototypeOf:Bu}=Object,$o=(e=>t=>{const n=cm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lr=e=>(e=e.toLowerCase(),t=>$o(t)===e),jo=e=>t=>typeof t===e,{isArray:Li}=Array,Ts=jo("undefined");function lm(e){return e!==null&&!Ts(e)&&e.constructor!==null&&!Ts(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uf=lr("ArrayBuffer");function fm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Uf(e.buffer),t}const hm=jo("string"),Nn=jo("function"),Vf=jo("number"),Mo=e=>e!==null&&typeof e=="object",pm=e=>e===!0||e===!1,Uo=e=>{if($o(e)!=="object")return!1;const t=Bu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dm=lr("Date"),gm=lr("File"),ym=lr("Blob"),mm=lr("FileList"),bm=e=>Mo(e)&&Nn(e.pipe),wm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=$o(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},vm=lr("URLSearchParams"),Am=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ks(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Li(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 qf(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 Wf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:um,Kf=e=>!Ts(e)&&e!==Wf;function Du(){const{caseless:e}=Kf(this)&&this||{},t={},n=(i,o)=>{const a=e&&qf(t,o)||o;Uo(t[a])&&Uo(i)?t[a]=Du(t[a],i):Uo(i)?t[a]=Du({},i):Li(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&ks(arguments[i],n);return t}const Em=(e,t,n,{allOwnKeys:i}={})=>(ks(t,(o,a)=>{n&&Nn(o)?e[a]=Mf(o,n):e[a]=o},{allOwnKeys:i}),e),Sm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xm=(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)},Cm=(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&&Bu(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},Tm=e=>{if(!e)return null;if(Li(e))return e;let t=e.length;if(!Vf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},km=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bu(Uint8Array)),Om=(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])}},Im=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Fm=lr("HTMLFormElement"),Bm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Hf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Dm=lr("RegExp"),zf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ks(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Rm=e=>{zf(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+"'")})}})},Pm=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Li(e)?i(e):i(String(e).split(t)),n},Nm=()=>{},Lm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ru="abcdefghijklmnopqrstuvwxyz",Gf="0123456789",Jf={DIGIT:Gf,ALPHA:Ru,ALPHA_DIGIT:Ru+Ru.toUpperCase()+Gf},$m=(e=16,t=Jf.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function jm(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Mm=e=>{const t=new Array(10),n=(i,o)=>{if(Mo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Li(i)?[]:{};return ks(i,(u,l)=>{const f=n(u,o+1);!Ts(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},Um=lr("AsyncFunction"),ee={isArray:Li,isArrayBuffer:Uf,isBuffer:lm,isFormData:wm,isArrayBufferView:fm,isString:hm,isNumber:Vf,isBoolean:pm,isObject:Mo,isPlainObject:Uo,isUndefined:Ts,isDate:dm,isFile:gm,isBlob:ym,isRegExp:Dm,isFunction:Nn,isStream:bm,isURLSearchParams:vm,isTypedArray:km,isFileList:mm,forEach:ks,merge:Du,extend:Em,trim:Am,stripBOM:Sm,inherits:xm,toFlatObject:Cm,kindOf:$o,kindOfTest:lr,endsWith:_m,toArray:Tm,forEachEntry:Om,matchAll:Im,isHTMLForm:Fm,hasOwnProperty:Hf,hasOwnProp:Hf,reduceDescriptors:zf,freezeMethods:Rm,toObjectSet:Pm,toCamelCase:Bm,noop:Nm,toFiniteNumber:Lm,findKey:qf,global:Wf,isContextDefined:Kf,ALPHABET:Jf,generateString:$m,isSpecCompliantForm:jm,toJSONObject:Mm,isAsyncFn:Um,isThenable:e=>e&&(Mo(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch)};var Yf={},Vo={};Vo.byteLength=Wm,Vo.toByteArray=Hm,Vo.fromByteArray=Jm;for(var fr=[],Ln=[],Vm=typeof Uint8Array<"u"?Uint8Array:Array,Pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$i=0,qm=Pu.length;$i<qm;++$i)fr[$i]=Pu[$i],Ln[Pu.charCodeAt($i)]=$i;Ln[45]=62,Ln[95]=63;function Xf(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 Wm(e){var t=Xf(e),n=t[0],i=t[1];return(n+i)*3/4-i}function Km(e,t,n){return(t+n)*3/4-n}function Hm(e){var t,n=Xf(e),i=n[0],o=n[1],a=new Vm(Km(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=Ln[e.charCodeAt(f)]<<18|Ln[e.charCodeAt(f+1)]<<12|Ln[e.charCodeAt(f+2)]<<6|Ln[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=Ln[e.charCodeAt(f)]<<2|Ln[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=Ln[e.charCodeAt(f)]<<10|Ln[e.charCodeAt(f+1)]<<4|Ln[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function zm(e){return fr[e>>18&63]+fr[e>>12&63]+fr[e>>6&63]+fr[e&63]}function Gm(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(zm(i));return o.join("")}function Jm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(Gm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(fr[t>>2]+fr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(fr[t>>10]+fr[t>>4&63]+fr[t<<2&63]+"=")),o.join("")}var Nu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Nu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,y=f>>1,g=-7,d=n?o-1:0,v=n?-1:1,k=e[t+d];for(d+=v,a=k&(1<<-g)-1,k>>=-g,g+=l;g>0;a=a*256+e[t+d],d+=v,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+d],d+=v,g-=8);if(a===0)a=1-y;else{if(a===f)return u?NaN:(k?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-y}return(k?-1:1)*u*Math.pow(2,a-i)},Nu.write=function(e,t,n,i,o,a){var u,l,f,y=a*8-o-1,g=(1<<y)-1,d=g>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=i?0:a-1,E=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+d>=1?t+=v/f:t+=v*Math.pow(2,1-d),t*f>=2&&(u++,f/=2),u+d>=g?(l=0,u=g):u+d>=1?(l=(t*f-1)*Math.pow(2,o),u=u+d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),u=0));o>=8;e[n+k]=l&255,k+=E,l/=256,o-=8);for(u=u<<o|l,y+=o;y>0;e[n+k]=u&255,k+=E,u/=256,y-=8);e[n+k-E]|=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=Vo,n=Nu,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 _=new a(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,a.prototype),Object.setPrototypeOf(_,p),_.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 y(_){if(_>o)throw new RangeError('The value "'+_+'" is invalid for option "size"');const p=new a(_);return Object.setPrototypeOf(p,g.prototype),p}function g(_,p,b){if(typeof _=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(_)}return d(_,p,b)}g.poolSize=8192;function d(_,p,b){if(typeof _=="string")return E(_,p);if(u.isView(_))return P(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(it(_,u)||_&&it(_.buffer,u)||typeof l<"u"&&(it(_,l)||_&&it(_.buffer,l)))return L(_,p,b);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=_.valueOf&&_.valueOf();if(R!=null&&R!==_)return g.from(R,p,b);const V=T(_);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return g.from(_[Symbol.toPrimitive]("string"),p,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}g.from=function(_,p,b){return d(_,p,b)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function v(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function k(_,p,b){return v(_),_<=0?y(_):p!==void 0?typeof b=="string"?y(_).fill(p,b):y(_).fill(p):y(_)}g.alloc=function(_,p,b){return k(_,p,b)};function A(_){return v(_),y(_<0?0:x(_)|0)}g.allocUnsafe=function(_){return A(_)},g.allocUnsafeSlow=function(_){return A(_)};function E(_,p){if((typeof p!="string"||p==="")&&(p="utf8"),!g.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const b=O(_,p)|0;let R=y(b);const V=R.write(_,p);return V!==b&&(R=R.slice(0,V)),R}function w(_){const p=_.length<0?0:x(_.length)|0,b=y(p);for(let R=0;R<p;R+=1)b[R]=_[R]&255;return b}function P(_){if(it(_,a)){const p=new a(_);return L(p.buffer,p.byteOffset,p.byteLength)}return w(_)}function L(_,p,b){if(p<0||_.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<p+(b||0))throw new RangeError('"length" is outside of buffer bounds');let R;return p===void 0&&b===void 0?R=new a(_):b===void 0?R=new a(_,p):R=new a(_,p,b),Object.setPrototypeOf(R,g.prototype),R}function T(_){if(g.isBuffer(_)){const p=x(_.length)|0,b=y(p);return b.length===0||_.copy(b,0,0,p),b}if(_.length!==void 0)return typeof _.length!="number"||Mt(_.length)?y(0):w(_);if(_.type==="Buffer"&&Array.isArray(_.data))return w(_.data)}function x(_){if(_>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return _|0}function I(_){return+_!=_&&(_=0),g.alloc(+_)}g.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==g.prototype},g.compare=function(p,b){if(it(p,a)&&(p=g.from(p,p.offset,p.byteLength)),it(b,a)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(p)||!g.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===b)return 0;let R=p.length,V=b.length;for(let z=0,X=Math.min(R,V);z<X;++z)if(p[z]!==b[z]){R=p[z],V=b[z];break}return R<V?-1:V<R?1:0},g.isEncoding=function(p){switch(String(p).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(p,b){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return g.alloc(0);let R;if(b===void 0)for(b=0,R=0;R<p.length;++R)b+=p[R].length;const V=g.allocUnsafe(b);let z=0;for(R=0;R<p.length;++R){let X=p[R];if(it(X,a))z+X.length>V.length?(g.isBuffer(X)||(X=g.from(X)),X.copy(V,z)):a.prototype.set.call(V,X,z);else if(g.isBuffer(X))X.copy(V,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=X.length}return V};function O(_,p){if(g.isBuffer(_))return _.length;if(u.isView(_)||it(_,u))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const b=_.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&b===0)return 0;let V=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return ht(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Qe(_).length;default:if(V)return R?-1:ht(_).length;p=(""+p).toLowerCase(),V=!0}}g.byteLength=O;function D(_,p,b){let R=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,p>>>=0,b<=p))return"";for(_||(_="utf8");;)switch(_){case"hex":return wt(this,p,b);case"utf8":case"utf-8":return Ie(this,p,b);case"ascii":return Xe(this,p,b);case"latin1":case"binary":return Ee(this,p,b);case"base64":return Re(this,p,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,p,b);default:if(R)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),R=!0}}g.prototype._isBuffer=!0;function K(_,p,b){const R=_[p];_[p]=_[b],_[b]=R}g.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<p;b+=2)K(this,b,b+1);return this},g.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<p;b+=4)K(this,b,b+3),K(this,b+1,b+2);return this},g.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<p;b+=8)K(this,b,b+7),K(this,b+1,b+6),K(this,b+2,b+5),K(this,b+3,b+4);return this},g.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Ie(this,0,p):D.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(p){if(!g.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:g.compare(this,p)===0},g.prototype.inspect=function(){let p="";const b=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(p+=" ... "),"<Buffer "+p+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(p,b,R,V,z){if(it(p,a)&&(p=g.from(p,p.offset,p.byteLength)),!g.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(b===void 0&&(b=0),R===void 0&&(R=p?p.length:0),V===void 0&&(V=0),z===void 0&&(z=this.length),b<0||R>p.length||V<0||z>this.length)throw new RangeError("out of range index");if(V>=z&&b>=R)return 0;if(V>=z)return-1;if(b>=R)return 1;if(b>>>=0,R>>>=0,V>>>=0,z>>>=0,this===p)return 0;let X=z-V,$e=R-b;const dt=Math.min(X,$e),ut=this.slice(V,z),pt=p.slice(b,R);for(let st=0;st<dt;++st)if(ut[st]!==pt[st]){X=ut[st],$e=pt[st];break}return X<$e?-1:$e<X?1:0};function ie(_,p,b,R,V){if(_.length===0)return-1;if(typeof b=="string"?(R=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Mt(b)&&(b=V?0:_.length-1),b<0&&(b=_.length+b),b>=_.length){if(V)return-1;b=_.length-1}else if(b<0)if(V)b=0;else return-1;if(typeof p=="string"&&(p=g.from(p,R)),g.isBuffer(p))return p.length===0?-1:ce(_,p,b,R,V);if(typeof p=="number")return p=p&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(_,p,b):a.prototype.lastIndexOf.call(_,p,b):ce(_,[p],b,R,V);throw new TypeError("val must be string, number or Buffer")}function ce(_,p,b,R,V){let z=1,X=_.length,$e=p.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(_.length<2||p.length<2)return-1;z=2,X/=2,$e/=2,b/=2}function dt(pt,st){return z===1?pt[st]:pt.readUInt16BE(st*z)}let ut;if(V){let pt=-1;for(ut=b;ut<X;ut++)if(dt(_,ut)===dt(p,pt===-1?0:ut-pt)){if(pt===-1&&(pt=ut),ut-pt+1===$e)return pt*z}else pt!==-1&&(ut-=ut-pt),pt=-1}else for(b+$e>X&&(b=X-$e),ut=b;ut>=0;ut--){let pt=!0;for(let st=0;st<$e;st++)if(dt(_,ut+st)!==dt(p,st)){pt=!1;break}if(pt)return ut}return-1}g.prototype.includes=function(p,b,R){return this.indexOf(p,b,R)!==-1},g.prototype.indexOf=function(p,b,R){return ie(this,p,b,R,!0)},g.prototype.lastIndexOf=function(p,b,R){return ie(this,p,b,R,!1)};function fe(_,p,b,R){b=Number(b)||0;const V=_.length-b;R?(R=Number(R),R>V&&(R=V)):R=V;const z=p.length;R>z/2&&(R=z/2);let X;for(X=0;X<R;++X){const $e=parseInt(p.substr(X*2,2),16);if(Mt($e))return X;_[b+X]=$e}return X}function ye(_,p,b,R){return St(ht(p,_.length-b),_,b,R)}function we(_,p,b,R){return St(Et(p),_,b,R)}function ge(_,p,b,R){return St(Qe(p),_,b,R)}function he(_,p,b,R){return St(de(p,_.length-b),_,b,R)}g.prototype.write=function(p,b,R,V){if(b===void 0)V="utf8",R=this.length,b=0;else if(R===void 0&&typeof b=="string")V=b,R=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(R)?(R=R>>>0,V===void 0&&(V="utf8")):(V=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-b;if((R===void 0||R>z)&&(R=z),p.length>0&&(R<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let X=!1;for(;;)switch(V){case"hex":return fe(this,p,b,R);case"utf8":case"utf-8":return ye(this,p,b,R);case"ascii":case"latin1":case"binary":return we(this,p,b,R);case"base64":return ge(this,p,b,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,p,b,R);default:if(X)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),X=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Re(_,p,b){return p===0&&b===_.length?t.fromByteArray(_):t.fromByteArray(_.slice(p,b))}function Ie(_,p,b){b=Math.min(_.length,b);const R=[];let V=p;for(;V<b;){const z=_[V];let X=null,$e=z>239?4:z>223?3:z>191?2:1;if(V+$e<=b){let dt,ut,pt,st;switch($e){case 1:z<128&&(X=z);break;case 2:dt=_[V+1],(dt&192)===128&&(st=(z&31)<<6|dt&63,st>127&&(X=st));break;case 3:dt=_[V+1],ut=_[V+2],(dt&192)===128&&(ut&192)===128&&(st=(z&15)<<12|(dt&63)<<6|ut&63,st>2047&&(st<55296||st>57343)&&(X=st));break;case 4:dt=_[V+1],ut=_[V+2],pt=_[V+3],(dt&192)===128&&(ut&192)===128&&(pt&192)===128&&(st=(z&15)<<18|(dt&63)<<12|(ut&63)<<6|pt&63,st>65535&&st<1114112&&(X=st))}}X===null?(X=65533,$e=1):X>65535&&(X-=65536,R.push(X>>>10&1023|55296),X=56320|X&1023),R.push(X),V+=$e}return We(R)}const Te=4096;function We(_){const p=_.length;if(p<=Te)return String.fromCharCode.apply(String,_);let b="",R=0;for(;R<p;)b+=String.fromCharCode.apply(String,_.slice(R,R+=Te));return b}function Xe(_,p,b){let R="";b=Math.min(_.length,b);for(let V=p;V<b;++V)R+=String.fromCharCode(_[V]&127);return R}function Ee(_,p,b){let R="";b=Math.min(_.length,b);for(let V=p;V<b;++V)R+=String.fromCharCode(_[V]);return R}function wt(_,p,b){const R=_.length;(!p||p<0)&&(p=0),(!b||b<0||b>R)&&(b=R);let V="";for(let z=p;z<b;++z)V+=ke[_[z]];return V}function G(_,p,b){const R=_.slice(p,b);let V="";for(let z=0;z<R.length-1;z+=2)V+=String.fromCharCode(R[z]+R[z+1]*256);return V}g.prototype.slice=function(p,b){const R=this.length;p=~~p,b=b===void 0?R:~~b,p<0?(p+=R,p<0&&(p=0)):p>R&&(p=R),b<0?(b+=R,b<0&&(b=0)):b>R&&(b=R),b<p&&(b=p);const V=this.subarray(p,b);return Object.setPrototypeOf(V,g.prototype),V};function Y(_,p,b){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+p>b)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(p,b,R){p=p>>>0,b=b>>>0,R||Y(p,b,this.length);let V=this[p],z=1,X=0;for(;++X<b&&(z*=256);)V+=this[p+X]*z;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(p,b,R){p=p>>>0,b=b>>>0,R||Y(p,b,this.length);let V=this[p+--b],z=1;for(;b>0&&(z*=256);)V+=this[p+--b]*z;return V},g.prototype.readUint8=g.prototype.readUInt8=function(p,b){return p=p>>>0,b||Y(p,1,this.length),this[p]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(p,b){return p=p>>>0,b||Y(p,2,this.length),this[p]|this[p+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(p,b){return p=p>>>0,b||Y(p,2,this.length),this[p]<<8|this[p+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},g.prototype.readBigUInt64LE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],R=this[p+7];(b===void 0||R===void 0)&&Ce(p,this.length-8);const V=b+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,z=this[++p]+this[++p]*2**8+this[++p]*2**16+R*2**24;return BigInt(V)+(BigInt(z)<<BigInt(32))}),g.prototype.readBigUInt64BE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],R=this[p+7];(b===void 0||R===void 0)&&Ce(p,this.length-8);const V=b*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],z=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+R;return(BigInt(V)<<BigInt(32))+BigInt(z)}),g.prototype.readIntLE=function(p,b,R){p=p>>>0,b=b>>>0,R||Y(p,b,this.length);let V=this[p],z=1,X=0;for(;++X<b&&(z*=256);)V+=this[p+X]*z;return z*=128,V>=z&&(V-=Math.pow(2,8*b)),V},g.prototype.readIntBE=function(p,b,R){p=p>>>0,b=b>>>0,R||Y(p,b,this.length);let V=b,z=1,X=this[p+--V];for(;V>0&&(z*=256);)X+=this[p+--V]*z;return z*=128,X>=z&&(X-=Math.pow(2,8*b)),X},g.prototype.readInt8=function(p,b){return p=p>>>0,b||Y(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},g.prototype.readInt16LE=function(p,b){p=p>>>0,b||Y(p,2,this.length);const R=this[p]|this[p+1]<<8;return R&32768?R|4294901760:R},g.prototype.readInt16BE=function(p,b){p=p>>>0,b||Y(p,2,this.length);const R=this[p+1]|this[p]<<8;return R&32768?R|4294901760:R},g.prototype.readInt32LE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},g.prototype.readInt32BE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},g.prototype.readBigInt64LE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],R=this[p+7];(b===void 0||R===void 0)&&Ce(p,this.length-8);const V=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(R<<24);return(BigInt(V)<<BigInt(32))+BigInt(b+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),g.prototype.readBigInt64BE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],R=this[p+7];(b===void 0||R===void 0)&&Ce(p,this.length-8);const V=(b<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(V)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+R)}),g.prototype.readFloatLE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),n.read(this,p,!0,23,4)},g.prototype.readFloatBE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),n.read(this,p,!1,23,4)},g.prototype.readDoubleLE=function(p,b){return p=p>>>0,b||Y(p,8,this.length),n.read(this,p,!0,52,8)},g.prototype.readDoubleBE=function(p,b){return p=p>>>0,b||Y(p,8,this.length),n.read(this,p,!1,52,8)};function oe(_,p,b,R,V,z){if(!g.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>V||p<z)throw new RangeError('"value" argument is out of bounds');if(b+R>_.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(p,b,R,V){if(p=+p,b=b>>>0,R=R>>>0,!V){const $e=Math.pow(2,8*R)-1;oe(this,p,b,R,$e,0)}let z=1,X=0;for(this[b]=p&255;++X<R&&(z*=256);)this[b+X]=p/z&255;return b+R},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(p,b,R,V){if(p=+p,b=b>>>0,R=R>>>0,!V){const $e=Math.pow(2,8*R)-1;oe(this,p,b,R,$e,0)}let z=R-1,X=1;for(this[b+z]=p&255;--z>=0&&(X*=256);)this[b+z]=p/X&255;return b+R},g.prototype.writeUint8=g.prototype.writeUInt8=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,1,255,0),this[b]=p&255,b+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,2,65535,0),this[b]=p&255,this[b+1]=p>>>8,b+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,2,65535,0),this[b]=p>>>8,this[b+1]=p&255,b+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,4,4294967295,0),this[b+3]=p>>>24,this[b+2]=p>>>16,this[b+1]=p>>>8,this[b]=p&255,b+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,4,4294967295,0),this[b]=p>>>24,this[b+1]=p>>>16,this[b+2]=p>>>8,this[b+3]=p&255,b+4};function xe(_,p,b,R,V){Lt(p,R,V,_,b,7);let z=Number(p&BigInt(4294967295));_[b++]=z,z=z>>8,_[b++]=z,z=z>>8,_[b++]=z,z=z>>8,_[b++]=z;let X=Number(p>>BigInt(32)&BigInt(4294967295));return _[b++]=X,X=X>>8,_[b++]=X,X=X>>8,_[b++]=X,X=X>>8,_[b++]=X,b}function Ke(_,p,b,R,V){Lt(p,R,V,_,b,7);let z=Number(p&BigInt(4294967295));_[b+7]=z,z=z>>8,_[b+6]=z,z=z>>8,_[b+5]=z,z=z>>8,_[b+4]=z;let X=Number(p>>BigInt(32)&BigInt(4294967295));return _[b+3]=X,X=X>>8,_[b+2]=X,X=X>>8,_[b+1]=X,X=X>>8,_[b]=X,b+8}g.prototype.writeBigUInt64LE=Be(function(p,b=0){return xe(this,p,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Be(function(p,b=0){return Ke(this,p,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(p,b,R,V){if(p=+p,b=b>>>0,!V){const dt=Math.pow(2,8*R-1);oe(this,p,b,R,dt-1,-dt)}let z=0,X=1,$e=0;for(this[b]=p&255;++z<R&&(X*=256);)p<0&&$e===0&&this[b+z-1]!==0&&($e=1),this[b+z]=(p/X>>0)-$e&255;return b+R},g.prototype.writeIntBE=function(p,b,R,V){if(p=+p,b=b>>>0,!V){const dt=Math.pow(2,8*R-1);oe(this,p,b,R,dt-1,-dt)}let z=R-1,X=1,$e=0;for(this[b+z]=p&255;--z>=0&&(X*=256);)p<0&&$e===0&&this[b+z+1]!==0&&($e=1),this[b+z]=(p/X>>0)-$e&255;return b+R},g.prototype.writeInt8=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,1,127,-128),p<0&&(p=255+p+1),this[b]=p&255,b+1},g.prototype.writeInt16LE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,2,32767,-32768),this[b]=p&255,this[b+1]=p>>>8,b+2},g.prototype.writeInt16BE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,2,32767,-32768),this[b]=p>>>8,this[b+1]=p&255,b+2},g.prototype.writeInt32LE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,4,2147483647,-2147483648),this[b]=p&255,this[b+1]=p>>>8,this[b+2]=p>>>16,this[b+3]=p>>>24,b+4},g.prototype.writeInt32BE=function(p,b,R){return p=+p,b=b>>>0,R||oe(this,p,b,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[b]=p>>>24,this[b+1]=p>>>16,this[b+2]=p>>>8,this[b+3]=p&255,b+4},g.prototype.writeBigInt64LE=Be(function(p,b=0){return xe(this,p,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Be(function(p,b=0){return Ke(this,p,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Se(_,p,b,R,V,z){if(b+R>_.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Fe(_,p,b,R,V){return p=+p,b=b>>>0,V||Se(_,p,b,4),n.write(_,p,b,R,23,4),b+4}g.prototype.writeFloatLE=function(p,b,R){return Fe(this,p,b,!0,R)},g.prototype.writeFloatBE=function(p,b,R){return Fe(this,p,b,!1,R)};function je(_,p,b,R,V){return p=+p,b=b>>>0,V||Se(_,p,b,8),n.write(_,p,b,R,52,8),b+8}g.prototype.writeDoubleLE=function(p,b,R){return je(this,p,b,!0,R)},g.prototype.writeDoubleBE=function(p,b,R){return je(this,p,b,!1,R)},g.prototype.copy=function(p,b,R,V){if(!g.isBuffer(p))throw new TypeError("argument should be a Buffer");if(R||(R=0),!V&&V!==0&&(V=this.length),b>=p.length&&(b=p.length),b||(b=0),V>0&&V<R&&(V=R),V===R||p.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=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),p.length-b<V-R&&(V=p.length-b+R);const z=V-R;return this===p&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,R,V):a.prototype.set.call(p,this.subarray(R,V),b),z},g.prototype.fill=function(p,b,R,V){if(typeof p=="string"){if(typeof b=="string"?(V=b,b=0,R=this.length):typeof R=="string"&&(V=R,R=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(p.length===1){const X=p.charCodeAt(0);(V==="utf8"&&X<128||V==="latin1")&&(p=X)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(b<0||this.length<b||this.length<R)throw new RangeError("Out of range index");if(R<=b)return this;b=b>>>0,R=R===void 0?this.length:R>>>0,p||(p=0);let z;if(typeof p=="number")for(z=b;z<R;++z)this[z]=p;else{const X=g.isBuffer(p)?p:g.from(p,V),$e=X.length;if($e===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(z=0;z<R-b;++z)this[z+b]=X[z%$e]}return this};const Le={};function Tt(_,p,b){Le[_]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,this.stack,delete this.name}get code(){return _}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(_,p){return`The "${_}" argument must be of type number. Received type ${typeof p}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(_,p,b){let R=`The value of "${_}" is out of range.`,V=b;return Number.isInteger(b)&&Math.abs(b)>2**32?V=sn(String(b)):typeof b=="bigint"&&(V=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(V=sn(V)),V+="n"),R+=` It must be ${p}. Received ${V}`,R},RangeError);function sn(_){let p="",b=_.length;const R=_[0]==="-"?1:0;for(;b>=R+4;b-=3)p=`_${_.slice(b-3,b)}${p}`;return`${_.slice(0,b)}${p}`}function Nt(_,p,b){ve(p,"offset"),(_[p]===void 0||_[p+b]===void 0)&&Ce(p,_.length-(b+1))}function Lt(_,p,b,R,V,z){if(_>b||_<p){const X=typeof p=="bigint"?"n":"";let $e;throw p===0||p===BigInt(0)?$e=`>= 0${X} and < 2${X} ** ${(z+1)*8}${X}`:$e=`>= -(2${X} ** ${(z+1)*8-1}${X}) and < 2 ** ${(z+1)*8-1}${X}`,new Le.ERR_OUT_OF_RANGE("value",$e,_)}Nt(R,V,z)}function ve(_,p){if(typeof _!="number")throw new Le.ERR_INVALID_ARG_TYPE(p,"number",_)}function Ce(_,p,b){throw Math.floor(_)!==_?(ve(_,b),new Le.ERR_OUT_OF_RANGE("offset","an integer",_)):p<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,_)}const qe=/[^+/0-9A-Za-z-_]/g;function kt(_){if(_=_.split("=")[0],_=_.trim().replace(qe,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function ht(_,p){p=p||1/0;let b;const R=_.length;let V=null;const z=[];for(let X=0;X<R;++X){if(b=_.charCodeAt(X),b>55295&&b<57344){if(!V){if(b>56319){(p-=3)>-1&&z.push(239,191,189);continue}else if(X+1===R){(p-=3)>-1&&z.push(239,191,189);continue}V=b;continue}if(b<56320){(p-=3)>-1&&z.push(239,191,189),V=b;continue}b=(V-55296<<10|b-56320)+65536}else V&&(p-=3)>-1&&z.push(239,191,189);if(V=null,b<128){if((p-=1)<0)break;z.push(b)}else if(b<2048){if((p-=2)<0)break;z.push(b>>6|192,b&63|128)}else if(b<65536){if((p-=3)<0)break;z.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((p-=4)<0)break;z.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return z}function Et(_){const p=[];for(let b=0;b<_.length;++b)p.push(_.charCodeAt(b)&255);return p}function de(_,p){let b,R,V;const z=[];for(let X=0;X<_.length&&!((p-=2)<0);++X)b=_.charCodeAt(X),R=b>>8,V=b%256,z.push(V),z.push(R);return z}function Qe(_){return t.toByteArray(kt(_))}function St(_,p,b,R){let V;for(V=0;V<R&&!(V+b>=p.length||V>=_.length);++V)p[V+b]=_[V];return V}function it(_,p){return _ instanceof p||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===p.name}function Mt(_){return _!==_}const ke=function(){const _="0123456789abcdef",p=new Array(256);for(let b=0;b<16;++b){const R=b*16;for(let V=0;V<16;++V)p[R+V]=_[b]+_[V]}return p}();function Be(_){return typeof BigInt>"u"?$t:_}function $t(){throw new Error("BigInt not supported")}})(Yf);const Ym=Yf.Buffer;function ft(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)}ee.inherits(ft,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:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Qf=ft.prototype,Zf={};["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=>{Zf[e]={value:e}}),Object.defineProperties(ft,Zf),Object.defineProperty(Qf,"isAxiosError",{value:!0}),ft.from=(e,t,n,i,o,a)=>{const u=Object.create(Qf);return ee.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ft.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const Xm=null;function Lu(e){return ee.isPlainObject(e)||ee.isArray(e)}function eh(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function th(e,t,n){return e?e.concat(t).map(function(o,a){return o=eh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Qm(e){return ee.isArray(e)&&!e.some(Lu)}const Zm=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function qo(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,w){return!ee.isUndefined(w[E])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function y(A){if(A===null)return"";if(ee.isDate(A))return A.toISOString();if(!f&&ee.isBlob(A))throw new ft("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(A)||ee.isTypedArray(A)?f&&typeof Blob=="function"?new Blob([A]):Ym.from(A):A}function g(A,E,w){let P=A;if(A&&!w&&typeof A=="object"){if(ee.endsWith(E,"{}"))E=i?E:E.slice(0,-2),A=JSON.stringify(A);else if(ee.isArray(A)&&Qm(A)||(ee.isFileList(A)||ee.endsWith(E,"[]"))&&(P=ee.toArray(A)))return E=eh(E),P.forEach(function(T,x){!(ee.isUndefined(T)||T===null)&&t.append(u===!0?th([E],x,a):u===null?E:E+"[]",y(T))}),!1}return Lu(A)?!0:(t.append(th(w,E,a),y(A)),!1)}const d=[],v=Object.assign(Zm,{defaultVisitor:g,convertValue:y,isVisitable:Lu});function k(A,E){if(!ee.isUndefined(A)){if(d.indexOf(A)!==-1)throw Error("Circular reference detected in "+E.join("."));d.push(A),ee.forEach(A,function(P,L){(!(ee.isUndefined(P)||P===null)&&o.call(t,P,ee.isString(L)?L.trim():L,E,v))===!0&&k(P,E?E.concat(L):[L])}),d.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return k(e),t}function nh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function $u(e,t){this._pairs=[],e&&qo(e,this,t)}const rh=$u.prototype;rh.append=function(t,n){this._pairs.push([t,n])},rh.toString=function(t){const n=t?function(i){return t.call(this,i,nh)}:nh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function e1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ih(e,t,n){if(!t)return e;const i=n&&n.encode||e1,o=n&&n.serialize;let a;if(o?a=o(t,n):a=ee.isURLSearchParams(t)?t.toString():new $u(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class sh{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){ee.forEach(this.handlers,function(i){i!==null&&t(i)})}}const oh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},t1=typeof URLSearchParams<"u"?URLSearchParams:$u,n1=typeof FormData<"u"?FormData:null,r1=typeof Blob<"u"?Blob:null,i1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),s1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hr={classes:{URLSearchParams:t1,FormData:n1,Blob:r1},isStandardBrowserEnv:i1,isStandardBrowserWebWorkerEnv:s1,protocols:["http","https","file","blob","url","data"]};function o1(e,t){return qo(e,new hr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return hr.isNode&&ee.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function a1(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function u1(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 ah(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&ee.isArray(o)?o.length:u,f?(ee.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!ee.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&ee.isArray(o[u])&&(o[u]=u1(o[u])),!l)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(i,o)=>{t(a1(i),o,n,0)}),n}return null}const c1={"Content-Type":void 0};function l1(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const ji={transitional:oh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=ee.isObject(t);if(a&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o&&o?JSON.stringify(ah(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.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 o1(t,this.formSerializer).toString();if((l=ee.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return qo(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),l1(t)):t}],transformResponse:[function(t){const n=this.transitional||ji.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&ee.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"?ft.from(l,ft.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:hr.classes.FormData,Blob:hr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ee.forEach(["delete","get","head"],function(t){ji.headers[t]={}}),ee.forEach(["post","put","patch"],function(t){ji.headers[t]=ee.merge(c1)});const f1=ee.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"]),h1=e=>{const t={};let n,i,o;return e&&e.split(`
|
|
99
|
+
*/(function(e){const t=Vo,n=Nu,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 _=new a(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,a.prototype),Object.setPrototypeOf(_,p),_.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 y(_){if(_>o)throw new RangeError('The value "'+_+'" is invalid for option "size"');const p=new a(_);return Object.setPrototypeOf(p,g.prototype),p}function g(_,p,b){if(typeof _=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(_)}return d(_,p,b)}g.poolSize=8192;function d(_,p,b){if(typeof _=="string")return A(_,p);if(u.isView(_))return R(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(it(_,u)||_&&it(_.buffer,u)||typeof l<"u"&&(it(_,l)||_&&it(_.buffer,l)))return L(_,p,b);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=_.valueOf&&_.valueOf();if(P!=null&&P!==_)return g.from(P,p,b);const V=T(_);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return g.from(_[Symbol.toPrimitive]("string"),p,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}g.from=function(_,p,b){return d(_,p,b)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function v(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function k(_,p,b){return v(_),_<=0?y(_):p!==void 0?typeof b=="string"?y(_).fill(p,b):y(_).fill(p):y(_)}g.alloc=function(_,p,b){return k(_,p,b)};function E(_){return v(_),y(_<0?0:x(_)|0)}g.allocUnsafe=function(_){return E(_)},g.allocUnsafeSlow=function(_){return E(_)};function A(_,p){if((typeof p!="string"||p==="")&&(p="utf8"),!g.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const b=O(_,p)|0;let P=y(b);const V=P.write(_,p);return V!==b&&(P=P.slice(0,V)),P}function w(_){const p=_.length<0?0:x(_.length)|0,b=y(p);for(let P=0;P<p;P+=1)b[P]=_[P]&255;return b}function R(_){if(it(_,a)){const p=new a(_);return L(p.buffer,p.byteOffset,p.byteLength)}return w(_)}function L(_,p,b){if(p<0||_.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<p+(b||0))throw new RangeError('"length" is outside of buffer bounds');let P;return p===void 0&&b===void 0?P=new a(_):b===void 0?P=new a(_,p):P=new a(_,p,b),Object.setPrototypeOf(P,g.prototype),P}function T(_){if(g.isBuffer(_)){const p=x(_.length)|0,b=y(p);return b.length===0||_.copy(b,0,0,p),b}if(_.length!==void 0)return typeof _.length!="number"||Mt(_.length)?y(0):w(_);if(_.type==="Buffer"&&Array.isArray(_.data))return w(_.data)}function x(_){if(_>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return _|0}function I(_){return+_!=_&&(_=0),g.alloc(+_)}g.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==g.prototype},g.compare=function(p,b){if(it(p,a)&&(p=g.from(p,p.offset,p.byteLength)),it(b,a)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(p)||!g.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===b)return 0;let P=p.length,V=b.length;for(let z=0,X=Math.min(P,V);z<X;++z)if(p[z]!==b[z]){P=p[z],V=b[z];break}return P<V?-1:V<P?1:0},g.isEncoding=function(p){switch(String(p).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(p,b){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return g.alloc(0);let P;if(b===void 0)for(b=0,P=0;P<p.length;++P)b+=p[P].length;const V=g.allocUnsafe(b);let z=0;for(P=0;P<p.length;++P){let X=p[P];if(it(X,a))z+X.length>V.length?(g.isBuffer(X)||(X=g.from(X)),X.copy(V,z)):a.prototype.set.call(V,X,z);else if(g.isBuffer(X))X.copy(V,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=X.length}return V};function O(_,p){if(g.isBuffer(_))return _.length;if(u.isView(_)||it(_,u))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const b=_.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&b===0)return 0;let V=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return ht(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Qe(_).length;default:if(V)return P?-1:ht(_).length;p=(""+p).toLowerCase(),V=!0}}g.byteLength=O;function D(_,p,b){let P=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,p>>>=0,b<=p))return"";for(_||(_="utf8");;)switch(_){case"hex":return wt(this,p,b);case"utf8":case"utf-8":return Ie(this,p,b);case"ascii":return Xe(this,p,b);case"latin1":case"binary":return Ee(this,p,b);case"base64":return Re(this,p,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,p,b);default:if(P)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),P=!0}}g.prototype._isBuffer=!0;function K(_,p,b){const P=_[p];_[p]=_[b],_[b]=P}g.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<p;b+=2)K(this,b,b+1);return this},g.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<p;b+=4)K(this,b,b+3),K(this,b+1,b+2);return this},g.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<p;b+=8)K(this,b,b+7),K(this,b+1,b+6),K(this,b+2,b+5),K(this,b+3,b+4);return this},g.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Ie(this,0,p):D.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(p){if(!g.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:g.compare(this,p)===0},g.prototype.inspect=function(){let p="";const b=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(p+=" ... "),"<Buffer "+p+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(p,b,P,V,z){if(it(p,a)&&(p=g.from(p,p.offset,p.byteLength)),!g.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(b===void 0&&(b=0),P===void 0&&(P=p?p.length:0),V===void 0&&(V=0),z===void 0&&(z=this.length),b<0||P>p.length||V<0||z>this.length)throw new RangeError("out of range index");if(V>=z&&b>=P)return 0;if(V>=z)return-1;if(b>=P)return 1;if(b>>>=0,P>>>=0,V>>>=0,z>>>=0,this===p)return 0;let X=z-V,$e=P-b;const dt=Math.min(X,$e),ut=this.slice(V,z),pt=p.slice(b,P);for(let st=0;st<dt;++st)if(ut[st]!==pt[st]){X=ut[st],$e=pt[st];break}return X<$e?-1:$e<X?1:0};function ie(_,p,b,P,V){if(_.length===0)return-1;if(typeof b=="string"?(P=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Mt(b)&&(b=V?0:_.length-1),b<0&&(b=_.length+b),b>=_.length){if(V)return-1;b=_.length-1}else if(b<0)if(V)b=0;else return-1;if(typeof p=="string"&&(p=g.from(p,P)),g.isBuffer(p))return p.length===0?-1:ce(_,p,b,P,V);if(typeof p=="number")return p=p&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(_,p,b):a.prototype.lastIndexOf.call(_,p,b):ce(_,[p],b,P,V);throw new TypeError("val must be string, number or Buffer")}function ce(_,p,b,P,V){let z=1,X=_.length,$e=p.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(_.length<2||p.length<2)return-1;z=2,X/=2,$e/=2,b/=2}function dt(pt,st){return z===1?pt[st]:pt.readUInt16BE(st*z)}let ut;if(V){let pt=-1;for(ut=b;ut<X;ut++)if(dt(_,ut)===dt(p,pt===-1?0:ut-pt)){if(pt===-1&&(pt=ut),ut-pt+1===$e)return pt*z}else pt!==-1&&(ut-=ut-pt),pt=-1}else for(b+$e>X&&(b=X-$e),ut=b;ut>=0;ut--){let pt=!0;for(let st=0;st<$e;st++)if(dt(_,ut+st)!==dt(p,st)){pt=!1;break}if(pt)return ut}return-1}g.prototype.includes=function(p,b,P){return this.indexOf(p,b,P)!==-1},g.prototype.indexOf=function(p,b,P){return ie(this,p,b,P,!0)},g.prototype.lastIndexOf=function(p,b,P){return ie(this,p,b,P,!1)};function fe(_,p,b,P){b=Number(b)||0;const V=_.length-b;P?(P=Number(P),P>V&&(P=V)):P=V;const z=p.length;P>z/2&&(P=z/2);let X;for(X=0;X<P;++X){const $e=parseInt(p.substr(X*2,2),16);if(Mt($e))return X;_[b+X]=$e}return X}function ye(_,p,b,P){return St(ht(p,_.length-b),_,b,P)}function we(_,p,b,P){return St(Et(p),_,b,P)}function ge(_,p,b,P){return St(Qe(p),_,b,P)}function he(_,p,b,P){return St(de(p,_.length-b),_,b,P)}g.prototype.write=function(p,b,P,V){if(b===void 0)V="utf8",P=this.length,b=0;else if(P===void 0&&typeof b=="string")V=b,P=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(P)?(P=P>>>0,V===void 0&&(V="utf8")):(V=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-b;if((P===void 0||P>z)&&(P=z),p.length>0&&(P<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let X=!1;for(;;)switch(V){case"hex":return fe(this,p,b,P);case"utf8":case"utf-8":return ye(this,p,b,P);case"ascii":case"latin1":case"binary":return we(this,p,b,P);case"base64":return ge(this,p,b,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,p,b,P);default:if(X)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),X=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Re(_,p,b){return p===0&&b===_.length?t.fromByteArray(_):t.fromByteArray(_.slice(p,b))}function Ie(_,p,b){b=Math.min(_.length,b);const P=[];let V=p;for(;V<b;){const z=_[V];let X=null,$e=z>239?4:z>223?3:z>191?2:1;if(V+$e<=b){let dt,ut,pt,st;switch($e){case 1:z<128&&(X=z);break;case 2:dt=_[V+1],(dt&192)===128&&(st=(z&31)<<6|dt&63,st>127&&(X=st));break;case 3:dt=_[V+1],ut=_[V+2],(dt&192)===128&&(ut&192)===128&&(st=(z&15)<<12|(dt&63)<<6|ut&63,st>2047&&(st<55296||st>57343)&&(X=st));break;case 4:dt=_[V+1],ut=_[V+2],pt=_[V+3],(dt&192)===128&&(ut&192)===128&&(pt&192)===128&&(st=(z&15)<<18|(dt&63)<<12|(ut&63)<<6|pt&63,st>65535&&st<1114112&&(X=st))}}X===null?(X=65533,$e=1):X>65535&&(X-=65536,P.push(X>>>10&1023|55296),X=56320|X&1023),P.push(X),V+=$e}return We(P)}const Te=4096;function We(_){const p=_.length;if(p<=Te)return String.fromCharCode.apply(String,_);let b="",P=0;for(;P<p;)b+=String.fromCharCode.apply(String,_.slice(P,P+=Te));return b}function Xe(_,p,b){let P="";b=Math.min(_.length,b);for(let V=p;V<b;++V)P+=String.fromCharCode(_[V]&127);return P}function Ee(_,p,b){let P="";b=Math.min(_.length,b);for(let V=p;V<b;++V)P+=String.fromCharCode(_[V]);return P}function wt(_,p,b){const P=_.length;(!p||p<0)&&(p=0),(!b||b<0||b>P)&&(b=P);let V="";for(let z=p;z<b;++z)V+=ke[_[z]];return V}function G(_,p,b){const P=_.slice(p,b);let V="";for(let z=0;z<P.length-1;z+=2)V+=String.fromCharCode(P[z]+P[z+1]*256);return V}g.prototype.slice=function(p,b){const P=this.length;p=~~p,b=b===void 0?P:~~b,p<0?(p+=P,p<0&&(p=0)):p>P&&(p=P),b<0?(b+=P,b<0&&(b=0)):b>P&&(b=P),b<p&&(b=p);const V=this.subarray(p,b);return Object.setPrototypeOf(V,g.prototype),V};function Y(_,p,b){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+p>b)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(p,b,P){p=p>>>0,b=b>>>0,P||Y(p,b,this.length);let V=this[p],z=1,X=0;for(;++X<b&&(z*=256);)V+=this[p+X]*z;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(p,b,P){p=p>>>0,b=b>>>0,P||Y(p,b,this.length);let V=this[p+--b],z=1;for(;b>0&&(z*=256);)V+=this[p+--b]*z;return V},g.prototype.readUint8=g.prototype.readUInt8=function(p,b){return p=p>>>0,b||Y(p,1,this.length),this[p]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(p,b){return p=p>>>0,b||Y(p,2,this.length),this[p]|this[p+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(p,b){return p=p>>>0,b||Y(p,2,this.length),this[p]<<8|this[p+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},g.prototype.readBigUInt64LE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],P=this[p+7];(b===void 0||P===void 0)&&Ce(p,this.length-8);const V=b+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,z=this[++p]+this[++p]*2**8+this[++p]*2**16+P*2**24;return BigInt(V)+(BigInt(z)<<BigInt(32))}),g.prototype.readBigUInt64BE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],P=this[p+7];(b===void 0||P===void 0)&&Ce(p,this.length-8);const V=b*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],z=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+P;return(BigInt(V)<<BigInt(32))+BigInt(z)}),g.prototype.readIntLE=function(p,b,P){p=p>>>0,b=b>>>0,P||Y(p,b,this.length);let V=this[p],z=1,X=0;for(;++X<b&&(z*=256);)V+=this[p+X]*z;return z*=128,V>=z&&(V-=Math.pow(2,8*b)),V},g.prototype.readIntBE=function(p,b,P){p=p>>>0,b=b>>>0,P||Y(p,b,this.length);let V=b,z=1,X=this[p+--V];for(;V>0&&(z*=256);)X+=this[p+--V]*z;return z*=128,X>=z&&(X-=Math.pow(2,8*b)),X},g.prototype.readInt8=function(p,b){return p=p>>>0,b||Y(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},g.prototype.readInt16LE=function(p,b){p=p>>>0,b||Y(p,2,this.length);const P=this[p]|this[p+1]<<8;return P&32768?P|4294901760:P},g.prototype.readInt16BE=function(p,b){p=p>>>0,b||Y(p,2,this.length);const P=this[p+1]|this[p]<<8;return P&32768?P|4294901760:P},g.prototype.readInt32LE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},g.prototype.readInt32BE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},g.prototype.readBigInt64LE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],P=this[p+7];(b===void 0||P===void 0)&&Ce(p,this.length-8);const V=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(P<<24);return(BigInt(V)<<BigInt(32))+BigInt(b+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),g.prototype.readBigInt64BE=Be(function(p){p=p>>>0,ve(p,"offset");const b=this[p],P=this[p+7];(b===void 0||P===void 0)&&Ce(p,this.length-8);const V=(b<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(V)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+P)}),g.prototype.readFloatLE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),n.read(this,p,!0,23,4)},g.prototype.readFloatBE=function(p,b){return p=p>>>0,b||Y(p,4,this.length),n.read(this,p,!1,23,4)},g.prototype.readDoubleLE=function(p,b){return p=p>>>0,b||Y(p,8,this.length),n.read(this,p,!0,52,8)},g.prototype.readDoubleBE=function(p,b){return p=p>>>0,b||Y(p,8,this.length),n.read(this,p,!1,52,8)};function oe(_,p,b,P,V,z){if(!g.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>V||p<z)throw new RangeError('"value" argument is out of bounds');if(b+P>_.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(p,b,P,V){if(p=+p,b=b>>>0,P=P>>>0,!V){const $e=Math.pow(2,8*P)-1;oe(this,p,b,P,$e,0)}let z=1,X=0;for(this[b]=p&255;++X<P&&(z*=256);)this[b+X]=p/z&255;return b+P},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(p,b,P,V){if(p=+p,b=b>>>0,P=P>>>0,!V){const $e=Math.pow(2,8*P)-1;oe(this,p,b,P,$e,0)}let z=P-1,X=1;for(this[b+z]=p&255;--z>=0&&(X*=256);)this[b+z]=p/X&255;return b+P},g.prototype.writeUint8=g.prototype.writeUInt8=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,1,255,0),this[b]=p&255,b+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,2,65535,0),this[b]=p&255,this[b+1]=p>>>8,b+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,2,65535,0),this[b]=p>>>8,this[b+1]=p&255,b+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,4,4294967295,0),this[b+3]=p>>>24,this[b+2]=p>>>16,this[b+1]=p>>>8,this[b]=p&255,b+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,4,4294967295,0),this[b]=p>>>24,this[b+1]=p>>>16,this[b+2]=p>>>8,this[b+3]=p&255,b+4};function xe(_,p,b,P,V){Lt(p,P,V,_,b,7);let z=Number(p&BigInt(4294967295));_[b++]=z,z=z>>8,_[b++]=z,z=z>>8,_[b++]=z,z=z>>8,_[b++]=z;let X=Number(p>>BigInt(32)&BigInt(4294967295));return _[b++]=X,X=X>>8,_[b++]=X,X=X>>8,_[b++]=X,X=X>>8,_[b++]=X,b}function Ke(_,p,b,P,V){Lt(p,P,V,_,b,7);let z=Number(p&BigInt(4294967295));_[b+7]=z,z=z>>8,_[b+6]=z,z=z>>8,_[b+5]=z,z=z>>8,_[b+4]=z;let X=Number(p>>BigInt(32)&BigInt(4294967295));return _[b+3]=X,X=X>>8,_[b+2]=X,X=X>>8,_[b+1]=X,X=X>>8,_[b]=X,b+8}g.prototype.writeBigUInt64LE=Be(function(p,b=0){return xe(this,p,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Be(function(p,b=0){return Ke(this,p,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(p,b,P,V){if(p=+p,b=b>>>0,!V){const dt=Math.pow(2,8*P-1);oe(this,p,b,P,dt-1,-dt)}let z=0,X=1,$e=0;for(this[b]=p&255;++z<P&&(X*=256);)p<0&&$e===0&&this[b+z-1]!==0&&($e=1),this[b+z]=(p/X>>0)-$e&255;return b+P},g.prototype.writeIntBE=function(p,b,P,V){if(p=+p,b=b>>>0,!V){const dt=Math.pow(2,8*P-1);oe(this,p,b,P,dt-1,-dt)}let z=P-1,X=1,$e=0;for(this[b+z]=p&255;--z>=0&&(X*=256);)p<0&&$e===0&&this[b+z+1]!==0&&($e=1),this[b+z]=(p/X>>0)-$e&255;return b+P},g.prototype.writeInt8=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,1,127,-128),p<0&&(p=255+p+1),this[b]=p&255,b+1},g.prototype.writeInt16LE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,2,32767,-32768),this[b]=p&255,this[b+1]=p>>>8,b+2},g.prototype.writeInt16BE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,2,32767,-32768),this[b]=p>>>8,this[b+1]=p&255,b+2},g.prototype.writeInt32LE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,4,2147483647,-2147483648),this[b]=p&255,this[b+1]=p>>>8,this[b+2]=p>>>16,this[b+3]=p>>>24,b+4},g.prototype.writeInt32BE=function(p,b,P){return p=+p,b=b>>>0,P||oe(this,p,b,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[b]=p>>>24,this[b+1]=p>>>16,this[b+2]=p>>>8,this[b+3]=p&255,b+4},g.prototype.writeBigInt64LE=Be(function(p,b=0){return xe(this,p,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Be(function(p,b=0){return Ke(this,p,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Se(_,p,b,P,V,z){if(b+P>_.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Fe(_,p,b,P,V){return p=+p,b=b>>>0,V||Se(_,p,b,4),n.write(_,p,b,P,23,4),b+4}g.prototype.writeFloatLE=function(p,b,P){return Fe(this,p,b,!0,P)},g.prototype.writeFloatBE=function(p,b,P){return Fe(this,p,b,!1,P)};function je(_,p,b,P,V){return p=+p,b=b>>>0,V||Se(_,p,b,8),n.write(_,p,b,P,52,8),b+8}g.prototype.writeDoubleLE=function(p,b,P){return je(this,p,b,!0,P)},g.prototype.writeDoubleBE=function(p,b,P){return je(this,p,b,!1,P)},g.prototype.copy=function(p,b,P,V){if(!g.isBuffer(p))throw new TypeError("argument should be a Buffer");if(P||(P=0),!V&&V!==0&&(V=this.length),b>=p.length&&(b=p.length),b||(b=0),V>0&&V<P&&(V=P),V===P||p.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=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),p.length-b<V-P&&(V=p.length-b+P);const z=V-P;return this===p&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,P,V):a.prototype.set.call(p,this.subarray(P,V),b),z},g.prototype.fill=function(p,b,P,V){if(typeof p=="string"){if(typeof b=="string"?(V=b,b=0,P=this.length):typeof P=="string"&&(V=P,P=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(p.length===1){const X=p.charCodeAt(0);(V==="utf8"&&X<128||V==="latin1")&&(p=X)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(b<0||this.length<b||this.length<P)throw new RangeError("Out of range index");if(P<=b)return this;b=b>>>0,P=P===void 0?this.length:P>>>0,p||(p=0);let z;if(typeof p=="number")for(z=b;z<P;++z)this[z]=p;else{const X=g.isBuffer(p)?p:g.from(p,V),$e=X.length;if($e===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(z=0;z<P-b;++z)this[z+b]=X[z%$e]}return this};const Le={};function Tt(_,p,b){Le[_]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,this.stack,delete this.name}get code(){return _}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(_,p){return`The "${_}" argument must be of type number. Received type ${typeof p}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(_,p,b){let P=`The value of "${_}" is out of range.`,V=b;return Number.isInteger(b)&&Math.abs(b)>2**32?V=sn(String(b)):typeof b=="bigint"&&(V=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(V=sn(V)),V+="n"),P+=` It must be ${p}. Received ${V}`,P},RangeError);function sn(_){let p="",b=_.length;const P=_[0]==="-"?1:0;for(;b>=P+4;b-=3)p=`_${_.slice(b-3,b)}${p}`;return`${_.slice(0,b)}${p}`}function Nt(_,p,b){ve(p,"offset"),(_[p]===void 0||_[p+b]===void 0)&&Ce(p,_.length-(b+1))}function Lt(_,p,b,P,V,z){if(_>b||_<p){const X=typeof p=="bigint"?"n":"";let $e;throw p===0||p===BigInt(0)?$e=`>= 0${X} and < 2${X} ** ${(z+1)*8}${X}`:$e=`>= -(2${X} ** ${(z+1)*8-1}${X}) and < 2 ** ${(z+1)*8-1}${X}`,new Le.ERR_OUT_OF_RANGE("value",$e,_)}Nt(P,V,z)}function ve(_,p){if(typeof _!="number")throw new Le.ERR_INVALID_ARG_TYPE(p,"number",_)}function Ce(_,p,b){throw Math.floor(_)!==_?(ve(_,b),new Le.ERR_OUT_OF_RANGE("offset","an integer",_)):p<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,_)}const qe=/[^+/0-9A-Za-z-_]/g;function kt(_){if(_=_.split("=")[0],_=_.trim().replace(qe,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function ht(_,p){p=p||1/0;let b;const P=_.length;let V=null;const z=[];for(let X=0;X<P;++X){if(b=_.charCodeAt(X),b>55295&&b<57344){if(!V){if(b>56319){(p-=3)>-1&&z.push(239,191,189);continue}else if(X+1===P){(p-=3)>-1&&z.push(239,191,189);continue}V=b;continue}if(b<56320){(p-=3)>-1&&z.push(239,191,189),V=b;continue}b=(V-55296<<10|b-56320)+65536}else V&&(p-=3)>-1&&z.push(239,191,189);if(V=null,b<128){if((p-=1)<0)break;z.push(b)}else if(b<2048){if((p-=2)<0)break;z.push(b>>6|192,b&63|128)}else if(b<65536){if((p-=3)<0)break;z.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((p-=4)<0)break;z.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return z}function Et(_){const p=[];for(let b=0;b<_.length;++b)p.push(_.charCodeAt(b)&255);return p}function de(_,p){let b,P,V;const z=[];for(let X=0;X<_.length&&!((p-=2)<0);++X)b=_.charCodeAt(X),P=b>>8,V=b%256,z.push(V),z.push(P);return z}function Qe(_){return t.toByteArray(kt(_))}function St(_,p,b,P){let V;for(V=0;V<P&&!(V+b>=p.length||V>=_.length);++V)p[V+b]=_[V];return V}function it(_,p){return _ instanceof p||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===p.name}function Mt(_){return _!==_}const ke=function(){const _="0123456789abcdef",p=new Array(256);for(let b=0;b<16;++b){const P=b*16;for(let V=0;V<16;++V)p[P+V]=_[b]+_[V]}return p}();function Be(_){return typeof BigInt>"u"?$t:_}function $t(){throw new Error("BigInt not supported")}})(Yf);const Ym=Yf.Buffer;function ft(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)}ee.inherits(ft,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:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Qf=ft.prototype,Zf={};["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=>{Zf[e]={value:e}}),Object.defineProperties(ft,Zf),Object.defineProperty(Qf,"isAxiosError",{value:!0}),ft.from=(e,t,n,i,o,a)=>{const u=Object.create(Qf);return ee.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ft.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const Xm=null;function Lu(e){return ee.isPlainObject(e)||ee.isArray(e)}function eh(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function th(e,t,n){return e?e.concat(t).map(function(o,a){return o=eh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Qm(e){return ee.isArray(e)&&!e.some(Lu)}const Zm=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function qo(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,w){return!ee.isUndefined(w[A])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function y(E){if(E===null)return"";if(ee.isDate(E))return E.toISOString();if(!f&&ee.isBlob(E))throw new ft("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(E)||ee.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Ym.from(E):E}function g(E,A,w){let R=E;if(E&&!w&&typeof E=="object"){if(ee.endsWith(A,"{}"))A=i?A:A.slice(0,-2),E=JSON.stringify(E);else if(ee.isArray(E)&&Qm(E)||(ee.isFileList(E)||ee.endsWith(A,"[]"))&&(R=ee.toArray(E)))return A=eh(A),R.forEach(function(T,x){!(ee.isUndefined(T)||T===null)&&t.append(u===!0?th([A],x,a):u===null?A:A+"[]",y(T))}),!1}return Lu(E)?!0:(t.append(th(w,A,a),y(E)),!1)}const d=[],v=Object.assign(Zm,{defaultVisitor:g,convertValue:y,isVisitable:Lu});function k(E,A){if(!ee.isUndefined(E)){if(d.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));d.push(E),ee.forEach(E,function(R,L){(!(ee.isUndefined(R)||R===null)&&o.call(t,R,ee.isString(L)?L.trim():L,A,v))===!0&&k(R,A?A.concat(L):[L])}),d.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return k(e),t}function nh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function $u(e,t){this._pairs=[],e&&qo(e,this,t)}const rh=$u.prototype;rh.append=function(t,n){this._pairs.push([t,n])},rh.toString=function(t){const n=t?function(i){return t.call(this,i,nh)}:nh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function e1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ih(e,t,n){if(!t)return e;const i=n&&n.encode||e1,o=n&&n.serialize;let a;if(o?a=o(t,n):a=ee.isURLSearchParams(t)?t.toString():new $u(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class sh{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){ee.forEach(this.handlers,function(i){i!==null&&t(i)})}}const oh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},t1=typeof URLSearchParams<"u"?URLSearchParams:$u,n1=typeof FormData<"u"?FormData:null,r1=typeof Blob<"u"?Blob:null,i1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),s1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hr={classes:{URLSearchParams:t1,FormData:n1,Blob:r1},isStandardBrowserEnv:i1,isStandardBrowserWebWorkerEnv:s1,protocols:["http","https","file","blob","url","data"]};function o1(e,t){return qo(e,new hr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return hr.isNode&&ee.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function a1(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function u1(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 ah(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&ee.isArray(o)?o.length:u,f?(ee.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!ee.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&ee.isArray(o[u])&&(o[u]=u1(o[u])),!l)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(i,o)=>{t(a1(i),o,n,0)}),n}return null}const c1={"Content-Type":void 0};function l1(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const ji={transitional:oh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=ee.isObject(t);if(a&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o&&o?JSON.stringify(ah(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.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 o1(t,this.formSerializer).toString();if((l=ee.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return qo(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),l1(t)):t}],transformResponse:[function(t){const n=this.transitional||ji.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&ee.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"?ft.from(l,ft.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:hr.classes.FormData,Blob:hr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ee.forEach(["delete","get","head"],function(t){ji.headers[t]={}}),ee.forEach(["post","put","patch"],function(t){ji.headers[t]=ee.merge(c1)});const f1=ee.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"]),h1=e=>{const t={};let n,i,o;return e&&e.split(`
|
|
100
100
|
`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&f1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},uh=Symbol("internals");function Os(e){return e&&String(e).trim().toLowerCase()}function Wo(e){return e===!1||e==null?e:ee.isArray(e)?e.map(Wo):String(e)}function p1(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 d1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ju(e,t,n,i,o){if(ee.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(i))return t.indexOf(i)!==-1;if(ee.isRegExp(i))return i.test(t)}}function g1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function y1(e,t){const n=ee.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,y){const g=Os(f);if(!g)throw new Error("header name must be a non-empty string");const d=ee.findKey(o,g);(!d||o[d]===void 0||y===!0||y===void 0&&o[d]!==!1)&&(o[d||f]=Wo(l))}const u=(l,f)=>ee.forEach(l,(y,g)=>a(y,g,f));return ee.isPlainObject(t)||t instanceof this.constructor?u(t,n):ee.isString(t)&&(t=t.trim())&&!d1(t)?u(h1(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Os(t),t){const i=ee.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return p1(o);if(ee.isFunction(n))return n.call(this,o,i);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Os(t),t){const i=ee.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||ju(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Os(u),u){const l=ee.findKey(i,u);l&&(!n||ju(i,i[l],l,n))&&(delete i[l],o=!0)}}return ee.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||ju(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return ee.forEach(this,(o,a)=>{const u=ee.findKey(i,a);if(u){n[u]=Wo(o),delete n[a];return}const l=t?g1(a):String(a).trim();l!==a&&delete n[a],n[l]=Wo(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&ee.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[uh]=this[uh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Os(u);i[l]||(y1(o,u),i[l]=!0)}return ee.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.freezeMethods($n.prototype),ee.freezeMethods($n);function Mu(e,t){const n=this||ji,i=t||n,o=$n.from(i.headers);let a=i.data;return ee.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function ch(e){return!!(e&&e.__CANCEL__)}function Is(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(Is,ft,{__CANCEL__:!0});function m1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const b1=hr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),ee.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),ee.isString(a)&&f.push("path="+a),ee.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 w1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function v1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function lh(e,t){return e&&!w1(t)?v1(e,t):t}const A1=hr.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=ee.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function E1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function S1(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 y=Date.now(),g=i[a];u||(u=y),n[o]=f,i[o]=y;let d=a,v=0;for(;d!==o;)v+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),y-u<t)return;const k=g&&y-g;return k?Math.round(v*1e3/k):void 0}}function fh(e,t){let n=0;const i=S1(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),y=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&&y?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Ko={http:Xm,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)}ee.isFormData(o)&&(hr.isStandardBrowserEnv||hr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let y=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(k+":"+A))}const g=lh(e.baseURL,e.url);y.open(e.method.toUpperCase(),ih(g,e.params,e.paramsSerializer),!0),y.timeout=e.timeout;function d(){if(!y)return;const k=$n.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};m1(function(P){n(P),f()},function(P){i(P),f()},E),y=null}if("onloadend"in y?y.onloadend=d:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(d)},y.onabort=function(){y&&(i(new ft("Request aborted",ft.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new ft("Network Error",ft.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let A=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||oh;e.timeoutErrorMessage&&(A=e.timeoutErrorMessage),i(new ft(A,E.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,y)),y=null},hr.isStandardBrowserEnv){const k=(e.withCredentials||A1(g))&&e.xsrfCookieName&&b1.read(e.xsrfCookieName);k&&a.set(e.xsrfHeaderName,k)}o===void 0&&a.setContentType(null),"setRequestHeader"in y&&ee.forEach(a.toJSON(),function(A,E){y.setRequestHeader(E,A)}),ee.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),u&&u!=="json"&&(y.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&y.addEventListener("progress",fh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",fh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=k=>{y&&(i(!k||k.type?new Is(null,e,y):k),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=E1(g);if(v&&hr.protocols.indexOf(v)===-1){i(new ft("Unsupported protocol "+v+":",ft.ERR_BAD_REQUEST,e));return}y.send(o||null)})}};ee.forEach(Ko,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const x1={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=ee.isString(n)?Ko[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ft(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ee.hasOwnProp(Ko,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ee.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Ko};function Uu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Is(null,e)}function hh(e){return Uu(e),e.headers=$n.from(e.headers),e.data=Mu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),x1.getAdapter(e.adapter||ji.adapter)(e).then(function(i){return Uu(e),i.data=Mu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return ch(i)||(Uu(e),i&&i.response&&(i.response.data=Mu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const ph=e=>e instanceof $n?e.toJSON():e;function Mi(e,t){t=t||{};const n={};function i(y,g,d){return ee.isPlainObject(y)&&ee.isPlainObject(g)?ee.merge.call({caseless:d},y,g):ee.isPlainObject(g)?ee.merge({},g):ee.isArray(g)?g.slice():g}function o(y,g,d){if(ee.isUndefined(g)){if(!ee.isUndefined(y))return i(void 0,y,d)}else return i(y,g,d)}function a(y,g){if(!ee.isUndefined(g))return i(void 0,g)}function u(y,g){if(ee.isUndefined(g)){if(!ee.isUndefined(y))return i(void 0,y)}else return i(void 0,g)}function l(y,g,d){if(d in t)return i(y,g);if(d in e)return i(void 0,y)}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:(y,g)=>o(ph(y),ph(g),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(g){const d=f[g]||o,v=d(e[g],t[g],g);ee.isUndefined(v)&&d!==l||(n[g]=v)}),n}const dh="1.4.0",Vu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const gh={};Vu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+dh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ft(o(u," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!gh[u]&&(gh[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 C1(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.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 ft("option "+a+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const qu={assertOptions:C1,validators:Vu},jr=qu.validators;let ui=class{constructor(t){this.defaults=t,this.interceptors={request:new sh,response:new sh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&qu.assertOptions(i,{silentJSONParsing:jr.transitional(jr.boolean),forcedJSONParsing:jr.transitional(jr.boolean),clarifyTimeoutError:jr.transitional(jr.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:qu.assertOptions(o,{encode:jr.function,serialize:jr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&ee.merge(a.common,a[n.method]),u&&ee.forEach(["delete","get","head","post","put","patch","common"],A=>{delete a[A]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const y=[];this.interceptors.response.forEach(function(E){y.push(E.fulfilled,E.rejected)});let g,d=0,v;if(!f){const A=[hh.bind(this),void 0];for(A.unshift.apply(A,l),A.push.apply(A,y),v=A.length,g=Promise.resolve(n);d<v;)g=g.then(A[d++],A[d++]);return g}v=l.length;let k=n;for(d=0;d<v;){const A=l[d++],E=l[d++];try{k=A(k)}catch(w){E.call(this,w);break}}try{g=hh.call(this,k)}catch(A){return Promise.reject(A)}for(d=0,v=y.length;d<v;)g=g.then(y[d++],y[d++]);return g}getUri(t){t=Mi(this.defaults,t);const n=lh(t.baseURL,t.url);return ih(n,t.params,t.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(t){ui.prototype[t]=function(n,i){return this.request(Mi(i||{},{method:t,url:n,data:(i||{}).data}))}}),ee.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Mi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}ui.prototype[t]=n(),ui.prototype[t+"Form"]=n(!0)});let _1=class Ky{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 Is(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 Ky(function(o){t=o}),cancel:t}}};function T1(e){return function(n){return e.apply(null,n)}}function k1(e){return ee.isObject(e)&&e.isAxiosError===!0}const Wu={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(Wu).forEach(([e,t])=>{Wu[t]=e});function yh(e){const t=new ui(e),n=Mf(ui.prototype.request,t);return ee.extend(n,ui.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return yh(Mi(e,o))},n}const rt=yh(ji);rt.Axios=ui,rt.CanceledError=Is,rt.CancelToken=_1,rt.isCancel=ch,rt.VERSION=dh,rt.toFormData=qo,rt.AxiosError=ft,rt.Cancel=rt.CanceledError,rt.all=function(t){return Promise.all(t)},rt.spread=T1,rt.isAxiosError=k1,rt.mergeConfig=Mi,rt.AxiosHeaders=$n,rt.formToJSON=e=>ah(ee.isHTMLForm(e)?new FormData(e):e),rt.HttpStatusCode=Wu,rt.default=rt;const{Axios:NT,AxiosError:LT,CanceledError:$T,isCancel:jT,CancelToken:MT,VERSION:UT,all:VT,Cancel:qT,isAxiosError:mh,spread:WT,toFormData:KT,AxiosHeaders:HT,HttpStatusCode:zT,formToJSON:GT,mergeConfig:JT}=rt,Ku=async({endpoint:e,body:t})=>rt.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Hu=async({endpoint:e,body:t})=>rt.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),zu=async({endpoint:e})=>rt.delete(e),O1=({name:e,onClose:t,endpoint:n})=>{const[i,o]=re.useState(),[a,u]=re.useState(!1),l=()=>{u(!0),o(void 0),zu({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return $.jsx(ue.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&&$.jsx(ue.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},I1=({data:e,onClose:t})=>{const[n,i]=re.useState(),[o,a]=re.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>zu({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return $.jsx(ue.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&&$.jsx(ue.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},bh=async({uri:e})=>rt.get(e),vn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>Cn.useQuery({queryKey:t,queryFn:async()=>(await bh({uri:e})).data,refetchInterval:n!==void 0?n:5e3,enabled:i}),qt=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),F1=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?$.jsx(wr.Link,{to:qt({template:o,replaceValues:t}),children:qt({template:i,replaceValues:t})}):qt({template:i,replaceValues:t})})),wh=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:qt({template:o,replaceValues:t}),breadcrumbItems:F1({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>wr.matchPath(o,n)),Gu={HeightDiv:Ct.div`
|
|
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[uh]=this[uh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Os(u);i[l]||(y1(o,u),i[l]=!0)}return ee.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.freezeMethods($n.prototype),ee.freezeMethods($n);function Mu(e,t){const n=this||ji,i=t||n,o=$n.from(i.headers);let a=i.data;return ee.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function ch(e){return!!(e&&e.__CANCEL__)}function Is(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(Is,ft,{__CANCEL__:!0});function m1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const b1=hr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),ee.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),ee.isString(a)&&f.push("path="+a),ee.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 w1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function v1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function lh(e,t){return e&&!w1(t)?v1(e,t):t}const A1=hr.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=ee.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function E1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function S1(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 y=Date.now(),g=i[a];u||(u=y),n[o]=f,i[o]=y;let d=a,v=0;for(;d!==o;)v+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),y-u<t)return;const k=g&&y-g;return k?Math.round(v*1e3/k):void 0}}function fh(e,t){let n=0;const i=S1(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),y=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&&y?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Ko={http:Xm,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)}ee.isFormData(o)&&(hr.isStandardBrowserEnv||hr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let y=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(k+":"+E))}const g=lh(e.baseURL,e.url);y.open(e.method.toUpperCase(),ih(g,e.params,e.paramsSerializer),!0),y.timeout=e.timeout;function d(){if(!y)return;const k=$n.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};m1(function(R){n(R),f()},function(R){i(R),f()},A),y=null}if("onloadend"in y?y.onloadend=d:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(d)},y.onabort=function(){y&&(i(new ft("Request aborted",ft.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new ft("Network Error",ft.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||oh;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),i(new ft(E,A.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,y)),y=null},hr.isStandardBrowserEnv){const k=(e.withCredentials||A1(g))&&e.xsrfCookieName&&b1.read(e.xsrfCookieName);k&&a.set(e.xsrfHeaderName,k)}o===void 0&&a.setContentType(null),"setRequestHeader"in y&&ee.forEach(a.toJSON(),function(E,A){y.setRequestHeader(A,E)}),ee.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),u&&u!=="json"&&(y.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&y.addEventListener("progress",fh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",fh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=k=>{y&&(i(!k||k.type?new Is(null,e,y):k),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=E1(g);if(v&&hr.protocols.indexOf(v)===-1){i(new ft("Unsupported protocol "+v+":",ft.ERR_BAD_REQUEST,e));return}y.send(o||null)})}};ee.forEach(Ko,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const x1={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=ee.isString(n)?Ko[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ft(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ee.hasOwnProp(Ko,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ee.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Ko};function Uu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Is(null,e)}function hh(e){return Uu(e),e.headers=$n.from(e.headers),e.data=Mu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),x1.getAdapter(e.adapter||ji.adapter)(e).then(function(i){return Uu(e),i.data=Mu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return ch(i)||(Uu(e),i&&i.response&&(i.response.data=Mu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const ph=e=>e instanceof $n?e.toJSON():e;function Mi(e,t){t=t||{};const n={};function i(y,g,d){return ee.isPlainObject(y)&&ee.isPlainObject(g)?ee.merge.call({caseless:d},y,g):ee.isPlainObject(g)?ee.merge({},g):ee.isArray(g)?g.slice():g}function o(y,g,d){if(ee.isUndefined(g)){if(!ee.isUndefined(y))return i(void 0,y,d)}else return i(y,g,d)}function a(y,g){if(!ee.isUndefined(g))return i(void 0,g)}function u(y,g){if(ee.isUndefined(g)){if(!ee.isUndefined(y))return i(void 0,y)}else return i(void 0,g)}function l(y,g,d){if(d in t)return i(y,g);if(d in e)return i(void 0,y)}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:(y,g)=>o(ph(y),ph(g),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(g){const d=f[g]||o,v=d(e[g],t[g],g);ee.isUndefined(v)&&d!==l||(n[g]=v)}),n}const dh="1.4.0",Vu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const gh={};Vu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+dh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ft(o(u," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!gh[u]&&(gh[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 C1(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.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 ft("option "+a+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const qu={assertOptions:C1,validators:Vu},jr=qu.validators;let ui=class{constructor(t){this.defaults=t,this.interceptors={request:new sh,response:new sh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&qu.assertOptions(i,{silentJSONParsing:jr.transitional(jr.boolean),forcedJSONParsing:jr.transitional(jr.boolean),clarifyTimeoutError:jr.transitional(jr.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:qu.assertOptions(o,{encode:jr.function,serialize:jr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&ee.merge(a.common,a[n.method]),u&&ee.forEach(["delete","get","head","post","put","patch","common"],E=>{delete a[E]}),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 y=[];this.interceptors.response.forEach(function(A){y.push(A.fulfilled,A.rejected)});let g,d=0,v;if(!f){const E=[hh.bind(this),void 0];for(E.unshift.apply(E,l),E.push.apply(E,y),v=E.length,g=Promise.resolve(n);d<v;)g=g.then(E[d++],E[d++]);return g}v=l.length;let k=n;for(d=0;d<v;){const E=l[d++],A=l[d++];try{k=E(k)}catch(w){A.call(this,w);break}}try{g=hh.call(this,k)}catch(E){return Promise.reject(E)}for(d=0,v=y.length;d<v;)g=g.then(y[d++],y[d++]);return g}getUri(t){t=Mi(this.defaults,t);const n=lh(t.baseURL,t.url);return ih(n,t.params,t.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(t){ui.prototype[t]=function(n,i){return this.request(Mi(i||{},{method:t,url:n,data:(i||{}).data}))}}),ee.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Mi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}ui.prototype[t]=n(),ui.prototype[t+"Form"]=n(!0)});let _1=class Ky{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 Is(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 Ky(function(o){t=o}),cancel:t}}};function T1(e){return function(n){return e.apply(null,n)}}function k1(e){return ee.isObject(e)&&e.isAxiosError===!0}const Wu={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(Wu).forEach(([e,t])=>{Wu[t]=e});function yh(e){const t=new ui(e),n=Mf(ui.prototype.request,t);return ee.extend(n,ui.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return yh(Mi(e,o))},n}const rt=yh(ji);rt.Axios=ui,rt.CanceledError=Is,rt.CancelToken=_1,rt.isCancel=ch,rt.VERSION=dh,rt.toFormData=qo,rt.AxiosError=ft,rt.Cancel=rt.CanceledError,rt.all=function(t){return Promise.all(t)},rt.spread=T1,rt.isAxiosError=k1,rt.mergeConfig=Mi,rt.AxiosHeaders=$n,rt.formToJSON=e=>ah(ee.isHTMLForm(e)?new FormData(e):e),rt.HttpStatusCode=Wu,rt.default=rt;const{Axios:NT,AxiosError:LT,CanceledError:$T,isCancel:jT,CancelToken:MT,VERSION:UT,all:VT,Cancel:qT,isAxiosError:mh,spread:WT,toFormData:KT,AxiosHeaders:HT,HttpStatusCode:zT,formToJSON:GT,mergeConfig:JT}=rt,Ku=async({endpoint:e,body:t})=>rt.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Hu=async({endpoint:e,body:t})=>rt.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),zu=async({endpoint:e})=>rt.delete(e),O1=({name:e,onClose:t,endpoint:n})=>{const[i,o]=re.useState(),[a,u]=re.useState(!1),l=()=>{u(!0),o(void 0),zu({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return $.jsx(ue.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&&$.jsx(ue.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},I1=({data:e,onClose:t})=>{const[n,i]=re.useState(),[o,a]=re.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>zu({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return $.jsx(ue.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&&$.jsx(ue.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},bh=async({uri:e})=>rt.get(e),vn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>Cn.useQuery({queryKey:t,queryFn:async()=>(await bh({uri:e})).data,refetchInterval:n!==void 0?n:5e3,enabled:i}),qt=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),F1=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?$.jsx(wr.Link,{to:qt({template:o,replaceValues:t}),children:qt({template:i,replaceValues:t})}):qt({template:i,replaceValues:t})})),wh=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:qt({template:o,replaceValues:t}),breadcrumbItems:F1({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>wr.matchPath(o,n)),Gu={HeightDiv:Ct.div`
|
|
102
102
|
min-height: 22px;
|
|
103
103
|
width: 100%;
|
|
104
104
|
`},vh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=wh({data:i,replaceValues:t,pathname:n});return o?$.jsx(Gu.HeightDiv,{children:$.jsx(ue.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):$.jsx(Gu.HeightDiv,{})},B1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=vn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?$.jsx(Gu.HeightDiv,{children:$.jsx(ue.Spin,{})}):a?$.jsx(vh,{data:a,replaceValues:i,pathname:o}):null},Ah=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?qt({template:o,replaceValues:t}):void 0;return{key:n,label:u?$.jsx(wr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Ah({rawLinks:a,replaceValues:t}):void 0}}),D1=(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,y=l===f||l&&u&&l.includes(f)?u:[];let g=[];return"children"in a&&a.children&&(g=n(a.children,u)),[...y,...g]});return n(e,[])},Eh=({data:e,replaceValues:t,pathname:n})=>{const o=e.map(({pathToMatch:l,menuItems:f})=>({pathToMatch:qt({template:l,replaceValues:t}),menuItems:Ah({rawLinks:f,replaceValues:t})})).find(({pathToMatch:l})=>wr.matchPath(l,n));if(!o)return;const u=(o?.menuItems?D1(o?.menuItems,n):[]).map(l=>typeof l=="string"?l:String(l));return{...o,selectedKeys:u}},R1={CustomMenu:Ct(ue.Menu)`
|
|
@@ -130,9 +130,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
130
130
|
* Released under MIT license <https://lodash.com/license>
|
|
131
131
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
132
132
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
133
|
-
*/Ho.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__",y=500,g="__lodash_placeholder__",d=1,v=2,k=4,A=1,E=2,w=1,P=2,L=4,T=8,x=16,I=32,O=64,D=128,K=256,ie=512,ce=30,fe="...",ye=800,we=16,ge=1,he=2,Re=3,Ie=1/0,Te=9007199254740991,We=17976931348623157e292,Xe=NaN,Ee=4294967295,wt=Ee-1,G=Ee>>>1,Y=[["ary",D],["bind",w],["bindKey",P],["curry",T],["curryRight",x],["flip",ie],["partial",I],["partialRight",O],["rearg",K]],oe="[object Arguments]",xe="[object Array]",Ke="[object AsyncFunction]",Se="[object Boolean]",Fe="[object Date]",je="[object DOMException]",Le="[object Error]",Tt="[object Function]",sn="[object GeneratorFunction]",Nt="[object Map]",Lt="[object Number]",ve="[object Null]",Ce="[object Object]",qe="[object Promise]",kt="[object Proxy]",ht="[object RegExp]",Et="[object Set]",de="[object String]",Qe="[object Symbol]",St="[object Undefined]",it="[object WeakMap]",Mt="[object WeakSet]",ke="[object ArrayBuffer]",Be="[object DataView]",$t="[object Float32Array]",_="[object Float64Array]",p="[object Int8Array]",b="[object Int16Array]",R="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",X="[object Uint16Array]",$e="[object Uint32Array]",dt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,qr=/[&<>"']/g,yi=RegExp(st.source),rs=RegExp(qr.source),is=/<%-([\s\S]+?)%>/g,ss=/<%([\s\S]+?)%>/g,Wr=/<%=([\s\S]+?)%>/g,mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eo=/^\w*$/,to=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_r=/[\\^$.*+?()[\]{}|]/g,nr=RegExp(_r.source),Kr=/^\s+/,no=/\s/,ro=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,me=/[()=,{}\[\]\/\s]/,Oe=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,Bt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,rr=/['\n\r\u2028\u2029\\]/g,zt="\\ud800-\\udfff",bi="\\u0300-\\u036f",io="\\ufe20-\\ufe2f",so="\\u20d0-\\u20ff",wa=bi+io+so,va="\\u2700-\\u27bf",Aa="a-z\\xdf-\\xf6\\xf8-\\xff",$c="\\xac\\xb1\\xd7\\xf7",jc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mc="\\u2000-\\u206f",Uc=" \\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",kn="A-Z\\xc0-\\xd6\\xd8-\\xde",os="\\ufe0e\\ufe0f",oo=$c+jc+Mc+Uc,as="['’]",Vc="["+zt+"]",Hr="["+oo+"]",us="["+wa+"]",Ea="\\d+",Sa="["+va+"]",xa="["+Aa+"]",Ca="[^"+zt+oo+Ea+va+Aa+kn+"]",h="\\ud83c[\\udffb-\\udfff]",S="(?:"+us+"|"+h+")",N="[^"+zt+"]",q="(?:\\ud83c[\\udde6-\\uddff]){2}",Z="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+kn+"]",He="\\u200d",mt="(?:"+xa+"|"+Ca+")",tn="(?:"+pe+"|"+Ca+")",Gt="(?:"+as+"(?:d|ll|m|re|s|t|ve))?",Rd="(?:"+as+"(?:D|LL|M|RE|S|T|VE))?",Pd=S+"?",Nd="["+os+"]?",NA="(?:"+He+"(?:"+[N,q,Z].join("|")+")"+Nd+Pd+")*",LA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$A="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ld=Nd+Pd+NA,jA="(?:"+[Sa,q,Z].join("|")+")"+Ld,MA="(?:"+[N+us+"?",us,q,Z,Vc].join("|")+")",UA=RegExp(as,"g"),VA=RegExp(us,"g"),qc=RegExp(h+"(?="+h+")|"+MA+Ld,"g"),qA=RegExp([pe+"?"+xa+"+"+Gt+"(?="+[Hr,pe,"$"].join("|")+")",tn+"+"+Rd+"(?="+[Hr,pe+mt,"$"].join("|")+")",pe+"?"+mt+"+"+Gt,pe+"+"+Rd,$A,LA,Ea,jA].join("|"),"g"),WA=RegExp("["+He+zt+wa+os+"]"),KA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HA=["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"],zA=-1,Dt={};Dt[$t]=Dt[_]=Dt[p]=Dt[b]=Dt[R]=Dt[V]=Dt[z]=Dt[X]=Dt[$e]=!0,Dt[oe]=Dt[xe]=Dt[ke]=Dt[Se]=Dt[Be]=Dt[Fe]=Dt[Le]=Dt[Tt]=Dt[Nt]=Dt[Lt]=Dt[Ce]=Dt[ht]=Dt[Et]=Dt[de]=Dt[it]=!1;var Ot={};Ot[oe]=Ot[xe]=Ot[ke]=Ot[Be]=Ot[Se]=Ot[Fe]=Ot[$t]=Ot[_]=Ot[p]=Ot[b]=Ot[R]=Ot[Nt]=Ot[Lt]=Ot[Ce]=Ot[ht]=Ot[Et]=Ot[de]=Ot[Qe]=Ot[V]=Ot[z]=Ot[X]=Ot[$e]=!0,Ot[Le]=Ot[Tt]=Ot[it]=!1;var GA={À:"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"},JA={"&":"&","<":"<",">":">",'"':""","'":"'"},YA={"&":"&","<":"<",">":">",""":'"',"'":"'"},XA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QA=parseFloat,ZA=parseInt,$d=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,eE=typeof self=="object"&&self&&self.Object===Object&&self,un=$d||eE||Function("return this")(),Wc=t&&!t.nodeType&&t,wi=Wc&&!0&&e&&!e.nodeType&&e,jd=wi&&wi.exports===Wc,Kc=jd&&$d.process,qn=function(){try{var W=wi&&wi.require&&wi.require("util").types;return W||Kc&&Kc.binding&&Kc.binding("util")}catch{}}(),Md=qn&&qn.isArrayBuffer,Ud=qn&&qn.isDate,Vd=qn&&qn.isMap,qd=qn&&qn.isRegExp,Wd=qn&&qn.isSet,Kd=qn&&qn.isTypedArray;function On(W,Q,J){switch(J.length){case 0:return W.call(Q);case 1:return W.call(Q,J[0]);case 2:return W.call(Q,J[0],J[1]);case 3:return W.call(Q,J[0],J[1],J[2])}return W.apply(Q,J)}function tE(W,Q,J,Ae){for(var Me=-1,bt=W==null?0:W.length;++Me<bt;){var nn=W[Me];Q(Ae,nn,J(nn),W)}return Ae}function Wn(W,Q){for(var J=-1,Ae=W==null?0:W.length;++J<Ae&&Q(W[J],J,W)!==!1;);return W}function nE(W,Q){for(var J=W==null?0:W.length;J--&&Q(W[J],J,W)!==!1;);return W}function Hd(W,Q){for(var J=-1,Ae=W==null?0:W.length;++J<Ae;)if(!Q(W[J],J,W))return!1;return!0}function zr(W,Q){for(var J=-1,Ae=W==null?0:W.length,Me=0,bt=[];++J<Ae;){var nn=W[J];Q(nn,J,W)&&(bt[Me++]=nn)}return bt}function _a(W,Q){var J=W==null?0:W.length;return!!J&&cs(W,Q,0)>-1}function Hc(W,Q,J){for(var Ae=-1,Me=W==null?0:W.length;++Ae<Me;)if(J(Q,W[Ae]))return!0;return!1}function Pt(W,Q){for(var J=-1,Ae=W==null?0:W.length,Me=Array(Ae);++J<Ae;)Me[J]=Q(W[J],J,W);return Me}function Gr(W,Q){for(var J=-1,Ae=Q.length,Me=W.length;++J<Ae;)W[Me+J]=Q[J];return W}function zc(W,Q,J,Ae){var Me=-1,bt=W==null?0:W.length;for(Ae&&bt&&(J=W[++Me]);++Me<bt;)J=Q(J,W[Me],Me,W);return J}function rE(W,Q,J,Ae){var Me=W==null?0:W.length;for(Ae&&Me&&(J=W[--Me]);Me--;)J=Q(J,W[Me],Me,W);return J}function Gc(W,Q){for(var J=-1,Ae=W==null?0:W.length;++J<Ae;)if(Q(W[J],J,W))return!0;return!1}var iE=Jc("length");function sE(W){return W.split("")}function oE(W){return W.match(ae)||[]}function zd(W,Q,J){var Ae;return J(W,function(Me,bt,nn){if(Q(Me,bt,nn))return Ae=bt,!1}),Ae}function Ta(W,Q,J,Ae){for(var Me=W.length,bt=J+(Ae?1:-1);Ae?bt--:++bt<Me;)if(Q(W[bt],bt,W))return bt;return-1}function cs(W,Q,J){return Q===Q?bE(W,Q,J):Ta(W,Gd,J)}function aE(W,Q,J,Ae){for(var Me=J-1,bt=W.length;++Me<bt;)if(Ae(W[Me],Q))return Me;return-1}function Gd(W){return W!==W}function Jd(W,Q){var J=W==null?0:W.length;return J?Xc(W,Q)/J:Xe}function Jc(W){return function(Q){return Q==null?n:Q[W]}}function Yc(W){return function(Q){return W==null?n:W[Q]}}function Yd(W,Q,J,Ae,Me){return Me(W,function(bt,nn,xt){J=Ae?(Ae=!1,bt):Q(J,bt,nn,xt)}),J}function uE(W,Q){var J=W.length;for(W.sort(Q);J--;)W[J]=W[J].value;return W}function Xc(W,Q){for(var J,Ae=-1,Me=W.length;++Ae<Me;){var bt=Q(W[Ae]);bt!==n&&(J=J===n?bt:J+bt)}return J}function Qc(W,Q){for(var J=-1,Ae=Array(W);++J<W;)Ae[J]=Q(J);return Ae}function cE(W,Q){return Pt(Q,function(J){return[J,W[J]]})}function Xd(W){return W&&W.slice(0,tg(W)+1).replace(Kr,"")}function In(W){return function(Q){return W(Q)}}function Zc(W,Q){return Pt(Q,function(J){return W[J]})}function ao(W,Q){return W.has(Q)}function Qd(W,Q){for(var J=-1,Ae=W.length;++J<Ae&&cs(Q,W[J],0)>-1;);return J}function Zd(W,Q){for(var J=W.length;J--&&cs(Q,W[J],0)>-1;);return J}function lE(W,Q){for(var J=W.length,Ae=0;J--;)W[J]===Q&&++Ae;return Ae}var fE=Yc(GA),hE=Yc(JA);function pE(W){return"\\"+XA[W]}function dE(W,Q){return W==null?n:W[Q]}function ls(W){return WA.test(W)}function gE(W){return KA.test(W)}function yE(W){for(var Q,J=[];!(Q=W.next()).done;)J.push(Q.value);return J}function el(W){var Q=-1,J=Array(W.size);return W.forEach(function(Ae,Me){J[++Q]=[Me,Ae]}),J}function eg(W,Q){return function(J){return W(Q(J))}}function Jr(W,Q){for(var J=-1,Ae=W.length,Me=0,bt=[];++J<Ae;){var nn=W[J];(nn===Q||nn===g)&&(W[J]=g,bt[Me++]=J)}return bt}function ka(W){var Q=-1,J=Array(W.size);return W.forEach(function(Ae){J[++Q]=Ae}),J}function mE(W){var Q=-1,J=Array(W.size);return W.forEach(function(Ae){J[++Q]=[Ae,Ae]}),J}function bE(W,Q,J){for(var Ae=J-1,Me=W.length;++Ae<Me;)if(W[Ae]===Q)return Ae;return-1}function wE(W,Q,J){for(var Ae=J+1;Ae--;)if(W[Ae]===Q)return Ae;return Ae}function fs(W){return ls(W)?AE(W):iE(W)}function ir(W){return ls(W)?EE(W):sE(W)}function tg(W){for(var Q=W.length;Q--&&no.test(W.charAt(Q)););return Q}var vE=Yc(YA);function AE(W){for(var Q=qc.lastIndex=0;qc.test(W);)++Q;return Q}function EE(W){return W.match(qc)||[]}function SE(W){return W.match(qA)||[]}var xE=function W(Q){Q=Q==null?un:hs.defaults(un.Object(),Q,hs.pick(un,HA));var J=Q.Array,Ae=Q.Date,Me=Q.Error,bt=Q.Function,nn=Q.Math,xt=Q.Object,tl=Q.RegExp,CE=Q.String,Kn=Q.TypeError,Oa=J.prototype,_E=bt.prototype,ps=xt.prototype,Ia=Q["__core-js_shared__"],Fa=_E.toString,At=ps.hasOwnProperty,TE=0,ng=function(){var r=/[^.]+$/.exec(Ia&&Ia.keys&&Ia.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ba=ps.toString,kE=Fa.call(xt),OE=un._,IE=tl("^"+Fa.call(At).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Da=jd?Q.Buffer:n,Yr=Q.Symbol,Ra=Q.Uint8Array,rg=Da?Da.allocUnsafe:n,Pa=eg(xt.getPrototypeOf,xt),ig=xt.create,sg=ps.propertyIsEnumerable,Na=Oa.splice,og=Yr?Yr.isConcatSpreadable:n,uo=Yr?Yr.iterator:n,vi=Yr?Yr.toStringTag:n,La=function(){try{var r=Ci(xt,"defineProperty");return r({},"",{}),r}catch{}}(),FE=Q.clearTimeout!==un.clearTimeout&&Q.clearTimeout,BE=Ae&&Ae.now!==un.Date.now&&Ae.now,DE=Q.setTimeout!==un.setTimeout&&Q.setTimeout,$a=nn.ceil,ja=nn.floor,nl=xt.getOwnPropertySymbols,RE=Da?Da.isBuffer:n,ag=Q.isFinite,PE=Oa.join,NE=eg(xt.keys,xt),rn=nn.max,fn=nn.min,LE=Ae.now,$E=Q.parseInt,ug=nn.random,jE=Oa.reverse,rl=Ci(Q,"DataView"),co=Ci(Q,"Map"),il=Ci(Q,"Promise"),ds=Ci(Q,"Set"),lo=Ci(Q,"WeakMap"),fo=Ci(xt,"create"),Ma=lo&&new lo,gs={},ME=_i(rl),UE=_i(co),VE=_i(il),qE=_i(ds),WE=_i(lo),Ua=Yr?Yr.prototype:n,ho=Ua?Ua.valueOf:n,cg=Ua?Ua.toString:n;function F(r){if(Ut(r)&&!Ve(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(At.call(r,"__wrapped__"))return ly(r)}return new Hn(r)}var ys=function(){function r(){}return function(s){if(!jt(s))return{};if(ig)return ig(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Va(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}F.templateSettings={escape:is,evaluate:ss,interpolate:Wr,variable:"",imports:{_:F}},F.prototype=Va.prototype,F.prototype.constructor=F,Hn.prototype=ys(Va.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function KE(){var r=new ot(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 HE(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function zE(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ve(r),m=s<0,C=c?r.length:0,B=s2(0,C,this.__views__),j=B.start,U=B.end,H=U-j,te=m?U:j-1,ne=this.__iteratees__,se=ne.length,be=0,_e=fn(H,this.__takeCount__);if(!c||!m&&C==H&&_e==H)return Dg(r,this.__actions__);var Pe=[];e:for(;H--&&be<_e;){te+=s;for(var Ye=-1,Ne=r[te];++Ye<se;){var nt=ne[Ye],at=nt.iteratee,Dn=nt.type,bn=at(Ne);if(Dn==he)Ne=bn;else if(!bn){if(Dn==ge)continue e;break e}}Pe[be++]=Ne}return Pe}ot.prototype=ys(Va.prototype),ot.prototype.constructor=ot;function Ai(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 GE(){this.__data__=fo?fo(null):{},this.size=0}function JE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function YE(r){var s=this.__data__;if(fo){var c=s[r];return c===f?n:c}return At.call(s,r)?s[r]:n}function XE(r){var s=this.__data__;return fo?s[r]!==n:At.call(s,r)}function QE(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=fo&&s===n?f:s,this}Ai.prototype.clear=GE,Ai.prototype.delete=JE,Ai.prototype.get=YE,Ai.prototype.has=XE,Ai.prototype.set=QE;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 ZE(){this.__data__=[],this.size=0}function eS(r){var s=this.__data__,c=qa(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Na.call(s,c,1),--this.size,!0}function tS(r){var s=this.__data__,c=qa(s,r);return c<0?n:s[c][1]}function nS(r){return qa(this.__data__,r)>-1}function rS(r,s){var c=this.__data__,m=qa(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Tr.prototype.clear=ZE,Tr.prototype.delete=eS,Tr.prototype.get=tS,Tr.prototype.has=nS,Tr.prototype.set=rS;function kr(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 iS(){this.size=0,this.__data__={hash:new Ai,map:new(co||Tr),string:new Ai}}function sS(r){var s=tu(this,r).delete(r);return this.size-=s?1:0,s}function oS(r){return tu(this,r).get(r)}function aS(r){return tu(this,r).has(r)}function uS(r,s){var c=tu(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}kr.prototype.clear=iS,kr.prototype.delete=sS,kr.prototype.get=oS,kr.prototype.has=aS,kr.prototype.set=uS;function Ei(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new kr;++s<c;)this.add(r[s])}function cS(r){return this.__data__.set(r,f),this}function lS(r){return this.__data__.has(r)}Ei.prototype.add=Ei.prototype.push=cS,Ei.prototype.has=lS;function sr(r){var s=this.__data__=new Tr(r);this.size=s.size}function fS(){this.__data__=new Tr,this.size=0}function hS(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function pS(r){return this.__data__.get(r)}function dS(r){return this.__data__.has(r)}function gS(r,s){var c=this.__data__;if(c instanceof Tr){var m=c.__data__;if(!co||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new kr(m)}return c.set(r,s),this.size=c.size,this}sr.prototype.clear=fS,sr.prototype.delete=hS,sr.prototype.get=pS,sr.prototype.has=dS,sr.prototype.set=gS;function lg(r,s){var c=Ve(r),m=!c&&Ti(r),C=!c&&!m&&ti(r),B=!c&&!m&&!C&&vs(r),j=c||m||C||B,U=j?Qc(r.length,CE):[],H=U.length;for(var te in r)(s||At.call(r,te))&&!(j&&(te=="length"||C&&(te=="offset"||te=="parent")||B&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Br(te,H)))&&U.push(te);return U}function fg(r){var s=r.length;return s?r[gl(0,s-1)]:n}function yS(r,s){return nu(An(r),Si(s,0,r.length))}function mS(r){return nu(An(r))}function sl(r,s,c){(c!==n&&!or(r[s],c)||c===n&&!(s in r))&&Or(r,s,c)}function po(r,s,c){var m=r[s];(!(At.call(r,s)&&or(m,c))||c===n&&!(s in r))&&Or(r,s,c)}function qa(r,s){for(var c=r.length;c--;)if(or(r[c][0],s))return c;return-1}function bS(r,s,c,m){return Xr(r,function(C,B,j){s(m,C,c(C),j)}),m}function hg(r,s){return r&&mr(s,on(s),r)}function wS(r,s){return r&&mr(s,Sn(s),r)}function Or(r,s,c){s=="__proto__"&&La?La(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ol(r,s){for(var c=-1,m=s.length,C=J(m),B=r==null;++c<m;)C[c]=B?n:Ml(r,s[c]);return C}function Si(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,C,B){var j,U=s&d,H=s&v,te=s&k;if(c&&(j=C?c(r,m,C,B):c(r)),j!==n)return j;if(!jt(r))return r;var ne=Ve(r);if(ne){if(j=a2(r),!U)return An(r,j)}else{var se=hn(r),be=se==Tt||se==sn;if(ti(r))return Ng(r,U);if(se==Ce||se==oe||be&&!C){if(j=H||be?{}:ty(r),!U)return H?YS(r,wS(j,r)):JS(r,hg(j,r))}else{if(!Ot[se])return C?r:{};j=u2(r,se,U)}}B||(B=new sr);var _e=B.get(r);if(_e)return _e;B.set(r,j),Iy(r)?r.forEach(function(Ne){j.add(zn(Ne,s,c,Ne,r,B))}):ky(r)&&r.forEach(function(Ne,nt){j.set(nt,zn(Ne,s,c,nt,r,B))});var Pe=te?H?_l:Cl:H?Sn:on,Ye=ne?n:Pe(r);return Wn(Ye||r,function(Ne,nt){Ye&&(nt=Ne,Ne=r[nt]),po(j,nt,zn(Ne,s,c,nt,r,B))}),j}function vS(r){var s=on(r);return function(c){return pg(c,r,s)}}function pg(r,s,c){var m=c.length;if(r==null)return!m;for(r=xt(r);m--;){var C=c[m],B=s[C],j=r[C];if(j===n&&!(C in r)||!B(j))return!1}return!0}function dg(r,s,c){if(typeof r!="function")throw new Kn(u);return Ao(function(){r.apply(n,c)},s)}function go(r,s,c,m){var C=-1,B=_a,j=!0,U=r.length,H=[],te=s.length;if(!U)return H;c&&(s=Pt(s,In(c))),m?(B=Hc,j=!1):s.length>=o&&(B=ao,j=!1,s=new Ei(s));e:for(;++C<U;){var ne=r[C],se=c==null?ne:c(ne);if(ne=m||ne!==0?ne:0,j&&se===se){for(var be=te;be--;)if(s[be]===se)continue e;H.push(ne)}else B(s,se,m)||H.push(ne)}return H}var Xr=Ug(yr),gg=Ug(ul,!0);function AS(r,s){var c=!0;return Xr(r,function(m,C,B){return c=!!s(m,C,B),c}),c}function Wa(r,s,c){for(var m=-1,C=r.length;++m<C;){var B=r[m],j=s(B);if(j!=null&&(U===n?j===j&&!Bn(j):c(j,U)))var U=j,H=B}return H}function ES(r,s,c,m){var C=r.length;for(c=ze(c),c<0&&(c=-c>C?0:C+c),m=m===n||m>C?C:ze(m),m<0&&(m+=C),m=c>m?0:By(m);c<m;)r[c++]=s;return r}function yg(r,s){var c=[];return Xr(r,function(m,C,B){s(m,C,B)&&c.push(m)}),c}function cn(r,s,c,m,C){var B=-1,j=r.length;for(c||(c=l2),C||(C=[]);++B<j;){var U=r[B];s>0&&c(U)?s>1?cn(U,s-1,c,m,C):Gr(C,U):m||(C[C.length]=U)}return C}var al=Vg(),mg=Vg(!0);function yr(r,s){return r&&al(r,s,on)}function ul(r,s){return r&&mg(r,s,on)}function Ka(r,s){return zr(s,function(c){return Dr(r[c])})}function xi(r,s){s=Zr(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[br(s[c++])];return c&&c==m?r:n}function bg(r,s,c){var m=s(r);return Ve(r)?m:Gr(m,c(r))}function yn(r){return r==null?r===n?St:ve:vi&&vi in xt(r)?i2(r):m2(r)}function cl(r,s){return r>s}function SS(r,s){return r!=null&&At.call(r,s)}function xS(r,s){return r!=null&&s in xt(r)}function CS(r,s,c){return r>=fn(s,c)&&r<rn(s,c)}function ll(r,s,c){for(var m=c?Hc:_a,C=r[0].length,B=r.length,j=B,U=J(B),H=1/0,te=[];j--;){var ne=r[j];j&&s&&(ne=Pt(ne,In(s))),H=fn(ne.length,H),U[j]=!c&&(s||C>=120&&ne.length>=120)?new Ei(j&&ne):n}ne=r[0];var se=-1,be=U[0];e:for(;++se<C&&te.length<H;){var _e=ne[se],Pe=s?s(_e):_e;if(_e=c||_e!==0?_e:0,!(be?ao(be,Pe):m(te,Pe,c))){for(j=B;--j;){var Ye=U[j];if(!(Ye?ao(Ye,Pe):m(r[j],Pe,c)))continue e}be&&be.push(Pe),te.push(_e)}}return te}function _S(r,s,c,m){return yr(r,function(C,B,j){s(m,c(C),B,j)}),m}function yo(r,s,c){s=Zr(s,r),r=sy(r,s);var m=r==null?r:r[br(Jn(s))];return m==null?n:On(m,r,c)}function wg(r){return Ut(r)&&yn(r)==oe}function TS(r){return Ut(r)&&yn(r)==ke}function kS(r){return Ut(r)&&yn(r)==Fe}function mo(r,s,c,m,C){return r===s?!0:r==null||s==null||!Ut(r)&&!Ut(s)?r!==r&&s!==s:OS(r,s,c,m,mo,C)}function OS(r,s,c,m,C,B){var j=Ve(r),U=Ve(s),H=j?xe:hn(r),te=U?xe:hn(s);H=H==oe?Ce:H,te=te==oe?Ce:te;var ne=H==Ce,se=te==Ce,be=H==te;if(be&&ti(r)){if(!ti(s))return!1;j=!0,ne=!1}if(be&&!ne)return B||(B=new sr),j||vs(r)?Qg(r,s,c,m,C,B):n2(r,s,H,c,m,C,B);if(!(c&A)){var _e=ne&&At.call(r,"__wrapped__"),Pe=se&&At.call(s,"__wrapped__");if(_e||Pe){var Ye=_e?r.value():r,Ne=Pe?s.value():s;return B||(B=new sr),C(Ye,Ne,c,m,B)}}return be?(B||(B=new sr),r2(r,s,c,m,C,B)):!1}function IS(r){return Ut(r)&&hn(r)==Nt}function fl(r,s,c,m){var C=c.length,B=C,j=!m;if(r==null)return!B;for(r=xt(r);C--;){var U=c[C];if(j&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++C<B;){U=c[C];var H=U[0],te=r[H],ne=U[1];if(j&&U[2]){if(te===n&&!(H in r))return!1}else{var se=new sr;if(m)var be=m(te,ne,H,r,s,se);if(!(be===n?mo(ne,te,A|E,m,se):be))return!1}}return!0}function vg(r){if(!jt(r)||h2(r))return!1;var s=Dr(r)?IE:en;return s.test(_i(r))}function FS(r){return Ut(r)&&yn(r)==ht}function BS(r){return Ut(r)&&hn(r)==Et}function DS(r){return Ut(r)&&uu(r.length)&&!!Dt[yn(r)]}function Ag(r){return typeof r=="function"?r:r==null?xn:typeof r=="object"?Ve(r)?xg(r[0],r[1]):Sg(r):qy(r)}function hl(r){if(!vo(r))return NE(r);var s=[];for(var c in xt(r))At.call(r,c)&&c!="constructor"&&s.push(c);return s}function RS(r){if(!jt(r))return y2(r);var s=vo(r),c=[];for(var m in r)m=="constructor"&&(s||!At.call(r,m))||c.push(m);return c}function pl(r,s){return r<s}function Eg(r,s){var c=-1,m=En(r)?J(r.length):[];return Xr(r,function(C,B,j){m[++c]=s(C,B,j)}),m}function Sg(r){var s=kl(r);return s.length==1&&s[0][2]?ry(s[0][0],s[0][1]):function(c){return c===r||fl(c,r,s)}}function xg(r,s){return Il(r)&&ny(s)?ry(br(r),s):function(c){var m=Ml(c,r);return m===n&&m===s?Ul(c,r):mo(s,m,A|E)}}function Ha(r,s,c,m,C){r!==s&&al(s,function(B,j){if(C||(C=new sr),jt(B))PS(r,s,j,c,Ha,m,C);else{var U=m?m(Bl(r,j),B,j+"",r,s,C):n;U===n&&(U=B),sl(r,j,U)}},Sn)}function PS(r,s,c,m,C,B,j){var U=Bl(r,c),H=Bl(s,c),te=j.get(H);if(te){sl(r,c,te);return}var ne=B?B(U,H,c+"",r,s,j):n,se=ne===n;if(se){var be=Ve(H),_e=!be&&ti(H),Pe=!be&&!_e&&vs(H);ne=H,be||_e||Pe?Ve(U)?ne=U:Jt(U)?ne=An(U):_e?(se=!1,ne=Ng(H,!0)):Pe?(se=!1,ne=Lg(H,!0)):ne=[]:Eo(H)||Ti(H)?(ne=U,Ti(U)?ne=Dy(U):(!jt(U)||Dr(U))&&(ne=ty(H))):se=!1}se&&(j.set(H,ne),C(ne,H,m,B,j),j.delete(H)),sl(r,c,ne)}function Cg(r,s){var c=r.length;if(c)return s+=s<0?c:0,Br(s,c)?r[s]:n}function _g(r,s,c){s.length?s=Pt(s,function(B){return Ve(B)?function(j){return xi(j,B.length===1?B[0]:B)}:B}):s=[xn];var m=-1;s=Pt(s,In(De()));var C=Eg(r,function(B,j,U){var H=Pt(s,function(te){return te(B)});return{criteria:H,index:++m,value:B}});return uE(C,function(B,j){return GS(B,j,c)})}function NS(r,s){return Tg(r,s,function(c,m){return Ul(r,m)})}function Tg(r,s,c){for(var m=-1,C=s.length,B={};++m<C;){var j=s[m],U=xi(r,j);c(U,j)&&bo(B,Zr(j,r),U)}return B}function LS(r){return function(s){return xi(s,r)}}function dl(r,s,c,m){var C=m?aE:cs,B=-1,j=s.length,U=r;for(r===s&&(s=An(s)),c&&(U=Pt(r,In(c)));++B<j;)for(var H=0,te=s[B],ne=c?c(te):te;(H=C(U,ne,H,m))>-1;)U!==r&&Na.call(U,H,1),Na.call(r,H,1);return r}function kg(r,s){for(var c=r?s.length:0,m=c-1;c--;){var C=s[c];if(c==m||C!==B){var B=C;Br(C)?Na.call(r,C,1):bl(r,C)}}return r}function gl(r,s){return r+ja(ug()*(s-r+1))}function $S(r,s,c,m){for(var C=-1,B=rn($a((s-r)/(c||1)),0),j=J(B);B--;)j[m?B:++C]=r,r+=c;return j}function yl(r,s){var c="";if(!r||s<1||s>Te)return c;do s%2&&(c+=r),s=ja(s/2),s&&(r+=r);while(s);return c}function Ze(r,s){return Dl(iy(r,s,xn),r+"")}function jS(r){return fg(As(r))}function MS(r,s){var c=As(r);return nu(c,Si(s,0,c.length))}function bo(r,s,c,m){if(!jt(r))return r;s=Zr(s,r);for(var C=-1,B=s.length,j=B-1,U=r;U!=null&&++C<B;){var H=br(s[C]),te=c;if(H==="__proto__"||H==="constructor"||H==="prototype")return r;if(C!=j){var ne=U[H];te=m?m(ne,H,U):n,te===n&&(te=jt(ne)?ne:Br(s[C+1])?[]:{})}po(U,H,te),U=U[H]}return r}var Og=Ma?function(r,s){return Ma.set(r,s),r}:xn,US=La?function(r,s){return La(r,"toString",{configurable:!0,enumerable:!1,value:ql(s),writable:!0})}:xn;function VS(r){return nu(As(r))}function Gn(r,s,c){var m=-1,C=r.length;s<0&&(s=-s>C?0:C+s),c=c>C?C:c,c<0&&(c+=C),C=s>c?0:c-s>>>0,s>>>=0;for(var B=J(C);++m<C;)B[m]=r[m+s];return B}function qS(r,s){var c;return Xr(r,function(m,C,B){return c=s(m,C,B),!c}),!!c}function za(r,s,c){var m=0,C=r==null?m:r.length;if(typeof s=="number"&&s===s&&C<=G){for(;m<C;){var B=m+C>>>1,j=r[B];j!==null&&!Bn(j)&&(c?j<=s:j<s)?m=B+1:C=B}return C}return ml(r,s,xn,c)}function ml(r,s,c,m){var C=0,B=r==null?0:r.length;if(B===0)return 0;s=c(s);for(var j=s!==s,U=s===null,H=Bn(s),te=s===n;C<B;){var ne=ja((C+B)/2),se=c(r[ne]),be=se!==n,_e=se===null,Pe=se===se,Ye=Bn(se);if(j)var Ne=m||Pe;else te?Ne=Pe&&(m||be):U?Ne=Pe&&be&&(m||!_e):H?Ne=Pe&&be&&!_e&&(m||!Ye):_e||Ye?Ne=!1:Ne=m?se<=s:se<s;Ne?C=ne+1:B=ne}return fn(B,wt)}function Ig(r,s){for(var c=-1,m=r.length,C=0,B=[];++c<m;){var j=r[c],U=s?s(j):j;if(!c||!or(U,H)){var H=U;B[C++]=j===0?0:j}}return B}function Fg(r){return typeof r=="number"?r:Bn(r)?Xe:+r}function Fn(r){if(typeof r=="string")return r;if(Ve(r))return Pt(r,Fn)+"";if(Bn(r))return cg?cg.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Qr(r,s,c){var m=-1,C=_a,B=r.length,j=!0,U=[],H=U;if(c)j=!1,C=Hc;else if(B>=o){var te=s?null:e2(r);if(te)return ka(te);j=!1,C=ao,H=new Ei}else H=s?[]:U;e:for(;++m<B;){var ne=r[m],se=s?s(ne):ne;if(ne=c||ne!==0?ne:0,j&&se===se){for(var be=H.length;be--;)if(H[be]===se)continue e;s&&H.push(se),U.push(ne)}else C(H,se,c)||(H!==U&&H.push(se),U.push(ne))}return U}function bl(r,s){return s=Zr(s,r),r=sy(r,s),r==null||delete r[br(Jn(s))]}function Bg(r,s,c,m){return bo(r,s,c(xi(r,s)),m)}function Ga(r,s,c,m){for(var C=r.length,B=m?C:-1;(m?B--:++B<C)&&s(r[B],B,r););return c?Gn(r,m?0:B,m?B+1:C):Gn(r,m?B+1:0,m?C:B)}function Dg(r,s){var c=r;return c instanceof ot&&(c=c.value()),zc(s,function(m,C){return C.func.apply(C.thisArg,Gr([m],C.args))},c)}function wl(r,s,c){var m=r.length;if(m<2)return m?Qr(r[0]):[];for(var C=-1,B=J(m);++C<m;)for(var j=r[C],U=-1;++U<m;)U!=C&&(B[C]=go(B[C]||j,r[U],s,c));return Qr(cn(B,1),s,c)}function Rg(r,s,c){for(var m=-1,C=r.length,B=s.length,j={};++m<C;){var U=m<B?s[m]:n;c(j,r[m],U)}return j}function vl(r){return Jt(r)?r:[]}function Al(r){return typeof r=="function"?r:xn}function Zr(r,s){return Ve(r)?r:Il(r,s)?[r]:cy(vt(r))}var WS=Ze;function ei(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var Pg=FE||function(r){return un.clearTimeout(r)};function Ng(r,s){if(s)return r.slice();var c=r.length,m=rg?rg(c):new r.constructor(c);return r.copy(m),m}function El(r){var s=new r.constructor(r.byteLength);return new Ra(s).set(new Ra(r)),s}function KS(r,s){var c=s?El(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function HS(r){var s=new r.constructor(r.source,lt.exec(r));return s.lastIndex=r.lastIndex,s}function zS(r){return ho?xt(ho.call(r)):{}}function Lg(r,s){var c=s?El(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function $g(r,s){if(r!==s){var c=r!==n,m=r===null,C=r===r,B=Bn(r),j=s!==n,U=s===null,H=s===s,te=Bn(s);if(!U&&!te&&!B&&r>s||B&&j&&H&&!U&&!te||m&&j&&H||!c&&H||!C)return 1;if(!m&&!B&&!te&&r<s||te&&c&&C&&!m&&!B||U&&c&&C||!j&&C||!H)return-1}return 0}function GS(r,s,c){for(var m=-1,C=r.criteria,B=s.criteria,j=C.length,U=c.length;++m<j;){var H=$g(C[m],B[m]);if(H){if(m>=U)return H;var te=c[m];return H*(te=="desc"?-1:1)}}return r.index-s.index}function jg(r,s,c,m){for(var C=-1,B=r.length,j=c.length,U=-1,H=s.length,te=rn(B-j,0),ne=J(H+te),se=!m;++U<H;)ne[U]=s[U];for(;++C<j;)(se||C<B)&&(ne[c[C]]=r[C]);for(;te--;)ne[U++]=r[C++];return ne}function Mg(r,s,c,m){for(var C=-1,B=r.length,j=-1,U=c.length,H=-1,te=s.length,ne=rn(B-U,0),se=J(ne+te),be=!m;++C<ne;)se[C]=r[C];for(var _e=C;++H<te;)se[_e+H]=s[H];for(;++j<U;)(be||C<B)&&(se[_e+c[j]]=r[C++]);return se}function An(r,s){var c=-1,m=r.length;for(s||(s=J(m));++c<m;)s[c]=r[c];return s}function mr(r,s,c,m){var C=!c;c||(c={});for(var B=-1,j=s.length;++B<j;){var U=s[B],H=m?m(c[U],r[U],U,c,r):n;H===n&&(H=r[U]),C?Or(c,U,H):po(c,U,H)}return c}function JS(r,s){return mr(r,Ol(r),s)}function YS(r,s){return mr(r,Zg(r),s)}function Ja(r,s){return function(c,m){var C=Ve(c)?tE:bS,B=s?s():{};return C(c,r,De(m,2),B)}}function ms(r){return Ze(function(s,c){var m=-1,C=c.length,B=C>1?c[C-1]:n,j=C>2?c[2]:n;for(B=r.length>3&&typeof B=="function"?(C--,B):n,j&&mn(c[0],c[1],j)&&(B=C<3?n:B,C=1),s=xt(s);++m<C;){var U=c[m];U&&r(s,U,m,B)}return s})}function Ug(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var C=c.length,B=s?C:-1,j=xt(c);(s?B--:++B<C)&&m(j[B],B,j)!==!1;);return c}}function Vg(r){return function(s,c,m){for(var C=-1,B=xt(s),j=m(s),U=j.length;U--;){var H=j[r?U:++C];if(c(B[H],H,B)===!1)break}return s}}function XS(r,s,c){var m=s&w,C=wo(r);function B(){var j=this&&this!==un&&this instanceof B?C:r;return j.apply(m?c:this,arguments)}return B}function qg(r){return function(s){s=vt(s);var c=ls(s)?ir(s):n,m=c?c[0]:s.charAt(0),C=c?ei(c,1).join(""):s.slice(1);return m[r]()+C}}function bs(r){return function(s){return zc(Uy(My(s).replace(UA,"")),r,"")}}function wo(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=ys(r.prototype),m=r.apply(c,s);return jt(m)?m:c}}function QS(r,s,c){var m=wo(r);function C(){for(var B=arguments.length,j=J(B),U=B,H=ws(C);U--;)j[U]=arguments[U];var te=B<3&&j[0]!==H&&j[B-1]!==H?[]:Jr(j,H);if(B-=te.length,B<c)return Gg(r,s,Ya,C.placeholder,n,j,te,n,n,c-B);var ne=this&&this!==un&&this instanceof C?m:r;return On(ne,this,j)}return C}function Wg(r){return function(s,c,m){var C=xt(s);if(!En(s)){var B=De(c,3);s=on(s),c=function(U){return B(C[U],U,C)}}var j=r(s,c,m);return j>-1?C[B?s[j]:j]:n}}function Kg(r){return Fr(function(s){var c=s.length,m=c,C=Hn.prototype.thru;for(r&&s.reverse();m--;){var B=s[m];if(typeof B!="function")throw new Kn(u);if(C&&!j&&eu(B)=="wrapper")var j=new Hn([],!0)}for(m=j?m:c;++m<c;){B=s[m];var U=eu(B),H=U=="wrapper"?Tl(B):n;H&&Fl(H[0])&&H[1]==(D|T|I|K)&&!H[4].length&&H[9]==1?j=j[eu(H[0])].apply(j,H[3]):j=B.length==1&&Fl(B)?j[U]():j.thru(B)}return function(){var te=arguments,ne=te[0];if(j&&te.length==1&&Ve(ne))return j.plant(ne).value();for(var se=0,be=c?s[se].apply(this,te):ne;++se<c;)be=s[se].call(this,be);return be}})}function Ya(r,s,c,m,C,B,j,U,H,te){var ne=s&D,se=s&w,be=s&P,_e=s&(T|x),Pe=s&ie,Ye=be?n:wo(r);function Ne(){for(var nt=arguments.length,at=J(nt),Dn=nt;Dn--;)at[Dn]=arguments[Dn];if(_e)var bn=ws(Ne),Rn=lE(at,bn);if(m&&(at=jg(at,m,C,_e)),B&&(at=Mg(at,B,j,_e)),nt-=Rn,_e&&nt<te){var Yt=Jr(at,bn);return Gg(r,s,Ya,Ne.placeholder,c,at,Yt,U,H,te-nt)}var ar=se?c:this,Pr=be?ar[r]:r;return nt=at.length,U?at=b2(at,U):Pe&&nt>1&&at.reverse(),ne&&H<nt&&(at.length=H),this&&this!==un&&this instanceof Ne&&(Pr=Ye||wo(Pr)),Pr.apply(ar,at)}return Ne}function Hg(r,s){return function(c,m){return _S(c,r,s(m),{})}}function Xa(r,s){return function(c,m){var C;if(c===n&&m===n)return s;if(c!==n&&(C=c),m!==n){if(C===n)return m;typeof c=="string"||typeof m=="string"?(c=Fn(c),m=Fn(m)):(c=Fg(c),m=Fg(m)),C=r(c,m)}return C}}function Sl(r){return Fr(function(s){return s=Pt(s,In(De())),Ze(function(c){var m=this;return r(s,function(C){return On(C,m,c)})})})}function Qa(r,s){s=s===n?" ":Fn(s);var c=s.length;if(c<2)return c?yl(s,r):s;var m=yl(s,$a(r/fs(s)));return ls(s)?ei(ir(m),0,r).join(""):m.slice(0,r)}function ZS(r,s,c,m){var C=s&w,B=wo(r);function j(){for(var U=-1,H=arguments.length,te=-1,ne=m.length,se=J(ne+H),be=this&&this!==un&&this instanceof j?B:r;++te<ne;)se[te]=m[te];for(;H--;)se[te++]=arguments[++U];return On(be,C?c:this,se)}return j}function zg(r){return function(s,c,m){return m&&typeof m!="number"&&mn(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),$S(s,c,m,r)}}function Za(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function Gg(r,s,c,m,C,B,j,U,H,te){var ne=s&T,se=ne?j:n,be=ne?n:j,_e=ne?B:n,Pe=ne?n:B;s|=ne?I:O,s&=~(ne?O:I),s&L||(s&=-4);var Ye=[r,s,C,_e,se,Pe,be,U,H,te],Ne=c.apply(n,Ye);return Fl(r)&&oy(Ne,Ye),Ne.placeholder=m,ay(Ne,r,s)}function xl(r){var s=nn[r];return function(c,m){if(c=Yn(c),m=m==null?0:fn(ze(m),292),m&&ag(c)){var C=(vt(c)+"e").split("e"),B=s(C[0]+"e"+(+C[1]+m));return C=(vt(B)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return s(c)}}var e2=ds&&1/ka(new ds([,-0]))[1]==Ie?function(r){return new ds(r)}:Hl;function Jg(r){return function(s){var c=hn(s);return c==Nt?el(s):c==Et?mE(s):cE(s,r(s))}}function Ir(r,s,c,m,C,B,j,U){var H=s&P;if(!H&&typeof r!="function")throw new Kn(u);var te=m?m.length:0;if(te||(s&=-97,m=C=n),j=j===n?j:rn(ze(j),0),U=U===n?U:ze(U),te-=C?C.length:0,s&O){var ne=m,se=C;m=C=n}var be=H?n:Tl(r),_e=[r,s,c,m,C,ne,se,B,j,U];if(be&&g2(_e,be),r=_e[0],s=_e[1],c=_e[2],m=_e[3],C=_e[4],U=_e[9]=_e[9]===n?H?0:r.length:rn(_e[9]-te,0),!U&&s&(T|x)&&(s&=-25),!s||s==w)var Pe=XS(r,s,c);else s==T||s==x?Pe=QS(r,s,U):(s==I||s==(w|I))&&!C.length?Pe=ZS(r,s,c,m):Pe=Ya.apply(n,_e);var Ye=be?Og:oy;return ay(Ye(Pe,_e),r,s)}function Yg(r,s,c,m){return r===n||or(r,ps[c])&&!At.call(m,c)?s:r}function Xg(r,s,c,m,C,B){return jt(r)&&jt(s)&&(B.set(s,r),Ha(r,s,n,Xg,B),B.delete(s)),r}function t2(r){return Eo(r)?n:r}function Qg(r,s,c,m,C,B){var j=c&A,U=r.length,H=s.length;if(U!=H&&!(j&&H>U))return!1;var te=B.get(r),ne=B.get(s);if(te&&ne)return te==s&&ne==r;var se=-1,be=!0,_e=c&E?new Ei:n;for(B.set(r,s),B.set(s,r);++se<U;){var Pe=r[se],Ye=s[se];if(m)var Ne=j?m(Ye,Pe,se,s,r,B):m(Pe,Ye,se,r,s,B);if(Ne!==n){if(Ne)continue;be=!1;break}if(_e){if(!Gc(s,function(nt,at){if(!ao(_e,at)&&(Pe===nt||C(Pe,nt,c,m,B)))return _e.push(at)})){be=!1;break}}else if(!(Pe===Ye||C(Pe,Ye,c,m,B))){be=!1;break}}return B.delete(r),B.delete(s),be}function n2(r,s,c,m,C,B,j){switch(c){case Be:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case ke:return!(r.byteLength!=s.byteLength||!B(new Ra(r),new Ra(s)));case Se:case Fe:case Lt:return or(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case ht:case de:return r==s+"";case Nt:var U=el;case Et:var H=m&A;if(U||(U=ka),r.size!=s.size&&!H)return!1;var te=j.get(r);if(te)return te==s;m|=E,j.set(r,s);var ne=Qg(U(r),U(s),m,C,B,j);return j.delete(r),ne;case Qe:if(ho)return ho.call(r)==ho.call(s)}return!1}function r2(r,s,c,m,C,B){var j=c&A,U=Cl(r),H=U.length,te=Cl(s),ne=te.length;if(H!=ne&&!j)return!1;for(var se=H;se--;){var be=U[se];if(!(j?be in s:At.call(s,be)))return!1}var _e=B.get(r),Pe=B.get(s);if(_e&&Pe)return _e==s&&Pe==r;var Ye=!0;B.set(r,s),B.set(s,r);for(var Ne=j;++se<H;){be=U[se];var nt=r[be],at=s[be];if(m)var Dn=j?m(at,nt,be,s,r,B):m(nt,at,be,r,s,B);if(!(Dn===n?nt===at||C(nt,at,c,m,B):Dn)){Ye=!1;break}Ne||(Ne=be=="constructor")}if(Ye&&!Ne){var bn=r.constructor,Rn=s.constructor;bn!=Rn&&"constructor"in r&&"constructor"in s&&!(typeof bn=="function"&&bn instanceof bn&&typeof Rn=="function"&&Rn instanceof Rn)&&(Ye=!1)}return B.delete(r),B.delete(s),Ye}function Fr(r){return Dl(iy(r,n,py),r+"")}function Cl(r){return bg(r,on,Ol)}function _l(r){return bg(r,Sn,Zg)}var Tl=Ma?function(r){return Ma.get(r)}:Hl;function eu(r){for(var s=r.name+"",c=gs[s],m=At.call(gs,s)?c.length:0;m--;){var C=c[m],B=C.func;if(B==null||B==r)return C.name}return s}function ws(r){var s=At.call(F,"placeholder")?F:r;return s.placeholder}function De(){var r=F.iteratee||Wl;return r=r===Wl?Ag:r,arguments.length?r(arguments[0],arguments[1]):r}function tu(r,s){var c=r.__data__;return f2(s)?c[typeof s=="string"?"string":"hash"]:c.map}function kl(r){for(var s=on(r),c=s.length;c--;){var m=s[c],C=r[m];s[c]=[m,C,ny(C)]}return s}function Ci(r,s){var c=dE(r,s);return vg(c)?c:n}function i2(r){var s=At.call(r,vi),c=r[vi];try{r[vi]=n;var m=!0}catch{}var C=Ba.call(r);return m&&(s?r[vi]=c:delete r[vi]),C}var Ol=nl?function(r){return r==null?[]:(r=xt(r),zr(nl(r),function(s){return sg.call(r,s)}))}:zl,Zg=nl?function(r){for(var s=[];r;)Gr(s,Ol(r)),r=Pa(r);return s}:zl,hn=yn;(rl&&hn(new rl(new ArrayBuffer(1)))!=Be||co&&hn(new co)!=Nt||il&&hn(il.resolve())!=qe||ds&&hn(new ds)!=Et||lo&&hn(new lo)!=it)&&(hn=function(r){var s=yn(r),c=s==Ce?r.constructor:n,m=c?_i(c):"";if(m)switch(m){case ME:return Be;case UE:return Nt;case VE:return qe;case qE:return Et;case WE:return it}return s});function s2(r,s,c){for(var m=-1,C=c.length;++m<C;){var B=c[m],j=B.size;switch(B.type){case"drop":r+=j;break;case"dropRight":s-=j;break;case"take":s=fn(s,r+j);break;case"takeRight":r=rn(r,s-j);break}}return{start:r,end:s}}function o2(r){var s=r.match(gn);return s?s[1].split(M):[]}function ey(r,s,c){s=Zr(s,r);for(var m=-1,C=s.length,B=!1;++m<C;){var j=br(s[m]);if(!(B=r!=null&&c(r,j)))break;r=r[j]}return B||++m!=C?B:(C=r==null?0:r.length,!!C&&uu(C)&&Br(j,C)&&(Ve(r)||Ti(r)))}function a2(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 ty(r){return typeof r.constructor=="function"&&!vo(r)?ys(Pa(r)):{}}function u2(r,s,c){var m=r.constructor;switch(s){case ke:return El(r);case Se:case Fe:return new m(+r);case Be:return KS(r,c);case $t:case _:case p:case b:case R:case V:case z:case X:case $e:return Lg(r,c);case Nt:return new m;case Lt:case de:return new m(r);case ht:return HS(r);case Et:return new m;case Qe:return zS(r)}}function c2(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(ro,`{
|
|
133
|
+
*/Ho.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__",y=500,g="__lodash_placeholder__",d=1,v=2,k=4,E=1,A=2,w=1,R=2,L=4,T=8,x=16,I=32,O=64,D=128,K=256,ie=512,ce=30,fe="...",ye=800,we=16,ge=1,he=2,Re=3,Ie=1/0,Te=9007199254740991,We=17976931348623157e292,Xe=NaN,Ee=4294967295,wt=Ee-1,G=Ee>>>1,Y=[["ary",D],["bind",w],["bindKey",R],["curry",T],["curryRight",x],["flip",ie],["partial",I],["partialRight",O],["rearg",K]],oe="[object Arguments]",xe="[object Array]",Ke="[object AsyncFunction]",Se="[object Boolean]",Fe="[object Date]",je="[object DOMException]",Le="[object Error]",Tt="[object Function]",sn="[object GeneratorFunction]",Nt="[object Map]",Lt="[object Number]",ve="[object Null]",Ce="[object Object]",qe="[object Promise]",kt="[object Proxy]",ht="[object RegExp]",Et="[object Set]",de="[object String]",Qe="[object Symbol]",St="[object Undefined]",it="[object WeakMap]",Mt="[object WeakSet]",ke="[object ArrayBuffer]",Be="[object DataView]",$t="[object Float32Array]",_="[object Float64Array]",p="[object Int8Array]",b="[object Int16Array]",P="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",X="[object Uint16Array]",$e="[object Uint32Array]",dt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,qr=/[&<>"']/g,yi=RegExp(st.source),rs=RegExp(qr.source),is=/<%-([\s\S]+?)%>/g,ss=/<%([\s\S]+?)%>/g,Wr=/<%=([\s\S]+?)%>/g,mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eo=/^\w*$/,to=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_r=/[\\^$.*+?()[\]{}|]/g,nr=RegExp(_r.source),Kr=/^\s+/,no=/\s/,ro=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,me=/[()=,{}\[\]\/\s]/,Oe=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,Bt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,rr=/['\n\r\u2028\u2029\\]/g,zt="\\ud800-\\udfff",bi="\\u0300-\\u036f",io="\\ufe20-\\ufe2f",so="\\u20d0-\\u20ff",wa=bi+io+so,va="\\u2700-\\u27bf",Aa="a-z\\xdf-\\xf6\\xf8-\\xff",$c="\\xac\\xb1\\xd7\\xf7",jc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mc="\\u2000-\\u206f",Uc=" \\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",kn="A-Z\\xc0-\\xd6\\xd8-\\xde",os="\\ufe0e\\ufe0f",oo=$c+jc+Mc+Uc,as="['’]",Vc="["+zt+"]",Hr="["+oo+"]",us="["+wa+"]",Ea="\\d+",Sa="["+va+"]",xa="["+Aa+"]",Ca="[^"+zt+oo+Ea+va+Aa+kn+"]",h="\\ud83c[\\udffb-\\udfff]",S="(?:"+us+"|"+h+")",N="[^"+zt+"]",q="(?:\\ud83c[\\udde6-\\uddff]){2}",Z="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+kn+"]",He="\\u200d",mt="(?:"+xa+"|"+Ca+")",tn="(?:"+pe+"|"+Ca+")",Gt="(?:"+as+"(?:d|ll|m|re|s|t|ve))?",Rd="(?:"+as+"(?:D|LL|M|RE|S|T|VE))?",Pd=S+"?",Nd="["+os+"]?",NA="(?:"+He+"(?:"+[N,q,Z].join("|")+")"+Nd+Pd+")*",LA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$A="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ld=Nd+Pd+NA,jA="(?:"+[Sa,q,Z].join("|")+")"+Ld,MA="(?:"+[N+us+"?",us,q,Z,Vc].join("|")+")",UA=RegExp(as,"g"),VA=RegExp(us,"g"),qc=RegExp(h+"(?="+h+")|"+MA+Ld,"g"),qA=RegExp([pe+"?"+xa+"+"+Gt+"(?="+[Hr,pe,"$"].join("|")+")",tn+"+"+Rd+"(?="+[Hr,pe+mt,"$"].join("|")+")",pe+"?"+mt+"+"+Gt,pe+"+"+Rd,$A,LA,Ea,jA].join("|"),"g"),WA=RegExp("["+He+zt+wa+os+"]"),KA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HA=["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"],zA=-1,Dt={};Dt[$t]=Dt[_]=Dt[p]=Dt[b]=Dt[P]=Dt[V]=Dt[z]=Dt[X]=Dt[$e]=!0,Dt[oe]=Dt[xe]=Dt[ke]=Dt[Se]=Dt[Be]=Dt[Fe]=Dt[Le]=Dt[Tt]=Dt[Nt]=Dt[Lt]=Dt[Ce]=Dt[ht]=Dt[Et]=Dt[de]=Dt[it]=!1;var Ot={};Ot[oe]=Ot[xe]=Ot[ke]=Ot[Be]=Ot[Se]=Ot[Fe]=Ot[$t]=Ot[_]=Ot[p]=Ot[b]=Ot[P]=Ot[Nt]=Ot[Lt]=Ot[Ce]=Ot[ht]=Ot[Et]=Ot[de]=Ot[Qe]=Ot[V]=Ot[z]=Ot[X]=Ot[$e]=!0,Ot[Le]=Ot[Tt]=Ot[it]=!1;var GA={À:"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"},JA={"&":"&","<":"<",">":">",'"':""","'":"'"},YA={"&":"&","<":"<",">":">",""":'"',"'":"'"},XA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QA=parseFloat,ZA=parseInt,$d=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,eE=typeof self=="object"&&self&&self.Object===Object&&self,un=$d||eE||Function("return this")(),Wc=t&&!t.nodeType&&t,wi=Wc&&!0&&e&&!e.nodeType&&e,jd=wi&&wi.exports===Wc,Kc=jd&&$d.process,qn=function(){try{var W=wi&&wi.require&&wi.require("util").types;return W||Kc&&Kc.binding&&Kc.binding("util")}catch{}}(),Md=qn&&qn.isArrayBuffer,Ud=qn&&qn.isDate,Vd=qn&&qn.isMap,qd=qn&&qn.isRegExp,Wd=qn&&qn.isSet,Kd=qn&&qn.isTypedArray;function On(W,Q,J){switch(J.length){case 0:return W.call(Q);case 1:return W.call(Q,J[0]);case 2:return W.call(Q,J[0],J[1]);case 3:return W.call(Q,J[0],J[1],J[2])}return W.apply(Q,J)}function tE(W,Q,J,Ae){for(var Me=-1,bt=W==null?0:W.length;++Me<bt;){var nn=W[Me];Q(Ae,nn,J(nn),W)}return Ae}function Wn(W,Q){for(var J=-1,Ae=W==null?0:W.length;++J<Ae&&Q(W[J],J,W)!==!1;);return W}function nE(W,Q){for(var J=W==null?0:W.length;J--&&Q(W[J],J,W)!==!1;);return W}function Hd(W,Q){for(var J=-1,Ae=W==null?0:W.length;++J<Ae;)if(!Q(W[J],J,W))return!1;return!0}function zr(W,Q){for(var J=-1,Ae=W==null?0:W.length,Me=0,bt=[];++J<Ae;){var nn=W[J];Q(nn,J,W)&&(bt[Me++]=nn)}return bt}function _a(W,Q){var J=W==null?0:W.length;return!!J&&cs(W,Q,0)>-1}function Hc(W,Q,J){for(var Ae=-1,Me=W==null?0:W.length;++Ae<Me;)if(J(Q,W[Ae]))return!0;return!1}function Pt(W,Q){for(var J=-1,Ae=W==null?0:W.length,Me=Array(Ae);++J<Ae;)Me[J]=Q(W[J],J,W);return Me}function Gr(W,Q){for(var J=-1,Ae=Q.length,Me=W.length;++J<Ae;)W[Me+J]=Q[J];return W}function zc(W,Q,J,Ae){var Me=-1,bt=W==null?0:W.length;for(Ae&&bt&&(J=W[++Me]);++Me<bt;)J=Q(J,W[Me],Me,W);return J}function rE(W,Q,J,Ae){var Me=W==null?0:W.length;for(Ae&&Me&&(J=W[--Me]);Me--;)J=Q(J,W[Me],Me,W);return J}function Gc(W,Q){for(var J=-1,Ae=W==null?0:W.length;++J<Ae;)if(Q(W[J],J,W))return!0;return!1}var iE=Jc("length");function sE(W){return W.split("")}function oE(W){return W.match(ae)||[]}function zd(W,Q,J){var Ae;return J(W,function(Me,bt,nn){if(Q(Me,bt,nn))return Ae=bt,!1}),Ae}function Ta(W,Q,J,Ae){for(var Me=W.length,bt=J+(Ae?1:-1);Ae?bt--:++bt<Me;)if(Q(W[bt],bt,W))return bt;return-1}function cs(W,Q,J){return Q===Q?bE(W,Q,J):Ta(W,Gd,J)}function aE(W,Q,J,Ae){for(var Me=J-1,bt=W.length;++Me<bt;)if(Ae(W[Me],Q))return Me;return-1}function Gd(W){return W!==W}function Jd(W,Q){var J=W==null?0:W.length;return J?Xc(W,Q)/J:Xe}function Jc(W){return function(Q){return Q==null?n:Q[W]}}function Yc(W){return function(Q){return W==null?n:W[Q]}}function Yd(W,Q,J,Ae,Me){return Me(W,function(bt,nn,xt){J=Ae?(Ae=!1,bt):Q(J,bt,nn,xt)}),J}function uE(W,Q){var J=W.length;for(W.sort(Q);J--;)W[J]=W[J].value;return W}function Xc(W,Q){for(var J,Ae=-1,Me=W.length;++Ae<Me;){var bt=Q(W[Ae]);bt!==n&&(J=J===n?bt:J+bt)}return J}function Qc(W,Q){for(var J=-1,Ae=Array(W);++J<W;)Ae[J]=Q(J);return Ae}function cE(W,Q){return Pt(Q,function(J){return[J,W[J]]})}function Xd(W){return W&&W.slice(0,tg(W)+1).replace(Kr,"")}function In(W){return function(Q){return W(Q)}}function Zc(W,Q){return Pt(Q,function(J){return W[J]})}function ao(W,Q){return W.has(Q)}function Qd(W,Q){for(var J=-1,Ae=W.length;++J<Ae&&cs(Q,W[J],0)>-1;);return J}function Zd(W,Q){for(var J=W.length;J--&&cs(Q,W[J],0)>-1;);return J}function lE(W,Q){for(var J=W.length,Ae=0;J--;)W[J]===Q&&++Ae;return Ae}var fE=Yc(GA),hE=Yc(JA);function pE(W){return"\\"+XA[W]}function dE(W,Q){return W==null?n:W[Q]}function ls(W){return WA.test(W)}function gE(W){return KA.test(W)}function yE(W){for(var Q,J=[];!(Q=W.next()).done;)J.push(Q.value);return J}function el(W){var Q=-1,J=Array(W.size);return W.forEach(function(Ae,Me){J[++Q]=[Me,Ae]}),J}function eg(W,Q){return function(J){return W(Q(J))}}function Jr(W,Q){for(var J=-1,Ae=W.length,Me=0,bt=[];++J<Ae;){var nn=W[J];(nn===Q||nn===g)&&(W[J]=g,bt[Me++]=J)}return bt}function ka(W){var Q=-1,J=Array(W.size);return W.forEach(function(Ae){J[++Q]=Ae}),J}function mE(W){var Q=-1,J=Array(W.size);return W.forEach(function(Ae){J[++Q]=[Ae,Ae]}),J}function bE(W,Q,J){for(var Ae=J-1,Me=W.length;++Ae<Me;)if(W[Ae]===Q)return Ae;return-1}function wE(W,Q,J){for(var Ae=J+1;Ae--;)if(W[Ae]===Q)return Ae;return Ae}function fs(W){return ls(W)?AE(W):iE(W)}function ir(W){return ls(W)?EE(W):sE(W)}function tg(W){for(var Q=W.length;Q--&&no.test(W.charAt(Q)););return Q}var vE=Yc(YA);function AE(W){for(var Q=qc.lastIndex=0;qc.test(W);)++Q;return Q}function EE(W){return W.match(qc)||[]}function SE(W){return W.match(qA)||[]}var xE=function W(Q){Q=Q==null?un:hs.defaults(un.Object(),Q,hs.pick(un,HA));var J=Q.Array,Ae=Q.Date,Me=Q.Error,bt=Q.Function,nn=Q.Math,xt=Q.Object,tl=Q.RegExp,CE=Q.String,Kn=Q.TypeError,Oa=J.prototype,_E=bt.prototype,ps=xt.prototype,Ia=Q["__core-js_shared__"],Fa=_E.toString,At=ps.hasOwnProperty,TE=0,ng=function(){var r=/[^.]+$/.exec(Ia&&Ia.keys&&Ia.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ba=ps.toString,kE=Fa.call(xt),OE=un._,IE=tl("^"+Fa.call(At).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Da=jd?Q.Buffer:n,Yr=Q.Symbol,Ra=Q.Uint8Array,rg=Da?Da.allocUnsafe:n,Pa=eg(xt.getPrototypeOf,xt),ig=xt.create,sg=ps.propertyIsEnumerable,Na=Oa.splice,og=Yr?Yr.isConcatSpreadable:n,uo=Yr?Yr.iterator:n,vi=Yr?Yr.toStringTag:n,La=function(){try{var r=Ci(xt,"defineProperty");return r({},"",{}),r}catch{}}(),FE=Q.clearTimeout!==un.clearTimeout&&Q.clearTimeout,BE=Ae&&Ae.now!==un.Date.now&&Ae.now,DE=Q.setTimeout!==un.setTimeout&&Q.setTimeout,$a=nn.ceil,ja=nn.floor,nl=xt.getOwnPropertySymbols,RE=Da?Da.isBuffer:n,ag=Q.isFinite,PE=Oa.join,NE=eg(xt.keys,xt),rn=nn.max,fn=nn.min,LE=Ae.now,$E=Q.parseInt,ug=nn.random,jE=Oa.reverse,rl=Ci(Q,"DataView"),co=Ci(Q,"Map"),il=Ci(Q,"Promise"),ds=Ci(Q,"Set"),lo=Ci(Q,"WeakMap"),fo=Ci(xt,"create"),Ma=lo&&new lo,gs={},ME=_i(rl),UE=_i(co),VE=_i(il),qE=_i(ds),WE=_i(lo),Ua=Yr?Yr.prototype:n,ho=Ua?Ua.valueOf:n,cg=Ua?Ua.toString:n;function F(r){if(Ut(r)&&!Ve(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(At.call(r,"__wrapped__"))return ly(r)}return new Hn(r)}var ys=function(){function r(){}return function(s){if(!jt(s))return{};if(ig)return ig(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Va(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}F.templateSettings={escape:is,evaluate:ss,interpolate:Wr,variable:"",imports:{_:F}},F.prototype=Va.prototype,F.prototype.constructor=F,Hn.prototype=ys(Va.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function KE(){var r=new ot(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 HE(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function zE(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ve(r),m=s<0,C=c?r.length:0,B=s2(0,C,this.__views__),j=B.start,U=B.end,H=U-j,te=m?U:j-1,ne=this.__iteratees__,se=ne.length,be=0,_e=fn(H,this.__takeCount__);if(!c||!m&&C==H&&_e==H)return Dg(r,this.__actions__);var Pe=[];e:for(;H--&&be<_e;){te+=s;for(var Ye=-1,Ne=r[te];++Ye<se;){var nt=ne[Ye],at=nt.iteratee,Dn=nt.type,bn=at(Ne);if(Dn==he)Ne=bn;else if(!bn){if(Dn==ge)continue e;break e}}Pe[be++]=Ne}return Pe}ot.prototype=ys(Va.prototype),ot.prototype.constructor=ot;function Ai(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 GE(){this.__data__=fo?fo(null):{},this.size=0}function JE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function YE(r){var s=this.__data__;if(fo){var c=s[r];return c===f?n:c}return At.call(s,r)?s[r]:n}function XE(r){var s=this.__data__;return fo?s[r]!==n:At.call(s,r)}function QE(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=fo&&s===n?f:s,this}Ai.prototype.clear=GE,Ai.prototype.delete=JE,Ai.prototype.get=YE,Ai.prototype.has=XE,Ai.prototype.set=QE;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 ZE(){this.__data__=[],this.size=0}function eS(r){var s=this.__data__,c=qa(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Na.call(s,c,1),--this.size,!0}function tS(r){var s=this.__data__,c=qa(s,r);return c<0?n:s[c][1]}function nS(r){return qa(this.__data__,r)>-1}function rS(r,s){var c=this.__data__,m=qa(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Tr.prototype.clear=ZE,Tr.prototype.delete=eS,Tr.prototype.get=tS,Tr.prototype.has=nS,Tr.prototype.set=rS;function kr(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 iS(){this.size=0,this.__data__={hash:new Ai,map:new(co||Tr),string:new Ai}}function sS(r){var s=tu(this,r).delete(r);return this.size-=s?1:0,s}function oS(r){return tu(this,r).get(r)}function aS(r){return tu(this,r).has(r)}function uS(r,s){var c=tu(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}kr.prototype.clear=iS,kr.prototype.delete=sS,kr.prototype.get=oS,kr.prototype.has=aS,kr.prototype.set=uS;function Ei(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new kr;++s<c;)this.add(r[s])}function cS(r){return this.__data__.set(r,f),this}function lS(r){return this.__data__.has(r)}Ei.prototype.add=Ei.prototype.push=cS,Ei.prototype.has=lS;function sr(r){var s=this.__data__=new Tr(r);this.size=s.size}function fS(){this.__data__=new Tr,this.size=0}function hS(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function pS(r){return this.__data__.get(r)}function dS(r){return this.__data__.has(r)}function gS(r,s){var c=this.__data__;if(c instanceof Tr){var m=c.__data__;if(!co||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new kr(m)}return c.set(r,s),this.size=c.size,this}sr.prototype.clear=fS,sr.prototype.delete=hS,sr.prototype.get=pS,sr.prototype.has=dS,sr.prototype.set=gS;function lg(r,s){var c=Ve(r),m=!c&&Ti(r),C=!c&&!m&&ti(r),B=!c&&!m&&!C&&vs(r),j=c||m||C||B,U=j?Qc(r.length,CE):[],H=U.length;for(var te in r)(s||At.call(r,te))&&!(j&&(te=="length"||C&&(te=="offset"||te=="parent")||B&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Br(te,H)))&&U.push(te);return U}function fg(r){var s=r.length;return s?r[gl(0,s-1)]:n}function yS(r,s){return nu(An(r),Si(s,0,r.length))}function mS(r){return nu(An(r))}function sl(r,s,c){(c!==n&&!or(r[s],c)||c===n&&!(s in r))&&Or(r,s,c)}function po(r,s,c){var m=r[s];(!(At.call(r,s)&&or(m,c))||c===n&&!(s in r))&&Or(r,s,c)}function qa(r,s){for(var c=r.length;c--;)if(or(r[c][0],s))return c;return-1}function bS(r,s,c,m){return Xr(r,function(C,B,j){s(m,C,c(C),j)}),m}function hg(r,s){return r&&mr(s,on(s),r)}function wS(r,s){return r&&mr(s,Sn(s),r)}function Or(r,s,c){s=="__proto__"&&La?La(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ol(r,s){for(var c=-1,m=s.length,C=J(m),B=r==null;++c<m;)C[c]=B?n:Ml(r,s[c]);return C}function Si(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,C,B){var j,U=s&d,H=s&v,te=s&k;if(c&&(j=C?c(r,m,C,B):c(r)),j!==n)return j;if(!jt(r))return r;var ne=Ve(r);if(ne){if(j=a2(r),!U)return An(r,j)}else{var se=hn(r),be=se==Tt||se==sn;if(ti(r))return Ng(r,U);if(se==Ce||se==oe||be&&!C){if(j=H||be?{}:ty(r),!U)return H?YS(r,wS(j,r)):JS(r,hg(j,r))}else{if(!Ot[se])return C?r:{};j=u2(r,se,U)}}B||(B=new sr);var _e=B.get(r);if(_e)return _e;B.set(r,j),Iy(r)?r.forEach(function(Ne){j.add(zn(Ne,s,c,Ne,r,B))}):ky(r)&&r.forEach(function(Ne,nt){j.set(nt,zn(Ne,s,c,nt,r,B))});var Pe=te?H?_l:Cl:H?Sn:on,Ye=ne?n:Pe(r);return Wn(Ye||r,function(Ne,nt){Ye&&(nt=Ne,Ne=r[nt]),po(j,nt,zn(Ne,s,c,nt,r,B))}),j}function vS(r){var s=on(r);return function(c){return pg(c,r,s)}}function pg(r,s,c){var m=c.length;if(r==null)return!m;for(r=xt(r);m--;){var C=c[m],B=s[C],j=r[C];if(j===n&&!(C in r)||!B(j))return!1}return!0}function dg(r,s,c){if(typeof r!="function")throw new Kn(u);return Ao(function(){r.apply(n,c)},s)}function go(r,s,c,m){var C=-1,B=_a,j=!0,U=r.length,H=[],te=s.length;if(!U)return H;c&&(s=Pt(s,In(c))),m?(B=Hc,j=!1):s.length>=o&&(B=ao,j=!1,s=new Ei(s));e:for(;++C<U;){var ne=r[C],se=c==null?ne:c(ne);if(ne=m||ne!==0?ne:0,j&&se===se){for(var be=te;be--;)if(s[be]===se)continue e;H.push(ne)}else B(s,se,m)||H.push(ne)}return H}var Xr=Ug(yr),gg=Ug(ul,!0);function AS(r,s){var c=!0;return Xr(r,function(m,C,B){return c=!!s(m,C,B),c}),c}function Wa(r,s,c){for(var m=-1,C=r.length;++m<C;){var B=r[m],j=s(B);if(j!=null&&(U===n?j===j&&!Bn(j):c(j,U)))var U=j,H=B}return H}function ES(r,s,c,m){var C=r.length;for(c=ze(c),c<0&&(c=-c>C?0:C+c),m=m===n||m>C?C:ze(m),m<0&&(m+=C),m=c>m?0:By(m);c<m;)r[c++]=s;return r}function yg(r,s){var c=[];return Xr(r,function(m,C,B){s(m,C,B)&&c.push(m)}),c}function cn(r,s,c,m,C){var B=-1,j=r.length;for(c||(c=l2),C||(C=[]);++B<j;){var U=r[B];s>0&&c(U)?s>1?cn(U,s-1,c,m,C):Gr(C,U):m||(C[C.length]=U)}return C}var al=Vg(),mg=Vg(!0);function yr(r,s){return r&&al(r,s,on)}function ul(r,s){return r&&mg(r,s,on)}function Ka(r,s){return zr(s,function(c){return Dr(r[c])})}function xi(r,s){s=Zr(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[br(s[c++])];return c&&c==m?r:n}function bg(r,s,c){var m=s(r);return Ve(r)?m:Gr(m,c(r))}function yn(r){return r==null?r===n?St:ve:vi&&vi in xt(r)?i2(r):m2(r)}function cl(r,s){return r>s}function SS(r,s){return r!=null&&At.call(r,s)}function xS(r,s){return r!=null&&s in xt(r)}function CS(r,s,c){return r>=fn(s,c)&&r<rn(s,c)}function ll(r,s,c){for(var m=c?Hc:_a,C=r[0].length,B=r.length,j=B,U=J(B),H=1/0,te=[];j--;){var ne=r[j];j&&s&&(ne=Pt(ne,In(s))),H=fn(ne.length,H),U[j]=!c&&(s||C>=120&&ne.length>=120)?new Ei(j&&ne):n}ne=r[0];var se=-1,be=U[0];e:for(;++se<C&&te.length<H;){var _e=ne[se],Pe=s?s(_e):_e;if(_e=c||_e!==0?_e:0,!(be?ao(be,Pe):m(te,Pe,c))){for(j=B;--j;){var Ye=U[j];if(!(Ye?ao(Ye,Pe):m(r[j],Pe,c)))continue e}be&&be.push(Pe),te.push(_e)}}return te}function _S(r,s,c,m){return yr(r,function(C,B,j){s(m,c(C),B,j)}),m}function yo(r,s,c){s=Zr(s,r),r=sy(r,s);var m=r==null?r:r[br(Jn(s))];return m==null?n:On(m,r,c)}function wg(r){return Ut(r)&&yn(r)==oe}function TS(r){return Ut(r)&&yn(r)==ke}function kS(r){return Ut(r)&&yn(r)==Fe}function mo(r,s,c,m,C){return r===s?!0:r==null||s==null||!Ut(r)&&!Ut(s)?r!==r&&s!==s:OS(r,s,c,m,mo,C)}function OS(r,s,c,m,C,B){var j=Ve(r),U=Ve(s),H=j?xe:hn(r),te=U?xe:hn(s);H=H==oe?Ce:H,te=te==oe?Ce:te;var ne=H==Ce,se=te==Ce,be=H==te;if(be&&ti(r)){if(!ti(s))return!1;j=!0,ne=!1}if(be&&!ne)return B||(B=new sr),j||vs(r)?Qg(r,s,c,m,C,B):n2(r,s,H,c,m,C,B);if(!(c&E)){var _e=ne&&At.call(r,"__wrapped__"),Pe=se&&At.call(s,"__wrapped__");if(_e||Pe){var Ye=_e?r.value():r,Ne=Pe?s.value():s;return B||(B=new sr),C(Ye,Ne,c,m,B)}}return be?(B||(B=new sr),r2(r,s,c,m,C,B)):!1}function IS(r){return Ut(r)&&hn(r)==Nt}function fl(r,s,c,m){var C=c.length,B=C,j=!m;if(r==null)return!B;for(r=xt(r);C--;){var U=c[C];if(j&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++C<B;){U=c[C];var H=U[0],te=r[H],ne=U[1];if(j&&U[2]){if(te===n&&!(H in r))return!1}else{var se=new sr;if(m)var be=m(te,ne,H,r,s,se);if(!(be===n?mo(ne,te,E|A,m,se):be))return!1}}return!0}function vg(r){if(!jt(r)||h2(r))return!1;var s=Dr(r)?IE:en;return s.test(_i(r))}function FS(r){return Ut(r)&&yn(r)==ht}function BS(r){return Ut(r)&&hn(r)==Et}function DS(r){return Ut(r)&&uu(r.length)&&!!Dt[yn(r)]}function Ag(r){return typeof r=="function"?r:r==null?xn:typeof r=="object"?Ve(r)?xg(r[0],r[1]):Sg(r):qy(r)}function hl(r){if(!vo(r))return NE(r);var s=[];for(var c in xt(r))At.call(r,c)&&c!="constructor"&&s.push(c);return s}function RS(r){if(!jt(r))return y2(r);var s=vo(r),c=[];for(var m in r)m=="constructor"&&(s||!At.call(r,m))||c.push(m);return c}function pl(r,s){return r<s}function Eg(r,s){var c=-1,m=En(r)?J(r.length):[];return Xr(r,function(C,B,j){m[++c]=s(C,B,j)}),m}function Sg(r){var s=kl(r);return s.length==1&&s[0][2]?ry(s[0][0],s[0][1]):function(c){return c===r||fl(c,r,s)}}function xg(r,s){return Il(r)&&ny(s)?ry(br(r),s):function(c){var m=Ml(c,r);return m===n&&m===s?Ul(c,r):mo(s,m,E|A)}}function Ha(r,s,c,m,C){r!==s&&al(s,function(B,j){if(C||(C=new sr),jt(B))PS(r,s,j,c,Ha,m,C);else{var U=m?m(Bl(r,j),B,j+"",r,s,C):n;U===n&&(U=B),sl(r,j,U)}},Sn)}function PS(r,s,c,m,C,B,j){var U=Bl(r,c),H=Bl(s,c),te=j.get(H);if(te){sl(r,c,te);return}var ne=B?B(U,H,c+"",r,s,j):n,se=ne===n;if(se){var be=Ve(H),_e=!be&&ti(H),Pe=!be&&!_e&&vs(H);ne=H,be||_e||Pe?Ve(U)?ne=U:Jt(U)?ne=An(U):_e?(se=!1,ne=Ng(H,!0)):Pe?(se=!1,ne=Lg(H,!0)):ne=[]:Eo(H)||Ti(H)?(ne=U,Ti(U)?ne=Dy(U):(!jt(U)||Dr(U))&&(ne=ty(H))):se=!1}se&&(j.set(H,ne),C(ne,H,m,B,j),j.delete(H)),sl(r,c,ne)}function Cg(r,s){var c=r.length;if(c)return s+=s<0?c:0,Br(s,c)?r[s]:n}function _g(r,s,c){s.length?s=Pt(s,function(B){return Ve(B)?function(j){return xi(j,B.length===1?B[0]:B)}:B}):s=[xn];var m=-1;s=Pt(s,In(De()));var C=Eg(r,function(B,j,U){var H=Pt(s,function(te){return te(B)});return{criteria:H,index:++m,value:B}});return uE(C,function(B,j){return GS(B,j,c)})}function NS(r,s){return Tg(r,s,function(c,m){return Ul(r,m)})}function Tg(r,s,c){for(var m=-1,C=s.length,B={};++m<C;){var j=s[m],U=xi(r,j);c(U,j)&&bo(B,Zr(j,r),U)}return B}function LS(r){return function(s){return xi(s,r)}}function dl(r,s,c,m){var C=m?aE:cs,B=-1,j=s.length,U=r;for(r===s&&(s=An(s)),c&&(U=Pt(r,In(c)));++B<j;)for(var H=0,te=s[B],ne=c?c(te):te;(H=C(U,ne,H,m))>-1;)U!==r&&Na.call(U,H,1),Na.call(r,H,1);return r}function kg(r,s){for(var c=r?s.length:0,m=c-1;c--;){var C=s[c];if(c==m||C!==B){var B=C;Br(C)?Na.call(r,C,1):bl(r,C)}}return r}function gl(r,s){return r+ja(ug()*(s-r+1))}function $S(r,s,c,m){for(var C=-1,B=rn($a((s-r)/(c||1)),0),j=J(B);B--;)j[m?B:++C]=r,r+=c;return j}function yl(r,s){var c="";if(!r||s<1||s>Te)return c;do s%2&&(c+=r),s=ja(s/2),s&&(r+=r);while(s);return c}function Ze(r,s){return Dl(iy(r,s,xn),r+"")}function jS(r){return fg(As(r))}function MS(r,s){var c=As(r);return nu(c,Si(s,0,c.length))}function bo(r,s,c,m){if(!jt(r))return r;s=Zr(s,r);for(var C=-1,B=s.length,j=B-1,U=r;U!=null&&++C<B;){var H=br(s[C]),te=c;if(H==="__proto__"||H==="constructor"||H==="prototype")return r;if(C!=j){var ne=U[H];te=m?m(ne,H,U):n,te===n&&(te=jt(ne)?ne:Br(s[C+1])?[]:{})}po(U,H,te),U=U[H]}return r}var Og=Ma?function(r,s){return Ma.set(r,s),r}:xn,US=La?function(r,s){return La(r,"toString",{configurable:!0,enumerable:!1,value:ql(s),writable:!0})}:xn;function VS(r){return nu(As(r))}function Gn(r,s,c){var m=-1,C=r.length;s<0&&(s=-s>C?0:C+s),c=c>C?C:c,c<0&&(c+=C),C=s>c?0:c-s>>>0,s>>>=0;for(var B=J(C);++m<C;)B[m]=r[m+s];return B}function qS(r,s){var c;return Xr(r,function(m,C,B){return c=s(m,C,B),!c}),!!c}function za(r,s,c){var m=0,C=r==null?m:r.length;if(typeof s=="number"&&s===s&&C<=G){for(;m<C;){var B=m+C>>>1,j=r[B];j!==null&&!Bn(j)&&(c?j<=s:j<s)?m=B+1:C=B}return C}return ml(r,s,xn,c)}function ml(r,s,c,m){var C=0,B=r==null?0:r.length;if(B===0)return 0;s=c(s);for(var j=s!==s,U=s===null,H=Bn(s),te=s===n;C<B;){var ne=ja((C+B)/2),se=c(r[ne]),be=se!==n,_e=se===null,Pe=se===se,Ye=Bn(se);if(j)var Ne=m||Pe;else te?Ne=Pe&&(m||be):U?Ne=Pe&&be&&(m||!_e):H?Ne=Pe&&be&&!_e&&(m||!Ye):_e||Ye?Ne=!1:Ne=m?se<=s:se<s;Ne?C=ne+1:B=ne}return fn(B,wt)}function Ig(r,s){for(var c=-1,m=r.length,C=0,B=[];++c<m;){var j=r[c],U=s?s(j):j;if(!c||!or(U,H)){var H=U;B[C++]=j===0?0:j}}return B}function Fg(r){return typeof r=="number"?r:Bn(r)?Xe:+r}function Fn(r){if(typeof r=="string")return r;if(Ve(r))return Pt(r,Fn)+"";if(Bn(r))return cg?cg.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Qr(r,s,c){var m=-1,C=_a,B=r.length,j=!0,U=[],H=U;if(c)j=!1,C=Hc;else if(B>=o){var te=s?null:e2(r);if(te)return ka(te);j=!1,C=ao,H=new Ei}else H=s?[]:U;e:for(;++m<B;){var ne=r[m],se=s?s(ne):ne;if(ne=c||ne!==0?ne:0,j&&se===se){for(var be=H.length;be--;)if(H[be]===se)continue e;s&&H.push(se),U.push(ne)}else C(H,se,c)||(H!==U&&H.push(se),U.push(ne))}return U}function bl(r,s){return s=Zr(s,r),r=sy(r,s),r==null||delete r[br(Jn(s))]}function Bg(r,s,c,m){return bo(r,s,c(xi(r,s)),m)}function Ga(r,s,c,m){for(var C=r.length,B=m?C:-1;(m?B--:++B<C)&&s(r[B],B,r););return c?Gn(r,m?0:B,m?B+1:C):Gn(r,m?B+1:0,m?C:B)}function Dg(r,s){var c=r;return c instanceof ot&&(c=c.value()),zc(s,function(m,C){return C.func.apply(C.thisArg,Gr([m],C.args))},c)}function wl(r,s,c){var m=r.length;if(m<2)return m?Qr(r[0]):[];for(var C=-1,B=J(m);++C<m;)for(var j=r[C],U=-1;++U<m;)U!=C&&(B[C]=go(B[C]||j,r[U],s,c));return Qr(cn(B,1),s,c)}function Rg(r,s,c){for(var m=-1,C=r.length,B=s.length,j={};++m<C;){var U=m<B?s[m]:n;c(j,r[m],U)}return j}function vl(r){return Jt(r)?r:[]}function Al(r){return typeof r=="function"?r:xn}function Zr(r,s){return Ve(r)?r:Il(r,s)?[r]:cy(vt(r))}var WS=Ze;function ei(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var Pg=FE||function(r){return un.clearTimeout(r)};function Ng(r,s){if(s)return r.slice();var c=r.length,m=rg?rg(c):new r.constructor(c);return r.copy(m),m}function El(r){var s=new r.constructor(r.byteLength);return new Ra(s).set(new Ra(r)),s}function KS(r,s){var c=s?El(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function HS(r){var s=new r.constructor(r.source,lt.exec(r));return s.lastIndex=r.lastIndex,s}function zS(r){return ho?xt(ho.call(r)):{}}function Lg(r,s){var c=s?El(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function $g(r,s){if(r!==s){var c=r!==n,m=r===null,C=r===r,B=Bn(r),j=s!==n,U=s===null,H=s===s,te=Bn(s);if(!U&&!te&&!B&&r>s||B&&j&&H&&!U&&!te||m&&j&&H||!c&&H||!C)return 1;if(!m&&!B&&!te&&r<s||te&&c&&C&&!m&&!B||U&&c&&C||!j&&C||!H)return-1}return 0}function GS(r,s,c){for(var m=-1,C=r.criteria,B=s.criteria,j=C.length,U=c.length;++m<j;){var H=$g(C[m],B[m]);if(H){if(m>=U)return H;var te=c[m];return H*(te=="desc"?-1:1)}}return r.index-s.index}function jg(r,s,c,m){for(var C=-1,B=r.length,j=c.length,U=-1,H=s.length,te=rn(B-j,0),ne=J(H+te),se=!m;++U<H;)ne[U]=s[U];for(;++C<j;)(se||C<B)&&(ne[c[C]]=r[C]);for(;te--;)ne[U++]=r[C++];return ne}function Mg(r,s,c,m){for(var C=-1,B=r.length,j=-1,U=c.length,H=-1,te=s.length,ne=rn(B-U,0),se=J(ne+te),be=!m;++C<ne;)se[C]=r[C];for(var _e=C;++H<te;)se[_e+H]=s[H];for(;++j<U;)(be||C<B)&&(se[_e+c[j]]=r[C++]);return se}function An(r,s){var c=-1,m=r.length;for(s||(s=J(m));++c<m;)s[c]=r[c];return s}function mr(r,s,c,m){var C=!c;c||(c={});for(var B=-1,j=s.length;++B<j;){var U=s[B],H=m?m(c[U],r[U],U,c,r):n;H===n&&(H=r[U]),C?Or(c,U,H):po(c,U,H)}return c}function JS(r,s){return mr(r,Ol(r),s)}function YS(r,s){return mr(r,Zg(r),s)}function Ja(r,s){return function(c,m){var C=Ve(c)?tE:bS,B=s?s():{};return C(c,r,De(m,2),B)}}function ms(r){return Ze(function(s,c){var m=-1,C=c.length,B=C>1?c[C-1]:n,j=C>2?c[2]:n;for(B=r.length>3&&typeof B=="function"?(C--,B):n,j&&mn(c[0],c[1],j)&&(B=C<3?n:B,C=1),s=xt(s);++m<C;){var U=c[m];U&&r(s,U,m,B)}return s})}function Ug(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var C=c.length,B=s?C:-1,j=xt(c);(s?B--:++B<C)&&m(j[B],B,j)!==!1;);return c}}function Vg(r){return function(s,c,m){for(var C=-1,B=xt(s),j=m(s),U=j.length;U--;){var H=j[r?U:++C];if(c(B[H],H,B)===!1)break}return s}}function XS(r,s,c){var m=s&w,C=wo(r);function B(){var j=this&&this!==un&&this instanceof B?C:r;return j.apply(m?c:this,arguments)}return B}function qg(r){return function(s){s=vt(s);var c=ls(s)?ir(s):n,m=c?c[0]:s.charAt(0),C=c?ei(c,1).join(""):s.slice(1);return m[r]()+C}}function bs(r){return function(s){return zc(Uy(My(s).replace(UA,"")),r,"")}}function wo(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=ys(r.prototype),m=r.apply(c,s);return jt(m)?m:c}}function QS(r,s,c){var m=wo(r);function C(){for(var B=arguments.length,j=J(B),U=B,H=ws(C);U--;)j[U]=arguments[U];var te=B<3&&j[0]!==H&&j[B-1]!==H?[]:Jr(j,H);if(B-=te.length,B<c)return Gg(r,s,Ya,C.placeholder,n,j,te,n,n,c-B);var ne=this&&this!==un&&this instanceof C?m:r;return On(ne,this,j)}return C}function Wg(r){return function(s,c,m){var C=xt(s);if(!En(s)){var B=De(c,3);s=on(s),c=function(U){return B(C[U],U,C)}}var j=r(s,c,m);return j>-1?C[B?s[j]:j]:n}}function Kg(r){return Fr(function(s){var c=s.length,m=c,C=Hn.prototype.thru;for(r&&s.reverse();m--;){var B=s[m];if(typeof B!="function")throw new Kn(u);if(C&&!j&&eu(B)=="wrapper")var j=new Hn([],!0)}for(m=j?m:c;++m<c;){B=s[m];var U=eu(B),H=U=="wrapper"?Tl(B):n;H&&Fl(H[0])&&H[1]==(D|T|I|K)&&!H[4].length&&H[9]==1?j=j[eu(H[0])].apply(j,H[3]):j=B.length==1&&Fl(B)?j[U]():j.thru(B)}return function(){var te=arguments,ne=te[0];if(j&&te.length==1&&Ve(ne))return j.plant(ne).value();for(var se=0,be=c?s[se].apply(this,te):ne;++se<c;)be=s[se].call(this,be);return be}})}function Ya(r,s,c,m,C,B,j,U,H,te){var ne=s&D,se=s&w,be=s&R,_e=s&(T|x),Pe=s&ie,Ye=be?n:wo(r);function Ne(){for(var nt=arguments.length,at=J(nt),Dn=nt;Dn--;)at[Dn]=arguments[Dn];if(_e)var bn=ws(Ne),Rn=lE(at,bn);if(m&&(at=jg(at,m,C,_e)),B&&(at=Mg(at,B,j,_e)),nt-=Rn,_e&&nt<te){var Yt=Jr(at,bn);return Gg(r,s,Ya,Ne.placeholder,c,at,Yt,U,H,te-nt)}var ar=se?c:this,Pr=be?ar[r]:r;return nt=at.length,U?at=b2(at,U):Pe&&nt>1&&at.reverse(),ne&&H<nt&&(at.length=H),this&&this!==un&&this instanceof Ne&&(Pr=Ye||wo(Pr)),Pr.apply(ar,at)}return Ne}function Hg(r,s){return function(c,m){return _S(c,r,s(m),{})}}function Xa(r,s){return function(c,m){var C;if(c===n&&m===n)return s;if(c!==n&&(C=c),m!==n){if(C===n)return m;typeof c=="string"||typeof m=="string"?(c=Fn(c),m=Fn(m)):(c=Fg(c),m=Fg(m)),C=r(c,m)}return C}}function Sl(r){return Fr(function(s){return s=Pt(s,In(De())),Ze(function(c){var m=this;return r(s,function(C){return On(C,m,c)})})})}function Qa(r,s){s=s===n?" ":Fn(s);var c=s.length;if(c<2)return c?yl(s,r):s;var m=yl(s,$a(r/fs(s)));return ls(s)?ei(ir(m),0,r).join(""):m.slice(0,r)}function ZS(r,s,c,m){var C=s&w,B=wo(r);function j(){for(var U=-1,H=arguments.length,te=-1,ne=m.length,se=J(ne+H),be=this&&this!==un&&this instanceof j?B:r;++te<ne;)se[te]=m[te];for(;H--;)se[te++]=arguments[++U];return On(be,C?c:this,se)}return j}function zg(r){return function(s,c,m){return m&&typeof m!="number"&&mn(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),$S(s,c,m,r)}}function Za(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function Gg(r,s,c,m,C,B,j,U,H,te){var ne=s&T,se=ne?j:n,be=ne?n:j,_e=ne?B:n,Pe=ne?n:B;s|=ne?I:O,s&=~(ne?O:I),s&L||(s&=-4);var Ye=[r,s,C,_e,se,Pe,be,U,H,te],Ne=c.apply(n,Ye);return Fl(r)&&oy(Ne,Ye),Ne.placeholder=m,ay(Ne,r,s)}function xl(r){var s=nn[r];return function(c,m){if(c=Yn(c),m=m==null?0:fn(ze(m),292),m&&ag(c)){var C=(vt(c)+"e").split("e"),B=s(C[0]+"e"+(+C[1]+m));return C=(vt(B)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return s(c)}}var e2=ds&&1/ka(new ds([,-0]))[1]==Ie?function(r){return new ds(r)}:Hl;function Jg(r){return function(s){var c=hn(s);return c==Nt?el(s):c==Et?mE(s):cE(s,r(s))}}function Ir(r,s,c,m,C,B,j,U){var H=s&R;if(!H&&typeof r!="function")throw new Kn(u);var te=m?m.length:0;if(te||(s&=-97,m=C=n),j=j===n?j:rn(ze(j),0),U=U===n?U:ze(U),te-=C?C.length:0,s&O){var ne=m,se=C;m=C=n}var be=H?n:Tl(r),_e=[r,s,c,m,C,ne,se,B,j,U];if(be&&g2(_e,be),r=_e[0],s=_e[1],c=_e[2],m=_e[3],C=_e[4],U=_e[9]=_e[9]===n?H?0:r.length:rn(_e[9]-te,0),!U&&s&(T|x)&&(s&=-25),!s||s==w)var Pe=XS(r,s,c);else s==T||s==x?Pe=QS(r,s,U):(s==I||s==(w|I))&&!C.length?Pe=ZS(r,s,c,m):Pe=Ya.apply(n,_e);var Ye=be?Og:oy;return ay(Ye(Pe,_e),r,s)}function Yg(r,s,c,m){return r===n||or(r,ps[c])&&!At.call(m,c)?s:r}function Xg(r,s,c,m,C,B){return jt(r)&&jt(s)&&(B.set(s,r),Ha(r,s,n,Xg,B),B.delete(s)),r}function t2(r){return Eo(r)?n:r}function Qg(r,s,c,m,C,B){var j=c&E,U=r.length,H=s.length;if(U!=H&&!(j&&H>U))return!1;var te=B.get(r),ne=B.get(s);if(te&&ne)return te==s&&ne==r;var se=-1,be=!0,_e=c&A?new Ei:n;for(B.set(r,s),B.set(s,r);++se<U;){var Pe=r[se],Ye=s[se];if(m)var Ne=j?m(Ye,Pe,se,s,r,B):m(Pe,Ye,se,r,s,B);if(Ne!==n){if(Ne)continue;be=!1;break}if(_e){if(!Gc(s,function(nt,at){if(!ao(_e,at)&&(Pe===nt||C(Pe,nt,c,m,B)))return _e.push(at)})){be=!1;break}}else if(!(Pe===Ye||C(Pe,Ye,c,m,B))){be=!1;break}}return B.delete(r),B.delete(s),be}function n2(r,s,c,m,C,B,j){switch(c){case Be:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case ke:return!(r.byteLength!=s.byteLength||!B(new Ra(r),new Ra(s)));case Se:case Fe:case Lt:return or(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case ht:case de:return r==s+"";case Nt:var U=el;case Et:var H=m&E;if(U||(U=ka),r.size!=s.size&&!H)return!1;var te=j.get(r);if(te)return te==s;m|=A,j.set(r,s);var ne=Qg(U(r),U(s),m,C,B,j);return j.delete(r),ne;case Qe:if(ho)return ho.call(r)==ho.call(s)}return!1}function r2(r,s,c,m,C,B){var j=c&E,U=Cl(r),H=U.length,te=Cl(s),ne=te.length;if(H!=ne&&!j)return!1;for(var se=H;se--;){var be=U[se];if(!(j?be in s:At.call(s,be)))return!1}var _e=B.get(r),Pe=B.get(s);if(_e&&Pe)return _e==s&&Pe==r;var Ye=!0;B.set(r,s),B.set(s,r);for(var Ne=j;++se<H;){be=U[se];var nt=r[be],at=s[be];if(m)var Dn=j?m(at,nt,be,s,r,B):m(nt,at,be,r,s,B);if(!(Dn===n?nt===at||C(nt,at,c,m,B):Dn)){Ye=!1;break}Ne||(Ne=be=="constructor")}if(Ye&&!Ne){var bn=r.constructor,Rn=s.constructor;bn!=Rn&&"constructor"in r&&"constructor"in s&&!(typeof bn=="function"&&bn instanceof bn&&typeof Rn=="function"&&Rn instanceof Rn)&&(Ye=!1)}return B.delete(r),B.delete(s),Ye}function Fr(r){return Dl(iy(r,n,py),r+"")}function Cl(r){return bg(r,on,Ol)}function _l(r){return bg(r,Sn,Zg)}var Tl=Ma?function(r){return Ma.get(r)}:Hl;function eu(r){for(var s=r.name+"",c=gs[s],m=At.call(gs,s)?c.length:0;m--;){var C=c[m],B=C.func;if(B==null||B==r)return C.name}return s}function ws(r){var s=At.call(F,"placeholder")?F:r;return s.placeholder}function De(){var r=F.iteratee||Wl;return r=r===Wl?Ag:r,arguments.length?r(arguments[0],arguments[1]):r}function tu(r,s){var c=r.__data__;return f2(s)?c[typeof s=="string"?"string":"hash"]:c.map}function kl(r){for(var s=on(r),c=s.length;c--;){var m=s[c],C=r[m];s[c]=[m,C,ny(C)]}return s}function Ci(r,s){var c=dE(r,s);return vg(c)?c:n}function i2(r){var s=At.call(r,vi),c=r[vi];try{r[vi]=n;var m=!0}catch{}var C=Ba.call(r);return m&&(s?r[vi]=c:delete r[vi]),C}var Ol=nl?function(r){return r==null?[]:(r=xt(r),zr(nl(r),function(s){return sg.call(r,s)}))}:zl,Zg=nl?function(r){for(var s=[];r;)Gr(s,Ol(r)),r=Pa(r);return s}:zl,hn=yn;(rl&&hn(new rl(new ArrayBuffer(1)))!=Be||co&&hn(new co)!=Nt||il&&hn(il.resolve())!=qe||ds&&hn(new ds)!=Et||lo&&hn(new lo)!=it)&&(hn=function(r){var s=yn(r),c=s==Ce?r.constructor:n,m=c?_i(c):"";if(m)switch(m){case ME:return Be;case UE:return Nt;case VE:return qe;case qE:return Et;case WE:return it}return s});function s2(r,s,c){for(var m=-1,C=c.length;++m<C;){var B=c[m],j=B.size;switch(B.type){case"drop":r+=j;break;case"dropRight":s-=j;break;case"take":s=fn(s,r+j);break;case"takeRight":r=rn(r,s-j);break}}return{start:r,end:s}}function o2(r){var s=r.match(gn);return s?s[1].split(M):[]}function ey(r,s,c){s=Zr(s,r);for(var m=-1,C=s.length,B=!1;++m<C;){var j=br(s[m]);if(!(B=r!=null&&c(r,j)))break;r=r[j]}return B||++m!=C?B:(C=r==null?0:r.length,!!C&&uu(C)&&Br(j,C)&&(Ve(r)||Ti(r)))}function a2(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 ty(r){return typeof r.constructor=="function"&&!vo(r)?ys(Pa(r)):{}}function u2(r,s,c){var m=r.constructor;switch(s){case ke:return El(r);case Se:case Fe:return new m(+r);case Be:return KS(r,c);case $t:case _:case p:case b:case P:case V:case z:case X:case $e:return Lg(r,c);case Nt:return new m;case Lt:case de:return new m(r);case ht:return HS(r);case Et:return new m;case Qe:return zS(r)}}function c2(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(ro,`{
|
|
134
134
|
/* [wrapped with `+s+`] */
|
|
135
|
-
`)}function l2(r){return Ve(r)||Ti(r)||!!(og&&r&&r[og])}function Br(r,s){var c=typeof r;return s=s??Te,!!s&&(c=="number"||c!="symbol"&&Rt.test(r))&&r>-1&&r%1==0&&r<s}function mn(r,s,c){if(!jt(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Br(s,c.length):m=="string"&&s in c)?or(c[s],r):!1}function Il(r,s){if(Ve(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Bn(r)?!0:eo.test(r)||!mi.test(r)||s!=null&&r in xt(s)}function f2(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Fl(r){var s=eu(r),c=F[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Tl(c);return!!m&&r===m[0]}function h2(r){return!!ng&&ng in r}var p2=Ia?Dr:Gl;function vo(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ps;return r===c}function ny(r){return r===r&&!jt(r)}function ry(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in xt(c))}}function d2(r){var s=ou(r,function(m){return c.size===y&&c.clear(),m}),c=s.cache;return s}function g2(r,s){var c=r[1],m=s[1],C=c|m,B=C<(w|P|D),j=m==D&&c==T||m==D&&c==K&&r[7].length<=s[8]||m==(D|K)&&s[7].length<=s[8]&&c==T;if(!(B||j))return r;m&w&&(r[2]=s[2],C|=c&w?0:L);var U=s[3];if(U){var H=r[3];r[3]=H?jg(H,U,s[4]):U,r[4]=H?Jr(r[3],g):s[4]}return U=s[5],U&&(H=r[5],r[5]=H?Mg(H,U,s[6]):U,r[6]=H?Jr(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&D&&(r[8]=r[8]==null?s[8]:fn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=C,r}function y2(r){var s=[];if(r!=null)for(var c in xt(r))s.push(c);return s}function m2(r){return Ba.call(r)}function iy(r,s,c){return s=rn(s===n?r.length-1:s,0),function(){for(var m=arguments,C=-1,B=rn(m.length-s,0),j=J(B);++C<B;)j[C]=m[s+C];C=-1;for(var U=J(s+1);++C<s;)U[C]=m[C];return U[s]=c(j),On(r,this,U)}}function sy(r,s){return s.length<2?r:xi(r,Gn(s,0,-1))}function b2(r,s){for(var c=r.length,m=fn(s.length,c),C=An(r);m--;){var B=s[m];r[m]=Br(B,c)?C[B]:n}return r}function Bl(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var oy=uy(Og),Ao=DE||function(r,s){return un.setTimeout(r,s)},Dl=uy(US);function ay(r,s,c){var m=s+"";return Dl(r,c2(m,w2(o2(m),c)))}function uy(r){var s=0,c=0;return function(){var m=LE(),C=we-(m-c);if(c=m,C>0){if(++s>=ye)return arguments[0]}else s=0;return r.apply(n,arguments)}}function nu(r,s){var c=-1,m=r.length,C=m-1;for(s=s===n?m:s;++c<s;){var B=gl(c,C),j=r[B];r[B]=r[c],r[c]=j}return r.length=s,r}var cy=d2(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(to,function(c,m,C,B){s.push(C?B.replace(Oe,"$1"):m||c)}),s});function br(r){if(typeof r=="string"||Bn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function _i(r){if(r!=null){try{return Fa.call(r)}catch{}try{return r+""}catch{}}return""}function w2(r,s){return Wn(Y,function(c){var m="_."+c[0];s&c[1]&&!_a(r,m)&&r.push(m)}),r.sort()}function ly(r){if(r instanceof ot)return r.clone();var s=new Hn(r.__wrapped__,r.__chain__);return s.__actions__=An(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function v2(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=rn(ze(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var C=0,B=0,j=J($a(m/s));C<m;)j[B++]=Gn(r,C,C+=s);return j}function A2(r){for(var s=-1,c=r==null?0:r.length,m=0,C=[];++s<c;){var B=r[s];B&&(C[m++]=B)}return C}function E2(){var r=arguments.length;if(!r)return[];for(var s=J(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Gr(Ve(c)?An(c):[c],cn(s,1))}var S2=Ze(function(r,s){return Jt(r)?go(r,cn(s,1,Jt,!0)):[]}),x2=Ze(function(r,s){var c=Jn(s);return Jt(c)&&(c=n),Jt(r)?go(r,cn(s,1,Jt,!0),De(c,2)):[]}),C2=Ze(function(r,s){var c=Jn(s);return Jt(c)&&(c=n),Jt(r)?go(r,cn(s,1,Jt,!0),n,c):[]});function _2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),Gn(r,s<0?0:s,m)):[]}function T2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function k2(r,s){return r&&r.length?Ga(r,De(s,3),!0,!0):[]}function O2(r,s){return r&&r.length?Ga(r,De(s,3),!0):[]}function I2(r,s,c,m){var C=r==null?0:r.length;return C?(c&&typeof c!="number"&&mn(r,s,c)&&(c=0,m=C),ES(r,s,c,m)):[]}function fy(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=c==null?0:ze(c);return C<0&&(C=rn(m+C,0)),Ta(r,De(s,3),C)}function hy(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=m-1;return c!==n&&(C=ze(c),C=c<0?rn(m+C,0):fn(C,m-1)),Ta(r,De(s,3),C,!0)}function py(r){var s=r==null?0:r.length;return s?cn(r,1):[]}function F2(r){var s=r==null?0:r.length;return s?cn(r,Ie):[]}function B2(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:ze(s),cn(r,s)):[]}function D2(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var C=r[s];m[C[0]]=C[1]}return m}function dy(r){return r&&r.length?r[0]:n}function R2(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=c==null?0:ze(c);return C<0&&(C=rn(m+C,0)),cs(r,s,C)}function P2(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var N2=Ze(function(r){var s=Pt(r,vl);return s.length&&s[0]===r[0]?ll(s):[]}),L2=Ze(function(r){var s=Jn(r),c=Pt(r,vl);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?ll(c,De(s,2)):[]}),$2=Ze(function(r){var s=Jn(r),c=Pt(r,vl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?ll(c,n,s):[]});function j2(r,s){return r==null?"":PE.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function M2(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=m;return c!==n&&(C=ze(c),C=C<0?rn(m+C,0):fn(C,m-1)),s===s?wE(r,s,C):Ta(r,Gd,C,!0)}function U2(r,s){return r&&r.length?Cg(r,ze(s)):n}var V2=Ze(gy);function gy(r,s){return r&&r.length&&s&&s.length?dl(r,s):r}function q2(r,s,c){return r&&r.length&&s&&s.length?dl(r,s,De(c,2)):r}function W2(r,s,c){return r&&r.length&&s&&s.length?dl(r,s,n,c):r}var K2=Fr(function(r,s){var c=r==null?0:r.length,m=ol(r,s);return kg(r,Pt(s,function(C){return Br(C,c)?+C:C}).sort($g)),m});function H2(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,C=[],B=r.length;for(s=De(s,3);++m<B;){var j=r[m];s(j,m,r)&&(c.push(j),C.push(m))}return kg(r,C),c}function Rl(r){return r==null?r:jE.call(r)}function z2(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&mn(r,s,c)?(s=0,c=m):(s=s==null?0:ze(s),c=c===n?m:ze(c)),Gn(r,s,c)):[]}function G2(r,s){return za(r,s)}function J2(r,s,c){return ml(r,s,De(c,2))}function Y2(r,s){var c=r==null?0:r.length;if(c){var m=za(r,s);if(m<c&&or(r[m],s))return m}return-1}function X2(r,s){return za(r,s,!0)}function Q2(r,s,c){return ml(r,s,De(c,2),!0)}function Z2(r,s){var c=r==null?0:r.length;if(c){var m=za(r,s,!0)-1;if(or(r[m],s))return m}return-1}function ex(r){return r&&r.length?Ig(r):[]}function tx(r,s){return r&&r.length?Ig(r,De(s,2)):[]}function nx(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function rx(r,s,c){return r&&r.length?(s=c||s===n?1:ze(s),Gn(r,0,s<0?0:s)):[]}function ix(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function sx(r,s){return r&&r.length?Ga(r,De(s,3),!1,!0):[]}function ox(r,s){return r&&r.length?Ga(r,De(s,3)):[]}var ax=Ze(function(r){return Qr(cn(r,1,Jt,!0))}),ux=Ze(function(r){var s=Jn(r);return Jt(s)&&(s=n),Qr(cn(r,1,Jt,!0),De(s,2))}),cx=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Qr(cn(r,1,Jt,!0),n,s)});function lx(r){return r&&r.length?Qr(r):[]}function fx(r,s){return r&&r.length?Qr(r,De(s,2)):[]}function hx(r,s){return s=typeof s=="function"?s:n,r&&r.length?Qr(r,n,s):[]}function Pl(r){if(!(r&&r.length))return[];var s=0;return r=zr(r,function(c){if(Jt(c))return s=rn(c.length,s),!0}),Qc(s,function(c){return Pt(r,Jc(c))})}function yy(r,s){if(!(r&&r.length))return[];var c=Pl(r);return s==null?c:Pt(c,function(m){return On(s,n,m)})}var px=Ze(function(r,s){return Jt(r)?go(r,s):[]}),dx=Ze(function(r){return wl(zr(r,Jt))}),gx=Ze(function(r){var s=Jn(r);return Jt(s)&&(s=n),wl(zr(r,Jt),De(s,2))}),yx=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,wl(zr(r,Jt),n,s)}),mx=Ze(Pl);function bx(r,s){return Rg(r||[],s||[],po)}function wx(r,s){return Rg(r||[],s||[],bo)}var vx=Ze(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,yy(r,c)});function my(r){var s=F(r);return s.__chain__=!0,s}function Ax(r,s){return s(r),r}function ru(r,s){return s(r)}var Ex=Fr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,C=function(B){return ol(B,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Br(c)?this.thru(C):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:ru,args:[C],thisArg:n}),new Hn(m,this.__chain__).thru(function(B){return s&&!B.length&&B.push(n),B}))});function Sx(){return my(this)}function xx(){return new Hn(this.value(),this.__chain__)}function Cx(){this.__values__===n&&(this.__values__=Fy(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function _x(){return this}function Tx(r){for(var s,c=this;c instanceof Va;){var m=ly(c);m.__index__=0,m.__values__=n,s?C.__wrapped__=m:s=m;var C=m;c=c.__wrapped__}return C.__wrapped__=r,s}function kx(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:ru,args:[Rl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Rl)}function Ox(){return Dg(this.__wrapped__,this.__actions__)}var Ix=Ja(function(r,s,c){At.call(r,c)?++r[c]:Or(r,c,1)});function Fx(r,s,c){var m=Ve(r)?Hd:AS;return c&&mn(r,s,c)&&(s=n),m(r,De(s,3))}function Bx(r,s){var c=Ve(r)?zr:yg;return c(r,De(s,3))}var Dx=Wg(fy),Rx=Wg(hy);function Px(r,s){return cn(iu(r,s),1)}function Nx(r,s){return cn(iu(r,s),Ie)}function Lx(r,s,c){return c=c===n?1:ze(c),cn(iu(r,s),c)}function by(r,s){var c=Ve(r)?Wn:Xr;return c(r,De(s,3))}function wy(r,s){var c=Ve(r)?nE:gg;return c(r,De(s,3))}var $x=Ja(function(r,s,c){At.call(r,c)?r[c].push(s):Or(r,c,[s])});function jx(r,s,c,m){r=En(r)?r:As(r),c=c&&!m?ze(c):0;var C=r.length;return c<0&&(c=rn(C+c,0)),cu(r)?c<=C&&r.indexOf(s,c)>-1:!!C&&cs(r,s,c)>-1}var Mx=Ze(function(r,s,c){var m=-1,C=typeof s=="function",B=En(r)?J(r.length):[];return Xr(r,function(j){B[++m]=C?On(s,j,c):yo(j,s,c)}),B}),Ux=Ja(function(r,s,c){Or(r,c,s)});function iu(r,s){var c=Ve(r)?Pt:Eg;return c(r,De(s,3))}function Vx(r,s,c,m){return r==null?[]:(Ve(s)||(s=s==null?[]:[s]),c=m?n:c,Ve(c)||(c=c==null?[]:[c]),_g(r,s,c))}var qx=Ja(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function Wx(r,s,c){var m=Ve(r)?zc:Yd,C=arguments.length<3;return m(r,De(s,4),c,C,Xr)}function Kx(r,s,c){var m=Ve(r)?rE:Yd,C=arguments.length<3;return m(r,De(s,4),c,C,gg)}function Hx(r,s){var c=Ve(r)?zr:yg;return c(r,au(De(s,3)))}function zx(r){var s=Ve(r)?fg:jS;return s(r)}function Gx(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=ze(s);var m=Ve(r)?yS:MS;return m(r,s)}function Jx(r){var s=Ve(r)?mS:VS;return s(r)}function Yx(r){if(r==null)return 0;if(En(r))return cu(r)?fs(r):r.length;var s=hn(r);return s==Nt||s==Et?r.size:hl(r).length}function Xx(r,s,c){var m=Ve(r)?Gc:qS;return c&&mn(r,s,c)&&(s=n),m(r,De(s,3))}var Qx=Ze(function(r,s){if(r==null)return[];var c=s.length;return c>1&&mn(r,s[0],s[1])?s=[]:c>2&&mn(s[0],s[1],s[2])&&(s=[s[0]]),_g(r,cn(s,1),[])}),su=BE||function(){return un.Date.now()};function Zx(r,s){if(typeof s!="function")throw new Kn(u);return r=ze(r),function(){if(--r<1)return s.apply(this,arguments)}}function vy(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Ir(r,D,n,n,n,n,s)}function Ay(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=ze(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Nl=Ze(function(r,s,c){var m=w;if(c.length){var C=Jr(c,ws(Nl));m|=I}return Ir(r,m,s,c,C)}),Ey=Ze(function(r,s,c){var m=w|P;if(c.length){var C=Jr(c,ws(Ey));m|=I}return Ir(s,m,r,c,C)});function Sy(r,s,c){s=c?n:s;var m=Ir(r,T,n,n,n,n,n,s);return m.placeholder=Sy.placeholder,m}function xy(r,s,c){s=c?n:s;var m=Ir(r,x,n,n,n,n,n,s);return m.placeholder=xy.placeholder,m}function Cy(r,s,c){var m,C,B,j,U,H,te=0,ne=!1,se=!1,be=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,jt(c)&&(ne=!!c.leading,se="maxWait"in c,B=se?rn(Yn(c.maxWait)||0,s):B,be="trailing"in c?!!c.trailing:be);function _e(Yt){var ar=m,Pr=C;return m=C=n,te=Yt,j=r.apply(Pr,ar),j}function Pe(Yt){return te=Yt,U=Ao(nt,s),ne?_e(Yt):j}function Ye(Yt){var ar=Yt-H,Pr=Yt-te,Wy=s-ar;return se?fn(Wy,B-Pr):Wy}function Ne(Yt){var ar=Yt-H,Pr=Yt-te;return H===n||ar>=s||ar<0||se&&Pr>=B}function nt(){var Yt=su();if(Ne(Yt))return at(Yt);U=Ao(nt,Ye(Yt))}function at(Yt){return U=n,be&&m?_e(Yt):(m=C=n,j)}function Dn(){U!==n&&Pg(U),te=0,m=H=C=U=n}function bn(){return U===n?j:at(su())}function Rn(){var Yt=su(),ar=Ne(Yt);if(m=arguments,C=this,H=Yt,ar){if(U===n)return Pe(H);if(se)return Pg(U),U=Ao(nt,s),_e(H)}return U===n&&(U=Ao(nt,s)),j}return Rn.cancel=Dn,Rn.flush=bn,Rn}var eC=Ze(function(r,s){return dg(r,1,s)}),tC=Ze(function(r,s,c){return dg(r,Yn(s)||0,c)});function nC(r){return Ir(r,ie)}function ou(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,C=s?s.apply(this,m):m[0],B=c.cache;if(B.has(C))return B.get(C);var j=r.apply(this,m);return c.cache=B.set(C,j)||B,j};return c.cache=new(ou.Cache||kr),c}ou.Cache=kr;function au(r){if(typeof r!="function")throw new Kn(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 rC(r){return Ay(2,r)}var iC=WS(function(r,s){s=s.length==1&&Ve(s[0])?Pt(s[0],In(De())):Pt(cn(s,1),In(De()));var c=s.length;return Ze(function(m){for(var C=-1,B=fn(m.length,c);++C<B;)m[C]=s[C].call(this,m[C]);return On(r,this,m)})}),Ll=Ze(function(r,s){var c=Jr(s,ws(Ll));return Ir(r,I,n,s,c)}),_y=Ze(function(r,s){var c=Jr(s,ws(_y));return Ir(r,O,n,s,c)}),sC=Fr(function(r,s){return Ir(r,K,n,n,n,s)});function oC(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:ze(s),Ze(r,s)}function aC(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:rn(ze(s),0),Ze(function(c){var m=c[s],C=ei(c,0,s);return m&&Gr(C,m),On(r,this,C)})}function uC(r,s,c){var m=!0,C=!0;if(typeof r!="function")throw new Kn(u);return jt(c)&&(m="leading"in c?!!c.leading:m,C="trailing"in c?!!c.trailing:C),Cy(r,s,{leading:m,maxWait:s,trailing:C})}function cC(r){return vy(r,1)}function lC(r,s){return Ll(Al(s),r)}function fC(){if(!arguments.length)return[];var r=arguments[0];return Ve(r)?r:[r]}function hC(r){return zn(r,k)}function pC(r,s){return s=typeof s=="function"?s:n,zn(r,k,s)}function dC(r){return zn(r,d|k)}function gC(r,s){return s=typeof s=="function"?s:n,zn(r,d|k,s)}function yC(r,s){return s==null||pg(r,s,on(s))}function or(r,s){return r===s||r!==r&&s!==s}var mC=Za(cl),bC=Za(function(r,s){return r>=s}),Ti=wg(function(){return arguments}())?wg:function(r){return Ut(r)&&At.call(r,"callee")&&!sg.call(r,"callee")},Ve=J.isArray,wC=Md?In(Md):TS;function En(r){return r!=null&&uu(r.length)&&!Dr(r)}function Jt(r){return Ut(r)&&En(r)}function vC(r){return r===!0||r===!1||Ut(r)&&yn(r)==Se}var ti=RE||Gl,AC=Ud?In(Ud):kS;function EC(r){return Ut(r)&&r.nodeType===1&&!Eo(r)}function SC(r){if(r==null)return!0;if(En(r)&&(Ve(r)||typeof r=="string"||typeof r.splice=="function"||ti(r)||vs(r)||Ti(r)))return!r.length;var s=hn(r);if(s==Nt||s==Et)return!r.size;if(vo(r))return!hl(r).length;for(var c in r)if(At.call(r,c))return!1;return!0}function xC(r,s){return mo(r,s)}function CC(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?mo(r,s,n,c):!!m}function $l(r){if(!Ut(r))return!1;var s=yn(r);return s==Le||s==je||typeof r.message=="string"&&typeof r.name=="string"&&!Eo(r)}function _C(r){return typeof r=="number"&&ag(r)}function Dr(r){if(!jt(r))return!1;var s=yn(r);return s==Tt||s==sn||s==Ke||s==kt}function Ty(r){return typeof r=="number"&&r==ze(r)}function uu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Te}function jt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Ut(r){return r!=null&&typeof r=="object"}var ky=Vd?In(Vd):IS;function TC(r,s){return r===s||fl(r,s,kl(s))}function kC(r,s,c){return c=typeof c=="function"?c:n,fl(r,s,kl(s),c)}function OC(r){return Oy(r)&&r!=+r}function IC(r){if(p2(r))throw new Me(a);return vg(r)}function FC(r){return r===null}function BC(r){return r==null}function Oy(r){return typeof r=="number"||Ut(r)&&yn(r)==Lt}function Eo(r){if(!Ut(r)||yn(r)!=Ce)return!1;var s=Pa(r);if(s===null)return!0;var c=At.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Fa.call(c)==kE}var jl=qd?In(qd):FS;function DC(r){return Ty(r)&&r>=-9007199254740991&&r<=Te}var Iy=Wd?In(Wd):BS;function cu(r){return typeof r=="string"||!Ve(r)&&Ut(r)&&yn(r)==de}function Bn(r){return typeof r=="symbol"||Ut(r)&&yn(r)==Qe}var vs=Kd?In(Kd):DS;function RC(r){return r===n}function PC(r){return Ut(r)&&hn(r)==it}function NC(r){return Ut(r)&&yn(r)==Mt}var LC=Za(pl),$C=Za(function(r,s){return r<=s});function Fy(r){if(!r)return[];if(En(r))return cu(r)?ir(r):An(r);if(uo&&r[uo])return yE(r[uo]());var s=hn(r),c=s==Nt?el:s==Et?ka:As;return c(r)}function Rr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Ie||r===-1/0){var s=r<0?-1:1;return s*We}return r===r?r:0}function ze(r){var s=Rr(r),c=s%1;return s===s?c?s-c:s:0}function By(r){return r?Si(ze(r),0,Ee):0}function Yn(r){if(typeof r=="number")return r;if(Bn(r))return Xe;if(jt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=jt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=Xd(r);var c=Je.test(r);return c||Bt.test(r)?ZA(r.slice(2),c?2:8):tt.test(r)?Xe:+r}function Dy(r){return mr(r,Sn(r))}function jC(r){return r?Si(ze(r),-9007199254740991,Te):r===0?r:0}function vt(r){return r==null?"":Fn(r)}var MC=ms(function(r,s){if(vo(s)||En(s)){mr(s,on(s),r);return}for(var c in s)At.call(s,c)&&po(r,c,s[c])}),Ry=ms(function(r,s){mr(s,Sn(s),r)}),lu=ms(function(r,s,c,m){mr(s,Sn(s),r,m)}),UC=ms(function(r,s,c,m){mr(s,on(s),r,m)}),VC=Fr(ol);function qC(r,s){var c=ys(r);return s==null?c:hg(c,s)}var WC=Ze(function(r,s){r=xt(r);var c=-1,m=s.length,C=m>2?s[2]:n;for(C&&mn(s[0],s[1],C)&&(m=1);++c<m;)for(var B=s[c],j=Sn(B),U=-1,H=j.length;++U<H;){var te=j[U],ne=r[te];(ne===n||or(ne,ps[te])&&!At.call(r,te))&&(r[te]=B[te])}return r}),KC=Ze(function(r){return r.push(n,Xg),On(Py,n,r)});function HC(r,s){return zd(r,De(s,3),yr)}function zC(r,s){return zd(r,De(s,3),ul)}function GC(r,s){return r==null?r:al(r,De(s,3),Sn)}function JC(r,s){return r==null?r:mg(r,De(s,3),Sn)}function YC(r,s){return r&&yr(r,De(s,3))}function XC(r,s){return r&&ul(r,De(s,3))}function QC(r){return r==null?[]:Ka(r,on(r))}function ZC(r){return r==null?[]:Ka(r,Sn(r))}function Ml(r,s,c){var m=r==null?n:xi(r,s);return m===n?c:m}function e_(r,s){return r!=null&&ey(r,s,SS)}function Ul(r,s){return r!=null&&ey(r,s,xS)}var t_=Hg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ba.call(s)),r[s]=c},ql(xn)),n_=Hg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ba.call(s)),At.call(r,s)?r[s].push(c):r[s]=[c]},De),r_=Ze(yo);function on(r){return En(r)?lg(r):hl(r)}function Sn(r){return En(r)?lg(r,!0):RS(r)}function i_(r,s){var c={};return s=De(s,3),yr(r,function(m,C,B){Or(c,s(m,C,B),m)}),c}function s_(r,s){var c={};return s=De(s,3),yr(r,function(m,C,B){Or(c,C,s(m,C,B))}),c}var o_=ms(function(r,s,c){Ha(r,s,c)}),Py=ms(function(r,s,c,m){Ha(r,s,c,m)}),a_=Fr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Pt(s,function(B){return B=Zr(B,r),m||(m=B.length>1),B}),mr(r,_l(r),c),m&&(c=zn(c,d|v|k,t2));for(var C=s.length;C--;)bl(c,s[C]);return c});function u_(r,s){return Ny(r,au(De(s)))}var c_=Fr(function(r,s){return r==null?{}:NS(r,s)});function Ny(r,s){if(r==null)return{};var c=Pt(_l(r),function(m){return[m]});return s=De(s),Tg(r,c,function(m,C){return s(m,C[0])})}function l_(r,s,c){s=Zr(s,r);var m=-1,C=s.length;for(C||(C=1,r=n);++m<C;){var B=r==null?n:r[br(s[m])];B===n&&(m=C,B=c),r=Dr(B)?B.call(r):B}return r}function f_(r,s,c){return r==null?r:bo(r,s,c)}function h_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:bo(r,s,c,m)}var Ly=Jg(on),$y=Jg(Sn);function p_(r,s,c){var m=Ve(r),C=m||ti(r)||vs(r);if(s=De(s,4),c==null){var B=r&&r.constructor;C?c=m?new B:[]:jt(r)?c=Dr(B)?ys(Pa(r)):{}:c={}}return(C?Wn:yr)(r,function(j,U,H){return s(c,j,U,H)}),c}function d_(r,s){return r==null?!0:bl(r,s)}function g_(r,s,c){return r==null?r:Bg(r,s,Al(c))}function y_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Bg(r,s,Al(c),m)}function As(r){return r==null?[]:Zc(r,on(r))}function m_(r){return r==null?[]:Zc(r,Sn(r))}function b_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Si(Yn(r),s,c)}function w_(r,s,c){return s=Rr(s),c===n?(c=s,s=0):c=Rr(c),r=Yn(r),CS(r,s,c)}function v_(r,s,c){if(c&&typeof c!="boolean"&&mn(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 C=ug();return fn(r+C*(s-r+QA("1e-"+((C+"").length-1))),s)}return gl(r,s)}var A_=bs(function(r,s,c){return s=s.toLowerCase(),r+(c?jy(s):s)});function jy(r){return Vl(vt(r).toLowerCase())}function My(r){return r=vt(r),r&&r.replace(ln,fE).replace(VA,"")}function E_(r,s,c){r=vt(r),s=Fn(s);var m=r.length;c=c===n?m:Si(ze(c),0,m);var C=c;return c-=s.length,c>=0&&r.slice(c,C)==s}function S_(r){return r=vt(r),r&&rs.test(r)?r.replace(qr,hE):r}function x_(r){return r=vt(r),r&&nr.test(r)?r.replace(_r,"\\$&"):r}var C_=bs(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),__=bs(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),T_=qg("toLowerCase");function k_(r,s,c){r=vt(r),s=ze(s);var m=s?fs(r):0;if(!s||m>=s)return r;var C=(s-m)/2;return Qa(ja(C),c)+r+Qa($a(C),c)}function O_(r,s,c){r=vt(r),s=ze(s);var m=s?fs(r):0;return s&&m<s?r+Qa(s-m,c):r}function I_(r,s,c){r=vt(r),s=ze(s);var m=s?fs(r):0;return s&&m<s?Qa(s-m,c)+r:r}function F_(r,s,c){return c||s==null?s=0:s&&(s=+s),$E(vt(r).replace(Kr,""),s||0)}function B_(r,s,c){return(c?mn(r,s,c):s===n)?s=1:s=ze(s),yl(vt(r),s)}function D_(){var r=arguments,s=vt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var R_=bs(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function P_(r,s,c){return c&&typeof c!="number"&&mn(r,s,c)&&(s=c=n),c=c===n?Ee:c>>>0,c?(r=vt(r),r&&(typeof s=="string"||s!=null&&!jl(s))&&(s=Fn(s),!s&&ls(r))?ei(ir(r),0,c):r.split(s,c)):[]}var N_=bs(function(r,s,c){return r+(c?" ":"")+Vl(s)});function L_(r,s,c){return r=vt(r),c=c==null?0:Si(ze(c),0,r.length),s=Fn(s),r.slice(c,c+s.length)==s}function $_(r,s,c){var m=F.templateSettings;c&&mn(r,s,c)&&(s=n),r=vt(r),s=lu({},s,m,Yg);var C=lu({},s.imports,m.imports,Yg),B=on(C),j=Zc(C,B),U,H,te=0,ne=s.interpolate||Tn,se="__p += '",be=tl((s.escape||Tn).source+"|"+ne.source+"|"+(ne===Wr?ct:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),_e="//# sourceURL="+(At.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zA+"]")+`
|
|
135
|
+
`)}function l2(r){return Ve(r)||Ti(r)||!!(og&&r&&r[og])}function Br(r,s){var c=typeof r;return s=s??Te,!!s&&(c=="number"||c!="symbol"&&Rt.test(r))&&r>-1&&r%1==0&&r<s}function mn(r,s,c){if(!jt(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Br(s,c.length):m=="string"&&s in c)?or(c[s],r):!1}function Il(r,s){if(Ve(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Bn(r)?!0:eo.test(r)||!mi.test(r)||s!=null&&r in xt(s)}function f2(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Fl(r){var s=eu(r),c=F[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Tl(c);return!!m&&r===m[0]}function h2(r){return!!ng&&ng in r}var p2=Ia?Dr:Gl;function vo(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ps;return r===c}function ny(r){return r===r&&!jt(r)}function ry(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in xt(c))}}function d2(r){var s=ou(r,function(m){return c.size===y&&c.clear(),m}),c=s.cache;return s}function g2(r,s){var c=r[1],m=s[1],C=c|m,B=C<(w|R|D),j=m==D&&c==T||m==D&&c==K&&r[7].length<=s[8]||m==(D|K)&&s[7].length<=s[8]&&c==T;if(!(B||j))return r;m&w&&(r[2]=s[2],C|=c&w?0:L);var U=s[3];if(U){var H=r[3];r[3]=H?jg(H,U,s[4]):U,r[4]=H?Jr(r[3],g):s[4]}return U=s[5],U&&(H=r[5],r[5]=H?Mg(H,U,s[6]):U,r[6]=H?Jr(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&D&&(r[8]=r[8]==null?s[8]:fn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=C,r}function y2(r){var s=[];if(r!=null)for(var c in xt(r))s.push(c);return s}function m2(r){return Ba.call(r)}function iy(r,s,c){return s=rn(s===n?r.length-1:s,0),function(){for(var m=arguments,C=-1,B=rn(m.length-s,0),j=J(B);++C<B;)j[C]=m[s+C];C=-1;for(var U=J(s+1);++C<s;)U[C]=m[C];return U[s]=c(j),On(r,this,U)}}function sy(r,s){return s.length<2?r:xi(r,Gn(s,0,-1))}function b2(r,s){for(var c=r.length,m=fn(s.length,c),C=An(r);m--;){var B=s[m];r[m]=Br(B,c)?C[B]:n}return r}function Bl(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var oy=uy(Og),Ao=DE||function(r,s){return un.setTimeout(r,s)},Dl=uy(US);function ay(r,s,c){var m=s+"";return Dl(r,c2(m,w2(o2(m),c)))}function uy(r){var s=0,c=0;return function(){var m=LE(),C=we-(m-c);if(c=m,C>0){if(++s>=ye)return arguments[0]}else s=0;return r.apply(n,arguments)}}function nu(r,s){var c=-1,m=r.length,C=m-1;for(s=s===n?m:s;++c<s;){var B=gl(c,C),j=r[B];r[B]=r[c],r[c]=j}return r.length=s,r}var cy=d2(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(to,function(c,m,C,B){s.push(C?B.replace(Oe,"$1"):m||c)}),s});function br(r){if(typeof r=="string"||Bn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function _i(r){if(r!=null){try{return Fa.call(r)}catch{}try{return r+""}catch{}}return""}function w2(r,s){return Wn(Y,function(c){var m="_."+c[0];s&c[1]&&!_a(r,m)&&r.push(m)}),r.sort()}function ly(r){if(r instanceof ot)return r.clone();var s=new Hn(r.__wrapped__,r.__chain__);return s.__actions__=An(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function v2(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=rn(ze(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var C=0,B=0,j=J($a(m/s));C<m;)j[B++]=Gn(r,C,C+=s);return j}function A2(r){for(var s=-1,c=r==null?0:r.length,m=0,C=[];++s<c;){var B=r[s];B&&(C[m++]=B)}return C}function E2(){var r=arguments.length;if(!r)return[];for(var s=J(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Gr(Ve(c)?An(c):[c],cn(s,1))}var S2=Ze(function(r,s){return Jt(r)?go(r,cn(s,1,Jt,!0)):[]}),x2=Ze(function(r,s){var c=Jn(s);return Jt(c)&&(c=n),Jt(r)?go(r,cn(s,1,Jt,!0),De(c,2)):[]}),C2=Ze(function(r,s){var c=Jn(s);return Jt(c)&&(c=n),Jt(r)?go(r,cn(s,1,Jt,!0),n,c):[]});function _2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),Gn(r,s<0?0:s,m)):[]}function T2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function k2(r,s){return r&&r.length?Ga(r,De(s,3),!0,!0):[]}function O2(r,s){return r&&r.length?Ga(r,De(s,3),!0):[]}function I2(r,s,c,m){var C=r==null?0:r.length;return C?(c&&typeof c!="number"&&mn(r,s,c)&&(c=0,m=C),ES(r,s,c,m)):[]}function fy(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=c==null?0:ze(c);return C<0&&(C=rn(m+C,0)),Ta(r,De(s,3),C)}function hy(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=m-1;return c!==n&&(C=ze(c),C=c<0?rn(m+C,0):fn(C,m-1)),Ta(r,De(s,3),C,!0)}function py(r){var s=r==null?0:r.length;return s?cn(r,1):[]}function F2(r){var s=r==null?0:r.length;return s?cn(r,Ie):[]}function B2(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:ze(s),cn(r,s)):[]}function D2(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var C=r[s];m[C[0]]=C[1]}return m}function dy(r){return r&&r.length?r[0]:n}function R2(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=c==null?0:ze(c);return C<0&&(C=rn(m+C,0)),cs(r,s,C)}function P2(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var N2=Ze(function(r){var s=Pt(r,vl);return s.length&&s[0]===r[0]?ll(s):[]}),L2=Ze(function(r){var s=Jn(r),c=Pt(r,vl);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?ll(c,De(s,2)):[]}),$2=Ze(function(r){var s=Jn(r),c=Pt(r,vl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?ll(c,n,s):[]});function j2(r,s){return r==null?"":PE.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function M2(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=m;return c!==n&&(C=ze(c),C=C<0?rn(m+C,0):fn(C,m-1)),s===s?wE(r,s,C):Ta(r,Gd,C,!0)}function U2(r,s){return r&&r.length?Cg(r,ze(s)):n}var V2=Ze(gy);function gy(r,s){return r&&r.length&&s&&s.length?dl(r,s):r}function q2(r,s,c){return r&&r.length&&s&&s.length?dl(r,s,De(c,2)):r}function W2(r,s,c){return r&&r.length&&s&&s.length?dl(r,s,n,c):r}var K2=Fr(function(r,s){var c=r==null?0:r.length,m=ol(r,s);return kg(r,Pt(s,function(C){return Br(C,c)?+C:C}).sort($g)),m});function H2(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,C=[],B=r.length;for(s=De(s,3);++m<B;){var j=r[m];s(j,m,r)&&(c.push(j),C.push(m))}return kg(r,C),c}function Rl(r){return r==null?r:jE.call(r)}function z2(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&mn(r,s,c)?(s=0,c=m):(s=s==null?0:ze(s),c=c===n?m:ze(c)),Gn(r,s,c)):[]}function G2(r,s){return za(r,s)}function J2(r,s,c){return ml(r,s,De(c,2))}function Y2(r,s){var c=r==null?0:r.length;if(c){var m=za(r,s);if(m<c&&or(r[m],s))return m}return-1}function X2(r,s){return za(r,s,!0)}function Q2(r,s,c){return ml(r,s,De(c,2),!0)}function Z2(r,s){var c=r==null?0:r.length;if(c){var m=za(r,s,!0)-1;if(or(r[m],s))return m}return-1}function ex(r){return r&&r.length?Ig(r):[]}function tx(r,s){return r&&r.length?Ig(r,De(s,2)):[]}function nx(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function rx(r,s,c){return r&&r.length?(s=c||s===n?1:ze(s),Gn(r,0,s<0?0:s)):[]}function ix(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function sx(r,s){return r&&r.length?Ga(r,De(s,3),!1,!0):[]}function ox(r,s){return r&&r.length?Ga(r,De(s,3)):[]}var ax=Ze(function(r){return Qr(cn(r,1,Jt,!0))}),ux=Ze(function(r){var s=Jn(r);return Jt(s)&&(s=n),Qr(cn(r,1,Jt,!0),De(s,2))}),cx=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Qr(cn(r,1,Jt,!0),n,s)});function lx(r){return r&&r.length?Qr(r):[]}function fx(r,s){return r&&r.length?Qr(r,De(s,2)):[]}function hx(r,s){return s=typeof s=="function"?s:n,r&&r.length?Qr(r,n,s):[]}function Pl(r){if(!(r&&r.length))return[];var s=0;return r=zr(r,function(c){if(Jt(c))return s=rn(c.length,s),!0}),Qc(s,function(c){return Pt(r,Jc(c))})}function yy(r,s){if(!(r&&r.length))return[];var c=Pl(r);return s==null?c:Pt(c,function(m){return On(s,n,m)})}var px=Ze(function(r,s){return Jt(r)?go(r,s):[]}),dx=Ze(function(r){return wl(zr(r,Jt))}),gx=Ze(function(r){var s=Jn(r);return Jt(s)&&(s=n),wl(zr(r,Jt),De(s,2))}),yx=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,wl(zr(r,Jt),n,s)}),mx=Ze(Pl);function bx(r,s){return Rg(r||[],s||[],po)}function wx(r,s){return Rg(r||[],s||[],bo)}var vx=Ze(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,yy(r,c)});function my(r){var s=F(r);return s.__chain__=!0,s}function Ax(r,s){return s(r),r}function ru(r,s){return s(r)}var Ex=Fr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,C=function(B){return ol(B,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Br(c)?this.thru(C):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:ru,args:[C],thisArg:n}),new Hn(m,this.__chain__).thru(function(B){return s&&!B.length&&B.push(n),B}))});function Sx(){return my(this)}function xx(){return new Hn(this.value(),this.__chain__)}function Cx(){this.__values__===n&&(this.__values__=Fy(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function _x(){return this}function Tx(r){for(var s,c=this;c instanceof Va;){var m=ly(c);m.__index__=0,m.__values__=n,s?C.__wrapped__=m:s=m;var C=m;c=c.__wrapped__}return C.__wrapped__=r,s}function kx(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:ru,args:[Rl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Rl)}function Ox(){return Dg(this.__wrapped__,this.__actions__)}var Ix=Ja(function(r,s,c){At.call(r,c)?++r[c]:Or(r,c,1)});function Fx(r,s,c){var m=Ve(r)?Hd:AS;return c&&mn(r,s,c)&&(s=n),m(r,De(s,3))}function Bx(r,s){var c=Ve(r)?zr:yg;return c(r,De(s,3))}var Dx=Wg(fy),Rx=Wg(hy);function Px(r,s){return cn(iu(r,s),1)}function Nx(r,s){return cn(iu(r,s),Ie)}function Lx(r,s,c){return c=c===n?1:ze(c),cn(iu(r,s),c)}function by(r,s){var c=Ve(r)?Wn:Xr;return c(r,De(s,3))}function wy(r,s){var c=Ve(r)?nE:gg;return c(r,De(s,3))}var $x=Ja(function(r,s,c){At.call(r,c)?r[c].push(s):Or(r,c,[s])});function jx(r,s,c,m){r=En(r)?r:As(r),c=c&&!m?ze(c):0;var C=r.length;return c<0&&(c=rn(C+c,0)),cu(r)?c<=C&&r.indexOf(s,c)>-1:!!C&&cs(r,s,c)>-1}var Mx=Ze(function(r,s,c){var m=-1,C=typeof s=="function",B=En(r)?J(r.length):[];return Xr(r,function(j){B[++m]=C?On(s,j,c):yo(j,s,c)}),B}),Ux=Ja(function(r,s,c){Or(r,c,s)});function iu(r,s){var c=Ve(r)?Pt:Eg;return c(r,De(s,3))}function Vx(r,s,c,m){return r==null?[]:(Ve(s)||(s=s==null?[]:[s]),c=m?n:c,Ve(c)||(c=c==null?[]:[c]),_g(r,s,c))}var qx=Ja(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function Wx(r,s,c){var m=Ve(r)?zc:Yd,C=arguments.length<3;return m(r,De(s,4),c,C,Xr)}function Kx(r,s,c){var m=Ve(r)?rE:Yd,C=arguments.length<3;return m(r,De(s,4),c,C,gg)}function Hx(r,s){var c=Ve(r)?zr:yg;return c(r,au(De(s,3)))}function zx(r){var s=Ve(r)?fg:jS;return s(r)}function Gx(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=ze(s);var m=Ve(r)?yS:MS;return m(r,s)}function Jx(r){var s=Ve(r)?mS:VS;return s(r)}function Yx(r){if(r==null)return 0;if(En(r))return cu(r)?fs(r):r.length;var s=hn(r);return s==Nt||s==Et?r.size:hl(r).length}function Xx(r,s,c){var m=Ve(r)?Gc:qS;return c&&mn(r,s,c)&&(s=n),m(r,De(s,3))}var Qx=Ze(function(r,s){if(r==null)return[];var c=s.length;return c>1&&mn(r,s[0],s[1])?s=[]:c>2&&mn(s[0],s[1],s[2])&&(s=[s[0]]),_g(r,cn(s,1),[])}),su=BE||function(){return un.Date.now()};function Zx(r,s){if(typeof s!="function")throw new Kn(u);return r=ze(r),function(){if(--r<1)return s.apply(this,arguments)}}function vy(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Ir(r,D,n,n,n,n,s)}function Ay(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=ze(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Nl=Ze(function(r,s,c){var m=w;if(c.length){var C=Jr(c,ws(Nl));m|=I}return Ir(r,m,s,c,C)}),Ey=Ze(function(r,s,c){var m=w|R;if(c.length){var C=Jr(c,ws(Ey));m|=I}return Ir(s,m,r,c,C)});function Sy(r,s,c){s=c?n:s;var m=Ir(r,T,n,n,n,n,n,s);return m.placeholder=Sy.placeholder,m}function xy(r,s,c){s=c?n:s;var m=Ir(r,x,n,n,n,n,n,s);return m.placeholder=xy.placeholder,m}function Cy(r,s,c){var m,C,B,j,U,H,te=0,ne=!1,se=!1,be=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,jt(c)&&(ne=!!c.leading,se="maxWait"in c,B=se?rn(Yn(c.maxWait)||0,s):B,be="trailing"in c?!!c.trailing:be);function _e(Yt){var ar=m,Pr=C;return m=C=n,te=Yt,j=r.apply(Pr,ar),j}function Pe(Yt){return te=Yt,U=Ao(nt,s),ne?_e(Yt):j}function Ye(Yt){var ar=Yt-H,Pr=Yt-te,Wy=s-ar;return se?fn(Wy,B-Pr):Wy}function Ne(Yt){var ar=Yt-H,Pr=Yt-te;return H===n||ar>=s||ar<0||se&&Pr>=B}function nt(){var Yt=su();if(Ne(Yt))return at(Yt);U=Ao(nt,Ye(Yt))}function at(Yt){return U=n,be&&m?_e(Yt):(m=C=n,j)}function Dn(){U!==n&&Pg(U),te=0,m=H=C=U=n}function bn(){return U===n?j:at(su())}function Rn(){var Yt=su(),ar=Ne(Yt);if(m=arguments,C=this,H=Yt,ar){if(U===n)return Pe(H);if(se)return Pg(U),U=Ao(nt,s),_e(H)}return U===n&&(U=Ao(nt,s)),j}return Rn.cancel=Dn,Rn.flush=bn,Rn}var eC=Ze(function(r,s){return dg(r,1,s)}),tC=Ze(function(r,s,c){return dg(r,Yn(s)||0,c)});function nC(r){return Ir(r,ie)}function ou(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,C=s?s.apply(this,m):m[0],B=c.cache;if(B.has(C))return B.get(C);var j=r.apply(this,m);return c.cache=B.set(C,j)||B,j};return c.cache=new(ou.Cache||kr),c}ou.Cache=kr;function au(r){if(typeof r!="function")throw new Kn(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 rC(r){return Ay(2,r)}var iC=WS(function(r,s){s=s.length==1&&Ve(s[0])?Pt(s[0],In(De())):Pt(cn(s,1),In(De()));var c=s.length;return Ze(function(m){for(var C=-1,B=fn(m.length,c);++C<B;)m[C]=s[C].call(this,m[C]);return On(r,this,m)})}),Ll=Ze(function(r,s){var c=Jr(s,ws(Ll));return Ir(r,I,n,s,c)}),_y=Ze(function(r,s){var c=Jr(s,ws(_y));return Ir(r,O,n,s,c)}),sC=Fr(function(r,s){return Ir(r,K,n,n,n,s)});function oC(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:ze(s),Ze(r,s)}function aC(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:rn(ze(s),0),Ze(function(c){var m=c[s],C=ei(c,0,s);return m&&Gr(C,m),On(r,this,C)})}function uC(r,s,c){var m=!0,C=!0;if(typeof r!="function")throw new Kn(u);return jt(c)&&(m="leading"in c?!!c.leading:m,C="trailing"in c?!!c.trailing:C),Cy(r,s,{leading:m,maxWait:s,trailing:C})}function cC(r){return vy(r,1)}function lC(r,s){return Ll(Al(s),r)}function fC(){if(!arguments.length)return[];var r=arguments[0];return Ve(r)?r:[r]}function hC(r){return zn(r,k)}function pC(r,s){return s=typeof s=="function"?s:n,zn(r,k,s)}function dC(r){return zn(r,d|k)}function gC(r,s){return s=typeof s=="function"?s:n,zn(r,d|k,s)}function yC(r,s){return s==null||pg(r,s,on(s))}function or(r,s){return r===s||r!==r&&s!==s}var mC=Za(cl),bC=Za(function(r,s){return r>=s}),Ti=wg(function(){return arguments}())?wg:function(r){return Ut(r)&&At.call(r,"callee")&&!sg.call(r,"callee")},Ve=J.isArray,wC=Md?In(Md):TS;function En(r){return r!=null&&uu(r.length)&&!Dr(r)}function Jt(r){return Ut(r)&&En(r)}function vC(r){return r===!0||r===!1||Ut(r)&&yn(r)==Se}var ti=RE||Gl,AC=Ud?In(Ud):kS;function EC(r){return Ut(r)&&r.nodeType===1&&!Eo(r)}function SC(r){if(r==null)return!0;if(En(r)&&(Ve(r)||typeof r=="string"||typeof r.splice=="function"||ti(r)||vs(r)||Ti(r)))return!r.length;var s=hn(r);if(s==Nt||s==Et)return!r.size;if(vo(r))return!hl(r).length;for(var c in r)if(At.call(r,c))return!1;return!0}function xC(r,s){return mo(r,s)}function CC(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?mo(r,s,n,c):!!m}function $l(r){if(!Ut(r))return!1;var s=yn(r);return s==Le||s==je||typeof r.message=="string"&&typeof r.name=="string"&&!Eo(r)}function _C(r){return typeof r=="number"&&ag(r)}function Dr(r){if(!jt(r))return!1;var s=yn(r);return s==Tt||s==sn||s==Ke||s==kt}function Ty(r){return typeof r=="number"&&r==ze(r)}function uu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Te}function jt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Ut(r){return r!=null&&typeof r=="object"}var ky=Vd?In(Vd):IS;function TC(r,s){return r===s||fl(r,s,kl(s))}function kC(r,s,c){return c=typeof c=="function"?c:n,fl(r,s,kl(s),c)}function OC(r){return Oy(r)&&r!=+r}function IC(r){if(p2(r))throw new Me(a);return vg(r)}function FC(r){return r===null}function BC(r){return r==null}function Oy(r){return typeof r=="number"||Ut(r)&&yn(r)==Lt}function Eo(r){if(!Ut(r)||yn(r)!=Ce)return!1;var s=Pa(r);if(s===null)return!0;var c=At.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Fa.call(c)==kE}var jl=qd?In(qd):FS;function DC(r){return Ty(r)&&r>=-9007199254740991&&r<=Te}var Iy=Wd?In(Wd):BS;function cu(r){return typeof r=="string"||!Ve(r)&&Ut(r)&&yn(r)==de}function Bn(r){return typeof r=="symbol"||Ut(r)&&yn(r)==Qe}var vs=Kd?In(Kd):DS;function RC(r){return r===n}function PC(r){return Ut(r)&&hn(r)==it}function NC(r){return Ut(r)&&yn(r)==Mt}var LC=Za(pl),$C=Za(function(r,s){return r<=s});function Fy(r){if(!r)return[];if(En(r))return cu(r)?ir(r):An(r);if(uo&&r[uo])return yE(r[uo]());var s=hn(r),c=s==Nt?el:s==Et?ka:As;return c(r)}function Rr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Ie||r===-1/0){var s=r<0?-1:1;return s*We}return r===r?r:0}function ze(r){var s=Rr(r),c=s%1;return s===s?c?s-c:s:0}function By(r){return r?Si(ze(r),0,Ee):0}function Yn(r){if(typeof r=="number")return r;if(Bn(r))return Xe;if(jt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=jt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=Xd(r);var c=Je.test(r);return c||Bt.test(r)?ZA(r.slice(2),c?2:8):tt.test(r)?Xe:+r}function Dy(r){return mr(r,Sn(r))}function jC(r){return r?Si(ze(r),-9007199254740991,Te):r===0?r:0}function vt(r){return r==null?"":Fn(r)}var MC=ms(function(r,s){if(vo(s)||En(s)){mr(s,on(s),r);return}for(var c in s)At.call(s,c)&&po(r,c,s[c])}),Ry=ms(function(r,s){mr(s,Sn(s),r)}),lu=ms(function(r,s,c,m){mr(s,Sn(s),r,m)}),UC=ms(function(r,s,c,m){mr(s,on(s),r,m)}),VC=Fr(ol);function qC(r,s){var c=ys(r);return s==null?c:hg(c,s)}var WC=Ze(function(r,s){r=xt(r);var c=-1,m=s.length,C=m>2?s[2]:n;for(C&&mn(s[0],s[1],C)&&(m=1);++c<m;)for(var B=s[c],j=Sn(B),U=-1,H=j.length;++U<H;){var te=j[U],ne=r[te];(ne===n||or(ne,ps[te])&&!At.call(r,te))&&(r[te]=B[te])}return r}),KC=Ze(function(r){return r.push(n,Xg),On(Py,n,r)});function HC(r,s){return zd(r,De(s,3),yr)}function zC(r,s){return zd(r,De(s,3),ul)}function GC(r,s){return r==null?r:al(r,De(s,3),Sn)}function JC(r,s){return r==null?r:mg(r,De(s,3),Sn)}function YC(r,s){return r&&yr(r,De(s,3))}function XC(r,s){return r&&ul(r,De(s,3))}function QC(r){return r==null?[]:Ka(r,on(r))}function ZC(r){return r==null?[]:Ka(r,Sn(r))}function Ml(r,s,c){var m=r==null?n:xi(r,s);return m===n?c:m}function e_(r,s){return r!=null&&ey(r,s,SS)}function Ul(r,s){return r!=null&&ey(r,s,xS)}var t_=Hg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ba.call(s)),r[s]=c},ql(xn)),n_=Hg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ba.call(s)),At.call(r,s)?r[s].push(c):r[s]=[c]},De),r_=Ze(yo);function on(r){return En(r)?lg(r):hl(r)}function Sn(r){return En(r)?lg(r,!0):RS(r)}function i_(r,s){var c={};return s=De(s,3),yr(r,function(m,C,B){Or(c,s(m,C,B),m)}),c}function s_(r,s){var c={};return s=De(s,3),yr(r,function(m,C,B){Or(c,C,s(m,C,B))}),c}var o_=ms(function(r,s,c){Ha(r,s,c)}),Py=ms(function(r,s,c,m){Ha(r,s,c,m)}),a_=Fr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Pt(s,function(B){return B=Zr(B,r),m||(m=B.length>1),B}),mr(r,_l(r),c),m&&(c=zn(c,d|v|k,t2));for(var C=s.length;C--;)bl(c,s[C]);return c});function u_(r,s){return Ny(r,au(De(s)))}var c_=Fr(function(r,s){return r==null?{}:NS(r,s)});function Ny(r,s){if(r==null)return{};var c=Pt(_l(r),function(m){return[m]});return s=De(s),Tg(r,c,function(m,C){return s(m,C[0])})}function l_(r,s,c){s=Zr(s,r);var m=-1,C=s.length;for(C||(C=1,r=n);++m<C;){var B=r==null?n:r[br(s[m])];B===n&&(m=C,B=c),r=Dr(B)?B.call(r):B}return r}function f_(r,s,c){return r==null?r:bo(r,s,c)}function h_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:bo(r,s,c,m)}var Ly=Jg(on),$y=Jg(Sn);function p_(r,s,c){var m=Ve(r),C=m||ti(r)||vs(r);if(s=De(s,4),c==null){var B=r&&r.constructor;C?c=m?new B:[]:jt(r)?c=Dr(B)?ys(Pa(r)):{}:c={}}return(C?Wn:yr)(r,function(j,U,H){return s(c,j,U,H)}),c}function d_(r,s){return r==null?!0:bl(r,s)}function g_(r,s,c){return r==null?r:Bg(r,s,Al(c))}function y_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Bg(r,s,Al(c),m)}function As(r){return r==null?[]:Zc(r,on(r))}function m_(r){return r==null?[]:Zc(r,Sn(r))}function b_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Si(Yn(r),s,c)}function w_(r,s,c){return s=Rr(s),c===n?(c=s,s=0):c=Rr(c),r=Yn(r),CS(r,s,c)}function v_(r,s,c){if(c&&typeof c!="boolean"&&mn(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 C=ug();return fn(r+C*(s-r+QA("1e-"+((C+"").length-1))),s)}return gl(r,s)}var A_=bs(function(r,s,c){return s=s.toLowerCase(),r+(c?jy(s):s)});function jy(r){return Vl(vt(r).toLowerCase())}function My(r){return r=vt(r),r&&r.replace(ln,fE).replace(VA,"")}function E_(r,s,c){r=vt(r),s=Fn(s);var m=r.length;c=c===n?m:Si(ze(c),0,m);var C=c;return c-=s.length,c>=0&&r.slice(c,C)==s}function S_(r){return r=vt(r),r&&rs.test(r)?r.replace(qr,hE):r}function x_(r){return r=vt(r),r&&nr.test(r)?r.replace(_r,"\\$&"):r}var C_=bs(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),__=bs(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),T_=qg("toLowerCase");function k_(r,s,c){r=vt(r),s=ze(s);var m=s?fs(r):0;if(!s||m>=s)return r;var C=(s-m)/2;return Qa(ja(C),c)+r+Qa($a(C),c)}function O_(r,s,c){r=vt(r),s=ze(s);var m=s?fs(r):0;return s&&m<s?r+Qa(s-m,c):r}function I_(r,s,c){r=vt(r),s=ze(s);var m=s?fs(r):0;return s&&m<s?Qa(s-m,c)+r:r}function F_(r,s,c){return c||s==null?s=0:s&&(s=+s),$E(vt(r).replace(Kr,""),s||0)}function B_(r,s,c){return(c?mn(r,s,c):s===n)?s=1:s=ze(s),yl(vt(r),s)}function D_(){var r=arguments,s=vt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var R_=bs(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function P_(r,s,c){return c&&typeof c!="number"&&mn(r,s,c)&&(s=c=n),c=c===n?Ee:c>>>0,c?(r=vt(r),r&&(typeof s=="string"||s!=null&&!jl(s))&&(s=Fn(s),!s&&ls(r))?ei(ir(r),0,c):r.split(s,c)):[]}var N_=bs(function(r,s,c){return r+(c?" ":"")+Vl(s)});function L_(r,s,c){return r=vt(r),c=c==null?0:Si(ze(c),0,r.length),s=Fn(s),r.slice(c,c+s.length)==s}function $_(r,s,c){var m=F.templateSettings;c&&mn(r,s,c)&&(s=n),r=vt(r),s=lu({},s,m,Yg);var C=lu({},s.imports,m.imports,Yg),B=on(C),j=Zc(C,B),U,H,te=0,ne=s.interpolate||Tn,se="__p += '",be=tl((s.escape||Tn).source+"|"+ne.source+"|"+(ne===Wr?ct:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),_e="//# sourceURL="+(At.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zA+"]")+`
|
|
136
136
|
`;r.replace(be,function(Ne,nt,at,Dn,bn,Rn){return at||(at=Dn),se+=r.slice(te,Rn).replace(rr,pE),nt&&(U=!0,se+=`' +
|
|
137
137
|
__e(`+nt+`) +
|
|
138
138
|
'`),bn&&(H=!0,se+=`';
|
|
@@ -149,7 +149,7 @@ __p += '`),at&&(se+=`' +
|
|
|
149
149
|
function print() { __p += __j.call(arguments, '') }
|
|
150
150
|
`:`;
|
|
151
151
|
`)+se+`return __p
|
|
152
|
-
}`;var Ye=Vy(function(){return bt(B,_e+"return "+se).apply(n,j)});if(Ye.source=se,$l(Ye))throw Ye;return Ye}function j_(r){return vt(r).toLowerCase()}function M_(r){return vt(r).toUpperCase()}function U_(r,s,c){if(r=vt(r),r&&(c||s===n))return Xd(r);if(!r||!(s=Fn(s)))return r;var m=ir(r),C=ir(s),B=Qd(m,C),j=Zd(m,C)+1;return ei(m,B,j).join("")}function V_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.slice(0,tg(r)+1);if(!r||!(s=Fn(s)))return r;var m=ir(r),C=Zd(m,ir(s))+1;return ei(m,0,C).join("")}function q_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.replace(Kr,"");if(!r||!(s=Fn(s)))return r;var m=ir(r),C=Qd(m,ir(s));return ei(m,C).join("")}function W_(r,s){var c=ce,m=fe;if(jt(s)){var C="separator"in s?s.separator:C;c="length"in s?ze(s.length):c,m="omission"in s?Fn(s.omission):m}r=vt(r);var B=r.length;if(ls(r)){var j=ir(r);B=j.length}if(c>=B)return r;var U=c-fs(m);if(U<1)return m;var H=j?ei(j,0,U).join(""):r.slice(0,U);if(C===n)return H+m;if(j&&(U+=H.length-U),jl(C)){if(r.slice(U).search(C)){var te,ne=H;for(C.global||(C=tl(C.source,vt(lt.exec(C))+"g")),C.lastIndex=0;te=C.exec(ne);)var se=te.index;H=H.slice(0,se===n?U:se)}}else if(r.indexOf(Fn(C),U)!=U){var be=H.lastIndexOf(C);be>-1&&(H=H.slice(0,be))}return H+m}function K_(r){return r=vt(r),r&&yi.test(r)?r.replace(st,vE):r}var H_=bs(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Vl=qg("toUpperCase");function Uy(r,s,c){return r=vt(r),s=c?n:s,s===n?gE(r)?SE(r):oE(r):r.match(s)||[]}var Vy=Ze(function(r,s){try{return On(r,n,s)}catch(c){return $l(c)?c:new Me(c)}}),z_=Fr(function(r,s){return Wn(s,function(c){c=br(c),Or(r,c,Nl(r[c],r))}),r});function G_(r){var s=r==null?0:r.length,c=De();return r=s?Pt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],Ze(function(m){for(var C=-1;++C<s;){var B=r[C];if(On(B[0],this,m))return On(B[1],this,m)}})}function J_(r){return vS(zn(r,d))}function ql(r){return function(){return r}}function Y_(r,s){return r==null||r!==r?s:r}var X_=Kg(),Q_=Kg(!0);function xn(r){return r}function Wl(r){return Ag(typeof r=="function"?r:zn(r,d))}function Z_(r){return Sg(zn(r,d))}function eT(r,s){return xg(r,zn(s,d))}var tT=Ze(function(r,s){return function(c){return yo(c,r,s)}}),nT=Ze(function(r,s){return function(c){return yo(r,c,s)}});function Kl(r,s,c){var m=on(s),C=Ka(s,m);c==null&&!(jt(s)&&(C.length||!m.length))&&(c=s,s=r,r=this,C=Ka(s,on(s)));var B=!(jt(c)&&"chain"in c)||!!c.chain,j=Dr(r);return Wn(C,function(U){var H=s[U];r[U]=H,j&&(r.prototype[U]=function(){var te=this.__chain__;if(B||te){var ne=r(this.__wrapped__),se=ne.__actions__=An(this.__actions__);return se.push({func:H,args:arguments,thisArg:r}),ne.__chain__=te,ne}return H.apply(r,Gr([this.value()],arguments))})}),r}function rT(){return un._===this&&(un._=OE),this}function Hl(){}function iT(r){return r=ze(r),Ze(function(s){return Cg(s,r)})}var sT=Sl(Pt),oT=Sl(Hd),aT=Sl(Gc);function qy(r){return Il(r)?Jc(br(r)):LS(r)}function uT(r){return function(s){return r==null?n:xi(r,s)}}var cT=zg(),lT=zg(!0);function zl(){return[]}function Gl(){return!1}function fT(){return{}}function hT(){return""}function pT(){return!0}function dT(r,s){if(r=ze(r),r<1||r>Te)return[];var c=Ee,m=fn(r,Ee);s=De(s),r-=Ee;for(var C=Qc(m,s);++c<r;)s(c);return C}function gT(r){return Ve(r)?Pt(r,br):Bn(r)?[r]:An(cy(vt(r)))}function yT(r){var s=++TE;return vt(r)+s}var mT=Xa(function(r,s){return r+s},0),bT=xl("ceil"),wT=Xa(function(r,s){return r/s},1),vT=xl("floor");function AT(r){return r&&r.length?Wa(r,xn,cl):n}function ET(r,s){return r&&r.length?Wa(r,De(s,2),cl):n}function ST(r){return Jd(r,xn)}function xT(r,s){return Jd(r,De(s,2))}function CT(r){return r&&r.length?Wa(r,xn,pl):n}function _T(r,s){return r&&r.length?Wa(r,De(s,2),pl):n}var TT=Xa(function(r,s){return r*s},1),kT=xl("round"),OT=Xa(function(r,s){return r-s},0);function IT(r){return r&&r.length?Xc(r,xn):0}function FT(r,s){return r&&r.length?Xc(r,De(s,2)):0}return F.after=Zx,F.ary=vy,F.assign=MC,F.assignIn=Ry,F.assignInWith=lu,F.assignWith=UC,F.at=VC,F.before=Ay,F.bind=Nl,F.bindAll=z_,F.bindKey=Ey,F.castArray=fC,F.chain=my,F.chunk=v2,F.compact=A2,F.concat=E2,F.cond=G_,F.conforms=J_,F.constant=ql,F.countBy=Ix,F.create=qC,F.curry=Sy,F.curryRight=xy,F.debounce=Cy,F.defaults=WC,F.defaultsDeep=KC,F.defer=eC,F.delay=tC,F.difference=S2,F.differenceBy=x2,F.differenceWith=C2,F.drop=_2,F.dropRight=T2,F.dropRightWhile=k2,F.dropWhile=O2,F.fill=I2,F.filter=Bx,F.flatMap=Px,F.flatMapDeep=Nx,F.flatMapDepth=Lx,F.flatten=py,F.flattenDeep=F2,F.flattenDepth=B2,F.flip=nC,F.flow=X_,F.flowRight=Q_,F.fromPairs=D2,F.functions=QC,F.functionsIn=ZC,F.groupBy=$x,F.initial=P2,F.intersection=N2,F.intersectionBy=L2,F.intersectionWith=$2,F.invert=t_,F.invertBy=n_,F.invokeMap=Mx,F.iteratee=Wl,F.keyBy=Ux,F.keys=on,F.keysIn=Sn,F.map=iu,F.mapKeys=i_,F.mapValues=s_,F.matches=Z_,F.matchesProperty=eT,F.memoize=ou,F.merge=o_,F.mergeWith=Py,F.method=tT,F.methodOf=nT,F.mixin=Kl,F.negate=au,F.nthArg=iT,F.omit=a_,F.omitBy=u_,F.once=rC,F.orderBy=Vx,F.over=sT,F.overArgs=iC,F.overEvery=oT,F.overSome=aT,F.partial=Ll,F.partialRight=_y,F.partition=qx,F.pick=c_,F.pickBy=Ny,F.property=qy,F.propertyOf=uT,F.pull=V2,F.pullAll=gy,F.pullAllBy=q2,F.pullAllWith=W2,F.pullAt=K2,F.range=cT,F.rangeRight=lT,F.rearg=sC,F.reject=Hx,F.remove=H2,F.rest=oC,F.reverse=Rl,F.sampleSize=Gx,F.set=f_,F.setWith=h_,F.shuffle=Jx,F.slice=z2,F.sortBy=Qx,F.sortedUniq=ex,F.sortedUniqBy=tx,F.split=P_,F.spread=aC,F.tail=nx,F.take=rx,F.takeRight=ix,F.takeRightWhile=sx,F.takeWhile=ox,F.tap=Ax,F.throttle=uC,F.thru=ru,F.toArray=Fy,F.toPairs=Ly,F.toPairsIn=$y,F.toPath=gT,F.toPlainObject=Dy,F.transform=p_,F.unary=cC,F.union=ax,F.unionBy=ux,F.unionWith=cx,F.uniq=lx,F.uniqBy=fx,F.uniqWith=hx,F.unset=d_,F.unzip=Pl,F.unzipWith=yy,F.update=g_,F.updateWith=y_,F.values=As,F.valuesIn=m_,F.without=px,F.words=Uy,F.wrap=lC,F.xor=dx,F.xorBy=gx,F.xorWith=yx,F.zip=mx,F.zipObject=bx,F.zipObjectDeep=wx,F.zipWith=vx,F.entries=Ly,F.entriesIn=$y,F.extend=Ry,F.extendWith=lu,Kl(F,F),F.add=mT,F.attempt=Vy,F.camelCase=A_,F.capitalize=jy,F.ceil=bT,F.clamp=b_,F.clone=hC,F.cloneDeep=dC,F.cloneDeepWith=gC,F.cloneWith=pC,F.conformsTo=yC,F.deburr=My,F.defaultTo=Y_,F.divide=wT,F.endsWith=E_,F.eq=or,F.escape=S_,F.escapeRegExp=x_,F.every=Fx,F.find=Dx,F.findIndex=fy,F.findKey=HC,F.findLast=Rx,F.findLastIndex=hy,F.findLastKey=zC,F.floor=vT,F.forEach=by,F.forEachRight=wy,F.forIn=GC,F.forInRight=JC,F.forOwn=YC,F.forOwnRight=XC,F.get=Ml,F.gt=mC,F.gte=bC,F.has=e_,F.hasIn=Ul,F.head=dy,F.identity=xn,F.includes=jx,F.indexOf=R2,F.inRange=w_,F.invoke=r_,F.isArguments=Ti,F.isArray=Ve,F.isArrayBuffer=wC,F.isArrayLike=En,F.isArrayLikeObject=Jt,F.isBoolean=vC,F.isBuffer=ti,F.isDate=AC,F.isElement=EC,F.isEmpty=SC,F.isEqual=xC,F.isEqualWith=CC,F.isError=$l,F.isFinite=_C,F.isFunction=Dr,F.isInteger=Ty,F.isLength=uu,F.isMap=ky,F.isMatch=TC,F.isMatchWith=kC,F.isNaN=OC,F.isNative=IC,F.isNil=BC,F.isNull=FC,F.isNumber=Oy,F.isObject=jt,F.isObjectLike=Ut,F.isPlainObject=Eo,F.isRegExp=jl,F.isSafeInteger=DC,F.isSet=Iy,F.isString=cu,F.isSymbol=Bn,F.isTypedArray=vs,F.isUndefined=RC,F.isWeakMap=PC,F.isWeakSet=NC,F.join=j2,F.kebabCase=C_,F.last=Jn,F.lastIndexOf=M2,F.lowerCase=__,F.lowerFirst=T_,F.lt=LC,F.lte=$C,F.max=AT,F.maxBy=ET,F.mean=ST,F.meanBy=xT,F.min=CT,F.minBy=_T,F.stubArray=zl,F.stubFalse=Gl,F.stubObject=fT,F.stubString=hT,F.stubTrue=pT,F.multiply=TT,F.nth=U2,F.noConflict=rT,F.noop=Hl,F.now=su,F.pad=k_,F.padEnd=O_,F.padStart=I_,F.parseInt=F_,F.random=v_,F.reduce=Wx,F.reduceRight=Kx,F.repeat=B_,F.replace=D_,F.result=l_,F.round=kT,F.runInContext=W,F.sample=zx,F.size=Yx,F.snakeCase=R_,F.some=Xx,F.sortedIndex=G2,F.sortedIndexBy=J2,F.sortedIndexOf=Y2,F.sortedLastIndex=X2,F.sortedLastIndexBy=Q2,F.sortedLastIndexOf=Z2,F.startCase=N_,F.startsWith=L_,F.subtract=OT,F.sum=IT,F.sumBy=FT,F.template=$_,F.times=dT,F.toFinite=Rr,F.toInteger=ze,F.toLength=By,F.toLower=j_,F.toNumber=Yn,F.toSafeInteger=jC,F.toString=vt,F.toUpper=M_,F.trim=U_,F.trimEnd=V_,F.trimStart=q_,F.truncate=W_,F.unescape=K_,F.uniqueId=yT,F.upperCase=H_,F.upperFirst=Vl,F.each=by,F.eachRight=wy,F.first=dy,Kl(F,function(){var r={};return yr(F,function(s,c){At.call(F.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),F.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){F[r].placeholder=F}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:rn(ze(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=fn(c,m.__takeCount__):m.__views__.push({size:fn(c,Ee),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==ge||c==Re;ot.prototype[r]=function(C){var B=this.clone();return B.__iteratees__.push({iteratee:De(C,3),type:c}),B.__filtered__=B.__filtered__||m,B}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(xn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=Ze(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return yo(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(au(De(r)))},ot.prototype.slice=function(r,s){r=ze(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=ze(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(Ee)},yr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),C=F[m?"take"+(s=="last"?"Right":""):s],B=m||/^find/.test(s);C&&(F.prototype[s]=function(){var j=this.__wrapped__,U=m?[1]:arguments,H=j instanceof ot,te=U[0],ne=H||Ve(j),se=function(nt){var at=C.apply(F,Gr([nt],U));return m&&be?at[0]:at};ne&&c&&typeof te=="function"&&te.length!=1&&(H=ne=!1);var be=this.__chain__,_e=!!this.__actions__.length,Pe=B&&!be,Ye=H&&!_e;if(!B&&ne){j=Ye?j:new ot(this);var Ne=r.apply(j,U);return Ne.__actions__.push({func:ru,args:[se],thisArg:n}),new Hn(Ne,be)}return Pe&&Ye?r.apply(this,U):(Ne=this.thru(se),Pe?m?Ne.value()[0]:Ne.value():Ne)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Oa[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);F.prototype[r]=function(){var C=arguments;if(m&&!this.__chain__){var B=this.value();return s.apply(Ve(B)?B:[],C)}return this[c](function(j){return s.apply(Ve(j)?j:[],C)})}}),yr(ot.prototype,function(r,s){var c=F[s];if(c){var m=c.name+"";At.call(gs,m)||(gs[m]=[]),gs[m].push({name:s,func:c})}}),gs[Ya(n,P).name]=[{name:"wrapper",func:n}],ot.prototype.clone=KE,ot.prototype.reverse=HE,ot.prototype.value=zE,F.prototype.at=Ex,F.prototype.chain=Sx,F.prototype.commit=xx,F.prototype.next=Cx,F.prototype.plant=Tx,F.prototype.reverse=kx,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Ox,F.prototype.first=F.prototype.head,uo&&(F.prototype[uo]=_x),F},hs=xE();wi?((wi.exports=hs)._=hs,Wc._=hs):un._=hs}).call(Xn)}(Ho,Ho.exports);var Fs=Ho.exports;const yt=pu(Fs),N1={ShortenedText:Ct.div`
|
|
152
|
+
}`;var Ye=Vy(function(){return bt(B,_e+"return "+se).apply(n,j)});if(Ye.source=se,$l(Ye))throw Ye;return Ye}function j_(r){return vt(r).toLowerCase()}function M_(r){return vt(r).toUpperCase()}function U_(r,s,c){if(r=vt(r),r&&(c||s===n))return Xd(r);if(!r||!(s=Fn(s)))return r;var m=ir(r),C=ir(s),B=Qd(m,C),j=Zd(m,C)+1;return ei(m,B,j).join("")}function V_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.slice(0,tg(r)+1);if(!r||!(s=Fn(s)))return r;var m=ir(r),C=Zd(m,ir(s))+1;return ei(m,0,C).join("")}function q_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.replace(Kr,"");if(!r||!(s=Fn(s)))return r;var m=ir(r),C=Qd(m,ir(s));return ei(m,C).join("")}function W_(r,s){var c=ce,m=fe;if(jt(s)){var C="separator"in s?s.separator:C;c="length"in s?ze(s.length):c,m="omission"in s?Fn(s.omission):m}r=vt(r);var B=r.length;if(ls(r)){var j=ir(r);B=j.length}if(c>=B)return r;var U=c-fs(m);if(U<1)return m;var H=j?ei(j,0,U).join(""):r.slice(0,U);if(C===n)return H+m;if(j&&(U+=H.length-U),jl(C)){if(r.slice(U).search(C)){var te,ne=H;for(C.global||(C=tl(C.source,vt(lt.exec(C))+"g")),C.lastIndex=0;te=C.exec(ne);)var se=te.index;H=H.slice(0,se===n?U:se)}}else if(r.indexOf(Fn(C),U)!=U){var be=H.lastIndexOf(C);be>-1&&(H=H.slice(0,be))}return H+m}function K_(r){return r=vt(r),r&&yi.test(r)?r.replace(st,vE):r}var H_=bs(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Vl=qg("toUpperCase");function Uy(r,s,c){return r=vt(r),s=c?n:s,s===n?gE(r)?SE(r):oE(r):r.match(s)||[]}var Vy=Ze(function(r,s){try{return On(r,n,s)}catch(c){return $l(c)?c:new Me(c)}}),z_=Fr(function(r,s){return Wn(s,function(c){c=br(c),Or(r,c,Nl(r[c],r))}),r});function G_(r){var s=r==null?0:r.length,c=De();return r=s?Pt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],Ze(function(m){for(var C=-1;++C<s;){var B=r[C];if(On(B[0],this,m))return On(B[1],this,m)}})}function J_(r){return vS(zn(r,d))}function ql(r){return function(){return r}}function Y_(r,s){return r==null||r!==r?s:r}var X_=Kg(),Q_=Kg(!0);function xn(r){return r}function Wl(r){return Ag(typeof r=="function"?r:zn(r,d))}function Z_(r){return Sg(zn(r,d))}function eT(r,s){return xg(r,zn(s,d))}var tT=Ze(function(r,s){return function(c){return yo(c,r,s)}}),nT=Ze(function(r,s){return function(c){return yo(r,c,s)}});function Kl(r,s,c){var m=on(s),C=Ka(s,m);c==null&&!(jt(s)&&(C.length||!m.length))&&(c=s,s=r,r=this,C=Ka(s,on(s)));var B=!(jt(c)&&"chain"in c)||!!c.chain,j=Dr(r);return Wn(C,function(U){var H=s[U];r[U]=H,j&&(r.prototype[U]=function(){var te=this.__chain__;if(B||te){var ne=r(this.__wrapped__),se=ne.__actions__=An(this.__actions__);return se.push({func:H,args:arguments,thisArg:r}),ne.__chain__=te,ne}return H.apply(r,Gr([this.value()],arguments))})}),r}function rT(){return un._===this&&(un._=OE),this}function Hl(){}function iT(r){return r=ze(r),Ze(function(s){return Cg(s,r)})}var sT=Sl(Pt),oT=Sl(Hd),aT=Sl(Gc);function qy(r){return Il(r)?Jc(br(r)):LS(r)}function uT(r){return function(s){return r==null?n:xi(r,s)}}var cT=zg(),lT=zg(!0);function zl(){return[]}function Gl(){return!1}function fT(){return{}}function hT(){return""}function pT(){return!0}function dT(r,s){if(r=ze(r),r<1||r>Te)return[];var c=Ee,m=fn(r,Ee);s=De(s),r-=Ee;for(var C=Qc(m,s);++c<r;)s(c);return C}function gT(r){return Ve(r)?Pt(r,br):Bn(r)?[r]:An(cy(vt(r)))}function yT(r){var s=++TE;return vt(r)+s}var mT=Xa(function(r,s){return r+s},0),bT=xl("ceil"),wT=Xa(function(r,s){return r/s},1),vT=xl("floor");function AT(r){return r&&r.length?Wa(r,xn,cl):n}function ET(r,s){return r&&r.length?Wa(r,De(s,2),cl):n}function ST(r){return Jd(r,xn)}function xT(r,s){return Jd(r,De(s,2))}function CT(r){return r&&r.length?Wa(r,xn,pl):n}function _T(r,s){return r&&r.length?Wa(r,De(s,2),pl):n}var TT=Xa(function(r,s){return r*s},1),kT=xl("round"),OT=Xa(function(r,s){return r-s},0);function IT(r){return r&&r.length?Xc(r,xn):0}function FT(r,s){return r&&r.length?Xc(r,De(s,2)):0}return F.after=Zx,F.ary=vy,F.assign=MC,F.assignIn=Ry,F.assignInWith=lu,F.assignWith=UC,F.at=VC,F.before=Ay,F.bind=Nl,F.bindAll=z_,F.bindKey=Ey,F.castArray=fC,F.chain=my,F.chunk=v2,F.compact=A2,F.concat=E2,F.cond=G_,F.conforms=J_,F.constant=ql,F.countBy=Ix,F.create=qC,F.curry=Sy,F.curryRight=xy,F.debounce=Cy,F.defaults=WC,F.defaultsDeep=KC,F.defer=eC,F.delay=tC,F.difference=S2,F.differenceBy=x2,F.differenceWith=C2,F.drop=_2,F.dropRight=T2,F.dropRightWhile=k2,F.dropWhile=O2,F.fill=I2,F.filter=Bx,F.flatMap=Px,F.flatMapDeep=Nx,F.flatMapDepth=Lx,F.flatten=py,F.flattenDeep=F2,F.flattenDepth=B2,F.flip=nC,F.flow=X_,F.flowRight=Q_,F.fromPairs=D2,F.functions=QC,F.functionsIn=ZC,F.groupBy=$x,F.initial=P2,F.intersection=N2,F.intersectionBy=L2,F.intersectionWith=$2,F.invert=t_,F.invertBy=n_,F.invokeMap=Mx,F.iteratee=Wl,F.keyBy=Ux,F.keys=on,F.keysIn=Sn,F.map=iu,F.mapKeys=i_,F.mapValues=s_,F.matches=Z_,F.matchesProperty=eT,F.memoize=ou,F.merge=o_,F.mergeWith=Py,F.method=tT,F.methodOf=nT,F.mixin=Kl,F.negate=au,F.nthArg=iT,F.omit=a_,F.omitBy=u_,F.once=rC,F.orderBy=Vx,F.over=sT,F.overArgs=iC,F.overEvery=oT,F.overSome=aT,F.partial=Ll,F.partialRight=_y,F.partition=qx,F.pick=c_,F.pickBy=Ny,F.property=qy,F.propertyOf=uT,F.pull=V2,F.pullAll=gy,F.pullAllBy=q2,F.pullAllWith=W2,F.pullAt=K2,F.range=cT,F.rangeRight=lT,F.rearg=sC,F.reject=Hx,F.remove=H2,F.rest=oC,F.reverse=Rl,F.sampleSize=Gx,F.set=f_,F.setWith=h_,F.shuffle=Jx,F.slice=z2,F.sortBy=Qx,F.sortedUniq=ex,F.sortedUniqBy=tx,F.split=P_,F.spread=aC,F.tail=nx,F.take=rx,F.takeRight=ix,F.takeRightWhile=sx,F.takeWhile=ox,F.tap=Ax,F.throttle=uC,F.thru=ru,F.toArray=Fy,F.toPairs=Ly,F.toPairsIn=$y,F.toPath=gT,F.toPlainObject=Dy,F.transform=p_,F.unary=cC,F.union=ax,F.unionBy=ux,F.unionWith=cx,F.uniq=lx,F.uniqBy=fx,F.uniqWith=hx,F.unset=d_,F.unzip=Pl,F.unzipWith=yy,F.update=g_,F.updateWith=y_,F.values=As,F.valuesIn=m_,F.without=px,F.words=Uy,F.wrap=lC,F.xor=dx,F.xorBy=gx,F.xorWith=yx,F.zip=mx,F.zipObject=bx,F.zipObjectDeep=wx,F.zipWith=vx,F.entries=Ly,F.entriesIn=$y,F.extend=Ry,F.extendWith=lu,Kl(F,F),F.add=mT,F.attempt=Vy,F.camelCase=A_,F.capitalize=jy,F.ceil=bT,F.clamp=b_,F.clone=hC,F.cloneDeep=dC,F.cloneDeepWith=gC,F.cloneWith=pC,F.conformsTo=yC,F.deburr=My,F.defaultTo=Y_,F.divide=wT,F.endsWith=E_,F.eq=or,F.escape=S_,F.escapeRegExp=x_,F.every=Fx,F.find=Dx,F.findIndex=fy,F.findKey=HC,F.findLast=Rx,F.findLastIndex=hy,F.findLastKey=zC,F.floor=vT,F.forEach=by,F.forEachRight=wy,F.forIn=GC,F.forInRight=JC,F.forOwn=YC,F.forOwnRight=XC,F.get=Ml,F.gt=mC,F.gte=bC,F.has=e_,F.hasIn=Ul,F.head=dy,F.identity=xn,F.includes=jx,F.indexOf=R2,F.inRange=w_,F.invoke=r_,F.isArguments=Ti,F.isArray=Ve,F.isArrayBuffer=wC,F.isArrayLike=En,F.isArrayLikeObject=Jt,F.isBoolean=vC,F.isBuffer=ti,F.isDate=AC,F.isElement=EC,F.isEmpty=SC,F.isEqual=xC,F.isEqualWith=CC,F.isError=$l,F.isFinite=_C,F.isFunction=Dr,F.isInteger=Ty,F.isLength=uu,F.isMap=ky,F.isMatch=TC,F.isMatchWith=kC,F.isNaN=OC,F.isNative=IC,F.isNil=BC,F.isNull=FC,F.isNumber=Oy,F.isObject=jt,F.isObjectLike=Ut,F.isPlainObject=Eo,F.isRegExp=jl,F.isSafeInteger=DC,F.isSet=Iy,F.isString=cu,F.isSymbol=Bn,F.isTypedArray=vs,F.isUndefined=RC,F.isWeakMap=PC,F.isWeakSet=NC,F.join=j2,F.kebabCase=C_,F.last=Jn,F.lastIndexOf=M2,F.lowerCase=__,F.lowerFirst=T_,F.lt=LC,F.lte=$C,F.max=AT,F.maxBy=ET,F.mean=ST,F.meanBy=xT,F.min=CT,F.minBy=_T,F.stubArray=zl,F.stubFalse=Gl,F.stubObject=fT,F.stubString=hT,F.stubTrue=pT,F.multiply=TT,F.nth=U2,F.noConflict=rT,F.noop=Hl,F.now=su,F.pad=k_,F.padEnd=O_,F.padStart=I_,F.parseInt=F_,F.random=v_,F.reduce=Wx,F.reduceRight=Kx,F.repeat=B_,F.replace=D_,F.result=l_,F.round=kT,F.runInContext=W,F.sample=zx,F.size=Yx,F.snakeCase=R_,F.some=Xx,F.sortedIndex=G2,F.sortedIndexBy=J2,F.sortedIndexOf=Y2,F.sortedLastIndex=X2,F.sortedLastIndexBy=Q2,F.sortedLastIndexOf=Z2,F.startCase=N_,F.startsWith=L_,F.subtract=OT,F.sum=IT,F.sumBy=FT,F.template=$_,F.times=dT,F.toFinite=Rr,F.toInteger=ze,F.toLength=By,F.toLower=j_,F.toNumber=Yn,F.toSafeInteger=jC,F.toString=vt,F.toUpper=M_,F.trim=U_,F.trimEnd=V_,F.trimStart=q_,F.truncate=W_,F.unescape=K_,F.uniqueId=yT,F.upperCase=H_,F.upperFirst=Vl,F.each=by,F.eachRight=wy,F.first=dy,Kl(F,function(){var r={};return yr(F,function(s,c){At.call(F.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),F.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){F[r].placeholder=F}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:rn(ze(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=fn(c,m.__takeCount__):m.__views__.push({size:fn(c,Ee),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==ge||c==Re;ot.prototype[r]=function(C){var B=this.clone();return B.__iteratees__.push({iteratee:De(C,3),type:c}),B.__filtered__=B.__filtered__||m,B}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(xn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=Ze(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return yo(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(au(De(r)))},ot.prototype.slice=function(r,s){r=ze(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=ze(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(Ee)},yr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),C=F[m?"take"+(s=="last"?"Right":""):s],B=m||/^find/.test(s);C&&(F.prototype[s]=function(){var j=this.__wrapped__,U=m?[1]:arguments,H=j instanceof ot,te=U[0],ne=H||Ve(j),se=function(nt){var at=C.apply(F,Gr([nt],U));return m&&be?at[0]:at};ne&&c&&typeof te=="function"&&te.length!=1&&(H=ne=!1);var be=this.__chain__,_e=!!this.__actions__.length,Pe=B&&!be,Ye=H&&!_e;if(!B&&ne){j=Ye?j:new ot(this);var Ne=r.apply(j,U);return Ne.__actions__.push({func:ru,args:[se],thisArg:n}),new Hn(Ne,be)}return Pe&&Ye?r.apply(this,U):(Ne=this.thru(se),Pe?m?Ne.value()[0]:Ne.value():Ne)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Oa[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);F.prototype[r]=function(){var C=arguments;if(m&&!this.__chain__){var B=this.value();return s.apply(Ve(B)?B:[],C)}return this[c](function(j){return s.apply(Ve(j)?j:[],C)})}}),yr(ot.prototype,function(r,s){var c=F[s];if(c){var m=c.name+"";At.call(gs,m)||(gs[m]=[]),gs[m].push({name:s,func:c})}}),gs[Ya(n,R).name]=[{name:"wrapper",func:n}],ot.prototype.clone=KE,ot.prototype.reverse=HE,ot.prototype.value=zE,F.prototype.at=Ex,F.prototype.chain=Sx,F.prototype.commit=xx,F.prototype.next=Cx,F.prototype.plant=Tx,F.prototype.reverse=kx,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Ox,F.prototype.first=F.prototype.head,uo&&(F.prototype[uo]=_x),F},hs=xE();wi?((wi.exports=hs)._=hs,Wc._=hs):un._=hs}).call(Xn)}(Ho,Ho.exports);var Fs=Ho.exports;const yt=pu(Fs),N1={ShortenedText:Ct.div`
|
|
153
153
|
max-width: ${({$maxWidth:e})=>e}px;
|
|
154
154
|
overflow: hidden;
|
|
155
155
|
white-space: nowrap;
|
|
@@ -208,16 +208,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
208
208
|
height: 24px !important;
|
|
209
209
|
`,M1=Ct.div`
|
|
210
210
|
text-align: ${({$align:e})=>e};
|
|
211
|
-
`,_h=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>$.jsx(ue.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?$.jsxs(ue.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),$.jsx(ue.Tooltip,{title:$.jsx($.Fragment,{children:n(e.slice(t))}),children:$.jsxs(ue.Tag,{children:["+",e.length-t]},"more")})]}):$.jsx(ue.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Th=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),kh=({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)?Th(f)?$.jsx(_h,{tags:Object.entries(f).map(([y,g])=>`${y}: ${String(g)}`),trimLength:u}):$.jsx(Ui,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(y=>y&&!Array.isArray(y))?$.jsx(_h,{tags:f.map(y=>y.toLocaleString()),trimLength:u}):$.jsx(Ui,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?$.jsx(Qt.CheckOutlined,{style:{color:"green"}}):$.jsx(Qt.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?$.jsx(Ui,{trimLength:u,text:String(f)}):typeof f=="string"?$.jsx(Ui,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?$.jsx(Ui,{trimLength:u,text:a}):$.jsx(Ui,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:y,confirm:g,clearFilters:d,close:v})=>$.jsx(L1,{setSelectedKeys:f,selectedKeys:y,confirm:g,clearFilters:d,close:v}),filterIcon:f=>$.jsx(Qt.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,y)=>{const{dataIndex:g}=o,d=Array.isArray(g)?Fs.get(y,g):y[g];if(typeof d=="object"&&!Array.isArray(d))return JSON.stringify(d).toLowerCase().includes(f.toLowerCase());if(Array.isArray(d))return d.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof d=="boolean"){const v=f.toLowerCase()==="true";return d===v}return typeof d=="number"?String(d).includes(f.toLowerCase()):typeof d=="string"?d.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,y)=>{const{dataIndex:g}=o,d=Array.isArray(g)?Fs.get(f,g):f[g],v=Array.isArray(g)?Fs.get(y,g):y[g];return typeof d=="object"&&!Array.isArray(d)&&d!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(d).length-Object.keys(v).length:Object.keys(d).length?-1:1:Array.isArray(d)?Array.isArray(v)?d.length-v.length:d.length?-1:1:typeof d=="boolean"?d===v?0:d?-1:1:typeof d=="number"?typeof v=="number"?d-v:d?-1:1:typeof d=="string"?typeof v=="string"?d.localeCompare(v):d?-1:1:0}}})},Oh=({enrichedColumns:e,navigate:t,baseprefix:n})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:i=>$.jsxs(M1,{$align:"right",className:"hideable",children:[$.jsx(Ch,{type:"text",size:"small",onClick:o=>{o.stopPropagation(),t(`${n}/${i.cluster}${i.namespace?`/${i.namespace}`:""}${i.syntheticProject?`/${i.syntheticProject}`:""}/${i.pathPrefix}/${i.apiGroupAndVersion}/${i.typeName}/${i.entryName}?backlink=${i.backlink}`)},icon:$.jsx(Qt.EditOutlined,{size:14}),disabled:!i.permissions.canUpdate}),$.jsx(Ch,{type:"text",size:"small",onClick:o=>{o.stopPropagation(),i.onDeleteHandle(i.entryName,`${i.deletePathPrefix}/${i.apiGroupAndVersion}${i.namespace?`/namespaces/${i.namespace}`:""}/${i.typeName}/${i.entryName}`)},icon:$.jsx(Qt.DeleteOutlined,{size:14}),disabled:!i.permissions.canDelete})]})}]},Ih=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:y})=>{const g=wr.useNavigate();if(!i)return null;const d=kh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!d)return null;const v=Oh({enrichedColumns:d,navigate:g,baseprefix:t});if(!v)return null;const k=A=>`Total: ${A}`;return $.jsx(xh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,children:$.jsx(xh.HideableControls,{children:$.jsx(ue.Table,{dataSource:n,columns:v,pagination:{position:["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:k},scroll:{x:"max-content"},rowSelection:y?{type:"checkbox",selectedRowKeys:y.selectedRowKeys,onChange:(A,E)=>{y.onChange(A,E.map(({internalDataForControls:w})=>({name:w.entryName,endpoint:`${w.deletePathPrefix}/${w.apiGroupAndVersion}${w.namespace?`/namespaces/${w.namespace}`:""}/${w.typeName}/${w.entryName}`})))}}:void 0,onRow:A=>({onClick:()=>{if(o&&a){const E=Fs.get(A,a),w=typeof E=="string"?E:JSON.stringify(E),P=o.replaceAll("~recordValue~",w);g(P)}}})})})})};function zo(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 Fh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(y,g){if(!o[y]){if(!i[y]){var d=typeof zo=="function"&&zo;if(!g&&d)return d(y,!0);if(l)return l(y,!0);var v=new Error("Cannot find module '"+y+"'");throw v.code="MODULE_NOT_FOUND",v}var k=o[y]={exports:{}};i[y][0].call(k.exports,function(A){var E=i[y][1][A];return u(E||A)},k,k.exports,n,i,o,a)}return o[y].exports}for(var l=typeof zo=="function"&&zo,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,y,g,d,v,k,A,E,w,P,L,T,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","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],y={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},d={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"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function K(h,S){if(!h)throw new Error("ASSERT: "+S)}function ie(h){return h>=48&&h<=57}function ce(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function fe(h){return"01234567".indexOf(h)>=0}function ye(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 we(h){return h===10||h===13||h===8232||h===8233}function ge(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&v.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&&v.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Re(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Ie(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 Te(h){return h==="eval"||h==="arguments"}function We(h){if(E&&Ie(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 Xe(h,S,N,q,Z){var pe;K(typeof N=="number","Comment must have valid position"),!(O.lastCommentStart>=N)&&(O.lastCommentStart=N,pe={type:h,value:S},D.range&&(pe.range=[N,q]),D.loc&&(pe.loc=Z),D.comments.push(pe),D.attachComment&&(D.leadingComments.push(pe),D.trailingComments.push(pe)))}function Ee(h){var S,N,q,Z;for(S=w-h,N={start:{line:P,column:w-L-h}};w<T;)if(q=A.charCodeAt(w),++w,we(q)){D.comments&&(Z=A.slice(S+h,w-1),N.end={line:P,column:w-L-1},Xe("Line",Z,S,w-1,N)),q===13&&A.charCodeAt(w)===10&&++w,++P,L=w;return}D.comments&&(Z=A.slice(S+h,w),N.end={line:P,column:w-L},Xe("Line",Z,S,w,N))}function wt(){var h,S,N,q;for(D.comments&&(h=w-2,S={start:{line:P,column:w-L-2}});w<T;)if(N=A.charCodeAt(w),we(N))N===13&&A.charCodeAt(w+1)===10&&++w,++P,++w,L=w,w>=T&&ke({},d.UnexpectedToken,"ILLEGAL");else if(N===42){if(A.charCodeAt(w+1)===47){++w,++w,D.comments&&(q=A.slice(h+2,w-2),S.end={line:P,column:w-L},Xe("Block",q,h,w,S));return}++w}else++w;ke({},d.UnexpectedToken,"ILLEGAL")}function G(){var h,S;for(S=w===0;w<T;)if(h=A.charCodeAt(w),ye(h))++w;else if(we(h))++w,h===13&&A.charCodeAt(w)===10&&++w,++P,L=w,S=!0;else if(h===47)if(h=A.charCodeAt(w+1),h===47)++w,++w,Ee(2),S=!0;else if(h===42)++w,++w,wt();else break;else if(S&&h===45)if(A.charCodeAt(w+1)===45&&A.charCodeAt(w+2)===62)w+=3,Ee(3);else break;else if(h===60)if(A.slice(w+1,w+4)==="!--")++w,++w,++w,++w,Ee(4);else break;else break}function Y(h){var S,N,q,Z=0;for(N=h==="u"?4:2,S=0;S<N;++S)if(w<T&&ce(A[w]))q=A[w++],Z=Z*16+"0123456789abcdef".indexOf(q.toLowerCase());else return"";return String.fromCharCode(Z)}function oe(){var h,S;for(h=A.charCodeAt(w++),S=String.fromCharCode(h),h===92&&(A.charCodeAt(w)!==117&&ke({},d.UnexpectedToken,"ILLEGAL"),++w,h=Y("u"),(!h||h==="\\"||!ge(h.charCodeAt(0)))&&ke({},d.UnexpectedToken,"ILLEGAL"),S=h);w<T&&(h=A.charCodeAt(w),!!he(h));)++w,S+=String.fromCharCode(h),h===92&&(S=S.substr(0,S.length-1),A.charCodeAt(w)!==117&&ke({},d.UnexpectedToken,"ILLEGAL"),++w,h=Y("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&ke({},d.UnexpectedToken,"ILLEGAL"),S+=h);return S}function xe(){var h,S;for(h=w++;w<T;){if(S=A.charCodeAt(w),S===92)return w=h,oe();if(he(S))++w;else break}return A.slice(h,w)}function Ke(){var h,S,N;return h=w,S=A.charCodeAt(w)===92?oe():xe(),S.length===1?N=u.Identifier:We(S)?N=u.Keyword:S==="null"?N=u.NullLiteral:S==="true"||S==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:S,lineNumber:P,lineStart:L,start:h,end:w}}function Se(){var h=w,S=A.charCodeAt(w),N,q=A[w],Z,pe,He;switch(S){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++w,D.tokenize&&(S===40?D.openParenToken=D.tokens.length:S===123&&(D.openCurlyToken=D.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(S),lineNumber:P,lineStart:L,start:h,end:w};default:if(N=A.charCodeAt(w+1),N===61)switch(S){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return w+=2,{type:u.Punctuator,value:String.fromCharCode(S)+String.fromCharCode(N),lineNumber:P,lineStart:L,start:h,end:w};case 33:case 61:return w+=2,A.charCodeAt(w)===61&&++w,{type:u.Punctuator,value:A.slice(h,w),lineNumber:P,lineStart:L,start:h,end:w}}}if(He=A.substr(w,4),He===">>>=")return w+=4,{type:u.Punctuator,value:He,lineNumber:P,lineStart:L,start:h,end:w};if(pe=He.substr(0,3),pe===">>>"||pe==="<<="||pe===">>=")return w+=3,{type:u.Punctuator,value:pe,lineNumber:P,lineStart:L,start:h,end:w};if(Z=pe.substr(0,2),q===Z[1]&&"+-<>&|".indexOf(q)>=0||Z==="=>")return w+=2,{type:u.Punctuator,value:Z,lineNumber:P,lineStart:L,start:h,end:w};if("<>=!+-*%&|^/".indexOf(q)>=0)return++w,{type:u.Punctuator,value:q,lineNumber:P,lineStart:L,start:h,end:w};ke({},d.UnexpectedToken,"ILLEGAL")}function Fe(h){for(var S="";w<T&&ce(A[w]);)S+=A[w++];return S.length===0&&ke({},d.UnexpectedToken,"ILLEGAL"),ge(A.charCodeAt(w))&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+S,16),lineNumber:P,lineStart:L,start:h,end:w}}function je(h){for(var S="0"+A[w++];w<T&&fe(A[w]);)S+=A[w++];return(ge(A.charCodeAt(w))||ie(A.charCodeAt(w)))&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(S,8),octal:!0,lineNumber:P,lineStart:L,start:h,end:w}}function Le(){var h,S,N;if(N=A[w],K(ie(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),S=w,h="",N!=="."){if(h=A[w++],N=A[w],h==="0"){if(N==="x"||N==="X")return++w,Fe(S);if(fe(N))return je(S);N&&ie(N.charCodeAt(0))&&ke({},d.UnexpectedToken,"ILLEGAL")}for(;ie(A.charCodeAt(w));)h+=A[w++];N=A[w]}if(N==="."){for(h+=A[w++];ie(A.charCodeAt(w));)h+=A[w++];N=A[w]}if(N==="e"||N==="E")if(h+=A[w++],N=A[w],(N==="+"||N==="-")&&(h+=A[w++]),ie(A.charCodeAt(w)))for(;ie(A.charCodeAt(w));)h+=A[w++];else ke({},d.UnexpectedToken,"ILLEGAL");return ge(A.charCodeAt(w))&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:P,lineStart:L,start:S,end:w}}function Tt(){var h="",S,N,q,Z,pe,He,mt=!1,tn,Gt;for(tn=P,Gt=L,S=A[w],K(S==="'"||S==='"',"String literal must starts with a quote"),N=w,++w;w<T;)if(q=A[w++],q===S){S="";break}else if(q==="\\")if(q=A[w++],!q||!we(q.charCodeAt(0)))switch(q){case"u":case"x":He=w,pe=Y(q),pe?h+=pe:(w=He,h+=q);break;case"n":h+=`
|
|
212
|
-
`;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)?(Z="01234567".indexOf(q),Z!==0&&(mt=!0),w<T&&fe(
|
|
213
|
-
`&&++w,L=w;else{if(we(q.charCodeAt(0)))break;h+=q}return S!==""&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:mt,startLineNumber:tn,startLineStart:Gt,lineNumber:P,lineStart:L,start:N,end:w}}function sn(h,S){var N;try{N=new RegExp(h,S)}catch{ke({},d.InvalidRegExp)}return N}function Nt(){var h,S,N,q,Z;for(h=A[w],K(h==="/","Regular expression literal must start with a slash"),S=A[w++],N=!1,q=!1;w<T;)if(h=A[w++],S+=h,h==="\\")h=A[w++],we(h.charCodeAt(0))&&ke({},d.UnterminatedRegExp),S+=h;else if(we(h.charCodeAt(0)))ke({},d.UnterminatedRegExp);else if(N)h==="]"&&(N=!1);else if(h==="/"){q=!0;break}else h==="["&&(N=!0);return q||ke({},d.UnterminatedRegExp),Z=S.substr(1,S.length-2),{value:Z,literal:S}}function Lt(){var h,S,N,q;for(S="",N="";w<T&&(h=A[w],!!he(h.charCodeAt(0)));)if(++w,h==="\\"&&w<T)if(h=A[w],h==="u"){if(++w,q=w,h=Y("u"),h)for(N+=h,S+="\\u";q<w;++q)S+=A[q];else w=q,N+="u",S+="\\u";Be({},d.UnexpectedToken,"ILLEGAL")}else S+="\\",Be({},d.UnexpectedToken,"ILLEGAL");else N+=h,S+=h;return{value:N,literal:S}}function ve(){var h,S,N,q;return I=null,G(),h=w,S=Nt(),N=Lt(),q=sn(S.value,N.value),D.tokenize?{type:u.RegularExpression,value:q,lineNumber:P,lineStart:L,start:h,end:w}:{literal:S.literal+N.literal,value:q,start:h,end:w}}function Ce(){var h,S,N,q;return G(),h=w,S={start:{line:P,column:w-L}},N=ve(),S.end={line:P,column:w-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:N.literal,range:[h,w],loc:S})),N}function qe(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function kt(){var h,S;if(h=D.tokens[D.tokens.length-1],!h)return Ce();if(h.type==="Punctuator"){if(h.value==="]")return Se();if(h.value===")")return S=D.tokens[D.openParenToken-1],S&&S.type==="Keyword"&&(S.value==="if"||S.value==="while"||S.value==="for"||S.value==="with")?Ce():Se();if(h.value==="}"){if(D.tokens[D.openCurlyToken-3]&&D.tokens[D.openCurlyToken-3].type==="Keyword"){if(S=D.tokens[D.openCurlyToken-4],!S)return Se()}else if(D.tokens[D.openCurlyToken-4]&&D.tokens[D.openCurlyToken-4].type==="Keyword"){if(S=D.tokens[D.openCurlyToken-5],!S)return Ce()}else return Se();return f.indexOf(S.value)>=0?Se():Ce()}return Ce()}return h.type==="Keyword"?Ce():Se()}function ht(){var h;return G(),w>=T?{type:u.EOF,lineNumber:P,lineStart:L,start:w,end:w}:(h=A.charCodeAt(w),ge(h)?Ke():h===40||h===41||h===59?Se():h===39||h===34?Tt():h===46?ie(A.charCodeAt(w+1))?Le():Se():ie(h)?Le():D.tokenize&&h===47?kt():Se())}function Et(){var h,S,N;return G(),h={start:{line:P,column:w-L}},S=ht(),h.end={line:P,column:w-L},S.type!==u.EOF&&(N=A.slice(S.start,S.end),D.tokens.push({type:l[S.type],value:N,range:[S.start,S.end],loc:h})),S}function de(){var h;return h=I,w=h.end,P=h.lineNumber,L=h.lineStart,I=typeof D.tokens<"u"?Et():ht(),w=h.end,P=h.lineNumber,L=h.lineStart,h}function Qe(){var h,S,N;h=w,S=P,N=L,I=typeof D.tokens<"u"?Et():ht(),w=h,P=S,L=N}function St(h,S){this.line=h,this.column=S}function it(h,S,N,q){this.start=new St(h,S),this.end=new St(N,q)}k={name:"SyntaxTree",processComment:function(h){var S,N;if(!(h.type===y.Program&&h.body.length>0)){for(D.trailingComments.length>0?D.trailingComments[0].range[0]>=h.range[1]?(N=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]&&(N=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];)S=D.bottomRightStack.pop();S?S.leadingComments&&S.leadingComments[S.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=S.leadingComments,delete S.leadingComments):D.leadingComments.length>0&&D.leadingComments[D.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=D.leadingComments,D.leadingComments=[]),N&&(h.trailingComments=N),D.bottomRightStack.push(h)}},markEnd:function(h,S){return D.range&&(h.range=[S.start,w]),D.loc&&(h.loc=new it(S.startLineNumber===void 0?S.lineNumber:S.startLineNumber,S.start-(S.startLineStart===void 0?S.lineStart:S.startLineStart),P,w-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:y.ArrayExpression,elements:h}},createAssignmentExpression:function(h,S,N){return{type:y.AssignmentExpression,operator:h,left:S,right:N}},createBinaryExpression:function(h,S,N){var q=h==="||"||h==="&&"?y.LogicalExpression:y.BinaryExpression;return{type:q,operator:h,left:S,right:N}},createBlockStatement:function(h){return{type:y.BlockStatement,body:h}},createBreakStatement:function(h){return{type:y.BreakStatement,label:h}},createCallExpression:function(h,S){return{type:y.CallExpression,callee:h,arguments:S}},createCatchClause:function(h,S){return{type:y.CatchClause,param:h,body:S}},createConditionalExpression:function(h,S,N){return{type:y.ConditionalExpression,test:h,consequent:S,alternate:N}},createContinueStatement:function(h){return{type:y.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:y.DebuggerStatement}},createDoWhileStatement:function(h,S){return{type:y.DoWhileStatement,body:h,test:S}},createEmptyStatement:function(){return{type:y.EmptyStatement}},createExpressionStatement:function(h){return{type:y.ExpressionStatement,expression:h}},createForStatement:function(h,S,N,q){return{type:y.ForStatement,init:h,test:S,update:N,body:q}},createForInStatement:function(h,S,N){return{type:y.ForInStatement,left:h,right:S,body:N,each:!1}},createFunctionDeclaration:function(h,S,N,q){return{type:y.FunctionDeclaration,id:h,params:S,defaults:N,body:q,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,S,N,q){return{type:y.FunctionExpression,id:h,params:S,defaults:N,body:q,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:y.Identifier,name:h}},createIfStatement:function(h,S,N){return{type:y.IfStatement,test:h,consequent:S,alternate:N}},createLabeledStatement:function(h,S){return{type:y.LabeledStatement,label:h,body:S}},createLiteral:function(h){return{type:y.Literal,value:h.value,raw:A.slice(h.start,h.end)}},createMemberExpression:function(h,S,N){return{type:y.MemberExpression,computed:h==="[",object:S,property:N}},createNewExpression:function(h,S){return{type:y.NewExpression,callee:h,arguments:S}},createObjectExpression:function(h){return{type:y.ObjectExpression,properties:h}},createPostfixExpression:function(h,S){return{type:y.UpdateExpression,operator:h,argument:S,prefix:!1}},createProgram:function(h){return{type:y.Program,body:h}},createProperty:function(h,S,N){return{type:y.Property,key:S,value:N,kind:h}},createReturnStatement:function(h){return{type:y.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:y.SequenceExpression,expressions:h}},createSwitchCase:function(h,S){return{type:y.SwitchCase,test:h,consequent:S}},createSwitchStatement:function(h,S){return{type:y.SwitchStatement,discriminant:h,cases:S}},createThisExpression:function(){return{type:y.ThisExpression}},createThrowStatement:function(h){return{type:y.ThrowStatement,argument:h}},createTryStatement:function(h,S,N,q){return{type:y.TryStatement,block:h,guardedHandlers:S,handlers:N,finalizer:q}},createUnaryExpression:function(h,S){return h==="++"||h==="--"?{type:y.UpdateExpression,operator:h,argument:S,prefix:!0}:{type:y.UnaryExpression,operator:h,argument:S,prefix:!0}},createVariableDeclaration:function(h,S){return{type:y.VariableDeclaration,declarations:h,kind:S}},createVariableDeclarator:function(h,S){return{type:y.VariableDeclarator,id:h,init:S}},createWhileStatement:function(h,S){return{type:y.WhileStatement,test:h,body:S}},createWithStatement:function(h,S){return{type:y.WithStatement,object:h,body:S}}};function Mt(){var h,S,N,q;return h=w,S=P,N=L,G(),q=P!==S,w=h,P=S,L=N,q}function ke(h,S){var N,q=Array.prototype.slice.call(arguments,2),Z=S.replace(/%(\d)/g,function(pe,He){return K(He<q.length,"Message reference must be in range"),q[He]});throw typeof h.lineNumber=="number"?(N=new Error("Line "+h.lineNumber+": "+Z),N.index=h.start,N.lineNumber=h.lineNumber,N.column=h.start-L+1):(N=new Error("Line "+P+": "+Z),N.index=w,N.lineNumber=P,N.column=w-L+1),N.description=Z,N}function Be(){try{ke.apply(null,arguments)}catch(h){if(D.errors)D.errors.push(h);else throw h}}function $t(h){if(h.type===u.EOF&&ke(h,d.UnexpectedEOS),h.type===u.NumericLiteral&&ke(h,d.UnexpectedNumber),h.type===u.StringLiteral&&ke(h,d.UnexpectedString),h.type===u.Identifier&&ke(h,d.UnexpectedIdentifier),h.type===u.Keyword){if(Re(h.value))ke(h,d.UnexpectedReserved);else if(E&&Ie(h.value)){Be(h,d.StrictReservedWord);return}ke(h,d.UnexpectedToken,h.value)}ke(h,d.UnexpectedToken,h.value)}function _(h){var S=de();(S.type!==u.Punctuator||S.value!==h)&&$t(S)}function p(h){var S=de();(S.type!==u.Keyword||S.value!==h)&&$t(S)}function b(h){return I.type===u.Punctuator&&I.value===h}function R(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 z(){var h;if(A.charCodeAt(w)===59||b(";")){de();return}h=P,G(),P===h&&I.type!==u.EOF&&!b("}")&&$t(I)}function X(h){return h.type===y.Identifier||h.type===y.MemberExpression}function $e(){var h=[],S;for(S=I,_("[");!b("]");)b(",")?(de(),h.push(null)):(h.push(gn()),b("]")||_(","));return de(),x.markEnd(x.createArrayExpression(h),S)}function dt(h,S){var N,q,Z;return N=E,Z=I,q=os(),S&&E&&Te(h[0].name)&&Be(S,d.StrictParamName),E=N,x.markEnd(x.createFunctionExpression(null,h,[],q),Z)}function ut(){var h,S;return S=I,h=de(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(E&&h.octal&&Be(h,d.StrictOctalLiteral),x.markEnd(x.createLiteral(h),S)):x.markEnd(x.createIdentifier(h.value),S)}function pt(){var h,S,N,q,Z,pe;if(h=I,pe=I,h.type===u.Identifier)return N=ut(),h.value==="get"&&!b(":")?(S=ut(),_("("),_(")"),q=dt([]),x.markEnd(x.createProperty("get",S,q),pe)):h.value==="set"&&!b(":")?(S=ut(),_("("),h=I,h.type!==u.Identifier?(_(")"),Be(h,d.UnexpectedToken,h.value),q=dt([])):(Z=[Oe()],_(")"),q=dt(Z,h)),x.markEnd(x.createProperty("set",S,q),pe)):(_(":"),q=gn(),x.markEnd(x.createProperty("init",N,q),pe));if(h.type===u.EOF||h.type===u.Punctuator)$t(h);else return S=ut(),_(":"),q=gn(),x.markEnd(x.createProperty("init",S,q),pe)}function st(){var h=[],S,N,q,Z,pe={},He=String,mt;for(mt=I,_("{");!b("}");)S=pt(),S.key.type===y.Identifier?N=S.key.name:N=He(S.key.value),Z=S.kind==="init"?g.Data:S.kind==="get"?g.Get:g.Set,q="$"+N,Object.prototype.hasOwnProperty.call(pe,q)?(pe[q]===g.Data?E&&Z===g.Data?Be({},d.StrictDuplicateProperty):Z!==g.Data&&Be({},d.AccessorDataProperty):Z===g.Data?Be({},d.AccessorDataProperty):pe[q]&Z&&Be({},d.AccessorGetSet),pe[q]|=Z):pe[q]=Z,h.push(S),b("}")||_(",");return _("}"),x.markEnd(x.createObjectExpression(h),mt)}function qr(){var h;return _("("),h=M(),_(")"),h}function yi(){var h,S,N,q;if(b("("))return qr();if(b("["))return $e();if(b("{"))return st();if(h=I.type,q=I,h===u.Identifier)N=x.createIdentifier(de().value);else if(h===u.StringLiteral||h===u.NumericLiteral)E&&I.octal&&Be(I,d.StrictOctalLiteral),N=x.createLiteral(de());else if(h===u.Keyword){if(R("function"))return Vc();R("this")?(de(),N=x.createThisExpression()):$t(de())}else h===u.BooleanLiteral?(S=de(),S.value=S.value==="true",N=x.createLiteral(S)):h===u.NullLiteral?(S=de(),S.value=null,N=x.createLiteral(S)):b("/")||b("/=")?(typeof D.tokens<"u"?N=x.createLiteral(Ce()):N=x.createLiteral(ve()),Qe()):$t(de());return x.markEnd(N,q)}function rs(){var h=[];if(_("("),!b(")"))for(;w<T&&(h.push(gn()),!b(")"));)_(",");return _(")"),h}function is(){var h,S;return S=I,h=de(),qe(h)||$t(h),x.markEnd(x.createIdentifier(h.value),S)}function ss(){return _("."),is()}function Wr(){var h;return _("["),h=M(),_("]"),h}function mi(){var h,S,N;return N=I,p("new"),h=to(),S=b("(")?rs():[],x.markEnd(x.createNewExpression(h,S),N)}function eo(){var h,S,N,q,Z;for(Z=I,h=O.allowIn,O.allowIn=!0,S=R("new")?mi():yi(),O.allowIn=h;;){if(b("."))q=ss(),S=x.createMemberExpression(".",S,q);else if(b("("))N=rs(),S=x.createCallExpression(S,N);else if(b("["))q=Wr(),S=x.createMemberExpression("[",S,q);else break;x.markEnd(S,Z)}return S}function to(){var h,S,N,q;for(q=I,h=O.allowIn,S=R("new")?mi():yi(),O.allowIn=h;b(".")||b("[");)b("[")?(N=Wr(),S=x.createMemberExpression("[",S,N)):(N=ss(),S=x.createMemberExpression(".",S,N)),x.markEnd(S,q);return S}function _r(){var h,S,N=I;return h=eo(),I.type===u.Punctuator&&(b("++")||b("--"))&&!Mt()&&(E&&h.type===y.Identifier&&Te(h.name)&&Be({},d.StrictLHSPostfix),X(h)||Be({},d.InvalidLHSInAssignment),S=de(),h=x.markEnd(x.createPostfixExpression(S.value,h),N)),h}function nr(){var h,S,N;return I.type!==u.Punctuator&&I.type!==u.Keyword?S=_r():b("++")||b("--")?(N=I,h=de(),S=nr(),E&&S.type===y.Identifier&&Te(S.name)&&Be({},d.StrictLHSPrefix),X(S)||Be({},d.InvalidLHSInAssignment),S=x.createUnaryExpression(h.value,S),S=x.markEnd(S,N)):b("+")||b("-")||b("~")||b("!")?(N=I,h=de(),S=nr(),S=x.createUnaryExpression(h.value,S),S=x.markEnd(S,N)):R("delete")||R("void")||R("typeof")?(N=I,h=de(),S=nr(),S=x.createUnaryExpression(h.value,S),S=x.markEnd(S,N),E&&S.operator==="delete"&&S.argument.type===y.Identifier&&Be({},d.StrictDelete)):S=_r(),S}function Kr(h,S){var N=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=S?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function no(){var h,S,N,q,Z,pe,He,mt,tn,Gt;if(h=I,tn=nr(),q=I,Z=Kr(q,O.allowIn),Z===0)return tn;for(q.prec=Z,de(),S=[h,I],He=nr(),pe=[tn,q,He];(Z=Kr(I,O.allowIn))>0;){for(;pe.length>2&&Z<=pe[pe.length-2].prec;)He=pe.pop(),mt=pe.pop().value,tn=pe.pop(),N=x.createBinaryExpression(mt,tn,He),S.pop(),h=S[S.length-1],x.markEnd(N,h),pe.push(N);q=de(),q.prec=Z,pe.push(q),S.push(I),N=nr(),pe.push(N)}for(Gt=pe.length-1,N=pe[Gt],S.pop();Gt>1;)N=x.createBinaryExpression(pe[Gt-1].value,pe[Gt-2],N),Gt-=2,h=S.pop(),x.markEnd(N,h);return N}function ro(){var h,S,N,q,Z;return Z=I,h=no(),b("?")&&(de(),S=O.allowIn,O.allowIn=!0,N=gn(),O.allowIn=S,_(":"),q=gn(),h=x.createConditionalExpression(h,N,q),x.markEnd(h,Z)),h}function gn(){var h,S,N,q,Z;return h=I,Z=I,q=S=ro(),V()&&(X(S)||Be({},d.InvalidLHSInAssignment),E&&S.type===y.Identifier&&Te(S.name)&&Be(h,d.StrictLHSAssignment),h=de(),N=gn(),q=x.markEnd(x.createAssignmentExpression(h.value,S,N),Z)),q}function M(){var h,S=I;if(h=gn(),b(",")){for(h=x.createSequenceExpression([h]);w<T&&b(",");)de(),h.expressions.push(gn());x.markEnd(h,S)}return h}function ae(){for(var h=[],S;w<T&&!(b("}")||(S=Hr(),typeof S>"u"));)h.push(S);return h}function me(){var h,S;return S=I,_("{"),h=ae(),_("}"),x.markEnd(x.createBlockStatement(h),S)}function Oe(){var h,S;return S=I,h=de(),h.type!==u.Identifier&&$t(h),x.markEnd(x.createIdentifier(h.value),S)}function ct(h){var S=null,N,q;return q=I,N=Oe(),E&&Te(N.name)&&Be({},d.StrictVarName),h==="const"?(_("="),S=gn()):b("=")&&(de(),S=gn()),x.markEnd(x.createVariableDeclarator(N,S),q)}function lt(h){var S=[];do{if(S.push(ct(h)),!b(","))break;de()}while(w<T);return S}function tt(){var h;return p("var"),h=lt(),z(),x.createVariableDeclaration(h,"var")}function Je(h){var S,N;return N=I,p(h),S=lt(h),z(),x.markEnd(x.createVariableDeclaration(S,h),N)}function en(){return _(";"),x.createEmptyStatement()}function Bt(){var h=M();return z(),x.createExpressionStatement(h)}function Rt(){var h,S,N;return p("if"),_("("),h=M(),_(")"),S=kn(),R("else")?(de(),N=kn()):N=null,x.createIfStatement(h,S,N)}function ln(){var h,S,N;return p("do"),N=O.inIteration,O.inIteration=!0,h=kn(),O.inIteration=N,p("while"),_("("),S=M(),_(")"),b(";")&&de(),x.createDoWhileStatement(h,S)}function Tn(){var h,S,N;return p("while"),_("("),h=M(),_(")"),N=O.inIteration,O.inIteration=!0,S=kn(),O.inIteration=N,x.createWhileStatement(h,S)}function rr(){var h,S,N;return N=I,h=de(),S=lt(),x.markEnd(x.createVariableDeclaration(S,h.value),N)}function zt(){var h,S,N,q,Z,pe,He;return h=S=N=null,p("for"),_("("),b(";")?de():(R("var")||R("let")?(O.allowIn=!1,h=rr(),O.allowIn=!0,h.declarations.length===1&&R("in")&&(de(),q=h,Z=M(),h=null)):(O.allowIn=!1,h=M(),O.allowIn=!0,R("in")&&(X(h)||Be({},d.InvalidLHSInForIn),de(),q=h,Z=M(),h=null)),typeof q>"u"&&_(";")),typeof q>"u"&&(b(";")||(S=M()),_(";"),b(")")||(N=M())),_(")"),He=O.inIteration,O.inIteration=!0,pe=kn(),O.inIteration=He,typeof q>"u"?x.createForStatement(h,S,N,pe):x.createForInStatement(q,Z,pe)}function bi(){var h=null,S;return p("continue"),A.charCodeAt(w)===59?(de(),O.inIteration||ke({},d.IllegalContinue),x.createContinueStatement(null)):Mt()?(O.inIteration||ke({},d.IllegalContinue),x.createContinueStatement(null)):(I.type===u.Identifier&&(h=Oe(),S="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,S)||ke({},d.UnknownLabel,h.name)),z(),h===null&&!O.inIteration&&ke({},d.IllegalContinue),x.createContinueStatement(h))}function io(){var h=null,S;return p("break"),A.charCodeAt(w)===59?(de(),O.inIteration||O.inSwitch||ke({},d.IllegalBreak),x.createBreakStatement(null)):Mt()?(O.inIteration||O.inSwitch||ke({},d.IllegalBreak),x.createBreakStatement(null)):(I.type===u.Identifier&&(h=Oe(),S="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,S)||ke({},d.UnknownLabel,h.name)),z(),h===null&&!(O.inIteration||O.inSwitch)&&ke({},d.IllegalBreak),x.createBreakStatement(h))}function so(){var h=null;return p("return"),O.inFunctionBody||Be({},d.IllegalReturn),A.charCodeAt(w)===32&&ge(A.charCodeAt(w+1))?(h=M(),z(),x.createReturnStatement(h)):Mt()?x.createReturnStatement(null):(b(";")||!b("}")&&I.type!==u.EOF&&(h=M()),z(),x.createReturnStatement(h))}function wa(){var h,S;return E&&(G(),Be({},d.StrictModeWith)),p("with"),_("("),h=M(),_(")"),S=kn(),x.createWithStatement(h,S)}function va(){var h,S=[],N,q;for(q=I,R("default")?(de(),h=null):(p("case"),h=M()),_(":");w<T&&!(b("}")||R("default")||R("case"));)N=kn(),S.push(N);return x.markEnd(x.createSwitchCase(h,S),q)}function Aa(){var h,S,N,q,Z;if(p("switch"),_("("),h=M(),_(")"),_("{"),S=[],b("}"))return de(),x.createSwitchStatement(h,S);for(q=O.inSwitch,O.inSwitch=!0,Z=!1;w<T&&!b("}");)N=va(),N.test===null&&(Z&&ke({},d.MultipleDefaultsInSwitch),Z=!0),S.push(N);return O.inSwitch=q,_("}"),x.createSwitchStatement(h,S)}function $c(){var h;return p("throw"),Mt()&&ke({},d.NewlineAfterThrow),h=M(),z(),x.createThrowStatement(h)}function jc(){var h,S,N;return N=I,p("catch"),_("("),b(")")&&$t(I),h=Oe(),E&&Te(h.name)&&Be({},d.StrictCatchVariable),_(")"),S=me(),x.markEnd(x.createCatchClause(h,S),N)}function Mc(){var h,S=[],N=null;return p("try"),h=me(),R("catch")&&S.push(jc()),R("finally")&&(de(),N=me()),S.length===0&&!N&&ke({},d.NoCatchOrFinally),x.createTryStatement(h,[],S,N)}function Uc(){return p("debugger"),z(),x.createDebuggerStatement()}function kn(){var h=I.type,S,N,q,Z;if(h===u.EOF&&$t(I),h===u.Punctuator&&I.value==="{")return me();if(Z=I,h===u.Punctuator)switch(I.value){case";":return x.markEnd(en(),Z);case"(":return x.markEnd(Bt(),Z)}if(h===u.Keyword)switch(I.value){case"break":return x.markEnd(io(),Z);case"continue":return x.markEnd(bi(),Z);case"debugger":return x.markEnd(Uc(),Z);case"do":return x.markEnd(ln(),Z);case"for":return x.markEnd(zt(),Z);case"function":return x.markEnd(as(),Z);case"if":return x.markEnd(Rt(),Z);case"return":return x.markEnd(so(),Z);case"switch":return x.markEnd(Aa(),Z);case"throw":return x.markEnd($c(),Z);case"try":return x.markEnd(Mc(),Z);case"var":return x.markEnd(tt(),Z);case"while":return x.markEnd(Tn(),Z);case"with":return x.markEnd(wa(),Z)}return S=M(),S.type===y.Identifier&&b(":")?(de(),q="$"+S.name,Object.prototype.hasOwnProperty.call(O.labelSet,q)&&ke({},d.Redeclaration,"Label",S.name),O.labelSet[q]=!0,N=kn(),delete O.labelSet[q],x.markEnd(x.createLabeledStatement(S,N),Z)):(z(),x.markEnd(x.createExpressionStatement(S),Z))}function os(){var h,S=[],N,q,Z,pe,He,mt,tn,Gt;for(Gt=I,_("{");w<T&&!(I.type!==u.StringLiteral||(N=I,h=Hr(),S.push(h),h.expression.type!==y.Literal));)q=A.slice(N.start+1,N.end-1),q==="use strict"?(E=!0,Z&&Be(Z,d.StrictOctalLiteral)):!Z&&N.octal&&(Z=N);for(pe=O.labelSet,He=O.inIteration,mt=O.inSwitch,tn=O.inFunctionBody,O.labelSet={},O.inIteration=!1,O.inSwitch=!1,O.inFunctionBody=!0;w<T&&!(b("}")||(h=Hr(),typeof h>"u"));)S.push(h);return _("}"),O.labelSet=pe,O.inIteration=He,O.inSwitch=mt,O.inFunctionBody=tn,x.markEnd(x.createBlockStatement(S),Gt)}function oo(h){var S,N=[],q,Z,pe,He,mt;if(_("("),!b(")"))for(pe={};w<T&&(q=I,S=Oe(),He="$"+q.value,E?(Te(q.value)&&(Z=q,mt=d.StrictParamName),Object.prototype.hasOwnProperty.call(pe,He)&&(Z=q,mt=d.StrictParamDupe)):h||(Te(q.value)?(h=q,mt=d.StrictParamName):Ie(q.value)?(h=q,mt=d.StrictReservedWord):Object.prototype.hasOwnProperty.call(pe,He)&&(h=q,mt=d.StrictParamDupe)),N.push(S),pe[He]=!0,!b(")"));)_(",");return _(")"),{params:N,stricted:Z,firstRestricted:h,message:mt}}function as(){var h,S=[],N,q,Z,pe,He,mt,tn,Gt;return Gt=I,p("function"),q=I,h=Oe(),E?Te(q.value)&&Be(q,d.StrictFunctionName):Te(q.value)?(He=q,mt=d.StrictFunctionName):Ie(q.value)&&(He=q,mt=d.StrictReservedWord),pe=oo(He),S=pe.params,Z=pe.stricted,He=pe.firstRestricted,pe.message&&(mt=pe.message),tn=E,N=os(),E&&He&&ke(He,mt),E&&Z&&Be(Z,mt),E=tn,x.markEnd(x.createFunctionDeclaration(h,S,[],N),Gt)}function Vc(){var h,S=null,N,q,Z,pe,He=[],mt,tn,Gt;return Gt=I,p("function"),b("(")||(h=I,S=Oe(),E?Te(h.value)&&Be(h,d.StrictFunctionName):Te(h.value)?(q=h,Z=d.StrictFunctionName):Ie(h.value)&&(q=h,Z=d.StrictReservedWord)),pe=oo(q),He=pe.params,N=pe.stricted,q=pe.firstRestricted,pe.message&&(Z=pe.message),tn=E,mt=os(),E&&q&&ke(q,Z),E&&N&&Be(N,Z),E=tn,x.markEnd(x.createFunctionExpression(S,He,[],mt),Gt)}function Hr(){if(I.type===u.Keyword)switch(I.value){case"const":case"let":return Je(I.value);case"function":return as();default:return kn()}if(I.type!==u.EOF)return kn()}function us(){for(var h,S=[],N,q,Z;w<T&&(N=I,!(N.type!==u.StringLiteral||(h=Hr(),S.push(h),h.expression.type!==y.Literal)));)q=A.slice(N.start+1,N.end-1),q==="use strict"?(E=!0,Z&&Be(Z,d.StrictOctalLiteral)):!Z&&N.octal&&(Z=N);for(;w<T&&(h=Hr(),!(typeof h>"u"));)S.push(h);return S}function Ea(){var h,S;return G(),Qe(),S=I,E=!1,h=us(),x.markEnd(x.createProgram(h),S)}function Sa(){var h,S,N,q=[];for(h=0;h<D.tokens.length;++h)S=D.tokens[h],N={type:S.type,value:S.value},D.range&&(N.range=S.range),D.loc&&(N.loc=S.loc),q.push(N);D.tokens=q}function xa(h,S){var N,q,Z;N=String,typeof h!="string"&&!(h instanceof String)&&(h=N(h)),x=k,A=h,w=0,P=A.length>0?1:0,L=0,T=A.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},S=S||{},S.tokens=!0,D.tokens=[],D.tokenize=!0,D.openParenToken=-1,D.openCurlyToken=-1,D.range=typeof S.range=="boolean"&&S.range,D.loc=typeof S.loc=="boolean"&&S.loc,typeof S.comment=="boolean"&&S.comment&&(D.comments=[]),typeof S.tolerant=="boolean"&&S.tolerant&&(D.errors=[]);try{if(Qe(),I.type===u.EOF)return D.tokens;for(q=de();I.type!==u.EOF;)try{q=de()}catch(pe){if(q=I,D.errors){D.errors.push(pe);break}else throw pe}Sa(),Z=D.tokens,typeof D.comments<"u"&&(Z.comments=D.comments),typeof D.errors<"u"&&(Z.errors=D.errors)}catch(pe){throw pe}finally{D={}}return Z}function Ca(h,S){var N,q;q=String,typeof h!="string"&&!(h instanceof String)&&(h=q(h)),x=k,A=h,w=0,P=A.length>0?1:0,L=0,T=A.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},typeof S<"u"&&(D.range=typeof S.range=="boolean"&&S.range,D.loc=typeof S.loc=="boolean"&&S.loc,D.attachComment=typeof S.attachComment=="boolean"&&S.attachComment,D.loc&&S.source!==null&&S.source!==void 0&&(D.source=q(S.source)),typeof S.tokens=="boolean"&&S.tokens&&(D.tokens=[]),typeof S.comment=="boolean"&&S.comment&&(D.comments=[]),typeof S.tolerant=="boolean"&&S.tolerant&&(D.errors=[]),D.attachComment&&(D.range=!0,D.comments=[],D.bottomRightStack=[],D.trailingComments=[],D.leadingComments=[]));try{N=Ea(),typeof D.comments<"u"&&(N.comments=D.comments),typeof D.tokens<"u"&&(Sa(),N.tokens=D.tokens),typeof D.errors<"u"&&(N.errors=D.errors)}catch(Z){throw Z}finally{D={}}return N}a.version="1.2.2",a.tokenize=xa,a.parse=Ca,a.Syntax=function(){var h,S={};typeof Object.create=="function"&&(S=Object.create(null));for(h in y)y.hasOwnProperty(h)&&(S[h]=y[h]);return typeof Object.freeze=="function"&&Object.freeze(S),S}()})},{}],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(v,k,A,E,w,P,L){E.ast||(E.ast=f,f.initialize());var T=P.length-1;switch(w){case 1:return E.ast.set({expression:{type:"root",value:P[T]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:P[T-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:P[T-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:P[T]}});break;case 15:E.ast.set({expression:{type:"identifier",value:P[T]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:P[T]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(P[T])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:P[T].length>1?E.ast.set({expression:{type:"union",value:P[T]}}):this.$=P[T];break;case 25:this.$=[P[T]];break;case 26:this.$=P[T-2].concat(P[T]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(P[T])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:P[T]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:P[T]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:P[T]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:P[T]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:P[T]}},E.ast.set(this.$);break;case 33:this.$=P[T];break;case 34:this.$=P[T];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(v,k){if(k.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var k=this,A=[0],E=[null],w=[],P=this.table,L="",T=0,x=0,I=2,O=1,D=w.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var K=this.lexer.yylloc;w.push(K);var ie=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 Ee;return Ee=k.lexer.lex()||O,typeof Ee!="number"&&(Ee=k.symbols_[Ee]||Ee),Ee}for(var fe,ye,we,ge,he={},Re,Ie,Te,We;;){if(ye=A[A.length-1],this.defaultActions[ye]?we=this.defaultActions[ye]:((fe===null||typeof fe>"u")&&(fe=ce()),we=P[ye]&&P[ye][fe]),typeof we>"u"||!we.length||!we[0]){var Xe="";We=[];for(Re in P[ye])this.terminals_[Re]&&Re>I&&We.push("'"+this.terminals_[Re]+"'");this.lexer.showPosition?Xe="Parse error on line "+(T+1)+`:
|
|
211
|
+
`,_h=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>$.jsx(ue.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?$.jsxs(ue.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),$.jsx(ue.Tooltip,{title:$.jsx($.Fragment,{children:n(e.slice(t))}),children:$.jsxs(ue.Tag,{children:["+",e.length-t]},"more")})]}):$.jsx(ue.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Th=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),kh=({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)?Th(f)?$.jsx(_h,{tags:Object.entries(f).map(([y,g])=>`${y}: ${String(g)}`),trimLength:u}):$.jsx(Ui,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(y=>y&&!Array.isArray(y))?$.jsx(_h,{tags:f.map(y=>y.toLocaleString()),trimLength:u}):$.jsx(Ui,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?$.jsx(Qt.CheckOutlined,{style:{color:"green"}}):$.jsx(Qt.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?$.jsx(Ui,{trimLength:u,text:String(f)}):typeof f=="string"?$.jsx(Ui,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?$.jsx(Ui,{trimLength:u,text:a}):$.jsx(Ui,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:y,confirm:g,clearFilters:d,close:v})=>$.jsx(L1,{setSelectedKeys:f,selectedKeys:y,confirm:g,clearFilters:d,close:v}),filterIcon:f=>$.jsx(Qt.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,y)=>{const{dataIndex:g}=o,d=Array.isArray(g)?Fs.get(y,g):y[g];if(typeof d=="object"&&!Array.isArray(d))return JSON.stringify(d).toLowerCase().includes(f.toLowerCase());if(Array.isArray(d))return d.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof d=="boolean"){const v=f.toLowerCase()==="true";return d===v}return typeof d=="number"?String(d).includes(f.toLowerCase()):typeof d=="string"?d.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,y)=>{const{dataIndex:g}=o,d=Array.isArray(g)?Fs.get(f,g):f[g],v=Array.isArray(g)?Fs.get(y,g):y[g];return typeof d=="object"&&!Array.isArray(d)&&d!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(d).length-Object.keys(v).length:Object.keys(d).length?-1:1:Array.isArray(d)?Array.isArray(v)?d.length-v.length:d.length?-1:1:typeof d=="boolean"?d===v?0:d?-1:1:typeof d=="number"?typeof v=="number"?d-v:d?-1:1:typeof d=="string"?typeof v=="string"?d.localeCompare(v):d?-1:1:0}}})},Oh=({enrichedColumns:e,navigate:t,baseprefix:n})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:i=>$.jsxs(M1,{$align:"right",className:"hideable",children:[$.jsx(Ch,{type:"text",size:"small",onClick:o=>{o.stopPropagation(),t(`${n}/${i.cluster}${i.namespace?`/${i.namespace}`:""}${i.syntheticProject?`/${i.syntheticProject}`:""}/${i.pathPrefix}/${i.apiGroupAndVersion}/${i.typeName}/${i.entryName}?backlink=${i.backlink}`)},icon:$.jsx(Qt.EditOutlined,{size:14}),disabled:!i.permissions.canUpdate}),$.jsx(Ch,{type:"text",size:"small",onClick:o=>{o.stopPropagation(),i.onDeleteHandle(i.entryName,`${i.deletePathPrefix}/${i.apiGroupAndVersion}${i.namespace?`/namespaces/${i.namespace}`:""}/${i.typeName}/${i.entryName}`)},icon:$.jsx(Qt.DeleteOutlined,{size:14}),disabled:!i.permissions.canDelete})]})}]},Ih=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:y,withoutControls:g=!1})=>{const d=wr.useNavigate();if(!i)return null;const v=kh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!v)return null;const k=g?v:Oh({enrichedColumns:v,navigate:d,baseprefix:t});if(!k)return null;const E=A=>`Total: ${A}`;return $.jsx(xh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,children:$.jsx(xh.HideableControls,{children:$.jsx(ue.Table,{dataSource:n,columns:k,pagination:{position:["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:y?{type:"checkbox",selectedRowKeys:y.selectedRowKeys,onChange:(A,w)=>{y.onChange(A,w.map(({internalDataForControls:R})=>({name:R.entryName,endpoint:`${R.deletePathPrefix}/${R.apiGroupAndVersion}${R.namespace?`/namespaces/${R.namespace}`:""}/${R.typeName}/${R.entryName}`})))}}:void 0,onRow:A=>({onClick:()=>{if(o&&a){const w=Fs.get(A,a),R=typeof w=="string"?w:JSON.stringify(w),L=o.replaceAll("~recordValue~",R);d(L)}}})})})})};function zo(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 Fh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(y,g){if(!o[y]){if(!i[y]){var d=typeof zo=="function"&&zo;if(!g&&d)return d(y,!0);if(l)return l(y,!0);var v=new Error("Cannot find module '"+y+"'");throw v.code="MODULE_NOT_FOUND",v}var k=o[y]={exports:{}};i[y][0].call(k.exports,function(E){var A=i[y][1][E];return u(A||E)},k,k.exports,n,i,o,a)}return o[y].exports}for(var l=typeof zo=="function"&&zo,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,y,g,d,v,k,E,A,w,R,L,T,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","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],y={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},d={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"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function K(h,S){if(!h)throw new Error("ASSERT: "+S)}function ie(h){return h>=48&&h<=57}function ce(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function fe(h){return"01234567".indexOf(h)>=0}function ye(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 we(h){return h===10||h===13||h===8232||h===8233}function ge(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&v.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&&v.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Re(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Ie(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 Te(h){return h==="eval"||h==="arguments"}function We(h){if(A&&Ie(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 Xe(h,S,N,q,Z){var pe;K(typeof N=="number","Comment must have valid position"),!(O.lastCommentStart>=N)&&(O.lastCommentStart=N,pe={type:h,value:S},D.range&&(pe.range=[N,q]),D.loc&&(pe.loc=Z),D.comments.push(pe),D.attachComment&&(D.leadingComments.push(pe),D.trailingComments.push(pe)))}function Ee(h){var S,N,q,Z;for(S=w-h,N={start:{line:R,column:w-L-h}};w<T;)if(q=E.charCodeAt(w),++w,we(q)){D.comments&&(Z=E.slice(S+h,w-1),N.end={line:R,column:w-L-1},Xe("Line",Z,S,w-1,N)),q===13&&E.charCodeAt(w)===10&&++w,++R,L=w;return}D.comments&&(Z=E.slice(S+h,w),N.end={line:R,column:w-L},Xe("Line",Z,S,w,N))}function wt(){var h,S,N,q;for(D.comments&&(h=w-2,S={start:{line:R,column:w-L-2}});w<T;)if(N=E.charCodeAt(w),we(N))N===13&&E.charCodeAt(w+1)===10&&++w,++R,++w,L=w,w>=T&&ke({},d.UnexpectedToken,"ILLEGAL");else if(N===42){if(E.charCodeAt(w+1)===47){++w,++w,D.comments&&(q=E.slice(h+2,w-2),S.end={line:R,column:w-L},Xe("Block",q,h,w,S));return}++w}else++w;ke({},d.UnexpectedToken,"ILLEGAL")}function G(){var h,S;for(S=w===0;w<T;)if(h=E.charCodeAt(w),ye(h))++w;else if(we(h))++w,h===13&&E.charCodeAt(w)===10&&++w,++R,L=w,S=!0;else if(h===47)if(h=E.charCodeAt(w+1),h===47)++w,++w,Ee(2),S=!0;else if(h===42)++w,++w,wt();else break;else if(S&&h===45)if(E.charCodeAt(w+1)===45&&E.charCodeAt(w+2)===62)w+=3,Ee(3);else break;else if(h===60)if(E.slice(w+1,w+4)==="!--")++w,++w,++w,++w,Ee(4);else break;else break}function Y(h){var S,N,q,Z=0;for(N=h==="u"?4:2,S=0;S<N;++S)if(w<T&&ce(E[w]))q=E[w++],Z=Z*16+"0123456789abcdef".indexOf(q.toLowerCase());else return"";return String.fromCharCode(Z)}function oe(){var h,S;for(h=E.charCodeAt(w++),S=String.fromCharCode(h),h===92&&(E.charCodeAt(w)!==117&&ke({},d.UnexpectedToken,"ILLEGAL"),++w,h=Y("u"),(!h||h==="\\"||!ge(h.charCodeAt(0)))&&ke({},d.UnexpectedToken,"ILLEGAL"),S=h);w<T&&(h=E.charCodeAt(w),!!he(h));)++w,S+=String.fromCharCode(h),h===92&&(S=S.substr(0,S.length-1),E.charCodeAt(w)!==117&&ke({},d.UnexpectedToken,"ILLEGAL"),++w,h=Y("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&ke({},d.UnexpectedToken,"ILLEGAL"),S+=h);return S}function xe(){var h,S;for(h=w++;w<T;){if(S=E.charCodeAt(w),S===92)return w=h,oe();if(he(S))++w;else break}return E.slice(h,w)}function Ke(){var h,S,N;return h=w,S=E.charCodeAt(w)===92?oe():xe(),S.length===1?N=u.Identifier:We(S)?N=u.Keyword:S==="null"?N=u.NullLiteral:S==="true"||S==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:S,lineNumber:R,lineStart:L,start:h,end:w}}function Se(){var h=w,S=E.charCodeAt(w),N,q=E[w],Z,pe,He;switch(S){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++w,D.tokenize&&(S===40?D.openParenToken=D.tokens.length:S===123&&(D.openCurlyToken=D.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(S),lineNumber:R,lineStart:L,start:h,end:w};default:if(N=E.charCodeAt(w+1),N===61)switch(S){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return w+=2,{type:u.Punctuator,value:String.fromCharCode(S)+String.fromCharCode(N),lineNumber:R,lineStart:L,start:h,end:w};case 33:case 61:return w+=2,E.charCodeAt(w)===61&&++w,{type:u.Punctuator,value:E.slice(h,w),lineNumber:R,lineStart:L,start:h,end:w}}}if(He=E.substr(w,4),He===">>>=")return w+=4,{type:u.Punctuator,value:He,lineNumber:R,lineStart:L,start:h,end:w};if(pe=He.substr(0,3),pe===">>>"||pe==="<<="||pe===">>=")return w+=3,{type:u.Punctuator,value:pe,lineNumber:R,lineStart:L,start:h,end:w};if(Z=pe.substr(0,2),q===Z[1]&&"+-<>&|".indexOf(q)>=0||Z==="=>")return w+=2,{type:u.Punctuator,value:Z,lineNumber:R,lineStart:L,start:h,end:w};if("<>=!+-*%&|^/".indexOf(q)>=0)return++w,{type:u.Punctuator,value:q,lineNumber:R,lineStart:L,start:h,end:w};ke({},d.UnexpectedToken,"ILLEGAL")}function Fe(h){for(var S="";w<T&&ce(E[w]);)S+=E[w++];return S.length===0&&ke({},d.UnexpectedToken,"ILLEGAL"),ge(E.charCodeAt(w))&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+S,16),lineNumber:R,lineStart:L,start:h,end:w}}function je(h){for(var S="0"+E[w++];w<T&&fe(E[w]);)S+=E[w++];return(ge(E.charCodeAt(w))||ie(E.charCodeAt(w)))&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(S,8),octal:!0,lineNumber:R,lineStart:L,start:h,end:w}}function Le(){var h,S,N;if(N=E[w],K(ie(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),S=w,h="",N!=="."){if(h=E[w++],N=E[w],h==="0"){if(N==="x"||N==="X")return++w,Fe(S);if(fe(N))return je(S);N&&ie(N.charCodeAt(0))&&ke({},d.UnexpectedToken,"ILLEGAL")}for(;ie(E.charCodeAt(w));)h+=E[w++];N=E[w]}if(N==="."){for(h+=E[w++];ie(E.charCodeAt(w));)h+=E[w++];N=E[w]}if(N==="e"||N==="E")if(h+=E[w++],N=E[w],(N==="+"||N==="-")&&(h+=E[w++]),ie(E.charCodeAt(w)))for(;ie(E.charCodeAt(w));)h+=E[w++];else ke({},d.UnexpectedToken,"ILLEGAL");return ge(E.charCodeAt(w))&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:R,lineStart:L,start:S,end:w}}function Tt(){var h="",S,N,q,Z,pe,He,mt=!1,tn,Gt;for(tn=R,Gt=L,S=E[w],K(S==="'"||S==='"',"String literal must starts with a quote"),N=w,++w;w<T;)if(q=E[w++],q===S){S="";break}else if(q==="\\")if(q=E[w++],!q||!we(q.charCodeAt(0)))switch(q){case"u":case"x":He=w,pe=Y(q),pe?h+=pe:(w=He,h+=q);break;case"n":h+=`
|
|
212
|
+
`;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)?(Z="01234567".indexOf(q),Z!==0&&(mt=!0),w<T&&fe(E[w])&&(mt=!0,Z=Z*8+"01234567".indexOf(E[w++]),"0123".indexOf(q)>=0&&w<T&&fe(E[w])&&(Z=Z*8+"01234567".indexOf(E[w++]))),h+=String.fromCharCode(Z)):h+=q;break}else++R,q==="\r"&&E[w]===`
|
|
213
|
+
`&&++w,L=w;else{if(we(q.charCodeAt(0)))break;h+=q}return S!==""&&ke({},d.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:mt,startLineNumber:tn,startLineStart:Gt,lineNumber:R,lineStart:L,start:N,end:w}}function sn(h,S){var N;try{N=new RegExp(h,S)}catch{ke({},d.InvalidRegExp)}return N}function Nt(){var h,S,N,q,Z;for(h=E[w],K(h==="/","Regular expression literal must start with a slash"),S=E[w++],N=!1,q=!1;w<T;)if(h=E[w++],S+=h,h==="\\")h=E[w++],we(h.charCodeAt(0))&&ke({},d.UnterminatedRegExp),S+=h;else if(we(h.charCodeAt(0)))ke({},d.UnterminatedRegExp);else if(N)h==="]"&&(N=!1);else if(h==="/"){q=!0;break}else h==="["&&(N=!0);return q||ke({},d.UnterminatedRegExp),Z=S.substr(1,S.length-2),{value:Z,literal:S}}function Lt(){var h,S,N,q;for(S="",N="";w<T&&(h=E[w],!!he(h.charCodeAt(0)));)if(++w,h==="\\"&&w<T)if(h=E[w],h==="u"){if(++w,q=w,h=Y("u"),h)for(N+=h,S+="\\u";q<w;++q)S+=E[q];else w=q,N+="u",S+="\\u";Be({},d.UnexpectedToken,"ILLEGAL")}else S+="\\",Be({},d.UnexpectedToken,"ILLEGAL");else N+=h,S+=h;return{value:N,literal:S}}function ve(){var h,S,N,q;return I=null,G(),h=w,S=Nt(),N=Lt(),q=sn(S.value,N.value),D.tokenize?{type:u.RegularExpression,value:q,lineNumber:R,lineStart:L,start:h,end:w}:{literal:S.literal+N.literal,value:q,start:h,end:w}}function Ce(){var h,S,N,q;return G(),h=w,S={start:{line:R,column:w-L}},N=ve(),S.end={line:R,column:w-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:N.literal,range:[h,w],loc:S})),N}function qe(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function kt(){var h,S;if(h=D.tokens[D.tokens.length-1],!h)return Ce();if(h.type==="Punctuator"){if(h.value==="]")return Se();if(h.value===")")return S=D.tokens[D.openParenToken-1],S&&S.type==="Keyword"&&(S.value==="if"||S.value==="while"||S.value==="for"||S.value==="with")?Ce():Se();if(h.value==="}"){if(D.tokens[D.openCurlyToken-3]&&D.tokens[D.openCurlyToken-3].type==="Keyword"){if(S=D.tokens[D.openCurlyToken-4],!S)return Se()}else if(D.tokens[D.openCurlyToken-4]&&D.tokens[D.openCurlyToken-4].type==="Keyword"){if(S=D.tokens[D.openCurlyToken-5],!S)return Ce()}else return Se();return f.indexOf(S.value)>=0?Se():Ce()}return Ce()}return h.type==="Keyword"?Ce():Se()}function ht(){var h;return G(),w>=T?{type:u.EOF,lineNumber:R,lineStart:L,start:w,end:w}:(h=E.charCodeAt(w),ge(h)?Ke():h===40||h===41||h===59?Se():h===39||h===34?Tt():h===46?ie(E.charCodeAt(w+1))?Le():Se():ie(h)?Le():D.tokenize&&h===47?kt():Se())}function Et(){var h,S,N;return G(),h={start:{line:R,column:w-L}},S=ht(),h.end={line:R,column:w-L},S.type!==u.EOF&&(N=E.slice(S.start,S.end),D.tokens.push({type:l[S.type],value:N,range:[S.start,S.end],loc:h})),S}function de(){var h;return h=I,w=h.end,R=h.lineNumber,L=h.lineStart,I=typeof D.tokens<"u"?Et():ht(),w=h.end,R=h.lineNumber,L=h.lineStart,h}function Qe(){var h,S,N;h=w,S=R,N=L,I=typeof D.tokens<"u"?Et():ht(),w=h,R=S,L=N}function St(h,S){this.line=h,this.column=S}function it(h,S,N,q){this.start=new St(h,S),this.end=new St(N,q)}k={name:"SyntaxTree",processComment:function(h){var S,N;if(!(h.type===y.Program&&h.body.length>0)){for(D.trailingComments.length>0?D.trailingComments[0].range[0]>=h.range[1]?(N=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]&&(N=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];)S=D.bottomRightStack.pop();S?S.leadingComments&&S.leadingComments[S.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=S.leadingComments,delete S.leadingComments):D.leadingComments.length>0&&D.leadingComments[D.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=D.leadingComments,D.leadingComments=[]),N&&(h.trailingComments=N),D.bottomRightStack.push(h)}},markEnd:function(h,S){return D.range&&(h.range=[S.start,w]),D.loc&&(h.loc=new it(S.startLineNumber===void 0?S.lineNumber:S.startLineNumber,S.start-(S.startLineStart===void 0?S.lineStart:S.startLineStart),R,w-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:y.ArrayExpression,elements:h}},createAssignmentExpression:function(h,S,N){return{type:y.AssignmentExpression,operator:h,left:S,right:N}},createBinaryExpression:function(h,S,N){var q=h==="||"||h==="&&"?y.LogicalExpression:y.BinaryExpression;return{type:q,operator:h,left:S,right:N}},createBlockStatement:function(h){return{type:y.BlockStatement,body:h}},createBreakStatement:function(h){return{type:y.BreakStatement,label:h}},createCallExpression:function(h,S){return{type:y.CallExpression,callee:h,arguments:S}},createCatchClause:function(h,S){return{type:y.CatchClause,param:h,body:S}},createConditionalExpression:function(h,S,N){return{type:y.ConditionalExpression,test:h,consequent:S,alternate:N}},createContinueStatement:function(h){return{type:y.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:y.DebuggerStatement}},createDoWhileStatement:function(h,S){return{type:y.DoWhileStatement,body:h,test:S}},createEmptyStatement:function(){return{type:y.EmptyStatement}},createExpressionStatement:function(h){return{type:y.ExpressionStatement,expression:h}},createForStatement:function(h,S,N,q){return{type:y.ForStatement,init:h,test:S,update:N,body:q}},createForInStatement:function(h,S,N){return{type:y.ForInStatement,left:h,right:S,body:N,each:!1}},createFunctionDeclaration:function(h,S,N,q){return{type:y.FunctionDeclaration,id:h,params:S,defaults:N,body:q,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,S,N,q){return{type:y.FunctionExpression,id:h,params:S,defaults:N,body:q,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:y.Identifier,name:h}},createIfStatement:function(h,S,N){return{type:y.IfStatement,test:h,consequent:S,alternate:N}},createLabeledStatement:function(h,S){return{type:y.LabeledStatement,label:h,body:S}},createLiteral:function(h){return{type:y.Literal,value:h.value,raw:E.slice(h.start,h.end)}},createMemberExpression:function(h,S,N){return{type:y.MemberExpression,computed:h==="[",object:S,property:N}},createNewExpression:function(h,S){return{type:y.NewExpression,callee:h,arguments:S}},createObjectExpression:function(h){return{type:y.ObjectExpression,properties:h}},createPostfixExpression:function(h,S){return{type:y.UpdateExpression,operator:h,argument:S,prefix:!1}},createProgram:function(h){return{type:y.Program,body:h}},createProperty:function(h,S,N){return{type:y.Property,key:S,value:N,kind:h}},createReturnStatement:function(h){return{type:y.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:y.SequenceExpression,expressions:h}},createSwitchCase:function(h,S){return{type:y.SwitchCase,test:h,consequent:S}},createSwitchStatement:function(h,S){return{type:y.SwitchStatement,discriminant:h,cases:S}},createThisExpression:function(){return{type:y.ThisExpression}},createThrowStatement:function(h){return{type:y.ThrowStatement,argument:h}},createTryStatement:function(h,S,N,q){return{type:y.TryStatement,block:h,guardedHandlers:S,handlers:N,finalizer:q}},createUnaryExpression:function(h,S){return h==="++"||h==="--"?{type:y.UpdateExpression,operator:h,argument:S,prefix:!0}:{type:y.UnaryExpression,operator:h,argument:S,prefix:!0}},createVariableDeclaration:function(h,S){return{type:y.VariableDeclaration,declarations:h,kind:S}},createVariableDeclarator:function(h,S){return{type:y.VariableDeclarator,id:h,init:S}},createWhileStatement:function(h,S){return{type:y.WhileStatement,test:h,body:S}},createWithStatement:function(h,S){return{type:y.WithStatement,object:h,body:S}}};function Mt(){var h,S,N,q;return h=w,S=R,N=L,G(),q=R!==S,w=h,R=S,L=N,q}function ke(h,S){var N,q=Array.prototype.slice.call(arguments,2),Z=S.replace(/%(\d)/g,function(pe,He){return K(He<q.length,"Message reference must be in range"),q[He]});throw typeof h.lineNumber=="number"?(N=new Error("Line "+h.lineNumber+": "+Z),N.index=h.start,N.lineNumber=h.lineNumber,N.column=h.start-L+1):(N=new Error("Line "+R+": "+Z),N.index=w,N.lineNumber=R,N.column=w-L+1),N.description=Z,N}function Be(){try{ke.apply(null,arguments)}catch(h){if(D.errors)D.errors.push(h);else throw h}}function $t(h){if(h.type===u.EOF&&ke(h,d.UnexpectedEOS),h.type===u.NumericLiteral&&ke(h,d.UnexpectedNumber),h.type===u.StringLiteral&&ke(h,d.UnexpectedString),h.type===u.Identifier&&ke(h,d.UnexpectedIdentifier),h.type===u.Keyword){if(Re(h.value))ke(h,d.UnexpectedReserved);else if(A&&Ie(h.value)){Be(h,d.StrictReservedWord);return}ke(h,d.UnexpectedToken,h.value)}ke(h,d.UnexpectedToken,h.value)}function _(h){var S=de();(S.type!==u.Punctuator||S.value!==h)&&$t(S)}function p(h){var S=de();(S.type!==u.Keyword||S.value!==h)&&$t(S)}function b(h){return I.type===u.Punctuator&&I.value===h}function P(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 z(){var h;if(E.charCodeAt(w)===59||b(";")){de();return}h=R,G(),R===h&&I.type!==u.EOF&&!b("}")&&$t(I)}function X(h){return h.type===y.Identifier||h.type===y.MemberExpression}function $e(){var h=[],S;for(S=I,_("[");!b("]");)b(",")?(de(),h.push(null)):(h.push(gn()),b("]")||_(","));return de(),x.markEnd(x.createArrayExpression(h),S)}function dt(h,S){var N,q,Z;return N=A,Z=I,q=os(),S&&A&&Te(h[0].name)&&Be(S,d.StrictParamName),A=N,x.markEnd(x.createFunctionExpression(null,h,[],q),Z)}function ut(){var h,S;return S=I,h=de(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(A&&h.octal&&Be(h,d.StrictOctalLiteral),x.markEnd(x.createLiteral(h),S)):x.markEnd(x.createIdentifier(h.value),S)}function pt(){var h,S,N,q,Z,pe;if(h=I,pe=I,h.type===u.Identifier)return N=ut(),h.value==="get"&&!b(":")?(S=ut(),_("("),_(")"),q=dt([]),x.markEnd(x.createProperty("get",S,q),pe)):h.value==="set"&&!b(":")?(S=ut(),_("("),h=I,h.type!==u.Identifier?(_(")"),Be(h,d.UnexpectedToken,h.value),q=dt([])):(Z=[Oe()],_(")"),q=dt(Z,h)),x.markEnd(x.createProperty("set",S,q),pe)):(_(":"),q=gn(),x.markEnd(x.createProperty("init",N,q),pe));if(h.type===u.EOF||h.type===u.Punctuator)$t(h);else return S=ut(),_(":"),q=gn(),x.markEnd(x.createProperty("init",S,q),pe)}function st(){var h=[],S,N,q,Z,pe={},He=String,mt;for(mt=I,_("{");!b("}");)S=pt(),S.key.type===y.Identifier?N=S.key.name:N=He(S.key.value),Z=S.kind==="init"?g.Data:S.kind==="get"?g.Get:g.Set,q="$"+N,Object.prototype.hasOwnProperty.call(pe,q)?(pe[q]===g.Data?A&&Z===g.Data?Be({},d.StrictDuplicateProperty):Z!==g.Data&&Be({},d.AccessorDataProperty):Z===g.Data?Be({},d.AccessorDataProperty):pe[q]&Z&&Be({},d.AccessorGetSet),pe[q]|=Z):pe[q]=Z,h.push(S),b("}")||_(",");return _("}"),x.markEnd(x.createObjectExpression(h),mt)}function qr(){var h;return _("("),h=M(),_(")"),h}function yi(){var h,S,N,q;if(b("("))return qr();if(b("["))return $e();if(b("{"))return st();if(h=I.type,q=I,h===u.Identifier)N=x.createIdentifier(de().value);else if(h===u.StringLiteral||h===u.NumericLiteral)A&&I.octal&&Be(I,d.StrictOctalLiteral),N=x.createLiteral(de());else if(h===u.Keyword){if(P("function"))return Vc();P("this")?(de(),N=x.createThisExpression()):$t(de())}else h===u.BooleanLiteral?(S=de(),S.value=S.value==="true",N=x.createLiteral(S)):h===u.NullLiteral?(S=de(),S.value=null,N=x.createLiteral(S)):b("/")||b("/=")?(typeof D.tokens<"u"?N=x.createLiteral(Ce()):N=x.createLiteral(ve()),Qe()):$t(de());return x.markEnd(N,q)}function rs(){var h=[];if(_("("),!b(")"))for(;w<T&&(h.push(gn()),!b(")"));)_(",");return _(")"),h}function is(){var h,S;return S=I,h=de(),qe(h)||$t(h),x.markEnd(x.createIdentifier(h.value),S)}function ss(){return _("."),is()}function Wr(){var h;return _("["),h=M(),_("]"),h}function mi(){var h,S,N;return N=I,p("new"),h=to(),S=b("(")?rs():[],x.markEnd(x.createNewExpression(h,S),N)}function eo(){var h,S,N,q,Z;for(Z=I,h=O.allowIn,O.allowIn=!0,S=P("new")?mi():yi(),O.allowIn=h;;){if(b("."))q=ss(),S=x.createMemberExpression(".",S,q);else if(b("("))N=rs(),S=x.createCallExpression(S,N);else if(b("["))q=Wr(),S=x.createMemberExpression("[",S,q);else break;x.markEnd(S,Z)}return S}function to(){var h,S,N,q;for(q=I,h=O.allowIn,S=P("new")?mi():yi(),O.allowIn=h;b(".")||b("[");)b("[")?(N=Wr(),S=x.createMemberExpression("[",S,N)):(N=ss(),S=x.createMemberExpression(".",S,N)),x.markEnd(S,q);return S}function _r(){var h,S,N=I;return h=eo(),I.type===u.Punctuator&&(b("++")||b("--"))&&!Mt()&&(A&&h.type===y.Identifier&&Te(h.name)&&Be({},d.StrictLHSPostfix),X(h)||Be({},d.InvalidLHSInAssignment),S=de(),h=x.markEnd(x.createPostfixExpression(S.value,h),N)),h}function nr(){var h,S,N;return I.type!==u.Punctuator&&I.type!==u.Keyword?S=_r():b("++")||b("--")?(N=I,h=de(),S=nr(),A&&S.type===y.Identifier&&Te(S.name)&&Be({},d.StrictLHSPrefix),X(S)||Be({},d.InvalidLHSInAssignment),S=x.createUnaryExpression(h.value,S),S=x.markEnd(S,N)):b("+")||b("-")||b("~")||b("!")?(N=I,h=de(),S=nr(),S=x.createUnaryExpression(h.value,S),S=x.markEnd(S,N)):P("delete")||P("void")||P("typeof")?(N=I,h=de(),S=nr(),S=x.createUnaryExpression(h.value,S),S=x.markEnd(S,N),A&&S.operator==="delete"&&S.argument.type===y.Identifier&&Be({},d.StrictDelete)):S=_r(),S}function Kr(h,S){var N=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=S?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function no(){var h,S,N,q,Z,pe,He,mt,tn,Gt;if(h=I,tn=nr(),q=I,Z=Kr(q,O.allowIn),Z===0)return tn;for(q.prec=Z,de(),S=[h,I],He=nr(),pe=[tn,q,He];(Z=Kr(I,O.allowIn))>0;){for(;pe.length>2&&Z<=pe[pe.length-2].prec;)He=pe.pop(),mt=pe.pop().value,tn=pe.pop(),N=x.createBinaryExpression(mt,tn,He),S.pop(),h=S[S.length-1],x.markEnd(N,h),pe.push(N);q=de(),q.prec=Z,pe.push(q),S.push(I),N=nr(),pe.push(N)}for(Gt=pe.length-1,N=pe[Gt],S.pop();Gt>1;)N=x.createBinaryExpression(pe[Gt-1].value,pe[Gt-2],N),Gt-=2,h=S.pop(),x.markEnd(N,h);return N}function ro(){var h,S,N,q,Z;return Z=I,h=no(),b("?")&&(de(),S=O.allowIn,O.allowIn=!0,N=gn(),O.allowIn=S,_(":"),q=gn(),h=x.createConditionalExpression(h,N,q),x.markEnd(h,Z)),h}function gn(){var h,S,N,q,Z;return h=I,Z=I,q=S=ro(),V()&&(X(S)||Be({},d.InvalidLHSInAssignment),A&&S.type===y.Identifier&&Te(S.name)&&Be(h,d.StrictLHSAssignment),h=de(),N=gn(),q=x.markEnd(x.createAssignmentExpression(h.value,S,N),Z)),q}function M(){var h,S=I;if(h=gn(),b(",")){for(h=x.createSequenceExpression([h]);w<T&&b(",");)de(),h.expressions.push(gn());x.markEnd(h,S)}return h}function ae(){for(var h=[],S;w<T&&!(b("}")||(S=Hr(),typeof S>"u"));)h.push(S);return h}function me(){var h,S;return S=I,_("{"),h=ae(),_("}"),x.markEnd(x.createBlockStatement(h),S)}function Oe(){var h,S;return S=I,h=de(),h.type!==u.Identifier&&$t(h),x.markEnd(x.createIdentifier(h.value),S)}function ct(h){var S=null,N,q;return q=I,N=Oe(),A&&Te(N.name)&&Be({},d.StrictVarName),h==="const"?(_("="),S=gn()):b("=")&&(de(),S=gn()),x.markEnd(x.createVariableDeclarator(N,S),q)}function lt(h){var S=[];do{if(S.push(ct(h)),!b(","))break;de()}while(w<T);return S}function tt(){var h;return p("var"),h=lt(),z(),x.createVariableDeclaration(h,"var")}function Je(h){var S,N;return N=I,p(h),S=lt(h),z(),x.markEnd(x.createVariableDeclaration(S,h),N)}function en(){return _(";"),x.createEmptyStatement()}function Bt(){var h=M();return z(),x.createExpressionStatement(h)}function Rt(){var h,S,N;return p("if"),_("("),h=M(),_(")"),S=kn(),P("else")?(de(),N=kn()):N=null,x.createIfStatement(h,S,N)}function ln(){var h,S,N;return p("do"),N=O.inIteration,O.inIteration=!0,h=kn(),O.inIteration=N,p("while"),_("("),S=M(),_(")"),b(";")&&de(),x.createDoWhileStatement(h,S)}function Tn(){var h,S,N;return p("while"),_("("),h=M(),_(")"),N=O.inIteration,O.inIteration=!0,S=kn(),O.inIteration=N,x.createWhileStatement(h,S)}function rr(){var h,S,N;return N=I,h=de(),S=lt(),x.markEnd(x.createVariableDeclaration(S,h.value),N)}function zt(){var h,S,N,q,Z,pe,He;return h=S=N=null,p("for"),_("("),b(";")?de():(P("var")||P("let")?(O.allowIn=!1,h=rr(),O.allowIn=!0,h.declarations.length===1&&P("in")&&(de(),q=h,Z=M(),h=null)):(O.allowIn=!1,h=M(),O.allowIn=!0,P("in")&&(X(h)||Be({},d.InvalidLHSInForIn),de(),q=h,Z=M(),h=null)),typeof q>"u"&&_(";")),typeof q>"u"&&(b(";")||(S=M()),_(";"),b(")")||(N=M())),_(")"),He=O.inIteration,O.inIteration=!0,pe=kn(),O.inIteration=He,typeof q>"u"?x.createForStatement(h,S,N,pe):x.createForInStatement(q,Z,pe)}function bi(){var h=null,S;return p("continue"),E.charCodeAt(w)===59?(de(),O.inIteration||ke({},d.IllegalContinue),x.createContinueStatement(null)):Mt()?(O.inIteration||ke({},d.IllegalContinue),x.createContinueStatement(null)):(I.type===u.Identifier&&(h=Oe(),S="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,S)||ke({},d.UnknownLabel,h.name)),z(),h===null&&!O.inIteration&&ke({},d.IllegalContinue),x.createContinueStatement(h))}function io(){var h=null,S;return p("break"),E.charCodeAt(w)===59?(de(),O.inIteration||O.inSwitch||ke({},d.IllegalBreak),x.createBreakStatement(null)):Mt()?(O.inIteration||O.inSwitch||ke({},d.IllegalBreak),x.createBreakStatement(null)):(I.type===u.Identifier&&(h=Oe(),S="$"+h.name,Object.prototype.hasOwnProperty.call(O.labelSet,S)||ke({},d.UnknownLabel,h.name)),z(),h===null&&!(O.inIteration||O.inSwitch)&&ke({},d.IllegalBreak),x.createBreakStatement(h))}function so(){var h=null;return p("return"),O.inFunctionBody||Be({},d.IllegalReturn),E.charCodeAt(w)===32&&ge(E.charCodeAt(w+1))?(h=M(),z(),x.createReturnStatement(h)):Mt()?x.createReturnStatement(null):(b(";")||!b("}")&&I.type!==u.EOF&&(h=M()),z(),x.createReturnStatement(h))}function wa(){var h,S;return A&&(G(),Be({},d.StrictModeWith)),p("with"),_("("),h=M(),_(")"),S=kn(),x.createWithStatement(h,S)}function va(){var h,S=[],N,q;for(q=I,P("default")?(de(),h=null):(p("case"),h=M()),_(":");w<T&&!(b("}")||P("default")||P("case"));)N=kn(),S.push(N);return x.markEnd(x.createSwitchCase(h,S),q)}function Aa(){var h,S,N,q,Z;if(p("switch"),_("("),h=M(),_(")"),_("{"),S=[],b("}"))return de(),x.createSwitchStatement(h,S);for(q=O.inSwitch,O.inSwitch=!0,Z=!1;w<T&&!b("}");)N=va(),N.test===null&&(Z&&ke({},d.MultipleDefaultsInSwitch),Z=!0),S.push(N);return O.inSwitch=q,_("}"),x.createSwitchStatement(h,S)}function $c(){var h;return p("throw"),Mt()&&ke({},d.NewlineAfterThrow),h=M(),z(),x.createThrowStatement(h)}function jc(){var h,S,N;return N=I,p("catch"),_("("),b(")")&&$t(I),h=Oe(),A&&Te(h.name)&&Be({},d.StrictCatchVariable),_(")"),S=me(),x.markEnd(x.createCatchClause(h,S),N)}function Mc(){var h,S=[],N=null;return p("try"),h=me(),P("catch")&&S.push(jc()),P("finally")&&(de(),N=me()),S.length===0&&!N&&ke({},d.NoCatchOrFinally),x.createTryStatement(h,[],S,N)}function Uc(){return p("debugger"),z(),x.createDebuggerStatement()}function kn(){var h=I.type,S,N,q,Z;if(h===u.EOF&&$t(I),h===u.Punctuator&&I.value==="{")return me();if(Z=I,h===u.Punctuator)switch(I.value){case";":return x.markEnd(en(),Z);case"(":return x.markEnd(Bt(),Z)}if(h===u.Keyword)switch(I.value){case"break":return x.markEnd(io(),Z);case"continue":return x.markEnd(bi(),Z);case"debugger":return x.markEnd(Uc(),Z);case"do":return x.markEnd(ln(),Z);case"for":return x.markEnd(zt(),Z);case"function":return x.markEnd(as(),Z);case"if":return x.markEnd(Rt(),Z);case"return":return x.markEnd(so(),Z);case"switch":return x.markEnd(Aa(),Z);case"throw":return x.markEnd($c(),Z);case"try":return x.markEnd(Mc(),Z);case"var":return x.markEnd(tt(),Z);case"while":return x.markEnd(Tn(),Z);case"with":return x.markEnd(wa(),Z)}return S=M(),S.type===y.Identifier&&b(":")?(de(),q="$"+S.name,Object.prototype.hasOwnProperty.call(O.labelSet,q)&&ke({},d.Redeclaration,"Label",S.name),O.labelSet[q]=!0,N=kn(),delete O.labelSet[q],x.markEnd(x.createLabeledStatement(S,N),Z)):(z(),x.markEnd(x.createExpressionStatement(S),Z))}function os(){var h,S=[],N,q,Z,pe,He,mt,tn,Gt;for(Gt=I,_("{");w<T&&!(I.type!==u.StringLiteral||(N=I,h=Hr(),S.push(h),h.expression.type!==y.Literal));)q=E.slice(N.start+1,N.end-1),q==="use strict"?(A=!0,Z&&Be(Z,d.StrictOctalLiteral)):!Z&&N.octal&&(Z=N);for(pe=O.labelSet,He=O.inIteration,mt=O.inSwitch,tn=O.inFunctionBody,O.labelSet={},O.inIteration=!1,O.inSwitch=!1,O.inFunctionBody=!0;w<T&&!(b("}")||(h=Hr(),typeof h>"u"));)S.push(h);return _("}"),O.labelSet=pe,O.inIteration=He,O.inSwitch=mt,O.inFunctionBody=tn,x.markEnd(x.createBlockStatement(S),Gt)}function oo(h){var S,N=[],q,Z,pe,He,mt;if(_("("),!b(")"))for(pe={};w<T&&(q=I,S=Oe(),He="$"+q.value,A?(Te(q.value)&&(Z=q,mt=d.StrictParamName),Object.prototype.hasOwnProperty.call(pe,He)&&(Z=q,mt=d.StrictParamDupe)):h||(Te(q.value)?(h=q,mt=d.StrictParamName):Ie(q.value)?(h=q,mt=d.StrictReservedWord):Object.prototype.hasOwnProperty.call(pe,He)&&(h=q,mt=d.StrictParamDupe)),N.push(S),pe[He]=!0,!b(")"));)_(",");return _(")"),{params:N,stricted:Z,firstRestricted:h,message:mt}}function as(){var h,S=[],N,q,Z,pe,He,mt,tn,Gt;return Gt=I,p("function"),q=I,h=Oe(),A?Te(q.value)&&Be(q,d.StrictFunctionName):Te(q.value)?(He=q,mt=d.StrictFunctionName):Ie(q.value)&&(He=q,mt=d.StrictReservedWord),pe=oo(He),S=pe.params,Z=pe.stricted,He=pe.firstRestricted,pe.message&&(mt=pe.message),tn=A,N=os(),A&&He&&ke(He,mt),A&&Z&&Be(Z,mt),A=tn,x.markEnd(x.createFunctionDeclaration(h,S,[],N),Gt)}function Vc(){var h,S=null,N,q,Z,pe,He=[],mt,tn,Gt;return Gt=I,p("function"),b("(")||(h=I,S=Oe(),A?Te(h.value)&&Be(h,d.StrictFunctionName):Te(h.value)?(q=h,Z=d.StrictFunctionName):Ie(h.value)&&(q=h,Z=d.StrictReservedWord)),pe=oo(q),He=pe.params,N=pe.stricted,q=pe.firstRestricted,pe.message&&(Z=pe.message),tn=A,mt=os(),A&&q&&ke(q,Z),A&&N&&Be(N,Z),A=tn,x.markEnd(x.createFunctionExpression(S,He,[],mt),Gt)}function Hr(){if(I.type===u.Keyword)switch(I.value){case"const":case"let":return Je(I.value);case"function":return as();default:return kn()}if(I.type!==u.EOF)return kn()}function us(){for(var h,S=[],N,q,Z;w<T&&(N=I,!(N.type!==u.StringLiteral||(h=Hr(),S.push(h),h.expression.type!==y.Literal)));)q=E.slice(N.start+1,N.end-1),q==="use strict"?(A=!0,Z&&Be(Z,d.StrictOctalLiteral)):!Z&&N.octal&&(Z=N);for(;w<T&&(h=Hr(),!(typeof h>"u"));)S.push(h);return S}function Ea(){var h,S;return G(),Qe(),S=I,A=!1,h=us(),x.markEnd(x.createProgram(h),S)}function Sa(){var h,S,N,q=[];for(h=0;h<D.tokens.length;++h)S=D.tokens[h],N={type:S.type,value:S.value},D.range&&(N.range=S.range),D.loc&&(N.loc=S.loc),q.push(N);D.tokens=q}function xa(h,S){var N,q,Z;N=String,typeof h!="string"&&!(h instanceof String)&&(h=N(h)),x=k,E=h,w=0,R=E.length>0?1:0,L=0,T=E.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},S=S||{},S.tokens=!0,D.tokens=[],D.tokenize=!0,D.openParenToken=-1,D.openCurlyToken=-1,D.range=typeof S.range=="boolean"&&S.range,D.loc=typeof S.loc=="boolean"&&S.loc,typeof S.comment=="boolean"&&S.comment&&(D.comments=[]),typeof S.tolerant=="boolean"&&S.tolerant&&(D.errors=[]);try{if(Qe(),I.type===u.EOF)return D.tokens;for(q=de();I.type!==u.EOF;)try{q=de()}catch(pe){if(q=I,D.errors){D.errors.push(pe);break}else throw pe}Sa(),Z=D.tokens,typeof D.comments<"u"&&(Z.comments=D.comments),typeof D.errors<"u"&&(Z.errors=D.errors)}catch(pe){throw pe}finally{D={}}return Z}function Ca(h,S){var N,q;q=String,typeof h!="string"&&!(h instanceof String)&&(h=q(h)),x=k,E=h,w=0,R=E.length>0?1:0,L=0,T=E.length,I=null,O={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},typeof S<"u"&&(D.range=typeof S.range=="boolean"&&S.range,D.loc=typeof S.loc=="boolean"&&S.loc,D.attachComment=typeof S.attachComment=="boolean"&&S.attachComment,D.loc&&S.source!==null&&S.source!==void 0&&(D.source=q(S.source)),typeof S.tokens=="boolean"&&S.tokens&&(D.tokens=[]),typeof S.comment=="boolean"&&S.comment&&(D.comments=[]),typeof S.tolerant=="boolean"&&S.tolerant&&(D.errors=[]),D.attachComment&&(D.range=!0,D.comments=[],D.bottomRightStack=[],D.trailingComments=[],D.leadingComments=[]));try{N=Ea(),typeof D.comments<"u"&&(N.comments=D.comments),typeof D.tokens<"u"&&(Sa(),N.tokens=D.tokens),typeof D.errors<"u"&&(N.errors=D.errors)}catch(Z){throw Z}finally{D={}}return N}a.version="1.2.2",a.tokenize=xa,a.parse=Ca,a.Syntax=function(){var h,S={};typeof Object.create=="function"&&(S=Object.create(null));for(h in y)y.hasOwnProperty(h)&&(S[h]=y[h]);return typeof Object.freeze=="function"&&Object.freeze(S),S}()})},{}],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(v,k,E,A,w,R,L){A.ast||(A.ast=f,f.initialize());var T=R.length-1;switch(w){case 1:return A.ast.set({expression:{type:"root",value:R[T]}}),A.ast.unshift(),A.ast.yield();case 2:return A.ast.set({expression:{type:"root",value:R[T-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[T-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[T]}});break;case 15:A.ast.set({expression:{type:"identifier",value:R[T]}});break;case 16:A.ast.set({expression:{type:"script_expression",value:R[T]}});break;case 17:A.ast.set({expression:{type:"numeric_literal",value:parseInt(R[T])}});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[T].length>1?A.ast.set({expression:{type:"union",value:R[T]}}):this.$=R[T];break;case 25:this.$=[R[T]];break;case 26:this.$=R[T-2].concat(R[T]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(R[T])}},A.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:R[T]}},A.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:R[T]}},A.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:R[T]}},A.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:R[T]}},A.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:R[T]}},A.ast.set(this.$);break;case 33:this.$=R[T];break;case 34:this.$=R[T];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(v,k){if(k.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var k=this,E=[0],A=[null],w=[],R=this.table,L="",T=0,x=0,I=2,O=1,D=w.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var K=this.lexer.yylloc;w.push(K);var ie=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 Ee;return Ee=k.lexer.lex()||O,typeof Ee!="number"&&(Ee=k.symbols_[Ee]||Ee),Ee}for(var fe,ye,we,ge,he={},Re,Ie,Te,We;;){if(ye=E[E.length-1],this.defaultActions[ye]?we=this.defaultActions[ye]:((fe===null||typeof fe>"u")&&(fe=ce()),we=R[ye]&&R[ye][fe]),typeof we>"u"||!we.length||!we[0]){var Xe="";We=[];for(Re in R[ye])this.terminals_[Re]&&Re>I&&We.push("'"+this.terminals_[Re]+"'");this.lexer.showPosition?Xe="Parse error on line "+(T+1)+`:
|
|
214
214
|
`+this.lexer.showPosition()+`
|
|
215
|
-
Expecting `+We.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Xe="Parse error on line "+(T+1)+": Unexpected "+(fe==O?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Xe,{text:this.lexer.match,token:this.terminals_[fe]||fe,line:this.lexer.yylineno,loc:K,expected:We})}if(we[0]instanceof Array&&we.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+fe);switch(we[0]){case 1:
|
|
215
|
+
Expecting `+We.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Xe="Parse error on line "+(T+1)+": Unexpected "+(fe==O?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Xe,{text:this.lexer.match,token:this.terminals_[fe]||fe,line:this.lexer.yylineno,loc:K,expected:We})}if(we[0]instanceof Array&&we.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+fe);switch(we[0]){case 1:E.push(fe),A.push(this.lexer.yytext),w.push(this.lexer.yylloc),E.push(we[1]),fe=null,x=this.lexer.yyleng,L=this.lexer.yytext,T=this.lexer.yylineno,K=this.lexer.yylloc;break;case 2:if(Ie=this.productions_[we[1]][1],he.$=A[A.length-Ie],he._$={first_line:w[w.length-(Ie||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(Ie||1)].first_column,last_column:w[w.length-1].last_column},ie&&(he._$.range=[w[w.length-(Ie||1)].range[0],w[w.length-1].range[1]]),ge=this.performAction.apply(he,[L,x,T,this.yy,we[1],A,w].concat(D)),typeof ge<"u")return ge;Ie&&(E=E.slice(0,-1*Ie*2),A=A.slice(0,-1*Ie),w=w.slice(0,-1*Ie)),E.push(this.productions_[we[1]][0]),A.push(he.$),w.push(he._$),Te=R[E[E.length-2]][E[E.length-1]],E.push(Te);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(d){for(var v in d)this._node[v]=d[v];return this._node},node:function(d){return arguments.length&&(this._node=d),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var d=this._nodes;return this.initialize(),d}},y=function(){var d={EOF:1,parseError:function(k,E){if(this.yy.parser)this.yy.parser.parseError(k,E);else throw new Error(k)},setInput:function(v){return this._input=v,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 v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var k=v.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),v},unput:function(v){var k=v.length,E=v.split(/(?:\r\n?|\n)/g);this._input=v+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),E.length-1&&(this.yylineno-=E.length-1);var w=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:E?(E.length===A.length?this.yylloc.first_column:0)+A[A.length-E.length].length-E[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[w[0],w[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).
|
|
216
216
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(v){this.unput(this.match.slice(v))},pastInput:function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var v=this.match;return v.length<20&&(v+=this._input.substr(0,20-v.length)),(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var v=this.pastInput(),k=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
217
|
-
`+k+"^"},test_match:function(v,k){var A,
|
|
218
|
-
`+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,A,E,w){switch(E){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 A.yytext=A.yytext.substr(1,A.yyleng-2),32;case 11:return A.yytext=A.yytext.substr(1,A.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 d}();l.lexer=y;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 y=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(y)},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,y=function(){return this.initialize.apply(this,arguments)};y.prototype.initialize=function(){this.traverse=k(!0),this.descend=k()},y.prototype.keys=Object.keys,y.prototype.resolve=function(T){var x=[T.operation,T.scope,T.expression.type].join("-"),I=this._fns[x];if(!I)throw new Error("couldn't resolve key: "+x);return I.bind(this)},y.prototype.register=function(T,x){if(!x instanceof Function)throw new Error("handler must be a function");this._fns[T]=x},y.prototype._fns={"member-child-identifier":function(T,x){var I=T.expression.value,O=x.value;if(O instanceof Object&&I in O)return[{value:O[I],path:x.path.concat(I)}]},"member-descendant-identifier":E(function(T,x,I){return T==I}),"subscript-child-numeric_literal":A(function(T,x,I){return T===I}),"member-child-numeric_literal":A(function(T,x,I){return String(T)===String(I)}),"subscript-descendant-numeric_literal":E(function(T,x,I){return T===I}),"member-child-wildcard":A(function(){return!0}),"member-descendant-wildcard":E(function(){return!0}),"subscript-descendant-wildcard":E(function(){return!0}),"subscript-child-wildcard":A(function(){return!0}),"subscript-child-slice":function(T,x){if(d(x.value)){var I=T.expression.value.split(":").map(L),O=x.value.map(function(D,K){return{value:D,path:x.path.concat(K)}});return u.apply(null,[O].concat(I))}},"subscript-child-union":function(T,x){var I=[];return T.expression.value.forEach(function(O){var D={operation:"subscript",scope:"child",expression:O.expression},K=this.resolve(D),ie=K(D,x);ie&&(I=I.concat(ie))},this),P(I)},"subscript-descendant-union":function(T,x,I){var O=n(".."),D=this,K=[],ie=O.nodes(x,"$..*").slice(1);return ie.forEach(function(ce){K.length>=I||T.expression.value.forEach(function(fe){var ye={operation:"subscript",scope:"child",expression:fe.expression},we=D.resolve(ye),ge=we(ye,ce);K=K.concat(ge)})}),P(K)},"subscript-child-filter_expression":function(T,x,I){var O=T.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,K=function(ie,ce){return w(D,{"@":ce})};return this.descend(x,null,K,I)},"subscript-descendant-filter_expression":function(T,x,I){var O=T.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,K=function(ie,ce){return w(D,{"@":ce})};return this.traverse(x,null,K,I)},"subscript-child-script_expression":function(T,x){var I=T.expression.value.slice(1,-1);return g(x,I,"$[{{value}}]")},"member-child-script_expression":function(T,x){var I=T.expression.value.slice(1,-1);return g(x,I,"$.{{value}}")},"member-descendant-script_expression":function(T,x){var I=T.expression.value.slice(1,-1);return g(x,I,"$..value")}},y.prototype._fns["subscript-child-string_literal"]=y.prototype._fns["member-child-identifier"],y.prototype._fns["member-descendant-numeric_literal"]=y.prototype._fns["subscript-descendant-string_literal"]=y.prototype._fns["member-descendant-identifier"];function g(T,x,I){var O=n("./index"),D=a.parse(x).body[0].expression,K=w(D,{"@":T.value}),ie=I.replace(/\{\{\s*value\s*\}\}/g,K),ce=O.nodes(T.value,ie);return ce.forEach(function(fe){fe.path=T.path.concat(fe.path.slice(1))}),ce}function d(T){return Array.isArray(T)}function v(T){return T&&!(T instanceof Array)&&T instanceof Object}function k(T){return function(x,I,O,D){var K=x.value,ie=x.path,ce=[],fe=function(ye,we){d(ye)?(ye.forEach(function(ge,he){ce.length>=D||O(he,ge,I)&&ce.push({path:we.concat(he),value:ge})}),ye.forEach(function(ge,he){ce.length>=D||T&&fe(ge,we.concat(he))})):v(ye)&&(this.keys(ye).forEach(function(ge){ce.length>=D||O(ge,ye[ge],I)&&ce.push({path:we.concat(ge),value:ye[ge]})}),this.keys(ye).forEach(function(ge){ce.length>=D||T&&fe(ye[ge],we.concat(ge))}))}.bind(this);return fe(K,ie),ce}}function A(T){return function(x,I,O){return this.descend(I,x.expression.value,T,O)}}function E(T){return function(x,I,O){return this.traverse(I,x.expression.value,T,O)}}function w(){try{return l.apply(this,arguments)}catch{}}function P(T){return T=T.filter(function(x){return x}),f(T,function(x){return x.path.map(function(I){return String(I).replace("-","--")}).join("-")})}function L(T){var x=String(T);return x.match(/^-?[0-9]+$/)?parseInt(x):null}i.exports=y},{"..":"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"),y=function(){this.initialize.apply(this,arguments)};y.prototype.initialize=function(){this.parser=new l,this.handlers=new f},y.prototype.parse=function(v){return a.ok(g(v),"we need a path"),this.parser.parse(v)},y.prototype.parent=function(v,k){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var A=this.nodes(v,k)[0];return A.path.pop(),this.value(v,A.path)},y.prototype.apply=function(v,k,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),a.equal(typeof A,"function","fn needs to be function");var E=this.nodes(v,k).sort(function(w,P){return P.path.length-w.path.length});return E.forEach(function(w){var P=w.path.pop(),L=this.value(v,this.stringify(w.path)),T=w.value=A.call(v,L[P]);L[P]=T},this),E},y.prototype.value=function(v,k,A){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),arguments.length>=3){var E=this.nodes(v,k).shift();if(!E)return this._vivify(v,k,A);var w=E.path.slice(-1).shift(),P=this.parent(v,this.stringify(E.path));P[w]=A}return this.query(v,this.stringify(k),1).shift()},y.prototype._vivify=function(v,k,A){var E=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var w=this.parser.parse(k).map(function(L){return L.expression.value}),P=function(L,T){var x=L.pop(),I=E.value(v,L);I||(P(L.concat(),typeof x=="string"?{}:[]),I=E.value(v,L)),I[x]=T};return P(w,A),this.query(v,k)[0]},y.prototype.query=function(v,k,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(g(k),"we need a path");var E=this.nodes(v,k,A).map(function(w){return w.value});return E},y.prototype.paths=function(v,k,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var E=this.nodes(v,k,A).map(function(w){return w.path});return E},y.prototype.nodes=function(v,k,A){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),A===0)return[];var E=this.parser.parse(k),w=this.handlers,P=[{path:["$"],value:v}],L=[];return E.length&&E[0].expression.type=="root"&&E.shift(),E.length?(E.forEach(function(T,x){if(!(L.length>=A)){var I=w.resolve(T),O=[];P.forEach(function(D){if(!(L.length>=A)){var K=I(T,D,A);x==E.length-1?L=L.concat(K||[]):O=O.concat(K||[])}}),P=O}}),A?L.slice(0,A):L):P},y.prototype.stringify=function(v){a.ok(v,"we need a path");var k="$",A={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(E){if(E.expression.type!="root"){var w=[E.scope,E.operation].join("-"),P=A[w],L;if(E.expression.type=="string_literal"?L=JSON.stringify(E.expression.value):L=E.expression.value,!P)throw new Error("couldn't find template "+w);k+=P.replace(/{{value}}/,L)}}),k},y.prototype._normalize=function(v){if(a.ok(v,"we need a path"),typeof v=="string")return this.parser.parse(v);if(Array.isArray(v)&&typeof v[0]=="string"){var k=[{expression:{type:"root",value:"$"}}];return v.forEach(function(A,E){if(!(A=="$"&&E===0))if(typeof A=="string"&&A.match("^"+u.identifier+"$"))k.push({operation:"member",scope:"child",expression:{value:A,type:"identifier"}});else{var w=typeof A=="number"?"numeric_literal":"string_literal";k.push({operation:"subscript",scope:"child",expression:{value:A,type:w}})}}),k}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function g(v){return Object.prototype.toString.call(v)=="[object String]"}y.Handlers=f,y.Parser=l;var d=new y;d.JSONPath=y,i.exports=d},{"./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,y=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),y.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,y){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 y=="string")throw new Error("step cannot be a string");var g=u.length;if(y===0)throw new Error("step cannot be zero");if(y=y?a(y):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(y>0?0:g-1)),f=a(f===0?0:f||(y>0?g:-1)),l=y>0?Math.max(0,l):Math.min(g,l),f=y>0?Math.min(f,g):Math.max(-1,f),y>0&&f<=l)return[];if(y<0&&l<=f)return[];for(var d=[],v=l;v!=f&&!(y<0&&v<=f||y>0&&v>=f);v+=y)d.push(u[v]);return d};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=d(this),this.generatedMessage=!0);var O=I.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,O);else{var D=new Error;if(D.stack){var K=D.stack,ie=O.name,ce=K.indexOf(`
|
|
217
|
+
`+k+"^"},test_match:function(v,k){var E,A,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),A=v[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+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,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(v[0].length),this.matched+=v[0],E=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var R in w)this[R]=w[R];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,k,E,A;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),R=0;R<w.length;R++)if(E=this._input.match(this.rules[w[R]]),E&&(!k||E[0].length>k[0].length)){if(k=E,A=R,this.options.backtrack_lexer){if(v=this.test_match(E,w[R]),v!==!1)return v;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(v=this.test_match(k,w[A]),v!==!1?v:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
218
|
+
`+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,E,A,w){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 E.yytext=E.yytext.substr(1,E.yyleng-2),32;case 11:return E.yytext=E.yytext.substr(1,E.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 d}();l.lexer=y;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 y=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(y)},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,y=function(){return this.initialize.apply(this,arguments)};y.prototype.initialize=function(){this.traverse=k(!0),this.descend=k()},y.prototype.keys=Object.keys,y.prototype.resolve=function(T){var x=[T.operation,T.scope,T.expression.type].join("-"),I=this._fns[x];if(!I)throw new Error("couldn't resolve key: "+x);return I.bind(this)},y.prototype.register=function(T,x){if(!x instanceof Function)throw new Error("handler must be a function");this._fns[T]=x},y.prototype._fns={"member-child-identifier":function(T,x){var I=T.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(T,x,I){return T==I}),"subscript-child-numeric_literal":E(function(T,x,I){return T===I}),"member-child-numeric_literal":E(function(T,x,I){return String(T)===String(I)}),"subscript-descendant-numeric_literal":A(function(T,x,I){return T===I}),"member-child-wildcard":E(function(){return!0}),"member-descendant-wildcard":A(function(){return!0}),"subscript-descendant-wildcard":A(function(){return!0}),"subscript-child-wildcard":E(function(){return!0}),"subscript-child-slice":function(T,x){if(d(x.value)){var I=T.expression.value.split(":").map(L),O=x.value.map(function(D,K){return{value:D,path:x.path.concat(K)}});return u.apply(null,[O].concat(I))}},"subscript-child-union":function(T,x){var I=[];return T.expression.value.forEach(function(O){var D={operation:"subscript",scope:"child",expression:O.expression},K=this.resolve(D),ie=K(D,x);ie&&(I=I.concat(ie))},this),R(I)},"subscript-descendant-union":function(T,x,I){var O=n(".."),D=this,K=[],ie=O.nodes(x,"$..*").slice(1);return ie.forEach(function(ce){K.length>=I||T.expression.value.forEach(function(fe){var ye={operation:"subscript",scope:"child",expression:fe.expression},we=D.resolve(ye),ge=we(ye,ce);K=K.concat(ge)})}),R(K)},"subscript-child-filter_expression":function(T,x,I){var O=T.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,K=function(ie,ce){return w(D,{"@":ce})};return this.descend(x,null,K,I)},"subscript-descendant-filter_expression":function(T,x,I){var O=T.expression.value.slice(2,-1),D=a.parse(O).body[0].expression,K=function(ie,ce){return w(D,{"@":ce})};return this.traverse(x,null,K,I)},"subscript-child-script_expression":function(T,x){var I=T.expression.value.slice(1,-1);return g(x,I,"$[{{value}}]")},"member-child-script_expression":function(T,x){var I=T.expression.value.slice(1,-1);return g(x,I,"$.{{value}}")},"member-descendant-script_expression":function(T,x){var I=T.expression.value.slice(1,-1);return g(x,I,"$..value")}},y.prototype._fns["subscript-child-string_literal"]=y.prototype._fns["member-child-identifier"],y.prototype._fns["member-descendant-numeric_literal"]=y.prototype._fns["subscript-descendant-string_literal"]=y.prototype._fns["member-descendant-identifier"];function g(T,x,I){var O=n("./index"),D=a.parse(x).body[0].expression,K=w(D,{"@":T.value}),ie=I.replace(/\{\{\s*value\s*\}\}/g,K),ce=O.nodes(T.value,ie);return ce.forEach(function(fe){fe.path=T.path.concat(fe.path.slice(1))}),ce}function d(T){return Array.isArray(T)}function v(T){return T&&!(T instanceof Array)&&T instanceof Object}function k(T){return function(x,I,O,D){var K=x.value,ie=x.path,ce=[],fe=function(ye,we){d(ye)?(ye.forEach(function(ge,he){ce.length>=D||O(he,ge,I)&&ce.push({path:we.concat(he),value:ge})}),ye.forEach(function(ge,he){ce.length>=D||T&&fe(ge,we.concat(he))})):v(ye)&&(this.keys(ye).forEach(function(ge){ce.length>=D||O(ge,ye[ge],I)&&ce.push({path:we.concat(ge),value:ye[ge]})}),this.keys(ye).forEach(function(ge){ce.length>=D||T&&fe(ye[ge],we.concat(ge))}))}.bind(this);return fe(K,ie),ce}}function E(T){return function(x,I,O){return this.descend(I,x.expression.value,T,O)}}function A(T){return function(x,I,O){return this.traverse(I,x.expression.value,T,O)}}function w(){try{return l.apply(this,arguments)}catch{}}function R(T){return T=T.filter(function(x){return x}),f(T,function(x){return x.path.map(function(I){return String(I).replace("-","--")}).join("-")})}function L(T){var x=String(T);return x.match(/^-?[0-9]+$/)?parseInt(x):null}i.exports=y},{"..":"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"),y=function(){this.initialize.apply(this,arguments)};y.prototype.initialize=function(){this.parser=new l,this.handlers=new f},y.prototype.parse=function(v){return a.ok(g(v),"we need a path"),this.parser.parse(v)},y.prototype.parent=function(v,k){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var E=this.nodes(v,k)[0];return E.path.pop(),this.value(v,E.path)},y.prototype.apply=function(v,k,E){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),a.equal(typeof E,"function","fn needs to be function");var A=this.nodes(v,k).sort(function(w,R){return R.path.length-w.path.length});return A.forEach(function(w){var R=w.path.pop(),L=this.value(v,this.stringify(w.path)),T=w.value=E.call(v,L[R]);L[R]=T},this),A},y.prototype.value=function(v,k,E){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),arguments.length>=3){var A=this.nodes(v,k).shift();if(!A)return this._vivify(v,k,E);var w=A.path.slice(-1).shift(),R=this.parent(v,this.stringify(A.path));R[w]=E}return this.query(v,this.stringify(k),1).shift()},y.prototype._vivify=function(v,k,E){var A=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var w=this.parser.parse(k).map(function(L){return L.expression.value}),R=function(L,T){var x=L.pop(),I=A.value(v,L);I||(R(L.concat(),typeof x=="string"?{}:[]),I=A.value(v,L)),I[x]=T};return R(w,E),this.query(v,k)[0]},y.prototype.query=function(v,k,E){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(g(k),"we need a path");var A=this.nodes(v,k,E).map(function(w){return w.value});return A},y.prototype.paths=function(v,k,E){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path");var A=this.nodes(v,k,E).map(function(w){return w.path});return A},y.prototype.nodes=function(v,k,E){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(k,"we need a path"),E===0)return[];var A=this.parser.parse(k),w=this.handlers,R=[{path:["$"],value:v}],L=[];return A.length&&A[0].expression.type=="root"&&A.shift(),A.length?(A.forEach(function(T,x){if(!(L.length>=E)){var I=w.resolve(T),O=[];R.forEach(function(D){if(!(L.length>=E)){var K=I(T,D,E);x==A.length-1?L=L.concat(K||[]):O=O.concat(K||[])}}),R=O}}),E?L.slice(0,E):L):R},y.prototype.stringify=function(v){a.ok(v,"we need a path");var k="$",E={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(A){if(A.expression.type!="root"){var w=[A.scope,A.operation].join("-"),R=E[w],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 "+w);k+=R.replace(/{{value}}/,L)}}),k},y.prototype._normalize=function(v){if(a.ok(v,"we need a path"),typeof v=="string")return this.parser.parse(v);if(Array.isArray(v)&&typeof v[0]=="string"){var k=[{expression:{type:"root",value:"$"}}];return v.forEach(function(E,A){if(!(E=="$"&&A===0))if(typeof E=="string"&&E.match("^"+u.identifier+"$"))k.push({operation:"member",scope:"child",expression:{value:E,type:"identifier"}});else{var w=typeof E=="number"?"numeric_literal":"string_literal";k.push({operation:"subscript",scope:"child",expression:{value:E,type:w}})}}),k}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function g(v){return Object.prototype.toString.call(v)=="[object String]"}y.Handlers=f,y.Parser=l;var d=new y;d.JSONPath=y,i.exports=d},{"./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,y=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),y.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,y){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 y=="string")throw new Error("step cannot be a string");var g=u.length;if(y===0)throw new Error("step cannot be zero");if(y=y?a(y):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(y>0?0:g-1)),f=a(f===0?0:f||(y>0?g:-1)),l=y>0?Math.max(0,l):Math.min(g,l),f=y>0?Math.min(f,g):Math.max(-1,f),y>0&&f<=l)return[];if(y<0&&l<=f)return[];for(var d=[],v=l;v!=f&&!(y<0&&v<=f||y>0&&v>=f);v+=y)d.push(u[v]);return d};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=d(this),this.generatedMessage=!0);var O=I.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,O);else{var D=new Error;if(D.stack){var K=D.stack,ie=O.name,ce=K.indexOf(`
|
|
219
219
|
`+ie);if(ce>=0){var fe=K.indexOf(`
|
|
220
|
-
`,ce+1);K=K.substring(fe+1)}this.stack=K}}},a.inherits(f.AssertionError,Error);function y(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 d(x){return g(JSON.stringify(x.actual,y),128)+" "+x.operator+" "+g(JSON.stringify(x.expected,y),128)}function v(x,I,O,D,K){throw new f.AssertionError({message:O,actual:x,expected:I,operator:D,stackStartFunction:K})}f.fail=v;function k(x,I){x||v(x,!0,I,"==",f.ok)}f.ok=k,f.equal=function(I,O,D){I!=O&&v(I,O,D,"==",f.equal)},f.notEqual=function(I,O,D){I==O&&v(I,O,D,"!=",f.notEqual)},f.deepEqual=function(I,O,D){
|
|
220
|
+
`,ce+1);K=K.substring(fe+1)}this.stack=K}}},a.inherits(f.AssertionError,Error);function y(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 d(x){return g(JSON.stringify(x.actual,y),128)+" "+x.operator+" "+g(JSON.stringify(x.expected,y),128)}function v(x,I,O,D,K){throw new f.AssertionError({message:O,actual:x,expected:I,operator:D,stackStartFunction:K})}f.fail=v;function k(x,I){x||v(x,!0,I,"==",f.ok)}f.ok=k,f.equal=function(I,O,D){I!=O&&v(I,O,D,"==",f.equal)},f.notEqual=function(I,O,D){I==O&&v(I,O,D,"!=",f.notEqual)},f.deepEqual=function(I,O,D){E(I,O)||v(I,O,D,"deepEqual",f.deepEqual)};function E(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:w(x,I)}function A(x){return Object.prototype.toString.call(x)=="[object Arguments]"}function w(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),E(x,I);var K=T(x),ie=T(I),ce,fe;if(K.length!=ie.length)return!1;for(K.sort(),ie.sort(),fe=K.length-1;fe>=0;fe--)if(K[fe]!=ie[fe])return!1;for(fe=K.length-1;fe>=0;fe--)if(ce=K[fe],!E(x[ce],I[ce]))return!1;return!0}f.notDeepEqual=function(I,O,D){E(I,O)&&v(I,O,D,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(I,O,D){I!==O&&v(I,O,D,"===",f.strictEqual)},f.notStrictEqual=function(I,O,D){I===O&&v(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 K;a.isString(O)&&(D=O,O=null);try{I()}catch(ie){K=ie}if(D=(O&&O.name?" ("+O.name+").":".")+(D?" "+D:"."),x&&!K&&v(K,O,"Missing expected exception"+D),!x&&R(K,O)&&v(K,O,"Got unwanted exception"+D),x&&K&&O&&!R(K,O)||!x&&K)throw K}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 T=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(G){if(!ie(G)){for(var Y=[],oe=0;oe<arguments.length;oe++)Y.push(g(arguments[oe]));return Y.join(" ")}for(var oe=1,xe=arguments,Ke=xe.length,Se=String(G).replace(l,function(je){if(je==="%%")return"%";if(oe>=Ke)return je;switch(je){case"%s":return String(xe[oe++]);case"%d":return Number(xe[oe++]);case"%j":try{return JSON.stringify(xe[oe++])}catch{return"[Circular]"}default:return je}}),Fe=xe[oe];oe<Ke;Fe=xe[++oe])O(Fe)||!we(Fe)?Se+=" "+Fe:Se+=" "+g(Fe);return Se},o.deprecate=function(G,Y){if(fe(u.process))return function(){return o.deprecate(G,Y).apply(this,arguments)};if(a.noDeprecation===!0)return G;var oe=!1;function xe(){if(!oe){if(a.throwDeprecation)throw new Error(Y);a.traceDeprecation?console.trace(Y):console.error(Y),oe=!0}return G.apply(this,arguments)}return xe};var f={},y;o.debuglog=function(G){if(fe(y)&&(y=a.env.NODE_DEBUG||""),G=G.toUpperCase(),!f[G])if(new RegExp("\\b"+G+"\\b","i").test(y)){var Y=a.pid;f[G]=function(){var oe=o.format.apply(o,arguments);console.error("%s %d: %s",G,Y,oe)}}else f[G]=function(){};return f[G]};function g(G,Y){var oe={seen:[],stylize:v};return arguments.length>=3&&(oe.depth=arguments[2]),arguments.length>=4&&(oe.colors=arguments[3]),I(Y)?oe.showHidden=Y:Y&&o._extend(oe,Y),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=d),E(oe,G,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 d(G,Y){var oe=g.styles[Y];return oe?"\x1B["+g.colors[oe][0]+"m"+G+"\x1B["+g.colors[oe][1]+"m":G}function v(G,Y){return G}function k(G){var Y={};return G.forEach(function(oe,xe){Y[oe]=!0}),Y}function E(G,Y,oe){if(G.customInspect&&Y&&Re(Y.inspect)&&Y.inspect!==o.inspect&&!(Y.constructor&&Y.constructor.prototype===Y)){var xe=Y.inspect(oe,G);return ie(xe)||(xe=E(G,xe,oe)),xe}var Ke=A(G,Y);if(Ke)return Ke;var Se=Object.keys(Y),Fe=k(Se);if(G.showHidden&&(Se=Object.getOwnPropertyNames(Y)),he(Y)&&(Se.indexOf("message")>=0||Se.indexOf("description")>=0))return w(Y);if(Se.length===0){if(Re(Y)){var je=Y.name?": "+Y.name:"";return G.stylize("[Function"+je+"]","special")}if(ye(Y))return G.stylize(RegExp.prototype.toString.call(Y),"regexp");if(ge(Y))return G.stylize(Date.prototype.toString.call(Y),"date");if(he(Y))return w(Y)}var Le="",Tt=!1,sn=["{","}"];if(x(Y)&&(Tt=!0,sn=["[","]"]),Re(Y)){var Nt=Y.name?": "+Y.name:"";Le=" [Function"+Nt+"]"}if(ye(Y)&&(Le=" "+RegExp.prototype.toString.call(Y)),ge(Y)&&(Le=" "+Date.prototype.toUTCString.call(Y)),he(Y)&&(Le=" "+w(Y)),Se.length===0&&(!Tt||Y.length==0))return sn[0]+Le+sn[1];if(oe<0)return ye(Y)?G.stylize(RegExp.prototype.toString.call(Y),"regexp"):G.stylize("[Object]","special");G.seen.push(Y);var Lt;return Tt?Lt=R(G,Y,oe,Fe,Se):Lt=Se.map(function(ve){return L(G,Y,oe,Fe,ve,Tt)}),G.seen.pop(),T(Lt,Le,sn)}function A(G,Y){if(fe(Y))return G.stylize("undefined","undefined");if(ie(Y)){var oe="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(oe,"string")}if(K(Y))return G.stylize(""+Y,"number");if(I(Y))return G.stylize(""+Y,"boolean");if(O(Y))return G.stylize("null","null")}function w(G){return"["+Error.prototype.toString.call(G)+"]"}function R(G,Y,oe,xe,Ke){for(var Se=[],Fe=0,je=Y.length;Fe<je;++Fe)wt(Y,String(Fe))?Se.push(L(G,Y,oe,xe,String(Fe),!0)):Se.push("");return Ke.forEach(function(Le){Le.match(/^\d+$/)||Se.push(L(G,Y,oe,xe,Le,!0))}),Se}function L(G,Y,oe,xe,Ke,Se){var Fe,je,Le;if(Le=Object.getOwnPropertyDescriptor(Y,Ke)||{value:Y[Ke]},Le.get?Le.set?je=G.stylize("[Getter/Setter]","special"):je=G.stylize("[Getter]","special"):Le.set&&(je=G.stylize("[Setter]","special")),wt(xe,Ke)||(Fe="["+Ke+"]"),je||(G.seen.indexOf(Le.value)<0?(O(oe)?je=E(G,Le.value,null):je=E(G,Le.value,oe-1),je.indexOf(`
|
|
221
221
|
`)>-1&&(Se?je=je.split(`
|
|
222
222
|
`).map(function(Tt){return" "+Tt}).join(`
|
|
223
223
|
`).substr(2):je=`
|
|
@@ -226,7 +226,7 @@ Expecting `+We.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Xe="Parse erro
|
|
|
226
226
|
`))):je=G.stylize("[Circular]","special")),fe(Fe)){if(Se&&Ke.match(/^\d+$/))return je;Fe=JSON.stringify(""+Ke),Fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Fe=Fe.substr(1,Fe.length-2),Fe=G.stylize(Fe,"name")):(Fe=Fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Fe=G.stylize(Fe,"string"))}return Fe+": "+je}function T(G,Y,oe){var xe=G.reduce(function(Ke,Se){return Se.indexOf(`
|
|
227
227
|
`)>=0,Ke+Se.replace(/\u001b\[\d\d?m/g,"").length+1},0);return xe>60?oe[0]+(Y===""?"":Y+`
|
|
228
228
|
`)+" "+G.join(`,
|
|
229
|
-
`)+" "+oe[1]:oe[0]+Y+" "+G.join(", ")+" "+oe[1]}function x(G){return Array.isArray(G)}o.isArray=x;function I(G){return typeof G=="boolean"}o.isBoolean=I;function O(G){return G===null}o.isNull=O;function D(G){return G==null}o.isNullOrUndefined=D;function K(G){return typeof G=="number"}o.isNumber=K;function ie(G){return typeof G=="string"}o.isString=ie;function ce(G){return typeof G=="symbol"}o.isSymbol=ce;function fe(G){return G===void 0}o.isUndefined=fe;function ye(G){return we(G)&&Te(G)==="[object RegExp]"}o.isRegExp=ye;function we(G){return typeof G=="object"&&G!==null}o.isObject=we;function ge(G){return we(G)&&Te(G)==="[object Date]"}o.isDate=ge;function he(G){return we(G)&&(Te(G)==="[object Error]"||G instanceof Error)}o.isError=he;function Re(G){return typeof G=="function"}o.isFunction=Re;function Ie(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}o.isPrimitive=Ie,o.isBuffer=n("./support/isBuffer");function Te(G){return Object.prototype.toString.call(G)}function We(G){return G<10?"0"+G.toString(10):G.toString(10)}var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var G=new Date,Y=[We(G.getHours()),We(G.getMinutes()),We(G.getSeconds())].join(":");return[G.getDate(),Xe[G.getMonth()],Y].join(" ")}o.log=function(){console.log("%s - %s",Ee(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(G,Y){if(!Y||!we(Y))return G;for(var oe=Object.keys(Y),xe=oe.length;xe--;)G[oe[xe]]=Y[oe[xe]];return G};function wt(G,Y){return Object.prototype.hasOwnProperty.call(G,Y)}}).call(this,n("_process"),typeof Xn<"u"?Xn: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,d){for(var v=0,k=g.length-1;k>=0;k--){var A=g[k];A==="."?g.splice(k,1):A===".."?(g.splice(k,1),v++):v&&(g.splice(k,1),v--)}if(d)for(;v--;v)g.unshift("..");return g}o.resolve=function(){for(var g="",d=!1,v=arguments.length-1;v>=-1&&!d;v--){var k=v>=0?arguments[v]:a.cwd();if(typeof k!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!k)continue;g=k+"/"+g,d=k.charAt(0)==="/"}return g=u(f(g.split("/"),function(A){return!!A}),!d).join("/"),(d?"/":"")+g||"."},o.normalize=function(g){var d=o.isAbsolute(g),v=y(g,-1)==="/";return g=u(f(g.split("/"),function(k){return!!k}),!d).join("/"),!g&&!d&&(g="."),g&&v&&(g+="/"),(d?"/":"")+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(d,v){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},o.relative=function(g,d){g=o.resolve(g).substr(1),d=o.resolve(d).substr(1);function v(T){for(var x=0;x<T.length&&T[x]==="";x++);for(var I=T.length-1;I>=0&&T[I]==="";I--);return x>I?[]:T.slice(x,I-x+1)}for(var k=v(g.split("/")),A=v(d.split("/")),E=Math.min(k.length,A.length),w=E,P=0;P<E;P++)if(k[P]!==A[P]){w=P;break}for(var L=[],P=w;P<k.length;P++)L.push("..");return L=L.concat(A.slice(w)),L.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var d=g.charCodeAt(0),v=d===47,k=-1,A=!0,E=g.length-1;E>=1;--E)if(d=g.charCodeAt(E),d===47){if(!A){k=E;break}}else A=!1;return k===-1?v?"/":".":v&&k===1?"/":g.slice(0,k)};function l(g){typeof g!="string"&&(g=g+"");var d=0,v=-1,k=!0,A;for(A=g.length-1;A>=0;--A)if(g.charCodeAt(A)===47){if(!k){d=A+1;break}}else v===-1&&(k=!1,v=A+1);return v===-1?"":g.slice(d,v)}o.basename=function(g,d){var v=l(g);return d&&v.substr(-1*d.length)===d&&(v=v.substr(0,v.length-d.length)),v},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var d=-1,v=0,k=-1,A=!0,E=0,w=g.length-1;w>=0;--w){var P=g.charCodeAt(w);if(P===47){if(!A){v=w+1;break}continue}k===-1&&(A=!1,k=w+1),P===46?d===-1?d=w:E!==1&&(E=1):d!==-1&&(E=-1)}return d===-1||k===-1||E===0||E===1&&d===k-1&&d===v+1?"":g.slice(d,k)};function f(g,d){if(g.filter)return g.filter(d);for(var v=[],k=0;k<g.length;k++)d(g[k],k,g)&&v.push(g[k]);return v}var y="ab".substr(-1)==="b"?function(g,d,v){return g.substr(d,v)}:function(g,d,v){return d<0&&(d=g.length+d),g.substr(d,v)}}).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 y(){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=y}catch{l=y}})();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 d(x){if(l===clearTimeout)return clearTimeout(x);if((l===y||!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 v=[],k=!1,A,E=-1;function w(){!k||!A||(k=!1,A.length?v=A.concat(v):E=-1,v.length&&P())}function P(){if(!k){var x=g(w);k=!0;for(var I=v.length;I;){for(A=v,v=[];++E<I;)A&&A[E].run();E=-1,I=v.length}A=null,k=!1,d(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];v.push(new L(x,I)),v.length===1&&!k&&g(P)};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 T(){}a.on=T,a.addListener=T,a.once=T,a.off=T,a.removeListener=T,a.removeAllListeners=T,a.emit=T,a.prependListener=T,a.prependOnceListener=T,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={},y=function g(d,v){if(d.type==="Literal")return d.value;if(d.type==="UnaryExpression"){var k=g(d.argument);return d.operator==="+"?+k:d.operator==="-"?-k:d.operator==="~"?~k:d.operator==="!"?!k:f}else if(d.type==="ArrayExpression"){for(var A=[],E=0,w=d.elements.length;E<w;E++){var P=g(d.elements[E]);if(P===f)return f;A.push(P)}return A}else if(d.type==="ObjectExpression"){for(var L={},E=0;E<d.properties.length;E++){var T=d.properties[E],x=T.value===null?T.value:g(T.value);if(x===f)return f;L[T.key.value||T.key.name]=x}return L}else if(d.type==="BinaryExpression"||d.type==="LogicalExpression"){var w=g(d.left);if(w===f)return f;var I=g(d.right);if(I===f)return f;var O=d.operator;return O==="=="?w==I:O==="==="?w===I:O==="!="?w!=I:O==="!=="?w!==I:O==="+"?w+I:O==="-"?w-I:O==="*"?w*I:O==="/"?w/I:O==="%"?w%I:O==="<"?w<I:O==="<="?w<=I:O===">"?w>I:O===">="?w>=I:O==="|"?w|I:O==="&"?w&I:O==="^"?w^I:O==="&&"?w&&I:O==="||"?w||I:f}else{if(d.type==="Identifier")return{}.hasOwnProperty.call(l,d.name)?l[d.name]:f;if(d.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(d.type==="CallExpression"){var D=g(d.callee);if(D===f||typeof D!="function")return f;var K=d.callee.object?g(d.callee.object):f;K===f&&(K=null);for(var ie=[],E=0,w=d.arguments.length;E<w;E++){var P=g(d.arguments[E]);if(P===f)return f;ie.push(P)}return D.apply(K,ie)}else if(d.type==="MemberExpression"){var L=g(d.object);if(L===f||typeof L=="function")return f;if(d.property.type==="Identifier")return L[d.property.name];var T=g(d.property);return T===f?f:L[T]}else if(d.type==="ConditionalExpression"){var k=g(d.test);return k===f?f:g(k?d.consequent:d.alternate)}else if(d.type==="ExpressionStatement"){var k=g(d.expression);return k===f?f:k}else{if(d.type==="ReturnStatement")return g(d.argument);if(d.type==="FunctionExpression"){var ce=d.body.body,fe={};Object.keys(l).forEach(function(Xe){fe[Xe]=l[Xe]});for(var E=0;E<d.params.length;E++){var ye=d.params[E];if(ye.type=="Identifier")l[ye.name]=null;else return f}for(var E in ce)if(g(ce[E])===f)return f;l=fe;var we=Object.keys(l),ge=we.map(function(Xe){return l[Xe]});return Function(we.join(", "),"return "+a(d)).apply(null,ge)}else if(d.type==="TemplateLiteral"){for(var he="",E=0;E<d.expressions.length;E++)he+=g(d.quasis[E]),he+=g(d.expressions[E]);return he+=g(d.quasis[E]),he}else if(d.type==="TaggedTemplateExpression"){var Re=g(d.tag),Ie=d.quasi,Te=Ie.quasis.map(g),We=Ie.expressions.map(g);return Re.apply(null,[Te].concat(We))}else return d.type==="TemplateElement"?d.value.cooked:f}}}(u);return y===f?void 0:y}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Fh);var U1=Fh.exports;const V1=pu(U1),an=[];for(let e=0;e<256;++e)an.push((e+256).toString(16).slice(1));function q1(e,t=0){return(an[e[t+0]]+an[e[t+1]]+an[e[t+2]]+an[e[t+3]]+"-"+an[e[t+4]]+an[e[t+5]]+"-"+an[e[t+6]]+an[e[t+7]]+"-"+an[e[t+8]]+an[e[t+9]]+"-"+an[e[t+10]]+an[e[t+11]]+an[e[t+12]]+an[e[t+13]]+an[e[t+14]]+an[e[t+15]]).toLowerCase()}let Ju;const W1=new Uint8Array(16);function K1(){if(!Ju){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ju=crypto.getRandomValues.bind(crypto)}return Ju(W1)}const Bh={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function H1(e,t,n){if(Bh.randomUUID&&!e)return Bh.randomUUID();e=e||{};const i=e.random||(e.rng||K1)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,q1(i)}const Dh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let y="";f.includes("[")&&(y=H1(),o.push({dataIndex:y,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:y||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:y,jsonPath:g})=>{const d=V1.query(l,`$${g}`);f[y]=Array.isArray(d)&&d.length===1?d[0]:d}),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}},z1=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:y,additionalPrinterColumnsColWidths:g,selectData:d})=>{if(!i&&!a)return null;const{dataSource:v,columns:k}=Dh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return $.jsx(Ih,{theme:e,baseprefix:t,dataSource:v,columns:k,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:y,additionalPrinterColumnsColWidths:g,selectData:d})};var G1="Expected a function",Rh=NaN,J1="[object Symbol]",Y1=/^\s+|\s+$/g,X1=/^[-+]0x[0-9a-f]+$/i,Q1=/^0b[01]+$/i,Z1=/^0o[0-7]+$/i,eb=parseInt,tb=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,nb=typeof self=="object"&&self&&self.Object===Object&&self,rb=tb||nb||Function("return this")(),ib=Object.prototype,sb=ib.toString,ob=Math.max,ab=Math.min,Yu=function(){return rb.Date.now()};function ub(e,t,n){var i,o,a,u,l,f,y=0,g=!1,d=!1,v=!0;if(typeof e!="function")throw new TypeError(G1);t=Ph(t)||0,Xu(n)&&(g=!!n.leading,d="maxWait"in n,a=d?ob(Ph(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function k(O){var D=i,K=o;return i=o=void 0,y=O,u=e.apply(K,D),u}function A(O){return y=O,l=setTimeout(P,t),g?k(O):u}function E(O){var D=O-f,K=O-y,ie=t-D;return d?ab(ie,a-K):ie}function w(O){var D=O-f,K=O-y;return f===void 0||D>=t||D<0||d&&K>=a}function P(){var O=Yu();if(w(O))return L(O);l=setTimeout(P,E(O))}function L(O){return l=void 0,v&&i?k(O):(i=o=void 0,u)}function T(){l!==void 0&&clearTimeout(l),y=0,i=f=o=l=void 0}function x(){return l===void 0?u:L(Yu())}function I(){var O=Yu(),D=w(O);if(i=arguments,o=this,f=O,D){if(l===void 0)return A(f);if(d)return l=setTimeout(P,t),k(f)}return l===void 0&&(l=setTimeout(P,t)),u}return I.cancel=T,I.flush=x,I}function Xu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cb(e){return!!e&&typeof e=="object"}function lb(e){return typeof e=="symbol"||cb(e)&&sb.call(e)==J1}function Ph(e){if(typeof e=="number")return e;if(lb(e))return Rh;if(Xu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Y1,"");var n=Q1.test(e);return n||Z1.test(e)?eb(e.slice(2),n?2:8):X1.test(e)?Rh:+e}var fb=ub;const Nh=pu(fb);function hb(e){const t=re.useRef(e);t.current=e,re.useEffect(()=>()=>{t.current()},[])}function pb(e,t=500,n){const i=re.useRef();hb(()=>{i.current&&i.current.cancel()});const o=re.useMemo(()=>{const a=Nh(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 re.useEffect(()=>{i.current=Nh(e,t,n)},[e,t,n]),o}const Lh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return rt.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Qu=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>Cn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Lh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),Zu=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),Bs=(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)Bs(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},Vi=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&&Vi(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=>Vi(t))),e),Go=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&&Go(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=>Go(t))),e);function Ds(e,t){const n=10**t;return Math.floor(e*n)/n}const db=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Ds(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 Ds(n,1)},ec=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Ds(t,1)}return 0},tc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("m"))t/=1e3;else if(e.endsWith("k"))t/=1e6;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("Ki"))t/=1024,t/=1e6;else if(e.endsWith("Mi"))t/=1e3,t/=1e3;else if(/^\d+(\.\d+)?$/.test(e))t/=1e9;else throw new Error("Invalid value");return Ds(t,1)}return 0},Rs=(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=Rs(u,t,n,l);o=o.concat(f)}}return o},Jo=(e,t)=>{const n=yt.cloneDeep(e),i=Rs(t,"type","rangeInputCpu");return Rs(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${parseFloat(l)}`)}),n},nc=(e,t)=>{const n=yt.cloneDeep(e),i=Rs(t,"type","rangeInputCpu");return Rs(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,tc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,ec(l))}),n},rc=(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,...rc(o,a)]:[a]}),$h=e=>e.map((t,n)=>e.slice(0,n+1)),gb=Ct.div`
|
|
229
|
+
`)+" "+oe[1]:oe[0]+Y+" "+G.join(", ")+" "+oe[1]}function x(G){return Array.isArray(G)}o.isArray=x;function I(G){return typeof G=="boolean"}o.isBoolean=I;function O(G){return G===null}o.isNull=O;function D(G){return G==null}o.isNullOrUndefined=D;function K(G){return typeof G=="number"}o.isNumber=K;function ie(G){return typeof G=="string"}o.isString=ie;function ce(G){return typeof G=="symbol"}o.isSymbol=ce;function fe(G){return G===void 0}o.isUndefined=fe;function ye(G){return we(G)&&Te(G)==="[object RegExp]"}o.isRegExp=ye;function we(G){return typeof G=="object"&&G!==null}o.isObject=we;function ge(G){return we(G)&&Te(G)==="[object Date]"}o.isDate=ge;function he(G){return we(G)&&(Te(G)==="[object Error]"||G instanceof Error)}o.isError=he;function Re(G){return typeof G=="function"}o.isFunction=Re;function Ie(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}o.isPrimitive=Ie,o.isBuffer=n("./support/isBuffer");function Te(G){return Object.prototype.toString.call(G)}function We(G){return G<10?"0"+G.toString(10):G.toString(10)}var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var G=new Date,Y=[We(G.getHours()),We(G.getMinutes()),We(G.getSeconds())].join(":");return[G.getDate(),Xe[G.getMonth()],Y].join(" ")}o.log=function(){console.log("%s - %s",Ee(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(G,Y){if(!Y||!we(Y))return G;for(var oe=Object.keys(Y),xe=oe.length;xe--;)G[oe[xe]]=Y[oe[xe]];return G};function wt(G,Y){return Object.prototype.hasOwnProperty.call(G,Y)}}).call(this,n("_process"),typeof Xn<"u"?Xn: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,d){for(var v=0,k=g.length-1;k>=0;k--){var E=g[k];E==="."?g.splice(k,1):E===".."?(g.splice(k,1),v++):v&&(g.splice(k,1),v--)}if(d)for(;v--;v)g.unshift("..");return g}o.resolve=function(){for(var g="",d=!1,v=arguments.length-1;v>=-1&&!d;v--){var k=v>=0?arguments[v]:a.cwd();if(typeof k!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!k)continue;g=k+"/"+g,d=k.charAt(0)==="/"}return g=u(f(g.split("/"),function(E){return!!E}),!d).join("/"),(d?"/":"")+g||"."},o.normalize=function(g){var d=o.isAbsolute(g),v=y(g,-1)==="/";return g=u(f(g.split("/"),function(k){return!!k}),!d).join("/"),!g&&!d&&(g="."),g&&v&&(g+="/"),(d?"/":"")+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(d,v){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},o.relative=function(g,d){g=o.resolve(g).substr(1),d=o.resolve(d).substr(1);function v(T){for(var x=0;x<T.length&&T[x]==="";x++);for(var I=T.length-1;I>=0&&T[I]==="";I--);return x>I?[]:T.slice(x,I-x+1)}for(var k=v(g.split("/")),E=v(d.split("/")),A=Math.min(k.length,E.length),w=A,R=0;R<A;R++)if(k[R]!==E[R]){w=R;break}for(var L=[],R=w;R<k.length;R++)L.push("..");return L=L.concat(E.slice(w)),L.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var d=g.charCodeAt(0),v=d===47,k=-1,E=!0,A=g.length-1;A>=1;--A)if(d=g.charCodeAt(A),d===47){if(!E){k=A;break}}else E=!1;return k===-1?v?"/":".":v&&k===1?"/":g.slice(0,k)};function l(g){typeof g!="string"&&(g=g+"");var d=0,v=-1,k=!0,E;for(E=g.length-1;E>=0;--E)if(g.charCodeAt(E)===47){if(!k){d=E+1;break}}else v===-1&&(k=!1,v=E+1);return v===-1?"":g.slice(d,v)}o.basename=function(g,d){var v=l(g);return d&&v.substr(-1*d.length)===d&&(v=v.substr(0,v.length-d.length)),v},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var d=-1,v=0,k=-1,E=!0,A=0,w=g.length-1;w>=0;--w){var R=g.charCodeAt(w);if(R===47){if(!E){v=w+1;break}continue}k===-1&&(E=!1,k=w+1),R===46?d===-1?d=w:A!==1&&(A=1):d!==-1&&(A=-1)}return d===-1||k===-1||A===0||A===1&&d===k-1&&d===v+1?"":g.slice(d,k)};function f(g,d){if(g.filter)return g.filter(d);for(var v=[],k=0;k<g.length;k++)d(g[k],k,g)&&v.push(g[k]);return v}var y="ab".substr(-1)==="b"?function(g,d,v){return g.substr(d,v)}:function(g,d,v){return d<0&&(d=g.length+d),g.substr(d,v)}}).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 y(){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=y}catch{l=y}})();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 d(x){if(l===clearTimeout)return clearTimeout(x);if((l===y||!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 v=[],k=!1,E,A=-1;function w(){!k||!E||(k=!1,E.length?v=E.concat(v):A=-1,v.length&&R())}function R(){if(!k){var x=g(w);k=!0;for(var I=v.length;I;){for(E=v,v=[];++A<I;)E&&E[A].run();A=-1,I=v.length}E=null,k=!1,d(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];v.push(new L(x,I)),v.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 T(){}a.on=T,a.addListener=T,a.once=T,a.off=T,a.removeListener=T,a.removeAllListeners=T,a.emit=T,a.prependListener=T,a.prependOnceListener=T,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={},y=function g(d,v){if(d.type==="Literal")return d.value;if(d.type==="UnaryExpression"){var k=g(d.argument);return d.operator==="+"?+k:d.operator==="-"?-k:d.operator==="~"?~k:d.operator==="!"?!k:f}else if(d.type==="ArrayExpression"){for(var E=[],A=0,w=d.elements.length;A<w;A++){var R=g(d.elements[A]);if(R===f)return f;E.push(R)}return E}else if(d.type==="ObjectExpression"){for(var L={},A=0;A<d.properties.length;A++){var T=d.properties[A],x=T.value===null?T.value:g(T.value);if(x===f)return f;L[T.key.value||T.key.name]=x}return L}else if(d.type==="BinaryExpression"||d.type==="LogicalExpression"){var w=g(d.left);if(w===f)return f;var I=g(d.right);if(I===f)return f;var O=d.operator;return O==="=="?w==I:O==="==="?w===I:O==="!="?w!=I:O==="!=="?w!==I:O==="+"?w+I:O==="-"?w-I:O==="*"?w*I:O==="/"?w/I:O==="%"?w%I:O==="<"?w<I:O==="<="?w<=I:O===">"?w>I:O===">="?w>=I:O==="|"?w|I:O==="&"?w&I:O==="^"?w^I:O==="&&"?w&&I:O==="||"?w||I:f}else{if(d.type==="Identifier")return{}.hasOwnProperty.call(l,d.name)?l[d.name]:f;if(d.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(d.type==="CallExpression"){var D=g(d.callee);if(D===f||typeof D!="function")return f;var K=d.callee.object?g(d.callee.object):f;K===f&&(K=null);for(var ie=[],A=0,w=d.arguments.length;A<w;A++){var R=g(d.arguments[A]);if(R===f)return f;ie.push(R)}return D.apply(K,ie)}else if(d.type==="MemberExpression"){var L=g(d.object);if(L===f||typeof L=="function")return f;if(d.property.type==="Identifier")return L[d.property.name];var T=g(d.property);return T===f?f:L[T]}else if(d.type==="ConditionalExpression"){var k=g(d.test);return k===f?f:g(k?d.consequent:d.alternate)}else if(d.type==="ExpressionStatement"){var k=g(d.expression);return k===f?f:k}else{if(d.type==="ReturnStatement")return g(d.argument);if(d.type==="FunctionExpression"){var ce=d.body.body,fe={};Object.keys(l).forEach(function(Xe){fe[Xe]=l[Xe]});for(var A=0;A<d.params.length;A++){var ye=d.params[A];if(ye.type=="Identifier")l[ye.name]=null;else return f}for(var A in ce)if(g(ce[A])===f)return f;l=fe;var we=Object.keys(l),ge=we.map(function(Xe){return l[Xe]});return Function(we.join(", "),"return "+a(d)).apply(null,ge)}else if(d.type==="TemplateLiteral"){for(var he="",A=0;A<d.expressions.length;A++)he+=g(d.quasis[A]),he+=g(d.expressions[A]);return he+=g(d.quasis[A]),he}else if(d.type==="TaggedTemplateExpression"){var Re=g(d.tag),Ie=d.quasi,Te=Ie.quasis.map(g),We=Ie.expressions.map(g);return Re.apply(null,[Te].concat(We))}else return d.type==="TemplateElement"?d.value.cooked:f}}}(u);return y===f?void 0:y}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Fh);var U1=Fh.exports;const V1=pu(U1),an=[];for(let e=0;e<256;++e)an.push((e+256).toString(16).slice(1));function q1(e,t=0){return(an[e[t+0]]+an[e[t+1]]+an[e[t+2]]+an[e[t+3]]+"-"+an[e[t+4]]+an[e[t+5]]+"-"+an[e[t+6]]+an[e[t+7]]+"-"+an[e[t+8]]+an[e[t+9]]+"-"+an[e[t+10]]+an[e[t+11]]+an[e[t+12]]+an[e[t+13]]+an[e[t+14]]+an[e[t+15]]).toLowerCase()}let Ju;const W1=new Uint8Array(16);function K1(){if(!Ju){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ju=crypto.getRandomValues.bind(crypto)}return Ju(W1)}const Bh={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function H1(e,t,n){if(Bh.randomUUID&&!e)return Bh.randomUUID();e=e||{};const i=e.random||(e.rng||K1)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,q1(i)}const Dh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let y="";f.includes("[")&&(y=H1(),o.push({dataIndex:y,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:y||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:y,jsonPath:g})=>{const d=V1.query(l,`$${g}`);f[y]=Array.isArray(d)&&d.length===1?d[0]:d}),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}},z1=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:y,additionalPrinterColumnsColWidths:g,selectData:d})=>{if(!i&&!a)return null;const{dataSource:v,columns:k}=Dh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return $.jsx(Ih,{theme:e,baseprefix:t,dataSource:v,columns:k,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:y,additionalPrinterColumnsColWidths:g,selectData:d})};var G1="Expected a function",Rh=NaN,J1="[object Symbol]",Y1=/^\s+|\s+$/g,X1=/^[-+]0x[0-9a-f]+$/i,Q1=/^0b[01]+$/i,Z1=/^0o[0-7]+$/i,eb=parseInt,tb=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,nb=typeof self=="object"&&self&&self.Object===Object&&self,rb=tb||nb||Function("return this")(),ib=Object.prototype,sb=ib.toString,ob=Math.max,ab=Math.min,Yu=function(){return rb.Date.now()};function ub(e,t,n){var i,o,a,u,l,f,y=0,g=!1,d=!1,v=!0;if(typeof e!="function")throw new TypeError(G1);t=Ph(t)||0,Xu(n)&&(g=!!n.leading,d="maxWait"in n,a=d?ob(Ph(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function k(O){var D=i,K=o;return i=o=void 0,y=O,u=e.apply(K,D),u}function E(O){return y=O,l=setTimeout(R,t),g?k(O):u}function A(O){var D=O-f,K=O-y,ie=t-D;return d?ab(ie,a-K):ie}function w(O){var D=O-f,K=O-y;return f===void 0||D>=t||D<0||d&&K>=a}function R(){var O=Yu();if(w(O))return L(O);l=setTimeout(R,A(O))}function L(O){return l=void 0,v&&i?k(O):(i=o=void 0,u)}function T(){l!==void 0&&clearTimeout(l),y=0,i=f=o=l=void 0}function x(){return l===void 0?u:L(Yu())}function I(){var O=Yu(),D=w(O);if(i=arguments,o=this,f=O,D){if(l===void 0)return E(f);if(d)return l=setTimeout(R,t),k(f)}return l===void 0&&(l=setTimeout(R,t)),u}return I.cancel=T,I.flush=x,I}function Xu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cb(e){return!!e&&typeof e=="object"}function lb(e){return typeof e=="symbol"||cb(e)&&sb.call(e)==J1}function Ph(e){if(typeof e=="number")return e;if(lb(e))return Rh;if(Xu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Y1,"");var n=Q1.test(e);return n||Z1.test(e)?eb(e.slice(2),n?2:8):X1.test(e)?Rh:+e}var fb=ub;const Nh=pu(fb);function hb(e){const t=re.useRef(e);t.current=e,re.useEffect(()=>()=>{t.current()},[])}function pb(e,t=500,n){const i=re.useRef();hb(()=>{i.current&&i.current.cancel()});const o=re.useMemo(()=>{const a=Nh(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 re.useEffect(()=>{i.current=Nh(e,t,n)},[e,t,n]),o}const Lh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return rt.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Qu=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>Cn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Lh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),Zu=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),Bs=(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)Bs(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},Vi=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&&Vi(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=>Vi(t))),e),Go=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&&Go(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=>Go(t))),e);function Ds(e,t){const n=10**t;return Math.floor(e*n)/n}const db=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Ds(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 Ds(n,1)},ec=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Ds(t,1)}return 0},tc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("m"))t/=1e3;else if(e.endsWith("k"))t/=1e6;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("Ki"))t/=1024,t/=1e6;else if(e.endsWith("Mi"))t/=1e3,t/=1e3;else if(/^\d+(\.\d+)?$/.test(e))t/=1e9;else throw new Error("Invalid value");return Ds(t,1)}return 0},Rs=(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=Rs(u,t,n,l);o=o.concat(f)}}return o},Jo=(e,t)=>{const n=yt.cloneDeep(e),i=Rs(t,"type","rangeInputCpu");return Rs(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${parseFloat(l)}`)}),n},nc=(e,t)=>{const n=yt.cloneDeep(e),i=Rs(t,"type","rangeInputCpu");return Rs(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,tc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,ec(l))}),n},rc=(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,...rc(o,a)]:[a]}),$h=e=>e.map((t,n)=>e.slice(0,n+1)),gb=Ct.div`
|
|
230
230
|
display: flex;
|
|
231
231
|
flex-direction: column;
|
|
232
232
|
gap: 8px;
|
|
@@ -262,14 +262,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
262
262
|
monaco.config({ paths: { vs: '...' } })
|
|
263
263
|
|
|
264
264
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
265
|
-
`},Hh=Wb(Gb)(Kh),Jb={config:Hb},Yb=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]))}),Uh(Uh({},e),t)}var Xb={type:"cancelation",msg:"operation is manually canceled"};function sc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(Xb):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var Qb=Vb.create({config:qb,isInitialized:!1,resolve:null,reject:null,monaco:null}),Gh=Sb(Qb,2),Ls=Gh[0],Qo=Gh[1];function Zb(e){var t=Jb.config(e),n=t.monaco,i=Eb(t,["monaco"]);Qo(function(o){return{config:zh(o.config,i),monaco:n}})}function ew(){var e=Ls(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(Qo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),sc(oc);if(window.monaco&&window.monaco.editor)return Jh(window.monaco),e.resolve(window.monaco),sc(oc);Yb(tw,rw)(iw)}return sc(oc)}function tw(e){return document.body.appendChild(e)}function nw(e){var t=document.createElement("script");return e&&(t.src=e),t}function rw(e){var t=Ls(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=nw("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function iw(){var e=Ls(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){Jh(n),e.resolve(n)},function(n){e.reject(n)})}function Jh(e){Ls().monaco||Qo({monaco:e})}function sw(){return Ls(function(e){var t=e.monaco;return t})}var oc=new Promise(function(e,t){return Qo({resolve:e,reject:t})}),$s={config:Zb,init:ew,__getMonacoInstance:sw},ow={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ac=ow,aw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},uw=aw;function cw({children:e}){return re.createElement("div",{style:uw.container},e)}var lw=cw,fw=lw;function hw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return re.createElement("section",{style:{...ac.wrapper,width:e,height:t},...u},!n&&re.createElement(fw,null,i),re.createElement("div",{ref:o,style:{...ac.fullWidth,...!n&&ac.hide},className:a}))}var pw=hw,Yh=re.memo(pw);function dw(e){re.useEffect(e,[])}var uc=dw;function gw(e,t,n=!0){let i=re.useRef(!0);re.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=gw;function js(){}function qi(e,t,n,i){return yw(e,i)||mw(e,t,n,i)}function yw(e,t){return e.editor.getModel(Xh(e,t))}function mw(e,t,n,i){return e.editor.createModel(t,n,i?Xh(e,i):void 0)}function Xh(e,t){return e.Uri.parse(t)}function bw({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:y="light",loading:g="Loading...",options:d={},height:v="100%",width:k="100%",className:A,wrapperProps:E={},beforeMount:w=js,onMount:P=js}){let[L,T]=re.useState(!1),[x,I]=re.useState(!0),O=re.useRef(null),D=re.useRef(null),K=re.useRef(null),ie=re.useRef(P),ce=re.useRef(w),fe=re.useRef(!1);uc(()=>{let he=$s.init();return he.then(Re=>(D.current=Re)&&I(!1)).catch(Re=>Re?.type!=="cancelation"&&console.error("Monaco initialization: error:",Re)),()=>O.current?ge():he.cancel()}),_n(()=>{if(O.current&&D.current){let he=O.current.getOriginalEditor(),Re=qi(D.current,e||"",i||n||"text",a||"");Re!==he.getModel()&&he.setModel(Re)}},[a],L),_n(()=>{if(O.current&&D.current){let he=O.current.getModifiedEditor(),Re=qi(D.current,t||"",o||n||"text",u||"");Re!==he.getModel()&&he.setModel(Re)}},[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:Re}=O.current.getModel();D.current.editor.setModelLanguage(he,i||n||"text"),D.current.editor.setModelLanguage(Re,o||n||"text")},[n,i,o],L),_n(()=>{D.current?.editor.setTheme(y)},[y],L),_n(()=>{O.current?.updateOptions(d)},[d],L);let ye=re.useCallback(()=>{if(!D.current)return;ce.current(D.current);let he=qi(D.current,e||"",i||n||"text",a||""),Re=qi(D.current,t||"",o||n||"text",u||"");O.current?.setModel({original:he,modified:Re})},[n,t,o,e,i,a,u]),we=re.useCallback(()=>{!fe.current&&K.current&&(O.current=D.current.editor.createDiffEditor(K.current,{automaticLayout:!0,...d}),ye(),D.current?.editor.setTheme(y),T(!0),fe.current=!0)},[d,y,ye]);re.useEffect(()=>{L&&ie.current(O.current,D.current)},[L]),re.useEffect(()=>{!x&&!L&&we()},[x,L,we]);function ge(){let he=O.current?.getModel();l||he?.original?.dispose(),f||he?.modified?.dispose(),O.current?.dispose()}return re.createElement(Yh,{width:k,height:v,isEditorReady:L,loading:g,_ref:K,className:A,wrapperProps:E})}var ww=bw,vw=re.memo(ww);function Aw(){let[e,t]=re.useState($s.__getMonacoInstance());return uc(()=>{let n;return e||(n=$s.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Ew=Aw;function Sw(e){let t=re.useRef();return re.useEffect(()=>{t.current=e},[e]),t.current}var xw=Sw,Zo=new Map;function Cw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:y={},overrideServices:g={},saveViewState:d=!0,keepCurrentModel:v=!1,width:k="100%",height:A="100%",className:E,wrapperProps:w={},beforeMount:P=js,onMount:L=js,onChange:T,onValidate:x=js}){let[I,O]=re.useState(!1),[D,K]=re.useState(!0),ie=re.useRef(null),ce=re.useRef(null),fe=re.useRef(null),ye=re.useRef(L),we=re.useRef(P),ge=re.useRef(),he=re.useRef(i),Re=xw(a),Ie=re.useRef(!1),Te=re.useRef(!1);uc(()=>{let Ee=$s.init();return Ee.then(wt=>(ie.current=wt)&&K(!1)).catch(wt=>wt?.type!=="cancelation"&&console.error("Monaco initialization: error:",wt)),()=>ce.current?Xe():Ee.cancel()}),_n(()=>{let Ee=qi(ie.current,e||i||"",t||o||"",a||n||"");Ee!==ce.current?.getModel()&&(d&&Zo.set(Re,ce.current?.saveViewState()),ce.current?.setModel(Ee),d&&ce.current?.restoreViewState(Zo.get(a)))},[a],I),_n(()=>{ce.current?.updateOptions(y)},[y],I),_n(()=>{!ce.current||i===void 0||(ce.current.getOption(ie.current.editor.EditorOption.readOnly)?ce.current.setValue(i):i!==ce.current.getValue()&&(Te.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Te.current=!1))},[i],I),_n(()=>{let Ee=ce.current?.getModel();Ee&&o&&ie.current?.editor.setModelLanguage(Ee,o)},[o],I),_n(()=>{l!==void 0&&ce.current?.revealLine(l)},[l],I),_n(()=>{ie.current?.editor.setTheme(u)},[u],I);let We=re.useCallback(()=>{if(!(!fe.current||!ie.current)&&!Ie.current){we.current(ie.current);let Ee=a||n,wt=qi(ie.current,i||e||"",t||o||"",Ee||"");ce.current=ie.current?.editor.create(fe.current,{model:wt,automaticLayout:!0,...y},g),d&&ce.current.restoreViewState(Zo.get(Ee)),ie.current.editor.setTheme(u),l!==void 0&&ce.current.revealLine(l),O(!0),Ie.current=!0}},[e,t,n,i,o,a,y,g,d,u,l]);re.useEffect(()=>{I&&ye.current(ce.current,ie.current)},[I]),re.useEffect(()=>{!D&&!I&&We()},[D,I,We]),he.current=i,re.useEffect(()=>{I&&T&&(ge.current?.dispose(),ge.current=ce.current?.onDidChangeModelContent(Ee=>{Te.current||T(ce.current.getValue(),Ee)}))},[I,T]),re.useEffect(()=>{if(I){let Ee=ie.current.editor.onDidChangeMarkers(wt=>{let G=ce.current.getModel()?.uri;if(G&&wt.find(Y=>Y.path===G.path)){let Y=ie.current.editor.getModelMarkers({resource:G});x?.(Y)}});return()=>{Ee?.dispose()}}return()=>{}},[I,x]);function Xe(){ge.current?.dispose(),v?d&&Zo.set(a,ce.current.saveViewState()):ce.current.getModel()?.dispose(),ce.current.dispose()}return re.createElement(Yh,{width:k,height:A,isEditorReady:I,loading:f,_ref:fe,className:E,wrapperProps:w})}var _w=Cw,Qh=re.memo(_w),cc=Qh;const Tw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:vw,Editor:Qh,default:cc,loader:$s,useMonaco:Ew},Symbol.toStringTag,{value:"Module"})),lc=Symbol.for("yaml.alias"),fc=Symbol.for("yaml.document"),Vr=Symbol.for("yaml.map"),Zh=Symbol.for("yaml.pair"),pr=Symbol.for("yaml.scalar"),Wi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Ki=e=>!!e&&typeof e=="object"&&e[Mn]===lc,Ms=e=>!!e&&typeof e=="object"&&e[Mn]===fc,Us=e=>!!e&&typeof e=="object"&&e[Mn]===Vr,Wt=e=>!!e&&typeof e=="object"&&e[Mn]===Zh,_t=e=>!!e&&typeof e=="object"&&e[Mn]===pr,Vs=e=>!!e&&typeof e=="object"&&e[Mn]===Wi;function Kt(e){if(e&&typeof e=="object")switch(e[Mn]){case Vr:case Wi:return!0}return!1}function Ht(e){if(e&&typeof e=="object")switch(e[Mn]){case lc:case Vr:case pr:case Wi:return!0}return!1}const kw=e=>(_t(e)||Kt(e))&&!!e.anchor,li=Symbol("break visit"),Ow=Symbol("skip children"),qs=Symbol("remove node");function fi(e,t){const n=Iw(t);Ms(e)?Hi(null,e.contents,n,Object.freeze([e]))===qs&&(e.contents=null):Hi(null,e,n,Object.freeze([]))}fi.BREAK=li,fi.SKIP=Ow,fi.REMOVE=qs;function Hi(e,t,n,i){const o=Fw(e,t,n,i);if(Ht(o)||Wt(o))return Bw(e,i,o),Hi(e,o,n,i);if(typeof o!="symbol"){if(Kt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Hi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===li)return li;u===qs&&(t.items.splice(a,1),a-=1)}}}else if(Wt(t)){i=Object.freeze(i.concat(t));const a=Hi("key",t.key,n,i);if(a===li)return li;a===qs&&(t.key=null);const u=Hi("value",t.value,n,i);if(u===li)return li;u===qs&&(t.value=null)}}return o}function Iw(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 Fw(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Us(t))return n.Map?.(e,t,i);if(Vs(t))return n.Seq?.(e,t,i);if(Wt(t))return n.Pair?.(e,t,i);if(_t(t))return n.Scalar?.(e,t,i);if(Ki(t))return n.Alias?.(e,t,i)}function Bw(e,t,n){const i=t[t.length-1];if(Kt(i))i.items[e]=n;else if(Wt(i))e==="key"?i.key=n:i.value=n;else if(Ms(i))i.contents=n;else{const o=Ki(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Dw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Rw=e=>e.replace(/[!,[\]{}]/g,t=>Dw[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+Rw(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&&Ht(t.contents)){const a={};fi(t.contents,(u,l)=>{Ht(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(`
|
|
265
|
+
`},Hh=Wb(Gb)(Kh),Jb={config:Hb},Yb=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]))}),Uh(Uh({},e),t)}var Xb={type:"cancelation",msg:"operation is manually canceled"};function sc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(Xb):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var Qb=Vb.create({config:qb,isInitialized:!1,resolve:null,reject:null,monaco:null}),Gh=Sb(Qb,2),Ls=Gh[0],Qo=Gh[1];function Zb(e){var t=Jb.config(e),n=t.monaco,i=Eb(t,["monaco"]);Qo(function(o){return{config:zh(o.config,i),monaco:n}})}function ew(){var e=Ls(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(Qo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),sc(oc);if(window.monaco&&window.monaco.editor)return Jh(window.monaco),e.resolve(window.monaco),sc(oc);Yb(tw,rw)(iw)}return sc(oc)}function tw(e){return document.body.appendChild(e)}function nw(e){var t=document.createElement("script");return e&&(t.src=e),t}function rw(e){var t=Ls(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=nw("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function iw(){var e=Ls(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){Jh(n),e.resolve(n)},function(n){e.reject(n)})}function Jh(e){Ls().monaco||Qo({monaco:e})}function sw(){return Ls(function(e){var t=e.monaco;return t})}var oc=new Promise(function(e,t){return Qo({resolve:e,reject:t})}),$s={config:Zb,init:ew,__getMonacoInstance:sw},ow={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ac=ow,aw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},uw=aw;function cw({children:e}){return re.createElement("div",{style:uw.container},e)}var lw=cw,fw=lw;function hw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return re.createElement("section",{style:{...ac.wrapper,width:e,height:t},...u},!n&&re.createElement(fw,null,i),re.createElement("div",{ref:o,style:{...ac.fullWidth,...!n&&ac.hide},className:a}))}var pw=hw,Yh=re.memo(pw);function dw(e){re.useEffect(e,[])}var uc=dw;function gw(e,t,n=!0){let i=re.useRef(!0);re.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=gw;function js(){}function qi(e,t,n,i){return yw(e,i)||mw(e,t,n,i)}function yw(e,t){return e.editor.getModel(Xh(e,t))}function mw(e,t,n,i){return e.editor.createModel(t,n,i?Xh(e,i):void 0)}function Xh(e,t){return e.Uri.parse(t)}function bw({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:y="light",loading:g="Loading...",options:d={},height:v="100%",width:k="100%",className:E,wrapperProps:A={},beforeMount:w=js,onMount:R=js}){let[L,T]=re.useState(!1),[x,I]=re.useState(!0),O=re.useRef(null),D=re.useRef(null),K=re.useRef(null),ie=re.useRef(R),ce=re.useRef(w),fe=re.useRef(!1);uc(()=>{let he=$s.init();return he.then(Re=>(D.current=Re)&&I(!1)).catch(Re=>Re?.type!=="cancelation"&&console.error("Monaco initialization: error:",Re)),()=>O.current?ge():he.cancel()}),_n(()=>{if(O.current&&D.current){let he=O.current.getOriginalEditor(),Re=qi(D.current,e||"",i||n||"text",a||"");Re!==he.getModel()&&he.setModel(Re)}},[a],L),_n(()=>{if(O.current&&D.current){let he=O.current.getModifiedEditor(),Re=qi(D.current,t||"",o||n||"text",u||"");Re!==he.getModel()&&he.setModel(Re)}},[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:Re}=O.current.getModel();D.current.editor.setModelLanguage(he,i||n||"text"),D.current.editor.setModelLanguage(Re,o||n||"text")},[n,i,o],L),_n(()=>{D.current?.editor.setTheme(y)},[y],L),_n(()=>{O.current?.updateOptions(d)},[d],L);let ye=re.useCallback(()=>{if(!D.current)return;ce.current(D.current);let he=qi(D.current,e||"",i||n||"text",a||""),Re=qi(D.current,t||"",o||n||"text",u||"");O.current?.setModel({original:he,modified:Re})},[n,t,o,e,i,a,u]),we=re.useCallback(()=>{!fe.current&&K.current&&(O.current=D.current.editor.createDiffEditor(K.current,{automaticLayout:!0,...d}),ye(),D.current?.editor.setTheme(y),T(!0),fe.current=!0)},[d,y,ye]);re.useEffect(()=>{L&&ie.current(O.current,D.current)},[L]),re.useEffect(()=>{!x&&!L&&we()},[x,L,we]);function ge(){let he=O.current?.getModel();l||he?.original?.dispose(),f||he?.modified?.dispose(),O.current?.dispose()}return re.createElement(Yh,{width:k,height:v,isEditorReady:L,loading:g,_ref:K,className:E,wrapperProps:A})}var ww=bw,vw=re.memo(ww);function Aw(){let[e,t]=re.useState($s.__getMonacoInstance());return uc(()=>{let n;return e||(n=$s.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Ew=Aw;function Sw(e){let t=re.useRef();return re.useEffect(()=>{t.current=e},[e]),t.current}var xw=Sw,Zo=new Map;function Cw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:y={},overrideServices:g={},saveViewState:d=!0,keepCurrentModel:v=!1,width:k="100%",height:E="100%",className:A,wrapperProps:w={},beforeMount:R=js,onMount:L=js,onChange:T,onValidate:x=js}){let[I,O]=re.useState(!1),[D,K]=re.useState(!0),ie=re.useRef(null),ce=re.useRef(null),fe=re.useRef(null),ye=re.useRef(L),we=re.useRef(R),ge=re.useRef(),he=re.useRef(i),Re=xw(a),Ie=re.useRef(!1),Te=re.useRef(!1);uc(()=>{let Ee=$s.init();return Ee.then(wt=>(ie.current=wt)&&K(!1)).catch(wt=>wt?.type!=="cancelation"&&console.error("Monaco initialization: error:",wt)),()=>ce.current?Xe():Ee.cancel()}),_n(()=>{let Ee=qi(ie.current,e||i||"",t||o||"",a||n||"");Ee!==ce.current?.getModel()&&(d&&Zo.set(Re,ce.current?.saveViewState()),ce.current?.setModel(Ee),d&&ce.current?.restoreViewState(Zo.get(a)))},[a],I),_n(()=>{ce.current?.updateOptions(y)},[y],I),_n(()=>{!ce.current||i===void 0||(ce.current.getOption(ie.current.editor.EditorOption.readOnly)?ce.current.setValue(i):i!==ce.current.getValue()&&(Te.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Te.current=!1))},[i],I),_n(()=>{let Ee=ce.current?.getModel();Ee&&o&&ie.current?.editor.setModelLanguage(Ee,o)},[o],I),_n(()=>{l!==void 0&&ce.current?.revealLine(l)},[l],I),_n(()=>{ie.current?.editor.setTheme(u)},[u],I);let We=re.useCallback(()=>{if(!(!fe.current||!ie.current)&&!Ie.current){we.current(ie.current);let Ee=a||n,wt=qi(ie.current,i||e||"",t||o||"",Ee||"");ce.current=ie.current?.editor.create(fe.current,{model:wt,automaticLayout:!0,...y},g),d&&ce.current.restoreViewState(Zo.get(Ee)),ie.current.editor.setTheme(u),l!==void 0&&ce.current.revealLine(l),O(!0),Ie.current=!0}},[e,t,n,i,o,a,y,g,d,u,l]);re.useEffect(()=>{I&&ye.current(ce.current,ie.current)},[I]),re.useEffect(()=>{!D&&!I&&We()},[D,I,We]),he.current=i,re.useEffect(()=>{I&&T&&(ge.current?.dispose(),ge.current=ce.current?.onDidChangeModelContent(Ee=>{Te.current||T(ce.current.getValue(),Ee)}))},[I,T]),re.useEffect(()=>{if(I){let Ee=ie.current.editor.onDidChangeMarkers(wt=>{let G=ce.current.getModel()?.uri;if(G&&wt.find(Y=>Y.path===G.path)){let Y=ie.current.editor.getModelMarkers({resource:G});x?.(Y)}});return()=>{Ee?.dispose()}}return()=>{}},[I,x]);function Xe(){ge.current?.dispose(),v?d&&Zo.set(a,ce.current.saveViewState()):ce.current.getModel()?.dispose(),ce.current.dispose()}return re.createElement(Yh,{width:k,height:E,isEditorReady:I,loading:f,_ref:fe,className:A,wrapperProps:w})}var _w=Cw,Qh=re.memo(_w),cc=Qh;const Tw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:vw,Editor:Qh,default:cc,loader:$s,useMonaco:Ew},Symbol.toStringTag,{value:"Module"})),lc=Symbol.for("yaml.alias"),fc=Symbol.for("yaml.document"),Vr=Symbol.for("yaml.map"),Zh=Symbol.for("yaml.pair"),pr=Symbol.for("yaml.scalar"),Wi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Ki=e=>!!e&&typeof e=="object"&&e[Mn]===lc,Ms=e=>!!e&&typeof e=="object"&&e[Mn]===fc,Us=e=>!!e&&typeof e=="object"&&e[Mn]===Vr,Wt=e=>!!e&&typeof e=="object"&&e[Mn]===Zh,_t=e=>!!e&&typeof e=="object"&&e[Mn]===pr,Vs=e=>!!e&&typeof e=="object"&&e[Mn]===Wi;function Kt(e){if(e&&typeof e=="object")switch(e[Mn]){case Vr:case Wi:return!0}return!1}function Ht(e){if(e&&typeof e=="object")switch(e[Mn]){case lc:case Vr:case pr:case Wi:return!0}return!1}const kw=e=>(_t(e)||Kt(e))&&!!e.anchor,li=Symbol("break visit"),Ow=Symbol("skip children"),qs=Symbol("remove node");function fi(e,t){const n=Iw(t);Ms(e)?Hi(null,e.contents,n,Object.freeze([e]))===qs&&(e.contents=null):Hi(null,e,n,Object.freeze([]))}fi.BREAK=li,fi.SKIP=Ow,fi.REMOVE=qs;function Hi(e,t,n,i){const o=Fw(e,t,n,i);if(Ht(o)||Wt(o))return Bw(e,i,o),Hi(e,o,n,i);if(typeof o!="symbol"){if(Kt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Hi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===li)return li;u===qs&&(t.items.splice(a,1),a-=1)}}}else if(Wt(t)){i=Object.freeze(i.concat(t));const a=Hi("key",t.key,n,i);if(a===li)return li;a===qs&&(t.key=null);const u=Hi("value",t.value,n,i);if(u===li)return li;u===qs&&(t.value=null)}}return o}function Iw(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 Fw(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Us(t))return n.Map?.(e,t,i);if(Vs(t))return n.Seq?.(e,t,i);if(Wt(t))return n.Pair?.(e,t,i);if(_t(t))return n.Scalar?.(e,t,i);if(Ki(t))return n.Alias?.(e,t,i)}function Bw(e,t,n){const i=t[t.length-1];if(Kt(i))i.items[e]=n;else if(Wt(i))e==="key"?i.key=n:i.value=n;else if(Ms(i))i.contents=n;else{const o=Ki(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Dw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Rw=e=>e.replace(/[!,[\]{}]/g,t=>Dw[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+Rw(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&&Ht(t.contents)){const a={};fi(t.contents,(u,l)=>{Ht(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(`
|
|
266
266
|
`)}}pn.defaultYaml={explicit:!1,version:"1.2"},pn.defaultTags={"!!":"tag:yaml.org,2002:"};function ep(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 tp(e){const t=new Set;return fi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function np(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Pw(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=tp(e));const u=np(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(_t(u.node)||Kt(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 zi(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=zi(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=zi(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=zi(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=zi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!kw(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 hc{constructor(t){Object.defineProperty(this,Mn,{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(!Ms(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=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:y}of u.anchors.values())o(y,f);return typeof a=="function"?zi(a,{"":l},"",l):l}}class pc extends hc{constructor(t){super(lc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return fi(t,{Node:(i,o)=>{if(o===this)return fi.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||(Un(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=ea(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(ep(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 ea(e,t,n){if(Ki(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Kt(t)){let i=0;for(const o of t.items){const a=ea(e,o,n);a>i&&(i=a)}return i}else if(Wt(t)){const i=ea(e,t.key,n),o=ea(e,t.value,n);return Math.max(i,o)}return 1}const rp=e=>!e||typeof e!="function"&&typeof e!="object";class Ue extends hc{constructor(t){super(pr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}Ue.BLOCK_FOLDED="BLOCK_FOLDED",Ue.BLOCK_LITERAL="BLOCK_LITERAL",Ue.PLAIN="PLAIN",Ue.QUOTE_DOUBLE="QUOTE_DOUBLE",Ue.QUOTE_SINGLE="QUOTE_SINGLE";const Nw="tag:yaml.org,2002:";function Lw(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 Ws(e,t,n){if(Ms(e)&&(e=e.contents),Ht(e))return e;if(Wt(e)){const d=n.schema[Vr].createNode?.(n.schema,null,n);return d.items.push(e),d}(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 pc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Nw+t.slice(2));let y=Lw(e,t,u.tags);if(!y){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new Ue(e);return f&&(f.node=d),d}y=e instanceof Map?u[Vr]:Symbol.iterator in Object(e)?u[Wi]:u[Vr]}a&&(a(y),delete n.onTagObj);const g=y?.createNode?y.createNode(n.schema,e,n):typeof y?.nodeClass?.from=="function"?y.nodeClass.from(n.schema,e,n):new Ue(e);return t?g.tag=t:y.default||(g.tag=y.tag),f&&(f.node=g),g}function ta(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 Ws(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 Ks=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ip extends hc{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=>Ht(i)||Wt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Ks(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Kt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ta(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(Kt(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&&_t(a)?a.value:a:Kt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Wt(n))return!1;const i=n.value;return i==null||t&&_t(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 Kt(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(Kt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ta(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const $w=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function xr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const hi=(e,t,n)=>e.endsWith(`
|
|
267
267
|
`)?xr(n,t):n.includes(`
|
|
268
268
|
`)?`
|
|
269
|
-
`+xr(n,t):(e.endsWith(" ")?"":" ")+n,sp="flow",dc="block",na="quoted";function ra(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 y=[],g={};let d=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?y.push(0):d=o-i);let v,k,
|
|
270
|
-
`)n===dc&&(
|
|
271
|
-
`&&k!==" "){const x=e[
|
|
272
|
-
`&&x!==" "&&(v=
|
|
269
|
+
`+xr(n,t):(e.endsWith(" ")?"":" ")+n,sp="flow",dc="block",na="quoted";function ra(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 y=[],g={};let d=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?y.push(0):d=o-i);let v,k,E=!1,A=-1,w=-1,R=-1;n===dc&&(A=op(e,A,t.length),A!==-1&&(d=A+f));for(let T;T=e[A+=1];){if(n===na&&T==="\\"){switch(w=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(T===`
|
|
270
|
+
`)n===dc&&(A=op(e,A,t.length)),d=A+t.length+f,v=void 0;else{if(T===" "&&k&&k!==" "&&k!==`
|
|
271
|
+
`&&k!==" "){const x=e[A+1];x&&x!==" "&&x!==`
|
|
272
|
+
`&&x!==" "&&(v=A)}if(A>=d)if(v)y.push(v),d=v+f,v=void 0;else if(n===na){for(;k===" "||k===" ";)k=T,T=e[A+=1],E=!0;const x=A>R+1?A-2:w-1;if(g[x])return e;y.push(x),g[x]=!0,d=x+f,v=void 0}else E=!0}k=T}if(E&&l&&l(),y.length===0)return e;u&&u();let L=e.slice(0,y[0]);for(let T=0;T<y.length;++T){const x=y[T],I=y[T+1]||e.length;x===0?L=`
|
|
273
273
|
${t}${e.slice(0,I)}`:(n===na&&g[x]&&(L+=`${e[x]}\\`),L+=`
|
|
274
274
|
${t}${e.slice(x+1,I)}`)}return L}function op(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!==`
|
|
275
275
|
`);i=t,o=t+1,a=e[o]}return i}const ia=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),sa=e=>/^(%|---|\.\.\.)/m.test(e);function jw(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]===`
|
|
@@ -284,19 +284,19 @@ ${n}`)+"'";return t.implicitKey?i:ra(i,n,sp,ia(t,!1))}function Gi(e,t){const{sin
|
|
|
284
284
|
|$)`,"g")}catch{yc=/\n+(?!\n|$)/g}function oa({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 Gi(n,i);const y=i.indent||(i.forceBlockIndent||sa(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===Ue.BLOCK_FOLDED?!1:t===Ue.BLOCK_LITERAL?!0:!jw(n,f,y.length);if(!n)return g?`|
|
|
285
285
|
`:`>
|
|
286
286
|
`;let d,v;for(v=n.length;v>0;--v){const I=n[v-1];if(I!==`
|
|
287
|
-
`&&I!==" "&&I!==" ")break}let k=n.substring(v);const
|
|
288
|
-
`);
|
|
289
|
-
`&&(k=k.slice(0,-1)),k=k.replace(yc,`$&${y}`));let
|
|
290
|
-
`)
|
|
287
|
+
`&&I!==" "&&I!==" ")break}let k=n.substring(v);const E=k.indexOf(`
|
|
288
|
+
`);E===-1?d="-":n===k||E!==k.length-1?(d="+",a&&a()):d="",k&&(n=n.slice(0,-k.length),k[k.length-1]===`
|
|
289
|
+
`&&(k=k.slice(0,-1)),k=k.replace(yc,`$&${y}`));let A=!1,w,R=-1;for(w=0;w<n.length;++w){const I=n[w];if(I===" ")A=!0;else if(I===`
|
|
290
|
+
`)R=w;else break}let L=n.substring(0,R<w?R+1:w);L&&(n=n.substring(L.length),L=L.replace(/\n+/g,`$&${y}`));let x=(A?y?"2":"1":"")+d;if(e&&(x+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const I=n.replace(/\n+/g,`
|
|
291
291
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${y}`);let O=!1;const D=ia(i,!0);u!=="folded"&&t!==Ue.BLOCK_FOLDED&&(D.onOverflow=()=>{O=!0});const K=ra(`${L}${I}${k}`,y,dc,D);if(!O)return`>${x}
|
|
292
292
|
${y}${K}`}return n=n.replace(/\n+/g,`$&${y}`),`|${x}
|
|
293
293
|
${y}${L}${n}${k}`}function Mw(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:y,inFlow:g}=t;if(l&&a.includes(`
|
|
294
294
|
`)||g&&/[[\]{},]/.test(a))return Gi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
|
|
295
295
|
`)?Gi(a,t):oa(e,t,n,i);if(!l&&!g&&o!==Ue.PLAIN&&a.includes(`
|
|
296
296
|
`))return oa(e,t,n,i);if(sa(a)){if(f==="")return t.forceBlockIndent=!0,oa(e,t,n,i);if(l&&f===y)return Gi(a,t)}const d=a.replace(/\n+/g,`$&
|
|
297
|
-
${f}`);if(u){const v=
|
|
298
|
-
${t.indent}${l}`:l}function qw({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:y,indentSeq:g,simpleKeys:d}}=n;let v=Ht(e)&&e.comment||null;if(d){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Kt(e)||!Ht(e)&&typeof e=="object"){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let k=!d&&(!e||v&&t==null&&!n.inFlow||Kt(e)||(_t(e)?e.type===Ue.BLOCK_FOLDED||e.type===Ue.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!k&&(d||!a),indent:l+f});let
|
|
299
|
-
${l}:`):(w=`${w}:`,v&&(w+=hi(w,n.indent,y(v))));let
|
|
297
|
+
${f}`);if(u){const v=A=>A.default&&A.tag!=="tag:yaml.org,2002:str"&&A.test?.test(d),{compat:k,tags:E}=t.doc.schema;if(E.some(v)||k?.some(v))return Gi(a,t)}return l?d:ra(d,f,sp,ia(t,!1))}function mc(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!==Ue.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=Ue.QUOTE_DOUBLE);const f=g=>{switch(g){case Ue.BLOCK_FOLDED:case Ue.BLOCK_LITERAL:return o||a?Gi(u.value,t):oa(u,t,n,i);case Ue.QUOTE_DOUBLE:return Hs(u.value,t);case Ue.QUOTE_SINGLE:return gc(u.value,t);case Ue.PLAIN:return Mw(u,t,n,i);default:return null}};let y=f(l);if(y===null){const{defaultKeyType:g,defaultStringType:d}=t.options,v=o&&g||d;if(y=f(v),y===null)throw new Error(`Unsupported default string type ${v}`)}return y}function ap(e,t){const n=Object.assign({blockQuote:!0,commentString:$w,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 Uw(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(_t(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 Vw(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(_t(e)||Kt(e))&&e.anchor;a&&ep(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 Ji(e,t,n,i){if(Wt(e))return e.toString(t,n,i);if(Ki(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=Ht(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Uw(t.doc.schema.tags,a));const u=Vw(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):_t(a)?mc(a,t,n,i):a.toString(t,n,i);return u?_t(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
|
|
298
|
+
${t.indent}${l}`:l}function qw({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:y,indentSeq:g,simpleKeys:d}}=n;let v=Ht(e)&&e.comment||null;if(d){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Kt(e)||!Ht(e)&&typeof e=="object"){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let k=!d&&(!e||v&&t==null&&!n.inFlow||Kt(e)||(_t(e)?e.type===Ue.BLOCK_FOLDED||e.type===Ue.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!k&&(d||!a),indent:l+f});let E=!1,A=!1,w=Ji(e,n,()=>E=!0,()=>A=!0);if(!k&&!n.inFlow&&w.length>1024){if(d)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 E&&i&&i(),w===""?"?":k?`? ${w}`:w}else if(a&&!d||t==null&&k)return w=`? ${w}`,v&&!E?w+=hi(w,n.indent,y(v)):A&&o&&o(),w;E&&(v=null),k?(v&&(w+=hi(w,n.indent,y(v))),w=`? ${w}
|
|
299
|
+
${l}:`):(w=`${w}:`,v&&(w+=hi(w,n.indent,y(v))));let R,L,T;Ht(t)?(R=!!t.spaceBefore,L=t.commentBefore,T=t.comment):(R=!1,L=null,T=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!k&&!v&&_t(t)&&(n.indentAtStart=w.length+1),A=!1,!g&&f.length>=2&&!n.inFlow&&!k&&Vs(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let x=!1;const I=Ji(t,n,()=>x=!0,()=>A=!0);let O=" ";if(v||R||L){if(O=R?`
|
|
300
300
|
`:"",L){const D=y(L);O+=`
|
|
301
301
|
${xr(D,n.indent)}`}I===""&&!n.inFlow?O===`
|
|
302
302
|
`&&(O=`
|
|
@@ -305,47 +305,47 @@ ${xr(D,n.indent)}`}I===""&&!n.inFlow?O===`
|
|
|
305
305
|
${n.indent}`}else if(!k&&Kt(t)){const D=I[0],K=I.indexOf(`
|
|
306
306
|
`),ie=K!==-1,ce=n.inFlow??t.flow??t.items.length===0;if(ie||!ce){let fe=!1;if(ie&&(D==="&"||D==="!")){let ye=I.indexOf(" ");D==="&"&&ye!==-1&&ye<K&&I[ye+1]==="!"&&(ye=I.indexOf(" ",ye+1)),(ye===-1||K<ye)&&(fe=!0)}fe||(O=`
|
|
307
307
|
${n.indent}`)}}else(I===""||I[0]===`
|
|
308
|
-
`)&&(O="");return w+=O+I,n.inFlow?x&&i&&i():T&&!x?w+=hi(w,n.indent,y(T)):
|
|
309
|
-
${f}${
|
|
308
|
+
`)&&(O="");return w+=O+I,n.inFlow?x&&i&&i():T&&!x?w+=hi(w,n.indent,y(T)):A&&o&&o(),w}function up(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const aa="<<",Cr={identify:e=>e===aa||typeof e=="symbol"&&e.description===aa,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ue(Symbol(aa)),{addToJSMap:cp}),stringify:()=>aa},Ww=(e,t)=>(Cr.identify(t)||_t(t)&&(!t.type||t.type===Ue.PLAIN)&&Cr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Cr.tag&&n.default);function cp(e,t,n){if(n=e&&Ki(n)?n.resolve(e.doc):n,Vs(n))for(const i of n.items)bc(e,t,i);else if(Array.isArray(n))for(const i of n)bc(e,t,i);else bc(e,t,n)}function bc(e,t,n){const i=e&&Ki(n)?n.resolve(e.doc):n;if(!Us(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 lp(e,t,{key:n,value:i}){if(Ht(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Ww(e,n))cp(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=Kw(n,o,e),u=Un(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function Kw(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Ht(e)&&n?.doc){const i=ap(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)+'..."'),up(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 wc(e,t,n){const i=Ws(e,void 0,n),o=Ws(t,void 0,n);return new dn(i,o)}class dn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:Zh}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Ht(n)&&(n=n.clone(t)),Ht(i)&&(i=i.clone(t)),new dn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return lp(n,i,this)}toString(t,n,i){return t?.doc?qw(this,t,n,i):JSON.stringify(this)}}function fp(e,t,n){return(t.inFlow??e.flow?zw:Hw)(e,t,n)}function Hw({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:y}}=n,g=Object.assign({},n,{indent:a,type:null});let d=!1;const v=[];for(let E=0;E<t.length;++E){const A=t[E];let w=null;if(Ht(A))!d&&A.spaceBefore&&v.push(""),ua(n,v,A.commentBefore,d),A.comment&&(w=A.comment);else if(Wt(A)){const L=Ht(A.key)?A.key:null;L&&(!d&&L.spaceBefore&&v.push(""),ua(n,v,L.commentBefore,d))}d=!1;let R=Ji(A,g,()=>w=null,()=>d=!0);w&&(R+=hi(R,a,y(w))),d&&w&&(d=!1),v.push(i+R)}let k;if(v.length===0)k=o.start+o.end;else{k=v[0];for(let E=1;E<v.length;++E){const A=v[E];k+=A?`
|
|
309
|
+
${f}${A}`:`
|
|
310
310
|
`}}return e?(k+=`
|
|
311
|
-
`+xr(y(e),f),l&&l()):d&&u&&u(),k}function zw({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 y=!1,g=0;const d=[];for(let
|
|
312
|
-
`))&&(y=!0),d.push(
|
|
313
|
-
${a}${o}${
|
|
314
|
-
`;return`${
|
|
311
|
+
`+xr(y(e),f),l&&l()):d&&u&&u(),k}function zw({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 y=!1,g=0;const d=[];for(let E=0;E<e.length;++E){const A=e[E];let w=null;if(Ht(A))A.spaceBefore&&d.push(""),ua(t,d,A.commentBefore,!1),A.comment&&(w=A.comment);else if(Wt(A)){const L=Ht(A.key)?A.key:null;L&&(L.spaceBefore&&d.push(""),ua(t,d,L.commentBefore,!1),L.comment&&(y=!0));const T=Ht(A.value)?A.value:null;T?(T.comment&&(w=T.comment),T.commentBefore&&(y=!0)):A.value==null&&L?.comment&&(w=L.comment)}w&&(y=!0);let R=Ji(A,f,()=>w=null);E<e.length-1&&(R+=","),w&&(R+=hi(R,i,l(w))),!y&&(d.length>g||R.includes(`
|
|
312
|
+
`))&&(y=!0),d.push(R),g=d.length}const{start:v,end:k}=n;if(d.length===0)return v+k;if(!y){const E=d.reduce((A,w)=>A+w.length+2,2);y=t.options.lineWidth>0&&E>t.options.lineWidth}if(y){let E=v;for(const A of d)E+=A?`
|
|
313
|
+
${a}${o}${A}`:`
|
|
314
|
+
`;return`${E}
|
|
315
315
|
${o}${k}`}else return`${v}${u}${d.join(" ")}${u}${k}`}function ua({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=xr(t(i),e);n.push(a.trimStart())}}function pi(e,t){const n=_t(t)?t.value:t;for(const i of e)if(Wt(i)&&(i.key===t||i.key===n||_t(i.key)&&i.key.value===n))return i}class Vn extends ip{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Vr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,y)=>{if(typeof a=="function")y=a.call(n,f,y);else if(Array.isArray(a)&&!a.includes(f))return;(y!==void 0||o)&&u.items.push(wc(f,y,i))};if(n instanceof Map)for(const[f,y]of n)l(f,y);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;Wt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new dn(t,t?.value):i=new dn(t.key,t.value);const o=pi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);_t(o.value)&&rp(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=pi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=pi(this.items,t)?.value;return(!n&&_t(o)?o.value:o)??void 0}has(t){return!!pi(this.items,t)}set(t,n){this.add(new dn(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)lp(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Wt(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})),fp(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const Yi={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Us(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class di extends ip{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Wi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ca(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ca(t);if(typeof i!="number")return;const o=this.items[i];return!n&&_t(o)?o.value:o}has(t){const n=ca(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ca(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];_t(o)&&rp(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(Un(a,String(o++),n));return i}toString(t,n,i){return t?fp(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(Ws(l,void 0,i))}}return a}}function ca(e){let t=_t(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Xi={collection:"seq",default:!0,nodeClass:di,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Vs(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>di.from(e,t,n)},la={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),mc(e,t,n,i)}},fa={identify:e=>e==null,createNode:()=>new Ue(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ue(null),stringify:({source:e},t)=>typeof e=="string"&&fa.test.test(e)?e:t.options.nullStr},vc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ue(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&vc.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 er({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 hp={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:er},pp={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():er(e)}},dp={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 Ue(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},ha=e=>typeof e=="bigint"||Number.isInteger(e),Ac=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function gp(e,t,n){const{value:i}=e;return ha(i)&&i>=0?n+i.toString(t):er(e)}const yp={identify:e=>ha(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Ac(e,2,8,n),stringify:e=>gp(e,8,"0o")},mp={identify:ha,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Ac(e,0,10,n),stringify:er},bp={identify:e=>ha(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Ac(e,2,16,n),stringify:e=>gp(e,16,"0x")},Gw=[Yi,Xi,la,fa,vc,yp,mp,bp,hp,pp,dp];function wp(e){return typeof e=="bigint"||Number.isInteger(e)}const pa=({value:e})=>JSON.stringify(e),Jw=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:pa},{identify:e=>e==null,createNode:()=>new Ue(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:pa},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:pa},{identify:wp,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})=>wp(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:pa}],Yw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Xw=[Yi,Xi].concat(Jw,Yw),Ec={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 y=0;y<u.length;++y)f+=String.fromCharCode(u[y]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ue.BLOCK_LITERAL),t!==Ue.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),y=Math.ceil(l.length/f),g=new Array(y);for(let d=0,v=0;d<y;++d,v+=f)g[d]=l.substr(v,f);l=g.join(t===Ue.BLOCK_LITERAL?`
|
|
316
316
|
`:" ")}return mc({comment:e,type:t,value:l},i,o,a)}};function vp(e,t){if(Vs(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Wt(i)){if(Us(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new dn(new Ue(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
|
|
317
317
|
${o.key.commentBefore}`:i.commentBefore),i.comment){const a=o.value??o.key;a.comment=a.comment?`${i.comment}
|
|
318
318
|
${a.comment}`:i.comment}i=o}e.items[n]=Wt(i)?i:new dn(i)}}else t("Expected a sequence for this tag");return e}function Ap(e,t,n){const{replacer:i}=n,o=new di(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 y=Object.keys(u);if(y.length===1)l=y[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${y.length} keys`)}else l=u;o.items.push(wc(l,f,n))}return o}const Sc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:vp,createNode:Ap};class Qi extends di{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=Qi.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(Wt(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(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=Ap(t,n,i),a=new this;return a.items=o.items,a}}Qi.tag="tag:yaml.org,2002:omap";const xc={collection:"seq",identify:e=>e instanceof Map,nodeClass:Qi,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=vp(e,t),i=[];for(const{key:o}of n.items)_t(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new Qi,n)},createNode:(e,t,n)=>Qi.from(e,t,n)};function Ep({value:e,source:t},n){return t&&(e?Sp:xp).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Sp={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 Ue(!0),stringify:Ep},xp={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 Ue(!1),stringify:Ep},Qw={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:er},Zw={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():er(e)}},ev={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 Ue(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:er},zs=e=>typeof e=="bigint"||Number.isInteger(e);function da(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 Cc(e,t,n){const{value:i}=e;if(zs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const tv={identify:zs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>da(e,2,2,n),stringify:e=>Cc(e,2,"0b")},nv={identify:zs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>da(e,1,8,n),stringify:e=>Cc(e,8,"0")},rv={identify:zs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>da(e,0,10,n),stringify:er},iv={identify:zs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>da(e,2,16,n),stringify:e=>Cc(e,16,"0x")};class Zi extends Vn{constructor(t){super(t),this.tag=Zi.tag}add(t){let n;Wt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new dn(t.key,null):n=new dn(t,null),pi(this.items,n.key)||this.items.push(n)}get(t,n){const i=pi(this.items,t);return!n&&Wt(i)?_t(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=pi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new dn(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(wc(u,null,i));return a}}Zi.tag="tag:yaml.org,2002:set";const _c={collection:"map",identify:e=>e instanceof Set,nodeClass:Zi,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Zi.from(e,t,n),resolve(e,t){if(Us(e)){if(e.hasAllNullValues(!0))return Object.assign(new Zi,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Tc(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 Cp(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return er(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 _p={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})=>Tc(e,n),stringify:Cp},Tp={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=>Tc(e,!1),stringify:Cp},ga={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(ga.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 y=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let d=Tc(g,!1);Math.abs(d)<30&&(d*=60),y-=6e4*d}return new Date(y)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},kp=[Yi,Xi,la,fa,Sp,xp,tv,nv,rv,iv,Qw,Zw,ev,Ec,Cr,xc,Sc,_c,_p,Tp,ga],Op=new Map([["core",Gw],["failsafe",[Yi,Xi,la]],["json",Xw],["yaml11",kp],["yaml-1.1",kp]]),Ip={binary:Ec,bool:vc,float:dp,floatExp:pp,floatNaN:hp,floatTime:Tp,int:mp,intHex:bp,intOct:yp,intTime:_p,map:Yi,merge:Cr,null:fa,omap:xc,pairs:Sc,seq:Xi,set:_c,timestamp:ga},sv={"tag:yaml.org,2002:binary":Ec,"tag:yaml.org,2002:merge":Cr,"tag:yaml.org,2002:omap":xc,"tag:yaml.org,2002:pairs":Sc,"tag:yaml.org,2002:set":_c,"tag:yaml.org,2002:timestamp":ga};function kc(e,t,n){const i=Op.get(t);if(i&&!e)return n&&!i.includes(Cr)?i.concat(Cr):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Op.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(Cr)),o.reduce((a,u)=>{const l=typeof u=="string"?Ip[u]:u;if(!l){const f=JSON.stringify(u),y=Object.keys(Ip).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${y}`)}return a.includes(l)||a.push(l),a},[])}const ov=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Oc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?kc(t,"compat"):t?kc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?sv:{},this.tags=kc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Vr,{value:Yi}),Object.defineProperty(this,pr,{value:la}),Object.defineProperty(this,Wi,{value:Xi}),this.sortMapEntries=typeof u=="function"?u:u===!0?ov:null}clone(){const t=Object.create(Oc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function av(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=ap(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(xr(f,""))}let u=!1,l=null;if(e.contents){if(Ht(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(xr(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let y=Ji(e.contents,o,()=>l=null,f);l&&(y+=hi(y,"",a(l))),(y[0]==="|"||y[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${y}`:n.push(y)}else n.push(Ji(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
|
|
319
319
|
`)?(n.push("..."),n.push(xr(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(xr(a(f),"")))}return n.join(`
|
|
320
320
|
`)+`
|
|
321
|
-
`}class Gs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:fc});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(Gs.prototype,{[Mn]:{value:fc}});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=Ht(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){es(this.contents)&&this.contents.add(t)}addIn(t,n){es(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=tp(this);t.anchor=!n||i.has(n)?np(n||"a",i):n}return new pc(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 w=L=>typeof L=="number"||L instanceof String||L instanceof Number,
|
|
321
|
+
`}class Gs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:fc});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(Gs.prototype,{[Mn]:{value:fc}});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=Ht(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){es(this.contents)&&this.contents.add(t)}addIn(t,n){es(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=tp(this);t.anchor=!n||i.has(n)?np(n||"a",i):n}return new pc(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 w=L=>typeof L=="number"||L instanceof String||L instanceof Number,R=n.filter(w).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:y,tag:g}=i??{},{onAnchor:d,setAnchors:v,sourceObjects:k}=Pw(this,u||"a"),E={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:d,onTagObj:y,replacer:o,schema:this.schema,sourceObjects:k},A=Ws(t,g,E);return l&&Kt(A)&&(A.flow=!0),v(),A}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new dn(o,a)}delete(t){return es(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ks(t)?this.contents==null?!1:(this.contents=null,!0):es(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Kt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Ks(t)?!n&&_t(this.contents)?this.contents.value:this.contents:Kt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Kt(this.contents)?this.contents.has(t):!1}hasIn(t){return Ks(t)?this.contents!==void 0:Kt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ta(this.schema,[t],n):es(this.contents)&&this.contents.set(t,n)}setIn(t,n){Ks(t)?this.contents=n:this.contents==null?this.contents=ta(this.schema,Array.from(t),n):es(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 Oc(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=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:y,res:g}of l.anchors.values())a(g,y);return typeof u=="function"?zi(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 av(this,t)}}function es(e){if(Kt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Fp extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Js extends Fp{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class uv extends Fp{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Bp=(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)+`…
|
|
322
322
|
`),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 y=" ".repeat(a)+"^".repeat(l);n.message+=`:
|
|
323
323
|
|
|
324
324
|
${u}
|
|
325
325
|
${y}
|
|
326
|
-
`}};function ts(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,y=l,g=l,d="",v="",k=!1,
|
|
327
|
-
`))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(Ys(t.key)||Ys(t.value))return!0}return!1;default:return!0}}function Ic(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Ys(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Dp(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||_t(a)&&_t(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Rp="All mapping items must start at the same column";function cv({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,y=null;for(const g of i.items){const{start:d,key:v,sep:k,value:
|
|
328
|
-
`+
|
|
329
|
-
`+T.comment:L.comment=T.comment);const x=new dn(L);n.options.keepSourceTokens&&(x.srcToken=g),l.items.push(x)}}return y&&y<f&&o(y,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,y??f],l}function lv({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??di,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,y=null;for(const{start:g,value:d}of i.items){const v=ts(g,{indicator:"seq-item-ind",next:d,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||d)d&&d.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{y=v.end,v.comment&&(l.comment=v.comment);continue}const k=d?e(n,d,v,o):t(n,v.end,g,null,v,o);n.schema.compat&&Ic(i.indent,d,o),f=k.range[2],l.items.push(k)}return l.range=[i.offset,f,y??f],l}function Xs(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:y}=l;switch(y){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 ${y} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Fc="Block collections are not allowed within flow collections",Bc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function fv({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:di),y=new f(n.schema);y.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=i.offset+i.start.source.length;for(let w=0;w<i.items.length;++w){const
|
|
326
|
+
`}};function ts(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,y=l,g=l,d="",v="",k=!1,E=!1,A=null,w=null,R=null,L=null,T=null,x=null,I=null;for(const K of e)switch(E&&(K.type!=="space"&&K.type!=="newline"&&K.type!=="comma"&&a(K.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E=!1),A&&(y&&K.type!=="comment"&&K.type!=="newline"&&a(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),K.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&K.source.includes(" ")&&(A=K),g=!0;break;case"comment":{g||a(K,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const ie=K.source.substring(1)||" ";d?d+=v+ie:d=ie,v="",y=!1;break}case"newline":y?d?d+=K.source:(!x||n!=="seq-item-ind")&&(f=!0):v+=K.source,y=!0,k=!0,(w||R)&&(L=K),g=!0;break;case"anchor":w&&a(K,"MULTIPLE_ANCHORS","A node can have at most one anchor"),K.source.endsWith(":")&&a(K.offset+K.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=K,I===null&&(I=K.offset),y=!1,g=!1,E=!0;break;case"tag":{R&&a(K,"MULTIPLE_TAGS","A node can have at most one tag"),R=K,I===null&&(I=K.offset),y=!1,g=!1,E=!0;break}case n:(w||R)&&a(K,"BAD_PROP_ORDER",`Anchors and tags must be after the ${K.source} indicator`),x&&a(K,"UNEXPECTED_TOKEN",`Unexpected ${K.source} in ${t??"collection"}`),x=K,y=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){T&&a(K,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),T=K,y=!1,g=!1;break}default:a(K,"UNEXPECTED_TOKEN",`Unexpected ${K.type} token`),y=!1,g=!1}const O=e[e.length-1],D=O?O.offset+O.source.length:o;return E&&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&&(y&&A.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:T,found:x,spaceBefore:f,comment:d,hasNewline:k,anchor:w,tag:R,newlineAfterProp:L,end:D,start:I??D}}function Ys(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
327
|
+
`))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(Ys(t.key)||Ys(t.value))return!0}return!1;default:return!0}}function Ic(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Ys(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Dp(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||_t(a)&&_t(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Rp="All mapping items must start at the same column";function cv({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,y=null;for(const g of i.items){const{start:d,key:v,sep:k,value:E}=g,A=ts(d,{indicator:"explicit-key-ind",next:v??k?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),w=!A.found;if(w){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",Rp)),!A.anchor&&!A.tag&&!k){y=A.end,A.comment&&(l.comment?l.comment+=`
|
|
328
|
+
`+A.comment:l.comment=A.comment);continue}(A.newlineAfterProp||Ys(v))&&o(v??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else A.found?.indent!==i.indent&&o(f,"BAD_INDENT",Rp);n.atKey=!0;const R=A.end,L=v?e(n,v,A,o):t(n,R,d,null,A,o);n.schema.compat&&Ic(i.indent,v,o),n.atKey=!1,Dp(n,l.items,L)&&o(R,"DUPLICATE_KEY","Map keys must be unique");const T=ts(k??[],{indicator:"map-value-ind",next:E,offset:L.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=T.end,T.found){w&&(E?.type==="block-map"&&!T.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&A.start<T.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=E?e(n,E,T,o):t(n,f,k,null,T,o);n.schema.compat&&Ic(i.indent,E,o),f=x.range[2];const I=new dn(L,x);n.options.keepSourceTokens&&(I.srcToken=g),l.items.push(I)}else{w&&o(L.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),T.comment&&(L.comment?L.comment+=`
|
|
329
|
+
`+T.comment:L.comment=T.comment);const x=new dn(L);n.options.keepSourceTokens&&(x.srcToken=g),l.items.push(x)}}return y&&y<f&&o(y,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,y??f],l}function lv({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??di,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,y=null;for(const{start:g,value:d}of i.items){const v=ts(g,{indicator:"seq-item-ind",next:d,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||d)d&&d.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{y=v.end,v.comment&&(l.comment=v.comment);continue}const k=d?e(n,d,v,o):t(n,v.end,g,null,v,o);n.schema.compat&&Ic(i.indent,d,o),f=k.range[2],l.items.push(k)}return l.range=[i.offset,f,y??f],l}function Xs(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:y}=l;switch(y){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 ${y} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Fc="Block collections are not allowed within flow collections",Bc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function fv({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:di),y=new f(n.schema);y.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=i.offset+i.start.source.length;for(let w=0;w<i.items.length;++w){const R=i.items[w],{start:L,key:T,sep:x,value:I}=R,O=ts(L,{flow:l,indicator:"explicit-key-ind",next:T??x?.[0],offset:d,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!x&&!I){w===0&&O.comma?o(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):w<i.items.length-1&&o(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),O.comment&&(y.comment?y.comment+=`
|
|
330
330
|
`+O.comment:y.comment=O.comment),d=O.end;continue}!u&&n.options.strict&&Ys(T)&&o(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===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 K of L)switch(K.type){case"comma":case"space":break;case"comment":D=K.source.substring(1);break e;default:break e}if(D){let K=y.items[y.items.length-1];Wt(K)&&(K=K.value??K.key),K.comment?K.comment+=`
|
|
331
331
|
`+D:K.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);y.items.push(D),d=D.range[2],Bc(I)&&o(D.range,"BLOCK_IN_FLOW",Fc)}else{n.atKey=!0;const D=O.end,K=T?e(n,T,O,o):t(n,D,L,null,O,o);Bc(T)&&o(K.range,"BLOCK_IN_FLOW",Fc),n.atKey=!1;const ie=ts(x??[],{flow:l,indicator:"map-value-ind",next:I,offset:K.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(ie.found){if(!u&&!O.found&&n.options.strict){if(x)for(const ye of x){if(ye===ie.found)break;if(ye.type==="newline"){o(ye,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<ie.found.offset-1024&&o(ie.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(ie.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const ce=I?e(n,I,ie,o):ie.found?t(n,ie.end,x,null,ie,o):null;ce?Bc(I)&&o(ce.range,"BLOCK_IN_FLOW",Fc):ie.comment&&(K.comment?K.comment+=`
|
|
332
|
-
`+ie.comment:K.comment=ie.comment);const fe=new dn(K,ce);if(n.options.keepSourceTokens&&(fe.srcToken=
|
|
333
|
-
`+w.comment:y.comment=w.comment),y.range=[i.offset,
|
|
334
|
-
`.repeat(Math.max(1,u.length-1)):"";let w=i+o.length;return t.source&&(w+=t.source.length),{value:
|
|
335
|
-
`;for(let
|
|
336
|
-
`):w.length>f||
|
|
332
|
+
`+ie.comment:K.comment=ie.comment);const fe=new dn(K,ce);if(n.options.keepSourceTokens&&(fe.srcToken=R),u){const ye=y;Dp(n,ye.items,K)&&o(D,"DUPLICATE_KEY","Map keys must be unique"),ye.items.push(fe)}else{const ye=new Vn(n.schema);ye.flow=!0,ye.items.push(fe);const we=(ce??K).range;ye.range=[K.range[0],we[1],we[2]],y.items.push(ye)}d=ce?ce.range[2]:ie.end}}const v=u?"}":"]",[k,...E]=i.end;let A=d;if(k&&k.source===v)A=k.offset+k.source.length;else{const w=l[0].toUpperCase()+l.substring(1),R=g?`${w} must end with a ${v}`:`${w} in block collection must be sufficiently indented and end with a ${v}`;o(d,g?"MISSING_CHAR":"BAD_INDENT",R),k&&k.source.length!==1&&E.unshift(k)}if(E.length>0){const w=Xs(E,A,n.options.strict,o);w.comment&&(y.comment?y.comment+=`
|
|
333
|
+
`+w.comment:y.comment=w.comment),y.range=[i.offset,A,w.offset]}else y.range=[i.offset,A,A];return y}function Dc(e,t,n,i,o,a){const u=n.type==="block-map"?cv(e,t,n,i,a):n.type==="block-seq"?lv(e,t,n,i,a):fv(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function hv(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,v=>o(a,"TAG_RESOLVE_FAILED",v)):null;if(n.type==="block-seq"){const{anchor:v,newlineAfterProp:k}=i,E=v&&a?v.offset>a.offset?v:a:v??a;E&&(!k||k.offset<E.offset)&&o(E,"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===Vn.tagName&&l==="map"||u===di.tagName&&l==="seq")return Dc(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Dc(e,t,n,o,u)}const y=Dc(e,t,n,o,u,f),g=f.resolve?.(y,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??y,d=Ht(g)?g:new Ue(g);return d.range=y.range,d.tag=u,f?.format&&(d.format=f.format),d}function pv(e,t,n){const i=t.offset,o=dv(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?Ue.BLOCK_FOLDED:Ue.BLOCK_LITERAL,u=t.source?gv(t.source):[];let l=u.length;for(let A=u.length-1;A>=0;--A){const w=u[A][1];if(w===""||w==="\r")l=A;else break}if(l===0){const A=o.chomp==="+"&&u.length>0?`
|
|
334
|
+
`.repeat(Math.max(1,u.length-1)):"";let w=i+o.length;return t.source&&(w+=t.source.length),{value:A,type:a,comment:o.comment,range:[i,w,w]}}let f=t.indent+o.indent,y=t.offset+o.length,g=0;for(let A=0;A<l;++A){const[w,R]=u[A];if(R===""||R==="\r")o.indent===0&&w.length>f&&(f=w.length);else{w.length<f&&n(y+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=w.length),g=A,f===0&&!e.atRoot&&n(y,"BAD_INDENT","Block scalar values in collections must be indented");break}y+=w.length+R.length+1}for(let A=u.length-1;A>=l;--A)u[A][0].length>f&&(l=A+1);let d="",v="",k=!1;for(let A=0;A<g;++A)d+=u[A][0].slice(f)+`
|
|
335
|
+
`;for(let A=g;A<l;++A){let[w,R]=u[A];y+=w.length+R.length+1;const L=R[R.length-1]==="\r";if(L&&(R=R.slice(0,-1)),R&&w.length<f){const x=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(y-R.length-(L?2:1),"BAD_INDENT",x),w=""}a===Ue.BLOCK_LITERAL?(d+=v+w.slice(f)+R,v=`
|
|
336
|
+
`):w.length>f||R[0]===" "?(v===" "?v=`
|
|
337
337
|
`:!k&&v===`
|
|
338
338
|
`&&(v=`
|
|
339
339
|
|
|
340
|
-
`),d+=v+w.slice(f)+
|
|
341
|
-
`,k=!0):
|
|
340
|
+
`),d+=v+w.slice(f)+R,v=`
|
|
341
|
+
`,k=!0):R===""?v===`
|
|
342
342
|
`?d+=`
|
|
343
343
|
`:v=`
|
|
344
|
-
`:(d+=v+
|
|
345
|
-
`+u[
|
|
344
|
+
`:(d+=v+R,v=" ",k=!1)}switch(o.chomp){case"-":break;case"+":for(let A=l;A<u.length;++A)d+=`
|
|
345
|
+
`+u[A][0].slice(f);d[d.length-1]!==`
|
|
346
346
|
`&&(d+=`
|
|
347
347
|
`);break;default:d+=`
|
|
348
|
-
`}const
|
|
348
|
+
`}const E=i+o.length+t.source.length;return{value:d,type:a,comment:o.comment,range:[i,E,E]}}function dv({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 v=1;v<o.length;++v){const k=o[v];if(!l&&(k==="-"||k==="+"))l=k;else{const E=Number(k);!u&&E?u=E:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let y=!1,g="",d=o.length;for(let v=1;v<t.length;++v){const k=t[v];switch(k.type){case"space":y=!0;case"newline":d+=k.source.length;break;case"comment":n&&!y&&i(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=k.source.length,g=k.source.substring(1);break;case"error":i(k,"UNEXPECTED_TOKEN",k.message),d+=k.source.length;break;default:{const E=`Unexpected token in block scalar header: ${k.type}`;i(k,"UNEXPECTED_TOKEN",E);const A=k.source;A&&typeof A=="string"&&(d+=A.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:d}}function gv(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 yv(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const y=(v,k,E)=>n(i+v,k,E);switch(o){case"scalar":l=Ue.PLAIN,f=mv(a,y);break;case"single-quoted-scalar":l=Ue.QUOTE_SINGLE,f=bv(a,y);break;case"double-quoted-scalar":l=Ue.QUOTE_DOUBLE,f=wv(a,y);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,d=Xs(u,g,t,n);return{value:f,type:l,comment:d.comment,range:[i,g,d.offset]}}function mv(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}`),Pp(e)}function bv(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Pp(e.slice(1,-1)).replace(/''/g,"'")}function Pp(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
349
349
|
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
350
350
|
`,"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===`
|
|
351
351
|
`?o+=a:a=`
|
|
@@ -406,7 +406,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
406
406
|
.overflow-guard {
|
|
407
407
|
border-radius: 8px;
|
|
408
408
|
}
|
|
409
|
-
`},Uv=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f})=>{const y=wr.useNavigate(),[g,d]=re.useState(""),[v,k]=re.useState(!1),[A,E]=re.useState();re.useEffect(()=>{d(zp(n))},[n]);const w=()=>{k(!0),E(void 0);const P=Hp(g),{namespace:L}=P.metadata,{name:T}=P.metadata,x=P,I=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${L}`:""}/${l}/${o?"":T}`;o?Ku({endpoint:I,body:x}).then(O=>{console.log(O),f&&y(f)}).catch(O=>{console.log("Form submit error",O),k(!1),E(O)}):Hu({endpoint:I,body:x}).then(O=>{console.log(O),f&&y(f)}).catch(O=>{console.log("Form submit error",O),k(!1),E(O)})};return $.jsxs($.Fragment,{children:[A&&$.jsx(ue.Alert,{message:`An error has occurred: ${A?.response?.data?.message} `,type:"error"}),$.jsx(Mv.BorderRadiusContainer,{children:$.jsx(cc,{defaultLanguage:"yaml",width:"100%",height:"75vh",value:g,onChange:P=>{d(P||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Button,{type:"primary",onClick:w,loading:v,children:"Submit"})]})},Ft=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)},Vv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g,customProps:d,urlParams:v})=>{const{clusterName:k,namespace:A,syntheticProject:E,entryName:w}=v,P=ue.Form.useFormInstance(),L=ue.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,P),T=qt({template:d.valueUri,replaceValues:{clusterName:k,namespace:A,syntheticProject:E,entryName:w}}),{data:x,isError:I,isLoading:O}=vn({uri:T,refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T});if(O)return $.jsx("div",{children:"Loading"});if(I)return $.jsx("div",{children:"Error"});const D=yt.get(x,["items"]),K=d.criteria?D.filter(ge=>{const he=yt.get(ge,d.criteria?.keysToValue||[]);return d.criteria?.type==="equals"?he===d.criteria?.value:he!==d.criteria?.value}):D,ie=d.criteria?.keepPrefilled!==!1?D.find(ge=>yt.get(ge,d.keysToValue)===L):void 0,ce=ie?[ie,...K]:K,ye=(Array.isArray(ce)?ce.map(ge=>({value:yt.get(ge,d.keysToValue),label:d.keysToLabel?yt.get(ge,d.keysToLabel):yt.get(ge,d.keysToValue)})).map(({value:ge,label:he})=>({label:typeof he=="string"?he:JSON.stringify(he),value:typeof ge=="string"?ge:JSON.stringify(ge)})):[]).reduce((ge,he)=>(ge.some(Ie=>Ie.value===he.value)||ge.push(he),ge),[]),we=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return $.jsxs(jn,{$isHidden:u,children:[$.jsxs(ue.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),l&&$.jsxs(ue.Tooltip,{title:l,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),f&&$.jsx(Mr,{type:"secondary",onClick:()=>y({path:e}),children:"Удалить"}),$.jsx(ci,{formName:i||e,persistedControls:g,type:"arr"})]}),$.jsx(Sr,{name:n||we,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Select,{mode:d.mode,placeholder:"Select",options:ye,filterOption:Zu,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},dr=({valueObj:e,keysToValue:t,logic:n})=>{const i=yt.get(e,t);return n==="cpuLike"?ec(i):tc(i)},Gp=({value:e})=>Number(e.toFixed(1)),Jp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},Yp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},qv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:y,maxAddSecondValueObj:g,logic:d})=>{let v=0,k=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const A=dr({valueObj:t,keysToValue:e.min.keysToValue,logic:d});v=Gp({value:A})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const A=dr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:d}),E=dr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:d});v=Jp({valueFirst:A,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const A=dr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:d}),E=dr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:d});v=Yp({valueFirst:A,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const A=dr({valueObj:u,keysToValue:e.max.keysToValue,logic:d});k=Gp({value:A})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const A=dr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:d}),E=dr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:d});k=Jp({valueFirst:A,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof y=="object"&&y!==null&&typeof g=="object"&&g!==null){const A=dr({valueObj:y,keysToValue:e.max.firstValuesKeysToValue,logic:d}),E=dr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:d});k=Yp({valueFirst:A,valueSecond:E})}return e.max.type==="number"&&(k=e.max.value),{minValue:v,maxValue:k}},Wv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,initialValue:y,max:g,min:d,step:v=1,...k})=>{const[A,E]=re.useState(y||d);return re.useEffect(()=>{(Number.isNaN(A)||A<d)&&E(d),A>g&&E(g),E(A)},[A,d,g]),$.jsxs(jn,{$isHidden:u,children:[$.jsxs(ue.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),f&&$.jsxs(ue.Tooltip,{title:f,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),$.jsx(ci,{formName:i||e,persistedControls:l,type:"number"})]}),$.jsxs(ue.Row,{children:[$.jsxs(ue.Col,{span:12,children:[$.jsx(Sr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Slider,{min:d,max:g,step:v,...k})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),$.jsx(ue.Typography.Text,{children:$.jsxs(ue.Flex,{justify:"space-between",children:[$.jsx("span",{children:d}),$.jsx("span",{children:g})]})})]}),$.jsx(ue.Col,{span:4,children:$.jsx(Sr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.InputNumber,{min:d,max:g,step:v,value:A,disabled:k.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},Kv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:y,customProps:g,urlParams:d})=>{const{clusterName:v,namespace:k,syntheticProject:A,entryName:E}=d,w=f?g.edit:g.add,P=w.min.type==="resourceValue"?qt({template:w.min.valueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,L=w.min.type==="substractResourceValues"?qt({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,T=w.min.type==="substractResourceValues"?qt({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,x=w.min.type==="addResourceValues"?qt({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,I=w.min.type==="addResourceValues"?qt({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,O=w.max.type==="resourceValue"?qt({template:w.max.valueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,D=w.max.type==="substractResourceValues"?qt({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,K=w.max.type==="substractResourceValues"?qt({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,ie=w.max.type==="addResourceValues"?qt({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,ce=w.max.type==="addResourceValues"?qt({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:A,entryName:E}}):void 0,{data:fe,isError:ye,isLoading:we}=vn({uri:P||"",refetchInterval:!1,queryKey:[P||"",JSON.stringify(e)],isEnabled:!!P}),{data:ge,isError:he,isLoading:Re}=vn({uri:L||"",refetchInterval:!1,queryKey:[L||"",JSON.stringify(e)],isEnabled:!!L}),{data:Ie,isError:Te,isLoading:We}=vn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:Xe,isError:Ee,isLoading:wt}=vn({uri:x||"",refetchInterval:!1,queryKey:[x||"",JSON.stringify(e)],isEnabled:!!x}),{data:G,isError:Y,isLoading:oe}=vn({uri:I||"",refetchInterval:!1,queryKey:[I||"",JSON.stringify(e)],isEnabled:!!I}),{data:xe,isError:Ke,isLoading:Se}=vn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Fe,isError:je,isLoading:Le}=vn({uri:D||"",refetchInterval:!1,queryKey:[D||"",JSON.stringify(e)],isEnabled:!!D}),{data:Tt,isError:sn,isLoading:Nt}=vn({uri:K||"",refetchInterval:!1,queryKey:[K||"",JSON.stringify(e)],isEnabled:!!K}),{data:Lt,isError:ve,isLoading:Ce}=vn({uri:ie||"",refetchInterval:!1,queryKey:[ie||"",JSON.stringify(e)],isEnabled:!!ie}),{data:qe,isError:kt,isLoading:ht}=vn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{minValue:Et,maxValue:de}=qv({minMaxAndStep:w,minValueObj:fe,minSubstractFirstValueObj:ge,minSubstractSecondValueObj:Ie,minAddFirstValueObj:Xe,minAddSecondValueObj:G,maxValueObj:xe,maxSubstractFirstValueObj:Fe,maxSubstractSecondValueObj:Tt,maxAddFirstValueObj:Lt,maxAddSecondValueObj:qe,logic:g.logic}),Qe=f?g.edit.step:g.add.step;return w.min.type==="resourceValue"&&we||w.min.type==="substractResourceValues"&&(Re||We)||w.min.type==="addResourceValues"&&(wt||oe)||w.max.type==="resourceValue"&&Se||w.max.type==="substractResourceValues"&&(Le||Nt)||w.max.type==="addResourceValues"&&(Ce||ht)?$.jsx("div",{children:"Loading"}):w.min.type==="resourceValue"&&ye||w.min.type==="substractResourceValues"&&(he||Te)||w.min.type==="addResourceValues"&&(Ee||Y)||w.max.type==="resourceValue"&&Ke||w.max.type==="substractResourceValues"&&(je||sn)||w.max.type==="addResourceValues"&&(ve||kt)?$.jsx("div",{children:"Error"}):$.jsx(Wv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:Et,max:de,step:Qe,persistedControls:y})},Hv=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>n?$.jsxs(jn,{$isHidden:t,children:[$.jsxs(ue.Typography.Text,{children:["namespace",$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),i&&$.jsx(Mr,{type:"secondary",onClick:()=>o({path:e}),children:"Удалить"})]}),$.jsx(Sr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null,zv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g})=>{const d=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return $.jsxs(jn,{$isHidden:u,children:[$.jsxs(ue.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),l&&$.jsxs(ue.Tooltip,{title:l,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),f&&$.jsx(Mr,{type:"secondary",onClick:()=>y({path:e}),children:"Удалить"}),$.jsx(ci,{formName:i||e,persistedControls:g,type:"str"})]}),$.jsx(Sr,{name:n||d,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Input,{placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},Gv=Ct.div`
|
|
409
|
+
`},Uv=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f})=>{const y=wr.useNavigate(),[g,d]=re.useState(""),[v,k]=re.useState(!1),[E,A]=re.useState();re.useEffect(()=>{d(zp(n))},[n]);const w=()=>{k(!0),A(void 0);const R=Hp(g),{namespace:L}=R.metadata,{name:T}=R.metadata,x=R,I=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${L}`:""}/${l}/${o?"":T}`;o?Ku({endpoint:I,body:x}).then(O=>{console.log(O),f&&y(f)}).catch(O=>{console.log("Form submit error",O),k(!1),A(O)}):Hu({endpoint:I,body:x}).then(O=>{console.log(O),f&&y(f)}).catch(O=>{console.log("Form submit error",O),k(!1),A(O)})};return $.jsxs($.Fragment,{children:[E&&$.jsx(ue.Alert,{message:`An error has occurred: ${E?.response?.data?.message} `,type:"error"}),$.jsx(Mv.BorderRadiusContainer,{children:$.jsx(cc,{defaultLanguage:"yaml",width:"100%",height:"75vh",value:g,onChange:R=>{d(R||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Button,{type:"primary",onClick:w,loading:v,children:"Submit"})]})},Ft=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)},Vv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g,customProps:d,urlParams:v})=>{const{clusterName:k,namespace:E,syntheticProject:A,entryName:w}=v,R=ue.Form.useFormInstance(),L=ue.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,R),T=qt({template:d.valueUri,replaceValues:{clusterName:k,namespace:E,syntheticProject:A,entryName:w}}),{data:x,isError:I,isLoading:O}=vn({uri:T,refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T});if(O)return $.jsx("div",{children:"Loading"});if(I)return $.jsx("div",{children:"Error"});const D=yt.get(x,["items"]),K=d.criteria?D.filter(ge=>{const he=yt.get(ge,d.criteria?.keysToValue||[]);return d.criteria?.type==="equals"?he===d.criteria?.value:he!==d.criteria?.value}):D,ie=d.criteria?.keepPrefilled!==!1?D.find(ge=>yt.get(ge,d.keysToValue)===L):void 0,ce=ie?[ie,...K]:K,ye=(Array.isArray(ce)?ce.map(ge=>({value:yt.get(ge,d.keysToValue),label:d.keysToLabel?yt.get(ge,d.keysToLabel):yt.get(ge,d.keysToValue)})).map(({value:ge,label:he})=>({label:typeof he=="string"?he:JSON.stringify(he),value:typeof ge=="string"?ge:JSON.stringify(ge)})):[]).reduce((ge,he)=>(ge.some(Ie=>Ie.value===he.value)||ge.push(he),ge),[]),we=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return $.jsxs(jn,{$isHidden:u,children:[$.jsxs(ue.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),l&&$.jsxs(ue.Tooltip,{title:l,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),f&&$.jsx(Mr,{type:"secondary",onClick:()=>y({path:e}),children:"Удалить"}),$.jsx(ci,{formName:i||e,persistedControls:g,type:"arr"})]}),$.jsx(Sr,{name:n||we,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Select,{mode:d.mode,placeholder:"Select",options:ye,filterOption:Zu,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},dr=({valueObj:e,keysToValue:t,logic:n})=>{const i=yt.get(e,t);return n==="cpuLike"?ec(i):tc(i)},Gp=({value:e})=>Number(e.toFixed(1)),Jp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},Yp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},qv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:y,maxAddSecondValueObj:g,logic:d})=>{let v=0,k=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const E=dr({valueObj:t,keysToValue:e.min.keysToValue,logic:d});v=Gp({value:E})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const E=dr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:d}),A=dr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:d});v=Jp({valueFirst:E,valueSecond:A})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const E=dr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:d}),A=dr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:d});v=Yp({valueFirst:E,valueSecond:A})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const E=dr({valueObj:u,keysToValue:e.max.keysToValue,logic:d});k=Gp({value:E})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const E=dr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:d}),A=dr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:d});k=Jp({valueFirst:E,valueSecond:A})}if(e.max.type==="addResourceValues"&&typeof y=="object"&&y!==null&&typeof g=="object"&&g!==null){const E=dr({valueObj:y,keysToValue:e.max.firstValuesKeysToValue,logic:d}),A=dr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:d});k=Yp({valueFirst:E,valueSecond:A})}return e.max.type==="number"&&(k=e.max.value),{minValue:v,maxValue:k}},Wv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,initialValue:y,max:g,min:d,step:v=1,...k})=>{const[E,A]=re.useState(y||d);return re.useEffect(()=>{(Number.isNaN(E)||E<d)&&A(d),E>g&&A(g),A(E)},[E,d,g]),$.jsxs(jn,{$isHidden:u,children:[$.jsxs(ue.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),f&&$.jsxs(ue.Tooltip,{title:f,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),$.jsx(ci,{formName:i||e,persistedControls:l,type:"number"})]}),$.jsxs(ue.Row,{children:[$.jsxs(ue.Col,{span:12,children:[$.jsx(Sr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Slider,{min:d,max:g,step:v,...k})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),$.jsx(ue.Typography.Text,{children:$.jsxs(ue.Flex,{justify:"space-between",children:[$.jsx("span",{children:d}),$.jsx("span",{children:g})]})})]}),$.jsx(ue.Col,{span:4,children:$.jsx(Sr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.InputNumber,{min:d,max:g,step:v,value:E,disabled:k.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},Kv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:y,customProps:g,urlParams:d})=>{const{clusterName:v,namespace:k,syntheticProject:E,entryName:A}=d,w=f?g.edit:g.add,R=w.min.type==="resourceValue"?qt({template:w.min.valueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,L=w.min.type==="substractResourceValues"?qt({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,T=w.min.type==="substractResourceValues"?qt({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,x=w.min.type==="addResourceValues"?qt({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,I=w.min.type==="addResourceValues"?qt({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,O=w.max.type==="resourceValue"?qt({template:w.max.valueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,D=w.max.type==="substractResourceValues"?qt({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,K=w.max.type==="substractResourceValues"?qt({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,ie=w.max.type==="addResourceValues"?qt({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,ce=w.max.type==="addResourceValues"?qt({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:k,syntheticProject:E,entryName:A}}):void 0,{data:fe,isError:ye,isLoading:we}=vn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:ge,isError:he,isLoading:Re}=vn({uri:L||"",refetchInterval:!1,queryKey:[L||"",JSON.stringify(e)],isEnabled:!!L}),{data:Ie,isError:Te,isLoading:We}=vn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:Xe,isError:Ee,isLoading:wt}=vn({uri:x||"",refetchInterval:!1,queryKey:[x||"",JSON.stringify(e)],isEnabled:!!x}),{data:G,isError:Y,isLoading:oe}=vn({uri:I||"",refetchInterval:!1,queryKey:[I||"",JSON.stringify(e)],isEnabled:!!I}),{data:xe,isError:Ke,isLoading:Se}=vn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Fe,isError:je,isLoading:Le}=vn({uri:D||"",refetchInterval:!1,queryKey:[D||"",JSON.stringify(e)],isEnabled:!!D}),{data:Tt,isError:sn,isLoading:Nt}=vn({uri:K||"",refetchInterval:!1,queryKey:[K||"",JSON.stringify(e)],isEnabled:!!K}),{data:Lt,isError:ve,isLoading:Ce}=vn({uri:ie||"",refetchInterval:!1,queryKey:[ie||"",JSON.stringify(e)],isEnabled:!!ie}),{data:qe,isError:kt,isLoading:ht}=vn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{minValue:Et,maxValue:de}=qv({minMaxAndStep:w,minValueObj:fe,minSubstractFirstValueObj:ge,minSubstractSecondValueObj:Ie,minAddFirstValueObj:Xe,minAddSecondValueObj:G,maxValueObj:xe,maxSubstractFirstValueObj:Fe,maxSubstractSecondValueObj:Tt,maxAddFirstValueObj:Lt,maxAddSecondValueObj:qe,logic:g.logic}),Qe=f?g.edit.step:g.add.step;return w.min.type==="resourceValue"&&we||w.min.type==="substractResourceValues"&&(Re||We)||w.min.type==="addResourceValues"&&(wt||oe)||w.max.type==="resourceValue"&&Se||w.max.type==="substractResourceValues"&&(Le||Nt)||w.max.type==="addResourceValues"&&(Ce||ht)?$.jsx("div",{children:"Loading"}):w.min.type==="resourceValue"&&ye||w.min.type==="substractResourceValues"&&(he||Te)||w.min.type==="addResourceValues"&&(Ee||Y)||w.max.type==="resourceValue"&&Ke||w.max.type==="substractResourceValues"&&(je||sn)||w.max.type==="addResourceValues"&&(ve||kt)?$.jsx("div",{children:"Error"}):$.jsx(Wv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:Et,max:de,step:Qe,persistedControls:y})},Hv=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>n?$.jsxs(jn,{$isHidden:t,children:[$.jsxs(ue.Typography.Text,{children:["namespace",$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),i&&$.jsx(Mr,{type:"secondary",onClick:()=>o({path:e}),children:"Удалить"})]}),$.jsx(Sr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null,zv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g})=>{const d=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return $.jsxs(jn,{$isHidden:u,children:[$.jsxs(ue.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),l&&$.jsxs(ue.Tooltip,{title:l,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),f&&$.jsx(Mr,{type:"secondary",onClick:()=>y({path:e}),children:"Удалить"}),$.jsx(ci,{formName:i||e,persistedControls:g,type:"str"})]}),$.jsx(Sr,{name:n||d,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:$.jsx(ue.Input,{placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},Gv=Ct.div`
|
|
410
410
|
display: flex;
|
|
411
411
|
`,Jv=Ct.div`
|
|
412
412
|
margin-left: 8px;
|
|
@@ -430,5 +430,5 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
430
430
|
margin-top: 5px;
|
|
431
431
|
`,iA=Ct.div`
|
|
432
432
|
min-height: 80vh;
|
|
433
|
-
`,Zs={ResetedFormList:tA,ContainerWithRemoveButton:nA,MinusContainer:rA,Container:eA,DebugContainer:iA},Qp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:y,removeField:g,persistedControls:d})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?$.jsx(Hv,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:y,removeField:g}):$.jsx(zv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:y,removeField:g,persistedControls:d}),sA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,options:g,persistedControls:d})=>$.jsx(Xv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,options:g,persistedControls:d}),Zp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:y,removeField:g,persistedControls:d})=>$.jsx(Qv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:y,removeField:g,persistedControls:d}),ed=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:y,customProps:g,urlParams:d})=>$.jsx(Kv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:y,urlParams:d}),td=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g,customProps:d,urlParams:v})=>$.jsx(Vv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g,customProps:d,urlParams:v}),nd=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>$.jsx(Yv,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l}),rd=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:y,makeValueUndefined:g,addField:d,isAdditionalProperties:v,removeField:k,isEdit:A,expandedControls:E,persistedControls:w,urlParams:P})=>e.type==="array"?$.jsxs(jn,{$isHidden:f,children:[$.jsxs(ue.Typography.Text,{children:[Ft(t),u?.includes(Ft(t))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),y&&$.jsxs(ue.Tooltip,{title:y,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),v&&$.jsx(Mr,{type:"secondary",onClick:()=>k({path:t}),children:"Удалить"}),$.jsx(ci,{formName:a||t,persistedControls:w,type:"arr"})]}),$.jsx(Zs.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ft(t))?[{validator:async(L,T)=>{if(!T||T.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(L,{add:T,remove:x},{errors:I})=>$.jsxs($.Fragment,{children:[L.map(O=>{const D=e.items?.type,K=e.items?.description,ie=e.items;return $.jsxs(Zs.ContainerWithRemoveButton,{children:[$.jsxs("div",{children:[D!=="object"&&$.jsxs($.Fragment,{children:[D==="string"&&Qp({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:K,removeField:k,persistedControls:w}),(D==="number"||D==="integer")&&Zp({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:K,removeField:k,persistedControls:w}),(D==="rangeInputCpu"||D==="rangeInputMemory")&&ed({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:K,isEdit:A,persistedControls:w,customProps:e.items.customProps,urlParams:P}),D==="listInput"&&td({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:K,removeField:k,persistedControls:w,customProps:e.items.customProps,urlParams:P}),D==="boolean"&&nd({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:K,makeValueUndefined:g,removeField:k}),D==="array"&&rd({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:K,makeValueUndefined:g,addField:d,removeField:k,isEdit:A,expandedControls:E,persistedControls:w,urlParams:P})]}),D==="object"&&ie?.properties&&id({properties:ie.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:ie.required,forceNonRequired:l,description:K,makeValueUndefined:g,addField:d,isAdditionalProperties:v,removeField:k,isEdit:A,expandedControls:E,persistedControls:w,urlParams:P})]}),$.jsx(Zs.MinusContainer,{children:$.jsx(Qt.MinusCircleOutlined,{size:14,onClick:()=>x(O.name)})})]},O.key)}),$.jsxs(ue.Form.Item,{children:[$.jsx(ue.Button,{type:"dashed",onClick:()=>T(),icon:$.jsx(Qt.PlusOutlined,{}),children:"Add"}),$.jsx(ue.Form.ErrorList,{errors:I})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,ba=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:y,description:g,namespaceData:d,makeValueUndefined:v,addField:k,removeField:A,isEdit:E,expandedControls:w,persistedControls:P,urlParams:L})=>$.jsx(jn,{$isHidden:f,children:Object.keys(e).map(T=>{if(e[T].type==="string"&&e[T].enum)return sA({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:A,persistedControls:P,options:e[T].enum||[]});if(e[T].type==="string"&&!e[T].enum||Object.keys(e[T]).includes("x-kubernetes-int-or-string"))return Qp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,namespaceData:d,isAdditionalProperties:e[T].isAdditionalProperties,removeField:A,persistedControls:P});if(e[T].type==="number"||e[T].type==="integer")return Zp({isNumber:e[T].type==="number",name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:A,persistedControls:P});if(e[T].type==="rangeInputCpu"||e[T].type==="rangeInputMemory")return ed({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,isEdit:E,customProps:e[T].customProps,persistedControls:P,urlParams:L});if(e[T].type==="listInput")return td({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,customProps:e[T].customProps,removeField:A,persistedControls:P,urlParams:L});if(e[T].type==="boolean")return nd({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,makeValueUndefined:v,isAdditionalProperties:e[T].isAdditionalProperties,removeField:A});if(e[T].type==="array")return rd({schema:e[T],name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,makeValueUndefined:v,addField:k,isAdditionalProperties:e[T].isAdditionalProperties,removeField:A,isEdit:E,expandedControls:w,persistedControls:P,urlParams:L});if(e[T].additionalProperties){const x=e[T].properties?ba({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:e[T].required,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),hiddenPaths:y,description:e[T].description,namespaceData:d,makeValueUndefined:v,addField:k,removeField:A,isEdit:E,expandedControls:w,persistedControls:P,urlParams:L}):void 0;return $.jsx(jn,{$isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),children:$.jsxs(jh,{title:$.jsxs(ue.Typography.Text,{children:[T,g&&$.jsxs(ue.Tooltip,{title:g,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]})]}),formName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],expandedControls:w,children:[$.jsx(ue.Input.Search,{placeholder:"Введите имя поля",allowClear:!0,enterButton:"Добавить",onSearch:I=>{if(I.length>0){const O=e[T]?.additionalProperties;k({path:Array.isArray(t)?[...t,String(T)]:[t,String(T)],name:I,type:O.type,items:O.items,nestedProperties:O.properties||{},required:O.required})}}}),x]})},Array.isArray(t)?[...t,String(T)].join("-"):[t,String(T)].join("-"))}return e[T].type==="object"&&e[T].properties?id({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,selfRequired:u?.includes(T),required:e[T].required,forceNonRequired:l||!u?.includes(T),isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),hiddenPaths:y,description:e[T].description,namespaceData:d,makeValueUndefined:v,addField:k,isAdditionalProperties:e[T].isAdditionalProperties,removeField:A,isEdit:E,expandedControls:w,persistedControls:P,urlParams:L}):e[T].type==="object"&&e[T]["x-kubernetes-preserve-unknown-fields"]?$.jsx(ue.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(T)):null})}),id=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:y,hiddenPaths:g,description:d,namespaceData:v,makeValueUndefined:k,addField:A,isAdditionalProperties:E,removeField:w,isEdit:P,expandedControls:L,persistedControls:T,urlParams:x})=>{const I=ba({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:y,hiddenPaths:g,description:d,namespaceData:v,makeValueUndefined:k,addField:A,removeField:w,isEdit:P,expandedControls:L,persistedControls:T,urlParams:x});return $.jsx(jn,{$isHidden:y,children:$.jsx(jh,{title:$.jsxs(ue.Typography.Text,{children:[Ft(t),u&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),d&&$.jsxs(ue.Tooltip,{title:d,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),E&&$.jsx(Mr,{type:"secondary",onClick:()=>w({path:t}),children:"Удалить"}),$.jsx(ci,{formName:a||t,persistedControls:T,type:"obj"})]}),formName:o||t,expandedControls:L,children:$.jsx("div",{style:{marginLeft:"20px"},children:I})},Array.isArray(t)?t.join("-"):t)})},sd=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))},oA=re.lazy(()=>Promise.resolve().then(()=>Tw)),od=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:y,prefillValuesSchema:g,prefillValueNamespaceOnly:d,isNameSpaced:v,isCreate:k,type:A,apiGroupApiVersion:E,kindName:w,typeName:P,backlink:L})=>{const T=wr.useNavigate(),[x]=ue.Form.useForm(),I=ue.Form.useWatch(["metadata","namespace"],x),[O,D]=re.useState(a),[K,ie]=re.useState(),ce=pb(ie,500),[fe,ye]=re.useState(!1),[we,ge]=re.useState(),[he,Re]=re.useState(!1),[Ie,Te]=re.useState(f||[]),[We,Xe]=re.useState(y||[]),[Ee,wt]=re.useState(!1),G=Qu({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?I:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:k===!0}),Y=Qu({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?I:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:k!==!0}),oe=()=>{x.validateFields().then(()=>{ye(!0),ge(void 0);const ve=x.getFieldsValue(),Ce=Bs(ve,We),qe=Vi(Ce),ht=Jo(qe,O),{namespace:Et}=Ce.metadata,de=`/api/clusters/${e}/k8s/${A==="builtin"?"":"apis/"}${E}${v?`/namespaces/${Et}`:""}/${P}/${k?"":Ce.metadata.name}`;k?Ku({endpoint:de,body:ht}).then(Qe=>{console.log(Qe),L&&T(L)}).catch(Qe=>{if(console.log("Form submit error",Qe),ye(!1),mh(Qe)&&Qe.response?.data.message.includes("Required value")){const it=(Qe.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Mt=Array.from({length:it.length},(_,p)=>it.slice(0,p+1)),ke=[...Ie,...Mt],Be=new Set,$t=ke.filter(_=>{const p=Array.isArray(_)?JSON.stringify(_):_;return Be.has(p)?!1:(Be.add(p),!0)});Te([...$t])}ge(Qe)}):Hu({endpoint:de,body:ht}).then(Qe=>{console.log(Qe),L&&T(L)}).catch(Qe=>{if(console.log("Form submit error",Qe),ye(!1),mh(Qe)&&Qe.response?.data.message.includes("Required value")){const it=(Qe.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Mt=Array.from({length:it.length},(_,p)=>it.slice(0,p+1)),ke=[...Ie,...Mt],Be=new Set,$t=ke.filter(_=>{const p=Array.isArray(_)?JSON.stringify(_):_;return Be.has(p)?!1:(Be.add(p),!0)});Te([...$t])}ge(Qe)})}).catch(ve=>{console.log("Validating error",ve);const Ce=ve.errorFields.reduce((St,it)=>[...St,it.name],[]),kt=Ce.filter(St=>Array.isArray(St)).flatMap(St=>Array.from({length:St.length},(it,Mt)=>St.slice(0,Mt+1))),ht=Ce.filter(St=>!Array.isArray(St)),Et=[...Ie,...ht,...kt],de=new Set,Qe=Et.filter(St=>{const it=Array.isArray(St)?JSON.stringify(St):St;return de.has(it)?!1:(de.add(it),!0)});Te([...Qe])})},xe=re.useCallback(()=>{const ve=x.getFieldsValue(),Ce=Bs(ve,We),qe=Vi(Ce),ht=Jo(qe,O);ce(ht)},[x,ce,O,We]),Ke=ve=>{const Ce=Go(ve),qe=nc(Ce,O);Ce&&x.setFieldsValue(qe)};if(re.useEffect(()=>{const ve=A==="apis"?`${E}/${P}`:`v1/${P}`,Ce=o?.items.find(qe=>typeof qe=="object"&&!Array.isArray(qe)&&qe!==null&&qe.spec&&typeof qe.spec=="object"&&!Array.isArray(qe.spec)&&qe.spec!==null&&typeof qe.spec.overrideType=="string"&&qe.spec.overrideType===ve);if(sd(Ce)&&Ce.spec.values.forEach(({path:qe,value:kt})=>{x.setFieldValue(qe,kt)}),g){const qe=nc(g,O);x.setFieldsValue(qe)}xe()},[g,x,o,A,E,P,xe,O]),re.useEffect(()=>{let ve=[];const Ce=A==="apis"?`${E}/${P}`:`v1/${P}`,qe=o?.items.find(de=>typeof de=="object"&&!Array.isArray(de)&&de!==null&&de.spec&&typeof de.spec=="object"&&!Array.isArray(de.spec)&&de.spec!==null&&typeof de.spec.overrideType=="string"&&de.spec.overrideType===Ce);sd(qe)&&(ve=qe.spec.values.flatMap(({path:de})=>$h(de))),g&&typeof g=="object"&&g!==null&&(ve=[...ve,...rc(g)]);const kt=[...Ie,...ve],ht=new Set,Et=kt.filter(de=>{const Qe=Array.isArray(de)?JSON.stringify(de):de;return ht.has(Qe)?!1:(ht.add(Qe),!0)});Te([...Et])},[E,o,g,A,P]),re.useEffect(()=>{d&&x.setFieldValue(["metadata","namespace"],d),xe()},[d,xe,x]),re.useEffect(()=>{k&&x.setFieldsValue({apiVersion:E==="api/v1"?"v1":E,kind:w}),xe()},[k,w,E,xe,x]),re.useEffect(()=>{const ve=x.getFieldsValue(),Ce=Bs(ve,We),qe=Vi(Ce),ht=Jo(qe,O);ce(ht)},[ce,O,x,We]),re.useEffect(()=>{xe()},[O,xe]),!O)return null;const Se=v?{filterSelectOptions:Zu,selectValues:v.map(ve=>({label:ve,value:ve})),disabled:!!d}:void 0,Fe=ve=>{x.setFieldValue(ve,void 0),xe()},je=({path:ve,name:Ce,type:qe,items:kt,nestedProperties:ht,required:Et})=>{const Qe=(Array.isArray(ve)?ve:[ve]).reduceRight((Mt,ke)=>({[ke]:{properties:Mt}}),{[Ce]:{type:qe,items:kt,properties:ht,required:Et,isAdditionalProperties:!0}}),St=yt.cloneDeep(O),it=yt.merge(St,Qe);console.log("newObject",Qe),console.log("newProperties",it),D(it)},Le=({path:ve})=>{const qe=(Array.isArray(ve)?ve:[ve]).flatMap(ht=>[ht,"properties"]).slice(0,-1),kt=yt.cloneDeep(O);yt.unset(kt,qe),D(kt)},Tt=ve=>{Te([...Ie,ve])},sn=ve=>{Te([...Ie.filter(Ce=>JSON.stringify(Ce)!==JSON.stringify(ve))])},Nt=(ve,Ce)=>{Ce&&x.getFieldValue(ve)===void 0&&(Ce==="str"&&x.setFieldValue(ve,""),Ce==="number"&&x.setFieldValue(ve,0),Ce==="arr"&&x.setFieldValue(ve,[]),Ce==="obj"&&x.setFieldValue(ve,{})),Xe([...We,ve])},Lt=ve=>{console.log(ve),Xe([...We.filter(Ce=>JSON.stringify(Ce)!==JSON.stringify(ve))])};return $.jsxs(Zs.Container,{children:[$.jsx("div",{children:$.jsxs(ue.Form,{form:x,onValuesChange:xe,children:[ba({properties:O,name:[],required:u,hiddenPaths:l,namespaceData:Se,makeValueUndefined:Fe,addField:je,removeField:Le,isEdit:!k,expandedControls:{onExpandOpen:Tt,onExpandClose:sn,expandedKeys:Ie},persistedControls:{onPersistMark:Nt,onPersistUnmark:Lt,persistedKeys:We,isPersistedKeysShown:Ee},urlParams:n}),$.jsxs("div",{children:["Show persisted checkboxes:"," ",$.jsx(ue.Switch,{value:Ee,onChange:ve=>wt(ve),size:"small"})]}),$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Alert,{type:"warning",message:"Будут отправлены только данные из формы. Пустые поля будут удалены рекурсивно"}),k&&G.data?.status.allowed===!1&&$.jsxs($.Fragment,{children:[$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Alert,{type:"warning",message:"Недостаточно прав для создания"})]}),!k&&Y.data?.status.allowed===!1&&$.jsxs($.Fragment,{children:[$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Alert,{type:"warning",message:"Недостаточно прав для редактирования"})]}),$.jsx($r,{$space:12,$samespace:!0}),we&&$.jsxs($.Fragment,{children:[$.jsx($r,{$space:16,$samespace:!0}),$.jsx(ue.Alert,{message:`An error has occurred: ${we?.response?.data?.message} `,type:"error"}),$.jsx($r,{$space:16,$samespace:!0})]}),$.jsxs(ue.Flex,{gap:16,children:[$.jsx(Sr,{children:$.jsx(ue.Button,{type:"primary",onClick:oe,loading:fe,children:"Submit"})}),L&&$.jsx(ue.Button,{onClick:()=>T(L),children:"Cancel"}),$.jsx(ue.Button,{onClick:()=>Re(!0),icon:$.jsx(Qt.BugOutlined,{})})]})]})}),$.jsx("div",{children:$.jsx(jv,{theme:t,currentValues:K||{},onChange:Ke})}),he&&$.jsx(ue.Modal,{open:he,onOk:()=>Re(!1),onCancel:()=>Re(!1),onClose:()=>Re(!1),title:"Debug for properties",width:"90vw",children:$.jsx(Zs.DebugContainer,{children:$.jsx(re.Suspense,{fallback:$.jsx("div",{children:"Loading..."}),children:$.jsx(oA,{defaultLanguage:"json",width:"100%",height:"80vh",theme:"vs-dark",value:JSON.stringify(O,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},ad=({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&&ad({properties:e[i],currentPath:o,result:n})}),n),ud=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:ud({path:i,defaultValue:t})}},aA=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=yt.get(t,a.join("."))}catch{}if(u){const l=yt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(d=>{const v={[d]:{type:l,isAdditionalProperties:!0}},k=yt.cloneDeep(f);f.properties=yt.merge(k.properties,v)});const y=ud({path:o,defaultValue:f});return yt.merge(i,y)}return i},{}),cd=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},ld=({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}},Lc=({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}},fd=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")},hd=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Lc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=ld({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}},pd=({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}},dd=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(fd(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=yt.cloneDeep(t);u=yt.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=yt.cloneDeep(t);u=cd(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}},uA=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:y,backlink:g,modeData:d})=>{const[v,k]=re.useState(void 0),[A,E]=re.useState([]),[w,P]=re.useState([]),[L,T]=re.useState([]),[x,I]=re.useState([]),[O,D]=re.useState(""),[K,ie]=re.useState(!1),[ce,fe]=re.useState(!1),ye=re.useCallback(()=>{d&&(d.onChange("Manual"),d.onDisabled())},[d]);return re.useEffect(()=>{if(!a)return;const{swaggerPath:we,isNamespaced:ge}=hd({swagger:a,data:f});ge&&ie(!0);const{bodyParametersSchema:he,kindName:Re,error:Ie}=pd({swagger:a,swaggerPath:we});if(Ie){fe(Ie),console.log(Ie),ye();return}Re&&D(Re);const Te=ad({properties:he.properties}),We=aA({pathsWithAdditionalProperties:Te,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:he}),Xe=yt.cloneDeep(he.properties),Ee=yt.merge(Xe,We),wt=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,G=l?.items.find(Fe=>Fe.spec.overrideType===wt),{hiddenPaths:Y,expandedPaths:oe,persistedPaths:xe,propertiesToApply:Ke,requiredToApply:Se}=dd({specificCustomOverrides:G,newProperties:Ee,bodyParametersSchema:he});Y&&P(Y),oe&&T(oe),xe&&I(xe),Ke&&k(Ke),Se&&E(Se)},[a,f,ye,l]),d?.current==="Manual"?$.jsx(Uv,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:y,type:f.type,isNameSpaced:K?u?.items.map(we=>we.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g}):!v&&!ce?null:ce?$.jsx(ue.Alert,{message:ce,type:"error"}):$.jsx(od,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:v,required:A,hiddenPaths:w,expandedPaths:L,persistedPaths:x,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:y,type:f.type,isNameSpaced:K?u?.items.map(we=>we.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:O,typeName:f.typeName,backlink:g},JSON.stringify(v)+JSON.stringify(A)+JSON.stringify(w)+JSON.stringify(f))},gd=({items:e,components:t})=>$.jsx($.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return $.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);const a=n.children?$.jsx(gd,{items:n.children,components:t}):null;return $.jsx(re.Fragment,{children:$.jsx(o,{data:n.data,children:a})},i)})}),yd=e=>$.jsx(gd,{...e}),cA=({data:e})=>{const{id:t,text:n,...i}=e;return $.jsx(ue.Typography.Text,{...i,children:n})},lA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Card,{...i,children:t})},fA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Flex,{...i,children:t})},hA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Row,{...i,children:t})},pA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Col,{...i,children:t})},md=()=>{const e=re.createContext(null);return{Provider:({children:i,value:o})=>{const a=re.useMemo(()=>o,Object.values(o));return $.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=re.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},bd=md(),dA=bd.Provider,gA=bd.useTypedContext,yA={antdText:cA,antdCard:lA,partsOfUrl:({data:e})=>{const n=gA().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=qt({template:e.text,replaceValues:n});return $.jsx("span",{children:i})},antdFlex:fA,antdRow:hA,antdCol:pA},mA=e=>{const t=wr.useLocation();return $.jsx(dA,{value:{partsOfUrl:t.pathname.split("/")},children:$.jsx(yd,{...e})})},bA=e=>typeof e=="object"&&"value"in e&&"highlight"in e,wA=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 y=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let d=t[y]=t[y]||{};for(const v of g)d[v]=d[v]||{},d=d[v];d[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(bA(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}))},vA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),AA=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:y})=>y==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:y})=>!o.includes(y)&&!y.includes(".k8s.io")).sort((y,g)=>y.name.localeCompare(g.name)),l=t?.groups.filter(({name:y})=>o.includes(y)||y.includes(".k8s.io")).sort((y,g)=>y.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:y})=>Lc({typeName:y,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},EA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:y,entryName:g,apiExtensionVersion:d,crdName:v,pathname:k})=>e.map(({pathToMatch:E,pathToNavigate:w,keysToParse:P})=>({pathToMatch:E?qt({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:y,entryName:g,apiExtensionVersion:d,crdName:v}}):void 0,pathToNavigate:w?qt({template:w,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:y,entryName:g,apiExtensionVersion:d,crdName:v}}):void 0,keysToParse:P})).find(({pathToMatch:E})=>E?wr.matchPath(E,k):!1),wd=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"))),vd=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"))),Ad=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"))),Ed=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"))),SA=({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=wd(n)?n.spec.additionalPrinterColumns:void 0,o=vd(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Ad(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Ed(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},xA=async({clusterName:e})=>rt.get(`/api/clusters/${e}/k8s/openapi/v2`),Sd=async()=>rt.get("/clusterlist"),xd=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Cd=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),_d=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return rt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Td=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>rt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),kd=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Od=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Id=async({clusterName:e})=>rt.get(`/api/clusters/${e}/k8s/apis/`),Fd=async({clusterName:e,apiGroup:t,apiVersion:n})=>rt.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Bd=async({clusterName:e})=>rt.get(`/api/clusters/${e}/k8s/api/v1`),Dd=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>rt.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),CA=({refetchInterval:e})=>Cn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Sd()).data,refetchInterval:e!==void 0?e:5e3}),_A=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>Cn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>(await xd({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})).data,refetchInterval:u!==void 0?u:5e3}),TA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>Cn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Cd({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),kA=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>Cn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>(await _d({clusterName:e,namespace:t,typeName:n,limit:i})).data,refetchInterval:o!==void 0?o:5e3}),OA=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>Cn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Td({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),IA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>Cn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>(await kd({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})).data,refetchInterval:a!==void 0?a:5e3}),FA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>Cn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Od({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),BA=({clusterName:e})=>Cn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>(await Id({clusterName:e})).data,refetchInterval:5e3}),DA=({clusterName:e,apiGroup:t,apiVersion:n})=>Cn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>(await Fd({clusterName:e,apiGroup:t,apiVersion:n})).data,refetchInterval:5e3}),RA=({clusterName:e})=>Cn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>(await Bd({clusterName:e})).data,refetchInterval:5e3}),PA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>Cn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>(await Dd({clusterName:e,apiExtensionVersion:t,crdName:n})).data,refetchInterval:5e3});le.BlackholeForm=od,le.BlackholeFormDataProvider=uA,le.DeleteModal=O1,le.DeleteModalMany=I1,le.DynamicComponents=yA,le.DynamicRenderer=yd,le.DynamicRendererWithProviders=mA,le.EnrichedTable=Ih,le.EnrichedTableProvider=z1,le.ManageableBreadcrumbs=vh,le.ManageableBreadcrumbsWithDataProvider=B1,le.ManageableSidebar=Sh,le.ManageableSidebarWithDataProvider=P1,le.Spacer=$r,le.TreeWithSearch=am,le.checkIfApiInstanceNamespaceScoped=ld,le.checkIfBuiltInInstanceNamespaceScoped=Lc,le.checkPermission=Lh,le.createContextFactory=md,le.createNewEntry=Ku,le.deleteEntry=zu,le.filterSelectOptions=Zu,le.floorToDecimal=Ds,le.getAllPathsFromObj=rc,le.getApiResourceSingle=Cd,le.getApiResourceTypes=Id,le.getApiResourceTypesByApiGroup=Fd,le.getApiResources=xd,le.getBodyParametersSchema=pd,le.getBuiltinResourceSingle=Td,le.getBuiltinResourceTypes=Bd,le.getBuiltinResources=_d,le.getBuiltinTreeData=vA,le.getClusterList=Sd,le.getCrdData=Dd,le.getCrdResourceSingle=Od,le.getCrdResources=kd,le.getDirectUnknownResource=bh,le.getEnrichedColumns=kh,le.getEnrichedColumnsWithControls=Oh,le.getGroupsByCategory=AA,le.getObjectFormItemsDraft=ba,le.getPrefixSubarrays=$h,le.getStringByName=Ft,le.getSwagger=xA,le.getSwaggerPathAndIsNamespaceScoped=hd,le.groupsToTreeData=wA,le.isFlatObject=Th,le.isFormOverride=fd,le.isWithAdditionalPrinterColumns=wd,le.isWithAdditionalPrinterColumnsColWidths=Ed,le.isWithAdditionalPrinterColumnsTrimLengths=Ad,le.isWithAdditionalPrinterColumnsUndefinedValues=vd,le.normalizeValuesForQuotas=Jo,le.normalizeValuesForQuotasToNumber=nc,le.overwriteMatchingKeys=cd,le.parseCustomOverrides=SA,le.parseQuotaValue=db,le.parseQuotaValueCpu=ec,le.parseQuotaValueMemoryAndStorage=tc,le.prepareDataForEnrichedColumns=Dh,le.prepareDataForManageableBreadcrumbs=wh,le.prepareDataForManageableSidebar=Eh,le.prepareTableMappings=EA,le.prepareTemplate=qt,le.processOverride=dd,le.removeEmptyFormValues=Bs,le.renameBrokenFieldBack=Vi,le.renameBrokenFieldBackToFormAgain=Go,le.updateEntry=Hu,le.useApiResourceSingle=TA,le.useApiResourceTypesByGroup=DA,le.useApiResources=_A,le.useApisResourceTypes=BA,le.useBuiltinResourceSingle=OA,le.useBuiltinResourceTypes=RA,le.useBuiltinResources=kA,le.useClusterList=CA,le.useCrdData=PA,le.useCrdResourceSingle=FA,le.useCrdResources=IA,le.useDirectUnknownResource=vn,le.usePermissions=Qu,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});
|
|
433
|
+
`,Zs={ResetedFormList:tA,ContainerWithRemoveButton:nA,MinusContainer:rA,Container:eA,DebugContainer:iA},Qp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:y,removeField:g,persistedControls:d})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?$.jsx(Hv,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:y,removeField:g}):$.jsx(zv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:y,removeField:g,persistedControls:d}),sA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,options:g,persistedControls:d})=>$.jsx(Xv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,options:g,persistedControls:d}),Zp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:y,removeField:g,persistedControls:d})=>$.jsx(Qv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:y,removeField:g,persistedControls:d}),ed=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:y,customProps:g,urlParams:d})=>$.jsx(Kv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:y,urlParams:d}),td=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g,customProps:d,urlParams:v})=>$.jsx(Vv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:y,persistedControls:g,customProps:d,urlParams:v}),nd=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>$.jsx(Yv,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l}),rd=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:y,makeValueUndefined:g,addField:d,isAdditionalProperties:v,removeField:k,isEdit:E,expandedControls:A,persistedControls:w,urlParams:R})=>e.type==="array"?$.jsxs(jn,{$isHidden:f,children:[$.jsxs(ue.Typography.Text,{children:[Ft(t),u?.includes(Ft(t))&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),y&&$.jsxs(ue.Tooltip,{title:y,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),v&&$.jsx(Mr,{type:"secondary",onClick:()=>k({path:t}),children:"Удалить"}),$.jsx(ci,{formName:a||t,persistedControls:w,type:"arr"})]}),$.jsx(Zs.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ft(t))?[{validator:async(L,T)=>{if(!T||T.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(L,{add:T,remove:x},{errors:I})=>$.jsxs($.Fragment,{children:[L.map(O=>{const D=e.items?.type,K=e.items?.description,ie=e.items;return $.jsxs(Zs.ContainerWithRemoveButton,{children:[$.jsxs("div",{children:[D!=="object"&&$.jsxs($.Fragment,{children:[D==="string"&&Qp({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:K,removeField:k,persistedControls:w}),(D==="number"||D==="integer")&&Zp({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:K,removeField:k,persistedControls:w}),(D==="rangeInputCpu"||D==="rangeInputMemory")&&ed({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:K,isEdit:E,persistedControls:w,customProps:e.items.customProps,urlParams:R}),D==="listInput"&&td({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:K,removeField:k,persistedControls:w,customProps:e.items.customProps,urlParams:R}),D==="boolean"&&nd({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:K,makeValueUndefined:g,removeField:k}),D==="array"&&rd({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:K,makeValueUndefined:g,addField:d,removeField:k,isEdit:E,expandedControls:A,persistedControls:w,urlParams:R})]}),D==="object"&&ie?.properties&&id({properties:ie.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:ie.required,forceNonRequired:l,description:K,makeValueUndefined:g,addField:d,isAdditionalProperties:v,removeField:k,isEdit:E,expandedControls:A,persistedControls:w,urlParams:R})]}),$.jsx(Zs.MinusContainer,{children:$.jsx(Qt.MinusCircleOutlined,{size:14,onClick:()=>x(O.name)})})]},O.key)}),$.jsxs(ue.Form.Item,{children:[$.jsx(ue.Button,{type:"dashed",onClick:()=>T(),icon:$.jsx(Qt.PlusOutlined,{}),children:"Add"}),$.jsx(ue.Form.ErrorList,{errors:I})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,ba=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:y,description:g,namespaceData:d,makeValueUndefined:v,addField:k,removeField:E,isEdit:A,expandedControls:w,persistedControls:R,urlParams:L})=>$.jsx(jn,{$isHidden:f,children:Object.keys(e).map(T=>{if(e[T].type==="string"&&e[T].enum)return sA({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:E,persistedControls:R,options:e[T].enum||[]});if(e[T].type==="string"&&!e[T].enum||Object.keys(e[T]).includes("x-kubernetes-int-or-string"))return Qp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,namespaceData:d,isAdditionalProperties:e[T].isAdditionalProperties,removeField:E,persistedControls:R});if(e[T].type==="number"||e[T].type==="integer")return Zp({isNumber:e[T].type==="number",name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:E,persistedControls:R});if(e[T].type==="rangeInputCpu"||e[T].type==="rangeInputMemory")return ed({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,isEdit:A,customProps:e[T].customProps,persistedControls:R,urlParams:L});if(e[T].type==="listInput")return td({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,customProps:e[T].customProps,removeField:E,persistedControls:R,urlParams:L});if(e[T].type==="boolean")return nd({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,makeValueUndefined:v,isAdditionalProperties:e[T].isAdditionalProperties,removeField:E});if(e[T].type==="array")return rd({schema:e[T],name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),description:e[T].description,makeValueUndefined:v,addField:k,isAdditionalProperties:e[T].isAdditionalProperties,removeField:E,isEdit:A,expandedControls:w,persistedControls:R,urlParams:L});if(e[T].additionalProperties){const x=e[T].properties?ba({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:e[T].required,forceNonRequired:l,isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),hiddenPaths:y,description:e[T].description,namespaceData:d,makeValueUndefined:v,addField:k,removeField:E,isEdit:A,expandedControls:w,persistedControls:R,urlParams:L}):void 0;return $.jsx(jn,{$isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),children:$.jsxs(jh,{title:$.jsxs(ue.Typography.Text,{children:[T,g&&$.jsxs(ue.Tooltip,{title:g,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]})]}),formName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],expandedControls:w,children:[$.jsx(ue.Input.Search,{placeholder:"Введите имя поля",allowClear:!0,enterButton:"Добавить",onSearch:I=>{if(I.length>0){const O=e[T]?.additionalProperties;k({path:Array.isArray(t)?[...t,String(T)]:[t,String(T)],name:I,type:O.type,items:O.items,nestedProperties:O.properties||{},required:O.required})}}}),x]})},Array.isArray(t)?[...t,String(T)].join("-"):[t,String(T)].join("-"))}return e[T].type==="object"&&e[T].properties?id({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,selfRequired:u?.includes(T),required:e[T].required,forceNonRequired:l||!u?.includes(T),isHidden:gr(y,Array.isArray(t)?[...t,String(T)]:[t,String(T)]),hiddenPaths:y,description:e[T].description,namespaceData:d,makeValueUndefined:v,addField:k,isAdditionalProperties:e[T].isAdditionalProperties,removeField:E,isEdit:A,expandedControls:w,persistedControls:R,urlParams:L}):e[T].type==="object"&&e[T]["x-kubernetes-preserve-unknown-fields"]?$.jsx(ue.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(T)):null})}),id=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:y,hiddenPaths:g,description:d,namespaceData:v,makeValueUndefined:k,addField:E,isAdditionalProperties:A,removeField:w,isEdit:R,expandedControls:L,persistedControls:T,urlParams:x})=>{const I=ba({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:y,hiddenPaths:g,description:d,namespaceData:v,makeValueUndefined:k,addField:E,removeField:w,isEdit:R,expandedControls:L,persistedControls:T,urlParams:x});return $.jsx(jn,{$isHidden:y,children:$.jsx(jh,{title:$.jsxs(ue.Typography.Text,{children:[Ft(t),u&&$.jsx(ue.Typography.Text,{type:"danger",children:"*"}),d&&$.jsxs(ue.Tooltip,{title:d,children:[" ",$.jsx(Qt.QuestionCircleOutlined,{})]}),A&&$.jsx(Mr,{type:"secondary",onClick:()=>w({path:t}),children:"Удалить"}),$.jsx(ci,{formName:a||t,persistedControls:T,type:"obj"})]}),formName:o||t,expandedControls:L,children:$.jsx("div",{style:{marginLeft:"20px"},children:I})},Array.isArray(t)?t.join("-"):t)})},sd=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))},oA=re.lazy(()=>Promise.resolve().then(()=>Tw)),od=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:y,prefillValuesSchema:g,prefillValueNamespaceOnly:d,isNameSpaced:v,isCreate:k,type:E,apiGroupApiVersion:A,kindName:w,typeName:R,backlink:L})=>{const T=wr.useNavigate(),[x]=ue.Form.useForm(),I=ue.Form.useWatch(["metadata","namespace"],x),[O,D]=re.useState(a),[K,ie]=re.useState(),ce=pb(ie,500),[fe,ye]=re.useState(!1),[we,ge]=re.useState(),[he,Re]=re.useState(!1),[Ie,Te]=re.useState(f||[]),[We,Xe]=re.useState(y||[]),[Ee,wt]=re.useState(!1),G=Qu({apiGroup:E==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?I:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:k===!0}),Y=Qu({apiGroup:E==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?I:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:k!==!0}),oe=()=>{x.validateFields().then(()=>{ye(!0),ge(void 0);const ve=x.getFieldsValue(),Ce=Bs(ve,We),qe=Vi(Ce),ht=Jo(qe,O),{namespace:Et}=Ce.metadata,de=`/api/clusters/${e}/k8s/${E==="builtin"?"":"apis/"}${A}${v?`/namespaces/${Et}`:""}/${R}/${k?"":Ce.metadata.name}`;k?Ku({endpoint:de,body:ht}).then(Qe=>{console.log(Qe),L&&T(L)}).catch(Qe=>{if(console.log("Form submit error",Qe),ye(!1),mh(Qe)&&Qe.response?.data.message.includes("Required value")){const it=(Qe.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Mt=Array.from({length:it.length},(_,p)=>it.slice(0,p+1)),ke=[...Ie,...Mt],Be=new Set,$t=ke.filter(_=>{const p=Array.isArray(_)?JSON.stringify(_):_;return Be.has(p)?!1:(Be.add(p),!0)});Te([...$t])}ge(Qe)}):Hu({endpoint:de,body:ht}).then(Qe=>{console.log(Qe),L&&T(L)}).catch(Qe=>{if(console.log("Form submit error",Qe),ye(!1),mh(Qe)&&Qe.response?.data.message.includes("Required value")){const it=(Qe.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Mt=Array.from({length:it.length},(_,p)=>it.slice(0,p+1)),ke=[...Ie,...Mt],Be=new Set,$t=ke.filter(_=>{const p=Array.isArray(_)?JSON.stringify(_):_;return Be.has(p)?!1:(Be.add(p),!0)});Te([...$t])}ge(Qe)})}).catch(ve=>{console.log("Validating error",ve);const Ce=ve.errorFields.reduce((St,it)=>[...St,it.name],[]),kt=Ce.filter(St=>Array.isArray(St)).flatMap(St=>Array.from({length:St.length},(it,Mt)=>St.slice(0,Mt+1))),ht=Ce.filter(St=>!Array.isArray(St)),Et=[...Ie,...ht,...kt],de=new Set,Qe=Et.filter(St=>{const it=Array.isArray(St)?JSON.stringify(St):St;return de.has(it)?!1:(de.add(it),!0)});Te([...Qe])})},xe=re.useCallback(()=>{const ve=x.getFieldsValue(),Ce=Bs(ve,We),qe=Vi(Ce),ht=Jo(qe,O);ce(ht)},[x,ce,O,We]),Ke=ve=>{const Ce=Go(ve),qe=nc(Ce,O);Ce&&x.setFieldsValue(qe)};if(re.useEffect(()=>{const ve=E==="apis"?`${A}/${R}`:`v1/${R}`,Ce=o?.items.find(qe=>typeof qe=="object"&&!Array.isArray(qe)&&qe!==null&&qe.spec&&typeof qe.spec=="object"&&!Array.isArray(qe.spec)&&qe.spec!==null&&typeof qe.spec.overrideType=="string"&&qe.spec.overrideType===ve);if(sd(Ce)&&Ce.spec.values.forEach(({path:qe,value:kt})=>{x.setFieldValue(qe,kt)}),g){const qe=nc(g,O);x.setFieldsValue(qe)}xe()},[g,x,o,E,A,R,xe,O]),re.useEffect(()=>{let ve=[];const Ce=E==="apis"?`${A}/${R}`:`v1/${R}`,qe=o?.items.find(de=>typeof de=="object"&&!Array.isArray(de)&&de!==null&&de.spec&&typeof de.spec=="object"&&!Array.isArray(de.spec)&&de.spec!==null&&typeof de.spec.overrideType=="string"&&de.spec.overrideType===Ce);sd(qe)&&(ve=qe.spec.values.flatMap(({path:de})=>$h(de))),g&&typeof g=="object"&&g!==null&&(ve=[...ve,...rc(g)]);const kt=[...Ie,...ve],ht=new Set,Et=kt.filter(de=>{const Qe=Array.isArray(de)?JSON.stringify(de):de;return ht.has(Qe)?!1:(ht.add(Qe),!0)});Te([...Et])},[A,o,g,E,R]),re.useEffect(()=>{d&&x.setFieldValue(["metadata","namespace"],d),xe()},[d,xe,x]),re.useEffect(()=>{k&&x.setFieldsValue({apiVersion:A==="api/v1"?"v1":A,kind:w}),xe()},[k,w,A,xe,x]),re.useEffect(()=>{const ve=x.getFieldsValue(),Ce=Bs(ve,We),qe=Vi(Ce),ht=Jo(qe,O);ce(ht)},[ce,O,x,We]),re.useEffect(()=>{xe()},[O,xe]),!O)return null;const Se=v?{filterSelectOptions:Zu,selectValues:v.map(ve=>({label:ve,value:ve})),disabled:!!d}:void 0,Fe=ve=>{x.setFieldValue(ve,void 0),xe()},je=({path:ve,name:Ce,type:qe,items:kt,nestedProperties:ht,required:Et})=>{const Qe=(Array.isArray(ve)?ve:[ve]).reduceRight((Mt,ke)=>({[ke]:{properties:Mt}}),{[Ce]:{type:qe,items:kt,properties:ht,required:Et,isAdditionalProperties:!0}}),St=yt.cloneDeep(O),it=yt.merge(St,Qe);console.log("newObject",Qe),console.log("newProperties",it),D(it)},Le=({path:ve})=>{const qe=(Array.isArray(ve)?ve:[ve]).flatMap(ht=>[ht,"properties"]).slice(0,-1),kt=yt.cloneDeep(O);yt.unset(kt,qe),D(kt)},Tt=ve=>{Te([...Ie,ve])},sn=ve=>{Te([...Ie.filter(Ce=>JSON.stringify(Ce)!==JSON.stringify(ve))])},Nt=(ve,Ce)=>{Ce&&x.getFieldValue(ve)===void 0&&(Ce==="str"&&x.setFieldValue(ve,""),Ce==="number"&&x.setFieldValue(ve,0),Ce==="arr"&&x.setFieldValue(ve,[]),Ce==="obj"&&x.setFieldValue(ve,{})),Xe([...We,ve])},Lt=ve=>{console.log(ve),Xe([...We.filter(Ce=>JSON.stringify(Ce)!==JSON.stringify(ve))])};return $.jsxs(Zs.Container,{children:[$.jsx("div",{children:$.jsxs(ue.Form,{form:x,onValuesChange:xe,children:[ba({properties:O,name:[],required:u,hiddenPaths:l,namespaceData:Se,makeValueUndefined:Fe,addField:je,removeField:Le,isEdit:!k,expandedControls:{onExpandOpen:Tt,onExpandClose:sn,expandedKeys:Ie},persistedControls:{onPersistMark:Nt,onPersistUnmark:Lt,persistedKeys:We,isPersistedKeysShown:Ee},urlParams:n}),$.jsxs("div",{children:["Show persisted checkboxes:"," ",$.jsx(ue.Switch,{value:Ee,onChange:ve=>wt(ve),size:"small"})]}),$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Alert,{type:"warning",message:"Будут отправлены только данные из формы. Пустые поля будут удалены рекурсивно"}),k&&G.data?.status.allowed===!1&&$.jsxs($.Fragment,{children:[$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Alert,{type:"warning",message:"Недостаточно прав для создания"})]}),!k&&Y.data?.status.allowed===!1&&$.jsxs($.Fragment,{children:[$.jsx($r,{$space:12,$samespace:!0}),$.jsx(ue.Alert,{type:"warning",message:"Недостаточно прав для редактирования"})]}),$.jsx($r,{$space:12,$samespace:!0}),we&&$.jsxs($.Fragment,{children:[$.jsx($r,{$space:16,$samespace:!0}),$.jsx(ue.Alert,{message:`An error has occurred: ${we?.response?.data?.message} `,type:"error"}),$.jsx($r,{$space:16,$samespace:!0})]}),$.jsxs(ue.Flex,{gap:16,children:[$.jsx(Sr,{children:$.jsx(ue.Button,{type:"primary",onClick:oe,loading:fe,children:"Submit"})}),L&&$.jsx(ue.Button,{onClick:()=>T(L),children:"Cancel"}),$.jsx(ue.Button,{onClick:()=>Re(!0),icon:$.jsx(Qt.BugOutlined,{})})]})]})}),$.jsx("div",{children:$.jsx(jv,{theme:t,currentValues:K||{},onChange:Ke})}),he&&$.jsx(ue.Modal,{open:he,onOk:()=>Re(!1),onCancel:()=>Re(!1),onClose:()=>Re(!1),title:"Debug for properties",width:"90vw",children:$.jsx(Zs.DebugContainer,{children:$.jsx(re.Suspense,{fallback:$.jsx("div",{children:"Loading..."}),children:$.jsx(oA,{defaultLanguage:"json",width:"100%",height:"80vh",theme:"vs-dark",value:JSON.stringify(O,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},ad=({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&&ad({properties:e[i],currentPath:o,result:n})}),n),ud=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:ud({path:i,defaultValue:t})}},aA=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=yt.get(t,a.join("."))}catch{}if(u){const l=yt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(d=>{const v={[d]:{type:l,isAdditionalProperties:!0}},k=yt.cloneDeep(f);f.properties=yt.merge(k.properties,v)});const y=ud({path:o,defaultValue:f});return yt.merge(i,y)}return i},{}),cd=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},ld=({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}},Lc=({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}},fd=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")},hd=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Lc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=ld({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}},pd=({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}},dd=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(fd(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=yt.cloneDeep(t);u=yt.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=yt.cloneDeep(t);u=cd(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}},uA=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:y,backlink:g,modeData:d})=>{const[v,k]=re.useState(void 0),[E,A]=re.useState([]),[w,R]=re.useState([]),[L,T]=re.useState([]),[x,I]=re.useState([]),[O,D]=re.useState(""),[K,ie]=re.useState(!1),[ce,fe]=re.useState(!1),ye=re.useCallback(()=>{d&&(d.onChange("Manual"),d.onDisabled())},[d]);return re.useEffect(()=>{if(!a)return;const{swaggerPath:we,isNamespaced:ge}=hd({swagger:a,data:f});ge&&ie(!0);const{bodyParametersSchema:he,kindName:Re,error:Ie}=pd({swagger:a,swaggerPath:we});if(Ie){fe(Ie),console.log(Ie),ye();return}Re&&D(Re);const Te=ad({properties:he.properties}),We=aA({pathsWithAdditionalProperties:Te,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:he}),Xe=yt.cloneDeep(he.properties),Ee=yt.merge(Xe,We),wt=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,G=l?.items.find(Fe=>Fe.spec.overrideType===wt),{hiddenPaths:Y,expandedPaths:oe,persistedPaths:xe,propertiesToApply:Ke,requiredToApply:Se}=dd({specificCustomOverrides:G,newProperties:Ee,bodyParametersSchema:he});Y&&R(Y),oe&&T(oe),xe&&I(xe),Ke&&k(Ke),Se&&A(Se)},[a,f,ye,l]),d?.current==="Manual"?$.jsx(Uv,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:y,type:f.type,isNameSpaced:K?u?.items.map(we=>we.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g}):!v&&!ce?null:ce?$.jsx(ue.Alert,{message:ce,type:"error"}):$.jsx(od,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:v,required:E,hiddenPaths:w,expandedPaths:L,persistedPaths:x,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:y,type:f.type,isNameSpaced:K?u?.items.map(we=>we.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:O,typeName:f.typeName,backlink:g},JSON.stringify(v)+JSON.stringify(E)+JSON.stringify(w)+JSON.stringify(f))},gd=({items:e,components:t})=>$.jsx($.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return $.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);const a=n.children?$.jsx(gd,{items:n.children,components:t}):null;return $.jsx(re.Fragment,{children:$.jsx(o,{data:n.data,children:a})},i)})}),yd=e=>$.jsx(gd,{...e}),cA=({data:e})=>{const{id:t,text:n,...i}=e;return $.jsx(ue.Typography.Text,{...i,children:n})},lA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Card,{...i,children:t})},fA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Flex,{...i,children:t})},hA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Row,{...i,children:t})},pA=({data:e,children:t})=>{const{id:n,...i}=e;return $.jsx(ue.Col,{...i,children:t})},md=()=>{const e=re.createContext(null);return{Provider:({children:i,value:o})=>{const a=re.useMemo(()=>o,Object.values(o));return $.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=re.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},bd=md(),dA=bd.Provider,gA=bd.useTypedContext,yA={antdText:cA,antdCard:lA,partsOfUrl:({data:e})=>{const n=gA().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=qt({template:e.text,replaceValues:n});return $.jsx("span",{children:i})},antdFlex:fA,antdRow:hA,antdCol:pA},mA=e=>{const t=wr.useLocation();return $.jsx(dA,{value:{partsOfUrl:t.pathname.split("/")},children:$.jsx(yd,{...e})})},bA=e=>typeof e=="object"&&"value"in e&&"highlight"in e,wA=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 y=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let d=t[y]=t[y]||{};for(const v of g)d[v]=d[v]||{},d=d[v];d[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(bA(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}))},vA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),AA=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:y})=>y==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:y})=>!o.includes(y)&&!y.includes(".k8s.io")).sort((y,g)=>y.name.localeCompare(g.name)),l=t?.groups.filter(({name:y})=>o.includes(y)||y.includes(".k8s.io")).sort((y,g)=>y.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:y})=>Lc({typeName:y,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},EA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:y,entryName:g,apiExtensionVersion:d,crdName:v,pathname:k})=>e.map(({pathToMatch:A,pathToNavigate:w,keysToParse:R})=>({pathToMatch:A?qt({template:A,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:y,entryName:g,apiExtensionVersion:d,crdName:v}}):void 0,pathToNavigate:w?qt({template:w,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:y,entryName:g,apiExtensionVersion:d,crdName:v}}):void 0,keysToParse:R})).find(({pathToMatch:A})=>A?wr.matchPath(A,k):!1),wd=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"))),vd=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"))),Ad=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"))),Ed=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"))),SA=({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=wd(n)?n.spec.additionalPrinterColumns:void 0,o=vd(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Ad(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Ed(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},xA=async({clusterName:e})=>rt.get(`/api/clusters/${e}/k8s/openapi/v2`),Sd=async()=>rt.get("/clusterlist"),xd=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Cd=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),_d=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return rt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Td=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>rt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),kd=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Od=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>rt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Id=async({clusterName:e})=>rt.get(`/api/clusters/${e}/k8s/apis/`),Fd=async({clusterName:e,apiGroup:t,apiVersion:n})=>rt.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Bd=async({clusterName:e})=>rt.get(`/api/clusters/${e}/k8s/api/v1`),Dd=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>rt.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),CA=({refetchInterval:e})=>Cn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Sd()).data,refetchInterval:e!==void 0?e:5e3}),_A=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>Cn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>(await xd({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})).data,refetchInterval:u!==void 0?u:5e3}),TA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>Cn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Cd({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),kA=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>Cn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>(await _d({clusterName:e,namespace:t,typeName:n,limit:i})).data,refetchInterval:o!==void 0?o:5e3}),OA=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>Cn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Td({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),IA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>Cn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>(await kd({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})).data,refetchInterval:a!==void 0?a:5e3}),FA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>Cn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Od({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),BA=({clusterName:e})=>Cn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>(await Id({clusterName:e})).data,refetchInterval:5e3}),DA=({clusterName:e,apiGroup:t,apiVersion:n})=>Cn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>(await Fd({clusterName:e,apiGroup:t,apiVersion:n})).data,refetchInterval:5e3}),RA=({clusterName:e})=>Cn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>(await Bd({clusterName:e})).data,refetchInterval:5e3}),PA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>Cn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>(await Dd({clusterName:e,apiExtensionVersion:t,crdName:n})).data,refetchInterval:5e3});le.BlackholeForm=od,le.BlackholeFormDataProvider=uA,le.DeleteModal=O1,le.DeleteModalMany=I1,le.DynamicComponents=yA,le.DynamicRenderer=yd,le.DynamicRendererWithProviders=mA,le.EnrichedTable=Ih,le.EnrichedTableProvider=z1,le.ManageableBreadcrumbs=vh,le.ManageableBreadcrumbsWithDataProvider=B1,le.ManageableSidebar=Sh,le.ManageableSidebarWithDataProvider=P1,le.Spacer=$r,le.TreeWithSearch=am,le.checkIfApiInstanceNamespaceScoped=ld,le.checkIfBuiltInInstanceNamespaceScoped=Lc,le.checkPermission=Lh,le.createContextFactory=md,le.createNewEntry=Ku,le.deleteEntry=zu,le.filterSelectOptions=Zu,le.floorToDecimal=Ds,le.getAllPathsFromObj=rc,le.getApiResourceSingle=Cd,le.getApiResourceTypes=Id,le.getApiResourceTypesByApiGroup=Fd,le.getApiResources=xd,le.getBodyParametersSchema=pd,le.getBuiltinResourceSingle=Td,le.getBuiltinResourceTypes=Bd,le.getBuiltinResources=_d,le.getBuiltinTreeData=vA,le.getClusterList=Sd,le.getCrdData=Dd,le.getCrdResourceSingle=Od,le.getCrdResources=kd,le.getDirectUnknownResource=bh,le.getEnrichedColumns=kh,le.getEnrichedColumnsWithControls=Oh,le.getGroupsByCategory=AA,le.getObjectFormItemsDraft=ba,le.getPrefixSubarrays=$h,le.getStringByName=Ft,le.getSwagger=xA,le.getSwaggerPathAndIsNamespaceScoped=hd,le.groupsToTreeData=wA,le.isFlatObject=Th,le.isFormOverride=fd,le.isWithAdditionalPrinterColumns=wd,le.isWithAdditionalPrinterColumnsColWidths=Ed,le.isWithAdditionalPrinterColumnsTrimLengths=Ad,le.isWithAdditionalPrinterColumnsUndefinedValues=vd,le.normalizeValuesForQuotas=Jo,le.normalizeValuesForQuotasToNumber=nc,le.overwriteMatchingKeys=cd,le.parseCustomOverrides=SA,le.parseQuotaValue=db,le.parseQuotaValueCpu=ec,le.parseQuotaValueMemoryAndStorage=tc,le.prepareDataForEnrichedColumns=Dh,le.prepareDataForManageableBreadcrumbs=wh,le.prepareDataForManageableSidebar=Eh,le.prepareTableMappings=EA,le.prepareTemplate=qt,le.processOverride=dd,le.removeEmptyFormValues=Bs,le.renameBrokenFieldBack=Vi,le.renameBrokenFieldBackToFormAgain=Go,le.updateEntry=Hu,le.useApiResourceSingle=TA,le.useApiResourceTypesByGroup=DA,le.useApiResources=_A,le.useApisResourceTypes=BA,le.useBuiltinResourceSingle=OA,le.useBuiltinResourceTypes=RA,le.useBuiltinResources=kA,le.useClusterList=CA,le.useCrdData=PA,le.useCrdResourceSingle=FA,le.useCrdResources=IA,le.useDirectUnknownResource=vn,le.usePermissions=Qu,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});
|
|
434
434
|
//# sourceMappingURL=openapi-k8s-toolkit.umd.js.map
|