@teambit/env 1.0.279 → 1.0.281
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/env-template/public/{181.794c5763bd19556e90d3.js → 181.02a246c1591785d3ba26.js} +36 -54
- package/artifacts/env-template/public/{851.d2664a57f5d46b636e5f.js → 480.59b5c57cceca1ed037cc.js} +3 -3
- package/artifacts/env-template/public/{462.29eb6fb705ee8c464ca7.js → 860.f727a836bc5380c84757.js} +14 -14
- package/artifacts/env-template/public/{559.581268c76da77366a3cc.js → 874.c8ecb4b8c9b792eb5351.js} +13 -13
- package/artifacts/env-template/public/assets-manifest.json +22 -22
- package/artifacts/env-template/public/compositions.793f0151ca61e9ea2641.js +1 -0
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.227df414d35623e7eefe.js → overview.e73adf24e9875b7d3f3d.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{peers.28c1d31f041fdd1d2941.js → peers.5e6e64f665b37aeed396.js} +1 -1
- package/artifacts/env-template/public/{preview-root.51492b7e1baae410d8b1.js → preview-root.844b3321b9ded5be4716.js} +1 -1
- package/artifacts/env-template/public/static/css/{181.31811609.css → 181.5aeaeec4.css} +1 -1
- package/artifacts/env-template/public/static/css/compositions.7f2d907d.css +1 -0
- package/artifacts/env-template/public/static/css/preview-root.0f5bcda2.css +1 -0
- package/artifacts/preview/teambit_envs_env-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/{compositions-1716347860768.js → compositions-1716434516635.js} +1 -1
- package/dist/{preview-1716347860768.js → preview-1716434516635.js} +2 -2
- package/{overview-1716347860768.js → overview-1716434516635.js} +1 -1
- package/package.json +6 -6
- package/artifacts/env-template/public/compositions.9971d1bfc4a2dcfffb22.js +0 -1
- package/artifacts/env-template/public/static/css/compositions.2a7f63f9.css +0 -1
- package/artifacts/env-template/public/static/css/preview-root.5fd7d59d.css +0 -1
package/artifacts/env-template/public/{462.29eb6fb705ee8c464ca7.js → 860.f727a836bc5380c84757.js}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[462],{66431:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{arrow:()=>arrow,autoPlacement:()=>v,autoUpdate:()=>N,computePosition:()=>z,detectOverflow:()=>s,flip:()=>b,getOverflowAncestors:()=>H,hide:()=>P,inline:()=>E,limitShift:()=>L,offset:()=>T,shift:()=>D,size:()=>k,useFloating:()=>useFloating});function t(t2){return t2.split("-")[0]}function e(t2){return t2.split("-")[1]}function n(e2){return["top","bottom"].includes(t(e2))?"x":"y"}function r(t2){return t2==="y"?"height":"width"}function i(i2,o2,a2){let{reference:l2,floating:s2}=i2;const c2=l2.x+l2.width/2-s2.width/2,f2=l2.y+l2.height/2-s2.height/2,u2=n(o2),m2=r(u2),g2=l2[m2]/2-s2[m2]/2,d2=u2==="x";let p2;switch(t(o2)){case"top":p2={x:c2,y:l2.y-s2.height};break;case"bottom":p2={x:c2,y:l2.y+l2.height};break;case"right":p2={x:l2.x+l2.width,y:f2};break;case"left":p2={x:l2.x-s2.width,y:f2};break;default:p2={x:l2.x,y:l2.y}}switch(e(o2)){case"start":p2[u2]-=g2*(a2&&d2?-1:1);break;case"end":p2[u2]+=g2*(a2&&d2?-1:1)}return p2}const floating_ui_core_browser_min_o=async(t2,e2,n2)=>{const{placement:r2="bottom",strategy:o2="absolute",middleware:a2=[],platform:l2}=n2,s2=await(l2.isRTL==null?void 0:l2.isRTL(e2));let c2=await l2.getElementRects({reference:t2,floating:e2,strategy:o2}),{x:f2,y:u2}=i(c2,r2,s2),m2=r2,g2={},d2=0;for(let n3=0;n3<a2.length;n3++){const{name:p2,fn:h2}=a2[n3],{x:y2,y:x2,data:w2,reset:v2}=await h2({x:f2,y:u2,initialPlacement:r2,placement:m2,strategy:o2,middlewareData:g2,rects:c2,platform:l2,elements:{reference:t2,floating:e2}});f2=y2??f2,u2=x2??u2,g2={...g2,[p2]:{...g2[p2],...w2}},v2&&d2<=50&&(d2++,typeof v2=="object"&&(v2.placement&&(m2=v2.placement),v2.rects&&(c2=v2.rects===!0?await l2.getElementRects({reference:t2,floating:e2,strategy:o2}):v2.rects),{x:f2,y:u2}=i(c2,m2,s2)),n3=-1)}return{x:f2,y:u2,placement:m2,strategy:o2,middlewareData:g2}};function a(t2){return typeof t2!="number"?function(t3){return{top:0,right:0,bottom:0,left:0,...t3}}(t2):{top:t2,right:t2,bottom:t2,left:t2}}function l(t2){return{...t2,top:t2.y,left:t2.x,right:t2.x+t2.width,bottom:t2.y+t2.height}}async function s(t2,e2){var n2;e2===void 0&&(e2={});const{x:r2,y:i2,platform:o2,rects:s2,elements:c2,strategy:f2}=t2,{boundary:u2="clippingAncestors",rootBoundary:m2="viewport",elementContext:g2="floating",altBoundary:d2=!1,padding:p2=0}=e2,h2=a(p2),y2=c2[d2?g2==="floating"?"reference":"floating":g2],x2=l(await o2.getClippingRect({element:(n2=await(o2.isElement==null?void 0:o2.isElement(y2)))==null||n2?y2:y2.contextElement||await(o2.getDocumentElement==null?void 0:o2.getDocumentElement(c2.floating)),boundary:u2,rootBoundary:m2,strategy:f2})),w2=l(o2.convertOffsetParentRelativeRectToViewportRelativeRect?await o2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g2==="floating"?{...s2.floating,x:r2,y:i2}:s2.reference,offsetParent:await(o2.getOffsetParent==null?void 0:o2.getOffsetParent(c2.floating)),strategy:f2}):s2[g2]);return{top:x2.top-w2.top+h2.top,bottom:w2.bottom-x2.bottom+h2.bottom,left:x2.left-w2.left+h2.left,right:w2.right-x2.right+h2.right}}const c=Math.min,f=Math.max;function u(t2,e2,n2){return f(t2,c(e2,n2))}const m=t2=>({name:"arrow",options:t2,async fn(i2){const{element:o2,padding:l2=0}=t2??{},{x:s2,y:c2,placement:f2,rects:m2,platform:g2}=i2;if(o2==null)return{};const d2=a(l2),p2={x:s2,y:c2},h2=n(f2),y2=e(f2),x2=r(h2),w2=await g2.getDimensions(o2),v2=h2==="y"?"top":"left",b2=h2==="y"?"bottom":"right",R2=m2.reference[x2]+m2.reference[h2]-p2[h2]-m2.floating[x2],A2=p2[h2]-m2.reference[h2],P2=await(g2.getOffsetParent==null?void 0:g2.getOffsetParent(o2));let T2=P2?h2==="y"?P2.clientHeight||0:P2.clientWidth||0:0;T2===0&&(T2=m2.floating[x2]);const O2=R2/2-A2/2,D2=d2[v2],L2=T2-w2[x2]-d2[b2],k2=T2/2-w2[x2]/2+O2,E2=u(D2,k2,L2),C2=(y2==="start"?d2[v2]:d2[b2])>0&&k2!==E2&&m2.reference[x2]<=m2.floating[x2];return{[h2]:p2[h2]-(C2?k2<D2?D2-k2:L2-k2:0),data:{[h2]:E2,centerOffset:k2-E2}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t2){return t2.replace(/left|right|bottom|top/g,t3=>g[t3])}function p(t2,i2,o2){o2===void 0&&(o2=!1);const a2=e(t2),l2=n(t2),s2=r(l2);let c2=l2==="x"?a2===(o2?"end":"start")?"right":"left":a2==="start"?"bottom":"top";return i2.reference[s2]>i2.floating[s2]&&(c2=d(c2)),{main:c2,cross:d(c2)}}const h={start:"end",end:"start"};function y(t2){return t2.replace(/start|end/g,t3=>h[t3])}const x=["top","right","bottom","left"],w=x.reduce((t2,e2)=>t2.concat(e2,e2+"-start",e2+"-end"),[]),v=function(n2){return n2===void 0&&(n2={}),{name:"autoPlacement",options:n2,async fn(r2){var i2,o2,a2,l2,c2;const{x:f2,y:u2,rects:m2,middlewareData:g2,placement:d2,platform:h2,elements:x2}=r2,{alignment:v2=null,allowedPlacements:b2=w,autoAlignment:R2=!0,...A2}=n2,P2=function(n3,r3,i3){return(n3?[...i3.filter(t2=>e(t2)===n3),...i3.filter(t2=>e(t2)!==n3)]:i3.filter(e2=>t(e2)===e2)).filter(t2=>!n3||e(t2)===n3||!!r3&&y(t2)!==t2)}(v2,R2,b2),T2=await s(r2,A2),O2=(i2=(o2=g2.autoPlacement)==null?void 0:o2.index)!=null?i2:0,D2=P2[O2];if(D2==null)return{};const{main:L2,cross:k2}=p(D2,m2,await(h2.isRTL==null?void 0:h2.isRTL(x2.floating)));if(d2!==D2)return{x:f2,y:u2,reset:{placement:P2[0]}};const E2=[T2[t(D2)],T2[L2],T2[k2]],C2=[...(a2=(l2=g2.autoPlacement)==null?void 0:l2.overflows)!=null?a2:[],{placement:D2,overflows:E2}],H2=P2[O2+1];if(H2)return{data:{index:O2+1,overflows:C2},reset:{placement:H2}};const B=C2.slice().sort((t2,e2)=>t2.overflows[0]-e2.overflows[0]),V=(c2=B.find(t2=>{let{overflows:e2}=t2;return e2.every(t3=>t3<=0)}))==null?void 0:c2.placement,F=V??B[0].placement;return F!==d2?{data:{index:O2+1,overflows:C2},reset:{placement:F}}:{}}}},b=function(e2){return e2===void 0&&(e2={}),{name:"flip",options:e2,async fn(n2){var r2;const{placement:i2,middlewareData:o2,rects:a2,initialPlacement:l2,platform:c2,elements:f2}=n2,{mainAxis:u2=!0,crossAxis:m2=!0,fallbackPlacements:g2,fallbackStrategy:h2="bestFit",flipAlignment:x2=!0,...w2}=e2,v2=t(i2),b2=g2||(v2===l2||!x2?[d(l2)]:function(t2){const e3=d(t2);return[y(t2),e3,y(e3)]}(l2)),R2=[l2,...b2],A2=await s(n2,w2),P2=[];let T2=((r2=o2.flip)==null?void 0:r2.overflows)||[];if(u2&&P2.push(A2[v2]),m2){const{main:t2,cross:e3}=p(i2,a2,await(c2.isRTL==null?void 0:c2.isRTL(f2.floating)));P2.push(A2[t2],A2[e3])}if(T2=[...T2,{placement:i2,overflows:P2}],!P2.every(t2=>t2<=0)){var O2,D2;const t2=((O2=(D2=o2.flip)==null?void 0:D2.index)!=null?O2:0)+1,e3=R2[t2];if(e3)return{data:{index:t2,overflows:T2},reset:{placement:e3}};let n3="bottom";switch(h2){case"bestFit":{var L2;const t3=(L2=T2.map(t4=>[t4,t4.overflows.filter(t5=>t5>0).reduce((t5,e4)=>t5+e4,0)]).sort((t4,e4)=>t4[1]-e4[1])[0])==null?void 0:L2[0].placement;t3&&(n3=t3);break}case"initialPlacement":n3=l2}if(i2!==n3)return{reset:{placement:n3}}}return{}}}};function R(t2,e2){return{top:t2.top-e2.height,right:t2.right-e2.width,bottom:t2.bottom-e2.height,left:t2.left-e2.width}}function A(t2){return x.some(e2=>t2[e2]>=0)}const P=function(t2){let{strategy:e2="referenceHidden",...n2}=t2===void 0?{}:t2;return{name:"hide",async fn(t3){const{rects:r2}=t3;switch(e2){case"referenceHidden":{const e3=R(await s(t3,{...n2,elementContext:"reference"}),r2.reference);return{data:{referenceHiddenOffsets:e3,referenceHidden:A(e3)}}}case"escaped":{const e3=R(await s(t3,{...n2,altBoundary:!0}),r2.floating);return{data:{escapedOffsets:e3,escaped:A(e3)}}}default:return{}}}}},T=function(r2){return r2===void 0&&(r2=0),{name:"offset",options:r2,async fn(i2){const{x:o2,y:a2}=i2,l2=await async function(r3,i3){const{placement:o3,platform:a3,elements:l3}=r3,s2=await(a3.isRTL==null?void 0:a3.isRTL(l3.floating)),c2=t(o3),f2=e(o3),u2=n(o3)==="x",m2=["left","top"].includes(c2)?-1:1,g2=s2&&u2?-1:1,d2=typeof i3=="function"?i3(r3):i3;let{mainAxis:p2,crossAxis:h2,alignmentAxis:y2}=typeof d2=="number"?{mainAxis:d2,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d2};return f2&&typeof y2=="number"&&(h2=f2==="end"?-1*y2:y2),u2?{x:h2*g2,y:p2*m2}:{x:p2*m2,y:h2*g2}}(i2,r2);return{x:o2+l2.x,y:a2+l2.y,data:l2}}}};function O(t2){return t2==="x"?"y":"x"}const D=function(e2){return e2===void 0&&(e2={}),{name:"shift",options:e2,async fn(r2){const{x:i2,y:o2,placement:a2}=r2,{mainAxis:l2=!0,crossAxis:c2=!1,limiter:f2={fn:t2=>{let{x:e3,y:n2}=t2;return{x:e3,y:n2}}},...m2}=e2,g2={x:i2,y:o2},d2=await s(r2,m2),p2=n(t(a2)),h2=O(p2);let y2=g2[p2],x2=g2[h2];if(l2){const t2=p2==="y"?"bottom":"right";y2=u(y2+d2[p2==="y"?"top":"left"],y2,y2-d2[t2])}if(c2){const t2=h2==="y"?"bottom":"right";x2=u(x2+d2[h2==="y"?"top":"left"],x2,x2-d2[t2])}const w2=f2.fn({...r2,[p2]:y2,[h2]:x2});return{...w2,data:{x:w2.x-i2,y:w2.y-o2}}}}},L=function(e2){return e2===void 0&&(e2={}),{options:e2,fn(r2){const{x:i2,y:o2,placement:a2,rects:l2,middlewareData:s2}=r2,{offset:c2=0,mainAxis:f2=!0,crossAxis:u2=!0}=e2,m2={x:i2,y:o2},g2=n(a2),d2=O(g2);let p2=m2[g2],h2=m2[d2];const y2=typeof c2=="function"?c2({...l2,placement:a2}):c2,x2=typeof y2=="number"?{mainAxis:y2,crossAxis:0}:{mainAxis:0,crossAxis:0,...y2};if(f2){const t2=g2==="y"?"height":"width",e3=l2.reference[g2]-l2.floating[t2]+x2.mainAxis,n2=l2.reference[g2]+l2.reference[t2]-x2.mainAxis;p2<e3?p2=e3:p2>n2&&(p2=n2)}if(u2){var w2,v2,b2,R2;const e3=g2==="y"?"width":"height",n2=["top","left"].includes(t(a2)),r3=l2.reference[d2]-l2.floating[e3]+(n2&&(w2=(v2=s2.offset)==null?void 0:v2[d2])!=null?w2:0)+(n2?0:x2.crossAxis),i3=l2.reference[d2]+l2.reference[e3]+(n2?0:(b2=(R2=s2.offset)==null?void 0:R2[d2])!=null?b2:0)-(n2?x2.crossAxis:0);h2<r3?h2=r3:h2>i3&&(h2=i3)}return{[g2]:p2,[d2]:h2}}}},k=function(n2){return n2===void 0&&(n2={}),{name:"size",options:n2,async fn(r2){const{placement:i2,rects:o2,platform:a2,elements:l2}=r2,{apply:c2,...u2}=n2,m2=await s(r2,u2),g2=t(i2),d2=e(i2);let p2,h2;g2==="top"||g2==="bottom"?(p2=g2,h2=d2===(await(a2.isRTL==null?void 0:a2.isRTL(l2.floating))?"start":"end")?"left":"right"):(h2=g2,p2=d2==="end"?"top":"bottom");const y2=f(m2.left,0),x2=f(m2.right,0),w2=f(m2.top,0),v2=f(m2.bottom,0),b2={availableHeight:o2.floating.height-(["left","right"].includes(i2)?2*(w2!==0||v2!==0?w2+v2:f(m2.top,m2.bottom)):m2[p2]),availableWidth:o2.floating.width-(["top","bottom"].includes(i2)?2*(y2!==0||x2!==0?y2+x2:f(m2.left,m2.right)):m2[h2])},R2=await a2.getDimensions(l2.floating);c2?.({...r2,...b2});const A2=await a2.getDimensions(l2.floating);return R2.width!==A2.width||R2.height!==A2.height?{reset:{rects:!0}}:{}}}},E=function(e2){return e2===void 0&&(e2={}),{name:"inline",options:e2,async fn(r2){var i2;const{placement:o2,elements:s2,rects:u2,platform:m2,strategy:g2}=r2,{padding:d2=2,x:p2,y:h2}=e2,y2=l(m2.convertOffsetParentRelativeRectToViewportRelativeRect?await m2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u2.reference,offsetParent:await(m2.getOffsetParent==null?void 0:m2.getOffsetParent(s2.floating)),strategy:g2}):u2.reference),x2=(i2=await(m2.getClientRects==null?void 0:m2.getClientRects(s2.reference)))!=null?i2:[],w2=a(d2),v2=await m2.getElementRects({reference:{getBoundingClientRect:function(){var e3;if(x2.length===2&&x2[0].left>x2[1].right&&p2!=null&&h2!=null)return(e3=x2.find(t2=>p2>t2.left-w2.left&&p2<t2.right+w2.right&&h2>t2.top-w2.top&&h2<t2.bottom+w2.bottom))!=null?e3:y2;if(x2.length>=2){if(n(o2)==="x"){const e5=x2[0],n2=x2[x2.length-1],r4=t(o2)==="top",i4=e5.top,a3=n2.bottom,l3=r4?e5.left:n2.left,s4=r4?e5.right:n2.right;return{top:i4,bottom:a3,left:l3,right:s4,width:s4-l3,height:a3-i4,x:l3,y:i4}}const e4=t(o2)==="left",r3=f(...x2.map(t2=>t2.right)),i3=c(...x2.map(t2=>t2.left)),a2=x2.filter(t2=>e4?t2.left===i3:t2.right===r3),l2=a2[0].top,s3=a2[a2.length-1].bottom;return{top:l2,bottom:s3,left:i3,right:r3,width:r3-i3,height:s3-l2,x:i3,y:l2}}return y2}},floating:s2.floating,strategy:g2});return u2.reference.x!==v2.reference.x||u2.reference.y!==v2.reference.y||u2.reference.width!==v2.reference.width||u2.reference.height!==v2.reference.height?{reset:{rects:v2}}:{}}}};function floating_ui_dom_browser_min_n(t2){return t2&&t2.document&&t2.location&&t2.alert&&t2.setInterval}function o(t2){if(t2==null)return window;if(!floating_ui_dom_browser_min_n(t2)){const e2=t2.ownerDocument;return e2&&e2.defaultView||window}return t2}function floating_ui_dom_browser_min_i(t2){return o(t2).getComputedStyle(t2)}function floating_ui_dom_browser_min_r(t2){return floating_ui_dom_browser_min_n(t2)?"":t2?(t2.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t2=navigator.userAgentData;return t2!=null&&t2.brands?t2.brands.map(t3=>t3.brand+"/"+t3.version).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t2){return t2 instanceof o(t2).HTMLElement}function floating_ui_dom_browser_min_f(t2){return t2 instanceof o(t2).Element}function floating_ui_dom_browser_min_s(t2){return typeof ShadowRoot>"u"?!1:t2 instanceof o(t2).ShadowRoot||t2 instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t2){const{overflow:e2,overflowX:n2,overflowY:o2}=floating_ui_dom_browser_min_i(t2);return/auto|scroll|overlay|hidden/.test(e2+o2+n2)}function floating_ui_dom_browser_min_d(t2){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t2))}function floating_ui_dom_browser_min_h(t2){const e2=/firefox/i.test(floating_ui_dom_browser_min_l()),n2=floating_ui_dom_browser_min_i(t2);return n2.transform!=="none"||n2.perspective!=="none"||n2.contain==="paint"||["transform","perspective"].includes(n2.willChange)||e2&&n2.willChange==="filter"||e2&&!!n2.filter&&n2.filter!=="none"}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t2,e2,n2){var i2,r2,l2,s2;e2===void 0&&(e2=!1),n2===void 0&&(n2=!1);const u2=t2.getBoundingClientRect();let d2=1,h2=1;e2&&floating_ui_dom_browser_min_c(t2)&&(d2=t2.offsetWidth>0&&floating_ui_dom_browser_min_m(u2.width)/t2.offsetWidth||1,h2=t2.offsetHeight>0&&floating_ui_dom_browser_min_m(u2.height)/t2.offsetHeight||1);const g2=floating_ui_dom_browser_min_f(t2)?o(t2):window,p2=!floating_ui_dom_browser_min_a()&&n2,w2=(u2.left+(p2&&(i2=(r2=g2.visualViewport)==null?void 0:r2.offsetLeft)!=null?i2:0))/d2,v2=(u2.top+(p2&&(l2=(s2=g2.visualViewport)==null?void 0:s2.offsetTop)!=null?l2:0))/h2,y2=u2.width/d2,x2=u2.height/h2;return{width:y2,height:x2,top:v2,right:w2+y2,bottom:v2+x2,left:w2,x:w2,y:v2}}function floating_ui_dom_browser_min_v(t2){return(e2=t2,(e2 instanceof o(e2).Node?t2.ownerDocument:t2.document)||window.document).documentElement;var e2}function floating_ui_dom_browser_min_y(t2){return floating_ui_dom_browser_min_f(t2)?{scrollLeft:t2.scrollLeft,scrollTop:t2.scrollTop}:{scrollLeft:t2.pageXOffset,scrollTop:t2.pageYOffset}}function floating_ui_dom_browser_min_x(t2){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t2)).left+floating_ui_dom_browser_min_y(t2).scrollLeft}function floating_ui_dom_browser_min_b(t2,e2,n2){const o2=floating_ui_dom_browser_min_c(e2),i2=floating_ui_dom_browser_min_v(e2),l2=floating_ui_dom_browser_min_w(t2,o2&&function(t3){const e3=floating_ui_dom_browser_min_w(t3);return floating_ui_dom_browser_min_m(e3.width)!==t3.offsetWidth||floating_ui_dom_browser_min_m(e3.height)!==t3.offsetHeight}(e2),n2==="fixed");let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if(o2||!o2&&n2!=="fixed")if((floating_ui_dom_browser_min_r(e2)!=="body"||floating_ui_dom_browser_min_u(i2))&&(f2=floating_ui_dom_browser_min_y(e2)),floating_ui_dom_browser_min_c(e2)){const t3=floating_ui_dom_browser_min_w(e2,!0);s2.x=t3.x+e2.clientLeft,s2.y=t3.y+e2.clientTop}else i2&&(s2.x=floating_ui_dom_browser_min_x(i2));return{x:l2.left+f2.scrollLeft-s2.x,y:l2.top+f2.scrollTop-s2.y,width:l2.width,height:l2.height}}function floating_ui_dom_browser_min_L(t2){return floating_ui_dom_browser_min_r(t2)==="html"?t2:t2.assignedSlot||t2.parentNode||(floating_ui_dom_browser_min_s(t2)?t2.host:null)||floating_ui_dom_browser_min_v(t2)}function floating_ui_dom_browser_min_R(t2){return floating_ui_dom_browser_min_c(t2)&&getComputedStyle(t2).position!=="fixed"?t2.offsetParent:null}function floating_ui_dom_browser_min_T(t2){const e2=o(t2);let n2=floating_ui_dom_browser_min_R(t2);for(;n2&&floating_ui_dom_browser_min_d(n2)&&getComputedStyle(n2).position==="static";)n2=floating_ui_dom_browser_min_R(n2);return n2&&(floating_ui_dom_browser_min_r(n2)==="html"||floating_ui_dom_browser_min_r(n2)==="body"&&getComputedStyle(n2).position==="static"&&!floating_ui_dom_browser_min_h(n2))?e2:n2||function(t3){let e3=floating_ui_dom_browser_min_L(t3);for(floating_ui_dom_browser_min_s(e3)&&(e3=e3.host);floating_ui_dom_browser_min_c(e3)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e3));){if(floating_ui_dom_browser_min_h(e3))return e3;e3=e3.parentNode}return null}(t2)||e2}function W(t2){if(floating_ui_dom_browser_min_c(t2))return{width:t2.offsetWidth,height:t2.offsetHeight};const e2=floating_ui_dom_browser_min_w(t2);return{width:e2.width,height:e2.height}}function floating_ui_dom_browser_min_E(t2){const e2=floating_ui_dom_browser_min_L(t2);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e2))?t2.ownerDocument.body:floating_ui_dom_browser_min_c(e2)&&floating_ui_dom_browser_min_u(e2)?e2:floating_ui_dom_browser_min_E(e2)}function H(t2,e2){var n2;e2===void 0&&(e2=[]);const i2=floating_ui_dom_browser_min_E(t2),r2=i2===((n2=t2.ownerDocument)==null?void 0:n2.body),l2=o(i2),c2=r2?[l2].concat(l2.visualViewport||[],floating_ui_dom_browser_min_u(i2)?i2:[]):i2,f2=e2.concat(c2);return r2?f2:f2.concat(H(c2))}function C(e2,n2,r2){return n2==="viewport"?l(function(t2,e3){const n3=o(t2),i2=floating_ui_dom_browser_min_v(t2),r3=n3.visualViewport;let l2=i2.clientWidth,c2=i2.clientHeight,f2=0,s2=0;if(r3){l2=r3.width,c2=r3.height;const t3=floating_ui_dom_browser_min_a();(t3||!t3&&e3==="fixed")&&(f2=r3.offsetLeft,s2=r3.offsetTop)}return{width:l2,height:c2,x:f2,y:s2}}(e2,r2)):floating_ui_dom_browser_min_f(n2)?function(t2,e3){const n3=floating_ui_dom_browser_min_w(t2,!1,e3==="fixed"),o2=n3.top+t2.clientTop,i2=n3.left+t2.clientLeft;return{top:o2,left:i2,x:i2,y:o2,right:i2+t2.clientWidth,bottom:o2+t2.clientHeight,width:t2.clientWidth,height:t2.clientHeight}}(n2,r2):l(function(t2){var e3;const n3=floating_ui_dom_browser_min_v(t2),o2=floating_ui_dom_browser_min_y(t2),r3=(e3=t2.ownerDocument)==null?void 0:e3.body,l2=floating_ui_dom_browser_min_p(n3.scrollWidth,n3.clientWidth,r3?r3.scrollWidth:0,r3?r3.clientWidth:0),c2=floating_ui_dom_browser_min_p(n3.scrollHeight,n3.clientHeight,r3?r3.scrollHeight:0,r3?r3.clientHeight:0);let f2=-o2.scrollLeft+floating_ui_dom_browser_min_x(t2);const s2=-o2.scrollTop;return floating_ui_dom_browser_min_i(r3||n3).direction==="rtl"&&(f2+=floating_ui_dom_browser_min_p(n3.clientWidth,r3?r3.clientWidth:0)-l2),{width:l2,height:c2,x:f2,y:s2}}(floating_ui_dom_browser_min_v(e2)))}function S(t2){const e2=H(t2),n2=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t2).position)&&floating_ui_dom_browser_min_c(t2)?floating_ui_dom_browser_min_T(t2):t2;return floating_ui_dom_browser_min_f(n2)?e2.filter(t3=>floating_ui_dom_browser_min_f(t3)&&function(t4,e3){const n3=e3.getRootNode==null?void 0:e3.getRootNode();if(t4.contains(e3))return!0;if(n3&&floating_ui_dom_browser_min_s(n3)){let n4=e3;do{if(n4&&t4===n4)return!0;n4=n4.parentNode||n4.host}while(n4)}return!1}(t3,n2)&&floating_ui_dom_browser_min_r(t3)!=="body"):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t2){let{element:e2,boundary:n2,rootBoundary:o2,strategy:i2}=t2;const r2=[...n2==="clippingAncestors"?S(e2):[].concat(n2),o2],l2=r2[0],c2=r2.reduce((t3,n3)=>{const o3=C(e2,n3,i2);return t3.top=floating_ui_dom_browser_min_p(o3.top,t3.top),t3.right=floating_ui_dom_browser_min_g(o3.right,t3.right),t3.bottom=floating_ui_dom_browser_min_g(o3.bottom,t3.bottom),t3.left=floating_ui_dom_browser_min_p(o3.left,t3.left),t3},C(e2,l2,i2));return{width:c2.right-c2.left,height:c2.bottom-c2.top,x:c2.left,y:c2.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t2){let{rect:e2,offsetParent:n2,strategy:o2}=t2;const i2=floating_ui_dom_browser_min_c(n2),l2=floating_ui_dom_browser_min_v(n2);if(n2===l2)return e2;let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if((i2||!i2&&o2!=="fixed")&&((floating_ui_dom_browser_min_r(n2)!=="body"||floating_ui_dom_browser_min_u(l2))&&(f2=floating_ui_dom_browser_min_y(n2)),floating_ui_dom_browser_min_c(n2))){const t3=floating_ui_dom_browser_min_w(n2,!0);s2.x=t3.x+n2.clientLeft,s2.y=t3.y+n2.clientTop}return{...e2,x:e2.x-f2.scrollLeft+s2.x,y:e2.y-f2.scrollTop+s2.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t2=>{let{reference:e2,floating:n2,strategy:o2}=t2;return{reference:floating_ui_dom_browser_min_b(e2,floating_ui_dom_browser_min_T(n2),o2),floating:{...W(n2),x:0,y:0}}},getClientRects:t2=>Array.from(t2.getClientRects()),isRTL:t2=>floating_ui_dom_browser_min_i(t2).direction==="rtl"};function N(t2,e2,n2,o2){o2===void 0&&(o2={});const{ancestorScroll:i2=!0,ancestorResize:r2=!0,elementResize:l2=!0,animationFrame:c2=!1}=o2,s2=i2&&!c2,u2=r2&&!c2,d2=s2||u2?[...floating_ui_dom_browser_min_f(t2)?H(t2):[],...H(e2)]:[];d2.forEach(t3=>{s2&&t3.addEventListener("scroll",n2,{passive:!0}),u2&&t3.addEventListener("resize",n2)});let h2,a2=null;if(l2){let o3=!0;a2=new ResizeObserver(()=>{o3||n2(),o3=!1}),floating_ui_dom_browser_min_f(t2)&&!c2&&a2.observe(t2),a2.observe(e2)}let g2=c2?floating_ui_dom_browser_min_w(t2):null;return c2&&function e3(){const o3=floating_ui_dom_browser_min_w(t2);!g2||o3.x===g2.x&&o3.y===g2.y&&o3.width===g2.width&&o3.height===g2.height||n2(),g2=o3,h2=requestAnimationFrame(e3)}(),n2(),()=>{var t3;d2.forEach(t4=>{s2&&t4.removeEventListener("scroll",n2),u2&&t4.removeEventListener("resize",n2)}),(t3=a2)==null||t3.disconnect(),a2=null,c2&&cancelAnimationFrame(h2)}}const z=(t2,n2,o2)=>floating_ui_core_browser_min_o(t2,n2,{platform:floating_ui_dom_browser_min_D,...o2});var react=__webpack_require__(59496),react_dom=__webpack_require__(87995),index=typeof document<"u"?react.useLayoutEffect:react.useEffect;function deepEqual(a2,b2){if(a2===b2)return!0;if(typeof a2!=typeof b2)return!1;if(typeof a2=="function"&&a2.toString()===b2.toString())return!0;let length,i2,keys;if(a2&&b2&&typeof a2=="object"){if(Array.isArray(a2)){if(length=a2.length,length!=b2.length)return!1;for(i2=length;i2--!==0;)if(!deepEqual(a2[i2],b2[i2]))return!1;return!0}if(keys=Object.keys(a2),length=keys.length,length!==Object.keys(b2).length)return!1;for(i2=length;i2--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i2]))return!1;for(i2=length;i2--!==0;){const key=keys[i2];if(!(key==="_owner"&&a2.$$typeof)&&!deepEqual(a2[key],b2[key]))return!1}return!0}return a2!==a2&&b2!==b2}function useLatestRef(value2){const ref=react.useRef(value2);return index(()=>{ref.current=value2}),ref}function useFloating(_temp){let{middleware,placement="bottom",strategy="absolute",whileElementsMounted}=_temp===void 0?{}:_temp;const reference=react.useRef(null),floating=react.useRef(null),whileElementsMountedRef=useLatestRef(whileElementsMounted),cleanupRef=react.useRef(null),[data,setData]=react.useState({x:null,y:null,strategy,placement,middlewareData:{}}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware?.map(_ref=>{let{options}=_ref;return options}),middleware?.map(_ref2=>{let{options}=_ref2;return options}))||setLatestMiddleware(middleware);const update=react.useCallback(()=>{!reference.current||!floating.current||z(reference.current,floating.current,{middleware:latestMiddleware,placement,strategy}).then(data2=>{isMountedRef.current&&react_dom.flushSync(()=>{setData(data2)})})},[latestMiddleware,placement,strategy]);index(()=>{isMountedRef.current&&update()},[update]);const isMountedRef=react.useRef(!1);index(()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1}),[]);const runElementMountCallback=react.useCallback(()=>{if(typeof cleanupRef.current=="function"&&(cleanupRef.current(),cleanupRef.current=null),reference.current&&floating.current)if(whileElementsMountedRef.current){const cleanupFn=whileElementsMountedRef.current(reference.current,floating.current,update);cleanupRef.current=cleanupFn}else update()},[update,whileElementsMountedRef]),setReference=react.useCallback(node=>{reference.current=node,runElementMountCallback()},[runElementMountCallback]),setFloating=react.useCallback(node=>{floating.current=node,runElementMountCallback()},[runElementMountCallback]),refs=react.useMemo(()=>({reference,floating}),[]);return react.useMemo(()=>({...data,update,refs,reference:setReference,floating:setFloating}),[data,update,refs,setReference,setFloating])}const arrow=options=>{const{element,padding}=options;function isRef(value2){return Object.prototype.hasOwnProperty.call(value2,"current")}return{name:"arrow",options,fn(args){return isRef(element)?element.current!=null?m({element:element.current,padding}).fn(args):{}:element?m({element,padding}).fn(args):{}}}}},60510:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{fi:()=>popper_createPopper});function getWindow(node){if(node==null)return window;if(node.toString()!=="[object Window]"){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}function isShadowRoot(node){if(typeof ShadowRoot>"u")return!1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}var math_max=Math.max,math_min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getWindowScroll(node){var win=getWindow(node),scrollLeft=win.pageXOffset,scrollTop=win.pageYOffset;return{scrollLeft,scrollTop}}function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}function getNodeScroll(node){return node===getWindow(node)||!isHTMLElement(node)?getWindowScroll(node):getHTMLElementScroll(node)}function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getComputedStyle2(element){return getWindow(element).getComputedStyle(element)}function isScrollParent(element){var _getComputedStyle=getComputedStyle2(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){isFixed===void 0&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&((getNodeName(offsetParent)!=="body"||isScrollParent(documentElement))&&(scroll=getNodeScroll(offsetParent)),isHTMLElement(offsetParent)?(offsets=getBoundingClientRect(offsetParent,!0),offsets.x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;list===void 0&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getTrueOffsetParent(element){return!isHTMLElement(element)||getComputedStyle2(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle2(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle2(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle2(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle2(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}var enums_top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[enums_top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])},[]),enums_placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(modifiers){var map=new Map,visited=new Set,result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier)});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}}),result.push(modifier)}return modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier)}),result}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}function debounce(fn){var pending;return function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn())})})),pending}}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect=="function")})}function popperGenerator(generatorOptions){generatorOptions===void 0&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){options===void 0&&(options=defaultOptions);var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2=typeof setOptionsAction=="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),runModifierEffects(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(!!areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),state.options.strategy==="fixed"),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===!0){state.reset=!1,index=-1;continue}var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;typeof fn=="function"&&(state=fn({state,options:_options,name,instance})||state)}}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate(),resolve(state)})}),destroy:function(){cleanupModifierEffects(),isDestroyed=!0}};if(!areValidElements(reference2,popper2))return instance;instance.setOptions(options).then(function(state2){!isDestroyed&&options.onFirstUpdate&&options.onFirstUpdate(state2)});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref){var name=_ref.name,_ref$options=_ref.options,options2=_ref$options===void 0?{}:_ref$options,effect2=_ref.effect;if(typeof effect2=="function"){var cleanupFn=effect2({state,name,instance,options:options2}),noopFn=function(){};effectCleanupFns.push(cleanupFn||noopFn)}})}function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn()}),effectCleanupFns=[]}return instance}}var createPopper=null,passive={passive:!0};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive)}),resize&&window2.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive)}),resize&&window2.removeEventListener("resize",instance.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};function getBasePlacement(placement){return placement.split("-")[0]}function getVariation(placement){return placement.split("-")[1]}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function computeOffsets(_ref){var reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2,offsets;switch(basePlacement){case enums_top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;default:}}return offsets}function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})}const modifiers_popperOffsets={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=enums_top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle2(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===enums_top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1}if(placement===left||(placement===enums_top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y},getWindow(popper2)):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:state.options.strategy==="fixed"};state.modifiersData.popperOffsets!=null&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),state.modifiersData.arrow!=null&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})}const modifiers_computeStyles={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value2=attributes[name2];value2===!1?element.removeAttribute(name2):element.setAttribute(name2,value2===!0?"":value2)}))})}function applyStyles_effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style=styleProperties.reduce(function(style2,property){return style2[property]="",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}}const modifiers_applyStyles={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:applyStyles_effect,requires:["computeStyles"]};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,enums_top].indexOf(basePlacement)>=0?-1:1,_ref=typeof offset2=="function"?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset,data=enums_placements.reduce(function(acc,placement){return acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets!=null&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}const modifiers_offset={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var getOppositeVariationPlacement_hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return getOppositeVariationPlacement_hash[matched]})}function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&strategy==="fixed")&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width,height,x:x+getWindowScrollBarX(element),y}}function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body,width=math_max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=math_max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return getComputedStyle2(body||html).direction==="rtl"&&(x+=math_max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}function contains(parent2,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent2.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,strategy==="fixed");return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)))}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle2(element).position)>=0,clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=="body"}):[]}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=math_max(rect.top,accRect.top),accRect.right=math_min(rect.right,accRect.right),accRect.bottom=math_min(rect.bottom,accRect.bottom),accRect.left=math_max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value2,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value2,hashMap},{})}function detectOverflow(state,options){options===void 0&&(options={});var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding,paddingObject=mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[enums_top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply})}return overflowOffsets}function computeAutoPlacement(state,options){options===void 0&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?enums_placements:_options$allowedAutoP,variation=getVariation(placement),placements=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});allowedPlacements.length===0&&(allowedPlacements=placements);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),isBasePlacement=basePlacement===preferredPlacement,fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement)),placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i<placements.length;i++){var placement=placements[i],_basePlacement=getBasePlacement(placement),isStartVariation=getVariation(placement)===start,isVertical=[enums_top,bottom].indexOf(_basePlacement)>=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:enums_top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var numberOfChecks=flipVariations?3:1,_loop=function(_i2){var fittingPlacement=placements.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}}const modifiers_flip={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getAltAxis(axis){return axis==="x"?"y":"x"}function within(min,value2,max){return math_max(min,math_min(value2,max))}function withinMaxClamp(min,value2,max){var v=within(min,value2,max);return v>max?max:v}function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=getAltAxis(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue=typeof tetherOffset=="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue=typeof tetherOffsetValue=="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(!!popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide=mainAxis==="y"?enums_top:left,altSide=mainAxis==="y"?bottom:right,len=mainAxis==="y"?"height":"width",offset2=popperOffsets2[mainAxis],min=offset2+overflow[mainSide],max=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject(),arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=(_offsetModifierState$=offsetModifierState?.[mainAxis])!=null?_offsetModifierState$:0,tetherMin=offset2+minOffset-offsetModifierValue-clientOffset,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?math_min(min,tetherMin):min,offset2,tether?math_max(max,tetherMax):max);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2}if(checkAltAxis){var _offsetModifierState$2,_mainSide=mainAxis==="x"?enums_top:left,_altSide=mainAxis==="x"?bottom:right,_offset=popperOffsets2[altAxis],_len=altAxis==="y"?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=[enums_top,left].indexOf(basePlacement)!==-1,_offsetModifierValue=(_offsetModifierState$2=offsetModifierState?.[altAxis])!=null?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}}const modifiers_preventOverflow={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?enums_top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min,center,max),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$)}}function arrow_effect(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;arrowElement!=null&&(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement)||!contains(state.elements.popper,arrowElement)||(state.elements.arrow=arrowElement))}const modifiers_arrow={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:arrow_effect,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getSideOffsets(overflow,rect,preventedOffsets){return preventedOffsets===void 0&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[enums_top,right,bottom,left].some(function(side){return overflow[side]>=0})}function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}var defaultModifiers=[eventListeners,modifiers_popperOffsets,modifiers_computeStyles,modifiers_applyStyles,modifiers_offset,modifiers_flip,modifiers_preventOverflow,modifiers_arrow,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide}],popper_createPopper=popperGenerator({defaultModifiers})},36201:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;var native_link_1=__webpack_require__(5206);Object.defineProperty(exports,"NativeLink",{enumerable:!0,get:function(){return native_link_1.NativeLink}})},5206:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),externalLinkAttributes={rel:"noopener",target:"_blank"};function NativeLink(_a){var{href="",external,replace,onClick}=_a,rest=__rest(_a,["href","external","replace","onClick"]);const externalProps=external?externalLinkAttributes:{},handleClick=react_1.useCallback(e=>{const res=onClick?.(e);return e.defaultPrevented||!replace||external||(e.preventDefault(),window.location.replace(href)),res},[href,replace,onClick]);return react_1.default.createElement("a",Object.assign({},rest,externalProps,{onClick:handleClick,href}))}exports.NativeLink=NativeLink},59529:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;function affix(prefix="",str,suffix=""){return str?`${prefix}${str}${suffix}`:""}exports.affix=affix},65343:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;var affix_1=__webpack_require__(59529);Object.defineProperty(exports,"affix",{enumerable:!0,get:function(){return affix_1.affix}})},63424:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},47765:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(63424);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},91454:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},74155:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(91454);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},3439:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;const legacy_bit_id_1=__webpack_require__(8638),exceptions_1=__webpack_require__(52825);class ComponentID{constructor(legacyComponentId,_scope){this.legacyComponentId=legacyComponentId,this._scope=_scope}get _legacy(){return this.legacyComponentId}hasVersion(){return this._legacy.hasVersion()}get version(){return this.legacyComponentId.version}get namespace(){return this.legacyComponentId.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const arr=this.legacyComponentId.name.split("/");return arr[arr.length-1]}get scope(){const scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(scopeName){const legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId)}changeVersion(version){const legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));const idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){const object=this.legacyComponentId.serialize();return object.scope||(object.scope=this.scope),object}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static fromString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!1);return new ComponentID(legacyId,scope)}static fromObject(object,scope){return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion||(result=result&&a.version===b.version),result}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}}exports.ComponentID=ComponentID},52825:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(86602);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},86602:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope was not defined directly or by "${src}"`)}report(){return this.message}}exports.MissingScope=MissingScope},68345:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;var component_id_1=__webpack_require__(3439);Object.defineProperty(exports,"ComponentID",{enumerable:!0,get:function(){return component_id_1.ComponentID}})},97026:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(32699),component_id_1=__webpack_require__(99978),component_version_1=__webpack_require__(22670);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return Boolean(this.search(componentId))}hasWithoutVersion(componentId){return Boolean(this.searchWithoutVersion(componentId))}hasWithoutScopeAndVersion(componentId){return Boolean(this.searchWithoutScopeAndVersion(componentId))}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{const scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){const componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){const uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{const found=this.filterWithoutVersion(componentId);if(found.length>1)throw new Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
|
1
|
+
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[860],{99674:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{arrow:()=>arrow,autoPlacement:()=>v,autoUpdate:()=>N,computePosition:()=>z,detectOverflow:()=>s,flip:()=>b,getOverflowAncestors:()=>H,hide:()=>P,inline:()=>E,limitShift:()=>L,offset:()=>T,shift:()=>D,size:()=>k,useFloating:()=>useFloating});function t(t2){return t2.split("-")[0]}function e(t2){return t2.split("-")[1]}function n(e2){return["top","bottom"].includes(t(e2))?"x":"y"}function r(t2){return t2==="y"?"height":"width"}function i(i2,o2,a2){let{reference:l2,floating:s2}=i2;const c2=l2.x+l2.width/2-s2.width/2,f2=l2.y+l2.height/2-s2.height/2,u2=n(o2),m2=r(u2),g2=l2[m2]/2-s2[m2]/2,d2=u2==="x";let p2;switch(t(o2)){case"top":p2={x:c2,y:l2.y-s2.height};break;case"bottom":p2={x:c2,y:l2.y+l2.height};break;case"right":p2={x:l2.x+l2.width,y:f2};break;case"left":p2={x:l2.x-s2.width,y:f2};break;default:p2={x:l2.x,y:l2.y}}switch(e(o2)){case"start":p2[u2]-=g2*(a2&&d2?-1:1);break;case"end":p2[u2]+=g2*(a2&&d2?-1:1)}return p2}const floating_ui_core_browser_min_o=async(t2,e2,n2)=>{const{placement:r2="bottom",strategy:o2="absolute",middleware:a2=[],platform:l2}=n2,s2=await(l2.isRTL==null?void 0:l2.isRTL(e2));let c2=await l2.getElementRects({reference:t2,floating:e2,strategy:o2}),{x:f2,y:u2}=i(c2,r2,s2),m2=r2,g2={},d2=0;for(let n3=0;n3<a2.length;n3++){const{name:p2,fn:h2}=a2[n3],{x:y2,y:x2,data:w2,reset:v2}=await h2({x:f2,y:u2,initialPlacement:r2,placement:m2,strategy:o2,middlewareData:g2,rects:c2,platform:l2,elements:{reference:t2,floating:e2}});f2=y2??f2,u2=x2??u2,g2={...g2,[p2]:{...g2[p2],...w2}},v2&&d2<=50&&(d2++,typeof v2=="object"&&(v2.placement&&(m2=v2.placement),v2.rects&&(c2=v2.rects===!0?await l2.getElementRects({reference:t2,floating:e2,strategy:o2}):v2.rects),{x:f2,y:u2}=i(c2,m2,s2)),n3=-1)}return{x:f2,y:u2,placement:m2,strategy:o2,middlewareData:g2}};function a(t2){return typeof t2!="number"?function(t3){return{top:0,right:0,bottom:0,left:0,...t3}}(t2):{top:t2,right:t2,bottom:t2,left:t2}}function l(t2){return{...t2,top:t2.y,left:t2.x,right:t2.x+t2.width,bottom:t2.y+t2.height}}async function s(t2,e2){var n2;e2===void 0&&(e2={});const{x:r2,y:i2,platform:o2,rects:s2,elements:c2,strategy:f2}=t2,{boundary:u2="clippingAncestors",rootBoundary:m2="viewport",elementContext:g2="floating",altBoundary:d2=!1,padding:p2=0}=e2,h2=a(p2),y2=c2[d2?g2==="floating"?"reference":"floating":g2],x2=l(await o2.getClippingRect({element:(n2=await(o2.isElement==null?void 0:o2.isElement(y2)))==null||n2?y2:y2.contextElement||await(o2.getDocumentElement==null?void 0:o2.getDocumentElement(c2.floating)),boundary:u2,rootBoundary:m2,strategy:f2})),w2=l(o2.convertOffsetParentRelativeRectToViewportRelativeRect?await o2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g2==="floating"?{...s2.floating,x:r2,y:i2}:s2.reference,offsetParent:await(o2.getOffsetParent==null?void 0:o2.getOffsetParent(c2.floating)),strategy:f2}):s2[g2]);return{top:x2.top-w2.top+h2.top,bottom:w2.bottom-x2.bottom+h2.bottom,left:x2.left-w2.left+h2.left,right:w2.right-x2.right+h2.right}}const c=Math.min,f=Math.max;function u(t2,e2,n2){return f(t2,c(e2,n2))}const m=t2=>({name:"arrow",options:t2,async fn(i2){const{element:o2,padding:l2=0}=t2??{},{x:s2,y:c2,placement:f2,rects:m2,platform:g2}=i2;if(o2==null)return{};const d2=a(l2),p2={x:s2,y:c2},h2=n(f2),y2=e(f2),x2=r(h2),w2=await g2.getDimensions(o2),v2=h2==="y"?"top":"left",b2=h2==="y"?"bottom":"right",R2=m2.reference[x2]+m2.reference[h2]-p2[h2]-m2.floating[x2],A2=p2[h2]-m2.reference[h2],P2=await(g2.getOffsetParent==null?void 0:g2.getOffsetParent(o2));let T2=P2?h2==="y"?P2.clientHeight||0:P2.clientWidth||0:0;T2===0&&(T2=m2.floating[x2]);const O2=R2/2-A2/2,D2=d2[v2],L2=T2-w2[x2]-d2[b2],k2=T2/2-w2[x2]/2+O2,E2=u(D2,k2,L2),C2=(y2==="start"?d2[v2]:d2[b2])>0&&k2!==E2&&m2.reference[x2]<=m2.floating[x2];return{[h2]:p2[h2]-(C2?k2<D2?D2-k2:L2-k2:0),data:{[h2]:E2,centerOffset:k2-E2}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t2){return t2.replace(/left|right|bottom|top/g,t3=>g[t3])}function p(t2,i2,o2){o2===void 0&&(o2=!1);const a2=e(t2),l2=n(t2),s2=r(l2);let c2=l2==="x"?a2===(o2?"end":"start")?"right":"left":a2==="start"?"bottom":"top";return i2.reference[s2]>i2.floating[s2]&&(c2=d(c2)),{main:c2,cross:d(c2)}}const h={start:"end",end:"start"};function y(t2){return t2.replace(/start|end/g,t3=>h[t3])}const x=["top","right","bottom","left"],w=x.reduce((t2,e2)=>t2.concat(e2,e2+"-start",e2+"-end"),[]),v=function(n2){return n2===void 0&&(n2={}),{name:"autoPlacement",options:n2,async fn(r2){var i2,o2,a2,l2,c2;const{x:f2,y:u2,rects:m2,middlewareData:g2,placement:d2,platform:h2,elements:x2}=r2,{alignment:v2=null,allowedPlacements:b2=w,autoAlignment:R2=!0,...A2}=n2,P2=function(n3,r3,i3){return(n3?[...i3.filter(t2=>e(t2)===n3),...i3.filter(t2=>e(t2)!==n3)]:i3.filter(e2=>t(e2)===e2)).filter(t2=>!n3||e(t2)===n3||!!r3&&y(t2)!==t2)}(v2,R2,b2),T2=await s(r2,A2),O2=(i2=(o2=g2.autoPlacement)==null?void 0:o2.index)!=null?i2:0,D2=P2[O2];if(D2==null)return{};const{main:L2,cross:k2}=p(D2,m2,await(h2.isRTL==null?void 0:h2.isRTL(x2.floating)));if(d2!==D2)return{x:f2,y:u2,reset:{placement:P2[0]}};const E2=[T2[t(D2)],T2[L2],T2[k2]],C2=[...(a2=(l2=g2.autoPlacement)==null?void 0:l2.overflows)!=null?a2:[],{placement:D2,overflows:E2}],H2=P2[O2+1];if(H2)return{data:{index:O2+1,overflows:C2},reset:{placement:H2}};const B=C2.slice().sort((t2,e2)=>t2.overflows[0]-e2.overflows[0]),V=(c2=B.find(t2=>{let{overflows:e2}=t2;return e2.every(t3=>t3<=0)}))==null?void 0:c2.placement,F=V??B[0].placement;return F!==d2?{data:{index:O2+1,overflows:C2},reset:{placement:F}}:{}}}},b=function(e2){return e2===void 0&&(e2={}),{name:"flip",options:e2,async fn(n2){var r2;const{placement:i2,middlewareData:o2,rects:a2,initialPlacement:l2,platform:c2,elements:f2}=n2,{mainAxis:u2=!0,crossAxis:m2=!0,fallbackPlacements:g2,fallbackStrategy:h2="bestFit",flipAlignment:x2=!0,...w2}=e2,v2=t(i2),b2=g2||(v2===l2||!x2?[d(l2)]:function(t2){const e3=d(t2);return[y(t2),e3,y(e3)]}(l2)),R2=[l2,...b2],A2=await s(n2,w2),P2=[];let T2=((r2=o2.flip)==null?void 0:r2.overflows)||[];if(u2&&P2.push(A2[v2]),m2){const{main:t2,cross:e3}=p(i2,a2,await(c2.isRTL==null?void 0:c2.isRTL(f2.floating)));P2.push(A2[t2],A2[e3])}if(T2=[...T2,{placement:i2,overflows:P2}],!P2.every(t2=>t2<=0)){var O2,D2;const t2=((O2=(D2=o2.flip)==null?void 0:D2.index)!=null?O2:0)+1,e3=R2[t2];if(e3)return{data:{index:t2,overflows:T2},reset:{placement:e3}};let n3="bottom";switch(h2){case"bestFit":{var L2;const t3=(L2=T2.map(t4=>[t4,t4.overflows.filter(t5=>t5>0).reduce((t5,e4)=>t5+e4,0)]).sort((t4,e4)=>t4[1]-e4[1])[0])==null?void 0:L2[0].placement;t3&&(n3=t3);break}case"initialPlacement":n3=l2}if(i2!==n3)return{reset:{placement:n3}}}return{}}}};function R(t2,e2){return{top:t2.top-e2.height,right:t2.right-e2.width,bottom:t2.bottom-e2.height,left:t2.left-e2.width}}function A(t2){return x.some(e2=>t2[e2]>=0)}const P=function(t2){let{strategy:e2="referenceHidden",...n2}=t2===void 0?{}:t2;return{name:"hide",async fn(t3){const{rects:r2}=t3;switch(e2){case"referenceHidden":{const e3=R(await s(t3,{...n2,elementContext:"reference"}),r2.reference);return{data:{referenceHiddenOffsets:e3,referenceHidden:A(e3)}}}case"escaped":{const e3=R(await s(t3,{...n2,altBoundary:!0}),r2.floating);return{data:{escapedOffsets:e3,escaped:A(e3)}}}default:return{}}}}},T=function(r2){return r2===void 0&&(r2=0),{name:"offset",options:r2,async fn(i2){const{x:o2,y:a2}=i2,l2=await async function(r3,i3){const{placement:o3,platform:a3,elements:l3}=r3,s2=await(a3.isRTL==null?void 0:a3.isRTL(l3.floating)),c2=t(o3),f2=e(o3),u2=n(o3)==="x",m2=["left","top"].includes(c2)?-1:1,g2=s2&&u2?-1:1,d2=typeof i3=="function"?i3(r3):i3;let{mainAxis:p2,crossAxis:h2,alignmentAxis:y2}=typeof d2=="number"?{mainAxis:d2,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d2};return f2&&typeof y2=="number"&&(h2=f2==="end"?-1*y2:y2),u2?{x:h2*g2,y:p2*m2}:{x:p2*m2,y:h2*g2}}(i2,r2);return{x:o2+l2.x,y:a2+l2.y,data:l2}}}};function O(t2){return t2==="x"?"y":"x"}const D=function(e2){return e2===void 0&&(e2={}),{name:"shift",options:e2,async fn(r2){const{x:i2,y:o2,placement:a2}=r2,{mainAxis:l2=!0,crossAxis:c2=!1,limiter:f2={fn:t2=>{let{x:e3,y:n2}=t2;return{x:e3,y:n2}}},...m2}=e2,g2={x:i2,y:o2},d2=await s(r2,m2),p2=n(t(a2)),h2=O(p2);let y2=g2[p2],x2=g2[h2];if(l2){const t2=p2==="y"?"bottom":"right";y2=u(y2+d2[p2==="y"?"top":"left"],y2,y2-d2[t2])}if(c2){const t2=h2==="y"?"bottom":"right";x2=u(x2+d2[h2==="y"?"top":"left"],x2,x2-d2[t2])}const w2=f2.fn({...r2,[p2]:y2,[h2]:x2});return{...w2,data:{x:w2.x-i2,y:w2.y-o2}}}}},L=function(e2){return e2===void 0&&(e2={}),{options:e2,fn(r2){const{x:i2,y:o2,placement:a2,rects:l2,middlewareData:s2}=r2,{offset:c2=0,mainAxis:f2=!0,crossAxis:u2=!0}=e2,m2={x:i2,y:o2},g2=n(a2),d2=O(g2);let p2=m2[g2],h2=m2[d2];const y2=typeof c2=="function"?c2({...l2,placement:a2}):c2,x2=typeof y2=="number"?{mainAxis:y2,crossAxis:0}:{mainAxis:0,crossAxis:0,...y2};if(f2){const t2=g2==="y"?"height":"width",e3=l2.reference[g2]-l2.floating[t2]+x2.mainAxis,n2=l2.reference[g2]+l2.reference[t2]-x2.mainAxis;p2<e3?p2=e3:p2>n2&&(p2=n2)}if(u2){var w2,v2,b2,R2;const e3=g2==="y"?"width":"height",n2=["top","left"].includes(t(a2)),r3=l2.reference[d2]-l2.floating[e3]+(n2&&(w2=(v2=s2.offset)==null?void 0:v2[d2])!=null?w2:0)+(n2?0:x2.crossAxis),i3=l2.reference[d2]+l2.reference[e3]+(n2?0:(b2=(R2=s2.offset)==null?void 0:R2[d2])!=null?b2:0)-(n2?x2.crossAxis:0);h2<r3?h2=r3:h2>i3&&(h2=i3)}return{[g2]:p2,[d2]:h2}}}},k=function(n2){return n2===void 0&&(n2={}),{name:"size",options:n2,async fn(r2){const{placement:i2,rects:o2,platform:a2,elements:l2}=r2,{apply:c2,...u2}=n2,m2=await s(r2,u2),g2=t(i2),d2=e(i2);let p2,h2;g2==="top"||g2==="bottom"?(p2=g2,h2=d2===(await(a2.isRTL==null?void 0:a2.isRTL(l2.floating))?"start":"end")?"left":"right"):(h2=g2,p2=d2==="end"?"top":"bottom");const y2=f(m2.left,0),x2=f(m2.right,0),w2=f(m2.top,0),v2=f(m2.bottom,0),b2={availableHeight:o2.floating.height-(["left","right"].includes(i2)?2*(w2!==0||v2!==0?w2+v2:f(m2.top,m2.bottom)):m2[p2]),availableWidth:o2.floating.width-(["top","bottom"].includes(i2)?2*(y2!==0||x2!==0?y2+x2:f(m2.left,m2.right)):m2[h2])},R2=await a2.getDimensions(l2.floating);c2?.({...r2,...b2});const A2=await a2.getDimensions(l2.floating);return R2.width!==A2.width||R2.height!==A2.height?{reset:{rects:!0}}:{}}}},E=function(e2){return e2===void 0&&(e2={}),{name:"inline",options:e2,async fn(r2){var i2;const{placement:o2,elements:s2,rects:u2,platform:m2,strategy:g2}=r2,{padding:d2=2,x:p2,y:h2}=e2,y2=l(m2.convertOffsetParentRelativeRectToViewportRelativeRect?await m2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u2.reference,offsetParent:await(m2.getOffsetParent==null?void 0:m2.getOffsetParent(s2.floating)),strategy:g2}):u2.reference),x2=(i2=await(m2.getClientRects==null?void 0:m2.getClientRects(s2.reference)))!=null?i2:[],w2=a(d2),v2=await m2.getElementRects({reference:{getBoundingClientRect:function(){var e3;if(x2.length===2&&x2[0].left>x2[1].right&&p2!=null&&h2!=null)return(e3=x2.find(t2=>p2>t2.left-w2.left&&p2<t2.right+w2.right&&h2>t2.top-w2.top&&h2<t2.bottom+w2.bottom))!=null?e3:y2;if(x2.length>=2){if(n(o2)==="x"){const e5=x2[0],n2=x2[x2.length-1],r4=t(o2)==="top",i4=e5.top,a3=n2.bottom,l3=r4?e5.left:n2.left,s4=r4?e5.right:n2.right;return{top:i4,bottom:a3,left:l3,right:s4,width:s4-l3,height:a3-i4,x:l3,y:i4}}const e4=t(o2)==="left",r3=f(...x2.map(t2=>t2.right)),i3=c(...x2.map(t2=>t2.left)),a2=x2.filter(t2=>e4?t2.left===i3:t2.right===r3),l2=a2[0].top,s3=a2[a2.length-1].bottom;return{top:l2,bottom:s3,left:i3,right:r3,width:r3-i3,height:s3-l2,x:i3,y:l2}}return y2}},floating:s2.floating,strategy:g2});return u2.reference.x!==v2.reference.x||u2.reference.y!==v2.reference.y||u2.reference.width!==v2.reference.width||u2.reference.height!==v2.reference.height?{reset:{rects:v2}}:{}}}};function floating_ui_dom_browser_min_n(t2){return t2&&t2.document&&t2.location&&t2.alert&&t2.setInterval}function o(t2){if(t2==null)return window;if(!floating_ui_dom_browser_min_n(t2)){const e2=t2.ownerDocument;return e2&&e2.defaultView||window}return t2}function floating_ui_dom_browser_min_i(t2){return o(t2).getComputedStyle(t2)}function floating_ui_dom_browser_min_r(t2){return floating_ui_dom_browser_min_n(t2)?"":t2?(t2.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t2=navigator.userAgentData;return t2!=null&&t2.brands?t2.brands.map(t3=>t3.brand+"/"+t3.version).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t2){return t2 instanceof o(t2).HTMLElement}function floating_ui_dom_browser_min_f(t2){return t2 instanceof o(t2).Element}function floating_ui_dom_browser_min_s(t2){return typeof ShadowRoot>"u"?!1:t2 instanceof o(t2).ShadowRoot||t2 instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t2){const{overflow:e2,overflowX:n2,overflowY:o2}=floating_ui_dom_browser_min_i(t2);return/auto|scroll|overlay|hidden/.test(e2+o2+n2)}function floating_ui_dom_browser_min_d(t2){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t2))}function floating_ui_dom_browser_min_h(t2){const e2=/firefox/i.test(floating_ui_dom_browser_min_l()),n2=floating_ui_dom_browser_min_i(t2);return n2.transform!=="none"||n2.perspective!=="none"||n2.contain==="paint"||["transform","perspective"].includes(n2.willChange)||e2&&n2.willChange==="filter"||e2&&!!n2.filter&&n2.filter!=="none"}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t2,e2,n2){var i2,r2,l2,s2;e2===void 0&&(e2=!1),n2===void 0&&(n2=!1);const u2=t2.getBoundingClientRect();let d2=1,h2=1;e2&&floating_ui_dom_browser_min_c(t2)&&(d2=t2.offsetWidth>0&&floating_ui_dom_browser_min_m(u2.width)/t2.offsetWidth||1,h2=t2.offsetHeight>0&&floating_ui_dom_browser_min_m(u2.height)/t2.offsetHeight||1);const g2=floating_ui_dom_browser_min_f(t2)?o(t2):window,p2=!floating_ui_dom_browser_min_a()&&n2,w2=(u2.left+(p2&&(i2=(r2=g2.visualViewport)==null?void 0:r2.offsetLeft)!=null?i2:0))/d2,v2=(u2.top+(p2&&(l2=(s2=g2.visualViewport)==null?void 0:s2.offsetTop)!=null?l2:0))/h2,y2=u2.width/d2,x2=u2.height/h2;return{width:y2,height:x2,top:v2,right:w2+y2,bottom:v2+x2,left:w2,x:w2,y:v2}}function floating_ui_dom_browser_min_v(t2){return(e2=t2,(e2 instanceof o(e2).Node?t2.ownerDocument:t2.document)||window.document).documentElement;var e2}function floating_ui_dom_browser_min_y(t2){return floating_ui_dom_browser_min_f(t2)?{scrollLeft:t2.scrollLeft,scrollTop:t2.scrollTop}:{scrollLeft:t2.pageXOffset,scrollTop:t2.pageYOffset}}function floating_ui_dom_browser_min_x(t2){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t2)).left+floating_ui_dom_browser_min_y(t2).scrollLeft}function floating_ui_dom_browser_min_b(t2,e2,n2){const o2=floating_ui_dom_browser_min_c(e2),i2=floating_ui_dom_browser_min_v(e2),l2=floating_ui_dom_browser_min_w(t2,o2&&function(t3){const e3=floating_ui_dom_browser_min_w(t3);return floating_ui_dom_browser_min_m(e3.width)!==t3.offsetWidth||floating_ui_dom_browser_min_m(e3.height)!==t3.offsetHeight}(e2),n2==="fixed");let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if(o2||!o2&&n2!=="fixed")if((floating_ui_dom_browser_min_r(e2)!=="body"||floating_ui_dom_browser_min_u(i2))&&(f2=floating_ui_dom_browser_min_y(e2)),floating_ui_dom_browser_min_c(e2)){const t3=floating_ui_dom_browser_min_w(e2,!0);s2.x=t3.x+e2.clientLeft,s2.y=t3.y+e2.clientTop}else i2&&(s2.x=floating_ui_dom_browser_min_x(i2));return{x:l2.left+f2.scrollLeft-s2.x,y:l2.top+f2.scrollTop-s2.y,width:l2.width,height:l2.height}}function floating_ui_dom_browser_min_L(t2){return floating_ui_dom_browser_min_r(t2)==="html"?t2:t2.assignedSlot||t2.parentNode||(floating_ui_dom_browser_min_s(t2)?t2.host:null)||floating_ui_dom_browser_min_v(t2)}function floating_ui_dom_browser_min_R(t2){return floating_ui_dom_browser_min_c(t2)&&getComputedStyle(t2).position!=="fixed"?t2.offsetParent:null}function floating_ui_dom_browser_min_T(t2){const e2=o(t2);let n2=floating_ui_dom_browser_min_R(t2);for(;n2&&floating_ui_dom_browser_min_d(n2)&&getComputedStyle(n2).position==="static";)n2=floating_ui_dom_browser_min_R(n2);return n2&&(floating_ui_dom_browser_min_r(n2)==="html"||floating_ui_dom_browser_min_r(n2)==="body"&&getComputedStyle(n2).position==="static"&&!floating_ui_dom_browser_min_h(n2))?e2:n2||function(t3){let e3=floating_ui_dom_browser_min_L(t3);for(floating_ui_dom_browser_min_s(e3)&&(e3=e3.host);floating_ui_dom_browser_min_c(e3)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e3));){if(floating_ui_dom_browser_min_h(e3))return e3;e3=e3.parentNode}return null}(t2)||e2}function W(t2){if(floating_ui_dom_browser_min_c(t2))return{width:t2.offsetWidth,height:t2.offsetHeight};const e2=floating_ui_dom_browser_min_w(t2);return{width:e2.width,height:e2.height}}function floating_ui_dom_browser_min_E(t2){const e2=floating_ui_dom_browser_min_L(t2);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e2))?t2.ownerDocument.body:floating_ui_dom_browser_min_c(e2)&&floating_ui_dom_browser_min_u(e2)?e2:floating_ui_dom_browser_min_E(e2)}function H(t2,e2){var n2;e2===void 0&&(e2=[]);const i2=floating_ui_dom_browser_min_E(t2),r2=i2===((n2=t2.ownerDocument)==null?void 0:n2.body),l2=o(i2),c2=r2?[l2].concat(l2.visualViewport||[],floating_ui_dom_browser_min_u(i2)?i2:[]):i2,f2=e2.concat(c2);return r2?f2:f2.concat(H(c2))}function C(e2,n2,r2){return n2==="viewport"?l(function(t2,e3){const n3=o(t2),i2=floating_ui_dom_browser_min_v(t2),r3=n3.visualViewport;let l2=i2.clientWidth,c2=i2.clientHeight,f2=0,s2=0;if(r3){l2=r3.width,c2=r3.height;const t3=floating_ui_dom_browser_min_a();(t3||!t3&&e3==="fixed")&&(f2=r3.offsetLeft,s2=r3.offsetTop)}return{width:l2,height:c2,x:f2,y:s2}}(e2,r2)):floating_ui_dom_browser_min_f(n2)?function(t2,e3){const n3=floating_ui_dom_browser_min_w(t2,!1,e3==="fixed"),o2=n3.top+t2.clientTop,i2=n3.left+t2.clientLeft;return{top:o2,left:i2,x:i2,y:o2,right:i2+t2.clientWidth,bottom:o2+t2.clientHeight,width:t2.clientWidth,height:t2.clientHeight}}(n2,r2):l(function(t2){var e3;const n3=floating_ui_dom_browser_min_v(t2),o2=floating_ui_dom_browser_min_y(t2),r3=(e3=t2.ownerDocument)==null?void 0:e3.body,l2=floating_ui_dom_browser_min_p(n3.scrollWidth,n3.clientWidth,r3?r3.scrollWidth:0,r3?r3.clientWidth:0),c2=floating_ui_dom_browser_min_p(n3.scrollHeight,n3.clientHeight,r3?r3.scrollHeight:0,r3?r3.clientHeight:0);let f2=-o2.scrollLeft+floating_ui_dom_browser_min_x(t2);const s2=-o2.scrollTop;return floating_ui_dom_browser_min_i(r3||n3).direction==="rtl"&&(f2+=floating_ui_dom_browser_min_p(n3.clientWidth,r3?r3.clientWidth:0)-l2),{width:l2,height:c2,x:f2,y:s2}}(floating_ui_dom_browser_min_v(e2)))}function S(t2){const e2=H(t2),n2=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t2).position)&&floating_ui_dom_browser_min_c(t2)?floating_ui_dom_browser_min_T(t2):t2;return floating_ui_dom_browser_min_f(n2)?e2.filter(t3=>floating_ui_dom_browser_min_f(t3)&&function(t4,e3){const n3=e3.getRootNode==null?void 0:e3.getRootNode();if(t4.contains(e3))return!0;if(n3&&floating_ui_dom_browser_min_s(n3)){let n4=e3;do{if(n4&&t4===n4)return!0;n4=n4.parentNode||n4.host}while(n4)}return!1}(t3,n2)&&floating_ui_dom_browser_min_r(t3)!=="body"):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t2){let{element:e2,boundary:n2,rootBoundary:o2,strategy:i2}=t2;const r2=[...n2==="clippingAncestors"?S(e2):[].concat(n2),o2],l2=r2[0],c2=r2.reduce((t3,n3)=>{const o3=C(e2,n3,i2);return t3.top=floating_ui_dom_browser_min_p(o3.top,t3.top),t3.right=floating_ui_dom_browser_min_g(o3.right,t3.right),t3.bottom=floating_ui_dom_browser_min_g(o3.bottom,t3.bottom),t3.left=floating_ui_dom_browser_min_p(o3.left,t3.left),t3},C(e2,l2,i2));return{width:c2.right-c2.left,height:c2.bottom-c2.top,x:c2.left,y:c2.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t2){let{rect:e2,offsetParent:n2,strategy:o2}=t2;const i2=floating_ui_dom_browser_min_c(n2),l2=floating_ui_dom_browser_min_v(n2);if(n2===l2)return e2;let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if((i2||!i2&&o2!=="fixed")&&((floating_ui_dom_browser_min_r(n2)!=="body"||floating_ui_dom_browser_min_u(l2))&&(f2=floating_ui_dom_browser_min_y(n2)),floating_ui_dom_browser_min_c(n2))){const t3=floating_ui_dom_browser_min_w(n2,!0);s2.x=t3.x+n2.clientLeft,s2.y=t3.y+n2.clientTop}return{...e2,x:e2.x-f2.scrollLeft+s2.x,y:e2.y-f2.scrollTop+s2.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t2=>{let{reference:e2,floating:n2,strategy:o2}=t2;return{reference:floating_ui_dom_browser_min_b(e2,floating_ui_dom_browser_min_T(n2),o2),floating:{...W(n2),x:0,y:0}}},getClientRects:t2=>Array.from(t2.getClientRects()),isRTL:t2=>floating_ui_dom_browser_min_i(t2).direction==="rtl"};function N(t2,e2,n2,o2){o2===void 0&&(o2={});const{ancestorScroll:i2=!0,ancestorResize:r2=!0,elementResize:l2=!0,animationFrame:c2=!1}=o2,s2=i2&&!c2,u2=r2&&!c2,d2=s2||u2?[...floating_ui_dom_browser_min_f(t2)?H(t2):[],...H(e2)]:[];d2.forEach(t3=>{s2&&t3.addEventListener("scroll",n2,{passive:!0}),u2&&t3.addEventListener("resize",n2)});let h2,a2=null;if(l2){let o3=!0;a2=new ResizeObserver(()=>{o3||n2(),o3=!1}),floating_ui_dom_browser_min_f(t2)&&!c2&&a2.observe(t2),a2.observe(e2)}let g2=c2?floating_ui_dom_browser_min_w(t2):null;return c2&&function e3(){const o3=floating_ui_dom_browser_min_w(t2);!g2||o3.x===g2.x&&o3.y===g2.y&&o3.width===g2.width&&o3.height===g2.height||n2(),g2=o3,h2=requestAnimationFrame(e3)}(),n2(),()=>{var t3;d2.forEach(t4=>{s2&&t4.removeEventListener("scroll",n2),u2&&t4.removeEventListener("resize",n2)}),(t3=a2)==null||t3.disconnect(),a2=null,c2&&cancelAnimationFrame(h2)}}const z=(t2,n2,o2)=>floating_ui_core_browser_min_o(t2,n2,{platform:floating_ui_dom_browser_min_D,...o2});var react=__webpack_require__(59496),react_dom=__webpack_require__(87995),index=typeof document<"u"?react.useLayoutEffect:react.useEffect;function deepEqual(a2,b2){if(a2===b2)return!0;if(typeof a2!=typeof b2)return!1;if(typeof a2=="function"&&a2.toString()===b2.toString())return!0;let length,i2,keys;if(a2&&b2&&typeof a2=="object"){if(Array.isArray(a2)){if(length=a2.length,length!=b2.length)return!1;for(i2=length;i2--!==0;)if(!deepEqual(a2[i2],b2[i2]))return!1;return!0}if(keys=Object.keys(a2),length=keys.length,length!==Object.keys(b2).length)return!1;for(i2=length;i2--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i2]))return!1;for(i2=length;i2--!==0;){const key=keys[i2];if(!(key==="_owner"&&a2.$$typeof)&&!deepEqual(a2[key],b2[key]))return!1}return!0}return a2!==a2&&b2!==b2}function useLatestRef(value2){const ref=react.useRef(value2);return index(()=>{ref.current=value2}),ref}function useFloating(_temp){let{middleware,placement="bottom",strategy="absolute",whileElementsMounted}=_temp===void 0?{}:_temp;const reference=react.useRef(null),floating=react.useRef(null),whileElementsMountedRef=useLatestRef(whileElementsMounted),cleanupRef=react.useRef(null),[data,setData]=react.useState({x:null,y:null,strategy,placement,middlewareData:{}}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware?.map(_ref=>{let{options}=_ref;return options}),middleware?.map(_ref2=>{let{options}=_ref2;return options}))||setLatestMiddleware(middleware);const update=react.useCallback(()=>{!reference.current||!floating.current||z(reference.current,floating.current,{middleware:latestMiddleware,placement,strategy}).then(data2=>{isMountedRef.current&&react_dom.flushSync(()=>{setData(data2)})})},[latestMiddleware,placement,strategy]);index(()=>{isMountedRef.current&&update()},[update]);const isMountedRef=react.useRef(!1);index(()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1}),[]);const runElementMountCallback=react.useCallback(()=>{if(typeof cleanupRef.current=="function"&&(cleanupRef.current(),cleanupRef.current=null),reference.current&&floating.current)if(whileElementsMountedRef.current){const cleanupFn=whileElementsMountedRef.current(reference.current,floating.current,update);cleanupRef.current=cleanupFn}else update()},[update,whileElementsMountedRef]),setReference=react.useCallback(node=>{reference.current=node,runElementMountCallback()},[runElementMountCallback]),setFloating=react.useCallback(node=>{floating.current=node,runElementMountCallback()},[runElementMountCallback]),refs=react.useMemo(()=>({reference,floating}),[]);return react.useMemo(()=>({...data,update,refs,reference:setReference,floating:setFloating}),[data,update,refs,setReference,setFloating])}const arrow=options=>{const{element,padding}=options;function isRef(value2){return Object.prototype.hasOwnProperty.call(value2,"current")}return{name:"arrow",options,fn(args){return isRef(element)?element.current!=null?m({element:element.current,padding}).fn(args):{}:element?m({element,padding}).fn(args):{}}}}},60510:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{fi:()=>popper_createPopper});function getWindow(node){if(node==null)return window;if(node.toString()!=="[object Window]"){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}function isShadowRoot(node){if(typeof ShadowRoot>"u")return!1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}var math_max=Math.max,math_min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getWindowScroll(node){var win=getWindow(node),scrollLeft=win.pageXOffset,scrollTop=win.pageYOffset;return{scrollLeft,scrollTop}}function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}function getNodeScroll(node){return node===getWindow(node)||!isHTMLElement(node)?getWindowScroll(node):getHTMLElementScroll(node)}function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getComputedStyle2(element){return getWindow(element).getComputedStyle(element)}function isScrollParent(element){var _getComputedStyle=getComputedStyle2(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){isFixed===void 0&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&((getNodeName(offsetParent)!=="body"||isScrollParent(documentElement))&&(scroll=getNodeScroll(offsetParent)),isHTMLElement(offsetParent)?(offsets=getBoundingClientRect(offsetParent,!0),offsets.x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;list===void 0&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getTrueOffsetParent(element){return!isHTMLElement(element)||getComputedStyle2(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle2(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle2(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle2(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle2(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}var enums_top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[enums_top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])},[]),enums_placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(modifiers){var map=new Map,visited=new Set,result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier)});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}}),result.push(modifier)}return modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier)}),result}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}function debounce(fn){var pending;return function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn())})})),pending}}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect=="function")})}function popperGenerator(generatorOptions){generatorOptions===void 0&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){options===void 0&&(options=defaultOptions);var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2=typeof setOptionsAction=="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),runModifierEffects(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(!!areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),state.options.strategy==="fixed"),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===!0){state.reset=!1,index=-1;continue}var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;typeof fn=="function"&&(state=fn({state,options:_options,name,instance})||state)}}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate(),resolve(state)})}),destroy:function(){cleanupModifierEffects(),isDestroyed=!0}};if(!areValidElements(reference2,popper2))return instance;instance.setOptions(options).then(function(state2){!isDestroyed&&options.onFirstUpdate&&options.onFirstUpdate(state2)});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref){var name=_ref.name,_ref$options=_ref.options,options2=_ref$options===void 0?{}:_ref$options,effect2=_ref.effect;if(typeof effect2=="function"){var cleanupFn=effect2({state,name,instance,options:options2}),noopFn=function(){};effectCleanupFns.push(cleanupFn||noopFn)}})}function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn()}),effectCleanupFns=[]}return instance}}var createPopper=null,passive={passive:!0};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive)}),resize&&window2.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive)}),resize&&window2.removeEventListener("resize",instance.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};function getBasePlacement(placement){return placement.split("-")[0]}function getVariation(placement){return placement.split("-")[1]}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function computeOffsets(_ref){var reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2,offsets;switch(basePlacement){case enums_top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;default:}}return offsets}function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})}const modifiers_popperOffsets={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=enums_top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle2(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===enums_top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1}if(placement===left||(placement===enums_top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y},getWindow(popper2)):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:state.options.strategy==="fixed"};state.modifiersData.popperOffsets!=null&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),state.modifiersData.arrow!=null&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})}const modifiers_computeStyles={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value2=attributes[name2];value2===!1?element.removeAttribute(name2):element.setAttribute(name2,value2===!0?"":value2)}))})}function applyStyles_effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style=styleProperties.reduce(function(style2,property){return style2[property]="",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}}const modifiers_applyStyles={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:applyStyles_effect,requires:["computeStyles"]};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,enums_top].indexOf(basePlacement)>=0?-1:1,_ref=typeof offset2=="function"?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset,data=enums_placements.reduce(function(acc,placement){return acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets!=null&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}const modifiers_offset={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var getOppositeVariationPlacement_hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return getOppositeVariationPlacement_hash[matched]})}function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&strategy==="fixed")&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width,height,x:x+getWindowScrollBarX(element),y}}function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body,width=math_max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=math_max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return getComputedStyle2(body||html).direction==="rtl"&&(x+=math_max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}function contains(parent2,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent2.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,strategy==="fixed");return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)))}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle2(element).position)>=0,clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=="body"}):[]}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=math_max(rect.top,accRect.top),accRect.right=math_min(rect.right,accRect.right),accRect.bottom=math_min(rect.bottom,accRect.bottom),accRect.left=math_max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value2,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value2,hashMap},{})}function detectOverflow(state,options){options===void 0&&(options={});var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding,paddingObject=mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[enums_top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply})}return overflowOffsets}function computeAutoPlacement(state,options){options===void 0&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?enums_placements:_options$allowedAutoP,variation=getVariation(placement),placements=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});allowedPlacements.length===0&&(allowedPlacements=placements);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),isBasePlacement=basePlacement===preferredPlacement,fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement)),placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i<placements.length;i++){var placement=placements[i],_basePlacement=getBasePlacement(placement),isStartVariation=getVariation(placement)===start,isVertical=[enums_top,bottom].indexOf(_basePlacement)>=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:enums_top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var numberOfChecks=flipVariations?3:1,_loop=function(_i2){var fittingPlacement=placements.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}}const modifiers_flip={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getAltAxis(axis){return axis==="x"?"y":"x"}function within(min,value2,max){return math_max(min,math_min(value2,max))}function withinMaxClamp(min,value2,max){var v=within(min,value2,max);return v>max?max:v}function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=getAltAxis(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue=typeof tetherOffset=="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue=typeof tetherOffsetValue=="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(!!popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide=mainAxis==="y"?enums_top:left,altSide=mainAxis==="y"?bottom:right,len=mainAxis==="y"?"height":"width",offset2=popperOffsets2[mainAxis],min=offset2+overflow[mainSide],max=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject(),arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=(_offsetModifierState$=offsetModifierState?.[mainAxis])!=null?_offsetModifierState$:0,tetherMin=offset2+minOffset-offsetModifierValue-clientOffset,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?math_min(min,tetherMin):min,offset2,tether?math_max(max,tetherMax):max);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2}if(checkAltAxis){var _offsetModifierState$2,_mainSide=mainAxis==="x"?enums_top:left,_altSide=mainAxis==="x"?bottom:right,_offset=popperOffsets2[altAxis],_len=altAxis==="y"?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=[enums_top,left].indexOf(basePlacement)!==-1,_offsetModifierValue=(_offsetModifierState$2=offsetModifierState?.[altAxis])!=null?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}}const modifiers_preventOverflow={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?enums_top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min,center,max),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$)}}function arrow_effect(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;arrowElement!=null&&(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement)||!contains(state.elements.popper,arrowElement)||(state.elements.arrow=arrowElement))}const modifiers_arrow={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:arrow_effect,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getSideOffsets(overflow,rect,preventedOffsets){return preventedOffsets===void 0&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[enums_top,right,bottom,left].some(function(side){return overflow[side]>=0})}function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}var defaultModifiers=[eventListeners,modifiers_popperOffsets,modifiers_computeStyles,modifiers_applyStyles,modifiers_offset,modifiers_flip,modifiers_preventOverflow,modifiers_arrow,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide}],popper_createPopper=popperGenerator({defaultModifiers})},54251:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;var native_link_1=__webpack_require__(18714);Object.defineProperty(exports,"NativeLink",{enumerable:!0,get:function(){return native_link_1.NativeLink}})},18714:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),externalLinkAttributes={rel:"noopener",target:"_blank"};function NativeLink(_a){var{href="",external,replace,onClick}=_a,rest=__rest(_a,["href","external","replace","onClick"]);const externalProps=external?externalLinkAttributes:{},handleClick=react_1.useCallback(e=>{const res=onClick?.(e);return e.defaultPrevented||!replace||external||(e.preventDefault(),window.location.replace(href)),res},[href,replace,onClick]);return react_1.default.createElement("a",Object.assign({},rest,externalProps,{onClick:handleClick,href}))}exports.NativeLink=NativeLink},27069:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;function affix(prefix="",str,suffix=""){return str?`${prefix}${str}${suffix}`:""}exports.affix=affix},6480:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;var affix_1=__webpack_require__(27069);Object.defineProperty(exports,"affix",{enumerable:!0,get:function(){return affix_1.affix}})},63424:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},47765:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(63424);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},91454:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},74155:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(91454);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},3439:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;const legacy_bit_id_1=__webpack_require__(8638),exceptions_1=__webpack_require__(52825);class ComponentID{constructor(legacyComponentId,_scope){this.legacyComponentId=legacyComponentId,this._scope=_scope}get _legacy(){return this.legacyComponentId}hasVersion(){return this._legacy.hasVersion()}get version(){return this.legacyComponentId.version}get namespace(){return this.legacyComponentId.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const arr=this.legacyComponentId.name.split("/");return arr[arr.length-1]}get scope(){const scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(scopeName){const legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId)}changeVersion(version){const legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));const idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){const object=this.legacyComponentId.serialize();return object.scope||(object.scope=this.scope),object}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static fromString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!1);return new ComponentID(legacyId,scope)}static fromObject(object,scope){return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion||(result=result&&a.version===b.version),result}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}}exports.ComponentID=ComponentID},52825:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(86602);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},86602:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope was not defined directly or by "${src}"`)}report(){return this.message}}exports.MissingScope=MissingScope},68345:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;var component_id_1=__webpack_require__(3439);Object.defineProperty(exports,"ComponentID",{enumerable:!0,get:function(){return component_id_1.ComponentID}})},97026:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(32699),component_id_1=__webpack_require__(99978),component_version_1=__webpack_require__(22670);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return Boolean(this.search(componentId))}hasWithoutVersion(componentId){return Boolean(this.searchWithoutVersion(componentId))}hasWithoutScopeAndVersion(componentId){return Boolean(this.searchWithoutScopeAndVersion(componentId))}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{const scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){const componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){const uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{const found=this.filterWithoutVersion(componentId);if(found.length>1)throw new Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
|
2
2
|
${found.map(id=>id.toString()).join(`
|
3
3
|
`)}`)})}toVersionLatest(){return ComponentIdList.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){return ComponentIdList.fromArray(this.map(id=>id.clone()))}}exports.ComponentIdList=ComponentIdList},91722:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;const legacy_bit_id_1=__webpack_require__(13440),exceptions_1=__webpack_require__(75915);class ComponentID{constructor(_legacy,_scope){if(this._legacy=_legacy,this._scope=_scope,!_legacy.name)throw new Error(`ComponentID expects to get an object with "name" prop. got ${_legacy}`);if(!_scope&&!_legacy.scope)throw new exceptions_1.MissingScope(_legacy)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const arr=this._legacy.name.split("/");return arr[arr.length-1]}get scope(){const scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(scopeName){const legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId,this.scope)}changeDefaultScope(scopeName){return ComponentID.fromLegacy(this._legacy,scopeName)}changeVersion(version){const legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}isEqualWithoutVersion(id){return this.isEqual(id,{ignoreVersion:!0})}isLocal(scopeName){return this._legacy.isLocal(scopeName)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(id){return ComponentID.fromObject(id)}static isValidVersion(version){return legacy_bit_id_1.BitId.isValidVersion(version)}static getVersionFromString(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[1]}static getStringWithoutVersion(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}hasSameVersion(id){return this._legacy.hasSameVersion(id._legacy)}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));const idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){const object=this._legacy.serialize();return object.scope||(object.scope=this.scope),object}clone(){return ComponentID.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static isValidCompIdStr(idStr){return Boolean(ComponentID.tryFromString(idStr))}static fromString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!1);return new ComponentID(legacyId,scope)}static fromObject(object,scope){if(object instanceof ComponentID)throw new Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${object.toString()}`);return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;const result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion?result:result&&a.hasSameVersion(b)}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}static sortIds(ids){return ids.sort((a,b)=>a.toString().localeCompare(b.toString()))}}exports.ComponentID=ComponentID},75915:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(79143);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},79143:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope is missing from a component-id "${src.toString()}".
|
4
4
|
in case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.
|
5
|
-
if you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}exports.MissingScope=MissingScope},99978:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=exports.ComponentID=void 0;var component_id_1=__webpack_require__(91722);Object.defineProperty(exports,"ComponentID",{enumerable:!0,get:function(){return component_id_1.ComponentID}});var component_id_list_1=__webpack_require__(97026);Object.defineProperty(exports,"ComponentIdList",{enumerable:!0,get:function(){return component_id_list_1.ComponentIdList}})},39563:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=void 0;const invalid_version_1=__importDefault(__webpack_require__(97192));exports.InvalidVersion=invalid_version_1.default},97192:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(47765);class InvalidVersion extends bit_error_1.BitError{constructor(version){super(`error: version ${version||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}exports.default=InvalidVersion},68050:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=exports.isTag=exports.isSnap=exports.isHash=exports.versionParser=exports.LATEST_VERSION=exports.Version=void 0;const version_1=__webpack_require__(48579);Object.defineProperty(exports,"Version",{enumerable:!0,get:function(){return version_1.Version}}),Object.defineProperty(exports,"LATEST_VERSION",{enumerable:!0,get:function(){return version_1.LATEST_VERSION}});const version_parser_1=__importStar(__webpack_require__(41036));exports.versionParser=version_parser_1.default,Object.defineProperty(exports,"isHash",{enumerable:!0,get:function(){return version_parser_1.isHash}}),Object.defineProperty(exports,"isSnap",{enumerable:!0,get:function(){return version_parser_1.isSnap}}),Object.defineProperty(exports,"isTag",{enumerable:!0,get:function(){return version_parser_1.isTag}});const exceptions_1=__webpack_require__(39563);Object.defineProperty(exports,"InvalidVersion",{enumerable:!0,get:function(){return exceptions_1.InvalidVersion}})},41036:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isSnap=exports.isTag=exports.isHash=exports.LATEST_TESTED_MARK=exports.HASH_SIZE=void 0;const semver_1=__importDefault(__webpack_require__(24930)),exceptions_1=__webpack_require__(39563),version_1=__webpack_require__(48579);exports.HASH_SIZE=40,exports.LATEST_TESTED_MARK="*";function isLatest(versionStr){return versionStr===version_1.LATEST_VERSION}function isLatestTested(versionStr){if(!versionStr.includes(exports.LATEST_TESTED_MARK))return!1;const splited=versionStr.split(exports.LATEST_TESTED_MARK);if(splited.length!==2)return!1;const[,numberStr]=splited;return!!isRegular(numberStr)}function isRegular(versionStr){return semver_1.default.valid(versionStr)}function returnRegular(versionStr){return new version_1.Version(versionStr,!1)}function returnLatestTestedVersion(versionStr){const[,numberStr]=versionStr.split(exports.LATEST_TESTED_MARK);return new version_1.Version(numberStr,!0)}function returnLatest(){return new version_1.Version(null,!0)}function returnSnap(hash){return new version_1.Version(hash,!1)}function convertToSemVer(versionStr){return returnRegular(`0.0.${versionStr}`)}function isHash(str){return typeof str=="string"&&str.length===exports.HASH_SIZE}exports.isHash=isHash;function isTag(str){return!isHash(str)}exports.isTag=isTag;function isSnap(str){return isHash(str)}exports.isSnap=isSnap;function versionParser(versionStr){if(!versionStr||typeof versionStr=="string"&&isLatest(versionStr))return returnLatest();if(typeof versionStr=="string"&&isLatestTested(versionStr))return returnLatestTestedVersion(versionStr);if(typeof versionStr=="string"&&isRegular(versionStr))return returnRegular(versionStr);if(typeof versionStr!="string"&&Number.isInteger(versionStr))return convertToSemVer(versionStr);if(isHash(versionStr))return returnSnap(versionStr);throw new exceptions_1.InvalidVersion(versionStr.toString())}exports.default=versionParser},48579:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Version=exports.LATEST_VERSION=void 0;const semver_1=__importDefault(__webpack_require__(24930)),exceptions_1=__webpack_require__(39563);exports.LATEST_VERSION="latest";class Version{constructor(versionNum,latest){this.versionNum=versionNum,this.latest=latest}resolve(availableVersion){const getLatest=()=>semver_1.default.maxSatisfying(availableVersion,"*",{includePrerelease:!0});return this.latest?getLatest():this.versionNum}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&this.latest)return`*${this.versionNum}`;if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new exceptions_1.InvalidVersion(this.versionNum)}isLaterThan(otherVersion){return!this.versionNum||this.versionNum===exports.LATEST_VERSION?!0:!otherVersion.versionNum||otherVersion.versionNum===exports.LATEST_VERSION?!1:semver_1.default.gt(this.versionNum,otherVersion.versionNum)}}exports.Version=Version},26499:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=void 0;const invalid_version_1=__importDefault(__webpack_require__(95997));exports.InvalidVersion=invalid_version_1.default},95997:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidVersion extends bit_error_1.BitError{constructor(version){super(`error: version ${version||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}exports.default=InvalidVersion},22670:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=exports.InvalidVersion=exports.isTag=exports.isSnap=exports.isHash=exports.versionParser=exports.LATEST_VERSION=exports.Version=void 0;const version_1=__webpack_require__(33154);Object.defineProperty(exports,"Version",{enumerable:!0,get:function(){return version_1.Version}}),Object.defineProperty(exports,"LATEST_VERSION",{enumerable:!0,get:function(){return version_1.LATEST_VERSION}});const version_parser_1=__importStar(__webpack_require__(70831));exports.versionParser=version_parser_1.default,Object.defineProperty(exports,"isHash",{enumerable:!0,get:function(){return version_parser_1.isHash}}),Object.defineProperty(exports,"isSnap",{enumerable:!0,get:function(){return version_parser_1.isSnap}}),Object.defineProperty(exports,"isTag",{enumerable:!0,get:function(){return version_parser_1.isTag}}),Object.defineProperty(exports,"HASH_SIZE",{enumerable:!0,get:function(){return version_parser_1.HASH_SIZE}}),Object.defineProperty(exports,"SHORT_HASH_MINIMUM_SIZE",{enumerable:!0,get:function(){return version_parser_1.SHORT_HASH_MINIMUM_SIZE}});const exceptions_1=__webpack_require__(26499);Object.defineProperty(exports,"InvalidVersion",{enumerable:!0,get:function(){return exceptions_1.InvalidVersion}})},70831:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isSnap=exports.isTag=exports.isHash=exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=void 0;const semver_1=__importDefault(__webpack_require__(9131)),exceptions_1=__webpack_require__(26499),version_1=__webpack_require__(33154);exports.HASH_SIZE=40,exports.SHORT_HASH_MINIMUM_SIZE=3;function isLatest(versionStr){return versionStr===version_1.LATEST_VERSION}function isSemverValid(versionStr){return Boolean(semver_1.default.valid(versionStr))}function returnSemver(versionStr){return new version_1.Version(versionStr,!1)}function returnLatest(){return new version_1.Version(null,!0)}function returnSnap(hash){return new version_1.Version(hash,!1)}function isHash(str){return typeof str=="string"&&isHex(str)&&str.length>=exports.SHORT_HASH_MINIMUM_SIZE&&str.length<=exports.HASH_SIZE}exports.isHash=isHash;function isTag(str){return typeof str=="string"&&isSemverValid(str)}exports.isTag=isTag;function isSnap(str){return isHash(str)&&typeof str=="string"&&str.length===exports.HASH_SIZE}exports.isSnap=isSnap;function versionParser(versionStr){if(!versionStr||isLatest(versionStr))return returnLatest();if(isSemverValid(versionStr))return returnSemver(versionStr);if(isHash(versionStr))return returnSnap(versionStr);throw new exceptions_1.InvalidVersion(versionStr.toString())}exports.default=versionParser;function isHex(str){return/^[0-9a-fA-F]+$/.test(str)}},33154:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Version=exports.LATEST_VERSION=void 0;const semver_1=__importDefault(__webpack_require__(9131)),exceptions_1=__webpack_require__(26499);exports.LATEST_VERSION="latest";class Version{constructor(versionNum,latest){if(this.versionNum=versionNum,this.latest=latest,versionNum&&latest)throw new Error('a component version cannot have both: version and "latest"')}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new exceptions_1.InvalidVersion(this.versionNum)}isLaterThan(otherVersion){return!this.versionNum||this.versionNum===exports.LATEST_VERSION?!0:!otherVersion.versionNum||otherVersion.versionNum===exports.LATEST_VERSION?!1:semver_1.default.gt(this.versionNum,otherVersion.versionNum)}}exports.Version=Version},47906:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentUrl=void 0;const query_string_1=__importDefault(__webpack_require__(42546)),base_ui_utils_string_affix_1=__webpack_require__(65343),constants_1=__webpack_require__(6601);exports.ComponentUrl={toUrl,toPathname,toQuery};function toUrl(id,options={}){const query=query_string_1.default.stringify(toQuery(id,options));return`${constants_1.baseUrl}/${toPathname(id)}${(0,base_ui_utils_string_affix_1.affix)("?",query)}`}function toPathname(id){return id.toString({ignoreVersion:!0}).replace(".","/")}const semverRegex=/[\^~]/;function toQuery(id,{includeVersion=!0}={}){var _a;return{version:includeVersion&&id.version!=="latest"?(_a=id.version)===null||_a===void 0?void 0:_a.replace(semverRegex,""):void 0}}},6601:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.baseUrl=void 0,exports.baseUrl="https://bit.cloud"},3605:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScopeUrl=exports.ComponentUrl=void 0;var component_url_1=__webpack_require__(47906);Object.defineProperty(exports,"ComponentUrl",{enumerable:!0,get:function(){return component_url_1.ComponentUrl}});var scope_url_1=__webpack_require__(8929);Object.defineProperty(exports,"ScopeUrl",{enumerable:!0,get:function(){return scope_url_1.ScopeUrl}})},8929:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScopeUrl=void 0;const constants_1=__webpack_require__(6601);exports.ScopeUrl={toUrl,toPathname};function toUrl(scope){return`${constants_1.baseUrl}/${toPathname(scope)}`}function toPathname(scope){return scope.replace(".","/")}},52166:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aspect=void 0;class Aspect{constructor(id,dependencies,slots,defaultConfig={},declareRuntime,files){this.id=id,this.dependencies=dependencies,this.slots=slots,this.defaultConfig=defaultConfig,this.declareRuntime=declareRuntime,this.files=files,this._runtimes=[]}addRuntime(runtimeManifest){return this._runtimes.push(runtimeManifest),this}getRuntime(runtimeDef){return this._runtimes.find(runtime=>typeof runtime.runtime=="string"?runtime.runtime===runtimeDef.name:runtime.runtime.name===runtimeDef.name)}getRuntimes(){return this._runtimes}static create(manifest){return new Aspect(manifest.id,manifest.dependencies||[],manifest.slots||[],manifest.defaultConfig,manifest.declareRuntime,manifest.files||[])}}exports.Aspect=Aspect},63937:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;class Config{constructor(raw){this.raw=raw}toObject(){return Array.from(this.raw.entries()).reduce((acc,[id,config])=>(acc[id]=config,acc),{})}set(id,config){this.raw.set(id,config)}get(id){return this.raw.get(id)}static from(raw){return new Config(new Map(Object.entries(raw)))}}exports.Config=Config},70979:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;var config_1=__webpack_require__(63937);Object.defineProperty(exports,"Config",{enumerable:!0,get:function(){return config_1.Config}})},76029:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=void 0;class ExtensionInstantiationException extends Error{}exports.ExtensionInstantiationException=ExtensionInstantiationException},12131:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class ExtensionLoadError extends Error{constructor(extension,originalError,msg){super();this.extension=extension,this.originalError=originalError,this.msg=msg}toString(){return`failed to load extension: ${this.extension.name} with error:
|
5
|
+
if you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}exports.MissingScope=MissingScope},99978:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=exports.ComponentID=void 0;var component_id_1=__webpack_require__(91722);Object.defineProperty(exports,"ComponentID",{enumerable:!0,get:function(){return component_id_1.ComponentID}});var component_id_list_1=__webpack_require__(97026);Object.defineProperty(exports,"ComponentIdList",{enumerable:!0,get:function(){return component_id_list_1.ComponentIdList}})},39563:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=void 0;const invalid_version_1=__importDefault(__webpack_require__(97192));exports.InvalidVersion=invalid_version_1.default},97192:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(47765);class InvalidVersion extends bit_error_1.BitError{constructor(version){super(`error: version ${version||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}exports.default=InvalidVersion},68050:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=exports.isTag=exports.isSnap=exports.isHash=exports.versionParser=exports.LATEST_VERSION=exports.Version=void 0;const version_1=__webpack_require__(48579);Object.defineProperty(exports,"Version",{enumerable:!0,get:function(){return version_1.Version}}),Object.defineProperty(exports,"LATEST_VERSION",{enumerable:!0,get:function(){return version_1.LATEST_VERSION}});const version_parser_1=__importStar(__webpack_require__(41036));exports.versionParser=version_parser_1.default,Object.defineProperty(exports,"isHash",{enumerable:!0,get:function(){return version_parser_1.isHash}}),Object.defineProperty(exports,"isSnap",{enumerable:!0,get:function(){return version_parser_1.isSnap}}),Object.defineProperty(exports,"isTag",{enumerable:!0,get:function(){return version_parser_1.isTag}});const exceptions_1=__webpack_require__(39563);Object.defineProperty(exports,"InvalidVersion",{enumerable:!0,get:function(){return exceptions_1.InvalidVersion}})},41036:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isSnap=exports.isTag=exports.isHash=exports.LATEST_TESTED_MARK=exports.HASH_SIZE=void 0;const semver_1=__importDefault(__webpack_require__(24930)),exceptions_1=__webpack_require__(39563),version_1=__webpack_require__(48579);exports.HASH_SIZE=40,exports.LATEST_TESTED_MARK="*";function isLatest(versionStr){return versionStr===version_1.LATEST_VERSION}function isLatestTested(versionStr){if(!versionStr.includes(exports.LATEST_TESTED_MARK))return!1;const splited=versionStr.split(exports.LATEST_TESTED_MARK);if(splited.length!==2)return!1;const[,numberStr]=splited;return!!isRegular(numberStr)}function isRegular(versionStr){return semver_1.default.valid(versionStr)}function returnRegular(versionStr){return new version_1.Version(versionStr,!1)}function returnLatestTestedVersion(versionStr){const[,numberStr]=versionStr.split(exports.LATEST_TESTED_MARK);return new version_1.Version(numberStr,!0)}function returnLatest(){return new version_1.Version(null,!0)}function returnSnap(hash){return new version_1.Version(hash,!1)}function convertToSemVer(versionStr){return returnRegular(`0.0.${versionStr}`)}function isHash(str){return typeof str=="string"&&str.length===exports.HASH_SIZE}exports.isHash=isHash;function isTag(str){return!isHash(str)}exports.isTag=isTag;function isSnap(str){return isHash(str)}exports.isSnap=isSnap;function versionParser(versionStr){if(!versionStr||typeof versionStr=="string"&&isLatest(versionStr))return returnLatest();if(typeof versionStr=="string"&&isLatestTested(versionStr))return returnLatestTestedVersion(versionStr);if(typeof versionStr=="string"&&isRegular(versionStr))return returnRegular(versionStr);if(typeof versionStr!="string"&&Number.isInteger(versionStr))return convertToSemVer(versionStr);if(isHash(versionStr))return returnSnap(versionStr);throw new exceptions_1.InvalidVersion(versionStr.toString())}exports.default=versionParser},48579:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Version=exports.LATEST_VERSION=void 0;const semver_1=__importDefault(__webpack_require__(24930)),exceptions_1=__webpack_require__(39563);exports.LATEST_VERSION="latest";class Version{constructor(versionNum,latest){this.versionNum=versionNum,this.latest=latest}resolve(availableVersion){const getLatest=()=>semver_1.default.maxSatisfying(availableVersion,"*",{includePrerelease:!0});return this.latest?getLatest():this.versionNum}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&this.latest)return`*${this.versionNum}`;if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new exceptions_1.InvalidVersion(this.versionNum)}isLaterThan(otherVersion){return!this.versionNum||this.versionNum===exports.LATEST_VERSION?!0:!otherVersion.versionNum||otherVersion.versionNum===exports.LATEST_VERSION?!1:semver_1.default.gt(this.versionNum,otherVersion.versionNum)}}exports.Version=Version},26499:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=void 0;const invalid_version_1=__importDefault(__webpack_require__(95997));exports.InvalidVersion=invalid_version_1.default},95997:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidVersion extends bit_error_1.BitError{constructor(version){super(`error: version ${version||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}exports.default=InvalidVersion},22670:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=exports.InvalidVersion=exports.isTag=exports.isSnap=exports.isHash=exports.versionParser=exports.LATEST_VERSION=exports.Version=void 0;const version_1=__webpack_require__(33154);Object.defineProperty(exports,"Version",{enumerable:!0,get:function(){return version_1.Version}}),Object.defineProperty(exports,"LATEST_VERSION",{enumerable:!0,get:function(){return version_1.LATEST_VERSION}});const version_parser_1=__importStar(__webpack_require__(70831));exports.versionParser=version_parser_1.default,Object.defineProperty(exports,"isHash",{enumerable:!0,get:function(){return version_parser_1.isHash}}),Object.defineProperty(exports,"isSnap",{enumerable:!0,get:function(){return version_parser_1.isSnap}}),Object.defineProperty(exports,"isTag",{enumerable:!0,get:function(){return version_parser_1.isTag}}),Object.defineProperty(exports,"HASH_SIZE",{enumerable:!0,get:function(){return version_parser_1.HASH_SIZE}}),Object.defineProperty(exports,"SHORT_HASH_MINIMUM_SIZE",{enumerable:!0,get:function(){return version_parser_1.SHORT_HASH_MINIMUM_SIZE}});const exceptions_1=__webpack_require__(26499);Object.defineProperty(exports,"InvalidVersion",{enumerable:!0,get:function(){return exceptions_1.InvalidVersion}})},70831:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isSnap=exports.isTag=exports.isHash=exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=void 0;const semver_1=__importDefault(__webpack_require__(9131)),exceptions_1=__webpack_require__(26499),version_1=__webpack_require__(33154);exports.HASH_SIZE=40,exports.SHORT_HASH_MINIMUM_SIZE=3;function isLatest(versionStr){return versionStr===version_1.LATEST_VERSION}function isSemverValid(versionStr){return Boolean(semver_1.default.valid(versionStr))}function returnSemver(versionStr){return new version_1.Version(versionStr,!1)}function returnLatest(){return new version_1.Version(null,!0)}function returnSnap(hash){return new version_1.Version(hash,!1)}function isHash(str){return typeof str=="string"&&isHex(str)&&str.length>=exports.SHORT_HASH_MINIMUM_SIZE&&str.length<=exports.HASH_SIZE}exports.isHash=isHash;function isTag(str){return typeof str=="string"&&isSemverValid(str)}exports.isTag=isTag;function isSnap(str){return isHash(str)&&typeof str=="string"&&str.length===exports.HASH_SIZE}exports.isSnap=isSnap;function versionParser(versionStr){if(!versionStr||isLatest(versionStr))return returnLatest();if(isSemverValid(versionStr))return returnSemver(versionStr);if(isHash(versionStr))return returnSnap(versionStr);throw new exceptions_1.InvalidVersion(versionStr.toString())}exports.default=versionParser;function isHex(str){return/^[0-9a-fA-F]+$/.test(str)}},33154:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Version=exports.LATEST_VERSION=void 0;const semver_1=__importDefault(__webpack_require__(9131)),exceptions_1=__webpack_require__(26499);exports.LATEST_VERSION="latest";class Version{constructor(versionNum,latest){if(this.versionNum=versionNum,this.latest=latest,versionNum&&latest)throw new Error('a component version cannot have both: version and "latest"')}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new exceptions_1.InvalidVersion(this.versionNum)}isLaterThan(otherVersion){return!this.versionNum||this.versionNum===exports.LATEST_VERSION?!0:!otherVersion.versionNum||otherVersion.versionNum===exports.LATEST_VERSION?!1:semver_1.default.gt(this.versionNum,otherVersion.versionNum)}}exports.Version=Version},87336:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentUrl=void 0;const query_string_1=__importDefault(__webpack_require__(42546)),base_ui_utils_string_affix_1=__webpack_require__(6480),constants_1=__webpack_require__(18865);exports.ComponentUrl={toUrl,toPathname,toQuery};function toUrl(id,options={}){const query=query_string_1.default.stringify(toQuery(id,options));return`${constants_1.baseUrl}/${toPathname(id)}${(0,base_ui_utils_string_affix_1.affix)("?",query)}`}function toPathname(id){return id.toString({ignoreVersion:!0}).replace(".","/")}const semverRegex=/[\^~]/;function toQuery(id,{includeVersion=!0}={}){var _a;return{version:includeVersion&&id.version!=="latest"?(_a=id.version)===null||_a===void 0?void 0:_a.replace(semverRegex,""):void 0}}},18865:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.baseUrl=void 0,exports.baseUrl="https://bit.cloud"},3884:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScopeUrl=exports.ComponentUrl=void 0;var component_url_1=__webpack_require__(87336);Object.defineProperty(exports,"ComponentUrl",{enumerable:!0,get:function(){return component_url_1.ComponentUrl}});var scope_url_1=__webpack_require__(77165);Object.defineProperty(exports,"ScopeUrl",{enumerable:!0,get:function(){return scope_url_1.ScopeUrl}})},77165:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScopeUrl=void 0;const constants_1=__webpack_require__(18865);exports.ScopeUrl={toUrl,toPathname};function toUrl(scope){return`${constants_1.baseUrl}/${toPathname(scope)}`}function toPathname(scope){return scope.replace(".","/")}},52166:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aspect=void 0;class Aspect{constructor(id,dependencies,slots,defaultConfig={},declareRuntime,files){this.id=id,this.dependencies=dependencies,this.slots=slots,this.defaultConfig=defaultConfig,this.declareRuntime=declareRuntime,this.files=files,this._runtimes=[]}addRuntime(runtimeManifest){return this._runtimes.push(runtimeManifest),this}getRuntime(runtimeDef){return this._runtimes.find(runtime=>typeof runtime.runtime=="string"?runtime.runtime===runtimeDef.name:runtime.runtime.name===runtimeDef.name)}getRuntimes(){return this._runtimes}static create(manifest){return new Aspect(manifest.id,manifest.dependencies||[],manifest.slots||[],manifest.defaultConfig,manifest.declareRuntime,manifest.files||[])}}exports.Aspect=Aspect},63937:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;class Config{constructor(raw){this.raw=raw}toObject(){return Array.from(this.raw.entries()).reduce((acc,[id,config])=>(acc[id]=config,acc),{})}set(id,config){this.raw.set(id,config)}get(id){return this.raw.get(id)}static from(raw){return new Config(new Map(Object.entries(raw)))}}exports.Config=Config},70979:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;var config_1=__webpack_require__(63937);Object.defineProperty(exports,"Config",{enumerable:!0,get:function(){return config_1.Config}})},76029:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=void 0;class ExtensionInstantiationException extends Error{}exports.ExtensionInstantiationException=ExtensionInstantiationException},12131:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class ExtensionLoadError extends Error{constructor(extension,originalError,msg){super();this.extension=extension,this.originalError=originalError,this.msg=msg}toString(){return`failed to load extension: ${this.extension.name} with error:
|
6
6
|
|
7
7
|
${this.msg||this.originalError.stack}`}}exports.default=ExtensionLoadError},43994:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const harmony_error_1=__webpack_require__(49254);class ExtensionPotentialCircular extends harmony_error_1.HarmonyError{constructor(extension,validDeps){super();this.extension=extension,this.validDeps=validDeps}toString(){return`Failed to load the dependencies for extension .
|
8
8
|
This may result from a wrong import or from circular dependencies in imports.
|
@@ -10,7 +10,7 @@ The following dependencies succeeded loading:`}}exports.default=ExtensionPotenti
|
|
10
10
|
if you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.
|
11
11
|
if this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`)}}exports.default=InvalidScopeNameFromRemote},17315:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(47765);class InvalidScopeName extends bit_error_1.BitError{constructor(scopeName,id,variant){const variantStr=variant?`configured in variant "${variant}" `:"";super(`error: "${id||scopeName}" ${variantStr}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidScopeName},8638:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.isValidScopeName=exports.VERSION_DELIMITER=exports.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(65948));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const exceptions_1=__webpack_require__(48104);Object.defineProperty(exports,"InvalidName",{enumerable:!0,get:function(){return exceptions_1.InvalidName}}),Object.defineProperty(exports,"InvalidScopeName",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeName}}),Object.defineProperty(exports,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeNameFromRemote}});const is_valid_scope_name_1=__importDefault(__webpack_require__(63941));exports.isValidScopeName=is_valid_scope_name_1.default},22666:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[-_a-z0-9/]+$/,validationRegExpDisallowSlash=/^[-_a-z0-9]+$/;function isValidIdChunk(val,allowSlash=!0){return typeof val!="string"||val.includes("//")?!1:(allowSlash?validationRegExp:validationRegExpDisallowSlash).test(val)}exports.default=isValidIdChunk},63941:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/;function isValidScopeName(val){return typeof val!="string"?!1:validationRegExp.test(val)}exports.default=isValidScopeName},47709:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.VERSION_DELIMITER=void 0;const decamelize_1=__importDefault(__webpack_require__(5509)),path=__importStar(__webpack_require__(62005)),semver=__importStar(__webpack_require__(9131)),lodash_1=__webpack_require__(32699),component_version_1=__webpack_require__(22670),is_valid_id_chunk_1=__importDefault(__webpack_require__(74034)),is_valid_scope_name_1=__importDefault(__webpack_require__(61870)),exceptions_1=__webpack_require__(36564);exports.VERSION_DELIMITER="@";class BitId{constructor({scope,box,name,version}){if(!name)throw new exceptions_1.InvalidName(name);this.scope=scope||null,this.box=void 0,this.name=box?`${box}/${name}`:name,this.version=version||void 0,Object.freeze(this)}clone(){return new BitId(this)}changeScope(newScope){return new BitId({scope:newScope,name:this.name,version:this.version})}changeVersion(newVersion){return new BitId({scope:this.scope,name:this.name,version:newVersion})}isLocal(scopeName){return!this.scope||Boolean(scopeName&&scopeName===this.scope)}getVersion(){return(0,component_version_1.versionParser)(this.version)}hasVersion(){return Boolean(this.version&&this.version!==component_version_1.LATEST_VERSION)}hasScope(){return Boolean(this.scope)}hasSameName(id){return this.name===id.name}hasSameScope(id){return this.hasScope()&&id.hasScope()?this.scope===id.scope:!this.hasScope()&&!id.hasScope()}hasSameVersion(id){return this.hasVersion()&&id.hasVersion()?this.version===id.version:!this.hasVersion()&&!id.hasVersion()}toString(ignoreScope=!1,ignoreVersion=!1){const{name,version}=this,scope=this.scope,componentStr=ignoreScope||!scope?name:[scope,name].join("/");return ignoreVersion||!this.hasVersion()?componentStr:componentStr.concat(`${exports.VERSION_DELIMITER}${version}`)}toStringWithoutScope(){return this.toString(!0)}toStringWithoutVersion(){return this.toString(!1,!0)}toStringWithoutScopeAndVersion(){return this.toString(!0,!0)}isEqual(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)&&this.hasSameVersion(bitId)}isEqualWithoutVersion(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)}isEqualWithoutScopeAndVersion(bitId){return this.hasSameName(bitId)}serialize(){const obj={scope:this.scope,name:this.name,version:this.version};return this.hasVersion()||delete obj.version,this.hasScope()||delete obj.scope,obj}toFullPath(){if(!this.scope||!this.version)throw new Error("BitId.toFullPath is unable to generate a path without a scope or a version");return path.join(this.name,this.scope,this.version)}isVersionSnap(){return!(0,component_version_1.isTag)(this.version)}getVersionPreReleaseData(){return this.version?semver.prerelease(this.version):null}static getStringWithoutVersion(id){const splitted=id.split(exports.VERSION_DELIMITER);let res=splitted[0];return id.startsWith(exports.VERSION_DELIMITER)&&(res=`${exports.VERSION_DELIMITER}${splitted[1]}`),res}static getVersionOnlyFromString(id){return id.split(exports.VERSION_DELIMITER)[1]}static parse(id,hasScope=!0,version=component_version_1.LATEST_VERSION){if(typeof id!="string")throw new TypeError(`BitId.parse expects to get "id" as a string, instead, got ${typeof id}`);if(id.includes(exports.VERSION_DELIMITER)&&id.lastIndexOf(exports.VERSION_DELIMITER)>0){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const getScopeAndName=()=>hasScope?BitId.getScopeAndName(id):{scope:void 0,name:id},{scope,name}=getScopeAndName();if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidName(name);if(scope&&!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidScopeName(scope,id);return new BitId({scope,name,version})}static getScopeAndName(id){const delimiterIndex=id.indexOf("/");if(delimiterIndex<0)throw new exceptions_1.InvalidBitId(id);const scope=id.substring(0,delimiterIndex),name=id.substring(delimiterIndex+1);return{scope,name}}static parseObsolete(id,version=component_version_1.LATEST_VERSION){if(id.includes(exports.VERSION_DELIMITER)){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const idSplit=id.split("/");if(idSplit.length===3){const[scope,box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1)||!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidIdChunk(`${scope}/${box}/${name}`);return new BitId({scope,box,name,version})}if(idSplit.length===2){const[box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1))throw new exceptions_1.InvalidIdChunk(`${box}/${name}`);return new BitId({box,name,version})}if(idSplit.length===1){const[name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidIdChunk(name);return new BitId({name,version})}throw new exceptions_1.InvalidBitId(id)}static parseBackwardCompatible(id){return typeof id=="string"?BitId.parseObsolete(id):new BitId(id)}static getValidScopeName(scope){let cleanName=scope.toLowerCase().split("").map(char=>/^[$\-_!.a-z0-9]+$/.test(char)?char:"").join("");const nameSplitByDot=cleanName.split(".");if(nameSplitByDot.length>1&&(cleanName=`${(0,lodash_1.head)(nameSplitByDot)}.${(0,lodash_1.tail)(nameSplitByDot).join("")}`),!cleanName)throw new Error("scope name created by directory name have to contains at least one character or number");return cleanName}static getValidIdChunk(chunk){return(0,is_valid_id_chunk_1.default)(chunk)||(chunk=chunk.replace(/\./g,""),chunk=chunk.replace(/ /g,"-"),chunk=(0,decamelize_1.default)(chunk,"-")),chunk}static getValidBitId(box,name){return new BitId({name:BitId.getValidIdChunk(name),box:box?BitId.getValidIdChunk(box):void 0})}static isValidVersion(version){return(0,component_version_1.isTag)(version)||(0,component_version_1.isHash)(version)}static isValidSemver(version){return Boolean(semver.valid(version))}}exports.default=BitId},36564:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.InvalidIdChunk=exports.InvalidBitId=void 0;const invalid_bit_id_1=__importDefault(__webpack_require__(55261));exports.InvalidBitId=invalid_bit_id_1.default;const invalid_id_chunk_1=__importDefault(__webpack_require__(24631));exports.InvalidIdChunk=invalid_id_chunk_1.default;const invalid_name_1=__importDefault(__webpack_require__(66036));exports.InvalidName=invalid_name_1.default;const invalid_scope_name_1=__importDefault(__webpack_require__(27806));exports.InvalidScopeName=invalid_scope_name_1.default;const invalid_scope_name_from_remote_1=__importDefault(__webpack_require__(26343));exports.InvalidScopeNameFromRemote=invalid_scope_name_from_remote_1.default},55261:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidBitId extends bit_error_1.BitError{constructor(id){super(`error: component ID "${id}" is invalid, please use the following format: [scope]/<name>`)}}exports.default=InvalidBitId},24631:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidIdChunk extends bit_error_1.BitError{constructor(id){super(`error: "${id}" is invalid, component IDs can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidIdChunk},66036:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidName extends bit_error_1.BitError{constructor(componentName){super(`error: "${componentName}" is invalid, component names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!", "/"]`)}}exports.default=InvalidName},26343:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidScopeNameFromRemote extends bit_error_1.BitError{constructor(scopeName){super(`cannot find scope '${scopeName}'.
|
12
12
|
if you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.
|
13
|
-
if this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`);this.scopeName=scopeName}}exports.default=InvalidScopeNameFromRemote},27806:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidScopeName extends bit_error_1.BitError{constructor(scopeName,id,variant){const variantStr=variant?`configured in variant "${variant}" `:"";super(`error: "${id||scopeName}" ${variantStr}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidScopeName},13440:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.isValidIdChunk=exports.isValidScopeName=exports.VERSION_DELIMITER=exports.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(47709));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const exceptions_1=__webpack_require__(36564);Object.defineProperty(exports,"InvalidName",{enumerable:!0,get:function(){return exceptions_1.InvalidName}}),Object.defineProperty(exports,"InvalidScopeName",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeName}}),Object.defineProperty(exports,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeNameFromRemote}});const is_valid_scope_name_1=__importDefault(__webpack_require__(61870));exports.isValidScopeName=is_valid_scope_name_1.default;const is_valid_id_chunk_1=__importDefault(__webpack_require__(74034));exports.isValidIdChunk=is_valid_id_chunk_1.default},74034:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[-_a-z0-9/]+$/,validationRegExpDisallowSlash=/^[-_a-z0-9]+$/;function isValidIdChunk(val,allowSlash=!0){return typeof val!="string"||val.includes("//")?!1:(allowSlash?validationRegExp:validationRegExpDisallowSlash).test(val)}exports.default=isValidIdChunk},61870:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/;function isValidScopeName(val){return typeof val!="string"?!1:validationRegExp.test(val)}exports.default=isValidScopeName},27060:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(59776);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},59776:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},46571:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fiberToPrototype=exports.toRootFiber=exports.domToFiber=void 0;const react17Key="__reactFiber",react16Key="__reactInternalInstance";function domToFiber(element){if(!element)return null;const fiberKey=Object.keys(element).find(key=>key.startsWith(react17Key)||key.startsWith(react16Key));if(!fiberKey)return null;const fiberNode=element[fiberKey];return fiberNode||null}exports.domToFiber=domToFiber;function toRootFiber(fiberNode){for(let current=fiberNode;current!==null&¤t.type!==null;current=current.return)if(typeof current.type=="function"||typeof current.type=="object"&&typeof current.type.render=="function")return current;return null}exports.toRootFiber=toRootFiber;function fiberToPrototype(fiberNode){var _a;return((_a=toRootFiber(fiberNode))===null||_a===void 0?void 0:_a.type)||null}exports.fiberToPrototype=fiberToPrototype},62171:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.domToReacts=exports.domToReact=exports.toRootElement=void 0;const dom_to_fiber_1=__webpack_require__(46571);function toRootElement(element){const rootFiber=(0,dom_to_fiber_1.toRootFiber)((0,dom_to_fiber_1.domToFiber)(element));if(!rootFiber)return null;for(let current=element;current;current=current.parentElement){const fiberNode=(0,dom_to_fiber_1.domToFiber)(current);if(!fiberNode)return null;const parent2=fiberNode.return;if(fiberNode===rootFiber||parent2===rootFiber)return current}return null}exports.toRootElement=toRootElement;function domToReact(element){return domToReacts(element).pop()}exports.domToReact=domToReact;function domToReacts(element){if(element===null)return[];const fiberNode=(0,dom_to_fiber_1.domToFiber)(element),rootFiber=(0,dom_to_fiber_1.toRootFiber)(fiberNode);return componentsOf(rootFiber)}exports.domToReacts=domToReacts;function componentsOf(fiberNode){const components=[];let current=fiberNode;for(;current&¤t.type!==null&&typeof current.type!="string";)components.push(current.type),current=current.return;return components}},17346:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fiberToPrototype=exports.toRootFiber=exports.domToFiber=exports.toRootElement=exports.domToReacts=exports.domToReact=void 0;var dom_to_react_1=__webpack_require__(62171);Object.defineProperty(exports,"domToReact",{enumerable:!0,get:function(){return dom_to_react_1.domToReact}}),Object.defineProperty(exports,"domToReacts",{enumerable:!0,get:function(){return dom_to_react_1.domToReacts}}),Object.defineProperty(exports,"toRootElement",{enumerable:!0,get:function(){return dom_to_react_1.toRootElement}});var dom_to_fiber_1=__webpack_require__(46571);Object.defineProperty(exports,"domToFiber",{enumerable:!0,get:function(){return dom_to_fiber_1.domToFiber}}),Object.defineProperty(exports,"toRootFiber",{enumerable:!0,get:function(){return dom_to_fiber_1.toRootFiber}}),Object.defineProperty(exports,"fiberToPrototype",{enumerable:!0,get:function(){return dom_to_fiber_1.fiberToPrototype}})},53887:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChildrenHighlighter=void 0;const react_1=__importDefault(__webpack_require__(59496)),hybrid_highlighter_1=__webpack_require__(95901);function ChildrenHighlighter(_a){var{watchMotion=!1}=_a,props=__rest(_a,["watchMotion"]);return react_1.default.createElement(hybrid_highlighter_1.HybridHighlighter,Object.assign({},props,{mode:"allChildren",watchMotion}))}exports.ChildrenHighlighter=ChildrenHighlighter},48707:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChildrenHighlighter=exports.useChildrenHighlighter=void 0;var use_children_highlighter_1=__webpack_require__(52714);Object.defineProperty(exports,"useChildrenHighlighter",{enumerable:!0,get:function(){return use_children_highlighter_1.useChildrenHighlighter}});var children_highlighter_1=__webpack_require__(53887);Object.defineProperty(exports,"ChildrenHighlighter",{enumerable:!0,get:function(){return children_highlighter_1.ChildrenHighlighter}})},52714:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useChildrenHighlighter=void 0;const react_1=__webpack_require__(59496),get_xpath_1=__importDefault(__webpack_require__(66200)),react_modules_dom_to_react_1=__webpack_require__(17346),react_ui_highlighter_component_metadata_bit_component_meta_1=__webpack_require__(23303),ignore_highlighter_1=__webpack_require__(50866),rule_matcher_1=__webpack_require__(44653);function useChildrenHighlighter({onChange,disabled,scopeRef,scopeClass:scopeSelector="",rule,componentRule}){(0,react_1.useEffect)(()=>{const nextTargets={},scopeElement=scopeRef.current;if(!scopeElement||disabled)return;let allElements=Array.from(scopeElement.querySelectorAll(targetsSelector(`.${scopeSelector}`)));rule&&(allElements=allElements.filter(elem=>(0,rule_matcher_1.ruleMatcher)(elem,rule)));const rootElements=allElements.map(react_modules_dom_to_react_1.toRootElement).filter(x=>!!x);new Set(rootElements).forEach(element=>{if(!element)return;const componentsWithMeta=(0,react_modules_dom_to_react_1.domToReacts)(element).filter(x=>(0,react_ui_highlighter_component_metadata_bit_component_meta_1.hasComponentMeta)(x)&&(0,rule_matcher_1.componentRuleMatcher)({meta:x[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField]},componentRule));if(componentsWithMeta.length<1)return;const key=(0,get_xpath_1.default)(element);nextTargets[key]={element,components:componentsWithMeta}}),onChange(nextTargets)},[disabled,scopeSelector])}exports.useChildrenHighlighter=useChildrenHighlighter;function targetsSelector(scopeSelector=":scope"){const excludedSelector=`${scopeSelector} ${ignore_highlighter_1.excludeHighlighterSelector}, ${scopeSelector} ${ignore_highlighter_1.excludeHighlighterSelector} *`,skippedSelector=`${scopeSelector} ${ignore_highlighter_1.skipHighlighterSelector}, ${scopeSelector} ${ignore_highlighter_1.skipHighlighterSelector} *`;return`:not(${excludedSelector}, ${skippedSelector})`}},650:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElementHighlighter=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),frame_1=__webpack_require__(45965),label_1=__webpack_require__(5172),ignore_highlighter_1=__webpack_require__(50866),element_highlighter_module_scss_1=__importDefault(__webpack_require__(58482));function ElementHighlighter(_a){var{targetRef,components,placement="top",watchMotion,className,classes}=_a,props=__rest(_a,["targetRef","components","placement","watchMotion","className","classes"]);return react_1.default.createElement("div",Object.assign({},props,ignore_highlighter_1.skipHighlighterAttr,{className:(0,classnames_1.default)(classes?.container,element_highlighter_module_scss_1.default.container,className)}),react_1.default.createElement(frame_1.Frame,{targetRef,className:(0,classnames_1.default)(element_highlighter_module_scss_1.default.frame,classes?.frame),watchMotion}),components&&react_1.default.createElement(label_1.LabelContainer,{targetRef,className:element_highlighter_module_scss_1.default.label,placement,watchMotion},react_1.default.createElement(label_1.Label,{components,className:classes?.label})))}exports.ElementHighlighter=ElementHighlighter},24334:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElementHighlighter=void 0;var element_highlighter_1=__webpack_require__(650);Object.defineProperty(exports,"ElementHighlighter",{enumerable:!0,get:function(){return element_highlighter_1.ElementHighlighter}})},40611:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value2){return value2 instanceof P?value2:new P(function(resolve){resolve(value2)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value2){try{step(generator.next(value2))}catch(e){reject(e)}}function rejected(value2){try{step(generator.throw(value2))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Frame=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),react_dom_1=__webpack_require__(66431),frame_module_scss_1=__importDefault(__webpack_require__(26232)),MARGIN_FROM_TARGET=+frame_module_scss_1.default.offset||6,MARGIN_FROM_DOC_EDGE=0,overflowParameters={rootBoundary:"document",padding:MARGIN_FROM_DOC_EDGE},SHIFT_POSITIVE="shiftPositive",HAS_RESIZE_OBSERVER=typeof window<"u"&&!!window.ResizeObserver;function Frame({targetRef,watchMotion,className,stylesClass=frame_module_scss_1.default.overlayBorder,style}){var _a;const dimensionRef=(0,react_1.useRef)({width:0,height:0}),{x,y,strategy,reference,floating,update,refs,middlewareData}=(0,react_dom_1.useFloating)({placement:"bottom-start",middleware:[{name:"align-to-target",fn({rects}){return rects.floating=Object.assign(Object.assign({},rects.floating),{width:rects.reference.width+2*MARGIN_FROM_TARGET,height:rects.reference.height+2*MARGIN_FROM_TARGET}),{}}},(0,react_dom_1.offset)(({rects})=>-rects.reference.height),(0,react_dom_1.offset)(()=>({mainAxis:-MARGIN_FROM_TARGET,crossAxis:-MARGIN_FROM_TARGET})),{name:"shiftPositive",fn:args=>__awaiter(this,void 0,void 0,function*(){const overflow=yield(0,react_dom_1.detectOverflow)(args,overflowParameters),nextCoords={x:overflow.left>0?args.x+overflow.left:args.x,y:overflow.top>0?args.y+overflow.top:args.y},shiftAmount={x:nextCoords.x-args.x,y:nextCoords.y-args.y};return Object.assign(Object.assign({},nextCoords),{data:shiftAmount})})},(0,react_dom_1.size)({rootBoundary:"document",padding:MARGIN_FROM_DOC_EDGE,apply({elements,rects,availableHeight,availableWidth,middlewareData:middlewareData2}){const shift=middlewareData2[SHIFT_POSITIVE]||{x:0,y:0},paddingX=2*MARGIN_FROM_TARGET-shift.x,paddingY=2*MARGIN_FROM_TARGET-shift.y,dimensions={width:rects.reference.width+paddingX,height:rects.reference.height+paddingY,maxWidth:availableWidth,maxHeight:availableHeight};Object.assign(elements.floating.style,dimensions),dimensionRef.current=dimensions}}),(0,react_dom_1.hide)({strategy:"referenceHidden"})]});(0,react_1.useLayoutEffect)(()=>{reference(targetRef.current)},[targetRef.current]),(0,react_1.useEffect)(()=>!refs.reference.current||!refs.floating.current||!HAS_RESIZE_OBSERVER?()=>{}:(0,react_dom_1.autoUpdate)(refs.reference.current,refs.floating.current,update,{animationFrame:watchMotion}),[refs.reference.current,refs.floating.current,update,watchMotion]);const isReady=!(!((_a=middlewareData.hide)===null||_a===void 0)&&_a.referenceHidden);return react_1.default.createElement("div",{ref:floating,className:(0,classnames_1.default)(className,stylesClass,!isReady&&frame_module_scss_1.default.hidden),style:Object.assign(Object.assign(Object.assign({},style),dimensionRef.current),{position:strategy,top:y??0,left:x??0})})}exports.Frame=Frame},45965:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Frame=void 0;var frame_1=__webpack_require__(40611);Object.defineProperty(exports,"Frame",{enumerable:!0,get:function(){return frame_1.Frame}})},18698:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bubbleToComponent=void 0;const react_modules_dom_to_react_1=__webpack_require__(17346),react_ui_highlighter_component_metadata_bit_component_meta_1=__webpack_require__(23303),rule_matcher_1=__webpack_require__(44653);function bubbleToComponent(element,{elementRule,componentRule,propagateSameParents=!0}={}){let current=bubbleToFirstComponent(element,elementRule,componentRule);if(!propagateSameParents)return current;for(;current;){const parentElement=current.element.parentElement,parent2=bubbleToFirstComponent(parentElement,elementRule,componentRule),primeComponent=current?.components.slice(-1).pop(),parentPrimeComponent=parent2?.components.slice(-1).pop();if(primeComponent?.[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField].id!==parentPrimeComponent?.[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField].id)return current;current=parent2}}exports.bubbleToComponent=bubbleToComponent;function bubbleToFirstComponent(element,elementRule,componentRule){for(let current=element;current;current=current.parentElement){if(current=(0,react_modules_dom_to_react_1.toRootElement)(current),!current)return;if((0,rule_matcher_1.ruleMatcher)(current,elementRule)){const relevantComponents=(0,react_modules_dom_to_react_1.domToReacts)(current).filter(x=>(0,react_ui_highlighter_component_metadata_bit_component_meta_1.hasComponentMeta)(x)&&(0,rule_matcher_1.componentRuleMatcher)({meta:x[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField]},componentRule));return relevantComponents.length<1?void 0:{element:current,components:relevantComponents}}}}},3222:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HoverHighlighter=void 0;const react_1=__importDefault(__webpack_require__(59496)),hybrid_highlighter_1=__webpack_require__(95901);function HoverHighlighter(_a){var props=__rest(_a,[]);return react_1.default.createElement(hybrid_highlighter_1.HybridHighlighter,Object.assign({},props,{mode:"hover"}))}exports.HoverHighlighter=HoverHighlighter},51778:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HoverHighlighter=exports.useHoverHighlighter=void 0;var use_hover_highlighter_1=__webpack_require__(38251);Object.defineProperty(exports,"useHoverHighlighter",{enumerable:!0,get:function(){return use_hover_highlighter_1.useHoverHighlighter}});var hover_highlighter_1=__webpack_require__(3222);Object.defineProperty(exports,"HoverHighlighter",{enumerable:!0,get:function(){return hover_highlighter_1.HoverHighlighter}})},38251:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useHoverHighlighter=void 0;const react_1=__webpack_require__(59496),use_debounce_1=__webpack_require__(15293),react_ui_hover_selector_1=__webpack_require__(78977),ignore_highlighter_1=__webpack_require__(50866),bubble_to_component_1=__webpack_require__(18698);function useHoverHighlighter(onChange,props={},{debounceDuration,scopeClass,disabled,rule,componentRule}){const{handleElement}=useHoverHandler({onChange,scopeClass,debounceDuration,disabled,rule,componentRule});return(0,react_ui_hover_selector_1.useHoverSelection)(disabled?void 0:handleElement,props)}exports.useHoverHighlighter=useHoverHighlighter;function useHoverHandler({onChange,scopeClass="",debounceDuration,disabled,rule,componentRule}){const _handleElement=element=>{if(!element||element.hasAttribute("data-nullify-component-highlight")){onChange(void 0);return}if(element.closest(`.${scopeClass} ${ignore_highlighter_1.excludeHighlighterSelector}`)){onChange(void 0);return}if(element.closest(`.${scopeClass} ${ignore_highlighter_1.skipHighlighterSelector}`))return;const result=(0,bubble_to_component_1.bubbleToComponent)(element,{elementRule:rule,componentRule});!result||onChange({element:result.element,components:result.components})},handleElement=(0,use_debounce_1.useDebouncedCallback)(_handleElement,debounceDuration);return(0,react_1.useEffect)(()=>{disabled&&handleElement.cancel()},[disabled,handleElement]),{handleElement}}},721:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HybridHighlighter=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),uuid_1=__webpack_require__(92674),hover_highlighter_1=__webpack_require__(51778),element_highlighter_1=__webpack_require__(24334),children_highlighter_1=__webpack_require__(48707);function HybridHighlighter(_a){var{disabled,mode="hover",debounceSelection=80,watchMotion=!0,placement,rule,componentRule,classes,highlightStyle,className,style,bgColor,bgColorHover,bgColorActive,children}=_a,rest=__rest(_a,["disabled","mode","debounceSelection","watchMotion","placement","rule","componentRule","classes","highlightStyle","className","style","bgColor","bgColorHover","bgColorActive","children"]);const ref=(0,react_1.createRef)(),[targets,setTarget]=(0,react_1.useState)({}),scopeClass=(0,react_1.useRef)(`hl-scope-${(0,uuid_1.v4)()}`).current,hasTargets=Object.entries(targets).length>0;(0,react_1.useEffect)(()=>{disabled&&setTarget({})},[disabled]);const handlers=(0,hover_highlighter_1.useHoverHighlighter)(nextTarget=>setTarget(nextTarget?{"hover-target":nextTarget}:{}),rest,{debounceDuration:hasTargets?debounceSelection:0,scopeClass,disabled:disabled||mode!=="hover",rule,componentRule});(0,children_highlighter_1.useChildrenHighlighter)({onChange:setTarget,scopeRef:ref,scopeClass,disabled:disabled||mode!=="allChildren",rule,componentRule});const _styles=(0,react_1.useMemo)(()=>Object.assign({"--bit-highlighter-color":bgColor,"--bit-highlighter-color-hover":bgColorHover,"--bit-highlighter-color-active":bgColorActive},style),[bgColor,bgColorHover,bgColorActive,style]);return react_1.default.createElement("div",Object.assign({ref},rest,handlers,{style:_styles,className:(0,classnames_1.default)(className,scopeClass),"data-nullify-component-highlight":!0}),children,Object.entries(targets).map(([key,target])=>react_1.default.createElement(element_highlighter_1.ElementHighlighter,{key,targetRef:{current:target.element},components:target.components,classes,style:highlightStyle,placement,watchMotion})))}exports.HybridHighlighter=HybridHighlighter},95901:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HybridHighlighter=void 0;var hybrid_highlighter_1=__webpack_require__(721);Object.defineProperty(exports,"HybridHighlighter",{enumerable:!0,get:function(){return hybrid_highlighter_1.HybridHighlighter}})},50866:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.skipHighlighterSelector=exports.skipHighlighterAttr=exports.skipHighlighterAttrName=exports.ExcludeHighlighter=exports.excludeHighlighterAtt=exports.excludeHighlighterSelector=exports.excludeHighlighterAttrName=void 0;const react_1=__importDefault(__webpack_require__(59496));exports.excludeHighlighterAttrName="data-ignore-component-highlight",exports.excludeHighlighterSelector=`[${exports.excludeHighlighterAttrName}]`,exports.excludeHighlighterAtt={[exports.excludeHighlighterAttrName]:!0};function ExcludeHighlighter(props){return react_1.default.createElement("div",Object.assign({},props,exports.excludeHighlighterAtt))}exports.ExcludeHighlighter=ExcludeHighlighter,exports.skipHighlighterAttrName="data-skip-component-highlight",exports.skipHighlighterAttr={[exports.skipHighlighterAttrName]:!0},exports.skipHighlighterSelector=`[${exports.skipHighlighterAttrName}]`},29537:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.skipHighlighterAttrName=exports.skipHighlighterAttr=exports.excludeHighlighterAttrName=exports.excludeHighlighterAtt=exports.ExcludeHighlighter=exports.ElementHighlighter=exports.ChildrenHighlighter=exports.HoverHighlighter=exports.ComponentHighlighter=void 0;var hybrid_highlighter_1=__webpack_require__(95901);Object.defineProperty(exports,"ComponentHighlighter",{enumerable:!0,get:function(){return hybrid_highlighter_1.HybridHighlighter}});var hover_highlighter_1=__webpack_require__(51778);Object.defineProperty(exports,"HoverHighlighter",{enumerable:!0,get:function(){return hover_highlighter_1.HoverHighlighter}});var children_highlighter_1=__webpack_require__(48707);Object.defineProperty(exports,"ChildrenHighlighter",{enumerable:!0,get:function(){return children_highlighter_1.ChildrenHighlighter}});var element_highlighter_1=__webpack_require__(24334);Object.defineProperty(exports,"ElementHighlighter",{enumerable:!0,get:function(){return element_highlighter_1.ElementHighlighter}});var ignore_highlighter_1=__webpack_require__(50866);Object.defineProperty(exports,"ExcludeHighlighter",{enumerable:!0,get:function(){return ignore_highlighter_1.ExcludeHighlighter}}),Object.defineProperty(exports,"excludeHighlighterAtt",{enumerable:!0,get:function(){return ignore_highlighter_1.excludeHighlighterAtt}}),Object.defineProperty(exports,"excludeHighlighterAttrName",{enumerable:!0,get:function(){return ignore_highlighter_1.excludeHighlighterAttrName}}),Object.defineProperty(exports,"skipHighlighterAttr",{enumerable:!0,get:function(){return ignore_highlighter_1.skipHighlighterAttr}}),Object.defineProperty(exports,"skipHighlighterAttrName",{enumerable:!0,get:function(){return ignore_highlighter_1.skipHighlighterAttrName}})},34585:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentStrip=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_routing_native_link_1=__webpack_require__(36201),component_id_1=__webpack_require__(68345),component_modules_component_url_1=__webpack_require__(3605),react_ui_highlighter_component_metadata_bit_component_meta_1=__webpack_require__(23303),component_strip_module_scss_1=__importDefault(__webpack_require__(35132)),links_1=__webpack_require__(22465);exports.ComponentStrip=(0,react_1.forwardRef)(function({component,children},ref){const{id,homepage,exported}=extractMetadata(component),parsedId=(0,react_1.useMemo)(()=>component_id_1.ComponentID.tryFromString(id),[id]),componentLink=homepage||(0,links_1.calcComponentLink)(parsedId,exported);return react_1.default.createElement("div",{className:component_strip_module_scss_1.default.componentStrip,ref},!parsedId&&react_1.default.createElement(LabelBlock,{link:homepage},id),parsedId&&react_1.default.createElement(LabelBlock,{link:component_modules_component_url_1.ScopeUrl.toUrl(parsedId.scope)},parsedId.scope),parsedId&&react_1.default.createElement(LabelBlock,{link:componentLink,className:component_strip_module_scss_1.default.nameBlock},react_1.default.createElement("span",null,parsedId.fullName),parsedId.version&&parsedId.version!=="latest"&&react_1.default.createElement("span",{className:component_strip_module_scss_1.default.version},"@",parsedId.version)),children)});function LabelBlock({link,children,className}){const Comp=link?base_ui_routing_native_link_1.NativeLink:"span";return react_1.default.createElement(Comp,{href:link,external:!!link,className},children)}function extractMetadata(metadata){return typeof metadata=="string"?{id:metadata,exported:!0}:metadata[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField]}},5172:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelContainer=exports.Label=void 0;var label_1=__webpack_require__(36494);Object.defineProperty(exports,"Label",{enumerable:!0,get:function(){return label_1.Label}});var label_container_1=__webpack_require__(96253);Object.defineProperty(exports,"LabelContainer",{enumerable:!0,get:function(){return label_container_1.LabelContainer}})},96253:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelContainer=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),lodash_compact_1=__importDefault(__webpack_require__(69505)),react_dom_1=__webpack_require__(66431),label_module_scss_1=__importDefault(__webpack_require__(65957)),HAS_RESIZE_OBSERVER=typeof window<"u"&&!!window.ResizeObserver;function LabelContainer(_a){var _b,{targetRef,offset,placement,flip=!0,watchMotion,className,style}=_a,rest=__rest(_a,["targetRef","offset","placement","flip","watchMotion","className","style"]);const{x,y,strategy,floating,reference,refs,update,middlewareData}=(0,react_dom_1.useFloating)({placement,middleware:(0,lodash_compact_1.default)([offset&&(0,react_dom_1.offset)({mainAxis:offset[0],crossAxis:offset[1]}),flip&&(0,react_dom_1.flip)(),(0,react_dom_1.shift)({rootBoundary:"document",mainAxis:!0,crossAxis:!0}),(0,react_dom_1.hide)({strategy:"referenceHidden"})])});(0,react_1.useLayoutEffect)(()=>{reference(targetRef.current)},[targetRef.current,reference]),(0,react_1.useEffect)(()=>!refs.reference.current||!refs.floating.current||!HAS_RESIZE_OBSERVER?()=>{}:(0,react_dom_1.autoUpdate)(refs.reference.current,refs.floating.current,update,{animationFrame:!!watchMotion}),[refs.reference.current,refs.floating.current,update,watchMotion]);const isReady=!(!((_b=middlewareData.hide)===null||_b===void 0)&&_b.referenceHidden);return react_1.default.createElement("div",Object.assign({},rest,{ref:floating,className:(0,classnames_1.default)(className,!isReady&&label_module_scss_1.default.hidden),style:Object.assign(Object.assign({},style),{position:strategy,top:y??0,left:x??0})}))}exports.LabelContainer=LabelContainer},36494:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Label=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),label_module_scss_1=__importDefault(__webpack_require__(65957)),component_strip_1=__webpack_require__(34585),other_components_1=__webpack_require__(74221);function Label(_a){var{components}=_a,props=__rest(_a,["components"]);const[showMore,setShowMore]=(0,react_1.useState)(!1),last=components.slice(-1).pop();if(!last)return null;const hasMore=components.length>1;return(0,react_1.useEffect)(()=>{setShowMore(!1)},[components]),react_1.default.createElement(other_components_1.OtherComponentsPopper,{components,visible:showMore,placement:"bottom-start"},react_1.default.createElement(component_strip_1.ComponentStrip,Object.assign({},props,{component:last}),hasMore&&react_1.default.createElement("span",{className:(0,classnames_1.default)(label_module_scss_1.default.othersTooltip,showMore&&label_module_scss_1.default.active),onClick:()=>setShowMore(x=>!x)})))}exports.Label=Label},22465:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcComponentLink=void 0;const url_join_1=__importDefault(__webpack_require__(98367)),component_modules_component_url_1=__webpack_require__(3605);function calcComponentLink(id,exported){if(!!id)return exported?component_modules_component_url_1.ComponentUrl.toUrl(id):(0,url_join_1.default)("/",id.fullName)}exports.calcComponentLink=calcComponentLink},74221:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OtherComponentsPopper=void 0;const react_1=__importDefault(__webpack_require__(59496)),headless_1=__importDefault(__webpack_require__(56825)),component_strip_1=__webpack_require__(34585),label_module_scss_1=__importDefault(__webpack_require__(65957));function OtherComponentsPopper(_a){var{components,children,start,end=-1,placement="bottom",interactive=!0}=_a,tippyProps=__rest(_a,["components","children","start","end","placement","interactive"]);const content=react_1.default.createElement(react_1.default.Fragment,null,components.slice(start,end).reverse().map((comp,idx)=>react_1.default.createElement(component_strip_1.ComponentStrip,{key:idx,component:comp})));return react_1.default.createElement(headless_1.default,Object.assign({placement,interactive},tippyProps,{render:attrs=>react_1.default.createElement("div",Object.assign({},attrs,{className:label_module_scss_1.default.othersContainer}),content)}),children)}exports.OtherComponentsPopper=OtherComponentsPopper},44653:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.componentRuleMatcher=exports.ruleMatcher=void 0;const component_id_1=__webpack_require__(68345);function ruleMatcher(element,rule){return typeof rule=="string"?element.matches(rule):typeof rule=="function"?rule(element):!0}exports.ruleMatcher=ruleMatcher;function componentRuleMatcher(target,rule){if(typeof rule=="string"){const targetCmpId=component_id_1.ComponentID.tryFromString(target.meta.id),ruleCmpId=component_id_1.ComponentID.tryFromString(rule);return component_id_1.ComponentID.isEqual(ruleCmpId,targetCmpId,{ignoreVersion:!0})}if(Array.isArray(rule)){const targetCmpId=component_id_1.ComponentID.tryFromString(target.meta.id);return rule.map(x=>component_id_1.ComponentID.tryFromString(x)).some(cmdId=>component_id_1.ComponentID.isEqual(targetCmpId,cmdId,{ignoreVersion:!0}))}return typeof rule=="function"?rule(target):!0}exports.componentRuleMatcher=componentRuleMatcher},35715:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hasComponentMeta=exports.componentMetaProperties=exports.componentMetaField=void 0,exports.componentMetaField="__bit_component",exports.componentMetaProperties={componentId:"id",homepageUrl:"homepage",isExported:"exported"};function hasComponentMeta(component){return component&&typeof component.__bit_component=="object"&&typeof component.__bit_component.id=="string"}exports.hasComponentMeta=hasComponentMeta},68120:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MockedComponentWithMeta=void 0;const react_1=__importDefault(__webpack_require__(59496)),component_meta_1=__webpack_require__(35715);function MockedComponentWithMeta(props){return react_1.default.createElement("button",Object.assign({type:"button"},props))}exports.MockedComponentWithMeta=MockedComponentWithMeta,MockedComponentWithMeta[component_meta_1.componentMetaField]={id:"teambit.base-ui/input/button"}},23303:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MockedComponentWithMeta=exports.componentMetaProperties=exports.componentMetaField=exports.hasComponentMeta=void 0;var component_meta_1=__webpack_require__(35715);Object.defineProperty(exports,"hasComponentMeta",{enumerable:!0,get:function(){return component_meta_1.hasComponentMeta}}),Object.defineProperty(exports,"componentMetaField",{enumerable:!0,get:function(){return component_meta_1.componentMetaField}}),Object.defineProperty(exports,"componentMetaProperties",{enumerable:!0,get:function(){return component_meta_1.componentMetaProperties}});var component_meta_mock_1=__webpack_require__(68120);Object.defineProperty(exports,"MockedComponentWithMeta",{enumerable:!0,get:function(){return component_meta_mock_1.MockedComponentWithMeta}})},69150:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useHoverSelection=exports.HoverSelector=void 0;const react_1=__importStar(__webpack_require__(59496));function HoverSelector(_a){var{onElementChange,disabled}=_a,rest=__rest(_a,["onElementChange","disabled"]);const handlers=useHoverSelection(onElementChange,rest);return react_1.default.createElement("div",Object.assign({},rest,disabled?{}:handlers))}exports.HoverSelector=HoverSelector;function useHoverSelection(onChange,props={}){const{onMouseOver,onMouseLeave}=props,handleEnter=(0,react_1.useCallback)(event=>{onMouseOver?.(event);const{target}=event;!target||onChange?.(target)},[onMouseOver,onChange]),handleLeave=(0,react_1.useCallback)(event=>{onMouseLeave?.(event),onChange?.(null)},[onMouseLeave,onChange]);return onChange?{onMouseOver:handleEnter,onMouseLeave:handleLeave}:{}}exports.useHoverSelection=useHoverSelection},78977:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useHoverSelection=exports.HoverSelector=void 0;var hover_selector_1=__webpack_require__(69150);Object.defineProperty(exports,"HoverSelector",{enumerable:!0,get:function(){return hover_selector_1.HoverSelector}}),Object.defineProperty(exports,"useHoverSelection",{enumerable:!0,get:function(){return hover_selector_1.useHoverSelection}})},48843:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBrowser=void 0;var is_browser_1=__webpack_require__(52481);Object.defineProperty(exports,"isBrowser",{enumerable:!0,get:function(){return is_browser_1.isBrowser}})},52481:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBrowser=void 0;const isBrowser=typeof window<"u";exports.isBrowser=isBrowser},56825:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>tippy_react_headless_esm,tippy:()=>tippy_headless_esm,useSingleton:()=>useSingleton});var lib_popper=__webpack_require__(60510),ROUND_ARROW='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0};function tippy_headless_esm_hasOwnProperty(obj,key){return{}.hasOwnProperty.call(obj,key)}function getValueAtIndexOrReturn(value2,index,defaultValue){if(Array.isArray(value2)){var v=value2[index];return v??(Array.isArray(defaultValue)?defaultValue[index]:defaultValue)}return value2}function isType(value2,type){var str={}.toString.call(value2);return str.indexOf("[object")===0&&str.indexOf(type+"]")>-1}function invokeWithArgsOrReturn(value2,args){return typeof value2=="function"?value2.apply(void 0,args):value2}function debounce(fn,ms){if(ms===0)return fn;var timeout;return function(arg){clearTimeout(timeout),timeout=setTimeout(function(){fn(arg)},ms)}}function removeProperties(obj,keys){var clone=Object.assign({},obj);return keys.forEach(function(key){delete clone[key]}),clone}function splitBySpaces(value2){return value2.split(/\s+/).filter(Boolean)}function normalizeToArray(value2){return[].concat(value2)}function pushIfUnique(arr,value2){arr.indexOf(value2)===-1&&arr.push(value2)}function unique(arr){return arr.filter(function(item,index){return arr.indexOf(item)===index})}function getBasePlacement(placement){return placement.split("-")[0]}function arrayFrom(value2){return[].slice.call(value2)}function removeUndefinedProps(obj){return Object.keys(obj).reduce(function(acc,key){return obj[key]!==void 0&&(acc[key]=obj[key]),acc},{})}function div(){return document.createElement("div")}function isElement(value2){return["Element","Fragment"].some(function(type){return isType(value2,type)})}function isNodeList(value2){return isType(value2,"NodeList")}function isMouseEvent(value2){return isType(value2,"MouseEvent")}function isReferenceElement(value2){return!!(value2&&value2._tippy&&value2._tippy.reference===value2)}function getArrayOfElements(value2){return isElement(value2)?[value2]:isNodeList(value2)?arrayFrom(value2):Array.isArray(value2)?value2:arrayFrom(document.querySelectorAll(value2))}function setTransitionDuration(els,value2){els.forEach(function(el){el&&(el.style.transitionDuration=value2+"ms")})}function setVisibilityState(els,state){els.forEach(function(el){el&&el.setAttribute("data-state",state)})}function getOwnerDocument(elementOrElements){var _normalizeToArray=normalizeToArray(elementOrElements),element=_normalizeToArray[0];return element&&element.ownerDocument||document}function isCursorOutsideInteractiveBorder(popperTreeData,event){var clientX=event.clientX,clientY=event.clientY;return popperTreeData.every(function(_ref){var popperRect=_ref.popperRect,popperState=_ref.popperState,props=_ref.props,interactiveBorder=props.interactiveBorder,basePlacement=getBasePlacement(popperState.placement),offsetData=popperState.modifiersData.offset;if(!offsetData)return!0;var topDistance=basePlacement==="bottom"?offsetData.top.y:0,bottomDistance=basePlacement==="top"?offsetData.bottom.y:0,leftDistance=basePlacement==="right"?offsetData.left.x:0,rightDistance=basePlacement==="left"?offsetData.right.x:0,exceedsTop=popperRect.top-clientY+topDistance>interactiveBorder,exceedsBottom=clientY-popperRect.bottom-bottomDistance>interactiveBorder,exceedsLeft=popperRect.left-clientX+leftDistance>interactiveBorder,exceedsRight=clientX-popperRect.right-rightDistance>interactiveBorder;return exceedsTop||exceedsBottom||exceedsLeft||exceedsRight})}function updateTransitionEndListener(box,action,listener){var method=action+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(event){box[method](event,listener)})}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var now=performance.now();now-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=now}function onWindowBlur(){var activeElement=document.activeElement;if(isReferenceElement(activeElement)){var instance=activeElement._tippy;activeElement.blur&&!instance.state.isVisible&&activeElement.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",ua=isBrowser?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua);function createMemoryLeakWarning(method){var txt=method==="destroy"?"n already-":" ";return[method+"() was called on a"+txt+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function clean(value2){var spacesAndTabs=/[ \t]{2,}/g,lineStartWithSpaces=/^[ \t]*/gm;return value2.replace(spacesAndTabs," ").replace(lineStartWithSpaces,"").trim()}function getDevMessage(message){return clean(`
|
13
|
+
if this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`);this.scopeName=scopeName}}exports.default=InvalidScopeNameFromRemote},27806:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(74155);class InvalidScopeName extends bit_error_1.BitError{constructor(scopeName,id,variant){const variantStr=variant?`configured in variant "${variant}" `:"";super(`error: "${id||scopeName}" ${variantStr}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidScopeName},13440:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.isValidIdChunk=exports.isValidScopeName=exports.VERSION_DELIMITER=exports.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(47709));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const exceptions_1=__webpack_require__(36564);Object.defineProperty(exports,"InvalidName",{enumerable:!0,get:function(){return exceptions_1.InvalidName}}),Object.defineProperty(exports,"InvalidScopeName",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeName}}),Object.defineProperty(exports,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeNameFromRemote}});const is_valid_scope_name_1=__importDefault(__webpack_require__(61870));exports.isValidScopeName=is_valid_scope_name_1.default;const is_valid_id_chunk_1=__importDefault(__webpack_require__(74034));exports.isValidIdChunk=is_valid_id_chunk_1.default},74034:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[-_a-z0-9/]+$/,validationRegExpDisallowSlash=/^[-_a-z0-9]+$/;function isValidIdChunk(val,allowSlash=!0){return typeof val!="string"||val.includes("//")?!1:(allowSlash?validationRegExp:validationRegExpDisallowSlash).test(val)}exports.default=isValidIdChunk},61870:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/;function isValidScopeName(val){return typeof val!="string"?!1:validationRegExp.test(val)}exports.default=isValidScopeName},27060:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(59776);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},59776:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},40836:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fiberToPrototype=exports.toRootFiber=exports.domToFiber=void 0;const react17Key="__reactFiber",react16Key="__reactInternalInstance";function domToFiber(element){if(!element)return null;const fiberKey=Object.keys(element).find(key=>key.startsWith(react17Key)||key.startsWith(react16Key));if(!fiberKey)return null;const fiberNode=element[fiberKey];return fiberNode||null}exports.domToFiber=domToFiber;function toRootFiber(fiberNode){for(let current=fiberNode;current!==null&¤t.type!==null;current=current.return)if(typeof current.type=="function"||typeof current.type=="object"&&typeof current.type.render=="function")return current;return null}exports.toRootFiber=toRootFiber;function fiberToPrototype(fiberNode){var _a;return((_a=toRootFiber(fiberNode))===null||_a===void 0?void 0:_a.type)||null}exports.fiberToPrototype=fiberToPrototype},44347:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.domToReacts=exports.domToReact=exports.toRootElement=void 0;const dom_to_fiber_1=__webpack_require__(40836);function toRootElement(element){const rootFiber=(0,dom_to_fiber_1.toRootFiber)((0,dom_to_fiber_1.domToFiber)(element));if(!rootFiber)return null;for(let current=element;current;current=current.parentElement){const fiberNode=(0,dom_to_fiber_1.domToFiber)(current);if(!fiberNode)return null;const parent2=fiberNode.return;if(fiberNode===rootFiber||parent2===rootFiber)return current}return null}exports.toRootElement=toRootElement;function domToReact(element){return domToReacts(element).pop()}exports.domToReact=domToReact;function domToReacts(element){if(element===null)return[];const fiberNode=(0,dom_to_fiber_1.domToFiber)(element),rootFiber=(0,dom_to_fiber_1.toRootFiber)(fiberNode);return componentsOf(rootFiber)}exports.domToReacts=domToReacts;function componentsOf(fiberNode){const components=[];let current=fiberNode;for(;current&¤t.type!==null&&typeof current.type!="string";)components.push(current.type),current=current.return;return components}},93237:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fiberToPrototype=exports.toRootFiber=exports.domToFiber=exports.toRootElement=exports.domToReacts=exports.domToReact=void 0;var dom_to_react_1=__webpack_require__(44347);Object.defineProperty(exports,"domToReact",{enumerable:!0,get:function(){return dom_to_react_1.domToReact}}),Object.defineProperty(exports,"domToReacts",{enumerable:!0,get:function(){return dom_to_react_1.domToReacts}}),Object.defineProperty(exports,"toRootElement",{enumerable:!0,get:function(){return dom_to_react_1.toRootElement}});var dom_to_fiber_1=__webpack_require__(40836);Object.defineProperty(exports,"domToFiber",{enumerable:!0,get:function(){return dom_to_fiber_1.domToFiber}}),Object.defineProperty(exports,"toRootFiber",{enumerable:!0,get:function(){return dom_to_fiber_1.toRootFiber}}),Object.defineProperty(exports,"fiberToPrototype",{enumerable:!0,get:function(){return dom_to_fiber_1.fiberToPrototype}})},28506:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChildrenHighlighter=void 0;const react_1=__importDefault(__webpack_require__(59496)),hybrid_highlighter_1=__webpack_require__(4865);function ChildrenHighlighter(_a){var{watchMotion=!1}=_a,props=__rest(_a,["watchMotion"]);return react_1.default.createElement(hybrid_highlighter_1.HybridHighlighter,Object.assign({},props,{mode:"allChildren",watchMotion}))}exports.ChildrenHighlighter=ChildrenHighlighter},31155:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChildrenHighlighter=exports.useChildrenHighlighter=void 0;var use_children_highlighter_1=__webpack_require__(99606);Object.defineProperty(exports,"useChildrenHighlighter",{enumerable:!0,get:function(){return use_children_highlighter_1.useChildrenHighlighter}});var children_highlighter_1=__webpack_require__(28506);Object.defineProperty(exports,"ChildrenHighlighter",{enumerable:!0,get:function(){return children_highlighter_1.ChildrenHighlighter}})},99606:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useChildrenHighlighter=void 0;const react_1=__webpack_require__(59496),get_xpath_1=__importDefault(__webpack_require__(66200)),react_modules_dom_to_react_1=__webpack_require__(93237),react_ui_highlighter_component_metadata_bit_component_meta_1=__webpack_require__(45670),ignore_highlighter_1=__webpack_require__(67851),rule_matcher_1=__webpack_require__(63262);function useChildrenHighlighter({onChange,disabled,scopeRef,scopeClass:scopeSelector="",rule,componentRule}){(0,react_1.useEffect)(()=>{const nextTargets={},scopeElement=scopeRef.current;if(!scopeElement||disabled)return;let allElements=Array.from(scopeElement.querySelectorAll(targetsSelector(`.${scopeSelector}`)));rule&&(allElements=allElements.filter(elem=>(0,rule_matcher_1.ruleMatcher)(elem,rule)));const rootElements=allElements.map(react_modules_dom_to_react_1.toRootElement).filter(x=>!!x);new Set(rootElements).forEach(element=>{if(!element)return;const componentsWithMeta=(0,react_modules_dom_to_react_1.domToReacts)(element).filter(x=>(0,react_ui_highlighter_component_metadata_bit_component_meta_1.hasComponentMeta)(x)&&(0,rule_matcher_1.componentRuleMatcher)({meta:x[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField]},componentRule));if(componentsWithMeta.length<1)return;const key=(0,get_xpath_1.default)(element);nextTargets[key]={element,components:componentsWithMeta}}),onChange(nextTargets)},[disabled,scopeSelector])}exports.useChildrenHighlighter=useChildrenHighlighter;function targetsSelector(scopeSelector=":scope"){const excludedSelector=`${scopeSelector} ${ignore_highlighter_1.excludeHighlighterSelector}, ${scopeSelector} ${ignore_highlighter_1.excludeHighlighterSelector} *`,skippedSelector=`${scopeSelector} ${ignore_highlighter_1.skipHighlighterSelector}, ${scopeSelector} ${ignore_highlighter_1.skipHighlighterSelector} *`;return`:not(${excludedSelector}, ${skippedSelector})`}},86702:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElementHighlighter=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),frame_1=__webpack_require__(2169),label_1=__webpack_require__(10586),ignore_highlighter_1=__webpack_require__(67851),element_highlighter_module_scss_1=__importDefault(__webpack_require__(92829));function ElementHighlighter(_a){var{targetRef,components,placement="top",watchMotion,className,classes}=_a,props=__rest(_a,["targetRef","components","placement","watchMotion","className","classes"]);return react_1.default.createElement("div",Object.assign({},props,ignore_highlighter_1.skipHighlighterAttr,{className:(0,classnames_1.default)(classes?.container,element_highlighter_module_scss_1.default.container,className)}),react_1.default.createElement(frame_1.Frame,{targetRef,className:(0,classnames_1.default)(element_highlighter_module_scss_1.default.frame,classes?.frame),watchMotion}),components&&react_1.default.createElement(label_1.LabelContainer,{targetRef,className:element_highlighter_module_scss_1.default.label,placement,watchMotion},react_1.default.createElement(label_1.Label,{components,className:classes?.label})))}exports.ElementHighlighter=ElementHighlighter},75912:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElementHighlighter=void 0;var element_highlighter_1=__webpack_require__(86702);Object.defineProperty(exports,"ElementHighlighter",{enumerable:!0,get:function(){return element_highlighter_1.ElementHighlighter}})},54554:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value2){return value2 instanceof P?value2:new P(function(resolve){resolve(value2)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value2){try{step(generator.next(value2))}catch(e){reject(e)}}function rejected(value2){try{step(generator.throw(value2))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Frame=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),react_dom_1=__webpack_require__(99674),frame_module_scss_1=__importDefault(__webpack_require__(16122)),MARGIN_FROM_TARGET=+frame_module_scss_1.default.offset||6,MARGIN_FROM_DOC_EDGE=0,overflowParameters={rootBoundary:"document",padding:MARGIN_FROM_DOC_EDGE},SHIFT_POSITIVE="shiftPositive",HAS_RESIZE_OBSERVER=typeof window<"u"&&!!window.ResizeObserver;function Frame({targetRef,watchMotion,className,stylesClass=frame_module_scss_1.default.overlayBorder,style}){var _a;const dimensionRef=(0,react_1.useRef)({width:0,height:0}),{x,y,strategy,reference,floating,update,refs,middlewareData}=(0,react_dom_1.useFloating)({placement:"bottom-start",middleware:[{name:"align-to-target",fn({rects}){return rects.floating=Object.assign(Object.assign({},rects.floating),{width:rects.reference.width+2*MARGIN_FROM_TARGET,height:rects.reference.height+2*MARGIN_FROM_TARGET}),{}}},(0,react_dom_1.offset)(({rects})=>-rects.reference.height),(0,react_dom_1.offset)(()=>({mainAxis:-MARGIN_FROM_TARGET,crossAxis:-MARGIN_FROM_TARGET})),{name:"shiftPositive",fn:args=>__awaiter(this,void 0,void 0,function*(){const overflow=yield(0,react_dom_1.detectOverflow)(args,overflowParameters),nextCoords={x:overflow.left>0?args.x+overflow.left:args.x,y:overflow.top>0?args.y+overflow.top:args.y},shiftAmount={x:nextCoords.x-args.x,y:nextCoords.y-args.y};return Object.assign(Object.assign({},nextCoords),{data:shiftAmount})})},(0,react_dom_1.size)({rootBoundary:"document",padding:MARGIN_FROM_DOC_EDGE,apply({elements,rects,availableHeight,availableWidth,middlewareData:middlewareData2}){const shift=middlewareData2[SHIFT_POSITIVE]||{x:0,y:0},paddingX=2*MARGIN_FROM_TARGET-shift.x,paddingY=2*MARGIN_FROM_TARGET-shift.y,dimensions={width:rects.reference.width+paddingX,height:rects.reference.height+paddingY,maxWidth:availableWidth,maxHeight:availableHeight};Object.assign(elements.floating.style,dimensions),dimensionRef.current=dimensions}}),(0,react_dom_1.hide)({strategy:"referenceHidden"})]});(0,react_1.useLayoutEffect)(()=>{reference(targetRef.current)},[targetRef.current]),(0,react_1.useEffect)(()=>!refs.reference.current||!refs.floating.current||!HAS_RESIZE_OBSERVER?()=>{}:(0,react_dom_1.autoUpdate)(refs.reference.current,refs.floating.current,update,{animationFrame:watchMotion}),[refs.reference.current,refs.floating.current,update,watchMotion]);const isReady=!(!((_a=middlewareData.hide)===null||_a===void 0)&&_a.referenceHidden);return react_1.default.createElement("div",{ref:floating,className:(0,classnames_1.default)(className,stylesClass,!isReady&&frame_module_scss_1.default.hidden),style:Object.assign(Object.assign(Object.assign({},style),dimensionRef.current),{position:strategy,top:y??0,left:x??0})})}exports.Frame=Frame},2169:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Frame=void 0;var frame_1=__webpack_require__(54554);Object.defineProperty(exports,"Frame",{enumerable:!0,get:function(){return frame_1.Frame}})},67958:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bubbleToComponent=void 0;const react_modules_dom_to_react_1=__webpack_require__(93237),react_ui_highlighter_component_metadata_bit_component_meta_1=__webpack_require__(45670),rule_matcher_1=__webpack_require__(63262);function bubbleToComponent(element,{elementRule,componentRule,propagateSameParents=!0}={}){let current=bubbleToFirstComponent(element,elementRule,componentRule);if(!propagateSameParents)return current;for(;current;){const parentElement=current.element.parentElement,parent2=bubbleToFirstComponent(parentElement,elementRule,componentRule),primeComponent=current?.components.slice(-1).pop(),parentPrimeComponent=parent2?.components.slice(-1).pop();if(primeComponent?.[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField].id!==parentPrimeComponent?.[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField].id)return current;current=parent2}}exports.bubbleToComponent=bubbleToComponent;function bubbleToFirstComponent(element,elementRule,componentRule){for(let current=element;current;current=current.parentElement){if(current=(0,react_modules_dom_to_react_1.toRootElement)(current),!current)return;if((0,rule_matcher_1.ruleMatcher)(current,elementRule)){const relevantComponents=(0,react_modules_dom_to_react_1.domToReacts)(current).filter(x=>(0,react_ui_highlighter_component_metadata_bit_component_meta_1.hasComponentMeta)(x)&&(0,rule_matcher_1.componentRuleMatcher)({meta:x[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField]},componentRule));return relevantComponents.length<1?void 0:{element:current,components:relevantComponents}}}}},83989:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HoverHighlighter=void 0;const react_1=__importDefault(__webpack_require__(59496)),hybrid_highlighter_1=__webpack_require__(4865);function HoverHighlighter(_a){var props=__rest(_a,[]);return react_1.default.createElement(hybrid_highlighter_1.HybridHighlighter,Object.assign({},props,{mode:"hover"}))}exports.HoverHighlighter=HoverHighlighter},21647:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HoverHighlighter=exports.useHoverHighlighter=void 0;var use_hover_highlighter_1=__webpack_require__(27538);Object.defineProperty(exports,"useHoverHighlighter",{enumerable:!0,get:function(){return use_hover_highlighter_1.useHoverHighlighter}});var hover_highlighter_1=__webpack_require__(83989);Object.defineProperty(exports,"HoverHighlighter",{enumerable:!0,get:function(){return hover_highlighter_1.HoverHighlighter}})},27538:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useHoverHighlighter=void 0;const react_1=__webpack_require__(59496),use_debounce_1=__webpack_require__(15293),react_ui_hover_selector_1=__webpack_require__(92562),ignore_highlighter_1=__webpack_require__(67851),bubble_to_component_1=__webpack_require__(67958);function useHoverHighlighter(onChange,props={},{debounceDuration,scopeClass,disabled,rule,componentRule}){const{handleElement}=useHoverHandler({onChange,scopeClass,debounceDuration,disabled,rule,componentRule});return(0,react_ui_hover_selector_1.useHoverSelection)(disabled?void 0:handleElement,props)}exports.useHoverHighlighter=useHoverHighlighter;function useHoverHandler({onChange,scopeClass="",debounceDuration,disabled,rule,componentRule}){const _handleElement=element=>{if(!element||element.hasAttribute("data-nullify-component-highlight")){onChange(void 0);return}if(element.closest(`.${scopeClass} ${ignore_highlighter_1.excludeHighlighterSelector}`)){onChange(void 0);return}if(element.closest(`.${scopeClass} ${ignore_highlighter_1.skipHighlighterSelector}`))return;const result=(0,bubble_to_component_1.bubbleToComponent)(element,{elementRule:rule,componentRule});!result||onChange({element:result.element,components:result.components})},handleElement=(0,use_debounce_1.useDebouncedCallback)(_handleElement,debounceDuration);return(0,react_1.useEffect)(()=>{disabled&&handleElement.cancel()},[disabled,handleElement]),{handleElement}}},10079:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HybridHighlighter=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),uuid_1=__webpack_require__(92674),hover_highlighter_1=__webpack_require__(21647),element_highlighter_1=__webpack_require__(75912),children_highlighter_1=__webpack_require__(31155);function HybridHighlighter(_a){var{disabled,mode="hover",debounceSelection=80,watchMotion=!0,placement,rule,componentRule,classes,highlightStyle,className,style,bgColor,bgColorHover,bgColorActive,children}=_a,rest=__rest(_a,["disabled","mode","debounceSelection","watchMotion","placement","rule","componentRule","classes","highlightStyle","className","style","bgColor","bgColorHover","bgColorActive","children"]);const ref=(0,react_1.createRef)(),[targets,setTarget]=(0,react_1.useState)({}),scopeClass=(0,react_1.useRef)(`hl-scope-${(0,uuid_1.v4)()}`).current,hasTargets=Object.entries(targets).length>0;(0,react_1.useEffect)(()=>{disabled&&setTarget({})},[disabled]);const handlers=(0,hover_highlighter_1.useHoverHighlighter)(nextTarget=>setTarget(nextTarget?{"hover-target":nextTarget}:{}),rest,{debounceDuration:hasTargets?debounceSelection:0,scopeClass,disabled:disabled||mode!=="hover",rule,componentRule});(0,children_highlighter_1.useChildrenHighlighter)({onChange:setTarget,scopeRef:ref,scopeClass,disabled:disabled||mode!=="allChildren",rule,componentRule});const _styles=(0,react_1.useMemo)(()=>Object.assign({"--bit-highlighter-color":bgColor,"--bit-highlighter-color-hover":bgColorHover,"--bit-highlighter-color-active":bgColorActive},style),[bgColor,bgColorHover,bgColorActive,style]);return react_1.default.createElement("div",Object.assign({ref},rest,handlers,{style:_styles,className:(0,classnames_1.default)(className,scopeClass),"data-nullify-component-highlight":!0}),children,Object.entries(targets).map(([key,target])=>react_1.default.createElement(element_highlighter_1.ElementHighlighter,{key,targetRef:{current:target.element},components:target.components,classes,style:highlightStyle,placement,watchMotion})))}exports.HybridHighlighter=HybridHighlighter},4865:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HybridHighlighter=void 0;var hybrid_highlighter_1=__webpack_require__(10079);Object.defineProperty(exports,"HybridHighlighter",{enumerable:!0,get:function(){return hybrid_highlighter_1.HybridHighlighter}})},67851:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.skipHighlighterSelector=exports.skipHighlighterAttr=exports.skipHighlighterAttrName=exports.ExcludeHighlighter=exports.excludeHighlighterAtt=exports.excludeHighlighterSelector=exports.excludeHighlighterAttrName=void 0;const react_1=__importDefault(__webpack_require__(59496));exports.excludeHighlighterAttrName="data-ignore-component-highlight",exports.excludeHighlighterSelector=`[${exports.excludeHighlighterAttrName}]`,exports.excludeHighlighterAtt={[exports.excludeHighlighterAttrName]:!0};function ExcludeHighlighter(props){return react_1.default.createElement("div",Object.assign({},props,exports.excludeHighlighterAtt))}exports.ExcludeHighlighter=ExcludeHighlighter,exports.skipHighlighterAttrName="data-skip-component-highlight",exports.skipHighlighterAttr={[exports.skipHighlighterAttrName]:!0},exports.skipHighlighterSelector=`[${exports.skipHighlighterAttrName}]`},58112:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.skipHighlighterAttrName=exports.skipHighlighterAttr=exports.excludeHighlighterAttrName=exports.excludeHighlighterAtt=exports.ExcludeHighlighter=exports.ElementHighlighter=exports.ChildrenHighlighter=exports.HoverHighlighter=exports.ComponentHighlighter=void 0;var hybrid_highlighter_1=__webpack_require__(4865);Object.defineProperty(exports,"ComponentHighlighter",{enumerable:!0,get:function(){return hybrid_highlighter_1.HybridHighlighter}});var hover_highlighter_1=__webpack_require__(21647);Object.defineProperty(exports,"HoverHighlighter",{enumerable:!0,get:function(){return hover_highlighter_1.HoverHighlighter}});var children_highlighter_1=__webpack_require__(31155);Object.defineProperty(exports,"ChildrenHighlighter",{enumerable:!0,get:function(){return children_highlighter_1.ChildrenHighlighter}});var element_highlighter_1=__webpack_require__(75912);Object.defineProperty(exports,"ElementHighlighter",{enumerable:!0,get:function(){return element_highlighter_1.ElementHighlighter}});var ignore_highlighter_1=__webpack_require__(67851);Object.defineProperty(exports,"ExcludeHighlighter",{enumerable:!0,get:function(){return ignore_highlighter_1.ExcludeHighlighter}}),Object.defineProperty(exports,"excludeHighlighterAtt",{enumerable:!0,get:function(){return ignore_highlighter_1.excludeHighlighterAtt}}),Object.defineProperty(exports,"excludeHighlighterAttrName",{enumerable:!0,get:function(){return ignore_highlighter_1.excludeHighlighterAttrName}}),Object.defineProperty(exports,"skipHighlighterAttr",{enumerable:!0,get:function(){return ignore_highlighter_1.skipHighlighterAttr}}),Object.defineProperty(exports,"skipHighlighterAttrName",{enumerable:!0,get:function(){return ignore_highlighter_1.skipHighlighterAttrName}})},85247:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentStrip=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_routing_native_link_1=__webpack_require__(54251),component_id_1=__webpack_require__(68345),component_modules_component_url_1=__webpack_require__(3884),react_ui_highlighter_component_metadata_bit_component_meta_1=__webpack_require__(45670),component_strip_module_scss_1=__importDefault(__webpack_require__(66760)),links_1=__webpack_require__(99918);exports.ComponentStrip=(0,react_1.forwardRef)(function({component,children},ref){const{id,homepage,exported}=extractMetadata(component),parsedId=(0,react_1.useMemo)(()=>component_id_1.ComponentID.tryFromString(id),[id]),componentLink=homepage||(0,links_1.calcComponentLink)(parsedId,exported);return react_1.default.createElement("div",{className:component_strip_module_scss_1.default.componentStrip,ref},!parsedId&&react_1.default.createElement(LabelBlock,{link:homepage},id),parsedId&&react_1.default.createElement(LabelBlock,{link:component_modules_component_url_1.ScopeUrl.toUrl(parsedId.scope)},parsedId.scope),parsedId&&react_1.default.createElement(LabelBlock,{link:componentLink,className:component_strip_module_scss_1.default.nameBlock},react_1.default.createElement("span",null,parsedId.fullName),parsedId.version&&parsedId.version!=="latest"&&react_1.default.createElement("span",{className:component_strip_module_scss_1.default.version},"@",parsedId.version)),children)});function LabelBlock({link,children,className}){const Comp=link?base_ui_routing_native_link_1.NativeLink:"span";return react_1.default.createElement(Comp,{href:link,external:!!link,className},children)}function extractMetadata(metadata){return typeof metadata=="string"?{id:metadata,exported:!0}:metadata[react_ui_highlighter_component_metadata_bit_component_meta_1.componentMetaField]}},10586:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelContainer=exports.Label=void 0;var label_1=__webpack_require__(771);Object.defineProperty(exports,"Label",{enumerable:!0,get:function(){return label_1.Label}});var label_container_1=__webpack_require__(98808);Object.defineProperty(exports,"LabelContainer",{enumerable:!0,get:function(){return label_container_1.LabelContainer}})},98808:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelContainer=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),lodash_compact_1=__importDefault(__webpack_require__(69505)),react_dom_1=__webpack_require__(99674),label_module_scss_1=__importDefault(__webpack_require__(95236)),HAS_RESIZE_OBSERVER=typeof window<"u"&&!!window.ResizeObserver;function LabelContainer(_a){var _b,{targetRef,offset,placement,flip=!0,watchMotion,className,style}=_a,rest=__rest(_a,["targetRef","offset","placement","flip","watchMotion","className","style"]);const{x,y,strategy,floating,reference,refs,update,middlewareData}=(0,react_dom_1.useFloating)({placement,middleware:(0,lodash_compact_1.default)([offset&&(0,react_dom_1.offset)({mainAxis:offset[0],crossAxis:offset[1]}),flip&&(0,react_dom_1.flip)(),(0,react_dom_1.shift)({rootBoundary:"document",mainAxis:!0,crossAxis:!0}),(0,react_dom_1.hide)({strategy:"referenceHidden"})])});(0,react_1.useLayoutEffect)(()=>{reference(targetRef.current)},[targetRef.current,reference]),(0,react_1.useEffect)(()=>!refs.reference.current||!refs.floating.current||!HAS_RESIZE_OBSERVER?()=>{}:(0,react_dom_1.autoUpdate)(refs.reference.current,refs.floating.current,update,{animationFrame:!!watchMotion}),[refs.reference.current,refs.floating.current,update,watchMotion]);const isReady=!(!((_b=middlewareData.hide)===null||_b===void 0)&&_b.referenceHidden);return react_1.default.createElement("div",Object.assign({},rest,{ref:floating,className:(0,classnames_1.default)(className,!isReady&&label_module_scss_1.default.hidden),style:Object.assign(Object.assign({},style),{position:strategy,top:y??0,left:x??0})}))}exports.LabelContainer=LabelContainer},771:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Label=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(82187)),label_module_scss_1=__importDefault(__webpack_require__(95236)),component_strip_1=__webpack_require__(85247),other_components_1=__webpack_require__(67429);function Label(_a){var{components}=_a,props=__rest(_a,["components"]);const[showMore,setShowMore]=(0,react_1.useState)(!1),last=components.slice(-1).pop();if(!last)return null;const hasMore=components.length>1;return(0,react_1.useEffect)(()=>{setShowMore(!1)},[components]),react_1.default.createElement(other_components_1.OtherComponentsPopper,{components,visible:showMore,placement:"bottom-start"},react_1.default.createElement(component_strip_1.ComponentStrip,Object.assign({},props,{component:last}),hasMore&&react_1.default.createElement("span",{className:(0,classnames_1.default)(label_module_scss_1.default.othersTooltip,showMore&&label_module_scss_1.default.active),onClick:()=>setShowMore(x=>!x)})))}exports.Label=Label},99918:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcComponentLink=void 0;const url_join_1=__importDefault(__webpack_require__(98367)),component_modules_component_url_1=__webpack_require__(3884);function calcComponentLink(id,exported){if(!!id)return exported?component_modules_component_url_1.ComponentUrl.toUrl(id):(0,url_join_1.default)("/",id.fullName)}exports.calcComponentLink=calcComponentLink},67429:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OtherComponentsPopper=void 0;const react_1=__importDefault(__webpack_require__(59496)),headless_1=__importDefault(__webpack_require__(14628)),component_strip_1=__webpack_require__(85247),label_module_scss_1=__importDefault(__webpack_require__(95236));function OtherComponentsPopper(_a){var{components,children,start,end=-1,placement="bottom",interactive=!0}=_a,tippyProps=__rest(_a,["components","children","start","end","placement","interactive"]);const content=react_1.default.createElement(react_1.default.Fragment,null,components.slice(start,end).reverse().map((comp,idx)=>react_1.default.createElement(component_strip_1.ComponentStrip,{key:idx,component:comp})));return react_1.default.createElement(headless_1.default,Object.assign({placement,interactive},tippyProps,{render:attrs=>react_1.default.createElement("div",Object.assign({},attrs,{className:label_module_scss_1.default.othersContainer}),content)}),children)}exports.OtherComponentsPopper=OtherComponentsPopper},63262:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.componentRuleMatcher=exports.ruleMatcher=void 0;const component_id_1=__webpack_require__(68345);function ruleMatcher(element,rule){return typeof rule=="string"?element.matches(rule):typeof rule=="function"?rule(element):!0}exports.ruleMatcher=ruleMatcher;function componentRuleMatcher(target,rule){if(typeof rule=="string"){const targetCmpId=component_id_1.ComponentID.tryFromString(target.meta.id),ruleCmpId=component_id_1.ComponentID.tryFromString(rule);return component_id_1.ComponentID.isEqual(ruleCmpId,targetCmpId,{ignoreVersion:!0})}if(Array.isArray(rule)){const targetCmpId=component_id_1.ComponentID.tryFromString(target.meta.id);return rule.map(x=>component_id_1.ComponentID.tryFromString(x)).some(cmdId=>component_id_1.ComponentID.isEqual(targetCmpId,cmdId,{ignoreVersion:!0}))}return typeof rule=="function"?rule(target):!0}exports.componentRuleMatcher=componentRuleMatcher},84093:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hasComponentMeta=exports.componentMetaProperties=exports.componentMetaField=void 0,exports.componentMetaField="__bit_component",exports.componentMetaProperties={componentId:"id",homepageUrl:"homepage",isExported:"exported"};function hasComponentMeta(component){return component&&typeof component.__bit_component=="object"&&typeof component.__bit_component.id=="string"}exports.hasComponentMeta=hasComponentMeta},58205:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MockedComponentWithMeta=void 0;const react_1=__importDefault(__webpack_require__(59496)),component_meta_1=__webpack_require__(84093);function MockedComponentWithMeta(props){return react_1.default.createElement("button",Object.assign({type:"button"},props))}exports.MockedComponentWithMeta=MockedComponentWithMeta,MockedComponentWithMeta[component_meta_1.componentMetaField]={id:"teambit.base-ui/input/button"}},45670:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MockedComponentWithMeta=exports.componentMetaProperties=exports.componentMetaField=exports.hasComponentMeta=void 0;var component_meta_1=__webpack_require__(84093);Object.defineProperty(exports,"hasComponentMeta",{enumerable:!0,get:function(){return component_meta_1.hasComponentMeta}}),Object.defineProperty(exports,"componentMetaField",{enumerable:!0,get:function(){return component_meta_1.componentMetaField}}),Object.defineProperty(exports,"componentMetaProperties",{enumerable:!0,get:function(){return component_meta_1.componentMetaProperties}});var component_meta_mock_1=__webpack_require__(58205);Object.defineProperty(exports,"MockedComponentWithMeta",{enumerable:!0,get:function(){return component_meta_mock_1.MockedComponentWithMeta}})},10654:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useHoverSelection=exports.HoverSelector=void 0;const react_1=__importStar(__webpack_require__(59496));function HoverSelector(_a){var{onElementChange,disabled}=_a,rest=__rest(_a,["onElementChange","disabled"]);const handlers=useHoverSelection(onElementChange,rest);return react_1.default.createElement("div",Object.assign({},rest,disabled?{}:handlers))}exports.HoverSelector=HoverSelector;function useHoverSelection(onChange,props={}){const{onMouseOver,onMouseLeave}=props,handleEnter=(0,react_1.useCallback)(event=>{onMouseOver?.(event);const{target}=event;!target||onChange?.(target)},[onMouseOver,onChange]),handleLeave=(0,react_1.useCallback)(event=>{onMouseLeave?.(event),onChange?.(null)},[onMouseLeave,onChange]);return onChange?{onMouseOver:handleEnter,onMouseLeave:handleLeave}:{}}exports.useHoverSelection=useHoverSelection},92562:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useHoverSelection=exports.HoverSelector=void 0;var hover_selector_1=__webpack_require__(10654);Object.defineProperty(exports,"HoverSelector",{enumerable:!0,get:function(){return hover_selector_1.HoverSelector}}),Object.defineProperty(exports,"useHoverSelection",{enumerable:!0,get:function(){return hover_selector_1.useHoverSelection}})},92900:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBrowser=void 0;var is_browser_1=__webpack_require__(42039);Object.defineProperty(exports,"isBrowser",{enumerable:!0,get:function(){return is_browser_1.isBrowser}})},42039:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBrowser=void 0;const isBrowser=typeof window<"u";exports.isBrowser=isBrowser},14628:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>tippy_react_headless_esm,tippy:()=>tippy_headless_esm,useSingleton:()=>useSingleton});var lib_popper=__webpack_require__(60510),ROUND_ARROW='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0};function tippy_headless_esm_hasOwnProperty(obj,key){return{}.hasOwnProperty.call(obj,key)}function getValueAtIndexOrReturn(value2,index,defaultValue){if(Array.isArray(value2)){var v=value2[index];return v??(Array.isArray(defaultValue)?defaultValue[index]:defaultValue)}return value2}function isType(value2,type){var str={}.toString.call(value2);return str.indexOf("[object")===0&&str.indexOf(type+"]")>-1}function invokeWithArgsOrReturn(value2,args){return typeof value2=="function"?value2.apply(void 0,args):value2}function debounce(fn,ms){if(ms===0)return fn;var timeout;return function(arg){clearTimeout(timeout),timeout=setTimeout(function(){fn(arg)},ms)}}function removeProperties(obj,keys){var clone=Object.assign({},obj);return keys.forEach(function(key){delete clone[key]}),clone}function splitBySpaces(value2){return value2.split(/\s+/).filter(Boolean)}function normalizeToArray(value2){return[].concat(value2)}function pushIfUnique(arr,value2){arr.indexOf(value2)===-1&&arr.push(value2)}function unique(arr){return arr.filter(function(item,index){return arr.indexOf(item)===index})}function getBasePlacement(placement){return placement.split("-")[0]}function arrayFrom(value2){return[].slice.call(value2)}function removeUndefinedProps(obj){return Object.keys(obj).reduce(function(acc,key){return obj[key]!==void 0&&(acc[key]=obj[key]),acc},{})}function div(){return document.createElement("div")}function isElement(value2){return["Element","Fragment"].some(function(type){return isType(value2,type)})}function isNodeList(value2){return isType(value2,"NodeList")}function isMouseEvent(value2){return isType(value2,"MouseEvent")}function isReferenceElement(value2){return!!(value2&&value2._tippy&&value2._tippy.reference===value2)}function getArrayOfElements(value2){return isElement(value2)?[value2]:isNodeList(value2)?arrayFrom(value2):Array.isArray(value2)?value2:arrayFrom(document.querySelectorAll(value2))}function setTransitionDuration(els,value2){els.forEach(function(el){el&&(el.style.transitionDuration=value2+"ms")})}function setVisibilityState(els,state){els.forEach(function(el){el&&el.setAttribute("data-state",state)})}function getOwnerDocument(elementOrElements){var _normalizeToArray=normalizeToArray(elementOrElements),element=_normalizeToArray[0];return element&&element.ownerDocument||document}function isCursorOutsideInteractiveBorder(popperTreeData,event){var clientX=event.clientX,clientY=event.clientY;return popperTreeData.every(function(_ref){var popperRect=_ref.popperRect,popperState=_ref.popperState,props=_ref.props,interactiveBorder=props.interactiveBorder,basePlacement=getBasePlacement(popperState.placement),offsetData=popperState.modifiersData.offset;if(!offsetData)return!0;var topDistance=basePlacement==="bottom"?offsetData.top.y:0,bottomDistance=basePlacement==="top"?offsetData.bottom.y:0,leftDistance=basePlacement==="right"?offsetData.left.x:0,rightDistance=basePlacement==="left"?offsetData.right.x:0,exceedsTop=popperRect.top-clientY+topDistance>interactiveBorder,exceedsBottom=clientY-popperRect.bottom-bottomDistance>interactiveBorder,exceedsLeft=popperRect.left-clientX+leftDistance>interactiveBorder,exceedsRight=clientX-popperRect.right-rightDistance>interactiveBorder;return exceedsTop||exceedsBottom||exceedsLeft||exceedsRight})}function updateTransitionEndListener(box,action,listener){var method=action+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(event){box[method](event,listener)})}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var now=performance.now();now-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=now}function onWindowBlur(){var activeElement=document.activeElement;if(isReferenceElement(activeElement)){var instance=activeElement._tippy;activeElement.blur&&!instance.state.isVisible&&activeElement.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",ua=isBrowser?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua);function createMemoryLeakWarning(method){var txt=method==="destroy"?"n already-":" ";return[method+"() was called on a"+txt+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function clean(value2){var spacesAndTabs=/[ \t]{2,}/g,lineStartWithSpaces=/^[ \t]*/gm;return value2.replace(spacesAndTabs," ").replace(lineStartWithSpaces,"").trim()}function getDevMessage(message){return clean(`
|
14
14
|
%ctippy.js
|
15
15
|
|
16
16
|
%c`+clean(message)+`
|
@@ -23,7 +23,7 @@ if this is a scope on bit.cloud please add the organization name before the scop
|
|
23
23
|
Copyright (c) 2017 Jed Watson.
|
24
24
|
Licensed under the MIT License (MIT), see
|
25
25
|
http://jedwatson.github.io/classnames
|
26
|
-
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)&&arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}else if(argType==="object")for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},18337:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(88546);exports.tarjan=tarjan_1.tarjan},88546:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__importDefault(__webpack_require__(32699));function tarjan(g){var index=0,stack=[],visited={},results=[];function dfs(v){var entry=visited[v]={onStack:!0,lowlink:index,index:index++};if(stack.push(v),[...g.successors(v).keys()].forEach(function(w2){lodash_1.default.has(visited,w2)?visited[w2].onStack&&(entry.lowlink=Math.min(entry.lowlink,visited[w2].index)):(dfs(w2),entry.lowlink=Math.min(entry.lowlink,visited[w2].lowlink))}),entry.lowlink===entry.index){var cmpt=[],w;do w=stack.pop(),visited[w].onStack=!1,cmpt.push(w);while(v!==w);results.push(cmpt)}}return[...g.nodes.keys()].forEach(function(v){lodash_1.default.has(visited,v)||dfs(v)}),results}exports.tarjan=tarjan},46984:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class GraphEdge{constructor(sourceId,targetId,attr){this.sourceId=sourceId,this.targetId=targetId,this.sourceId=sourceId,this.targetId=targetId,this.attr=attr}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseEdge){if(!obj.hasOwnProperty("sourceId"))throw Error("missing source id");if(!obj.hasOwnProperty("targetId"))throw Error("missing target id");return{sourceId:obj.sourceId,targetId:obj.targetId,edge:parseEdge(obj.edge)}}static edgeId(sourceId,targetId){return`${sourceId}->${targetId}`}static parseEdgeId(id){const spl=id.split("->");return spl.length===2?{sourceId:spl[0],targetId:spl[1]}:{sourceId:"",targetId:""}}get nodes(){return[this.sourceId,this.targetId]}}exports.GraphEdge=GraphEdge;function genericParseEdge(edge){return Object.keys(edge).length===0&&edge.constructor===Object||typeof edge!="object"?edge:JSON.parse(edge)}exports.genericParseEdge=genericParseEdge;function genericEdgeToJson(edge){return edge}exports.genericEdgeToJson=genericEdgeToJson},22350:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class CyclicError extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.CyclicError=CyclicError;class NodeDoesntExist extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.NodeDoesntExist=NodeDoesntExist},37539:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const index_1=__webpack_require__(49277),index_2=__webpack_require__(49277),index_3=__webpack_require__(49277),lodash_1=__importDefault(__webpack_require__(32699)),algorithms_1=__webpack_require__(18337),node_1=__webpack_require__(98749),edge_1=__webpack_require__(46984);class Graph{constructor(nodes=[],edges=[]){this._nodes=new Map,this._edges=new Map,nodes.forEach(elem=>this.setNode(elem.id,elem.node)),edges.forEach(elem=>this.setEdge(elem.sourceId,elem.targetId,elem.edge))}create(nodes=[],edges=[]){return new Graph(nodes,edges)}get _userNodes(){return this._transformToUserNodeMap(this._nodes)}get _userEdges(){return this._transformToUserEdgeMap(this._edges)}_transformToUserNodeMap(map){let newMap=new Map;for(const[key,value2]of map.entries())newMap.set(key,value2.attr);return newMap}_transformToUserEdgeMap(map){let newMap=new Map;for(const[key,value2]of map.entries())newMap.set(key,value2.attr);return newMap}setNode(id,node,overrideExisting=!0){if(this.hasNode(id)){if(overrideExisting){let existingNode=this._node(id);existingNode&&(existingNode.attr=node)}}else{let graphNode=new index_1.GraphNode(id,node);this._nodes.set(id,graphNode)}return this}setEdge(sourceId,targetId,edge,overrideExisting=!0){if(this.hasEdge(sourceId,targetId))if(overrideExisting){let existingEdge=this._edge(sourceId,targetId);return existingEdge&&(existingEdge.attr=edge),this}else return this;const id=index_2.GraphEdge.edgeId(sourceId,targetId);let graphEdge=new index_2.GraphEdge(sourceId,targetId,edge);if(this._edges.set(id,graphEdge),this._nodes.has(sourceId)){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.setOutEdge(id)}else throw Error("source node does not exist");if(this._nodes.has(targetId)){let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.setInEdge(id)}else throw Error("target node does not exist");return this}setNodes(nodes,overrideExisting=!0){return nodes.forEach(elem=>{if(!this.hasNode(elem.id))this.setNode(elem.id,elem.node);else if(overrideExisting){let existingNode=this._node(elem.id);existingNode&&(existingNode.attr=elem.node)}}),this}setEdges(edges,overrideExisting=!0){return edges.forEach(elem=>{if(!this.hasEdge(elem.sourceId,elem.targetId))this.setEdge(elem.sourceId,elem.targetId,elem.edge);else if(overrideExisting){let existingEdge=this._edge(elem.sourceId,elem.targetId);existingEdge&&(existingEdge.attr=elem.edge)}}),this}hasNode(id){return this._nodes.has(id)}hasEdge(sourceId,targetId){return this._edges.has(index_2.GraphEdge.edgeId(sourceId,targetId))}node(id){var _a;return(_a=this._nodes.get(id))===null||_a===void 0?void 0:_a.attr}edge(sourceId,targetId){var _a;return(_a=this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId)))===null||_a===void 0?void 0:_a.attr}_node(id){return this._nodes.get(id)}_edge(sourceId,targetId){return this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId))}_edgeById(edgeId){return this._edges.get(edgeId)}edgeNodesById(edgeId){var _a,_b;return{sourceId:(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId:(_b=this._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId}}get nodes(){return this._userNodes}get graphNodes(){return this._nodes}get edges(){return this._userEdges}get graphEdges(){return this._edges}nodeCount(){return[...this._nodes.keys()].length}edgeCount(){return[...this._edges.keys()].length}sources(){return[...this._nodes.values()].filter(node=>node.isSource()).map(elem=>elem.attr)}sinks(){return[...this._nodes.values()].filter(node=>node.isSink()).map(elem=>elem.attr)}deleteNode(id){const node=this._node(id);typeof node>"u"||(node.nodeEdges.forEach(edgeId=>{const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId);this.deleteEdge(sourceId,targetId)}),this._nodes.delete(id))}deleteEdge(sourceId,targetId){const edgeId=index_2.GraphEdge.edgeId(sourceId,targetId);if(this._edges.get(edgeId)!==void 0){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.deleteEdge(edgeId);let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.deleteEdge(edgeId)}this._edges.delete(edgeId)}inEdges(nodeId){return this._transformToUserEdgeMap(this._inEdges(nodeId))}outEdges(nodeId){return this._transformToUserEdgeMap(this._outEdges(nodeId))}nodeEdges(nodeId){return this._transformToUserEdgeMap(this._nodeEdges(nodeId))}_inEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_outEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_nodeEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.nodeEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}successors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._successors(nodeId,filterPredicate))}predecessors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._predecessors(nodeId,filterPredicate))}neighbors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._neighbors(nodeId,filterPredicate))}_successors(nodeId,filterPredicate=returnTrue){let successors=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),targetNode=this._node(targetId);!!targetId&&targetNode!==void 0&&successors.set(targetId,targetNode)}}),successors}_predecessors(nodeId,filterPredicate=returnTrue){let predecessors=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),sourceNode=this._node(sourceId);!!sourceId&&sourceNode!==void 0&&predecessors.set(sourceId,sourceNode)}}),predecessors}_neighbors(nodeId,filterPredicate=returnTrue){return new Map([...this._predecessors(nodeId,filterPredicate),...this._successors(nodeId,filterPredicate)])}successorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"successors")}_alreadyProcessed(nodeId,subgraphs){for(const graph of subgraphs)if(graph.hasNode(nodeId))return!0;return!1}_buildSubgraphs(nodeIds,filterPredicate,order){let subgraphs=[];if(!Array.isArray(nodeIds))return this._buildSubgraph(nodeIds,filterPredicate,order);if(nodeIds.forEach(nodeId=>{this._alreadyProcessed(nodeId,subgraphs)||subgraphs.push(this._buildSubgraph(nodeId,filterPredicate,order))}),subgraphs.length===1)return subgraphs[0];let mergedGraphs=this.create();return subgraphs.length&&(mergedGraphs=subgraphs[0].merge(subgraphs)),mergedGraphs}_buildSubgraph(nodeId,filterPredicate,order){let g=this.create(),graphNode=this._node(nodeId);if(graphNode)g.setNode(nodeId,graphNode.attr);else throw new Error("Node does not exist on graph");return order==="successors"?this._successorsSubgraphUtil(nodeId,g,{},filterPredicate):this._predecessorsSubgraphUtil(nodeId,g,{},filterPredicate)}_successorsSubgraphUtil(nodeId,successorsGraph,visited={},filterPredicate){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>{visited[nodeId]=!0;const newNode=this._nodes.get(successor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(nodeId,successor));if(newNode!==void 0&&newEdge!=null)return successorsGraph.setNode(successor,newNode.attr),successorsGraph.setEdge(nodeId,successor,newEdge.attr),this._successorsSubgraphUtil(successor,successorsGraph,visited,filterPredicate)}),successorsGraph}successorsArray(nodeId,filterPredicate=returnTrue){const successorIds=lodash_1.default.uniq(this._successorsArrayUtil(nodeId,[],{},filterPredicate));let successors=[];return successorIds.forEach(id=>{let node=this.node(id);node!=null&&successors.push(node)}),successors}_successorsArrayUtil(nodeId,successorsList=[],visited={},filterPredicate=returnTrue){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>(visited[nodeId]=!0,successorsList.push(successor),this._successorsArrayUtil(successor,successorsList,visited,filterPredicate))),successorsList}successorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.successorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic dependency");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._successorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_successorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(successor=>{const successors=[...this.successors(successor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(successors)}),this._successorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}predecessorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"predecessors")}_predecessorsSubgraphUtil(nodeId,predecessorsGraph,visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>{visited[nodeId]=!0;const newNode=this._nodes.get(predecessor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(predecessor,nodeId));if(newNode!==void 0&&newEdge!=null)return predecessorsGraph.setNode(predecessor,newNode.attr),predecessorsGraph.setEdge(predecessor,nodeId,newEdge.attr),this._predecessorsSubgraphUtil(predecessor,predecessorsGraph,visited,filterPredicate)}),predecessorsGraph}predecessorsArray(nodeId,filterPredicate=returnTrue){const predecessorIds=lodash_1.default.uniq(this._predecessorsArrayUtil(nodeId,[],{},filterPredicate));let predecessors=[];return predecessorIds.forEach(id=>{let node=this.node(id);node!=null&&predecessors.push(node)}),predecessors}_predecessorsArrayUtil(nodeId,predecessorsList=[],visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>(visited[nodeId]=!0,predecessorsList.push(predecessor),this._predecessorsArrayUtil(predecessor,predecessorsList,visited,filterPredicate))),predecessorsList}predecessorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.predecessorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic sub-graph");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._predecessorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_predecessorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(predecessor=>{const predecessors=[...this.predecessors(predecessor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(predecessors)}),this._predecessorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}toposort(reverse=!1){let nodes=this._toposort().map(nodeId=>this.node(nodeId));return nodes=lodash_1.default.compact(nodes),reverse?nodes.reverse():nodes}_transformEdges(){let edges=[];return this._edges.forEach(originalEdge=>{edges.push([originalEdge.sourceId,originalEdge.targetId])}),edges}_toposort(){const nodes=[...this._nodes.keys()],edges=this._transformEdges();var cursor=nodes.length,sorted=new Array(cursor),visited={},i=cursor,outgoingEdges=makeOutgoingEdges(edges),nodesHash=makeNodesHash(nodes);for(edges.forEach(function(edge){if(!nodesHash.has(edge[0])||!nodesHash.has(edge[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)visited[i]||visit(nodes[i],i,new Set);return sorted;function visit(node,i2,predecessors){if(predecessors.has(node)){var nodeRep;try{nodeRep=", node was:"+JSON.stringify(node)}catch{nodeRep=""}throw new index_3.CyclicError("Cyclic dependency"+nodeRep)}if(!nodesHash.has(node))throw new Error("Found unknown node. Make sure to provide all involved nodes. Unknown node: "+JSON.stringify(node));if(!visited[i2]){visited[i2]=!0;var outgoing=outgoingEdges.get(node)||new Set;if(outgoing=Array.from(outgoing),i2=outgoing.length){predecessors.add(node);do{var child=outgoing[--i2];visit(child,nodesHash.get(child),predecessors)}while(i2);predecessors.delete(node)}sorted[--cursor]=node}}}isCyclic(graph=this){try{graph.toposort()}catch(e){if(e instanceof index_3.CyclicError)return!0;throw e}return!1}findCycles(graph=this){return findCycles(graph)}merge(graphs){let mergedGraph=this;return graphs.forEach(incomingGraph=>{var _a,_b;for(let[nodeId,nodeData]of incomingGraph.nodes)mergedGraph.setNode(nodeId,nodeData);for(let[edgeId,edgeData]of incomingGraph.edges){const sourceId=(_a=incomingGraph._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId=(_b=incomingGraph._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId;if(mergedGraph.edges.has(edgeId)&&!!sourceId&&!!targetId)mergedGraph.setEdge(sourceId,targetId,edgeData);else if(!!sourceId&&!!targetId&&mergedGraph.hasNode(sourceId)&&mergedGraph.hasNode(targetId))mergedGraph.setEdge(sourceId,targetId,edgeData);else throw index_3.NodeDoesntExist}}),mergedGraph}allPaths(sourceId,targetId){return this._allPaths(sourceId,targetId,[],[])}_allPaths(source,target,currPath,paths,visited={}){return visited[source]=!0,currPath.push(source),source===target?paths.push(lodash_1.default.cloneDeep(currPath)):[...this._successors(source).keys()].forEach(nodeId=>{visited[nodeId]||this._allPaths(nodeId,target,currPath,paths,visited)}),currPath.pop(),visited[source]=!1,paths}toJson(graph){return graph?this._toJson(graph,"object"):this._toJson(this,"object")}stringify(graph){return graph?this._toJson(graph,"string"):this._toJson(this,"string")}static parse(json,parseNode=node_1.genericParseNode,parseEdge=edge_1.genericParseEdge){return this._fromJson(json,parseNode,parseEdge)}_toJson(graph,returnType){let nodeArray=[];for(let[nodeId,nodeData]of graph.nodes.entries()){const graphNode=graph._node(nodeId);if(graphNode){let convertedNode;returnType==="object"?!!graphNode.attr.toJson&&typeof graphNode.attr.toJson=="function"?convertedNode=graphNode.attr.toJson():convertedNode=node_1.genericNodeToJson(graphNode.attr):convertedNode=graphNode.stringify(),nodeArray.push({id:nodeId,node:convertedNode})}}let edgeArray=[];for(let[edgeId,edgeData]of graph.edges.entries()){const graphEdge=graph._edgeById(edgeId);if(graphEdge){let convertedEdge;returnType==="object"?!!graphEdge.attr.toJson&&typeof graphEdge.attr.toJson=="function"?convertedEdge=graphEdge.attr.toJson():convertedEdge=node_1.genericNodeToJson(graphEdge.attr):convertedEdge=graphEdge.stringify(),edgeArray.push({sourceId:graphEdge.sourceId,targetId:graphEdge.targetId,edge:convertedEdge})}}let json={nodes:nodeArray,edges:edgeArray};return returnType==="object"?json:JSON.stringify(json)}static _fromJson(json,parseNode,parseEdge){const obj=typeof json=="string"?JSON.parse(json):json;let graph=new Graph;if(!obj.hasOwnProperty("nodes")||!obj.hasOwnProperty("edges"))throw Error("missing properties on JSON. Should contain nodes: {id: string, node: N}[], and edges: {sourceId: string, targetId: string, edge:E}[]");return obj.nodes.forEach(nodeObj=>{const res=index_1.GraphNode.fromObject(nodeObj,parseNode);graph.setNode(res.id,res.node)}),obj.edges.forEach(edgeObj=>{const res=index_2.GraphEdge.fromObject(edgeObj,parseEdge);graph.setEdge(res.sourceId,res.targetId,res.edge)}),graph}bfs(){}dfs(){}}exports.Graph=Graph;function returnTrue(){return!0}function makeOutgoingEdges(arr){for(var edges=new Map,i=0,len=arr.length;i<len;i++){var edge=arr[i];edges.has(edge[0])||edges.set(edge[0],new Set),edges.has(edge[1])||edges.set(edge[1],new Set),edges.get(edge[0]).add(edge[1])}return edges}function makeNodesHash(arr){for(var res=new Map,i=0,len=arr.length;i<len;i++)res.set(arr[i],i);return res}function findCycles(g){return lodash_1.default.filter(algorithms_1.tarjan(g),function(cmpt){return cmpt.length>1||cmpt.length===1&&g.hasEdge(cmpt[0],cmpt[0])})}function arrangeLayers(layers,order){let finalLayers=[],seenNodes=[];layers=layers.reverse();let i=0;return layers.forEach(layer=>{layer.length>0&&(finalLayers.push([]),layer.forEach(node=>{seenNodes.indexOf(node)==-1&&(seenNodes.push(node),finalLayers[i].push(node))}),i++)}),order==="fromSource"?finalLayers.reverse():finalLayers}},49277:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(46984);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(98749);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(22350);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(37539);exports.Graph=graph_1.Graph},98749:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(32699),lodash_2=__importDefault(__webpack_require__(32699));class GraphNode{constructor(id,attr,inEdges,outEdges){this.id=id,this.attr=attr,this._inEdges=inEdges||[],this._outEdges=outEdges||[]}setInEdge(edgeId){this._inEdges.push(edgeId)}setOutEdge(edgeId){this._outEdges.push(edgeId)}deleteEdge(edgeId){lodash_2.default.remove(this._inEdges,function(edge){return edge===edgeId}),lodash_2.default.remove(this._outEdges,function(edge){return edge===edgeId})}get inEdges(){return this._inEdges}get outEdges(){return this._outEdges}get nodeEdges(){return this._inEdges.concat(this._outEdges)}isSource(){return this._inEdges.length===0&&this._outEdges.length>0}isSink(){return this._inEdges.length>0&&this._outEdges.length===0}equals(node){return this.id!==node.id?!1:lodash_1.isEqual(this.attr,node.attr)}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseNode){if(!obj.hasOwnProperty("id"))throw Error("missing object id");return{id:obj.id,node:parseNode(obj.node)}}}exports.GraphNode=GraphNode;function genericParseNode(node){return Object.keys(node).length===0&&node.constructor===Object||typeof node!="object"?node:JSON.parse(node)}exports.genericParseNode=genericParseNode;function genericNodeToJson(node){return node}exports.genericNodeToJson=genericNodeToJson},45005:function(module,exports){var global=typeof self<"u"?self:this,__self__=function(){function F(){this.fetch=!1,this.DOMException=global.DOMException}return F.prototype=global,new F}();(function(self2){var irrelevant=function(exports2){var support={searchParams:"URLSearchParams"in self2,iterable:"Symbol"in self2&&"iterator"in Symbol,blob:"FileReader"in self2&&"Blob"in self2&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self2,arrayBuffer:"ArrayBuffer"in self2};function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};function normalizeName(name){if(typeof name!="string"&&(name=String(name)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name))throw new TypeError("Invalid character in header field name");return name.toLowerCase()}function normalizeValue(value2){return typeof value2!="string"&&(value2=String(value2)),value2}function iteratorFor(items){var iterator={next:function(){var value2=items.shift();return{done:value2===void 0,value:value2}}};return support.iterable&&(iterator[Symbol.iterator]=function(){return iterator}),iterator}function Headers2(headers){this.map={},headers instanceof Headers2?headers.forEach(function(value2,name){this.append(name,value2)},this):Array.isArray(headers)?headers.forEach(function(header){this.append(header[0],header[1])},this):headers&&Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}Headers2.prototype.append=function(name,value2){name=normalizeName(name),value2=normalizeValue(value2);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+", "+value2:value2},Headers2.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers2.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers2.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers2.prototype.set=function(name,value2){this.map[normalizeName(name)]=normalizeValue(value2)},Headers2.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers2.prototype.keys=function(){var items=[];return this.forEach(function(value2,name){items.push(name)}),iteratorFor(items)},Headers2.prototype.values=function(){var items=[];return this.forEach(function(value2){items.push(value2)}),iteratorFor(items)},Headers2.prototype.entries=function(){var items=[];return this.forEach(function(value2,name){items.push([name,value2])}),iteratorFor(items)},support.iterable&&(Headers2.prototype[Symbol.iterator]=Headers2.prototype.entries);function consumed(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)},reader.onerror=function(){reject(reader.error)}})}function readBlobAsArrayBuffer(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsArrayBuffer(blob),promise}function readBlobAsText(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsText(blob),promise}function readArrayBufferAsText(buf){for(var view=new Uint8Array(buf),chars=new Array(view.length),i=0;i<view.length;i++)chars[i]=String.fromCharCode(view[i]);return chars.join("")}function bufferClone(buf){if(buf.slice)return buf.slice(0);var view=new Uint8Array(buf.byteLength);return view.set(new Uint8Array(buf)),view.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(body){this._bodyInit=body,body?typeof body=="string"?this._bodyText=body:support.blob&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:support.formData&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():support.arrayBuffer&&support.blob&&isDataView(body)?(this._bodyArrayBuffer=bufferClone(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))?this._bodyArrayBuffer=bufferClone(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||(typeof body=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers2(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,!body&&input._bodyInit!=null&&(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"same-origin",(options.headers||!this.headers)&&(this.headers=new Headers2(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.signal=options.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value2=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value2))}}),form}function parseHeaders(rawHeaders){var headers=new Headers2,preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g," ");return preProcessedHeaders.split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value2=parts.join(":").trim();headers.append(key,value2)}}),headers}Body.call(Request.prototype);function Response(bodyInit,options){options||(options={}),this.type="default",this.status=options.status===void 0?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers2(options.headers),this.url=options.url||"",this._initBody(bodyInit)}Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers2(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1)throw new RangeError("Invalid status code");return new Response(null,{status,headers:{location:url}})},exports2.DOMException=self2.DOMException;try{new exports2.DOMException}catch{exports2.DOMException=function(message,name){this.message=message,this.name=name;var error=Error(message);this.stack=error.stack},exports2.DOMException.prototype=Object.create(Error.prototype),exports2.DOMException.prototype.constructor=exports2.DOMException}function fetch(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init);if(request.signal&&request.signal.aborted)return reject(new exports2.DOMException("Aborted","AbortError"));var xhr=new XMLHttpRequest;function abortXhr(){xhr.abort()}xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.onabort=function(){reject(new exports2.DOMException("Aborted","AbortError"))},xhr.open(request.method,request.url,!0),request.credentials==="include"?xhr.withCredentials=!0:request.credentials==="omit"&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value2,name){xhr.setRequestHeader(name,value2)}),request.signal&&(request.signal.addEventListener("abort",abortXhr),xhr.onreadystatechange=function(){xhr.readyState===4&&request.signal.removeEventListener("abort",abortXhr)}),xhr.send(typeof request._bodyInit>"u"?null:request._bodyInit)})}return fetch.polyfill=!0,self2.fetch||(self2.fetch=fetch,self2.Headers=Headers2,self2.Request=Request,self2.Response=Response),exports2.Headers=Headers2,exports2.Request=Request,exports2.Response=Response,exports2.fetch=fetch,Object.defineProperty(exports2,"__esModule",{value:!0}),exports2}({})})(__self__),__self__.fetch.ponyfill=!0,delete __self__.fetch.polyfill;var ctx=__self__;exports=ctx.fetch,exports.default=ctx.fetch,exports.fetch=ctx.fetch,exports.Headers=ctx.Headers,exports.Request=ctx.Request,exports.Response=ctx.Response,module.exports=exports},52591:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(10569),isPlainFunction=__webpack_require__(91560),assign=__webpack_require__(8232),normalizeOpts=__webpack_require__(76905),contains=__webpack_require__(73717),d=module.exports=function(dscr,value2){var c,e,w,options,desc;return arguments.length<2||typeof dscr!="string"?(options=value2,value2=dscr,dscr=null):options=arguments[2],isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e"),w=contains.call(dscr,"w")):(c=w=!0,e=!1),desc={value:value2,configurable:c,enumerable:e,writable:w},options?assign(normalizeOpts(options),desc):desc};d.gs=function(dscr,get,set){var c,e,options,desc;return typeof dscr!="string"?(options=set,set=get,get=dscr,dscr=null):options=arguments[3],isValue(get)?isPlainFunction(get)?isValue(set)?isPlainFunction(set)||(options=set,set=void 0):set=void 0:(options=get,get=set=void 0):get=void 0,isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e")):(c=!0,e=!1),desc={get,set,configurable:c,enumerable:e},options?assign(normalizeOpts(options),desc):desc}},5509:module=>{"use strict";module.exports=function(str,sep){if(typeof str!="string")throw new TypeError("Expected a string");return sep=typeof sep>"u"?"_":sep,str.replace(/([a-z\d])([A-Z])/g,"$1"+sep+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+sep+"$2").toLowerCase()}},54525:module=>{"use strict";var token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(components,split){try{return[decodeURIComponent(components.join(""))]}catch{}if(components.length===1)return components;split=split||1;var left=components.slice(0,split),right=components.slice(split);return Array.prototype.concat.call([],decodeComponents(left),decodeComponents(right))}function decode(input){try{return decodeURIComponent(input)}catch{for(var tokens=input.match(singleMatcher)||[],i=1;i<tokens.length;i++)input=decodeComponents(tokens,i).join(""),tokens=input.match(singleMatcher)||[];return input}}function customDecodeURIComponent(input){for(var replaceMap={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},match=multiMatcher.exec(input);match;){try{replaceMap[match[0]]=decodeURIComponent(match[0])}catch{var result=decode(match[0]);result!==match[0]&&(replaceMap[match[0]]=result)}match=multiMatcher.exec(input)}replaceMap["%C2"]="\uFFFD";for(var entries=Object.keys(replaceMap),i=0;i<entries.length;i++){var key=entries[i];input=input.replace(new RegExp(key,"g"),replaceMap[key])}return input}module.exports=function(encodedURI){if(typeof encodedURI!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof encodedURI+"`");try{return encodedURI=encodedURI.replace(/\+/g," "),decodeURIComponent(encodedURI)}catch{return customDecodeURIComponent(encodedURI)}}},53176:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(83816),toPosInt=__webpack_require__(45102),value2=__webpack_require__(35946),indexOf=Array.prototype.indexOf,objHasOwnProperty=Object.prototype.hasOwnProperty,abs=Math.abs,floor=Math.floor;module.exports=function(searchElement){var i,length,fromIndex,val;if(!numberIsNaN(searchElement))return indexOf.apply(this,arguments);for(length=toPosInt(value2(this).length),fromIndex=arguments[1],isNaN(fromIndex)?fromIndex=0:fromIndex>=0?fromIndex=floor(fromIndex):fromIndex=toPosInt(this.length)-floor(abs(fromIndex)),i=fromIndex;i<length;++i)if(objHasOwnProperty.call(this,i)&&(val=this[i],numberIsNaN(val)))return i;return-1}},78422:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(5558)()?Array.from:__webpack_require__(1805)},5558:module=>{"use strict";module.exports=function(){var from=Array.from,arr,result;return typeof from!="function"?!1:(arr=["raz","dwa"],result=from(arr),Boolean(result&&result!==arr&&result[1]==="dwa"))}},1805:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(70373).iterator,isArguments=__webpack_require__(10644),isFunction=__webpack_require__(75586),toPosInt=__webpack_require__(45102),callable=__webpack_require__(25351),validValue=__webpack_require__(35946),isValue=__webpack_require__(85950),isString=__webpack_require__(2981),isArray=Array.isArray,call=Function.prototype.call,desc={configurable:!0,enumerable:!0,writable:!0,value:null},defineProperty=Object.defineProperty;module.exports=function(arrayLike){var mapFn=arguments[1],thisArg=arguments[2],Context,i,j,arr,length,code,iterator,result,getIterator,value2;if(arrayLike=Object(validValue(arrayLike)),isValue(mapFn)&&callable(mapFn),!this||this===Array||!isFunction(this)){if(!mapFn){if(isArguments(arrayLike))return length=arrayLike.length,length!==1?Array.apply(null,arrayLike):(arr=new Array(1),arr[0]=arrayLike[0],arr);if(isArray(arrayLike)){for(arr=new Array(length=arrayLike.length),i=0;i<length;++i)arr[i]=arrayLike[i];return arr}}arr=[]}else Context=this;if(!isArray(arrayLike)){if((getIterator=arrayLike[iteratorSymbol])!==void 0){for(iterator=callable(getIterator).call(arrayLike),Context&&(arr=new Context),result=iterator.next(),i=0;!result.done;)value2=mapFn?call.call(mapFn,thisArg,result.value,i):result.value,Context?(desc.value=value2,defineProperty(arr,i,desc)):arr[i]=value2,result=iterator.next(),++i;length=i}else if(isString(arrayLike)){for(length=arrayLike.length,Context&&(arr=new Context),i=0,j=0;i<length;++i)value2=arrayLike[i],i+1<length&&(code=value2.charCodeAt(0),code>=55296&&code<=56319&&(value2+=arrayLike[++i])),value2=mapFn?call.call(mapFn,thisArg,value2,j):value2,Context?(desc.value=value2,defineProperty(arr,j,desc)):arr[j]=value2,++j;length=j}}if(length===void 0)for(length=toPosInt(arrayLike.length),Context&&(arr=new Context(length)),i=0;i<length;++i)value2=mapFn?call.call(mapFn,thisArg,arrayLike[i],i):arrayLike[i],Context?(desc.value=value2,defineProperty(arr,i,desc)):arr[i]=value2;return Context&&(desc.value=null,arr.length=length),arr}},37434:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(78422),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},53709:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(8232),isObject=__webpack_require__(83089),isValue=__webpack_require__(85950),captureStackTrace=Error.captureStackTrace;module.exports=function(message){var err=new Error(message),code=arguments[1],ext=arguments[2];return isValue(ext)||isObject(code)&&(ext=code,code=null),isValue(ext)&&assign(err,ext),isValue(code)&&(err.code=code),captureStackTrace&&captureStackTrace(err,module.exports),err}},39313:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45102),test=function(arg1,arg2){return arg2},desc,defineProperty,generate,mixin;try{Object.defineProperty(test,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}test.length===1?(desc={configurable:!0,writable:!1,enumerable:!1},defineProperty=Object.defineProperty,module.exports=function(fn,length){return length=toPosInt(length),fn.length===length?fn:(desc.value=length,defineProperty(fn,"length",desc))}):(mixin=__webpack_require__(59912),generate=function(){var cache=[];return function(length){var args,i=0;if(cache[length])return cache[length];for(args=[];length--;)args.push("a"+(++i).toString(36));return new Function("fn","return function ("+args.join(", ")+") { return fn.apply(this, arguments); };")}}(),module.exports=function(src,length){var target;if(length=toPosInt(length),src.length===length)return src;target=generate(length)(src);try{mixin(target,src)}catch{}return target})},10644:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value2){return objToString.call(value2)===id}},75586:module=>{"use strict";var objToString=Object.prototype.toString,isFunctionStringTag=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);module.exports=function(value2){return typeof value2=="function"&&isFunctionStringTag(objToString.call(value2))}},66396:module=>{"use strict";module.exports=function(){}},79111:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(59454)()?Math.sign:__webpack_require__(54636)},59454:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},54636:module=>{"use strict";module.exports=function(value2){return value2=Number(value2),isNaN(value2)||value2===0?value2:value2>0?1:-1}},83816:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(99310)()?Number.isNaN:__webpack_require__(2456)},99310:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},2456:module=>{"use strict";module.exports=function(value2){return value2!==value2}},19958:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(79111),abs=Math.abs,floor=Math.floor;module.exports=function(value2){return isNaN(value2)?0:(value2=Number(value2),value2===0||!isFinite(value2)?value2:sign(value2)*floor(abs(value2)))}},45102:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(19958),max=Math.max;module.exports=function(value2){return max(0,toInteger(value2))}},98594:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(25351),value2=__webpack_require__(35946),bind=Function.prototype.bind,call=Function.prototype.call,keys=Object.keys,objPropertyIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(method,defVal){return function(obj,cb){var list,thisArg=arguments[2],compareFn=arguments[3];return obj=Object(value2(obj)),callable(cb),list=keys(obj),compareFn&&list.sort(typeof compareFn=="function"?bind.call(compareFn,obj):void 0),typeof method!="function"&&(method=list[method]),call.call(method,list,function(key,index){return objPropertyIsEnumerable.call(obj,key)?call.call(cb,thisArg,obj[key],key,obj,index):defVal})}}},8232:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(27837)()?Object.assign:__webpack_require__(41177)},27837:module=>{"use strict";module.exports=function(){var assign=Object.assign,obj;return typeof assign!="function"?!1:(obj={foo:"raz"},assign(obj,{bar:"dwa"},{trzy:"trzy"}),obj.foo+obj.bar+obj.trzy==="razdwatrzy")}},41177:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(25804),value2=__webpack_require__(35946),max=Math.max;module.exports=function(dest,src){var error,i,length=max(arguments.length,2),assign;for(dest=Object(value2(dest)),assign=function(key){try{dest[key]=src[key]}catch(e){error||(error=e)}},i=1;i<length;++i)src=arguments[i],keys(src).forEach(assign);if(error!==void 0)throw error;return dest}},71544:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(98594)("forEach")},94396:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},83089:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(85950),map={function:!0,object:!0};module.exports=function(value2){return isValue(value2)&&map[typeof value2]||!1}},85950:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(66396)();module.exports=function(val){return val!==_undefined&&val!==null}},25804:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(42100)()?Object.keys:__webpack_require__(54803)},42100:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},54803:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(85950),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},34249:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(25351),forEach=__webpack_require__(71544),call=Function.prototype.call;module.exports=function(obj,cb){var result={},thisArg=arguments[2];return callable(cb),forEach(obj,function(value2,key,targetObj,index){result[key]=call.call(cb,thisArg,value2,key,targetObj,index)}),result}},59912:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value2=__webpack_require__(35946),defineProperty=Object.defineProperty,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols;module.exports=function(target,source){var error,sourceObject=Object(value2(source));if(target=Object(value2(target)),getOwnPropertyNames(sourceObject).forEach(function(name){try{defineProperty(target,name,getOwnPropertyDescriptor(source,name))}catch(e){error=e}}),typeof getOwnPropertySymbols=="function"&&getOwnPropertySymbols(sourceObject).forEach(function(symbol){try{defineProperty(target,symbol,getOwnPropertyDescriptor(source,symbol))}catch(e){error=e}}),error!==void 0)throw error;return target}},76905:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(85950),forEach=Array.prototype.forEach,create=Object.create,process=function(src,obj){var key;for(key in src)obj[key]=src[key]};module.exports=function(opts1){var result=create(null);return forEach.call(arguments,function(options){!isValue(options)||process(Object(options),result)}),result}},2635:module=>{"use strict";var forEach=Array.prototype.forEach,create=Object.create;module.exports=function(arg){var set=create(null);return forEach.call(arguments,function(name){set[name]=!0}),set}},25351:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},35946:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(85950);module.exports=function(value2){if(!isValue(value2))throw new TypeError("Cannot use null or undefined");return value2}},7457:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(35946),stringifiable=__webpack_require__(50358);module.exports=function(value2){return stringifiable(ensureValue(value2))}},50358:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(94396);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},1779:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(94396);module.exports=function(value2){try{return value2&&isCallable(value2.toString)?value2.toString():String(value2)}catch{return"<Non-coercible to string value>"}}},73717:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(84087)()?String.prototype.contains:__webpack_require__(21105)},84087:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},21105:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},2981:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call("");module.exports=function(value2){return typeof value2=="string"||value2&&typeof value2=="object"&&(value2 instanceof String||objToString.call(value2)===id)||!1}},65053:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(1779),reNewLine=/[\n\r\u2028\u2029]/g;module.exports=function(value2){var string=safeToString(value2);return string.length>100&&(string=string.slice(0,99)+"\u2026"),string=string.replace(reNewLine,function(char){return JSON.stringify(char).slice(1,-1)}),string}},70373:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(38949)()?__webpack_require__(39321).Symbol:__webpack_require__(85467)},38949:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(39321),validTypes={object:!0,symbol:!0};module.exports=function(){var Symbol2=global.Symbol,symbol;if(typeof Symbol2!="function")return!1;symbol=Symbol2("test symbol");try{String(symbol)}catch{return!1}return!(!validTypes[typeof Symbol2.iterator]||!validTypes[typeof Symbol2.toPrimitive]||!validTypes[typeof Symbol2.toStringTag])}},49631:module=>{"use strict";module.exports=function(value2){return value2?typeof value2=="symbol"?!0:!value2.constructor||value2.constructor.name!=="Symbol"?!1:value2[value2.constructor.toStringTag]==="Symbol":!1}},11292:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(52591),create=Object.create,defineProperty=Object.defineProperty,objPrototype=Object.prototype,created=create(null);module.exports=function(desc){for(var postfix=0,name,ie11BugWorkaround;created[desc+(postfix||"")];)++postfix;return desc+=postfix||"",created[desc]=!0,name="@@"+desc,defineProperty(objPrototype,name,d.gs(null,function(value2){ie11BugWorkaround||(ie11BugWorkaround=!0,defineProperty(this,name,d(value2)),ie11BugWorkaround=!1)})),name}},70228:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(52591),NativeSymbol=__webpack_require__(39321).Symbol;module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{hasInstance:d("",NativeSymbol&&NativeSymbol.hasInstance||SymbolPolyfill("hasInstance")),isConcatSpreadable:d("",NativeSymbol&&NativeSymbol.isConcatSpreadable||SymbolPolyfill("isConcatSpreadable")),iterator:d("",NativeSymbol&&NativeSymbol.iterator||SymbolPolyfill("iterator")),match:d("",NativeSymbol&&NativeSymbol.match||SymbolPolyfill("match")),replace:d("",NativeSymbol&&NativeSymbol.replace||SymbolPolyfill("replace")),search:d("",NativeSymbol&&NativeSymbol.search||SymbolPolyfill("search")),species:d("",NativeSymbol&&NativeSymbol.species||SymbolPolyfill("species")),split:d("",NativeSymbol&&NativeSymbol.split||SymbolPolyfill("split")),toPrimitive:d("",NativeSymbol&&NativeSymbol.toPrimitive||SymbolPolyfill("toPrimitive")),toStringTag:d("",NativeSymbol&&NativeSymbol.toStringTag||SymbolPolyfill("toStringTag")),unscopables:d("",NativeSymbol&&NativeSymbol.unscopables||SymbolPolyfill("unscopables"))})}},93587:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(52591),validateSymbol=__webpack_require__(28727),registry=Object.create(null);module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{for:d(function(key){return registry[key]?registry[key]:registry[key]=SymbolPolyfill(String(key))}),keyFor:d(function(symbol){var key;validateSymbol(symbol);for(key in registry)if(registry[key]===symbol)return key})})}},85467:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(52591),validateSymbol=__webpack_require__(28727),NativeSymbol=__webpack_require__(39321).Symbol,generateName=__webpack_require__(11292),setupStandardSymbols=__webpack_require__(70228),setupSymbolRegistry=__webpack_require__(93587),create=Object.create,defineProperties=Object.defineProperties,defineProperty=Object.defineProperty,SymbolPolyfill,HiddenSymbol,isNativeSafe;if(typeof NativeSymbol=="function")try{String(NativeSymbol()),isNativeSafe=!0}catch{}else NativeSymbol=null;HiddenSymbol=function(description){if(this instanceof HiddenSymbol)throw new TypeError("Symbol is not a constructor");return SymbolPolyfill(description)},module.exports=SymbolPolyfill=function Symbol2(description){var symbol;if(this instanceof Symbol2)throw new TypeError("Symbol is not a constructor");return isNativeSafe?NativeSymbol(description):(symbol=create(HiddenSymbol.prototype),description=description===void 0?"":String(description),defineProperties(symbol,{__description__:d("",description),__name__:d("",generateName(description))}))},setupStandardSymbols(SymbolPolyfill),setupSymbolRegistry(SymbolPolyfill),defineProperties(HiddenSymbol.prototype,{constructor:d(SymbolPolyfill),toString:d("",function(){return this.__name__})}),defineProperties(SymbolPolyfill.prototype,{toString:d(function(){return"Symbol ("+validateSymbol(this).__description__+")"}),valueOf:d(function(){return validateSymbol(this)})}),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toPrimitive,d("",function(){var symbol=validateSymbol(this);return typeof symbol=="symbol"?symbol:symbol.toString()})),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toStringTag,d("c","Symbol")),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toStringTag,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toPrimitive,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]))},28727:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(49631);module.exports=function(value2){if(!isSymbol(value2))throw new TypeError(value2+" is not a symbol");return value2}},53683:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(52591),callable=__webpack_require__(25351),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperty=Object.defineProperty,defineProperties=Object.defineProperties,hasOwnProperty2=Object.prototype.hasOwnProperty,descriptor={configurable:!0,enumerable:!1,writable:!0},on,once,off,emit,methods,descriptors,base;on=function(type,listener){var data;return callable(listener),hasOwnProperty2.call(this,"__ee__")?data=this.__ee__:(data=descriptor.value=create(null),defineProperty(this,"__ee__",descriptor),descriptor.value=null),data[type]?typeof data[type]=="object"?data[type].push(listener):data[type]=[data[type],listener]:data[type]=listener,this},once=function(type,listener){var once2,self2;return callable(listener),self2=this,on.call(this,type,once2=function(){off.call(self2,type,once2),apply.call(listener,this,arguments)}),once2.__eeOnceListener__=listener,this},off=function(type,listener){var data,listeners,candidate,i;if(callable(listener),!hasOwnProperty2.call(this,"__ee__"))return this;if(data=this.__ee__,!data[type])return this;if(listeners=data[type],typeof listeners=="object")for(i=0;candidate=listeners[i];++i)(candidate===listener||candidate.__eeOnceListener__===listener)&&(listeners.length===2?data[type]=listeners[i?0:1]:listeners.splice(i,1));else(listeners===listener||listeners.__eeOnceListener__===listener)&&delete data[type];return this},emit=function(type){var i,l,listener,listeners,args;if(!!hasOwnProperty2.call(this,"__ee__")&&(listeners=this.__ee__[type],!!listeners))if(typeof listeners=="object"){for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];for(listeners=listeners.slice(),i=0;listener=listeners[i];++i)apply.call(listener,this,args)}else switch(arguments.length){case 1:call.call(listeners,this);break;case 2:call.call(listeners,this,arguments[1]);break;case 3:call.call(listeners,this,arguments[1],arguments[2]);break;default:for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];apply.call(listeners,this,args)}},methods={on,once,off,emit},descriptors={on:d(on),once:d(once),off:d(off),emit:d(emit)},base=defineProperties({},descriptors),module.exports=exports=function(o){return o==null?create(base):defineProperties(Object(o),descriptors)},exports.methods=methods},42481:(module,exports,__webpack_require__)=>{var process=__webpack_require__(14224),__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
26
|
+
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)&&arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}else if(argType==="object")for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},18337:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(88546);exports.tarjan=tarjan_1.tarjan},88546:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__importDefault(__webpack_require__(32699));function tarjan(g){var index=0,stack=[],visited={},results=[];function dfs(v){var entry=visited[v]={onStack:!0,lowlink:index,index:index++};if(stack.push(v),[...g.successors(v).keys()].forEach(function(w2){lodash_1.default.has(visited,w2)?visited[w2].onStack&&(entry.lowlink=Math.min(entry.lowlink,visited[w2].index)):(dfs(w2),entry.lowlink=Math.min(entry.lowlink,visited[w2].lowlink))}),entry.lowlink===entry.index){var cmpt=[],w;do w=stack.pop(),visited[w].onStack=!1,cmpt.push(w);while(v!==w);results.push(cmpt)}}return[...g.nodes.keys()].forEach(function(v){lodash_1.default.has(visited,v)||dfs(v)}),results}exports.tarjan=tarjan},46984:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class GraphEdge{constructor(sourceId,targetId,attr){this.sourceId=sourceId,this.targetId=targetId,this.sourceId=sourceId,this.targetId=targetId,this.attr=attr}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseEdge){if(!obj.hasOwnProperty("sourceId"))throw Error("missing source id");if(!obj.hasOwnProperty("targetId"))throw Error("missing target id");return{sourceId:obj.sourceId,targetId:obj.targetId,edge:parseEdge(obj.edge)}}static edgeId(sourceId,targetId){return`${sourceId}->${targetId}`}static parseEdgeId(id){const spl=id.split("->");return spl.length===2?{sourceId:spl[0],targetId:spl[1]}:{sourceId:"",targetId:""}}get nodes(){return[this.sourceId,this.targetId]}}exports.GraphEdge=GraphEdge;function genericParseEdge(edge){return Object.keys(edge).length===0&&edge.constructor===Object||typeof edge!="object"?edge:JSON.parse(edge)}exports.genericParseEdge=genericParseEdge;function genericEdgeToJson(edge){return edge}exports.genericEdgeToJson=genericEdgeToJson},22350:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class CyclicError extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.CyclicError=CyclicError;class NodeDoesntExist extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.NodeDoesntExist=NodeDoesntExist},37539:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const index_1=__webpack_require__(49277),index_2=__webpack_require__(49277),index_3=__webpack_require__(49277),lodash_1=__importDefault(__webpack_require__(32699)),algorithms_1=__webpack_require__(18337),node_1=__webpack_require__(98749),edge_1=__webpack_require__(46984);class Graph{constructor(nodes=[],edges=[]){this._nodes=new Map,this._edges=new Map,nodes.forEach(elem=>this.setNode(elem.id,elem.node)),edges.forEach(elem=>this.setEdge(elem.sourceId,elem.targetId,elem.edge))}create(nodes=[],edges=[]){return new Graph(nodes,edges)}get _userNodes(){return this._transformToUserNodeMap(this._nodes)}get _userEdges(){return this._transformToUserEdgeMap(this._edges)}_transformToUserNodeMap(map){let newMap=new Map;for(const[key,value2]of map.entries())newMap.set(key,value2.attr);return newMap}_transformToUserEdgeMap(map){let newMap=new Map;for(const[key,value2]of map.entries())newMap.set(key,value2.attr);return newMap}setNode(id,node,overrideExisting=!0){if(this.hasNode(id)){if(overrideExisting){let existingNode=this._node(id);existingNode&&(existingNode.attr=node)}}else{let graphNode=new index_1.GraphNode(id,node);this._nodes.set(id,graphNode)}return this}setEdge(sourceId,targetId,edge,overrideExisting=!0){if(this.hasEdge(sourceId,targetId))if(overrideExisting){let existingEdge=this._edge(sourceId,targetId);return existingEdge&&(existingEdge.attr=edge),this}else return this;const id=index_2.GraphEdge.edgeId(sourceId,targetId);let graphEdge=new index_2.GraphEdge(sourceId,targetId,edge);if(this._edges.set(id,graphEdge),this._nodes.has(sourceId)){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.setOutEdge(id)}else throw Error("source node does not exist");if(this._nodes.has(targetId)){let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.setInEdge(id)}else throw Error("target node does not exist");return this}setNodes(nodes,overrideExisting=!0){return nodes.forEach(elem=>{if(!this.hasNode(elem.id))this.setNode(elem.id,elem.node);else if(overrideExisting){let existingNode=this._node(elem.id);existingNode&&(existingNode.attr=elem.node)}}),this}setEdges(edges,overrideExisting=!0){return edges.forEach(elem=>{if(!this.hasEdge(elem.sourceId,elem.targetId))this.setEdge(elem.sourceId,elem.targetId,elem.edge);else if(overrideExisting){let existingEdge=this._edge(elem.sourceId,elem.targetId);existingEdge&&(existingEdge.attr=elem.edge)}}),this}hasNode(id){return this._nodes.has(id)}hasEdge(sourceId,targetId){return this._edges.has(index_2.GraphEdge.edgeId(sourceId,targetId))}node(id){var _a;return(_a=this._nodes.get(id))===null||_a===void 0?void 0:_a.attr}edge(sourceId,targetId){var _a;return(_a=this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId)))===null||_a===void 0?void 0:_a.attr}_node(id){return this._nodes.get(id)}_edge(sourceId,targetId){return this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId))}_edgeById(edgeId){return this._edges.get(edgeId)}edgeNodesById(edgeId){var _a,_b;return{sourceId:(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId:(_b=this._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId}}get nodes(){return this._userNodes}get graphNodes(){return this._nodes}get edges(){return this._userEdges}get graphEdges(){return this._edges}nodeCount(){return[...this._nodes.keys()].length}edgeCount(){return[...this._edges.keys()].length}sources(){return[...this._nodes.values()].filter(node=>node.isSource()).map(elem=>elem.attr)}sinks(){return[...this._nodes.values()].filter(node=>node.isSink()).map(elem=>elem.attr)}deleteNode(id){const node=this._node(id);typeof node>"u"||(node.nodeEdges.forEach(edgeId=>{const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId);this.deleteEdge(sourceId,targetId)}),this._nodes.delete(id))}deleteEdge(sourceId,targetId){const edgeId=index_2.GraphEdge.edgeId(sourceId,targetId);if(this._edges.get(edgeId)!==void 0){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.deleteEdge(edgeId);let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.deleteEdge(edgeId)}this._edges.delete(edgeId)}inEdges(nodeId){return this._transformToUserEdgeMap(this._inEdges(nodeId))}outEdges(nodeId){return this._transformToUserEdgeMap(this._outEdges(nodeId))}nodeEdges(nodeId){return this._transformToUserEdgeMap(this._nodeEdges(nodeId))}_inEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_outEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_nodeEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.nodeEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}successors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._successors(nodeId,filterPredicate))}predecessors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._predecessors(nodeId,filterPredicate))}neighbors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._neighbors(nodeId,filterPredicate))}_successors(nodeId,filterPredicate=returnTrue){let successors=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),targetNode=this._node(targetId);!!targetId&&targetNode!==void 0&&successors.set(targetId,targetNode)}}),successors}_predecessors(nodeId,filterPredicate=returnTrue){let predecessors=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),sourceNode=this._node(sourceId);!!sourceId&&sourceNode!==void 0&&predecessors.set(sourceId,sourceNode)}}),predecessors}_neighbors(nodeId,filterPredicate=returnTrue){return new Map([...this._predecessors(nodeId,filterPredicate),...this._successors(nodeId,filterPredicate)])}successorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"successors")}_alreadyProcessed(nodeId,subgraphs){for(const graph of subgraphs)if(graph.hasNode(nodeId))return!0;return!1}_buildSubgraphs(nodeIds,filterPredicate,order){let subgraphs=[];if(!Array.isArray(nodeIds))return this._buildSubgraph(nodeIds,filterPredicate,order);if(nodeIds.forEach(nodeId=>{this._alreadyProcessed(nodeId,subgraphs)||subgraphs.push(this._buildSubgraph(nodeId,filterPredicate,order))}),subgraphs.length===1)return subgraphs[0];let mergedGraphs=this.create();return subgraphs.length&&(mergedGraphs=subgraphs[0].merge(subgraphs)),mergedGraphs}_buildSubgraph(nodeId,filterPredicate,order){let g=this.create(),graphNode=this._node(nodeId);if(graphNode)g.setNode(nodeId,graphNode.attr);else throw new Error("Node does not exist on graph");return order==="successors"?this._successorsSubgraphUtil(nodeId,g,{},filterPredicate):this._predecessorsSubgraphUtil(nodeId,g,{},filterPredicate)}_successorsSubgraphUtil(nodeId,successorsGraph,visited={},filterPredicate){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>{visited[nodeId]=!0;const newNode=this._nodes.get(successor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(nodeId,successor));if(newNode!==void 0&&newEdge!=null)return successorsGraph.setNode(successor,newNode.attr),successorsGraph.setEdge(nodeId,successor,newEdge.attr),this._successorsSubgraphUtil(successor,successorsGraph,visited,filterPredicate)}),successorsGraph}successorsArray(nodeId,filterPredicate=returnTrue){const successorIds=lodash_1.default.uniq(this._successorsArrayUtil(nodeId,[],{},filterPredicate));let successors=[];return successorIds.forEach(id=>{let node=this.node(id);node!=null&&successors.push(node)}),successors}_successorsArrayUtil(nodeId,successorsList=[],visited={},filterPredicate=returnTrue){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>(visited[nodeId]=!0,successorsList.push(successor),this._successorsArrayUtil(successor,successorsList,visited,filterPredicate))),successorsList}successorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.successorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic dependency");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._successorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_successorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(successor=>{const successors=[...this.successors(successor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(successors)}),this._successorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}predecessorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"predecessors")}_predecessorsSubgraphUtil(nodeId,predecessorsGraph,visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>{visited[nodeId]=!0;const newNode=this._nodes.get(predecessor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(predecessor,nodeId));if(newNode!==void 0&&newEdge!=null)return predecessorsGraph.setNode(predecessor,newNode.attr),predecessorsGraph.setEdge(predecessor,nodeId,newEdge.attr),this._predecessorsSubgraphUtil(predecessor,predecessorsGraph,visited,filterPredicate)}),predecessorsGraph}predecessorsArray(nodeId,filterPredicate=returnTrue){const predecessorIds=lodash_1.default.uniq(this._predecessorsArrayUtil(nodeId,[],{},filterPredicate));let predecessors=[];return predecessorIds.forEach(id=>{let node=this.node(id);node!=null&&predecessors.push(node)}),predecessors}_predecessorsArrayUtil(nodeId,predecessorsList=[],visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>(visited[nodeId]=!0,predecessorsList.push(predecessor),this._predecessorsArrayUtil(predecessor,predecessorsList,visited,filterPredicate))),predecessorsList}predecessorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.predecessorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic sub-graph");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._predecessorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_predecessorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(predecessor=>{const predecessors=[...this.predecessors(predecessor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(predecessors)}),this._predecessorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}toposort(reverse=!1){let nodes=this._toposort().map(nodeId=>this.node(nodeId));return nodes=lodash_1.default.compact(nodes),reverse?nodes.reverse():nodes}_transformEdges(){let edges=[];return this._edges.forEach(originalEdge=>{edges.push([originalEdge.sourceId,originalEdge.targetId])}),edges}_toposort(){const nodes=[...this._nodes.keys()],edges=this._transformEdges();var cursor=nodes.length,sorted=new Array(cursor),visited={},i=cursor,outgoingEdges=makeOutgoingEdges(edges),nodesHash=makeNodesHash(nodes);for(edges.forEach(function(edge){if(!nodesHash.has(edge[0])||!nodesHash.has(edge[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)visited[i]||visit(nodes[i],i,new Set);return sorted;function visit(node,i2,predecessors){if(predecessors.has(node)){var nodeRep;try{nodeRep=", node was:"+JSON.stringify(node)}catch{nodeRep=""}throw new index_3.CyclicError("Cyclic dependency"+nodeRep)}if(!nodesHash.has(node))throw new Error("Found unknown node. Make sure to provide all involved nodes. Unknown node: "+JSON.stringify(node));if(!visited[i2]){visited[i2]=!0;var outgoing=outgoingEdges.get(node)||new Set;if(outgoing=Array.from(outgoing),i2=outgoing.length){predecessors.add(node);do{var child=outgoing[--i2];visit(child,nodesHash.get(child),predecessors)}while(i2);predecessors.delete(node)}sorted[--cursor]=node}}}isCyclic(graph=this){try{graph.toposort()}catch(e){if(e instanceof index_3.CyclicError)return!0;throw e}return!1}findCycles(graph=this){return findCycles(graph)}merge(graphs){let mergedGraph=this;return graphs.forEach(incomingGraph=>{var _a,_b;for(let[nodeId,nodeData]of incomingGraph.nodes)mergedGraph.setNode(nodeId,nodeData);for(let[edgeId,edgeData]of incomingGraph.edges){const sourceId=(_a=incomingGraph._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId=(_b=incomingGraph._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId;if(mergedGraph.edges.has(edgeId)&&!!sourceId&&!!targetId)mergedGraph.setEdge(sourceId,targetId,edgeData);else if(!!sourceId&&!!targetId&&mergedGraph.hasNode(sourceId)&&mergedGraph.hasNode(targetId))mergedGraph.setEdge(sourceId,targetId,edgeData);else throw index_3.NodeDoesntExist}}),mergedGraph}allPaths(sourceId,targetId){return this._allPaths(sourceId,targetId,[],[])}_allPaths(source,target,currPath,paths,visited={}){return visited[source]=!0,currPath.push(source),source===target?paths.push(lodash_1.default.cloneDeep(currPath)):[...this._successors(source).keys()].forEach(nodeId=>{visited[nodeId]||this._allPaths(nodeId,target,currPath,paths,visited)}),currPath.pop(),visited[source]=!1,paths}toJson(graph){return graph?this._toJson(graph,"object"):this._toJson(this,"object")}stringify(graph){return graph?this._toJson(graph,"string"):this._toJson(this,"string")}static parse(json,parseNode=node_1.genericParseNode,parseEdge=edge_1.genericParseEdge){return this._fromJson(json,parseNode,parseEdge)}_toJson(graph,returnType){let nodeArray=[];for(let[nodeId,nodeData]of graph.nodes.entries()){const graphNode=graph._node(nodeId);if(graphNode){let convertedNode;returnType==="object"?!!graphNode.attr.toJson&&typeof graphNode.attr.toJson=="function"?convertedNode=graphNode.attr.toJson():convertedNode=node_1.genericNodeToJson(graphNode.attr):convertedNode=graphNode.stringify(),nodeArray.push({id:nodeId,node:convertedNode})}}let edgeArray=[];for(let[edgeId,edgeData]of graph.edges.entries()){const graphEdge=graph._edgeById(edgeId);if(graphEdge){let convertedEdge;returnType==="object"?!!graphEdge.attr.toJson&&typeof graphEdge.attr.toJson=="function"?convertedEdge=graphEdge.attr.toJson():convertedEdge=node_1.genericNodeToJson(graphEdge.attr):convertedEdge=graphEdge.stringify(),edgeArray.push({sourceId:graphEdge.sourceId,targetId:graphEdge.targetId,edge:convertedEdge})}}let json={nodes:nodeArray,edges:edgeArray};return returnType==="object"?json:JSON.stringify(json)}static _fromJson(json,parseNode,parseEdge){const obj=typeof json=="string"?JSON.parse(json):json;let graph=new Graph;if(!obj.hasOwnProperty("nodes")||!obj.hasOwnProperty("edges"))throw Error("missing properties on JSON. Should contain nodes: {id: string, node: N}[], and edges: {sourceId: string, targetId: string, edge:E}[]");return obj.nodes.forEach(nodeObj=>{const res=index_1.GraphNode.fromObject(nodeObj,parseNode);graph.setNode(res.id,res.node)}),obj.edges.forEach(edgeObj=>{const res=index_2.GraphEdge.fromObject(edgeObj,parseEdge);graph.setEdge(res.sourceId,res.targetId,res.edge)}),graph}bfs(){}dfs(){}}exports.Graph=Graph;function returnTrue(){return!0}function makeOutgoingEdges(arr){for(var edges=new Map,i=0,len=arr.length;i<len;i++){var edge=arr[i];edges.has(edge[0])||edges.set(edge[0],new Set),edges.has(edge[1])||edges.set(edge[1],new Set),edges.get(edge[0]).add(edge[1])}return edges}function makeNodesHash(arr){for(var res=new Map,i=0,len=arr.length;i<len;i++)res.set(arr[i],i);return res}function findCycles(g){return lodash_1.default.filter(algorithms_1.tarjan(g),function(cmpt){return cmpt.length>1||cmpt.length===1&&g.hasEdge(cmpt[0],cmpt[0])})}function arrangeLayers(layers,order){let finalLayers=[],seenNodes=[];layers=layers.reverse();let i=0;return layers.forEach(layer=>{layer.length>0&&(finalLayers.push([]),layer.forEach(node=>{seenNodes.indexOf(node)==-1&&(seenNodes.push(node),finalLayers[i].push(node))}),i++)}),order==="fromSource"?finalLayers.reverse():finalLayers}},49277:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(46984);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(98749);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(22350);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(37539);exports.Graph=graph_1.Graph},98749:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(32699),lodash_2=__importDefault(__webpack_require__(32699));class GraphNode{constructor(id,attr,inEdges,outEdges){this.id=id,this.attr=attr,this._inEdges=inEdges||[],this._outEdges=outEdges||[]}setInEdge(edgeId){this._inEdges.push(edgeId)}setOutEdge(edgeId){this._outEdges.push(edgeId)}deleteEdge(edgeId){lodash_2.default.remove(this._inEdges,function(edge){return edge===edgeId}),lodash_2.default.remove(this._outEdges,function(edge){return edge===edgeId})}get inEdges(){return this._inEdges}get outEdges(){return this._outEdges}get nodeEdges(){return this._inEdges.concat(this._outEdges)}isSource(){return this._inEdges.length===0&&this._outEdges.length>0}isSink(){return this._inEdges.length>0&&this._outEdges.length===0}equals(node){return this.id!==node.id?!1:lodash_1.isEqual(this.attr,node.attr)}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseNode){if(!obj.hasOwnProperty("id"))throw Error("missing object id");return{id:obj.id,node:parseNode(obj.node)}}}exports.GraphNode=GraphNode;function genericParseNode(node){return Object.keys(node).length===0&&node.constructor===Object||typeof node!="object"?node:JSON.parse(node)}exports.genericParseNode=genericParseNode;function genericNodeToJson(node){return node}exports.genericNodeToJson=genericNodeToJson},75752:function(module,exports){var global=typeof self<"u"?self:this,__self__=function(){function F(){this.fetch=!1,this.DOMException=global.DOMException}return F.prototype=global,new F}();(function(self2){var irrelevant=function(exports2){var support={searchParams:"URLSearchParams"in self2,iterable:"Symbol"in self2&&"iterator"in Symbol,blob:"FileReader"in self2&&"Blob"in self2&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self2,arrayBuffer:"ArrayBuffer"in self2};function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};function normalizeName(name){if(typeof name!="string"&&(name=String(name)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name))throw new TypeError("Invalid character in header field name");return name.toLowerCase()}function normalizeValue(value2){return typeof value2!="string"&&(value2=String(value2)),value2}function iteratorFor(items){var iterator={next:function(){var value2=items.shift();return{done:value2===void 0,value:value2}}};return support.iterable&&(iterator[Symbol.iterator]=function(){return iterator}),iterator}function Headers2(headers){this.map={},headers instanceof Headers2?headers.forEach(function(value2,name){this.append(name,value2)},this):Array.isArray(headers)?headers.forEach(function(header){this.append(header[0],header[1])},this):headers&&Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}Headers2.prototype.append=function(name,value2){name=normalizeName(name),value2=normalizeValue(value2);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+", "+value2:value2},Headers2.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers2.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers2.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers2.prototype.set=function(name,value2){this.map[normalizeName(name)]=normalizeValue(value2)},Headers2.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers2.prototype.keys=function(){var items=[];return this.forEach(function(value2,name){items.push(name)}),iteratorFor(items)},Headers2.prototype.values=function(){var items=[];return this.forEach(function(value2){items.push(value2)}),iteratorFor(items)},Headers2.prototype.entries=function(){var items=[];return this.forEach(function(value2,name){items.push([name,value2])}),iteratorFor(items)},support.iterable&&(Headers2.prototype[Symbol.iterator]=Headers2.prototype.entries);function consumed(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)},reader.onerror=function(){reject(reader.error)}})}function readBlobAsArrayBuffer(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsArrayBuffer(blob),promise}function readBlobAsText(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsText(blob),promise}function readArrayBufferAsText(buf){for(var view=new Uint8Array(buf),chars=new Array(view.length),i=0;i<view.length;i++)chars[i]=String.fromCharCode(view[i]);return chars.join("")}function bufferClone(buf){if(buf.slice)return buf.slice(0);var view=new Uint8Array(buf.byteLength);return view.set(new Uint8Array(buf)),view.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(body){this._bodyInit=body,body?typeof body=="string"?this._bodyText=body:support.blob&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:support.formData&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():support.arrayBuffer&&support.blob&&isDataView(body)?(this._bodyArrayBuffer=bufferClone(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))?this._bodyArrayBuffer=bufferClone(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||(typeof body=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers2(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,!body&&input._bodyInit!=null&&(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"same-origin",(options.headers||!this.headers)&&(this.headers=new Headers2(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.signal=options.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value2=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value2))}}),form}function parseHeaders(rawHeaders){var headers=new Headers2,preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g," ");return preProcessedHeaders.split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value2=parts.join(":").trim();headers.append(key,value2)}}),headers}Body.call(Request.prototype);function Response(bodyInit,options){options||(options={}),this.type="default",this.status=options.status===void 0?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers2(options.headers),this.url=options.url||"",this._initBody(bodyInit)}Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers2(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1)throw new RangeError("Invalid status code");return new Response(null,{status,headers:{location:url}})},exports2.DOMException=self2.DOMException;try{new exports2.DOMException}catch{exports2.DOMException=function(message,name){this.message=message,this.name=name;var error=Error(message);this.stack=error.stack},exports2.DOMException.prototype=Object.create(Error.prototype),exports2.DOMException.prototype.constructor=exports2.DOMException}function fetch(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init);if(request.signal&&request.signal.aborted)return reject(new exports2.DOMException("Aborted","AbortError"));var xhr=new XMLHttpRequest;function abortXhr(){xhr.abort()}xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.onabort=function(){reject(new exports2.DOMException("Aborted","AbortError"))},xhr.open(request.method,request.url,!0),request.credentials==="include"?xhr.withCredentials=!0:request.credentials==="omit"&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value2,name){xhr.setRequestHeader(name,value2)}),request.signal&&(request.signal.addEventListener("abort",abortXhr),xhr.onreadystatechange=function(){xhr.readyState===4&&request.signal.removeEventListener("abort",abortXhr)}),xhr.send(typeof request._bodyInit>"u"?null:request._bodyInit)})}return fetch.polyfill=!0,self2.fetch||(self2.fetch=fetch,self2.Headers=Headers2,self2.Request=Request,self2.Response=Response),exports2.Headers=Headers2,exports2.Request=Request,exports2.Response=Response,exports2.fetch=fetch,Object.defineProperty(exports2,"__esModule",{value:!0}),exports2}({})})(__self__),__self__.fetch.ponyfill=!0,delete __self__.fetch.polyfill;var ctx=__self__;exports=ctx.fetch,exports.default=ctx.fetch,exports.fetch=ctx.fetch,exports.Headers=ctx.Headers,exports.Request=ctx.Request,exports.Response=ctx.Response,module.exports=exports},18544:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(87205),isPlainFunction=__webpack_require__(78970),assign=__webpack_require__(23814),normalizeOpts=__webpack_require__(95699),contains=__webpack_require__(87490),d=module.exports=function(dscr,value2){var c,e,w,options,desc;return arguments.length<2||typeof dscr!="string"?(options=value2,value2=dscr,dscr=null):options=arguments[2],isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e"),w=contains.call(dscr,"w")):(c=w=!0,e=!1),desc={value:value2,configurable:c,enumerable:e,writable:w},options?assign(normalizeOpts(options),desc):desc};d.gs=function(dscr,get,set){var c,e,options,desc;return typeof dscr!="string"?(options=set,set=get,get=dscr,dscr=null):options=arguments[3],isValue(get)?isPlainFunction(get)?isValue(set)?isPlainFunction(set)||(options=set,set=void 0):set=void 0:(options=get,get=set=void 0):get=void 0,isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e")):(c=!0,e=!1),desc={get,set,configurable:c,enumerable:e},options?assign(normalizeOpts(options),desc):desc}},5509:module=>{"use strict";module.exports=function(str,sep){if(typeof str!="string")throw new TypeError("Expected a string");return sep=typeof sep>"u"?"_":sep,str.replace(/([a-z\d])([A-Z])/g,"$1"+sep+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+sep+"$2").toLowerCase()}},54525:module=>{"use strict";var token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(components,split){try{return[decodeURIComponent(components.join(""))]}catch{}if(components.length===1)return components;split=split||1;var left=components.slice(0,split),right=components.slice(split);return Array.prototype.concat.call([],decodeComponents(left),decodeComponents(right))}function decode(input){try{return decodeURIComponent(input)}catch{for(var tokens=input.match(singleMatcher)||[],i=1;i<tokens.length;i++)input=decodeComponents(tokens,i).join(""),tokens=input.match(singleMatcher)||[];return input}}function customDecodeURIComponent(input){for(var replaceMap={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},match=multiMatcher.exec(input);match;){try{replaceMap[match[0]]=decodeURIComponent(match[0])}catch{var result=decode(match[0]);result!==match[0]&&(replaceMap[match[0]]=result)}match=multiMatcher.exec(input)}replaceMap["%C2"]="\uFFFD";for(var entries=Object.keys(replaceMap),i=0;i<entries.length;i++){var key=entries[i];input=input.replace(new RegExp(key,"g"),replaceMap[key])}return input}module.exports=function(encodedURI){if(typeof encodedURI!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof encodedURI+"`");try{return encodedURI=encodedURI.replace(/\+/g," "),decodeURIComponent(encodedURI)}catch{return customDecodeURIComponent(encodedURI)}}},44457:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(48005),toPosInt=__webpack_require__(63976),value2=__webpack_require__(38371),indexOf=Array.prototype.indexOf,objHasOwnProperty=Object.prototype.hasOwnProperty,abs=Math.abs,floor=Math.floor;module.exports=function(searchElement){var i,length,fromIndex,val;if(!numberIsNaN(searchElement))return indexOf.apply(this,arguments);for(length=toPosInt(value2(this).length),fromIndex=arguments[1],isNaN(fromIndex)?fromIndex=0:fromIndex>=0?fromIndex=floor(fromIndex):fromIndex=toPosInt(this.length)-floor(abs(fromIndex)),i=fromIndex;i<length;++i)if(objHasOwnProperty.call(this,i)&&(val=this[i],numberIsNaN(val)))return i;return-1}},70206:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(72987)()?Array.from:__webpack_require__(45063)},72987:module=>{"use strict";module.exports=function(){var from=Array.from,arr,result;return typeof from!="function"?!1:(arr=["raz","dwa"],result=from(arr),Boolean(result&&result!==arr&&result[1]==="dwa"))}},45063:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(95711).iterator,isArguments=__webpack_require__(57041),isFunction=__webpack_require__(50464),toPosInt=__webpack_require__(63976),callable=__webpack_require__(53447),validValue=__webpack_require__(38371),isValue=__webpack_require__(55534),isString=__webpack_require__(52242),isArray=Array.isArray,call=Function.prototype.call,desc={configurable:!0,enumerable:!0,writable:!0,value:null},defineProperty=Object.defineProperty;module.exports=function(arrayLike){var mapFn=arguments[1],thisArg=arguments[2],Context,i,j,arr,length,code,iterator,result,getIterator,value2;if(arrayLike=Object(validValue(arrayLike)),isValue(mapFn)&&callable(mapFn),!this||this===Array||!isFunction(this)){if(!mapFn){if(isArguments(arrayLike))return length=arrayLike.length,length!==1?Array.apply(null,arrayLike):(arr=new Array(1),arr[0]=arrayLike[0],arr);if(isArray(arrayLike)){for(arr=new Array(length=arrayLike.length),i=0;i<length;++i)arr[i]=arrayLike[i];return arr}}arr=[]}else Context=this;if(!isArray(arrayLike)){if((getIterator=arrayLike[iteratorSymbol])!==void 0){for(iterator=callable(getIterator).call(arrayLike),Context&&(arr=new Context),result=iterator.next(),i=0;!result.done;)value2=mapFn?call.call(mapFn,thisArg,result.value,i):result.value,Context?(desc.value=value2,defineProperty(arr,i,desc)):arr[i]=value2,result=iterator.next(),++i;length=i}else if(isString(arrayLike)){for(length=arrayLike.length,Context&&(arr=new Context),i=0,j=0;i<length;++i)value2=arrayLike[i],i+1<length&&(code=value2.charCodeAt(0),code>=55296&&code<=56319&&(value2+=arrayLike[++i])),value2=mapFn?call.call(mapFn,thisArg,value2,j):value2,Context?(desc.value=value2,defineProperty(arr,j,desc)):arr[j]=value2,++j;length=j}}if(length===void 0)for(length=toPosInt(arrayLike.length),Context&&(arr=new Context(length)),i=0;i<length;++i)value2=mapFn?call.call(mapFn,thisArg,arrayLike[i],i):arrayLike[i],Context?(desc.value=value2,defineProperty(arr,i,desc)):arr[i]=value2;return Context&&(desc.value=null,arr.length=length),arr}},74555:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(70206),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},69703:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(23814),isObject=__webpack_require__(23654),isValue=__webpack_require__(55534),captureStackTrace=Error.captureStackTrace;module.exports=function(message){var err=new Error(message),code=arguments[1],ext=arguments[2];return isValue(ext)||isObject(code)&&(ext=code,code=null),isValue(ext)&&assign(err,ext),isValue(code)&&(err.code=code),captureStackTrace&&captureStackTrace(err,module.exports),err}},9581:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(63976),test=function(arg1,arg2){return arg2},desc,defineProperty,generate,mixin;try{Object.defineProperty(test,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}test.length===1?(desc={configurable:!0,writable:!1,enumerable:!1},defineProperty=Object.defineProperty,module.exports=function(fn,length){return length=toPosInt(length),fn.length===length?fn:(desc.value=length,defineProperty(fn,"length",desc))}):(mixin=__webpack_require__(9219),generate=function(){var cache=[];return function(length){var args,i=0;if(cache[length])return cache[length];for(args=[];length--;)args.push("a"+(++i).toString(36));return new Function("fn","return function ("+args.join(", ")+") { return fn.apply(this, arguments); };")}}(),module.exports=function(src,length){var target;if(length=toPosInt(length),src.length===length)return src;target=generate(length)(src);try{mixin(target,src)}catch{}return target})},57041:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value2){return objToString.call(value2)===id}},50464:module=>{"use strict";var objToString=Object.prototype.toString,isFunctionStringTag=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);module.exports=function(value2){return typeof value2=="function"&&isFunctionStringTag(objToString.call(value2))}},93835:module=>{"use strict";module.exports=function(){}},53535:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(61436)()?Math.sign:__webpack_require__(11738)},61436:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},11738:module=>{"use strict";module.exports=function(value2){return value2=Number(value2),isNaN(value2)||value2===0?value2:value2>0?1:-1}},48005:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(15058)()?Number.isNaN:__webpack_require__(9509)},15058:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},9509:module=>{"use strict";module.exports=function(value2){return value2!==value2}},92519:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(53535),abs=Math.abs,floor=Math.floor;module.exports=function(value2){return isNaN(value2)?0:(value2=Number(value2),value2===0||!isFinite(value2)?value2:sign(value2)*floor(abs(value2)))}},63976:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(92519),max=Math.max;module.exports=function(value2){return max(0,toInteger(value2))}},99342:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(53447),value2=__webpack_require__(38371),bind=Function.prototype.bind,call=Function.prototype.call,keys=Object.keys,objPropertyIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(method,defVal){return function(obj,cb){var list,thisArg=arguments[2],compareFn=arguments[3];return obj=Object(value2(obj)),callable(cb),list=keys(obj),compareFn&&list.sort(typeof compareFn=="function"?bind.call(compareFn,obj):void 0),typeof method!="function"&&(method=list[method]),call.call(method,list,function(key,index){return objPropertyIsEnumerable.call(obj,key)?call.call(cb,thisArg,obj[key],key,obj,index):defVal})}}},23814:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(83365)()?Object.assign:__webpack_require__(85864)},83365:module=>{"use strict";module.exports=function(){var assign=Object.assign,obj;return typeof assign!="function"?!1:(obj={foo:"raz"},assign(obj,{bar:"dwa"},{trzy:"trzy"}),obj.foo+obj.bar+obj.trzy==="razdwatrzy")}},85864:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(9289),value2=__webpack_require__(38371),max=Math.max;module.exports=function(dest,src){var error,i,length=max(arguments.length,2),assign;for(dest=Object(value2(dest)),assign=function(key){try{dest[key]=src[key]}catch(e){error||(error=e)}},i=1;i<length;++i)src=arguments[i],keys(src).forEach(assign);if(error!==void 0)throw error;return dest}},78396:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(99342)("forEach")},85449:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},23654:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(55534),map={function:!0,object:!0};module.exports=function(value2){return isValue(value2)&&map[typeof value2]||!1}},55534:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(93835)();module.exports=function(val){return val!==_undefined&&val!==null}},9289:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(88970)()?Object.keys:__webpack_require__(64231)},88970:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},64231:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(55534),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},97141:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(53447),forEach=__webpack_require__(78396),call=Function.prototype.call;module.exports=function(obj,cb){var result={},thisArg=arguments[2];return callable(cb),forEach(obj,function(value2,key,targetObj,index){result[key]=call.call(cb,thisArg,value2,key,targetObj,index)}),result}},9219:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value2=__webpack_require__(38371),defineProperty=Object.defineProperty,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols;module.exports=function(target,source){var error,sourceObject=Object(value2(source));if(target=Object(value2(target)),getOwnPropertyNames(sourceObject).forEach(function(name){try{defineProperty(target,name,getOwnPropertyDescriptor(source,name))}catch(e){error=e}}),typeof getOwnPropertySymbols=="function"&&getOwnPropertySymbols(sourceObject).forEach(function(symbol){try{defineProperty(target,symbol,getOwnPropertyDescriptor(source,symbol))}catch(e){error=e}}),error!==void 0)throw error;return target}},95699:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(55534),forEach=Array.prototype.forEach,create=Object.create,process=function(src,obj){var key;for(key in src)obj[key]=src[key]};module.exports=function(opts1){var result=create(null);return forEach.call(arguments,function(options){!isValue(options)||process(Object(options),result)}),result}},97077:module=>{"use strict";var forEach=Array.prototype.forEach,create=Object.create;module.exports=function(arg){var set=create(null);return forEach.call(arguments,function(name){set[name]=!0}),set}},53447:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},38371:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(55534);module.exports=function(value2){if(!isValue(value2))throw new TypeError("Cannot use null or undefined");return value2}},39469:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(38371),stringifiable=__webpack_require__(22589);module.exports=function(value2){return stringifiable(ensureValue(value2))}},22589:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(85449);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},32650:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(85449);module.exports=function(value2){try{return value2&&isCallable(value2.toString)?value2.toString():String(value2)}catch{return"<Non-coercible to string value>"}}},87490:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(31544)()?String.prototype.contains:__webpack_require__(35393)},31544:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},35393:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},52242:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call("");module.exports=function(value2){return typeof value2=="string"||value2&&typeof value2=="object"&&(value2 instanceof String||objToString.call(value2)===id)||!1}},14674:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(32650),reNewLine=/[\n\r\u2028\u2029]/g;module.exports=function(value2){var string=safeToString(value2);return string.length>100&&(string=string.slice(0,99)+"\u2026"),string=string.replace(reNewLine,function(char){return JSON.stringify(char).slice(1,-1)}),string}},95711:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(4216)()?__webpack_require__(39321).Symbol:__webpack_require__(49774)},4216:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(39321),validTypes={object:!0,symbol:!0};module.exports=function(){var Symbol2=global.Symbol,symbol;if(typeof Symbol2!="function")return!1;symbol=Symbol2("test symbol");try{String(symbol)}catch{return!1}return!(!validTypes[typeof Symbol2.iterator]||!validTypes[typeof Symbol2.toPrimitive]||!validTypes[typeof Symbol2.toStringTag])}},81238:module=>{"use strict";module.exports=function(value2){return value2?typeof value2=="symbol"?!0:!value2.constructor||value2.constructor.name!=="Symbol"?!1:value2[value2.constructor.toStringTag]==="Symbol":!1}},7024:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(18544),create=Object.create,defineProperty=Object.defineProperty,objPrototype=Object.prototype,created=create(null);module.exports=function(desc){for(var postfix=0,name,ie11BugWorkaround;created[desc+(postfix||"")];)++postfix;return desc+=postfix||"",created[desc]=!0,name="@@"+desc,defineProperty(objPrototype,name,d.gs(null,function(value2){ie11BugWorkaround||(ie11BugWorkaround=!0,defineProperty(this,name,d(value2)),ie11BugWorkaround=!1)})),name}},56434:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(18544),NativeSymbol=__webpack_require__(39321).Symbol;module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{hasInstance:d("",NativeSymbol&&NativeSymbol.hasInstance||SymbolPolyfill("hasInstance")),isConcatSpreadable:d("",NativeSymbol&&NativeSymbol.isConcatSpreadable||SymbolPolyfill("isConcatSpreadable")),iterator:d("",NativeSymbol&&NativeSymbol.iterator||SymbolPolyfill("iterator")),match:d("",NativeSymbol&&NativeSymbol.match||SymbolPolyfill("match")),replace:d("",NativeSymbol&&NativeSymbol.replace||SymbolPolyfill("replace")),search:d("",NativeSymbol&&NativeSymbol.search||SymbolPolyfill("search")),species:d("",NativeSymbol&&NativeSymbol.species||SymbolPolyfill("species")),split:d("",NativeSymbol&&NativeSymbol.split||SymbolPolyfill("split")),toPrimitive:d("",NativeSymbol&&NativeSymbol.toPrimitive||SymbolPolyfill("toPrimitive")),toStringTag:d("",NativeSymbol&&NativeSymbol.toStringTag||SymbolPolyfill("toStringTag")),unscopables:d("",NativeSymbol&&NativeSymbol.unscopables||SymbolPolyfill("unscopables"))})}},52385:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(18544),validateSymbol=__webpack_require__(91953),registry=Object.create(null);module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{for:d(function(key){return registry[key]?registry[key]:registry[key]=SymbolPolyfill(String(key))}),keyFor:d(function(symbol){var key;validateSymbol(symbol);for(key in registry)if(registry[key]===symbol)return key})})}},49774:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(18544),validateSymbol=__webpack_require__(91953),NativeSymbol=__webpack_require__(39321).Symbol,generateName=__webpack_require__(7024),setupStandardSymbols=__webpack_require__(56434),setupSymbolRegistry=__webpack_require__(52385),create=Object.create,defineProperties=Object.defineProperties,defineProperty=Object.defineProperty,SymbolPolyfill,HiddenSymbol,isNativeSafe;if(typeof NativeSymbol=="function")try{String(NativeSymbol()),isNativeSafe=!0}catch{}else NativeSymbol=null;HiddenSymbol=function(description){if(this instanceof HiddenSymbol)throw new TypeError("Symbol is not a constructor");return SymbolPolyfill(description)},module.exports=SymbolPolyfill=function Symbol2(description){var symbol;if(this instanceof Symbol2)throw new TypeError("Symbol is not a constructor");return isNativeSafe?NativeSymbol(description):(symbol=create(HiddenSymbol.prototype),description=description===void 0?"":String(description),defineProperties(symbol,{__description__:d("",description),__name__:d("",generateName(description))}))},setupStandardSymbols(SymbolPolyfill),setupSymbolRegistry(SymbolPolyfill),defineProperties(HiddenSymbol.prototype,{constructor:d(SymbolPolyfill),toString:d("",function(){return this.__name__})}),defineProperties(SymbolPolyfill.prototype,{toString:d(function(){return"Symbol ("+validateSymbol(this).__description__+")"}),valueOf:d(function(){return validateSymbol(this)})}),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toPrimitive,d("",function(){var symbol=validateSymbol(this);return typeof symbol=="symbol"?symbol:symbol.toString()})),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toStringTag,d("c","Symbol")),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toStringTag,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toPrimitive,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]))},91953:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(81238);module.exports=function(value2){if(!isSymbol(value2))throw new TypeError(value2+" is not a symbol");return value2}},53683:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(18544),callable=__webpack_require__(53447),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperty=Object.defineProperty,defineProperties=Object.defineProperties,hasOwnProperty2=Object.prototype.hasOwnProperty,descriptor={configurable:!0,enumerable:!1,writable:!0},on,once,off,emit,methods,descriptors,base;on=function(type,listener){var data;return callable(listener),hasOwnProperty2.call(this,"__ee__")?data=this.__ee__:(data=descriptor.value=create(null),defineProperty(this,"__ee__",descriptor),descriptor.value=null),data[type]?typeof data[type]=="object"?data[type].push(listener):data[type]=[data[type],listener]:data[type]=listener,this},once=function(type,listener){var once2,self2;return callable(listener),self2=this,on.call(this,type,once2=function(){off.call(self2,type,once2),apply.call(listener,this,arguments)}),once2.__eeOnceListener__=listener,this},off=function(type,listener){var data,listeners,candidate,i;if(callable(listener),!hasOwnProperty2.call(this,"__ee__"))return this;if(data=this.__ee__,!data[type])return this;if(listeners=data[type],typeof listeners=="object")for(i=0;candidate=listeners[i];++i)(candidate===listener||candidate.__eeOnceListener__===listener)&&(listeners.length===2?data[type]=listeners[i?0:1]:listeners.splice(i,1));else(listeners===listener||listeners.__eeOnceListener__===listener)&&delete data[type];return this},emit=function(type){var i,l,listener,listeners,args;if(!!hasOwnProperty2.call(this,"__ee__")&&(listeners=this.__ee__[type],!!listeners))if(typeof listeners=="object"){for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];for(listeners=listeners.slice(),i=0;listener=listeners[i];++i)apply.call(listener,this,args)}else switch(arguments.length){case 1:call.call(listeners,this);break;case 2:call.call(listeners,this,arguments[1]);break;case 3:call.call(listeners,this,arguments[1],arguments[2]);break;default:for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];apply.call(listeners,this,args)}},methods={on,once,off,emit},descriptors={on:d(on),once:d(once),off:d(off),emit:d(emit)},base=defineProperties({},descriptors),module.exports=exports=function(o){return o==null?create(base):defineProperties(Object(o),descriptors)},exports.methods=methods},42481:(module,exports,__webpack_require__)=>{var process=__webpack_require__(14224),__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
27
27
|
* EventEmitter2
|
28
28
|
* https://github.com/hij1nx/EventEmitter2
|
29
29
|
*
|
@@ -60,8 +60,8 @@ __p += '`),interpolateValue&&(source+=`' +
|
|
60
60
|
function print() { __p += __j.call(arguments, '') }
|
61
61
|
`:`;
|
62
62
|
`)+source+`return __p
|
63
|
-
}`;var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined2,importsValues)});if(result2.source=source,isError(result2))throw result2;return result2}function toLower(value2){return toString(value2).toLowerCase()}function toUpper(value2){return toString(value2).toUpperCase()}function trim(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join("")}function trimEnd(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join("")}function trimStart(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join("")}function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length,omission="omission"in options?baseToString(options.omission):omission}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length}if(length>=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result2=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined2)return result2+omission;if(strSymbols&&(end+=result2.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result2;for(separator.global||(separator=RegExp2(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result2=result2.slice(0,newEnd===undefined2?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result2.lastIndexOf(separator);index>-1&&(result2=result2.slice(0,index))}return result2+omission}function unescape(string){return string=toString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}var upperCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined2:pattern,pattern===undefined2?hasUnicodeWord(string)?unicodeWords(string):asciiWords(string):string.match(pattern)||[]}var attempt=baseRest(function(func,args){try{return apply(func,undefined2,args)}catch(e){return isError(e)?e:new Error2(e)}}),bindAll=flatRest(function(object,methodNames){return arrayEach(methodNames,function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))}),object});function cond(pairs){var length=pairs==null?0:pairs.length,toIteratee=getIteratee();return pairs=length?arrayMap(pairs,function(pair){if(typeof pair[1]!="function")throw new TypeError2(FUNC_ERROR_TEXT);return[toIteratee(pair[0]),pair[1]]}):[],baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG))}function constant(value2){return function(){return value2}}function defaultTo(value2,defaultValue){return value2==null||value2!==value2?defaultValue:value2}var flow=createFlow(),flowRight=createFlow(!0);function identity(value2){return value2}function iteratee(func){return baseIteratee(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG))}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG))}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}});function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);options==null&&!(isObject(source)&&(methodNames.length||!props.length))&&(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain2=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);return arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);return actions.push({func,args:arguments,thisArg:object}),result2.__chain__=chainAll,result2}return func.apply(object,arrayPush([this.value()],arguments))})}),object}function noConflict(){return root._===this&&(root._=oldDash),this}function noop(){}function nthArg(n){return n=toInteger(n),baseRest(function(args){return baseNth(args,n)})}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function propertyOf(object){return function(path){return object==null?undefined2:baseGet(object,path)}}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(n,iteratee2){if(n=toInteger(n),n<1||n>MAX_SAFE_INTEGER)return[];var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2),n-=MAX_ARRAY_LENGTH;for(var result2=baseTimes(length,iteratee2);++index<n;)iteratee2(index);return result2}function toPath(value2){return isArray(value2)?arrayMap(value2,toKey):isSymbol(value2)?[value2]:copyArray(stringToPath(toString(value2)))}function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id}var add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor");function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined2}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined2}function mean(array){return baseMean(array,identity)}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2))}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined2}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined2}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);function sum(array){return array&&array.length?baseSum(array,identity):0}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0}return lodash.after=after,lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=countBy,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=defaults,lodash.defaultsDeep=defaultsDeep,lodash.defer=defer,lodash.delay=delay,lodash.difference=difference,lodash.differenceBy=differenceBy,lodash.differenceWith=differenceWith,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=flow,lodash.flowRight=flowRight,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=groupBy,lodash.initial=initial,lodash.intersection=intersection,lodash.intersectionBy=intersectionBy,lodash.intersectionWith=intersectionWith,lodash.invert=invert,lodash.invertBy=invertBy,lodash.invokeMap=invokeMap,lodash.iteratee=iteratee,lodash.keyBy=keyBy,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=merge,lodash.mergeWith=mergeWith,lodash.method=method,lodash.methodOf=methodOf,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=omit,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=over,lodash.overArgs=overArgs,lodash.overEvery=overEvery,lodash.overSome=overSome,lodash.partial=partial,lodash.partialRight=partialRight,lodash.partition=partition,lodash.pick=pick,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=pull,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=pullAt,lodash.range=range,lodash.rangeRight=rangeRight,lodash.rearg=rearg,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=sortBy,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=without,lodash.words=words,lodash.wrap=wrap,lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=divide,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=invoke,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayBuffer=isArrayBuffer,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=isBuffer,lodash.isDate=isDate,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite2,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=isMap,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN2,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=isRegExp,lodash.isSafeInteger=isSafeInteger,lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=multiply,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=now,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt2,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=round,lodash.runInContext=runInContext2,lodash.sample=sample,lodash.size=size,lodash.snakeCase=snakeCase,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=startCase,lodash.startsWith=startsWith,lodash.subtract=subtract,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape,lodash.uniqueId=uniqueId,lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var source={};return baseForOwn(lodash,function(func,methodName){hasOwnProperty2.call(lodash.prototype,methodName)||(source[methodName]=func)}),source}(),{chain:!1}),lodash.VERSION=VERSION,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash}),arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined2?1:nativeMax(toInteger(n),0);var result2=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result2.__filtered__?result2.__takeCount__=nativeMin(n,result2.__takeCount__):result2.__views__.push({size:nativeMin(n,MAX_ARRAY_LENGTH),type:methodName+(result2.__dir__<0?"Right":"")}),result2},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}}),arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();return result2.__iteratees__.push({iteratee:getIteratee(iteratee2,3),type}),result2.__filtered__=result2.__filtered__||isFilter,result2}}),arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}}),arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return typeof path=="function"?new LazyWrapper(this):this.map(function(value2){return baseInvoke(value2,path,args)})}),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result2=this;return result2.__filtered__&&(start>0||end<0)?new LazyWrapper(result2):(start<0?result2=result2.takeRight(-start):start&&(result2=result2.drop(start)),end!==undefined2&&(end=toInteger(end),result2=end<0?result2.dropRight(-end):result2.take(end-start)),result2)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);!lodashFunc||(lodash.prototype[methodName]=function(){var value2=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value2 instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray(value2),interceptor=function(value3){var result3=lodashFunc.apply(lodash,arrayPush([value3],args));return isTaker&&chainAll?result3[0]:result3};useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value2=onlyLazy?value2:new LazyWrapper(this);var result2=func.apply(value2,args);return result2.__actions__.push({func:thru,args:[interceptor],thisArg:undefined2}),new LodashWrapper(result2,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result2=this.thru(interceptor),isUnwrapped?isTaker?result2.value()[0]:result2.value():result2)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value2=this.value();return func.apply(isArray(value2)?value2:[],args)}return this[chainName](function(value3){return func.apply(isArray(value3)?value3:[],args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty2.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}}),realNames[createHybrid(undefined2,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined2}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=wrapperAt,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=wrapperToIterator),lodash},_=runInContext();root._=_,__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined2&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this)},18968:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Yallist=__webpack_require__(79900),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1;class LRUCache{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");const max=this[MAX]=options.max||1/0,lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value2,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value2,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value2,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value2,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value2),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach((value2,key)=>get(this,key,!1))}}const get=(self2,key,doUse)=>{const node=self2[CACHE].get(key);if(node){const hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){const prev=walker.prev;del(self2,walker),walker=prev}},del=(self2,node)=>{if(node){const hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value2,length,now,maxAge){this.key=key,this.value=value2,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2)};module.exports=LRUCache},20560:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45102),create=Object.create,hasOwnProperty2=Object.prototype.hasOwnProperty;module.exports=function(limit){var size=0,base=1,queue=create(null),map=create(null),index=0,del;return limit=toPosInt(limit),{hit:function(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex)return++size,size<=limit?void 0:(id=queue[base],del(id),id);if(delete queue[oldIndex],base===oldIndex)for(;!hasOwnProperty2.call(queue,++base););},delete:del=function(id){var oldIndex=map[id];if(!!oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size){index=0,base=1;return}for(;!hasOwnProperty2.call(queue,++base););}},clear:function(){size=0,base=1,queue=create(null),map=create(null),index=0}}}},44809:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(78422),objectMap=__webpack_require__(34249),mixin=__webpack_require__(59912),defineLength=__webpack_require__(39313),nextTick=__webpack_require__(58267),slice=Array.prototype.slice,apply=Function.prototype.apply,create=Object.create;__webpack_require__(88972).async=function(tbi,conf){var waiting=create(null),cache=create(null),base=conf.memoized,original=conf.original,currentCallback,currentContext,currentArgs;conf.memoized=defineLength(function(arg){var args=arguments,last=args[args.length-1];return typeof last=="function"&&(currentCallback=last,args=slice.call(args,0,-1)),base.apply(currentContext=this,currentArgs=args)},base);try{mixin(conf.memoized,base)}catch{}conf.on("get",function(id){var cb,context,args;if(!!currentCallback){if(waiting[id]){typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback]:waiting[id].push(currentCallback),currentCallback=null;return}cb=currentCallback,context=currentContext,args=currentArgs,currentCallback=currentContext=currentArgs=null,nextTick(function(){var data;hasOwnProperty.call(cache,id)?(data=cache[id],conf.emit("getasync",id,args,context),apply.call(cb,data.context,data.args)):(currentCallback=cb,currentContext=context,currentArgs=args,base.apply(context,args))})}}),conf.original=function(){var args,cb,origCb,result;return currentCallback?(args=aFrom(arguments),cb=function self2(err){var cb2,args2,id=self2.id;if(id==null){nextTick(apply.bind(self2,this,arguments));return}if(delete self2.id,cb2=waiting[id],delete waiting[id],!!cb2)return args2=aFrom(arguments),conf.has(id)&&(err?conf.delete(id):(cache[id]={context:this,args:args2},conf.emit("setasync",id,typeof cb2=="function"?1:cb2.length))),typeof cb2=="function"?result=apply.call(cb2,this,args2):cb2.forEach(function(cb3){result=apply.call(cb3,this,args2)},this),result},origCb=currentCallback,currentCallback=currentContext=currentArgs=null,args.push(cb),result=apply.call(original,this,args),cb.cb=origCb,currentCallback=cb,result):apply.call(original,this,arguments)},conf.on("set",function(id){if(!currentCallback){conf.delete(id);return}waiting[id]?typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback.cb]:waiting[id].push(currentCallback.cb):waiting[id]=currentCallback.cb,delete currentCallback.cb,currentCallback.id=id,currentCallback=null}),conf.on("delete",function(id){var result;hasOwnProperty.call(waiting,id)||!cache[id]||(result=cache[id],delete cache[id],conf.emit("deleteasync",id,slice.call(result.args,1)))}),conf.on("clear",function(){var oldCache=cache;cache=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return slice.call(data.args,1)}))})}},81883:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(25351),forEach=__webpack_require__(71544),extensions=__webpack_require__(88972),apply=Function.prototype.apply;extensions.dispose=function(dispose,conf,options){var del;if(callable(dispose),options.async&&extensions.async||options.promise&&extensions.promise){conf.on("deleteasync",del=function(id,resultArray){apply.call(dispose,null,resultArray)}),conf.on("clearasync",function(cache){forEach(cache,function(result,id){del(id,result)})});return}conf.on("delete",del=function(id,result){dispose(result)}),conf.on("clear",function(cache){forEach(cache,function(result,id){del(id,result)})})}},85619:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(78422),forEach=__webpack_require__(71544),nextTick=__webpack_require__(58267),isPromise=__webpack_require__(82522),timeout=__webpack_require__(85128),extensions=__webpack_require__(88972),noop=Function.prototype,max=Math.max,min=Math.min,create=Object.create;extensions.maxAge=function(maxAge,conf,options){var timeouts,postfix,preFetchAge,preFetchTimeouts;maxAge=timeout(maxAge),maxAge&&(timeouts=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id){timeouts[id]=setTimeout(function(){conf.delete(id)},maxAge),typeof timeouts[id].unref=="function"&&timeouts[id].unref(),preFetchTimeouts&&(preFetchTimeouts[id]&&preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),preFetchTimeouts[id]=setTimeout(function(){delete preFetchTimeouts[id]},preFetchAge),typeof preFetchTimeouts[id].unref=="function"&&preFetchTimeouts[id].unref())}),conf.on("delete"+postfix,function(id){clearTimeout(timeouts[id]),delete timeouts[id],preFetchTimeouts&&(preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),delete preFetchTimeouts[id])}),options.preFetch&&(options.preFetch===!0||isNaN(options.preFetch)?preFetchAge=.333:preFetchAge=max(min(Number(options.preFetch),1),0),preFetchAge&&(preFetchTimeouts={},preFetchAge=(1-preFetchAge)*maxAge,conf.on("get"+postfix,function(id,args,context){preFetchTimeouts[id]||(preFetchTimeouts[id]="nextTick",nextTick(function(){var result;preFetchTimeouts[id]==="nextTick"&&(delete preFetchTimeouts[id],conf.delete(id),options.async&&(args=aFrom(args),args.push(noop)),result=conf.memoized.apply(context,args),options.promise&&isPromise(result)&&(typeof result.done=="function"?result.done(noop,noop):result.then(noop,noop)))}))}))),conf.on("clear"+postfix,function(){forEach(timeouts,function(id){clearTimeout(id)}),timeouts={},preFetchTimeouts&&(forEach(preFetchTimeouts,function(id){id!=="nextTick"&&clearTimeout(id)}),preFetchTimeouts={})}))}},50459:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInteger=__webpack_require__(45102),lruQueue=__webpack_require__(20560),extensions=__webpack_require__(88972);extensions.max=function(max,conf,options){var postfix,queue,hit;max=toPosInteger(max),max&&(queue=lruQueue(max),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,hit=function(id){id=queue.hit(id),id!==void 0&&conf.delete(id)}),conf.on("get"+postfix,hit),conf.on("delete"+postfix,queue.delete),conf.on("clear"+postfix,queue.clear))}},10634:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectMap=__webpack_require__(34249),primitiveSet=__webpack_require__(2635),ensureString=__webpack_require__(7457),toShortString=__webpack_require__(65053),isPromise=__webpack_require__(82522),nextTick=__webpack_require__(58267),create=Object.create,supportedModes=primitiveSet("then","then:finally","done","done:finally");__webpack_require__(88972).promise=function(mode,conf){var waiting=create(null),cache=create(null),promises=create(null);if(mode===!0)mode=null;else if(mode=ensureString(mode),!supportedModes[mode])throw new TypeError("'"+toShortString(mode)+"' is not valid promise mode");conf.on("set",function(id,ignore,promise){var isFailed=!1;if(!isPromise(promise)){cache[id]=promise,conf.emit("setasync",id,1);return}waiting[id]=1,promises[id]=promise;var onSuccess=function(result){var count=waiting[id];if(isFailed)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
64
|
-
Consider to rely on 'then' or 'done' mode instead.`);!count||(delete waiting[id],cache[id]=result,conf.emit("setasync",id,count))},onFailure=function(){isFailed=!0,waiting[id]&&(delete waiting[id],delete promises[id],conf.delete(id))},resolvedMode=mode;if(resolvedMode||(resolvedMode="then"),resolvedMode==="then"){var nextTickFailure=function(){nextTick(onFailure)};promise=promise.then(function(result){nextTick(onSuccess.bind(this,result))},nextTickFailure),typeof promise.finally=="function"&&promise.finally(nextTickFailure)}else if(resolvedMode==="done"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");promise.done(onSuccess,onFailure)}else if(resolvedMode==="done:finally"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof promise.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");promise.done(onSuccess),promise.finally(onFailure)}}),conf.on("get",function(id,args,context){var promise;if(waiting[id]){++waiting[id];return}promise=promises[id];var emit=function(){conf.emit("getasync",id,args,context)};isPromise(promise)?typeof promise.done=="function"?promise.done(emit):promise.then(function(){nextTick(emit)}):emit()}),conf.on("delete",function(id){if(delete promises[id],waiting[id]){delete waiting[id];return}if(!!hasOwnProperty.call(cache,id)){var result=cache[id];delete cache[id],conf.emit("deleteasync",id,[result])}}),conf.on("clear",function(){var oldCache=cache;cache=create(null),waiting=create(null),promises=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return[data]}))})}},35539:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(52591),extensions=__webpack_require__(88972),create=Object.create,defineProperties=Object.defineProperties;extensions.refCounter=function(ignore,conf,options){var cache,postfix;cache=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id,length){cache[id]=length||1}),conf.on("get"+postfix,function(id){++cache[id]}),conf.on("delete"+postfix,function(id){delete cache[id]}),conf.on("clear"+postfix,function(){cache={}}),defineProperties(conf.memoized,{deleteRef:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?null:--cache[id]?!1:(conf.delete(id),!0)}),getRefCount:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?0:cache[id]})})}},3105:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var normalizeOpts=__webpack_require__(76905),resolveLength=__webpack_require__(59569),plain=__webpack_require__(96099);module.exports=function(fn){var options=normalizeOpts(arguments[1]),length;return options.normalizer||(length=options.length=resolveLength(options.length,fn.length,options.async),length!==0&&(options.primitive?length===!1?options.normalizer=__webpack_require__(72781):length>1&&(options.normalizer=__webpack_require__(1630)(length)):length===!1?options.normalizer=__webpack_require__(24417)():length===1?options.normalizer=__webpack_require__(9327)():options.normalizer=__webpack_require__(55453)(length))),options.async&&__webpack_require__(44809),options.promise&&__webpack_require__(10634),options.dispose&&__webpack_require__(81883),options.maxAge&&__webpack_require__(85619),options.max&&__webpack_require__(50459),options.refCounter&&__webpack_require__(35539),plain(fn,options)}},44681:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var customError=__webpack_require__(53709),defineLength=__webpack_require__(39313),d=__webpack_require__(52591),ee=__webpack_require__(53683).methods,resolveResolve=__webpack_require__(77333),resolveNormalize=__webpack_require__(85262),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperties=Object.defineProperties,on=ee.on,emit=ee.emit;module.exports=function(original,length,options){var cache=create(null),conf,memLength,get,set,del,clear,extDel,extGet,extHas,normalizer,getListeners,setListeners,deleteListeners,memoized,resolve;return length!==!1?memLength=length:isNaN(original.length)?memLength=1:memLength=original.length,options.normalizer&&(normalizer=resolveNormalize(options.normalizer),get=normalizer.get,set=normalizer.set,del=normalizer.delete,clear=normalizer.clear),options.resolvers!=null&&(resolve=resolveResolve(options.resolvers)),get?memoized=defineLength(function(arg){var id,result,args=arguments;if(resolve&&(args=resolve(args)),id=get(args),id!==null&&hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),id===null){if(id=get(args),id!==null)throw customError("Circular invocation","CIRCULAR_INVOCATION");id=set(args)}else if(hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},memLength):length===0?memoized=function(){var result;if(hasOwnProperty.call(cache,"data"))return getListeners&&conf.emit("get","data",arguments,this),cache.data;if(arguments.length?result=apply.call(original,this,arguments):result=call.call(original,this),hasOwnProperty.call(cache,"data"))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache.data=result,setListeners&&conf.emit("set","data",null,result),result}:memoized=function(arg){var result,args=arguments,id;if(resolve&&(args=resolve(arguments)),id=String(args[0]),hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},conf={original,memoized,profileName:options.profileName,get:function(args){return resolve&&(args=resolve(args)),get?get(args):String(args[0])},has:function(id){return hasOwnProperty.call(cache,id)},delete:function(id){var result;!hasOwnProperty.call(cache,id)||(del&&del(id),result=cache[id],delete cache[id],deleteListeners&&conf.emit("delete",id,result))},clear:function(){var oldCache=cache;clear&&clear(),cache=create(null),conf.emit("clear",oldCache)},on:function(type,listener){return type==="get"?getListeners=!0:type==="set"?setListeners=!0:type==="delete"&&(deleteListeners=!0),on.call(this,type,listener)},emit,updateEnv:function(){original=conf.original}},get?extDel=defineLength(function(arg){var id,args=arguments;resolve&&(args=resolve(args)),id=get(args),id!==null&&conf.delete(id)},memLength):length===0?extDel=function(){return conf.delete("data")}:extDel=function(arg){return resolve&&(arg=resolve(arguments)[0]),conf.delete(arg)},extGet=defineLength(function(){var id,args=arguments;return length===0?cache.data:(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),cache[id])}),extHas=defineLength(function(){var id,args=arguments;return length===0?conf.has("data"):(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),id===null?!1:conf.has(id))}),defineProperties(memoized,{__memoized__:d(!0),delete:d(extDel),clear:d(conf.clear),_get:d(extGet),_has:d(extHas)}),conf}},88972:()=>{"use strict"},59569:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45102);module.exports=function(optsLength,fnLength,isAsync){var length;return isNaN(optsLength)?(length=fnLength,length>=0?isAsync&&length?length-1:length:1):optsLength===!1?!1:toPosInt(optsLength)}},85262:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(25351);module.exports=function(userNormalizer){var normalizer;return typeof userNormalizer=="function"?{set:userNormalizer,get:userNormalizer}:(normalizer={get:callable(userNormalizer.get)},userNormalizer.set!==void 0?(normalizer.set=callable(userNormalizer.set),userNormalizer.delete&&(normalizer.delete=callable(userNormalizer.delete)),userNormalizer.clear&&(normalizer.clear=callable(userNormalizer.clear)),normalizer):(normalizer.set=normalizer.get,normalizer))}},77333:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toArray=__webpack_require__(37434),isValue=__webpack_require__(85950),callable=__webpack_require__(25351),slice=Array.prototype.slice,resolveArgs;resolveArgs=function(args){return this.map(function(resolve,i){return resolve?resolve(args[i]):args[i]}).concat(slice.call(args,this.length))},module.exports=function(resolvers){return resolvers=toArray(resolvers),resolvers.forEach(function(resolve){isValue(resolve)&&callable(resolve)}),resolveArgs.bind(resolvers)}},9327:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(53176);module.exports=function(){var lastId=0,argsMap=[],cache=[];return{get:function(args){var index=indexOf.call(argsMap,args[0]);return index===-1?null:cache[index]},set:function(args){return argsMap.push(args[0]),cache.push(++lastId),lastId},delete:function(id){var index=indexOf.call(cache,id);index!==-1&&(argsMap.splice(index,1),cache.splice(index,1))},clear:function(){argsMap=[],cache=[]}}}},55453:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(53176),create=Object.create;module.exports=function(length){var lastId=0,map=[[],[]],cache=create(null);return{get:function(args){for(var index=0,set=map,i;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null},set:function(args){for(var index=0,set=map,i;index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;return i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId,cache[lastId]=args,lastId},delete:function(id){for(var index=0,set=map,i,path=[],args=cache[id];index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i!==-1){for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1);delete cache[id]}},clear:function(){map=[[],[]],cache=create(null)}}}},1630:module=>{"use strict";module.exports=function(length){return length?function(args){for(var id=String(args[0]),i=0,currentLength=length;--currentLength;)id+=""+args[++i];return id}:function(){return""}}},24417:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(53176),create=Object.create;module.exports=function(){var lastId=0,map=[],cache=create(null);return{get:function(args){var index=0,set=map,i,length=args.length;if(length===0)return set[length]||null;if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null}return null},set:function(args){var index=0,set=map,i,length=args.length;if(length===0)set[length]=++lastId;else{for(set[length]||(set[length]=[[],[]]),set=set[length];index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId}return cache[lastId]=args,lastId},delete:function(id){var index=0,set=map,i,args=cache[id],length=args.length,path=[];if(length===0)delete set[length];else if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i===-1)return;for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1)}delete cache[id]},clear:function(){map=[],cache=create(null)}}}},72781:module=>{"use strict";module.exports=function(args){var id,i,length=args.length;if(!length)return"";for(id=String(args[i=0]);--length;)id+=""+args[++i];return id}},96099:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(25351),forEach=__webpack_require__(71544),extensions=__webpack_require__(88972),configure=__webpack_require__(44681),resolveLength=__webpack_require__(59569);module.exports=function self2(fn){var options,length,conf;if(callable(fn),options=Object(arguments[1]),options.async&&options.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(fn,"__memoized__")&&!options.force?fn:(length=resolveLength(options.length,fn.length,options.async&&extensions.async),conf=configure(fn,length,options),forEach(extensions,function(extFn,name){options[name]&&extFn(options[name],conf,options)}),self2.__profiler__&&self2.__profiler__(conf),conf.updateEnv(),conf.memoized)}},58482:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={label:"element-highlighter_label__1xJqk",frame:"element-highlighter_frame__3iB6_"}},26232:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={offset:"6",overlayBorder:"frame_overlayBorder__2EHte",hidden:"frame_hidden__2jnbu"}},35132:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={componentStrip:"component-strip_componentStrip__2G41n",nameBlock:"component-strip_nameBlock__2ZuVl",version:"component-strip_version__2IwTp"}},65957:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={othersContainer:"label_othersContainer__20Yk0",othersTooltip:"label_othersTooltip__22gBc",active:"label_active__29Ovw",hidden:"label_hidden__cWzam"}},26585:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={highlighter:"highlighter-provider_highlighter__124yM",active:"highlighter-provider_active__oBUtA",label:"highlighter-provider_label__rMBbJ"}},58267:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),ensureCallable=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn},byObserver=function(Observer){var node=document.createTextNode(""),queue,currentQueue,i=0;return new Observer(function(){var callback;if(queue)currentQueue&&(queue=currentQueue.concat(queue));else{if(!currentQueue)return;queue=currentQueue}if(currentQueue=queue,queue=null,typeof currentQueue=="function"){callback=currentQueue,currentQueue=null,callback();return}for(node.data=i=++i%2;currentQueue;)callback=currentQueue.shift(),currentQueue.length||(currentQueue=null),callback()}).observe(node,{characterData:!0}),function(fn){if(ensureCallable(fn),queue){typeof queue=="function"?queue=[queue,fn]:queue.push(fn);return}queue=fn,node.data=i=++i%2}};module.exports=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(cb){queueMicrotask(ensureCallable(cb))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return byObserver(MutationObserver);if(typeof WebKitMutationObserver=="function")return byObserver(WebKitMutationObserver)}return typeof setImmediate=="function"?function(cb){setImmediate(ensureCallable(cb))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(cb){setTimeout(ensureCallable(cb),0)}:null}()},62005:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);function assertPath(path){if(typeof path!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(path))}function normalizeStringPosix(path,allowAboveRoot){for(var res="",lastSegmentLength=0,lastSlash=-1,dots=0,code,i=0;i<=path.length;++i){if(i<path.length)code=path.charCodeAt(i);else{if(code===47)break;code=47}if(code===47){if(!(lastSlash===i-1||dots===1))if(lastSlash!==i-1&&dots===2){if(res.length<2||lastSegmentLength!==2||res.charCodeAt(res.length-1)!==46||res.charCodeAt(res.length-2)!==46){if(res.length>2){var lastSlashIndex=res.lastIndexOf("/");if(lastSlashIndex!==res.length-1){lastSlashIndex===-1?(res="",lastSegmentLength=0):(res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf("/")),lastSlash=i,dots=0;continue}}else if(res.length===2||res.length===1){res="",lastSegmentLength=0,lastSlash=i,dots=0;continue}}allowAboveRoot&&(res.length>0?res+="/..":res="..",lastSegmentLength=2)}else res.length>0?res+="/"+path.slice(lastSlash+1,i):res=path.slice(lastSlash+1,i),lastSegmentLength=i-lastSlash-1;lastSlash=i,dots=0}else code===46&&dots!==-1?++dots:dots=-1}return res}function _format(sep,pathObject){var dir=pathObject.dir||pathObject.root,base=pathObject.base||(pathObject.name||"")+(pathObject.ext||"");return dir?dir===pathObject.root?dir+base:dir+sep+base:base}var posix={resolve:function(){for(var resolvedPath="",resolvedAbsolute=!1,cwd,i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path;i>=0?path=arguments[i]:(cwd===void 0&&(cwd=process.cwd()),path=cwd),assertPath(path),path.length!==0&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute=path.charCodeAt(0)===47)}return resolvedPath=normalizeStringPosix(resolvedPath,!resolvedAbsolute),resolvedAbsolute?resolvedPath.length>0?"/"+resolvedPath:"/":resolvedPath.length>0?resolvedPath:"."},normalize:function(path){if(assertPath(path),path.length===0)return".";var isAbsolute=path.charCodeAt(0)===47,trailingSeparator=path.charCodeAt(path.length-1)===47;return path=normalizeStringPosix(path,!isAbsolute),path.length===0&&!isAbsolute&&(path="."),path.length>0&&trailingSeparator&&(path+="/"),isAbsolute?"/"+path:path},isAbsolute:function(path){return assertPath(path),path.length>0&&path.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var joined,i=0;i<arguments.length;++i){var arg=arguments[i];assertPath(arg),arg.length>0&&(joined===void 0?joined=arg:joined+="/"+arg)}return joined===void 0?".":posix.normalize(joined)},relative:function(from,to){if(assertPath(from),assertPath(to),from===to||(from=posix.resolve(from),to=posix.resolve(to),from===to))return"";for(var fromStart=1;fromStart<from.length&&from.charCodeAt(fromStart)===47;++fromStart);for(var fromEnd=from.length,fromLen=fromEnd-fromStart,toStart=1;toStart<to.length&&to.charCodeAt(toStart)===47;++toStart);for(var toEnd=to.length,toLen=toEnd-toStart,length=fromLen<toLen?fromLen:toLen,lastCommonSep=-1,i=0;i<=length;++i){if(i===length){if(toLen>length){if(to.charCodeAt(toStart+i)===47)return to.slice(toStart+i+1);if(i===0)return to.slice(toStart+i)}else fromLen>length&&(from.charCodeAt(fromStart+i)===47?lastCommonSep=i:i===0&&(lastCommonSep=0));break}var fromCode=from.charCodeAt(fromStart+i),toCode=to.charCodeAt(toStart+i);if(fromCode!==toCode)break;fromCode===47&&(lastCommonSep=i)}var out="";for(i=fromStart+lastCommonSep+1;i<=fromEnd;++i)(i===fromEnd||from.charCodeAt(i)===47)&&(out.length===0?out+="..":out+="/..");return out.length>0?out+to.slice(toStart+lastCommonSep):(toStart+=lastCommonSep,to.charCodeAt(toStart)===47&&++toStart,to.slice(toStart))},_makeLong:function(path){return path},dirname:function(path){if(assertPath(path),path.length===0)return".";for(var code=path.charCodeAt(0),hasRoot=code===47,end=-1,matchedSlash=!0,i=path.length-1;i>=1;--i)if(code=path.charCodeAt(i),code===47){if(!matchedSlash){end=i;break}}else matchedSlash=!1;return end===-1?hasRoot?"/":".":hasRoot&&end===1?"//":path.slice(0,end)},basename:function(path,ext){if(ext!==void 0&&typeof ext!="string")throw new TypeError('"ext" argument must be a string');assertPath(path);var start=0,end=-1,matchedSlash=!0,i;if(ext!==void 0&&ext.length>0&&ext.length<=path.length){if(ext.length===path.length&&ext===path)return"";var extIdx=ext.length-1,firstNonSlashEnd=-1;for(i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){start=i+1;break}}else firstNonSlashEnd===-1&&(matchedSlash=!1,firstNonSlashEnd=i+1),extIdx>=0&&(code===ext.charCodeAt(extIdx)?--extIdx===-1&&(end=i):(extIdx=-1,end=firstNonSlashEnd))}return start===end?end=firstNonSlashEnd:end===-1&&(end=path.length),path.slice(start,end)}else{for(i=path.length-1;i>=0;--i)if(path.charCodeAt(i)===47){if(!matchedSlash){start=i+1;break}}else end===-1&&(matchedSlash=!1,end=i+1);return end===-1?"":path.slice(start,end)}},extname:function(path){assertPath(path);for(var startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){startPart=i+1;break}continue}end===-1&&(matchedSlash=!1,end=i+1),code===46?startDot===-1?startDot=i:preDotState!==1&&(preDotState=1):startDot!==-1&&(preDotState=-1)}return startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1?"":path.slice(startDot,end)},format:function(pathObject){if(pathObject===null||typeof pathObject!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof pathObject);return _format("/",pathObject)},parse:function(path){assertPath(path);var ret={root:"",dir:"",base:"",ext:"",name:""};if(path.length===0)return ret;var code=path.charCodeAt(0),isAbsolute=code===47,start;isAbsolute?(ret.root="/",start=1):start=0;for(var startDot=-1,startPart=0,end=-1,matchedSlash=!0,i=path.length-1,preDotState=0;i>=start;--i){if(code=path.charCodeAt(i),code===47){if(!matchedSlash){startPart=i+1;break}continue}end===-1&&(matchedSlash=!1,end=i+1),code===46?startDot===-1?startDot=i:preDotState!==1&&(preDotState=1):startDot!==-1&&(preDotState=-1)}return startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1?end!==-1&&(startPart===0&&isAbsolute?ret.base=ret.name=path.slice(1,end):ret.base=ret.name=path.slice(startPart,end)):(startPart===0&&isAbsolute?(ret.name=path.slice(1,startDot),ret.base=path.slice(1,end)):(ret.name=path.slice(startPart,startDot),ret.base=path.slice(startPart,end)),ret.ext=path.slice(startDot,end)),startPart>0?ret.dir=path.slice(0,startPart-1):isAbsolute&&(ret.dir="/"),ret},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix,module.exports=posix},63805:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ErrorCode:()=>ErrorCode,connectToChild:()=>connectToChild,connectToParent:()=>connectToParent});var MessageType;(function(MessageType2){MessageType2.Call="call",MessageType2.Reply="reply",MessageType2.Syn="syn",MessageType2.SynAck="synAck",MessageType2.Ack="ack"})(MessageType||(MessageType={}));var Resolution;(function(Resolution2){Resolution2.Fulfilled="fulfilled",Resolution2.Rejected="rejected"})(Resolution||(Resolution={}));var ErrorCode;(function(ErrorCode2){ErrorCode2.ConnectionDestroyed="ConnectionDestroyed",ErrorCode2.ConnectionTimeout="ConnectionTimeout",ErrorCode2.NoIframeSrc="NoIframeSrc"})(ErrorCode||(ErrorCode={}));var NativeErrorName;(function(NativeErrorName2){NativeErrorName2.DataCloneError="DataCloneError"})(NativeErrorName||(NativeErrorName={}));var NativeEventType;(function(NativeEventType2){NativeEventType2.Message="message"})(NativeEventType||(NativeEventType={}));const createDestructor=(localName,log)=>{const callbacks=[];let destroyed=!1;return{destroy(error){destroyed||(destroyed=!0,log(`${localName}: Destroying connection`),callbacks.forEach(callback=>{callback(error)}))},onDestroy(callback){destroyed?callback():callbacks.push(callback)}}},createLogger=debug=>(...args)=>{debug&&console.log("[Penpal]",...args)},DEFAULT_PORT_BY_PROTOCOL={"http:":"80","https:":"443"},URL_REGEX=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,opaqueOriginSchemes=["file:","data:"],getOriginFromSrc=src=>{if(src&&opaqueOriginSchemes.find(scheme=>src.startsWith(scheme)))return"null";const location=document.location,regexResult=URL_REGEX.exec(src);let protocol,hostname,port;regexResult?(protocol=regexResult[1]?regexResult[1]:location.protocol,hostname=regexResult[2],port=regexResult[4]):(protocol=location.protocol,hostname=location.hostname,port=location.port);const portSuffix=port&&port!==DEFAULT_PORT_BY_PROTOCOL[protocol]?`:${port}`:"";return`${protocol}//${hostname}${portSuffix}`},serializeError=({name,message,stack})=>({name,message,stack}),deserializeError=obj=>{const deserializedError=new Error;return Object.keys(obj).forEach(key=>deserializedError[key]=obj[key]),deserializedError},connectCallReceiver=(info,serializedMethods,log)=>{const{localName,local,remote,originForSending,originForReceiving}=info;let destroyed=!1;const handleMessageEvent=event=>{if(event.source!==remote||event.data.penpal!==MessageType.Call)return;if(originForReceiving!=="*"&&event.origin!==originForReceiving){log(`${localName} received message from origin ${event.origin} which did not match expected origin ${originForReceiving}`);return}const callMessage=event.data,{methodName,args,id:id2}=callMessage;log(`${localName}: Received ${methodName}() call`);const createPromiseHandler=resolution=>returnValue=>{if(log(`${localName}: Sending ${methodName}() reply`),destroyed){log(`${localName}: Unable to send ${methodName}() reply due to destroyed connection`);return}const message={penpal:MessageType.Reply,id:id2,resolution,returnValue};resolution===Resolution.Rejected&&returnValue instanceof Error&&(message.returnValue=serializeError(returnValue),message.returnValueIsError=!0);try{remote.postMessage(message,originForSending)}catch(err){if(err.name===NativeErrorName.DataCloneError){const errorReplyMessage={penpal:MessageType.Reply,id:id2,resolution:Resolution.Rejected,returnValue:serializeError(err),returnValueIsError:!0};remote.postMessage(errorReplyMessage,originForSending)}throw err}};new Promise(resolve=>resolve(serializedMethods[methodName].apply(serializedMethods,args))).then(createPromiseHandler(Resolution.Fulfilled),createPromiseHandler(Resolution.Rejected))};return local.addEventListener(NativeEventType.Message,handleMessageEvent),()=>{destroyed=!0,local.removeEventListener(NativeEventType.Message,handleMessageEvent)}};let id=0;const generateId=()=>++id,KEY_PATH_DELIMITER=".",keyPathToSegments=keyPath=>keyPath?keyPath.split(KEY_PATH_DELIMITER):[],segmentsToKeyPath=segments=>segments.join(KEY_PATH_DELIMITER),createKeyPath=(key,prefix)=>{const segments=keyPathToSegments(prefix||"");return segments.push(key),segmentsToKeyPath(segments)},setAtKeyPath=(subject,keyPath,value2)=>{const segments=keyPathToSegments(keyPath);return segments.reduce((prevSubject,key,idx)=>(typeof prevSubject[key]>"u"&&(prevSubject[key]={}),idx===segments.length-1&&(prevSubject[key]=value2),prevSubject[key]),subject),subject},serializeMethods=(methods,prefix)=>{const flattenedMethods={};return Object.keys(methods).forEach(key=>{const value2=methods[key],keyPath=createKeyPath(key,prefix);typeof value2=="object"&&Object.assign(flattenedMethods,serializeMethods(value2,keyPath)),typeof value2=="function"&&(flattenedMethods[keyPath]=value2)}),flattenedMethods},deserializeMethods=flattenedMethods=>{const methods={};for(const keyPath in flattenedMethods)setAtKeyPath(methods,keyPath,flattenedMethods[keyPath]);return methods},connectCallSender=(callSender,info,methodKeyPaths,destroyConnection,log)=>{const{localName,local,remote,originForSending,originForReceiving}=info;let destroyed=!1;log(`${localName}: Connecting call sender`);const createMethodProxy=methodName=>(...args)=>{log(`${localName}: Sending ${methodName}() call`);let iframeRemoved;try{remote.closed&&(iframeRemoved=!0)}catch{iframeRemoved=!0}if(iframeRemoved&&destroyConnection(),destroyed){const error=new Error(`Unable to send ${methodName}() call due to destroyed connection`);throw error.code=ErrorCode.ConnectionDestroyed,error}return new Promise((resolve,reject)=>{const id2=generateId(),handleMessageEvent=event=>{if(event.source!==remote||event.data.penpal!==MessageType.Reply||event.data.id!==id2)return;if(originForReceiving!=="*"&&event.origin!==originForReceiving){log(`${localName} received message from origin ${event.origin} which did not match expected origin ${originForReceiving}`);return}const replyMessage=event.data;log(`${localName}: Received ${methodName}() reply`),local.removeEventListener(NativeEventType.Message,handleMessageEvent);let returnValue=replyMessage.returnValue;replyMessage.returnValueIsError&&(returnValue=deserializeError(returnValue)),(replyMessage.resolution===Resolution.Fulfilled?resolve:reject)(returnValue)};local.addEventListener(NativeEventType.Message,handleMessageEvent);const callMessage={penpal:MessageType.Call,id:id2,methodName,args};remote.postMessage(callMessage,originForSending)})},flattenedMethods=methodKeyPaths.reduce((api,name)=>(api[name]=createMethodProxy(name),api),{});return Object.assign(callSender,deserializeMethods(flattenedMethods)),()=>{destroyed=!0}},handleAckMessageFactory=(serializedMethods,childOrigin,originForSending,destructor,log)=>{const{destroy,onDestroy}=destructor;let destroyCallReceiver,receiverMethodNames;const callSender={};return event=>{if(childOrigin!=="*"&&event.origin!==childOrigin){log(`Parent: Handshake - Received ACK message from origin ${event.origin} which did not match expected origin ${childOrigin}`);return}log("Parent: Handshake - Received ACK");const info={localName:"Parent",local:window,remote:event.source,originForSending,originForReceiving:childOrigin};destroyCallReceiver&&destroyCallReceiver(),destroyCallReceiver=connectCallReceiver(info,serializedMethods,log),onDestroy(destroyCallReceiver),receiverMethodNames&&receiverMethodNames.forEach(receiverMethodName=>{delete callSender[receiverMethodName]}),receiverMethodNames=event.data.methodNames;const destroyCallSender=connectCallSender(callSender,info,receiverMethodNames,destroy,log);return onDestroy(destroyCallSender),callSender}},handleSynMessageFactory=(log,serializedMethods,childOrigin,originForSending)=>event=>{if(!event.source)return;if(childOrigin!=="*"&&event.origin!==childOrigin){log(`Parent: Handshake - Received SYN message from origin ${event.origin} which did not match expected origin ${childOrigin}`);return}log("Parent: Handshake - Received SYN, responding with SYN-ACK");const synAckMessage={penpal:MessageType.SynAck,methodNames:Object.keys(serializedMethods)};event.source.postMessage(synAckMessage,originForSending)},CHECK_IFRAME_IN_DOC_INTERVAL=6e4,monitorIframeRemoval=(iframe,destructor)=>{const{destroy,onDestroy}=destructor,checkIframeInDocIntervalId=setInterval(()=>{iframe.isConnected||(clearInterval(checkIframeInDocIntervalId),destroy())},CHECK_IFRAME_IN_DOC_INTERVAL);onDestroy(()=>{clearInterval(checkIframeInDocIntervalId)})},startConnectionTimeout=(timeout,callback)=>{let timeoutId;return timeout!==void 0&&(timeoutId=window.setTimeout(()=>{const error=new Error(`Connection timed out after ${timeout}ms`);error.code=ErrorCode.ConnectionTimeout,callback(error)},timeout)),()=>{clearTimeout(timeoutId)}},validateIframeHasSrcOrSrcDoc=iframe=>{if(!iframe.src&&!iframe.srcdoc){const error=new Error("Iframe must have src or srcdoc property defined.");throw error.code=ErrorCode.NoIframeSrc,error}},connectToChild=options=>{let{iframe,methods={},childOrigin,timeout,debug=!1}=options;const log=createLogger(debug),destructor=createDestructor("Parent",log),{onDestroy,destroy}=destructor;childOrigin||(validateIframeHasSrcOrSrcDoc(iframe),childOrigin=getOriginFromSrc(iframe.src));const originForSending=childOrigin==="null"?"*":childOrigin,serializedMethods=serializeMethods(methods),handleSynMessage=handleSynMessageFactory(log,serializedMethods,childOrigin,originForSending),handleAckMessage=handleAckMessageFactory(serializedMethods,childOrigin,originForSending,destructor,log);return{promise:new Promise((resolve,reject)=>{const stopConnectionTimeout=startConnectionTimeout(timeout,destroy),handleMessage=event=>{if(!(event.source!==iframe.contentWindow||!event.data)){if(event.data.penpal===MessageType.Syn){handleSynMessage(event);return}if(event.data.penpal===MessageType.Ack){const callSender=handleAckMessage(event);callSender&&(stopConnectionTimeout(),resolve(callSender));return}}};window.addEventListener(NativeEventType.Message,handleMessage),log("Parent: Awaiting handshake"),monitorIframeRemoval(iframe,destructor),onDestroy(error=>{window.removeEventListener(NativeEventType.Message,handleMessage),error&&reject(error)})}),destroy(){destroy()}}},handleSynAckMessageFactory=(parentOrigin,serializedMethods,destructor,log)=>{const{destroy,onDestroy}=destructor;return event=>{if(!(parentOrigin instanceof RegExp?parentOrigin.test(event.origin):parentOrigin==="*"||parentOrigin===event.origin)){log(`Child: Handshake - Received SYN-ACK from origin ${event.origin} which did not match expected origin ${parentOrigin}`);return}log("Child: Handshake - Received SYN-ACK, responding with ACK");const originForSending=event.origin==="null"?"*":event.origin,ackMessage={penpal:MessageType.Ack,methodNames:Object.keys(serializedMethods)};window.parent.postMessage(ackMessage,originForSending);const info={localName:"Child",local:window,remote:window.parent,originForSending,originForReceiving:event.origin},destroyCallReceiver=connectCallReceiver(info,serializedMethods,log);onDestroy(destroyCallReceiver);const callSender={},destroyCallSender=connectCallSender(callSender,info,event.data.methodNames,destroy,log);return onDestroy(destroyCallSender),callSender}},areGlobalsAccessible=()=>{try{clearTimeout()}catch{return!1}return!0},connectToParent=(options={})=>{const{parentOrigin="*",methods={},timeout,debug=!1}=options,log=createLogger(debug),destructor=createDestructor("Child",log),{destroy,onDestroy}=destructor,serializedMethods=serializeMethods(methods),handleSynAckMessage=handleSynAckMessageFactory(parentOrigin,serializedMethods,destructor,log),sendSynMessage=()=>{log("Child: Handshake - Sending SYN");const synMessage={penpal:MessageType.Syn},parentOriginForSyn=parentOrigin instanceof RegExp?"*":parentOrigin;window.parent.postMessage(synMessage,parentOriginForSyn)};return{promise:new Promise((resolve,reject)=>{const stopConnectionTimeout=startConnectionTimeout(timeout,destroy),handleMessage=event=>{if(!!areGlobalsAccessible()&&!(event.source!==parent||!event.data)&&event.data.penpal===MessageType.SynAck){const callSender=handleSynAckMessage(event);callSender&&(window.removeEventListener(NativeEventType.Message,handleMessage),stopConnectionTimeout(),resolve(callSender))}};window.addEventListener(NativeEventType.Message,handleMessage),sendSynMessage(),onDestroy(error=>{window.removeEventListener(NativeEventType.Message,handleMessage),error&&reject(error)})}),destroy(){destroy()}}}},14224:module=>{var process=module.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(fun,array){this.fun=fun,this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={};function noop(){}process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},42546:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";const strictUriEncode=__webpack_require__(45632),decodeComponent=__webpack_require__(54525),splitOnFirst=__webpack_require__(34214),filterObject=__webpack_require__(1469),isNullOrUndefined=value2=>value2==null;function encoderForArrayFormat(options){switch(options.arrayFormat){case"index":return key=>(result,value2)=>{const index=result.length;return value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:value2===null?[...result,[encode(key,options),"[",index,"]"].join("")]:[...result,[encode(key,options),"[",encode(index,options),"]=",encode(value2,options)].join("")]};case"bracket":return key=>(result,value2)=>value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:value2===null?[...result,[encode(key,options),"[]"].join("")]:[...result,[encode(key,options),"[]=",encode(value2,options)].join("")];case"comma":case"separator":case"bracket-separator":{const keyValueSep=options.arrayFormat==="bracket-separator"?"[]=":"=";return key=>(result,value2)=>value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:(value2=value2===null?"":value2,result.length===0?[[encode(key,options),keyValueSep,encode(value2,options)].join("")]:[[result,encode(value2,options)].join(options.arrayFormatSeparator)])}default:return key=>(result,value2)=>value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:value2===null?[...result,encode(key,options)]:[...result,[encode(key,options),"=",encode(value2,options)].join("")]}}function parserForArrayFormat(options){let result;switch(options.arrayFormat){case"index":return(key,value2,accumulator)=>{if(result=/\[(\d*)\]$/.exec(key),key=key.replace(/\[\d*\]$/,""),!result){accumulator[key]=value2;return}accumulator[key]===void 0&&(accumulator[key]={}),accumulator[key][result[1]]=value2};case"bracket":return(key,value2,accumulator)=>{if(result=/(\[\])$/.exec(key),key=key.replace(/\[\]$/,""),!result){accumulator[key]=value2;return}if(accumulator[key]===void 0){accumulator[key]=[value2];return}accumulator[key]=[].concat(accumulator[key],value2)};case"comma":case"separator":return(key,value2,accumulator)=>{const isArray=typeof value2=="string"&&value2.includes(options.arrayFormatSeparator),isEncodedArray=typeof value2=="string"&&!isArray&&decode(value2,options).includes(options.arrayFormatSeparator);value2=isEncodedArray?decode(value2,options):value2;const newValue=isArray||isEncodedArray?value2.split(options.arrayFormatSeparator).map(item=>decode(item,options)):value2===null?value2:decode(value2,options);accumulator[key]=newValue};case"bracket-separator":return(key,value2,accumulator)=>{const isArray=/(\[\])$/.test(key);if(key=key.replace(/\[\]$/,""),!isArray){accumulator[key]=value2&&decode(value2,options);return}const arrayValue=value2===null?[]:value2.split(options.arrayFormatSeparator).map(item=>decode(item,options));if(accumulator[key]===void 0){accumulator[key]=arrayValue;return}accumulator[key]=[].concat(accumulator[key],arrayValue)};default:return(key,value2,accumulator)=>{if(accumulator[key]===void 0){accumulator[key]=value2;return}accumulator[key]=[].concat(accumulator[key],value2)}}}function validateArrayFormatSeparator(value2){if(typeof value2!="string"||value2.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(value2,options){return options.encode?options.strict?strictUriEncode(value2):encodeURIComponent(value2):value2}function decode(value2,options){return options.decode?decodeComponent(value2):value2}function keysSorter(input){return Array.isArray(input)?input.sort():typeof input=="object"?keysSorter(Object.keys(input)).sort((a,b)=>Number(a)-Number(b)).map(key=>input[key]):input}function removeHash(input){const hashStart=input.indexOf("#");return hashStart!==-1&&(input=input.slice(0,hashStart)),input}function getHash(url){let hash="";const hashStart=url.indexOf("#");return hashStart!==-1&&(hash=url.slice(hashStart)),hash}function extract(input){input=removeHash(input);const queryStart=input.indexOf("?");return queryStart===-1?"":input.slice(queryStart+1)}function parseValue(value2,options){return options.parseNumbers&&!Number.isNaN(Number(value2))&&typeof value2=="string"&&value2.trim()!==""?value2=Number(value2):options.parseBooleans&&value2!==null&&(value2.toLowerCase()==="true"||value2.toLowerCase()==="false")&&(value2=value2.toLowerCase()==="true"),value2}function parse(query,options){options=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},options),validateArrayFormatSeparator(options.arrayFormatSeparator);const formatter=parserForArrayFormat(options),ret=Object.create(null);if(typeof query!="string"||(query=query.trim().replace(/^[?#&]/,""),!query))return ret;for(const param of query.split("&")){if(param==="")continue;let[key,value2]=splitOnFirst(options.decode?param.replace(/\+/g," "):param,"=");value2=value2===void 0?null:["comma","separator","bracket-separator"].includes(options.arrayFormat)?value2:decode(value2,options),formatter(decode(key,options),value2,ret)}for(const key of Object.keys(ret)){const value2=ret[key];if(typeof value2=="object"&&value2!==null)for(const k of Object.keys(value2))value2[k]=parseValue(value2[k],options);else ret[key]=parseValue(value2,options)}return options.sort===!1?ret:(options.sort===!0?Object.keys(ret).sort():Object.keys(ret).sort(options.sort)).reduce((result,key)=>{const value2=ret[key];return Boolean(value2)&&typeof value2=="object"&&!Array.isArray(value2)?result[key]=keysSorter(value2):result[key]=value2,result},Object.create(null))}exports.extract=extract,exports.parse=parse,exports.stringify=(object,options)=>{if(!object)return"";options=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},options),validateArrayFormatSeparator(options.arrayFormatSeparator);const shouldFilter=key=>options.skipNull&&isNullOrUndefined(object[key])||options.skipEmptyString&&object[key]==="",formatter=encoderForArrayFormat(options),objectCopy={};for(const key of Object.keys(object))shouldFilter(key)||(objectCopy[key]=object[key]);const keys=Object.keys(objectCopy);return options.sort!==!1&&keys.sort(options.sort),keys.map(key=>{const value2=object[key];return value2===void 0?"":value2===null?encode(key,options):Array.isArray(value2)?value2.length===0&&options.arrayFormat==="bracket-separator"?encode(key,options)+"[]":value2.reduce(formatter(key),[]).join("&"):encode(key,options)+"="+encode(value2,options)}).filter(x=>x.length>0).join("&")},exports.parseUrl=(url,options)=>{options=Object.assign({decode:!0},options);const[url_,hash]=splitOnFirst(url,"#");return Object.assign({url:url_.split("?")[0]||"",query:parse(extract(url),options)},options&&options.parseFragmentIdentifier&&hash?{fragmentIdentifier:decode(hash,options)}:{})},exports.stringifyUrl=(object,options)=>{options=Object.assign({encode:!0,strict:!0},options);const url=removeHash(object.url).split("?")[0]||"",queryFromUrl=exports.extract(object.url),parsedQueryFromUrl=exports.parse(queryFromUrl,{sort:!1}),query=Object.assign(parsedQueryFromUrl,object.query);let queryString=exports.stringify(query,options);queryString&&(queryString=`?${queryString}`);let hash=getHash(object.url);return object.fragmentIdentifier&&(hash=`#${encode(object.fragmentIdentifier,options)}`),`${url}${queryString}${hash}`},exports.pick=(input,filter,options)=>{options=Object.assign({parseFragmentIdentifier:!0},options);const{url,query,fragmentIdentifier}=exports.parseUrl(input,options);return exports.stringifyUrl({url,query:filterObject(query,filter),fragmentIdentifier},options)},exports.exclude=(input,filter,options)=>{const exclusionFilter=Array.isArray(filter)?key=>!filter.includes(key):(key,value2)=>!filter(key,value2);return exports.pick(input,exclusionFilter,options)}},96485:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);/*! *****************************************************************************
|
63
|
+
}`;var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined2,importsValues)});if(result2.source=source,isError(result2))throw result2;return result2}function toLower(value2){return toString(value2).toLowerCase()}function toUpper(value2){return toString(value2).toUpperCase()}function trim(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join("")}function trimEnd(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join("")}function trimStart(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join("")}function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length,omission="omission"in options?baseToString(options.omission):omission}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length}if(length>=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result2=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined2)return result2+omission;if(strSymbols&&(end+=result2.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result2;for(separator.global||(separator=RegExp2(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result2=result2.slice(0,newEnd===undefined2?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result2.lastIndexOf(separator);index>-1&&(result2=result2.slice(0,index))}return result2+omission}function unescape(string){return string=toString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}var upperCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined2:pattern,pattern===undefined2?hasUnicodeWord(string)?unicodeWords(string):asciiWords(string):string.match(pattern)||[]}var attempt=baseRest(function(func,args){try{return apply(func,undefined2,args)}catch(e){return isError(e)?e:new Error2(e)}}),bindAll=flatRest(function(object,methodNames){return arrayEach(methodNames,function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))}),object});function cond(pairs){var length=pairs==null?0:pairs.length,toIteratee=getIteratee();return pairs=length?arrayMap(pairs,function(pair){if(typeof pair[1]!="function")throw new TypeError2(FUNC_ERROR_TEXT);return[toIteratee(pair[0]),pair[1]]}):[],baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG))}function constant(value2){return function(){return value2}}function defaultTo(value2,defaultValue){return value2==null||value2!==value2?defaultValue:value2}var flow=createFlow(),flowRight=createFlow(!0);function identity(value2){return value2}function iteratee(func){return baseIteratee(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG))}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG))}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}});function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);options==null&&!(isObject(source)&&(methodNames.length||!props.length))&&(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain2=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);return arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);return actions.push({func,args:arguments,thisArg:object}),result2.__chain__=chainAll,result2}return func.apply(object,arrayPush([this.value()],arguments))})}),object}function noConflict(){return root._===this&&(root._=oldDash),this}function noop(){}function nthArg(n){return n=toInteger(n),baseRest(function(args){return baseNth(args,n)})}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function propertyOf(object){return function(path){return object==null?undefined2:baseGet(object,path)}}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(n,iteratee2){if(n=toInteger(n),n<1||n>MAX_SAFE_INTEGER)return[];var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2),n-=MAX_ARRAY_LENGTH;for(var result2=baseTimes(length,iteratee2);++index<n;)iteratee2(index);return result2}function toPath(value2){return isArray(value2)?arrayMap(value2,toKey):isSymbol(value2)?[value2]:copyArray(stringToPath(toString(value2)))}function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id}var add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor");function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined2}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined2}function mean(array){return baseMean(array,identity)}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2))}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined2}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined2}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);function sum(array){return array&&array.length?baseSum(array,identity):0}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0}return lodash.after=after,lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=countBy,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=defaults,lodash.defaultsDeep=defaultsDeep,lodash.defer=defer,lodash.delay=delay,lodash.difference=difference,lodash.differenceBy=differenceBy,lodash.differenceWith=differenceWith,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=flow,lodash.flowRight=flowRight,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=groupBy,lodash.initial=initial,lodash.intersection=intersection,lodash.intersectionBy=intersectionBy,lodash.intersectionWith=intersectionWith,lodash.invert=invert,lodash.invertBy=invertBy,lodash.invokeMap=invokeMap,lodash.iteratee=iteratee,lodash.keyBy=keyBy,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=merge,lodash.mergeWith=mergeWith,lodash.method=method,lodash.methodOf=methodOf,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=omit,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=over,lodash.overArgs=overArgs,lodash.overEvery=overEvery,lodash.overSome=overSome,lodash.partial=partial,lodash.partialRight=partialRight,lodash.partition=partition,lodash.pick=pick,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=pull,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=pullAt,lodash.range=range,lodash.rangeRight=rangeRight,lodash.rearg=rearg,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=sortBy,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=without,lodash.words=words,lodash.wrap=wrap,lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=divide,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=invoke,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayBuffer=isArrayBuffer,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=isBuffer,lodash.isDate=isDate,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite2,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=isMap,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN2,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=isRegExp,lodash.isSafeInteger=isSafeInteger,lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=multiply,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=now,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt2,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=round,lodash.runInContext=runInContext2,lodash.sample=sample,lodash.size=size,lodash.snakeCase=snakeCase,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=startCase,lodash.startsWith=startsWith,lodash.subtract=subtract,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape,lodash.uniqueId=uniqueId,lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var source={};return baseForOwn(lodash,function(func,methodName){hasOwnProperty2.call(lodash.prototype,methodName)||(source[methodName]=func)}),source}(),{chain:!1}),lodash.VERSION=VERSION,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash}),arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined2?1:nativeMax(toInteger(n),0);var result2=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result2.__filtered__?result2.__takeCount__=nativeMin(n,result2.__takeCount__):result2.__views__.push({size:nativeMin(n,MAX_ARRAY_LENGTH),type:methodName+(result2.__dir__<0?"Right":"")}),result2},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}}),arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();return result2.__iteratees__.push({iteratee:getIteratee(iteratee2,3),type}),result2.__filtered__=result2.__filtered__||isFilter,result2}}),arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}}),arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return typeof path=="function"?new LazyWrapper(this):this.map(function(value2){return baseInvoke(value2,path,args)})}),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result2=this;return result2.__filtered__&&(start>0||end<0)?new LazyWrapper(result2):(start<0?result2=result2.takeRight(-start):start&&(result2=result2.drop(start)),end!==undefined2&&(end=toInteger(end),result2=end<0?result2.dropRight(-end):result2.take(end-start)),result2)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);!lodashFunc||(lodash.prototype[methodName]=function(){var value2=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value2 instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray(value2),interceptor=function(value3){var result3=lodashFunc.apply(lodash,arrayPush([value3],args));return isTaker&&chainAll?result3[0]:result3};useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value2=onlyLazy?value2:new LazyWrapper(this);var result2=func.apply(value2,args);return result2.__actions__.push({func:thru,args:[interceptor],thisArg:undefined2}),new LodashWrapper(result2,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result2=this.thru(interceptor),isUnwrapped?isTaker?result2.value()[0]:result2.value():result2)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value2=this.value();return func.apply(isArray(value2)?value2:[],args)}return this[chainName](function(value3){return func.apply(isArray(value3)?value3:[],args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty2.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}}),realNames[createHybrid(undefined2,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined2}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=wrapperAt,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=wrapperToIterator),lodash},_=runInContext();root._=_,__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined2&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this)},18968:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Yallist=__webpack_require__(79900),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1;class LRUCache{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");const max=this[MAX]=options.max||1/0,lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value2,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value2,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value2,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value2,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value2),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach((value2,key)=>get(this,key,!1))}}const get=(self2,key,doUse)=>{const node=self2[CACHE].get(key);if(node){const hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){const prev=walker.prev;del(self2,walker),walker=prev}},del=(self2,node)=>{if(node){const hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value2,length,now,maxAge){this.key=key,this.value=value2,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2)};module.exports=LRUCache},20560:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(63976),create=Object.create,hasOwnProperty2=Object.prototype.hasOwnProperty;module.exports=function(limit){var size=0,base=1,queue=create(null),map=create(null),index=0,del;return limit=toPosInt(limit),{hit:function(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex)return++size,size<=limit?void 0:(id=queue[base],del(id),id);if(delete queue[oldIndex],base===oldIndex)for(;!hasOwnProperty2.call(queue,++base););},delete:del=function(id){var oldIndex=map[id];if(!!oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size){index=0,base=1;return}for(;!hasOwnProperty2.call(queue,++base););}},clear:function(){size=0,base=1,queue=create(null),map=create(null),index=0}}}},44809:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(70206),objectMap=__webpack_require__(97141),mixin=__webpack_require__(9219),defineLength=__webpack_require__(9581),nextTick=__webpack_require__(58267),slice=Array.prototype.slice,apply=Function.prototype.apply,create=Object.create;__webpack_require__(88972).async=function(tbi,conf){var waiting=create(null),cache=create(null),base=conf.memoized,original=conf.original,currentCallback,currentContext,currentArgs;conf.memoized=defineLength(function(arg){var args=arguments,last=args[args.length-1];return typeof last=="function"&&(currentCallback=last,args=slice.call(args,0,-1)),base.apply(currentContext=this,currentArgs=args)},base);try{mixin(conf.memoized,base)}catch{}conf.on("get",function(id){var cb,context,args;if(!!currentCallback){if(waiting[id]){typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback]:waiting[id].push(currentCallback),currentCallback=null;return}cb=currentCallback,context=currentContext,args=currentArgs,currentCallback=currentContext=currentArgs=null,nextTick(function(){var data;hasOwnProperty.call(cache,id)?(data=cache[id],conf.emit("getasync",id,args,context),apply.call(cb,data.context,data.args)):(currentCallback=cb,currentContext=context,currentArgs=args,base.apply(context,args))})}}),conf.original=function(){var args,cb,origCb,result;return currentCallback?(args=aFrom(arguments),cb=function self2(err){var cb2,args2,id=self2.id;if(id==null){nextTick(apply.bind(self2,this,arguments));return}if(delete self2.id,cb2=waiting[id],delete waiting[id],!!cb2)return args2=aFrom(arguments),conf.has(id)&&(err?conf.delete(id):(cache[id]={context:this,args:args2},conf.emit("setasync",id,typeof cb2=="function"?1:cb2.length))),typeof cb2=="function"?result=apply.call(cb2,this,args2):cb2.forEach(function(cb3){result=apply.call(cb3,this,args2)},this),result},origCb=currentCallback,currentCallback=currentContext=currentArgs=null,args.push(cb),result=apply.call(original,this,args),cb.cb=origCb,currentCallback=cb,result):apply.call(original,this,arguments)},conf.on("set",function(id){if(!currentCallback){conf.delete(id);return}waiting[id]?typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback.cb]:waiting[id].push(currentCallback.cb):waiting[id]=currentCallback.cb,delete currentCallback.cb,currentCallback.id=id,currentCallback=null}),conf.on("delete",function(id){var result;hasOwnProperty.call(waiting,id)||!cache[id]||(result=cache[id],delete cache[id],conf.emit("deleteasync",id,slice.call(result.args,1)))}),conf.on("clear",function(){var oldCache=cache;cache=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return slice.call(data.args,1)}))})}},81883:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(53447),forEach=__webpack_require__(78396),extensions=__webpack_require__(88972),apply=Function.prototype.apply;extensions.dispose=function(dispose,conf,options){var del;if(callable(dispose),options.async&&extensions.async||options.promise&&extensions.promise){conf.on("deleteasync",del=function(id,resultArray){apply.call(dispose,null,resultArray)}),conf.on("clearasync",function(cache){forEach(cache,function(result,id){del(id,result)})});return}conf.on("delete",del=function(id,result){dispose(result)}),conf.on("clear",function(cache){forEach(cache,function(result,id){del(id,result)})})}},85619:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(70206),forEach=__webpack_require__(78396),nextTick=__webpack_require__(58267),isPromise=__webpack_require__(82522),timeout=__webpack_require__(85128),extensions=__webpack_require__(88972),noop=Function.prototype,max=Math.max,min=Math.min,create=Object.create;extensions.maxAge=function(maxAge,conf,options){var timeouts,postfix,preFetchAge,preFetchTimeouts;maxAge=timeout(maxAge),maxAge&&(timeouts=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id){timeouts[id]=setTimeout(function(){conf.delete(id)},maxAge),typeof timeouts[id].unref=="function"&&timeouts[id].unref(),preFetchTimeouts&&(preFetchTimeouts[id]&&preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),preFetchTimeouts[id]=setTimeout(function(){delete preFetchTimeouts[id]},preFetchAge),typeof preFetchTimeouts[id].unref=="function"&&preFetchTimeouts[id].unref())}),conf.on("delete"+postfix,function(id){clearTimeout(timeouts[id]),delete timeouts[id],preFetchTimeouts&&(preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),delete preFetchTimeouts[id])}),options.preFetch&&(options.preFetch===!0||isNaN(options.preFetch)?preFetchAge=.333:preFetchAge=max(min(Number(options.preFetch),1),0),preFetchAge&&(preFetchTimeouts={},preFetchAge=(1-preFetchAge)*maxAge,conf.on("get"+postfix,function(id,args,context){preFetchTimeouts[id]||(preFetchTimeouts[id]="nextTick",nextTick(function(){var result;preFetchTimeouts[id]==="nextTick"&&(delete preFetchTimeouts[id],conf.delete(id),options.async&&(args=aFrom(args),args.push(noop)),result=conf.memoized.apply(context,args),options.promise&&isPromise(result)&&(typeof result.done=="function"?result.done(noop,noop):result.then(noop,noop)))}))}))),conf.on("clear"+postfix,function(){forEach(timeouts,function(id){clearTimeout(id)}),timeouts={},preFetchTimeouts&&(forEach(preFetchTimeouts,function(id){id!=="nextTick"&&clearTimeout(id)}),preFetchTimeouts={})}))}},50459:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInteger=__webpack_require__(63976),lruQueue=__webpack_require__(20560),extensions=__webpack_require__(88972);extensions.max=function(max,conf,options){var postfix,queue,hit;max=toPosInteger(max),max&&(queue=lruQueue(max),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,hit=function(id){id=queue.hit(id),id!==void 0&&conf.delete(id)}),conf.on("get"+postfix,hit),conf.on("delete"+postfix,queue.delete),conf.on("clear"+postfix,queue.clear))}},10634:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectMap=__webpack_require__(97141),primitiveSet=__webpack_require__(97077),ensureString=__webpack_require__(39469),toShortString=__webpack_require__(14674),isPromise=__webpack_require__(82522),nextTick=__webpack_require__(58267),create=Object.create,supportedModes=primitiveSet("then","then:finally","done","done:finally");__webpack_require__(88972).promise=function(mode,conf){var waiting=create(null),cache=create(null),promises=create(null);if(mode===!0)mode=null;else if(mode=ensureString(mode),!supportedModes[mode])throw new TypeError("'"+toShortString(mode)+"' is not valid promise mode");conf.on("set",function(id,ignore,promise){var isFailed=!1;if(!isPromise(promise)){cache[id]=promise,conf.emit("setasync",id,1);return}waiting[id]=1,promises[id]=promise;var onSuccess=function(result){var count=waiting[id];if(isFailed)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
64
|
+
Consider to rely on 'then' or 'done' mode instead.`);!count||(delete waiting[id],cache[id]=result,conf.emit("setasync",id,count))},onFailure=function(){isFailed=!0,waiting[id]&&(delete waiting[id],delete promises[id],conf.delete(id))},resolvedMode=mode;if(resolvedMode||(resolvedMode="then"),resolvedMode==="then"){var nextTickFailure=function(){nextTick(onFailure)};promise=promise.then(function(result){nextTick(onSuccess.bind(this,result))},nextTickFailure),typeof promise.finally=="function"&&promise.finally(nextTickFailure)}else if(resolvedMode==="done"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");promise.done(onSuccess,onFailure)}else if(resolvedMode==="done:finally"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof promise.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");promise.done(onSuccess),promise.finally(onFailure)}}),conf.on("get",function(id,args,context){var promise;if(waiting[id]){++waiting[id];return}promise=promises[id];var emit=function(){conf.emit("getasync",id,args,context)};isPromise(promise)?typeof promise.done=="function"?promise.done(emit):promise.then(function(){nextTick(emit)}):emit()}),conf.on("delete",function(id){if(delete promises[id],waiting[id]){delete waiting[id];return}if(!!hasOwnProperty.call(cache,id)){var result=cache[id];delete cache[id],conf.emit("deleteasync",id,[result])}}),conf.on("clear",function(){var oldCache=cache;cache=create(null),waiting=create(null),promises=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return[data]}))})}},35539:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(18544),extensions=__webpack_require__(88972),create=Object.create,defineProperties=Object.defineProperties;extensions.refCounter=function(ignore,conf,options){var cache,postfix;cache=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id,length){cache[id]=length||1}),conf.on("get"+postfix,function(id){++cache[id]}),conf.on("delete"+postfix,function(id){delete cache[id]}),conf.on("clear"+postfix,function(){cache={}}),defineProperties(conf.memoized,{deleteRef:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?null:--cache[id]?!1:(conf.delete(id),!0)}),getRefCount:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?0:cache[id]})})}},3105:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var normalizeOpts=__webpack_require__(95699),resolveLength=__webpack_require__(59569),plain=__webpack_require__(96099);module.exports=function(fn){var options=normalizeOpts(arguments[1]),length;return options.normalizer||(length=options.length=resolveLength(options.length,fn.length,options.async),length!==0&&(options.primitive?length===!1?options.normalizer=__webpack_require__(72781):length>1&&(options.normalizer=__webpack_require__(1630)(length)):length===!1?options.normalizer=__webpack_require__(24417)():length===1?options.normalizer=__webpack_require__(9327)():options.normalizer=__webpack_require__(55453)(length))),options.async&&__webpack_require__(44809),options.promise&&__webpack_require__(10634),options.dispose&&__webpack_require__(81883),options.maxAge&&__webpack_require__(85619),options.max&&__webpack_require__(50459),options.refCounter&&__webpack_require__(35539),plain(fn,options)}},44681:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var customError=__webpack_require__(69703),defineLength=__webpack_require__(9581),d=__webpack_require__(18544),ee=__webpack_require__(53683).methods,resolveResolve=__webpack_require__(77333),resolveNormalize=__webpack_require__(85262),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperties=Object.defineProperties,on=ee.on,emit=ee.emit;module.exports=function(original,length,options){var cache=create(null),conf,memLength,get,set,del,clear,extDel,extGet,extHas,normalizer,getListeners,setListeners,deleteListeners,memoized,resolve;return length!==!1?memLength=length:isNaN(original.length)?memLength=1:memLength=original.length,options.normalizer&&(normalizer=resolveNormalize(options.normalizer),get=normalizer.get,set=normalizer.set,del=normalizer.delete,clear=normalizer.clear),options.resolvers!=null&&(resolve=resolveResolve(options.resolvers)),get?memoized=defineLength(function(arg){var id,result,args=arguments;if(resolve&&(args=resolve(args)),id=get(args),id!==null&&hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),id===null){if(id=get(args),id!==null)throw customError("Circular invocation","CIRCULAR_INVOCATION");id=set(args)}else if(hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},memLength):length===0?memoized=function(){var result;if(hasOwnProperty.call(cache,"data"))return getListeners&&conf.emit("get","data",arguments,this),cache.data;if(arguments.length?result=apply.call(original,this,arguments):result=call.call(original,this),hasOwnProperty.call(cache,"data"))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache.data=result,setListeners&&conf.emit("set","data",null,result),result}:memoized=function(arg){var result,args=arguments,id;if(resolve&&(args=resolve(arguments)),id=String(args[0]),hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},conf={original,memoized,profileName:options.profileName,get:function(args){return resolve&&(args=resolve(args)),get?get(args):String(args[0])},has:function(id){return hasOwnProperty.call(cache,id)},delete:function(id){var result;!hasOwnProperty.call(cache,id)||(del&&del(id),result=cache[id],delete cache[id],deleteListeners&&conf.emit("delete",id,result))},clear:function(){var oldCache=cache;clear&&clear(),cache=create(null),conf.emit("clear",oldCache)},on:function(type,listener){return type==="get"?getListeners=!0:type==="set"?setListeners=!0:type==="delete"&&(deleteListeners=!0),on.call(this,type,listener)},emit,updateEnv:function(){original=conf.original}},get?extDel=defineLength(function(arg){var id,args=arguments;resolve&&(args=resolve(args)),id=get(args),id!==null&&conf.delete(id)},memLength):length===0?extDel=function(){return conf.delete("data")}:extDel=function(arg){return resolve&&(arg=resolve(arguments)[0]),conf.delete(arg)},extGet=defineLength(function(){var id,args=arguments;return length===0?cache.data:(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),cache[id])}),extHas=defineLength(function(){var id,args=arguments;return length===0?conf.has("data"):(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),id===null?!1:conf.has(id))}),defineProperties(memoized,{__memoized__:d(!0),delete:d(extDel),clear:d(conf.clear),_get:d(extGet),_has:d(extHas)}),conf}},88972:()=>{"use strict"},59569:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(63976);module.exports=function(optsLength,fnLength,isAsync){var length;return isNaN(optsLength)?(length=fnLength,length>=0?isAsync&&length?length-1:length:1):optsLength===!1?!1:toPosInt(optsLength)}},85262:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(53447);module.exports=function(userNormalizer){var normalizer;return typeof userNormalizer=="function"?{set:userNormalizer,get:userNormalizer}:(normalizer={get:callable(userNormalizer.get)},userNormalizer.set!==void 0?(normalizer.set=callable(userNormalizer.set),userNormalizer.delete&&(normalizer.delete=callable(userNormalizer.delete)),userNormalizer.clear&&(normalizer.clear=callable(userNormalizer.clear)),normalizer):(normalizer.set=normalizer.get,normalizer))}},77333:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toArray=__webpack_require__(74555),isValue=__webpack_require__(55534),callable=__webpack_require__(53447),slice=Array.prototype.slice,resolveArgs;resolveArgs=function(args){return this.map(function(resolve,i){return resolve?resolve(args[i]):args[i]}).concat(slice.call(args,this.length))},module.exports=function(resolvers){return resolvers=toArray(resolvers),resolvers.forEach(function(resolve){isValue(resolve)&&callable(resolve)}),resolveArgs.bind(resolvers)}},9327:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(44457);module.exports=function(){var lastId=0,argsMap=[],cache=[];return{get:function(args){var index=indexOf.call(argsMap,args[0]);return index===-1?null:cache[index]},set:function(args){return argsMap.push(args[0]),cache.push(++lastId),lastId},delete:function(id){var index=indexOf.call(cache,id);index!==-1&&(argsMap.splice(index,1),cache.splice(index,1))},clear:function(){argsMap=[],cache=[]}}}},55453:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(44457),create=Object.create;module.exports=function(length){var lastId=0,map=[[],[]],cache=create(null);return{get:function(args){for(var index=0,set=map,i;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null},set:function(args){for(var index=0,set=map,i;index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;return i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId,cache[lastId]=args,lastId},delete:function(id){for(var index=0,set=map,i,path=[],args=cache[id];index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i!==-1){for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1);delete cache[id]}},clear:function(){map=[[],[]],cache=create(null)}}}},1630:module=>{"use strict";module.exports=function(length){return length?function(args){for(var id=String(args[0]),i=0,currentLength=length;--currentLength;)id+=""+args[++i];return id}:function(){return""}}},24417:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(44457),create=Object.create;module.exports=function(){var lastId=0,map=[],cache=create(null);return{get:function(args){var index=0,set=map,i,length=args.length;if(length===0)return set[length]||null;if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null}return null},set:function(args){var index=0,set=map,i,length=args.length;if(length===0)set[length]=++lastId;else{for(set[length]||(set[length]=[[],[]]),set=set[length];index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId}return cache[lastId]=args,lastId},delete:function(id){var index=0,set=map,i,args=cache[id],length=args.length,path=[];if(length===0)delete set[length];else if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i===-1)return;for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1)}delete cache[id]},clear:function(){map=[],cache=create(null)}}}},72781:module=>{"use strict";module.exports=function(args){var id,i,length=args.length;if(!length)return"";for(id=String(args[i=0]);--length;)id+=""+args[++i];return id}},96099:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(53447),forEach=__webpack_require__(78396),extensions=__webpack_require__(88972),configure=__webpack_require__(44681),resolveLength=__webpack_require__(59569);module.exports=function self2(fn){var options,length,conf;if(callable(fn),options=Object(arguments[1]),options.async&&options.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(fn,"__memoized__")&&!options.force?fn:(length=resolveLength(options.length,fn.length,options.async&&extensions.async),conf=configure(fn,length,options),forEach(extensions,function(extFn,name){options[name]&&extFn(options[name],conf,options)}),self2.__profiler__&&self2.__profiler__(conf),conf.updateEnv(),conf.memoized)}},92829:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={label:"element-highlighter_label__3aScV",frame:"element-highlighter_frame__1HGa2"}},16122:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={offset:"6",overlayBorder:"frame_overlayBorder__RctJK",hidden:"frame_hidden__zN_zd"}},66760:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={componentStrip:"component-strip_componentStrip__2GrXM",nameBlock:"component-strip_nameBlock__2NfMx",version:"component-strip_version___9LDF"}},95236:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={othersContainer:"label_othersContainer__EBAvX",othersTooltip:"label_othersTooltip__3d7qS",active:"label_active__qW1qG",hidden:"label_hidden__1cE5L"}},82006:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={highlighter:"highlighter-provider_highlighter__124yM",active:"highlighter-provider_active__oBUtA",label:"highlighter-provider_label__rMBbJ"}},58267:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),ensureCallable=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn},byObserver=function(Observer){var node=document.createTextNode(""),queue,currentQueue,i=0;return new Observer(function(){var callback;if(queue)currentQueue&&(queue=currentQueue.concat(queue));else{if(!currentQueue)return;queue=currentQueue}if(currentQueue=queue,queue=null,typeof currentQueue=="function"){callback=currentQueue,currentQueue=null,callback();return}for(node.data=i=++i%2;currentQueue;)callback=currentQueue.shift(),currentQueue.length||(currentQueue=null),callback()}).observe(node,{characterData:!0}),function(fn){if(ensureCallable(fn),queue){typeof queue=="function"?queue=[queue,fn]:queue.push(fn);return}queue=fn,node.data=i=++i%2}};module.exports=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(cb){queueMicrotask(ensureCallable(cb))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return byObserver(MutationObserver);if(typeof WebKitMutationObserver=="function")return byObserver(WebKitMutationObserver)}return typeof setImmediate=="function"?function(cb){setImmediate(ensureCallable(cb))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(cb){setTimeout(ensureCallable(cb),0)}:null}()},62005:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);function assertPath(path){if(typeof path!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(path))}function normalizeStringPosix(path,allowAboveRoot){for(var res="",lastSegmentLength=0,lastSlash=-1,dots=0,code,i=0;i<=path.length;++i){if(i<path.length)code=path.charCodeAt(i);else{if(code===47)break;code=47}if(code===47){if(!(lastSlash===i-1||dots===1))if(lastSlash!==i-1&&dots===2){if(res.length<2||lastSegmentLength!==2||res.charCodeAt(res.length-1)!==46||res.charCodeAt(res.length-2)!==46){if(res.length>2){var lastSlashIndex=res.lastIndexOf("/");if(lastSlashIndex!==res.length-1){lastSlashIndex===-1?(res="",lastSegmentLength=0):(res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf("/")),lastSlash=i,dots=0;continue}}else if(res.length===2||res.length===1){res="",lastSegmentLength=0,lastSlash=i,dots=0;continue}}allowAboveRoot&&(res.length>0?res+="/..":res="..",lastSegmentLength=2)}else res.length>0?res+="/"+path.slice(lastSlash+1,i):res=path.slice(lastSlash+1,i),lastSegmentLength=i-lastSlash-1;lastSlash=i,dots=0}else code===46&&dots!==-1?++dots:dots=-1}return res}function _format(sep,pathObject){var dir=pathObject.dir||pathObject.root,base=pathObject.base||(pathObject.name||"")+(pathObject.ext||"");return dir?dir===pathObject.root?dir+base:dir+sep+base:base}var posix={resolve:function(){for(var resolvedPath="",resolvedAbsolute=!1,cwd,i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path;i>=0?path=arguments[i]:(cwd===void 0&&(cwd=process.cwd()),path=cwd),assertPath(path),path.length!==0&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute=path.charCodeAt(0)===47)}return resolvedPath=normalizeStringPosix(resolvedPath,!resolvedAbsolute),resolvedAbsolute?resolvedPath.length>0?"/"+resolvedPath:"/":resolvedPath.length>0?resolvedPath:"."},normalize:function(path){if(assertPath(path),path.length===0)return".";var isAbsolute=path.charCodeAt(0)===47,trailingSeparator=path.charCodeAt(path.length-1)===47;return path=normalizeStringPosix(path,!isAbsolute),path.length===0&&!isAbsolute&&(path="."),path.length>0&&trailingSeparator&&(path+="/"),isAbsolute?"/"+path:path},isAbsolute:function(path){return assertPath(path),path.length>0&&path.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var joined,i=0;i<arguments.length;++i){var arg=arguments[i];assertPath(arg),arg.length>0&&(joined===void 0?joined=arg:joined+="/"+arg)}return joined===void 0?".":posix.normalize(joined)},relative:function(from,to){if(assertPath(from),assertPath(to),from===to||(from=posix.resolve(from),to=posix.resolve(to),from===to))return"";for(var fromStart=1;fromStart<from.length&&from.charCodeAt(fromStart)===47;++fromStart);for(var fromEnd=from.length,fromLen=fromEnd-fromStart,toStart=1;toStart<to.length&&to.charCodeAt(toStart)===47;++toStart);for(var toEnd=to.length,toLen=toEnd-toStart,length=fromLen<toLen?fromLen:toLen,lastCommonSep=-1,i=0;i<=length;++i){if(i===length){if(toLen>length){if(to.charCodeAt(toStart+i)===47)return to.slice(toStart+i+1);if(i===0)return to.slice(toStart+i)}else fromLen>length&&(from.charCodeAt(fromStart+i)===47?lastCommonSep=i:i===0&&(lastCommonSep=0));break}var fromCode=from.charCodeAt(fromStart+i),toCode=to.charCodeAt(toStart+i);if(fromCode!==toCode)break;fromCode===47&&(lastCommonSep=i)}var out="";for(i=fromStart+lastCommonSep+1;i<=fromEnd;++i)(i===fromEnd||from.charCodeAt(i)===47)&&(out.length===0?out+="..":out+="/..");return out.length>0?out+to.slice(toStart+lastCommonSep):(toStart+=lastCommonSep,to.charCodeAt(toStart)===47&&++toStart,to.slice(toStart))},_makeLong:function(path){return path},dirname:function(path){if(assertPath(path),path.length===0)return".";for(var code=path.charCodeAt(0),hasRoot=code===47,end=-1,matchedSlash=!0,i=path.length-1;i>=1;--i)if(code=path.charCodeAt(i),code===47){if(!matchedSlash){end=i;break}}else matchedSlash=!1;return end===-1?hasRoot?"/":".":hasRoot&&end===1?"//":path.slice(0,end)},basename:function(path,ext){if(ext!==void 0&&typeof ext!="string")throw new TypeError('"ext" argument must be a string');assertPath(path);var start=0,end=-1,matchedSlash=!0,i;if(ext!==void 0&&ext.length>0&&ext.length<=path.length){if(ext.length===path.length&&ext===path)return"";var extIdx=ext.length-1,firstNonSlashEnd=-1;for(i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){start=i+1;break}}else firstNonSlashEnd===-1&&(matchedSlash=!1,firstNonSlashEnd=i+1),extIdx>=0&&(code===ext.charCodeAt(extIdx)?--extIdx===-1&&(end=i):(extIdx=-1,end=firstNonSlashEnd))}return start===end?end=firstNonSlashEnd:end===-1&&(end=path.length),path.slice(start,end)}else{for(i=path.length-1;i>=0;--i)if(path.charCodeAt(i)===47){if(!matchedSlash){start=i+1;break}}else end===-1&&(matchedSlash=!1,end=i+1);return end===-1?"":path.slice(start,end)}},extname:function(path){assertPath(path);for(var startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){startPart=i+1;break}continue}end===-1&&(matchedSlash=!1,end=i+1),code===46?startDot===-1?startDot=i:preDotState!==1&&(preDotState=1):startDot!==-1&&(preDotState=-1)}return startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1?"":path.slice(startDot,end)},format:function(pathObject){if(pathObject===null||typeof pathObject!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof pathObject);return _format("/",pathObject)},parse:function(path){assertPath(path);var ret={root:"",dir:"",base:"",ext:"",name:""};if(path.length===0)return ret;var code=path.charCodeAt(0),isAbsolute=code===47,start;isAbsolute?(ret.root="/",start=1):start=0;for(var startDot=-1,startPart=0,end=-1,matchedSlash=!0,i=path.length-1,preDotState=0;i>=start;--i){if(code=path.charCodeAt(i),code===47){if(!matchedSlash){startPart=i+1;break}continue}end===-1&&(matchedSlash=!1,end=i+1),code===46?startDot===-1?startDot=i:preDotState!==1&&(preDotState=1):startDot!==-1&&(preDotState=-1)}return startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1?end!==-1&&(startPart===0&&isAbsolute?ret.base=ret.name=path.slice(1,end):ret.base=ret.name=path.slice(startPart,end)):(startPart===0&&isAbsolute?(ret.name=path.slice(1,startDot),ret.base=path.slice(1,end)):(ret.name=path.slice(startPart,startDot),ret.base=path.slice(startPart,end)),ret.ext=path.slice(startDot,end)),startPart>0?ret.dir=path.slice(0,startPart-1):isAbsolute&&(ret.dir="/"),ret},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix,module.exports=posix},63805:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ErrorCode:()=>ErrorCode,connectToChild:()=>connectToChild,connectToParent:()=>connectToParent});var MessageType;(function(MessageType2){MessageType2.Call="call",MessageType2.Reply="reply",MessageType2.Syn="syn",MessageType2.SynAck="synAck",MessageType2.Ack="ack"})(MessageType||(MessageType={}));var Resolution;(function(Resolution2){Resolution2.Fulfilled="fulfilled",Resolution2.Rejected="rejected"})(Resolution||(Resolution={}));var ErrorCode;(function(ErrorCode2){ErrorCode2.ConnectionDestroyed="ConnectionDestroyed",ErrorCode2.ConnectionTimeout="ConnectionTimeout",ErrorCode2.NoIframeSrc="NoIframeSrc"})(ErrorCode||(ErrorCode={}));var NativeErrorName;(function(NativeErrorName2){NativeErrorName2.DataCloneError="DataCloneError"})(NativeErrorName||(NativeErrorName={}));var NativeEventType;(function(NativeEventType2){NativeEventType2.Message="message"})(NativeEventType||(NativeEventType={}));const createDestructor=(localName,log)=>{const callbacks=[];let destroyed=!1;return{destroy(error){destroyed||(destroyed=!0,log(`${localName}: Destroying connection`),callbacks.forEach(callback=>{callback(error)}))},onDestroy(callback){destroyed?callback():callbacks.push(callback)}}},createLogger=debug=>(...args)=>{debug&&console.log("[Penpal]",...args)},DEFAULT_PORT_BY_PROTOCOL={"http:":"80","https:":"443"},URL_REGEX=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,opaqueOriginSchemes=["file:","data:"],getOriginFromSrc=src=>{if(src&&opaqueOriginSchemes.find(scheme=>src.startsWith(scheme)))return"null";const location=document.location,regexResult=URL_REGEX.exec(src);let protocol,hostname,port;regexResult?(protocol=regexResult[1]?regexResult[1]:location.protocol,hostname=regexResult[2],port=regexResult[4]):(protocol=location.protocol,hostname=location.hostname,port=location.port);const portSuffix=port&&port!==DEFAULT_PORT_BY_PROTOCOL[protocol]?`:${port}`:"";return`${protocol}//${hostname}${portSuffix}`},serializeError=({name,message,stack})=>({name,message,stack}),deserializeError=obj=>{const deserializedError=new Error;return Object.keys(obj).forEach(key=>deserializedError[key]=obj[key]),deserializedError},connectCallReceiver=(info,serializedMethods,log)=>{const{localName,local,remote,originForSending,originForReceiving}=info;let destroyed=!1;const handleMessageEvent=event=>{if(event.source!==remote||event.data.penpal!==MessageType.Call)return;if(originForReceiving!=="*"&&event.origin!==originForReceiving){log(`${localName} received message from origin ${event.origin} which did not match expected origin ${originForReceiving}`);return}const callMessage=event.data,{methodName,args,id:id2}=callMessage;log(`${localName}: Received ${methodName}() call`);const createPromiseHandler=resolution=>returnValue=>{if(log(`${localName}: Sending ${methodName}() reply`),destroyed){log(`${localName}: Unable to send ${methodName}() reply due to destroyed connection`);return}const message={penpal:MessageType.Reply,id:id2,resolution,returnValue};resolution===Resolution.Rejected&&returnValue instanceof Error&&(message.returnValue=serializeError(returnValue),message.returnValueIsError=!0);try{remote.postMessage(message,originForSending)}catch(err){if(err.name===NativeErrorName.DataCloneError){const errorReplyMessage={penpal:MessageType.Reply,id:id2,resolution:Resolution.Rejected,returnValue:serializeError(err),returnValueIsError:!0};remote.postMessage(errorReplyMessage,originForSending)}throw err}};new Promise(resolve=>resolve(serializedMethods[methodName].apply(serializedMethods,args))).then(createPromiseHandler(Resolution.Fulfilled),createPromiseHandler(Resolution.Rejected))};return local.addEventListener(NativeEventType.Message,handleMessageEvent),()=>{destroyed=!0,local.removeEventListener(NativeEventType.Message,handleMessageEvent)}};let id=0;const generateId=()=>++id,KEY_PATH_DELIMITER=".",keyPathToSegments=keyPath=>keyPath?keyPath.split(KEY_PATH_DELIMITER):[],segmentsToKeyPath=segments=>segments.join(KEY_PATH_DELIMITER),createKeyPath=(key,prefix)=>{const segments=keyPathToSegments(prefix||"");return segments.push(key),segmentsToKeyPath(segments)},setAtKeyPath=(subject,keyPath,value2)=>{const segments=keyPathToSegments(keyPath);return segments.reduce((prevSubject,key,idx)=>(typeof prevSubject[key]>"u"&&(prevSubject[key]={}),idx===segments.length-1&&(prevSubject[key]=value2),prevSubject[key]),subject),subject},serializeMethods=(methods,prefix)=>{const flattenedMethods={};return Object.keys(methods).forEach(key=>{const value2=methods[key],keyPath=createKeyPath(key,prefix);typeof value2=="object"&&Object.assign(flattenedMethods,serializeMethods(value2,keyPath)),typeof value2=="function"&&(flattenedMethods[keyPath]=value2)}),flattenedMethods},deserializeMethods=flattenedMethods=>{const methods={};for(const keyPath in flattenedMethods)setAtKeyPath(methods,keyPath,flattenedMethods[keyPath]);return methods},connectCallSender=(callSender,info,methodKeyPaths,destroyConnection,log)=>{const{localName,local,remote,originForSending,originForReceiving}=info;let destroyed=!1;log(`${localName}: Connecting call sender`);const createMethodProxy=methodName=>(...args)=>{log(`${localName}: Sending ${methodName}() call`);let iframeRemoved;try{remote.closed&&(iframeRemoved=!0)}catch{iframeRemoved=!0}if(iframeRemoved&&destroyConnection(),destroyed){const error=new Error(`Unable to send ${methodName}() call due to destroyed connection`);throw error.code=ErrorCode.ConnectionDestroyed,error}return new Promise((resolve,reject)=>{const id2=generateId(),handleMessageEvent=event=>{if(event.source!==remote||event.data.penpal!==MessageType.Reply||event.data.id!==id2)return;if(originForReceiving!=="*"&&event.origin!==originForReceiving){log(`${localName} received message from origin ${event.origin} which did not match expected origin ${originForReceiving}`);return}const replyMessage=event.data;log(`${localName}: Received ${methodName}() reply`),local.removeEventListener(NativeEventType.Message,handleMessageEvent);let returnValue=replyMessage.returnValue;replyMessage.returnValueIsError&&(returnValue=deserializeError(returnValue)),(replyMessage.resolution===Resolution.Fulfilled?resolve:reject)(returnValue)};local.addEventListener(NativeEventType.Message,handleMessageEvent);const callMessage={penpal:MessageType.Call,id:id2,methodName,args};remote.postMessage(callMessage,originForSending)})},flattenedMethods=methodKeyPaths.reduce((api,name)=>(api[name]=createMethodProxy(name),api),{});return Object.assign(callSender,deserializeMethods(flattenedMethods)),()=>{destroyed=!0}},handleAckMessageFactory=(serializedMethods,childOrigin,originForSending,destructor,log)=>{const{destroy,onDestroy}=destructor;let destroyCallReceiver,receiverMethodNames;const callSender={};return event=>{if(childOrigin!=="*"&&event.origin!==childOrigin){log(`Parent: Handshake - Received ACK message from origin ${event.origin} which did not match expected origin ${childOrigin}`);return}log("Parent: Handshake - Received ACK");const info={localName:"Parent",local:window,remote:event.source,originForSending,originForReceiving:childOrigin};destroyCallReceiver&&destroyCallReceiver(),destroyCallReceiver=connectCallReceiver(info,serializedMethods,log),onDestroy(destroyCallReceiver),receiverMethodNames&&receiverMethodNames.forEach(receiverMethodName=>{delete callSender[receiverMethodName]}),receiverMethodNames=event.data.methodNames;const destroyCallSender=connectCallSender(callSender,info,receiverMethodNames,destroy,log);return onDestroy(destroyCallSender),callSender}},handleSynMessageFactory=(log,serializedMethods,childOrigin,originForSending)=>event=>{if(!event.source)return;if(childOrigin!=="*"&&event.origin!==childOrigin){log(`Parent: Handshake - Received SYN message from origin ${event.origin} which did not match expected origin ${childOrigin}`);return}log("Parent: Handshake - Received SYN, responding with SYN-ACK");const synAckMessage={penpal:MessageType.SynAck,methodNames:Object.keys(serializedMethods)};event.source.postMessage(synAckMessage,originForSending)},CHECK_IFRAME_IN_DOC_INTERVAL=6e4,monitorIframeRemoval=(iframe,destructor)=>{const{destroy,onDestroy}=destructor,checkIframeInDocIntervalId=setInterval(()=>{iframe.isConnected||(clearInterval(checkIframeInDocIntervalId),destroy())},CHECK_IFRAME_IN_DOC_INTERVAL);onDestroy(()=>{clearInterval(checkIframeInDocIntervalId)})},startConnectionTimeout=(timeout,callback)=>{let timeoutId;return timeout!==void 0&&(timeoutId=window.setTimeout(()=>{const error=new Error(`Connection timed out after ${timeout}ms`);error.code=ErrorCode.ConnectionTimeout,callback(error)},timeout)),()=>{clearTimeout(timeoutId)}},validateIframeHasSrcOrSrcDoc=iframe=>{if(!iframe.src&&!iframe.srcdoc){const error=new Error("Iframe must have src or srcdoc property defined.");throw error.code=ErrorCode.NoIframeSrc,error}},connectToChild=options=>{let{iframe,methods={},childOrigin,timeout,debug=!1}=options;const log=createLogger(debug),destructor=createDestructor("Parent",log),{onDestroy,destroy}=destructor;childOrigin||(validateIframeHasSrcOrSrcDoc(iframe),childOrigin=getOriginFromSrc(iframe.src));const originForSending=childOrigin==="null"?"*":childOrigin,serializedMethods=serializeMethods(methods),handleSynMessage=handleSynMessageFactory(log,serializedMethods,childOrigin,originForSending),handleAckMessage=handleAckMessageFactory(serializedMethods,childOrigin,originForSending,destructor,log);return{promise:new Promise((resolve,reject)=>{const stopConnectionTimeout=startConnectionTimeout(timeout,destroy),handleMessage=event=>{if(!(event.source!==iframe.contentWindow||!event.data)){if(event.data.penpal===MessageType.Syn){handleSynMessage(event);return}if(event.data.penpal===MessageType.Ack){const callSender=handleAckMessage(event);callSender&&(stopConnectionTimeout(),resolve(callSender));return}}};window.addEventListener(NativeEventType.Message,handleMessage),log("Parent: Awaiting handshake"),monitorIframeRemoval(iframe,destructor),onDestroy(error=>{window.removeEventListener(NativeEventType.Message,handleMessage),error&&reject(error)})}),destroy(){destroy()}}},handleSynAckMessageFactory=(parentOrigin,serializedMethods,destructor,log)=>{const{destroy,onDestroy}=destructor;return event=>{if(!(parentOrigin instanceof RegExp?parentOrigin.test(event.origin):parentOrigin==="*"||parentOrigin===event.origin)){log(`Child: Handshake - Received SYN-ACK from origin ${event.origin} which did not match expected origin ${parentOrigin}`);return}log("Child: Handshake - Received SYN-ACK, responding with ACK");const originForSending=event.origin==="null"?"*":event.origin,ackMessage={penpal:MessageType.Ack,methodNames:Object.keys(serializedMethods)};window.parent.postMessage(ackMessage,originForSending);const info={localName:"Child",local:window,remote:window.parent,originForSending,originForReceiving:event.origin},destroyCallReceiver=connectCallReceiver(info,serializedMethods,log);onDestroy(destroyCallReceiver);const callSender={},destroyCallSender=connectCallSender(callSender,info,event.data.methodNames,destroy,log);return onDestroy(destroyCallSender),callSender}},areGlobalsAccessible=()=>{try{clearTimeout()}catch{return!1}return!0},connectToParent=(options={})=>{const{parentOrigin="*",methods={},timeout,debug=!1}=options,log=createLogger(debug),destructor=createDestructor("Child",log),{destroy,onDestroy}=destructor,serializedMethods=serializeMethods(methods),handleSynAckMessage=handleSynAckMessageFactory(parentOrigin,serializedMethods,destructor,log),sendSynMessage=()=>{log("Child: Handshake - Sending SYN");const synMessage={penpal:MessageType.Syn},parentOriginForSyn=parentOrigin instanceof RegExp?"*":parentOrigin;window.parent.postMessage(synMessage,parentOriginForSyn)};return{promise:new Promise((resolve,reject)=>{const stopConnectionTimeout=startConnectionTimeout(timeout,destroy),handleMessage=event=>{if(!!areGlobalsAccessible()&&!(event.source!==parent||!event.data)&&event.data.penpal===MessageType.SynAck){const callSender=handleSynAckMessage(event);callSender&&(window.removeEventListener(NativeEventType.Message,handleMessage),stopConnectionTimeout(),resolve(callSender))}};window.addEventListener(NativeEventType.Message,handleMessage),sendSynMessage(),onDestroy(error=>{window.removeEventListener(NativeEventType.Message,handleMessage),error&&reject(error)})}),destroy(){destroy()}}}},14224:module=>{var process=module.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(fun,array){this.fun=fun,this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={};function noop(){}process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},42546:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";const strictUriEncode=__webpack_require__(45632),decodeComponent=__webpack_require__(54525),splitOnFirst=__webpack_require__(34214),filterObject=__webpack_require__(1469),isNullOrUndefined=value2=>value2==null;function encoderForArrayFormat(options){switch(options.arrayFormat){case"index":return key=>(result,value2)=>{const index=result.length;return value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:value2===null?[...result,[encode(key,options),"[",index,"]"].join("")]:[...result,[encode(key,options),"[",encode(index,options),"]=",encode(value2,options)].join("")]};case"bracket":return key=>(result,value2)=>value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:value2===null?[...result,[encode(key,options),"[]"].join("")]:[...result,[encode(key,options),"[]=",encode(value2,options)].join("")];case"comma":case"separator":case"bracket-separator":{const keyValueSep=options.arrayFormat==="bracket-separator"?"[]=":"=";return key=>(result,value2)=>value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:(value2=value2===null?"":value2,result.length===0?[[encode(key,options),keyValueSep,encode(value2,options)].join("")]:[[result,encode(value2,options)].join(options.arrayFormatSeparator)])}default:return key=>(result,value2)=>value2===void 0||options.skipNull&&value2===null||options.skipEmptyString&&value2===""?result:value2===null?[...result,encode(key,options)]:[...result,[encode(key,options),"=",encode(value2,options)].join("")]}}function parserForArrayFormat(options){let result;switch(options.arrayFormat){case"index":return(key,value2,accumulator)=>{if(result=/\[(\d*)\]$/.exec(key),key=key.replace(/\[\d*\]$/,""),!result){accumulator[key]=value2;return}accumulator[key]===void 0&&(accumulator[key]={}),accumulator[key][result[1]]=value2};case"bracket":return(key,value2,accumulator)=>{if(result=/(\[\])$/.exec(key),key=key.replace(/\[\]$/,""),!result){accumulator[key]=value2;return}if(accumulator[key]===void 0){accumulator[key]=[value2];return}accumulator[key]=[].concat(accumulator[key],value2)};case"comma":case"separator":return(key,value2,accumulator)=>{const isArray=typeof value2=="string"&&value2.includes(options.arrayFormatSeparator),isEncodedArray=typeof value2=="string"&&!isArray&&decode(value2,options).includes(options.arrayFormatSeparator);value2=isEncodedArray?decode(value2,options):value2;const newValue=isArray||isEncodedArray?value2.split(options.arrayFormatSeparator).map(item=>decode(item,options)):value2===null?value2:decode(value2,options);accumulator[key]=newValue};case"bracket-separator":return(key,value2,accumulator)=>{const isArray=/(\[\])$/.test(key);if(key=key.replace(/\[\]$/,""),!isArray){accumulator[key]=value2&&decode(value2,options);return}const arrayValue=value2===null?[]:value2.split(options.arrayFormatSeparator).map(item=>decode(item,options));if(accumulator[key]===void 0){accumulator[key]=arrayValue;return}accumulator[key]=[].concat(accumulator[key],arrayValue)};default:return(key,value2,accumulator)=>{if(accumulator[key]===void 0){accumulator[key]=value2;return}accumulator[key]=[].concat(accumulator[key],value2)}}}function validateArrayFormatSeparator(value2){if(typeof value2!="string"||value2.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(value2,options){return options.encode?options.strict?strictUriEncode(value2):encodeURIComponent(value2):value2}function decode(value2,options){return options.decode?decodeComponent(value2):value2}function keysSorter(input){return Array.isArray(input)?input.sort():typeof input=="object"?keysSorter(Object.keys(input)).sort((a,b)=>Number(a)-Number(b)).map(key=>input[key]):input}function removeHash(input){const hashStart=input.indexOf("#");return hashStart!==-1&&(input=input.slice(0,hashStart)),input}function getHash(url){let hash="";const hashStart=url.indexOf("#");return hashStart!==-1&&(hash=url.slice(hashStart)),hash}function extract(input){input=removeHash(input);const queryStart=input.indexOf("?");return queryStart===-1?"":input.slice(queryStart+1)}function parseValue(value2,options){return options.parseNumbers&&!Number.isNaN(Number(value2))&&typeof value2=="string"&&value2.trim()!==""?value2=Number(value2):options.parseBooleans&&value2!==null&&(value2.toLowerCase()==="true"||value2.toLowerCase()==="false")&&(value2=value2.toLowerCase()==="true"),value2}function parse(query,options){options=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},options),validateArrayFormatSeparator(options.arrayFormatSeparator);const formatter=parserForArrayFormat(options),ret=Object.create(null);if(typeof query!="string"||(query=query.trim().replace(/^[?#&]/,""),!query))return ret;for(const param of query.split("&")){if(param==="")continue;let[key,value2]=splitOnFirst(options.decode?param.replace(/\+/g," "):param,"=");value2=value2===void 0?null:["comma","separator","bracket-separator"].includes(options.arrayFormat)?value2:decode(value2,options),formatter(decode(key,options),value2,ret)}for(const key of Object.keys(ret)){const value2=ret[key];if(typeof value2=="object"&&value2!==null)for(const k of Object.keys(value2))value2[k]=parseValue(value2[k],options);else ret[key]=parseValue(value2,options)}return options.sort===!1?ret:(options.sort===!0?Object.keys(ret).sort():Object.keys(ret).sort(options.sort)).reduce((result,key)=>{const value2=ret[key];return Boolean(value2)&&typeof value2=="object"&&!Array.isArray(value2)?result[key]=keysSorter(value2):result[key]=value2,result},Object.create(null))}exports.extract=extract,exports.parse=parse,exports.stringify=(object,options)=>{if(!object)return"";options=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},options),validateArrayFormatSeparator(options.arrayFormatSeparator);const shouldFilter=key=>options.skipNull&&isNullOrUndefined(object[key])||options.skipEmptyString&&object[key]==="",formatter=encoderForArrayFormat(options),objectCopy={};for(const key of Object.keys(object))shouldFilter(key)||(objectCopy[key]=object[key]);const keys=Object.keys(objectCopy);return options.sort!==!1&&keys.sort(options.sort),keys.map(key=>{const value2=object[key];return value2===void 0?"":value2===null?encode(key,options):Array.isArray(value2)?value2.length===0&&options.arrayFormat==="bracket-separator"?encode(key,options)+"[]":value2.reduce(formatter(key),[]).join("&"):encode(key,options)+"="+encode(value2,options)}).filter(x=>x.length>0).join("&")},exports.parseUrl=(url,options)=>{options=Object.assign({decode:!0},options);const[url_,hash]=splitOnFirst(url,"#");return Object.assign({url:url_.split("?")[0]||"",query:parse(extract(url),options)},options&&options.parseFragmentIdentifier&&hash?{fragmentIdentifier:decode(hash,options)}:{})},exports.stringifyUrl=(object,options)=>{options=Object.assign({encode:!0,strict:!0},options);const url=removeHash(object.url).split("?")[0]||"",queryFromUrl=exports.extract(object.url),parsedQueryFromUrl=exports.parse(queryFromUrl,{sort:!1}),query=Object.assign(parsedQueryFromUrl,object.query);let queryString=exports.stringify(query,options);queryString&&(queryString=`?${queryString}`);let hash=getHash(object.url);return object.fragmentIdentifier&&(hash=`#${encode(object.fragmentIdentifier,options)}`),`${url}${queryString}${hash}`},exports.pick=(input,filter,options)=>{options=Object.assign({parseFragmentIdentifier:!0},options);const{url,query,fragmentIdentifier}=exports.parseUrl(input,options);return exports.stringifyUrl({url,query:filterObject(query,filter),fragmentIdentifier},options)},exports.exclude=(input,filter,options)=>{const exclusionFilter=Array.isArray(filter)?key=>!filter.includes(key):(key,value2)=>!filter(key,value2);return exports.pick(input,exclusionFilter,options)}},96485:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);/*! *****************************************************************************
|
65
65
|
Copyright (C) Microsoft. All rights reserved.
|
66
66
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
67
67
|
this file except in compliance with the License. You may obtain a copy of the
|
@@ -74,12 +74,12 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
74
74
|
|
75
75
|
See the Apache Version 2.0 License for specific language governing permissions
|
76
76
|
and limitations under the License.
|
77
|
-
***************************************************************************** */var Reflect2;(function(Reflect3){(function(factory){var root=typeof __webpack_require__.g=="object"?__webpack_require__.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),exporter=makeExporter(Reflect3);typeof root.Reflect>"u"?root.Reflect=Reflect3:exporter=makeExporter(root.Reflect,exporter),factory(exporter);function makeExporter(target,previous){return function(key,value2){typeof target[key]!="function"&&Object.defineProperty(target,key,{configurable:!0,writable:!0,value:value2}),previous&&previous(key,value2)}}})(function(exporter){var hasOwn=Object.prototype.hasOwnProperty,supportsSymbol=typeof Symbol=="function",toPrimitiveSymbol=supportsSymbol&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",iteratorSymbol=supportsSymbol&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",supportsCreate=typeof Object.create=="function",supportsProto={__proto__:[]}instanceof Array,downLevel=!supportsCreate&&!supportsProto,HashMap={create:supportsCreate?function(){return MakeDictionary(Object.create(null))}:supportsProto?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:downLevel?function(map,key){return hasOwn.call(map,key)}:function(map,key){return key in map},get:downLevel?function(map,key){return hasOwn.call(map,key)?map[key]:void 0}:function(map,key){return map[key]}},functionPrototype=Object.getPrototypeOf(Function),usePolyfill=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",_Map=!usePolyfill&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:CreateMapPolyfill(),_Set=!usePolyfill&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:CreateSetPolyfill(),_WeakMap=!usePolyfill&&typeof WeakMap=="function"?WeakMap:CreateWeakMapPolyfill(),Metadata=new _WeakMap;function decorate(decorators,target,propertyKey,attributes){if(IsUndefined(propertyKey)){if(!IsArray(decorators))throw new TypeError;if(!IsConstructor(target))throw new TypeError;return DecorateConstructor(decorators,target)}else{if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;if(!IsObject(attributes)&&!IsUndefined(attributes)&&!IsNull(attributes))throw new TypeError;return IsNull(attributes)&&(attributes=void 0),propertyKey=ToPropertyKey(propertyKey),DecorateProperty(decorators,target,propertyKey,attributes)}}exporter("decorate",decorate);function metadata(metadataKey,metadataValue){function decorator(target,propertyKey){if(!IsObject(target))throw new TypeError;if(!IsUndefined(propertyKey)&&!IsPropertyKey(propertyKey))throw new TypeError;OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}return decorator}exporter("metadata",metadata);function defineMetadata(metadataKey,metadataValue,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}exporter("defineMetadata",defineMetadata);function hasMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasMetadata(metadataKey,target,propertyKey)}exporter("hasMetadata",hasMetadata);function hasOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasOwnMetadata(metadataKey,target,propertyKey)}exporter("hasOwnMetadata",hasOwnMetadata);function getMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetMetadata(metadataKey,target,propertyKey)}exporter("getMetadata",getMetadata);function getOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetOwnMetadata(metadataKey,target,propertyKey)}exporter("getOwnMetadata",getOwnMetadata);function getMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryMetadataKeys(target,propertyKey)}exporter("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryOwnMetadataKeys(target,propertyKey)}exporter("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey));var metadataMap=GetOrCreateMetadataMap(target,propertyKey,!1);if(IsUndefined(metadataMap)||!metadataMap.delete(metadataKey))return!1;if(metadataMap.size>0)return!0;var targetMetadata=Metadata.get(target);return targetMetadata.delete(propertyKey),targetMetadata.size>0||Metadata.delete(target),!0}exporter("deleteMetadata",deleteMetadata);function DecorateConstructor(decorators,target){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsConstructor(decorated))throw new TypeError;target=decorated}}return target}function DecorateProperty(decorators,target,propertyKey,descriptor){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target,propertyKey,descriptor);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsObject(decorated))throw new TypeError;descriptor=decorated}}return descriptor}function GetOrCreateMetadataMap(O,P,Create){var targetMetadata=Metadata.get(O);if(IsUndefined(targetMetadata)){if(!Create)return;targetMetadata=new _Map,Metadata.set(O,targetMetadata)}var metadataMap=targetMetadata.get(P);if(IsUndefined(metadataMap)){if(!Create)return;metadataMap=new _Map,targetMetadata.set(P,metadataMap)}return metadataMap}function OrdinaryHasMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return!0;var parent2=OrdinaryGetPrototypeOf(O);return IsNull(parent2)?!1:OrdinaryHasMetadata(MetadataKey,parent2,P)}function OrdinaryHasOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);return IsUndefined(metadataMap)?!1:ToBoolean(metadataMap.has(MetadataKey))}function OrdinaryGetMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return OrdinaryGetOwnMetadata(MetadataKey,O,P);var parent2=OrdinaryGetPrototypeOf(O);if(!IsNull(parent2))return OrdinaryGetMetadata(MetadataKey,parent2,P)}function OrdinaryGetOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);if(!IsUndefined(metadataMap))return metadataMap.get(MetadataKey)}function OrdinaryDefineOwnMetadata(MetadataKey,MetadataValue,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!0);metadataMap.set(MetadataKey,MetadataValue)}function OrdinaryMetadataKeys(O,P){var ownKeys=OrdinaryOwnMetadataKeys(O,P),parent2=OrdinaryGetPrototypeOf(O);if(parent2===null)return ownKeys;var parentKeys=OrdinaryMetadataKeys(parent2,P);if(parentKeys.length<=0)return ownKeys;if(ownKeys.length<=0)return parentKeys;for(var set=new _Set,keys=[],_i=0,ownKeys_1=ownKeys;_i<ownKeys_1.length;_i++){var key=ownKeys_1[_i],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}for(var _a=0,parentKeys_1=parentKeys;_a<parentKeys_1.length;_a++){var key=parentKeys_1[_a],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}return keys}function OrdinaryOwnMetadataKeys(O,P){var keys=[],metadataMap=GetOrCreateMetadataMap(O,P,!1);if(IsUndefined(metadataMap))return keys;for(var keysObj=metadataMap.keys(),iterator=GetIterator(keysObj),k=0;;){var next=IteratorStep(iterator);if(!next)return keys.length=k,keys;var nextValue=IteratorValue(next);try{keys[k]=nextValue}catch(e){try{IteratorClose(iterator)}finally{throw e}}k++}}function Type(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function IsUndefined(x){return x===void 0}function IsNull(x){return x===null}function IsSymbol(x){return typeof x=="symbol"}function IsObject(x){return typeof x=="object"?x!==null:typeof x=="function"}function ToPrimitive(input,PreferredType){switch(Type(input)){case 0:return input;case 1:return input;case 2:return input;case 3:return input;case 4:return input;case 5:return input}var hint=PreferredType===3?"string":PreferredType===5?"number":"default",exoticToPrim=GetMethod(input,toPrimitiveSymbol);if(exoticToPrim!==void 0){var result=exoticToPrim.call(input,hint);if(IsObject(result))throw new TypeError;return result}return OrdinaryToPrimitive(input,hint==="default"?"number":hint)}function OrdinaryToPrimitive(O,hint){if(hint==="string"){var toString_1=O.toString;if(IsCallable(toString_1)){var result=toString_1.call(O);if(!IsObject(result))return result}var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}}else{var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}var toString_2=O.toString;if(IsCallable(toString_2)){var result=toString_2.call(O);if(!IsObject(result))return result}}throw new TypeError}function ToBoolean(argument){return!!argument}function ToString(argument){return""+argument}function ToPropertyKey(argument){var key=ToPrimitive(argument,3);return IsSymbol(key)?key:ToString(key)}function IsArray(argument){return Array.isArray?Array.isArray(argument):argument instanceof Object?argument instanceof Array:Object.prototype.toString.call(argument)==="[object Array]"}function IsCallable(argument){return typeof argument=="function"}function IsConstructor(argument){return typeof argument=="function"}function IsPropertyKey(argument){switch(Type(argument)){case 3:return!0;case 4:return!0;default:return!1}}function GetMethod(V,P){var func=V[P];if(func!=null){if(!IsCallable(func))throw new TypeError;return func}}function GetIterator(obj){var method=GetMethod(obj,iteratorSymbol);if(!IsCallable(method))throw new TypeError;var iterator=method.call(obj);if(!IsObject(iterator))throw new TypeError;return iterator}function IteratorValue(iterResult){return iterResult.value}function IteratorStep(iterator){var result=iterator.next();return result.done?!1:result}function IteratorClose(iterator){var f=iterator.return;f&&f.call(iterator)}function OrdinaryGetPrototypeOf(O){var proto=Object.getPrototypeOf(O);if(typeof O!="function"||O===functionPrototype||proto!==functionPrototype)return proto;var prototype=O.prototype,prototypeProto=prototype&&Object.getPrototypeOf(prototype);if(prototypeProto==null||prototypeProto===Object.prototype)return proto;var constructor=prototypeProto.constructor;return typeof constructor!="function"||constructor===O?proto:constructor}function CreateMapPolyfill(){var cacheSentinel={},arraySentinel=[],MapIterator=function(){function MapIterator2(keys,values,selector){this._index=0,this._keys=keys,this._values=values,this._selector=selector}return MapIterator2.prototype["@@iterator"]=function(){return this},MapIterator2.prototype[iteratorSymbol]=function(){return this},MapIterator2.prototype.next=function(){var index=this._index;if(index>=0&&index<this._keys.length){var result=this._selector(this._keys[index],this._values[index]);return index+1>=this._keys.length?(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel):this._index++,{value:result,done:!1}}return{value:void 0,done:!0}},MapIterator2.prototype.throw=function(error){throw this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),error},MapIterator2.prototype.return=function(value2){return this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),{value:value2,done:!0}},MapIterator2}();return function(){function Map2(){this._keys=[],this._values=[],this._cacheKey=cacheSentinel,this._cacheIndex=-2}return Object.defineProperty(Map2.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map2.prototype.has=function(key){return this._find(key,!1)>=0},Map2.prototype.get=function(key){var index=this._find(key,!1);return index>=0?this._values[index]:void 0},Map2.prototype.set=function(key,value2){var index=this._find(key,!0);return this._values[index]=value2,this},Map2.prototype.delete=function(key){var index=this._find(key,!1);if(index>=0){for(var size=this._keys.length,i=index+1;i<size;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,key===this._cacheKey&&(this._cacheKey=cacheSentinel,this._cacheIndex=-2),!0}return!1},Map2.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=cacheSentinel,this._cacheIndex=-2},Map2.prototype.keys=function(){return new MapIterator(this._keys,this._values,getKey)},Map2.prototype.values=function(){return new MapIterator(this._keys,this._values,getValue)},Map2.prototype.entries=function(){return new MapIterator(this._keys,this._values,getEntry)},Map2.prototype["@@iterator"]=function(){return this.entries()},Map2.prototype[iteratorSymbol]=function(){return this.entries()},Map2.prototype._find=function(key,insert){return this._cacheKey!==key&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=key)),this._cacheIndex<0&&insert&&(this._cacheIndex=this._keys.length,this._keys.push(key),this._values.push(void 0)),this._cacheIndex},Map2}();function getKey(key,_){return key}function getValue(_,value2){return value2}function getEntry(key,value2){return[key,value2]}}function CreateSetPolyfill(){return function(){function Set2(){this._map=new _Map}return Object.defineProperty(Set2.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set2.prototype.has=function(value2){return this._map.has(value2)},Set2.prototype.add=function(value2){return this._map.set(value2,value2),this},Set2.prototype.delete=function(value2){return this._map.delete(value2)},Set2.prototype.clear=function(){this._map.clear()},Set2.prototype.keys=function(){return this._map.keys()},Set2.prototype.values=function(){return this._map.values()},Set2.prototype.entries=function(){return this._map.entries()},Set2.prototype["@@iterator"]=function(){return this.keys()},Set2.prototype[iteratorSymbol]=function(){return this.keys()},Set2}()}function CreateWeakMapPolyfill(){var UUID_SIZE=16,keys=HashMap.create(),rootKey=CreateUniqueKey();return function(){function WeakMap2(){this._key=CreateUniqueKey()}return WeakMap2.prototype.has=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.has(table,this._key):!1},WeakMap2.prototype.get=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.get(table,this._key):void 0},WeakMap2.prototype.set=function(target,value2){var table=GetOrCreateWeakMapTable(target,!0);return table[this._key]=value2,this},WeakMap2.prototype.delete=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?delete table[this._key]:!1},WeakMap2.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap2}();function CreateUniqueKey(){var key;do key="@@WeakMap@@"+CreateUUID();while(HashMap.has(keys,key));return keys[key]=!0,key}function GetOrCreateWeakMapTable(target,create){if(!hasOwn.call(target,rootKey)){if(!create)return;Object.defineProperty(target,rootKey,{value:HashMap.create()})}return target[rootKey]}function FillRandomBytes(buffer,size){for(var i=0;i<size;++i)buffer[i]=Math.random()*255|0;return buffer}function GenRandomBytes(size){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(size)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(size)):FillRandomBytes(new Uint8Array(size),size):FillRandomBytes(new Array(size),size)}function CreateUUID(){var data=GenRandomBytes(UUID_SIZE);data[6]=data[6]&79|64,data[8]=data[8]&191|128;for(var result="",offset=0;offset<UUID_SIZE;++offset){var byte=data[offset];(offset===4||offset===6||offset===8)&&(result+="-"),byte<16&&(result+="0"),result+=byte.toString(16).toLowerCase()}return result}}function MakeDictionary(obj){return obj.__=void 0,delete obj.__,obj}})})(Reflect2||(Reflect2={}))},16341:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");if((!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Range(comp.value,options).test(this.value);if(comp.operator==="")return comp.value===""?!0:new Range(this.value,options).test(comp.semver);const sameDirectionIncreasing=(this.operator===">="||this.operator===">")&&(comp.operator===">="||comp.operator===">"),sameDirectionDecreasing=(this.operator==="<="||this.operator==="<")&&(comp.operator==="<="||comp.operator==="<"),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=(this.operator===">="||this.operator==="<=")&&(comp.operator===">="||comp.operator==="<="),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(this.operator===">="||this.operator===">")&&(comp.operator==="<="||comp.operator==="<"),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&(this.operator==="<="||this.operator==="<")&&(comp.operator===">="||comp.operator===">");return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan}}module.exports=Comparator;const parseOptions=__webpack_require__(57644),{re,t}=__webpack_require__(41773),cmp=__webpack_require__(46279),debug=__webpack_require__(25613),SemVer=__webpack_require__(94631),Range=__webpack_require__(73101)},73101:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split(/\s*\|\|\s*/).map(range2=>this.parseRange(range2.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${range}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){range=range.trim();const memoKey=`parseRange:${Object.keys(this.options).join(",")}:${range}`,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range,re[t.COMPARATORTRIM]),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace),range=range.split(/\s+/).join(" ");const compRe=loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options)).filter(this.options.loose?comp=>!!comp.match(compRe):()=>!0).map(comp=>new Comparator(comp,this.options)),l=rangeList.length,rangeMap=new Map;for(const comp of rangeList){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(18968),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(57644),Comparator=__webpack_require__(16341),debug=__webpack_require__(25613),SemVer=__webpack_require__(94631),{re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(41773),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(comp2=>replaceTilde(comp2,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(comp2=>replaceCaret(comp2,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(comp2=>replaceXRange(comp2,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},94631:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(25613),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(50267),{re,t}=__webpack_require__(41773),parseOptions=__webpack_require__(57644),{compareIdentifiers}=__webpack_require__(530);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid Version: ${version}`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier),this.inc("pre",identifier);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier),this.inc("pre",identifier);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}identifier&&(this.prerelease[0]===identifier?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error(`invalid increment argument: ${release}`)}return this.format(),this.raw=this.version,this}}module.exports=SemVer},65679:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},46279:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(60744),neq=__webpack_require__(86442),gt=__webpack_require__(41047),gte=__webpack_require__(399),lt=__webpack_require__(2414),lte=__webpack_require__(94336),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},8583:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),parse=__webpack_require__(68195),{re,t}=__webpack_require__(41773),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},34029:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},9e3:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},88847:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},95669:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),eq=__webpack_require__(60744),diff=(version1,version2)=>{if(eq(version1,version2))return null;{const v1=parse(version1),v2=parse(version2),hasPre=v1.prerelease.length||v2.prerelease.length,prefix=hasPre?"pre":"",defaultResult=hasPre?"prerelease":"";for(const key in v1)if((key==="major"||key==="minor"||key==="patch")&&v1[key]!==v2[key])return prefix+key;return defaultResult}};module.exports=diff},60744:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},41047:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},399:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},77082:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),inc=(version,release,options,identifier)=>{typeof options=="string"&&(identifier=options,options=void 0);try{return new SemVer(version,options).inc(release,identifier).version}catch{return null}};module.exports=inc},2414:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},94336:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},64209:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},24893:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},86442:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},68195:(module,__unused_webpack_exports,__webpack_require__)=>{const{MAX_LENGTH}=__webpack_require__(50267),{re,t}=__webpack_require__(41773),SemVer=__webpack_require__(94631),parseOptions=__webpack_require__(57644),parse=(version,options)=>{if(options=parseOptions(options),version instanceof SemVer)return version;if(typeof version!="string"||version.length>MAX_LENGTH||!(options.loose?re[t.LOOSE]:re[t.FULL]).test(version))return null;try{return new SemVer(version,options)}catch{return null}};module.exports=parse},94354:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},59509:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},63586:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},40899:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(34029),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},64287:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},26853:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(34029),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},36860:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},24930:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(41773);module.exports={re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:__webpack_require__(50267).SEMVER_SPEC_VERSION,SemVer:__webpack_require__(94631),compareIdentifiers:__webpack_require__(530).compareIdentifiers,rcompareIdentifiers:__webpack_require__(530).rcompareIdentifiers,parse:__webpack_require__(68195),valid:__webpack_require__(36860),clean:__webpack_require__(65679),inc:__webpack_require__(77082),diff:__webpack_require__(95669),major:__webpack_require__(64209),minor:__webpack_require__(24893),patch:__webpack_require__(94354),prerelease:__webpack_require__(59509),compare:__webpack_require__(88847),rcompare:__webpack_require__(63586),compareLoose:__webpack_require__(9e3),compareBuild:__webpack_require__(34029),sort:__webpack_require__(26853),rsort:__webpack_require__(40899),gt:__webpack_require__(41047),lt:__webpack_require__(2414),eq:__webpack_require__(60744),neq:__webpack_require__(86442),gte:__webpack_require__(399),lte:__webpack_require__(94336),cmp:__webpack_require__(46279),coerce:__webpack_require__(8583),Comparator:__webpack_require__(16341),Range:__webpack_require__(73101),satisfies:__webpack_require__(64287),toComparators:__webpack_require__(87271),maxSatisfying:__webpack_require__(57866),minSatisfying:__webpack_require__(2659),minVersion:__webpack_require__(52910),validRange:__webpack_require__(31367),outside:__webpack_require__(1909),gtr:__webpack_require__(59658),ltr:__webpack_require__(38311),intersects:__webpack_require__(74167),simplifyRange:__webpack_require__(21652),subset:__webpack_require__(12349)}},50267:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16;module.exports={SEMVER_SPEC_VERSION,MAX_LENGTH:256,MAX_SAFE_INTEGER,MAX_SAFE_COMPONENT_LENGTH}},25613:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},530:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},57644:module=>{const opts=["includePrerelease","loose","rtl"],parseOptions=options=>options?typeof options!="object"?{loose:!0}:opts.filter(k=>options[k]).reduce((options2,k)=>(options2[k]=!0,options2),{}):{};module.exports=parseOptions},41773:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(50267),debug=__webpack_require__(25613);exports=module.exports={};const re=exports.re=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value2,isGlobal)=>{const index=R++;debug(index,value2),t[name]=index,src[index]=value2,re[index]=new RegExp(value2,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},59658:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(1909),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},74167:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2));module.exports=intersects},38311:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(1909),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},57866:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Range=__webpack_require__(73101),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},2659:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Range=__webpack_require__(73101),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},52910:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Range=__webpack_require__(73101),gt=__webpack_require__(41047),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},1909:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Comparator=__webpack_require__(16341),{ANY}=Comparator,Range=__webpack_require__(73101),satisfies=__webpack_require__(64287),gt=__webpack_require__(41047),lt=__webpack_require__(2414),lte=__webpack_require__(94336),gte=__webpack_require__(399),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},21652:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(64287),compare=__webpack_require__(88847);module.exports=(versions,range,options)=>{const set=[];let min=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,min||(min=version)):(prev&&set.push([min,prev]),prev=null,min=null);min&&set.push([min,null]);const ranges=[];for(const[min2,max]of set)min2===max?ranges.push(min2):!max&&min2===v[0]?ranges.push("*"):max?min2===v[0]?ranges.push(`<=${max}`):ranges.push(`${min2} - ${max}`):ranges.push(`>=${min2}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},12349:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),{ANY}=__webpack_require__(16341),satisfies=__webpack_require__(64287),compare=__webpack_require__(88847),subset=(sub,dom,options)=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY)return dom.length===1&&dom[0].semver===ANY;const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT;for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},87271:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},31367:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},33604:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}}module.exports=Comparator;const parseOptions=__webpack_require__(84995),{safeRe:re,t}=__webpack_require__(46382),cmp=__webpack_require__(90964),debug=__webpack_require__(69191),SemVer=__webpack_require__(36660),Range=__webpack_require__(76520)},76520:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r)).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(18968),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(84995),Comparator=__webpack_require__(33604),debug=__webpack_require__(69191),SemVer=__webpack_require__(36660),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(46382),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=__webpack_require__(63809),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},36660:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(69191),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(63809),{safeRe:re,t}=__webpack_require__(46382),parseOptions=__webpack_require__(84995),{compareIdentifiers}=__webpack_require__(2719);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}module.exports=SemVer},42989:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},90964:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(79615),neq=__webpack_require__(44710),gt=__webpack_require__(7433),gte=__webpack_require__(71413),lt=__webpack_require__(52053),lte=__webpack_require__(30854),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},46259:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),parse=__webpack_require__(17794),{safeRe:re,t}=__webpack_require__(46382),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},38234:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},79440:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},46647:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},96704:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),diff=(version1,version2)=>{const v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;const v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return!lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";const prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff},79615:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},7433:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},71413:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},98865:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc},52053:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},30854:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},28409:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},27683:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},44710:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},17794:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse},60033:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},55003:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},94820:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},58401:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(38234),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},36048:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},35892:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(38234),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},99480:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},9131:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(46382),constants=__webpack_require__(63809),SemVer=__webpack_require__(36660),identifiers=__webpack_require__(2719),parse=__webpack_require__(17794),valid=__webpack_require__(99480),clean=__webpack_require__(42989),inc=__webpack_require__(98865),diff=__webpack_require__(96704),major=__webpack_require__(28409),minor=__webpack_require__(27683),patch=__webpack_require__(60033),prerelease=__webpack_require__(55003),compare=__webpack_require__(46647),rcompare=__webpack_require__(94820),compareLoose=__webpack_require__(79440),compareBuild=__webpack_require__(38234),sort=__webpack_require__(35892),rsort=__webpack_require__(58401),gt=__webpack_require__(7433),lt=__webpack_require__(52053),eq=__webpack_require__(79615),neq=__webpack_require__(44710),gte=__webpack_require__(71413),lte=__webpack_require__(30854),cmp=__webpack_require__(90964),coerce=__webpack_require__(46259),Comparator=__webpack_require__(33604),Range=__webpack_require__(76520),satisfies=__webpack_require__(36048),toComparators=__webpack_require__(66357),maxSatisfying=__webpack_require__(89271),minSatisfying=__webpack_require__(20572),minVersion=__webpack_require__(50618),validRange=__webpack_require__(34400),outside=__webpack_require__(37854),gtr=__webpack_require__(72407),ltr=__webpack_require__(37996),intersects=__webpack_require__(40547),simplifyRange=__webpack_require__(77575),subset=__webpack_require__(3305);module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},63809:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},69191:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},2719:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},84995:module=>{const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions},46382:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(63809),debug=__webpack_require__(69191);exports=module.exports={};const re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value2,isGlobal)=>{const safe=value2.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),index=R++;debug(name,index,value2),t[name]=index,src[index]=value2,re[index]=new RegExp(value2,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},72407:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(37854),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},40547:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects},37996:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(37854),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},89271:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Range=__webpack_require__(76520),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},20572:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Range=__webpack_require__(76520),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},50618:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Range=__webpack_require__(76520),gt=__webpack_require__(7433),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},37854:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Comparator=__webpack_require__(33604),{ANY}=Comparator,Range=__webpack_require__(76520),satisfies=__webpack_require__(36048),gt=__webpack_require__(7433),lt=__webpack_require__(52053),lte=__webpack_require__(30854),gte=__webpack_require__(71413),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},77575:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(36048),compare=__webpack_require__(46647);module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},3305:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),Comparator=__webpack_require__(33604),{ANY}=Comparator,satisfies=__webpack_require__(36048),compare=__webpack_require__(46647),subset=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},66357:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},34400:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},34214:module=>{"use strict";module.exports=(string,separator)=>{if(!(typeof string=="string"&&typeof separator=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(separator==="")return[string];const separatorIndex=string.indexOf(separator);return separatorIndex===-1?[string]:[string.slice(0,separatorIndex),string.slice(separatorIndex+separator.length)]}},45632:module=>{"use strict";module.exports=str=>encodeURIComponent(str).replace(/[!'()*]/g,x=>`%${x.charCodeAt(0).toString(16).toUpperCase()}`)},29147:module=>{"use strict";module.exports=2147483647},85128:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45102),maxTimeout=__webpack_require__(29147);module.exports=function(value2){if(value2=toPosInt(value2),value2>maxTimeout)throw new TypeError(value2+" exceeds maximum possible timeout");return value2}},78139:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isPrototype=__webpack_require__(51079);module.exports=function(value2){if(typeof value2!="function"||!hasOwnProperty.call(value2,"length"))return!1;try{if(typeof value2.length!="number"||typeof value2.call!="function"||typeof value2.apply!="function")return!1}catch{return!1}return!isPrototype(value2)}},89577:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(10569),possibleTypes={object:!0,function:!0,undefined:!0};module.exports=function(value2){return isValue(value2)?hasOwnProperty.call(possibleTypes,typeof value2):!1}},91560:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isFunction=__webpack_require__(78139),classRe=/^\s*class[\s{/}]/,functionToString=Function.prototype.toString;module.exports=function(value2){return!(!isFunction(value2)||classRe.test(functionToString.call(value2)))}},51079:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isObject=__webpack_require__(89577);module.exports=function(value2){if(!isObject(value2))return!1;try{return value2.constructor?value2.constructor.prototype===value2:!1}catch{return!1}}},10569:module=>{"use strict";var _undefined=void 0;module.exports=function(value2){return value2!==_undefined&&value2!==null}},98367:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(name,context,definition){module.exports?module.exports=definition():(__WEBPACK_AMD_DEFINE_FACTORY__=definition,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__=="function"?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})("urljoin",this,function(){function normalize(strArray){var resultArray=[];if(strArray.length===0)return"";if(typeof strArray[0]!="string")throw new TypeError("Url must be a string. Received "+strArray[0]);if(strArray[0].match(/^[^/:]+:\/*$/)&&strArray.length>1){var first=strArray.shift();strArray[0]=first+strArray[0]}strArray[0].match(/^file:\/\/\//)?strArray[0]=strArray[0].replace(/^([^/:]+):\/*/,"$1:///"):strArray[0]=strArray[0].replace(/^([^/:]+):\/*/,"$1://");for(var i=0;i<strArray.length;i++){var component=strArray[i];if(typeof component!="string")throw new TypeError("Url must be a string. Received "+component);component!==""&&(i>0&&(component=component.replace(/^[\/]+/,"")),i<strArray.length-1?component=component.replace(/[\/]+$/,""):component=component.replace(/[\/]+$/,"/"),resultArray.push(component))}var str=resultArray.join("/");str=str.replace(/\/(\?|&|#[^!])/g,"$1");var parts=str.split("?");return str=parts.shift()+(parts.length>0?"?":"")+parts.join("&"),str}return function(){var input;return typeof arguments[0]=="object"?input=arguments[0]:input=[].slice.call(arguments),normalize(input)}})},15293:(__unused_webpack_module,exports,__webpack_require__)=>{var r=__webpack_require__(59496);function n(n2,e2,t2){var u=this,c=r.useRef(null),i=r.useRef(0),a=r.useRef(null),f=r.useRef([]),o=r.useRef(),l=r.useRef(),s=r.useRef(n2),v=r.useRef(!0);r.useEffect(function(){s.current=n2},[n2]);var m=!e2&&e2!==0&&typeof window<"u";if(typeof n2!="function")throw new TypeError("Expected a function");e2=+e2||0;var d=!!(t2=t2||{}).leading,p=!("trailing"in t2)||!!t2.trailing,R="maxWait"in t2,g=R?Math.max(+t2.maxWait||0,e2):null;r.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var x=r.useMemo(function(){var r2=function(r3){var n4=f.current,e3=o.current;return f.current=o.current=null,i.current=r3,l.current=s.current.apply(e3,n4)},n3=function(r3,n4){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(r3):setTimeout(r3,n4)},t3=function(r3){if(!v.current)return!1;var n4=r3-c.current;return!c.current||n4>=e2||n4<0||R&&r3-i.current>=g},x2=function(n4){return a.current=null,p&&f.current?r2(n4):(f.current=o.current=null,l.current)},w=function r3(){var u2=Date.now();if(t3(u2))return x2(u2);if(v.current){var a2=e2-(u2-c.current),f2=R?Math.min(a2,g-(u2-i.current)):a2;n3(r3,f2)}},b=function(){var s2=Date.now(),m2=t3(s2);if(f.current=[].slice.call(arguments),o.current=u,c.current=s2,m2){if(!a.current&&v.current)return i.current=c.current,n3(w,e2),d?r2(c.current):l.current;if(R)return n3(w,e2),r2(c.current)}return a.current||n3(w,e2),l.current};return b.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,f.current=c.current=o.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?x2(Date.now()):l.current},b},[d,R,e2,g,p,m]);return x}function e(r2,n2){return r2===n2}function t(r2){return typeof r2=="function"?function(){return r2}:r2}exports.useDebounce=function(u,c,i){var a,f,o=i&&i.equalityFn||e,l=(a=r.useState(t(u)),f=a[1],[a[0],r.useCallback(function(r2){return f(t(r2))},[])]),s=l[0],v=l[1],m=n(r.useCallback(function(r2){return v(r2)},[v]),c,i),d=r.useRef(u);return o(d.current,u)||(m(u),d.current=u),[s,m]},exports.useDebouncedCallback=n,exports.useThrottledCallback=function(r2,e2,t2){var u=t2===void 0?{}:t2,c=u.leading,i=u.trailing;return n(r2,e2,{maxWait:e2,leading:c===void 0||c,trailing:i===void 0||i})}},92674:(module,__unused_webpack_exports,__webpack_require__)=>{var v1=__webpack_require__(62335),v4=__webpack_require__(85234),uuid=v4;uuid.v1=v1,uuid.v4=v4,module.exports=uuid},40614:module=>{for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function bytesToUuid(buf,offset){var i2=offset||0,bth=byteToHex;return[bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]]].join("")}module.exports=bytesToUuid},10537:module=>{var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);module.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);module.exports=function(){for(var i=0,r;i<16;i++)(i&3)===0&&(r=Math.random()*4294967296),rnds[i]=r>>>((i&3)<<3)&255;return rnds}}},62335:(module,__unused_webpack_exports,__webpack_require__)=>{var rng=__webpack_require__(10537),bytesToUuid=__webpack_require__(40614),_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0,b=buf||[];options=options||{};var node=options.node||_nodeId,clockseq=options.clockseq!==void 0?options.clockseq:_clockseq;if(node==null||clockseq==null){var seedBytes=rng();node==null&&(node=_nodeId=[seedBytes[0]|1,seedBytes[1],seedBytes[2],seedBytes[3],seedBytes[4],seedBytes[5]]),clockseq==null&&(clockseq=_clockseq=(seedBytes[6]<<8|seedBytes[7])&16383)}var msecs=options.msecs!==void 0?options.msecs:new Date().getTime(),nsecs=options.nsecs!==void 0?options.nsecs:_lastNSecs+1,dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/1e4;if(dt<0&&options.clockseq===void 0&&(clockseq=clockseq+1&16383),(dt<0||msecs>_lastMSecs)&&options.nsecs===void 0&&(nsecs=0),nsecs>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=msecs,_lastNSecs=nsecs,_clockseq=clockseq,msecs+=122192928e5;var tl=((msecs&268435455)*1e4+nsecs)%4294967296;b[i++]=tl>>>24&255,b[i++]=tl>>>16&255,b[i++]=tl>>>8&255,b[i++]=tl&255;var tmh=msecs/4294967296*1e4&268435455;b[i++]=tmh>>>8&255,b[i++]=tmh&255,b[i++]=tmh>>>24&15|16,b[i++]=tmh>>>16&255,b[i++]=clockseq>>>8|128,b[i++]=clockseq&255;for(var n=0;n<6;++n)b[i+n]=node[n];return buf||bytesToUuid(b)}module.exports=v1},85234:(module,__unused_webpack_exports,__webpack_require__)=>{var rng=__webpack_require__(10537),bytesToUuid=__webpack_require__(40614);function v4(options,buf,offset){var i=buf&&offset||0;typeof options=="string"&&(buf=options==="binary"?new Array(16):null,options=null),options=options||{};var rnds=options.random||(options.rng||rng)();if(rnds[6]=rnds[6]&15|64,rnds[8]=rnds[8]&63|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||bytesToUuid(rnds)}module.exports=v4},91162:module=>{"use strict";module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value}}},79900:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Yallist,Yallist.Node=Node2,Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item)});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(!!this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(!!this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p}return this.head=tail,this.tail=head,this};function insert(self2,node,value2){var inserted=node===self2.head?new Node2(value2,null,node,self2):new Node2(value2,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node2(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++}function unshift(self2,item){self2.head=new Node2(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++}function Node2(value2,prev,next,list){if(!(this instanceof Node2))return new Node2(value2,prev,next,list);this.list=list,this.value=value2,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null}try{__webpack_require__(91162)(Yallist)}catch{}},98695:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CommandBarAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const CommandBarAspect=exports.CommandBarAspect=_harmony().Aspect.create({id:"teambit.explorer/command-bar",dependencies:[],defaultConfig:{}});var _default=exports.default=CommandBarAspect},97996:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _keybinding(){const data=__webpack_require__(20625);return _keybinding=function(){return data},data}function _commandBar(){const data=__webpack_require__(98695);return _commandBar=function(){return data},data}function _keyEvent(){const data=__webpack_require__(1729);return _keyEvent=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class CommandBarPreview{constructor(pubSub){this.pubSub=pubSub,_defineProperty(this,"handleKeyEvent",e=>{const{target}=e;!target||isEditable(target)||(isDenyListed(e)&&e.preventDefault(),this.pubSub.pub(_commandBar().CommandBarAspect.id,new(_keyEvent()).KeyEvent(e)))}),document.addEventListener("keydown",this.handleKeyEvent),document.addEventListener("keypress",this.handleKeyEvent),document.addEventListener("keyup",this.handleKeyEvent)}static async provider([pubSub]){return new CommandBarPreview(pubSub)}}__webpack_unused_export__=CommandBarPreview,_defineProperty(CommandBarPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(CommandBarPreview,"runtime",_preview().PreviewRuntime);const editableTags=["INPUT","SELECT","TEXTAREA"];function isEditable(element){return editableTags.includes(element.tagName)||element.isContentEditable}_commandBar().CommandBarAspect.addRuntime(CommandBarPreview);function isDenyListed(e){return(0,_keybinding().isOpenCommandBarKeybinding)(e)}},20625:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.openCommandBarKeybinding=exports.isOpenCommandBarKeybinding=void 0;const openCommandBarKeybinding=exports.openCommandBarKeybinding="mod+k",isOpenCommandBarKeybinding=e=>(e.ctrlKey||e.metaKey)&&e.key==="k";exports.isOpenCommandBarKeybinding=isOpenCommandBarKeybinding},1729:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"KeyEvent",{enumerable:!0,get:function(){return _keyEvent().KeyEvent}});function _keyEvent(){const data=__webpack_require__(30364);return _keyEvent=function(){return data},data}},30364:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KeyEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _serializeKeyboardEvent(){const data=__webpack_require__(71921);return _serializeKeyboardEvent=function(){return data},data}class KeyEvent extends _pubsub().BitBaseEvent{constructor(event,timestamp=Date.now()){const serialized=(0,_serializeKeyboardEvent().serializeKeyboardEvent)(event);super(event.type,"0.0.1",timestamp,serialized)}}exports.KeyEvent=KeyEvent},71921:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.serializeKeyboardEvent=serializeKeyboardEvent;function _isPrimitive(){const data=_interopRequireDefault(__webpack_require__(51616));return _isPrimitive=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function serializeKeyboardEvent(e){const serialized={};for(const key in e){const val=e[key];(0,_isPrimitive().default)(val)&&(serialized[key]=val)}return serialized}},36717:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CompositionsAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const CompositionsAspect=exports.CompositionsAspect=_harmony().Aspect.create({id:"teambit.compositions/compositions",dependencies:[],defaultConfig:{}});var _default=exports.default=CompositionsAspect},61517:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _lodash(){const data=_interopRequireDefault(__webpack_require__(40733));return _lodash=function(){return data},data}function _compositions(){const data=__webpack_require__(36717);return _compositions=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class CompositionsPreview{constructor(preview){this.preview=preview}render(componentId,envId,modules,otherPreviewDefs,context){if(!modules.componentMap[componentId.fullName])return;const compositions=this.selectPreviewModel(componentId.fullName,modules),metadata=this.getMetadata(componentId.fullName,modules),active=this.getActiveComposition(compositions,metadata);let defaultExports=(modules.modulesMap[envId]||modules.modulesMap.default).default;typeof defaultExports!="function"&&defaultExports.default&&(defaultExports=defaultExports.default),defaultExports(active,context)}selectPreviewModel(componentFullName,previewModule){const files=previewModule.componentMap[componentFullName]||[];return Object.assign({},...files)}getMetadata(componentFullName,previewModule){const metadata=previewModule?.componentMapMetadata?previewModule.componentMapMetadata[componentFullName]:void 0;if(metadata)return metadata}getActiveComposition(module,metadata){const firstQueryParam=window.location.hash.split("&")[1],query=this.preview.getQuery(),compositionId=this.preview.getParam(query,"name")||firstQueryParam;if(compositionId&&module[compositionId])return module[compositionId];if(metadata&&metadata.compositions){const firstId=(0,_lodash().default)(metadata.compositions)?.identifier;if(firstId&&module[firstId])return module[firstId]}return(0,_lodash().default)(Object.values(module))}static async provider([preview]){const compPreview=new CompositionsPreview(preview);return preview.registerPreview({name:"compositions",render:compPreview.render.bind(compPreview),selectPreviewModel:compPreview.selectPreviewModel.bind(compPreview),default:!0}),compPreview}}__webpack_unused_export__=CompositionsPreview,_defineProperty(CompositionsPreview,"runtime",_preview().PreviewRuntime),_defineProperty(CompositionsPreview,"dependencies",[_preview().PreviewAspect]),_compositions().CompositionsAspect.addRuntime(CompositionsPreview)},12825:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DocsAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const DocsAspect=exports.DocsAspect=_harmony().Aspect.create({id:"teambit.docs/docs",dependencies:[],defaultConfig:{}});var _default=exports.default=DocsAspect},90428:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _react(){const data=_interopRequireDefault(__webpack_require__(59496));return _react=function(){return data},data}function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _docs(){const data=__webpack_require__(12825);return _docs=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class DocsPreview{constructor(preview){this.preview=preview,_defineProperty(this,"render",(componentId,envId,modules,[compositions],context)=>{const docsModule=this.selectPreviewModel(componentId.fullName,modules);let defaultExports=(modules.modulesMap[envId]||modules.modulesMap.default).default;if(typeof defaultExports!="function"&&defaultExports.default&&(defaultExports=defaultExports.default),!!!defaultExports.apiObject){const docsPropsArray=[NoopProvider,componentId.toString(),docsModule,compositions,context];defaultExports(...docsPropsArray);return}const docsProps={Provider:NoopProvider,componentId:componentId.toString(),docs:docsModule,compositions,context};defaultExports(docsProps)})}selectPreviewModel(componentId,modules){const relevant=modules.componentMap[componentId];if(!!relevant)return relevant[0]}static async provider([preview]){const docsPreview=new DocsPreview(preview);return preview.registerPreview({name:"overview",render:docsPreview.render.bind(docsPreview),selectPreviewModel:docsPreview.selectPreviewModel.bind(docsPreview),include:["compositions"]}),docsPreview}}__webpack_unused_export__=DocsPreview,_defineProperty(DocsPreview,"runtime",_preview().PreviewRuntime),_defineProperty(DocsPreview,"dependencies",[_preview().PreviewAspect]),_docs().DocsAspect.addRuntime(DocsPreview);function NoopProvider({children}){return _react().default.createElement(_react().default.Fragment,null,children)}},80396:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickInsideAnIframeEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ClickInsideAnIframeEventData{constructor(clickEvent){this.clickEvent=clickEvent}}class ClickInsideAnIframeEvent extends _pubsub().BitBaseEvent{constructor(timestamp=Date.now(),clickEvent){super(ClickInsideAnIframeEvent.TYPE,"0.0.1",timestamp,new ClickInsideAnIframeEventData(clickEvent));this.timestamp=timestamp,this.clickEvent=clickEvent}}exports.ClickInsideAnIframeEvent=ClickInsideAnIframeEvent,_defineProperty(ClickInsideAnIframeEvent,"TYPE","click-inside-an-iframe")},67335:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _clickInsideAnIframe=__webpack_require__(80396);Object.keys(_clickInsideAnIframe).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_clickInsideAnIframe[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _clickInsideAnIframe[key]}})})},21396:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BundlingStrategyNotFound=void 0;class BundlingStrategyNotFound extends Error{constructor(strategyName){super(`bundling strategy with name ${strategyName} was not found`);this.strategyName=strategyName}}exports.BundlingStrategyNotFound=BundlingStrategyNotFound},67166:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BundlingStrategyNotFound",{enumerable:!0,get:function(){return _bundlingStrategyNotFound().BundlingStrategyNotFound}}),Object.defineProperty(exports,"PreviewArtifactNotFound",{enumerable:!0,get:function(){return _previewArtifactNotFound().PreviewArtifactNotFound}}),Object.defineProperty(exports,"PreviewNotFound",{enumerable:!0,get:function(){return _previewNotFound().PreviewNotFound}}),Object.defineProperty(exports,"PreviewOutputFileNotFound",{enumerable:!0,get:function(){return _previewOutputFileNotFound().PreviewOutputFileNotFound}});function _previewNotFound(){const data=__webpack_require__(39517);return _previewNotFound=function(){return data},data}function _previewArtifactNotFound(){const data=__webpack_require__(82330);return _previewArtifactNotFound=function(){return data},data}function _bundlingStrategyNotFound(){const data=__webpack_require__(21396);return _bundlingStrategyNotFound=function(){return data},data}function _previewOutputFileNotFound(){const data=__webpack_require__(13291);return _previewOutputFileNotFound=function(){return data},data}},82330:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewArtifactNotFound=void 0;function _bitError(){const data=__webpack_require__(74155);return _bitError=function(){return data},data}class PreviewArtifactNotFound extends _bitError().BitError{constructor(componentId){super(`preview for component ${componentId.toString()} was not found`)}}exports.PreviewArtifactNotFound=PreviewArtifactNotFound},39517:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewNotFound=void 0;class PreviewNotFound extends Error{constructor(name){super(`Preview for name: ${name} was not found`)}}exports.PreviewNotFound=PreviewNotFound},13291:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewOutputFileNotFound=void 0;function _bitError(){const data=__webpack_require__(74155);return _bitError=function(){return data},data}class PreviewOutputFileNotFound extends _bitError().BitError{constructor(componentId,filePath){super(`preview output file for component: "${componentId.toString()}" was not found in the path: "${filePath}".
|
77
|
+
***************************************************************************** */var Reflect2;(function(Reflect3){(function(factory){var root=typeof __webpack_require__.g=="object"?__webpack_require__.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),exporter=makeExporter(Reflect3);typeof root.Reflect>"u"?root.Reflect=Reflect3:exporter=makeExporter(root.Reflect,exporter),factory(exporter);function makeExporter(target,previous){return function(key,value2){typeof target[key]!="function"&&Object.defineProperty(target,key,{configurable:!0,writable:!0,value:value2}),previous&&previous(key,value2)}}})(function(exporter){var hasOwn=Object.prototype.hasOwnProperty,supportsSymbol=typeof Symbol=="function",toPrimitiveSymbol=supportsSymbol&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",iteratorSymbol=supportsSymbol&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",supportsCreate=typeof Object.create=="function",supportsProto={__proto__:[]}instanceof Array,downLevel=!supportsCreate&&!supportsProto,HashMap={create:supportsCreate?function(){return MakeDictionary(Object.create(null))}:supportsProto?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:downLevel?function(map,key){return hasOwn.call(map,key)}:function(map,key){return key in map},get:downLevel?function(map,key){return hasOwn.call(map,key)?map[key]:void 0}:function(map,key){return map[key]}},functionPrototype=Object.getPrototypeOf(Function),usePolyfill=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",_Map=!usePolyfill&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:CreateMapPolyfill(),_Set=!usePolyfill&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:CreateSetPolyfill(),_WeakMap=!usePolyfill&&typeof WeakMap=="function"?WeakMap:CreateWeakMapPolyfill(),Metadata=new _WeakMap;function decorate(decorators,target,propertyKey,attributes){if(IsUndefined(propertyKey)){if(!IsArray(decorators))throw new TypeError;if(!IsConstructor(target))throw new TypeError;return DecorateConstructor(decorators,target)}else{if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;if(!IsObject(attributes)&&!IsUndefined(attributes)&&!IsNull(attributes))throw new TypeError;return IsNull(attributes)&&(attributes=void 0),propertyKey=ToPropertyKey(propertyKey),DecorateProperty(decorators,target,propertyKey,attributes)}}exporter("decorate",decorate);function metadata(metadataKey,metadataValue){function decorator(target,propertyKey){if(!IsObject(target))throw new TypeError;if(!IsUndefined(propertyKey)&&!IsPropertyKey(propertyKey))throw new TypeError;OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}return decorator}exporter("metadata",metadata);function defineMetadata(metadataKey,metadataValue,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}exporter("defineMetadata",defineMetadata);function hasMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasMetadata(metadataKey,target,propertyKey)}exporter("hasMetadata",hasMetadata);function hasOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasOwnMetadata(metadataKey,target,propertyKey)}exporter("hasOwnMetadata",hasOwnMetadata);function getMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetMetadata(metadataKey,target,propertyKey)}exporter("getMetadata",getMetadata);function getOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetOwnMetadata(metadataKey,target,propertyKey)}exporter("getOwnMetadata",getOwnMetadata);function getMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryMetadataKeys(target,propertyKey)}exporter("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryOwnMetadataKeys(target,propertyKey)}exporter("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey));var metadataMap=GetOrCreateMetadataMap(target,propertyKey,!1);if(IsUndefined(metadataMap)||!metadataMap.delete(metadataKey))return!1;if(metadataMap.size>0)return!0;var targetMetadata=Metadata.get(target);return targetMetadata.delete(propertyKey),targetMetadata.size>0||Metadata.delete(target),!0}exporter("deleteMetadata",deleteMetadata);function DecorateConstructor(decorators,target){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsConstructor(decorated))throw new TypeError;target=decorated}}return target}function DecorateProperty(decorators,target,propertyKey,descriptor){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target,propertyKey,descriptor);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsObject(decorated))throw new TypeError;descriptor=decorated}}return descriptor}function GetOrCreateMetadataMap(O,P,Create){var targetMetadata=Metadata.get(O);if(IsUndefined(targetMetadata)){if(!Create)return;targetMetadata=new _Map,Metadata.set(O,targetMetadata)}var metadataMap=targetMetadata.get(P);if(IsUndefined(metadataMap)){if(!Create)return;metadataMap=new _Map,targetMetadata.set(P,metadataMap)}return metadataMap}function OrdinaryHasMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return!0;var parent2=OrdinaryGetPrototypeOf(O);return IsNull(parent2)?!1:OrdinaryHasMetadata(MetadataKey,parent2,P)}function OrdinaryHasOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);return IsUndefined(metadataMap)?!1:ToBoolean(metadataMap.has(MetadataKey))}function OrdinaryGetMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return OrdinaryGetOwnMetadata(MetadataKey,O,P);var parent2=OrdinaryGetPrototypeOf(O);if(!IsNull(parent2))return OrdinaryGetMetadata(MetadataKey,parent2,P)}function OrdinaryGetOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);if(!IsUndefined(metadataMap))return metadataMap.get(MetadataKey)}function OrdinaryDefineOwnMetadata(MetadataKey,MetadataValue,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!0);metadataMap.set(MetadataKey,MetadataValue)}function OrdinaryMetadataKeys(O,P){var ownKeys=OrdinaryOwnMetadataKeys(O,P),parent2=OrdinaryGetPrototypeOf(O);if(parent2===null)return ownKeys;var parentKeys=OrdinaryMetadataKeys(parent2,P);if(parentKeys.length<=0)return ownKeys;if(ownKeys.length<=0)return parentKeys;for(var set=new _Set,keys=[],_i=0,ownKeys_1=ownKeys;_i<ownKeys_1.length;_i++){var key=ownKeys_1[_i],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}for(var _a=0,parentKeys_1=parentKeys;_a<parentKeys_1.length;_a++){var key=parentKeys_1[_a],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}return keys}function OrdinaryOwnMetadataKeys(O,P){var keys=[],metadataMap=GetOrCreateMetadataMap(O,P,!1);if(IsUndefined(metadataMap))return keys;for(var keysObj=metadataMap.keys(),iterator=GetIterator(keysObj),k=0;;){var next=IteratorStep(iterator);if(!next)return keys.length=k,keys;var nextValue=IteratorValue(next);try{keys[k]=nextValue}catch(e){try{IteratorClose(iterator)}finally{throw e}}k++}}function Type(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function IsUndefined(x){return x===void 0}function IsNull(x){return x===null}function IsSymbol(x){return typeof x=="symbol"}function IsObject(x){return typeof x=="object"?x!==null:typeof x=="function"}function ToPrimitive(input,PreferredType){switch(Type(input)){case 0:return input;case 1:return input;case 2:return input;case 3:return input;case 4:return input;case 5:return input}var hint=PreferredType===3?"string":PreferredType===5?"number":"default",exoticToPrim=GetMethod(input,toPrimitiveSymbol);if(exoticToPrim!==void 0){var result=exoticToPrim.call(input,hint);if(IsObject(result))throw new TypeError;return result}return OrdinaryToPrimitive(input,hint==="default"?"number":hint)}function OrdinaryToPrimitive(O,hint){if(hint==="string"){var toString_1=O.toString;if(IsCallable(toString_1)){var result=toString_1.call(O);if(!IsObject(result))return result}var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}}else{var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}var toString_2=O.toString;if(IsCallable(toString_2)){var result=toString_2.call(O);if(!IsObject(result))return result}}throw new TypeError}function ToBoolean(argument){return!!argument}function ToString(argument){return""+argument}function ToPropertyKey(argument){var key=ToPrimitive(argument,3);return IsSymbol(key)?key:ToString(key)}function IsArray(argument){return Array.isArray?Array.isArray(argument):argument instanceof Object?argument instanceof Array:Object.prototype.toString.call(argument)==="[object Array]"}function IsCallable(argument){return typeof argument=="function"}function IsConstructor(argument){return typeof argument=="function"}function IsPropertyKey(argument){switch(Type(argument)){case 3:return!0;case 4:return!0;default:return!1}}function GetMethod(V,P){var func=V[P];if(func!=null){if(!IsCallable(func))throw new TypeError;return func}}function GetIterator(obj){var method=GetMethod(obj,iteratorSymbol);if(!IsCallable(method))throw new TypeError;var iterator=method.call(obj);if(!IsObject(iterator))throw new TypeError;return iterator}function IteratorValue(iterResult){return iterResult.value}function IteratorStep(iterator){var result=iterator.next();return result.done?!1:result}function IteratorClose(iterator){var f=iterator.return;f&&f.call(iterator)}function OrdinaryGetPrototypeOf(O){var proto=Object.getPrototypeOf(O);if(typeof O!="function"||O===functionPrototype||proto!==functionPrototype)return proto;var prototype=O.prototype,prototypeProto=prototype&&Object.getPrototypeOf(prototype);if(prototypeProto==null||prototypeProto===Object.prototype)return proto;var constructor=prototypeProto.constructor;return typeof constructor!="function"||constructor===O?proto:constructor}function CreateMapPolyfill(){var cacheSentinel={},arraySentinel=[],MapIterator=function(){function MapIterator2(keys,values,selector){this._index=0,this._keys=keys,this._values=values,this._selector=selector}return MapIterator2.prototype["@@iterator"]=function(){return this},MapIterator2.prototype[iteratorSymbol]=function(){return this},MapIterator2.prototype.next=function(){var index=this._index;if(index>=0&&index<this._keys.length){var result=this._selector(this._keys[index],this._values[index]);return index+1>=this._keys.length?(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel):this._index++,{value:result,done:!1}}return{value:void 0,done:!0}},MapIterator2.prototype.throw=function(error){throw this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),error},MapIterator2.prototype.return=function(value2){return this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),{value:value2,done:!0}},MapIterator2}();return function(){function Map2(){this._keys=[],this._values=[],this._cacheKey=cacheSentinel,this._cacheIndex=-2}return Object.defineProperty(Map2.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map2.prototype.has=function(key){return this._find(key,!1)>=0},Map2.prototype.get=function(key){var index=this._find(key,!1);return index>=0?this._values[index]:void 0},Map2.prototype.set=function(key,value2){var index=this._find(key,!0);return this._values[index]=value2,this},Map2.prototype.delete=function(key){var index=this._find(key,!1);if(index>=0){for(var size=this._keys.length,i=index+1;i<size;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,key===this._cacheKey&&(this._cacheKey=cacheSentinel,this._cacheIndex=-2),!0}return!1},Map2.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=cacheSentinel,this._cacheIndex=-2},Map2.prototype.keys=function(){return new MapIterator(this._keys,this._values,getKey)},Map2.prototype.values=function(){return new MapIterator(this._keys,this._values,getValue)},Map2.prototype.entries=function(){return new MapIterator(this._keys,this._values,getEntry)},Map2.prototype["@@iterator"]=function(){return this.entries()},Map2.prototype[iteratorSymbol]=function(){return this.entries()},Map2.prototype._find=function(key,insert){return this._cacheKey!==key&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=key)),this._cacheIndex<0&&insert&&(this._cacheIndex=this._keys.length,this._keys.push(key),this._values.push(void 0)),this._cacheIndex},Map2}();function getKey(key,_){return key}function getValue(_,value2){return value2}function getEntry(key,value2){return[key,value2]}}function CreateSetPolyfill(){return function(){function Set2(){this._map=new _Map}return Object.defineProperty(Set2.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set2.prototype.has=function(value2){return this._map.has(value2)},Set2.prototype.add=function(value2){return this._map.set(value2,value2),this},Set2.prototype.delete=function(value2){return this._map.delete(value2)},Set2.prototype.clear=function(){this._map.clear()},Set2.prototype.keys=function(){return this._map.keys()},Set2.prototype.values=function(){return this._map.values()},Set2.prototype.entries=function(){return this._map.entries()},Set2.prototype["@@iterator"]=function(){return this.keys()},Set2.prototype[iteratorSymbol]=function(){return this.keys()},Set2}()}function CreateWeakMapPolyfill(){var UUID_SIZE=16,keys=HashMap.create(),rootKey=CreateUniqueKey();return function(){function WeakMap2(){this._key=CreateUniqueKey()}return WeakMap2.prototype.has=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.has(table,this._key):!1},WeakMap2.prototype.get=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.get(table,this._key):void 0},WeakMap2.prototype.set=function(target,value2){var table=GetOrCreateWeakMapTable(target,!0);return table[this._key]=value2,this},WeakMap2.prototype.delete=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?delete table[this._key]:!1},WeakMap2.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap2}();function CreateUniqueKey(){var key;do key="@@WeakMap@@"+CreateUUID();while(HashMap.has(keys,key));return keys[key]=!0,key}function GetOrCreateWeakMapTable(target,create){if(!hasOwn.call(target,rootKey)){if(!create)return;Object.defineProperty(target,rootKey,{value:HashMap.create()})}return target[rootKey]}function FillRandomBytes(buffer,size){for(var i=0;i<size;++i)buffer[i]=Math.random()*255|0;return buffer}function GenRandomBytes(size){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(size)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(size)):FillRandomBytes(new Uint8Array(size),size):FillRandomBytes(new Array(size),size)}function CreateUUID(){var data=GenRandomBytes(UUID_SIZE);data[6]=data[6]&79|64,data[8]=data[8]&191|128;for(var result="",offset=0;offset<UUID_SIZE;++offset){var byte=data[offset];(offset===4||offset===6||offset===8)&&(result+="-"),byte<16&&(result+="0"),result+=byte.toString(16).toLowerCase()}return result}}function MakeDictionary(obj){return obj.__=void 0,delete obj.__,obj}})})(Reflect2||(Reflect2={}))},16341:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");if((!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Range(comp.value,options).test(this.value);if(comp.operator==="")return comp.value===""?!0:new Range(this.value,options).test(comp.semver);const sameDirectionIncreasing=(this.operator===">="||this.operator===">")&&(comp.operator===">="||comp.operator===">"),sameDirectionDecreasing=(this.operator==="<="||this.operator==="<")&&(comp.operator==="<="||comp.operator==="<"),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=(this.operator===">="||this.operator==="<=")&&(comp.operator===">="||comp.operator==="<="),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(this.operator===">="||this.operator===">")&&(comp.operator==="<="||comp.operator==="<"),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&(this.operator==="<="||this.operator==="<")&&(comp.operator===">="||comp.operator===">");return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan}}module.exports=Comparator;const parseOptions=__webpack_require__(57644),{re,t}=__webpack_require__(41773),cmp=__webpack_require__(46279),debug=__webpack_require__(25613),SemVer=__webpack_require__(94631),Range=__webpack_require__(73101)},73101:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split(/\s*\|\|\s*/).map(range2=>this.parseRange(range2.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${range}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){range=range.trim();const memoKey=`parseRange:${Object.keys(this.options).join(",")}:${range}`,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range,re[t.COMPARATORTRIM]),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace),range=range.split(/\s+/).join(" ");const compRe=loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options)).filter(this.options.loose?comp=>!!comp.match(compRe):()=>!0).map(comp=>new Comparator(comp,this.options)),l=rangeList.length,rangeMap=new Map;for(const comp of rangeList){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(18968),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(57644),Comparator=__webpack_require__(16341),debug=__webpack_require__(25613),SemVer=__webpack_require__(94631),{re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(41773),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(comp2=>replaceTilde(comp2,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(comp2=>replaceCaret(comp2,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(comp2=>replaceXRange(comp2,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},94631:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(25613),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(50267),{re,t}=__webpack_require__(41773),parseOptions=__webpack_require__(57644),{compareIdentifiers}=__webpack_require__(530);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid Version: ${version}`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier),this.inc("pre",identifier);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier),this.inc("pre",identifier);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}identifier&&(this.prerelease[0]===identifier?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error(`invalid increment argument: ${release}`)}return this.format(),this.raw=this.version,this}}module.exports=SemVer},65679:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},46279:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(60744),neq=__webpack_require__(86442),gt=__webpack_require__(41047),gte=__webpack_require__(399),lt=__webpack_require__(2414),lte=__webpack_require__(94336),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},8583:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),parse=__webpack_require__(68195),{re,t}=__webpack_require__(41773),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},34029:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},9e3:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},88847:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},95669:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),eq=__webpack_require__(60744),diff=(version1,version2)=>{if(eq(version1,version2))return null;{const v1=parse(version1),v2=parse(version2),hasPre=v1.prerelease.length||v2.prerelease.length,prefix=hasPre?"pre":"",defaultResult=hasPre?"prerelease":"";for(const key in v1)if((key==="major"||key==="minor"||key==="patch")&&v1[key]!==v2[key])return prefix+key;return defaultResult}};module.exports=diff},60744:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},41047:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},399:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},77082:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),inc=(version,release,options,identifier)=>{typeof options=="string"&&(identifier=options,options=void 0);try{return new SemVer(version,options).inc(release,identifier).version}catch{return null}};module.exports=inc},2414:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},94336:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},64209:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},24893:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},86442:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},68195:(module,__unused_webpack_exports,__webpack_require__)=>{const{MAX_LENGTH}=__webpack_require__(50267),{re,t}=__webpack_require__(41773),SemVer=__webpack_require__(94631),parseOptions=__webpack_require__(57644),parse=(version,options)=>{if(options=parseOptions(options),version instanceof SemVer)return version;if(typeof version!="string"||version.length>MAX_LENGTH||!(options.loose?re[t.LOOSE]:re[t.FULL]).test(version))return null;try{return new SemVer(version,options)}catch{return null}};module.exports=parse},94354:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},59509:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},63586:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(88847),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},40899:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(34029),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},64287:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},26853:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(34029),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},36860:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(68195),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},24930:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(41773);module.exports={re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:__webpack_require__(50267).SEMVER_SPEC_VERSION,SemVer:__webpack_require__(94631),compareIdentifiers:__webpack_require__(530).compareIdentifiers,rcompareIdentifiers:__webpack_require__(530).rcompareIdentifiers,parse:__webpack_require__(68195),valid:__webpack_require__(36860),clean:__webpack_require__(65679),inc:__webpack_require__(77082),diff:__webpack_require__(95669),major:__webpack_require__(64209),minor:__webpack_require__(24893),patch:__webpack_require__(94354),prerelease:__webpack_require__(59509),compare:__webpack_require__(88847),rcompare:__webpack_require__(63586),compareLoose:__webpack_require__(9e3),compareBuild:__webpack_require__(34029),sort:__webpack_require__(26853),rsort:__webpack_require__(40899),gt:__webpack_require__(41047),lt:__webpack_require__(2414),eq:__webpack_require__(60744),neq:__webpack_require__(86442),gte:__webpack_require__(399),lte:__webpack_require__(94336),cmp:__webpack_require__(46279),coerce:__webpack_require__(8583),Comparator:__webpack_require__(16341),Range:__webpack_require__(73101),satisfies:__webpack_require__(64287),toComparators:__webpack_require__(87271),maxSatisfying:__webpack_require__(57866),minSatisfying:__webpack_require__(2659),minVersion:__webpack_require__(52910),validRange:__webpack_require__(31367),outside:__webpack_require__(1909),gtr:__webpack_require__(59658),ltr:__webpack_require__(38311),intersects:__webpack_require__(74167),simplifyRange:__webpack_require__(21652),subset:__webpack_require__(12349)}},50267:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16;module.exports={SEMVER_SPEC_VERSION,MAX_LENGTH:256,MAX_SAFE_INTEGER,MAX_SAFE_COMPONENT_LENGTH}},25613:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},530:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},57644:module=>{const opts=["includePrerelease","loose","rtl"],parseOptions=options=>options?typeof options!="object"?{loose:!0}:opts.filter(k=>options[k]).reduce((options2,k)=>(options2[k]=!0,options2),{}):{};module.exports=parseOptions},41773:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(50267),debug=__webpack_require__(25613);exports=module.exports={};const re=exports.re=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value2,isGlobal)=>{const index=R++;debug(index,value2),t[name]=index,src[index]=value2,re[index]=new RegExp(value2,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},59658:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(1909),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},74167:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2));module.exports=intersects},38311:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(1909),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},57866:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Range=__webpack_require__(73101),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},2659:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Range=__webpack_require__(73101),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},52910:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Range=__webpack_require__(73101),gt=__webpack_require__(41047),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},1909:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(94631),Comparator=__webpack_require__(16341),{ANY}=Comparator,Range=__webpack_require__(73101),satisfies=__webpack_require__(64287),gt=__webpack_require__(41047),lt=__webpack_require__(2414),lte=__webpack_require__(94336),gte=__webpack_require__(399),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},21652:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(64287),compare=__webpack_require__(88847);module.exports=(versions,range,options)=>{const set=[];let min=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,min||(min=version)):(prev&&set.push([min,prev]),prev=null,min=null);min&&set.push([min,null]);const ranges=[];for(const[min2,max]of set)min2===max?ranges.push(min2):!max&&min2===v[0]?ranges.push("*"):max?min2===v[0]?ranges.push(`<=${max}`):ranges.push(`${min2} - ${max}`):ranges.push(`>=${min2}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},12349:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),{ANY}=__webpack_require__(16341),satisfies=__webpack_require__(64287),compare=__webpack_require__(88847),subset=(sub,dom,options)=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY)return dom.length===1&&dom[0].semver===ANY;const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT;for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},87271:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},31367:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(73101),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},33604:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}}module.exports=Comparator;const parseOptions=__webpack_require__(84995),{safeRe:re,t}=__webpack_require__(46382),cmp=__webpack_require__(90964),debug=__webpack_require__(69191),SemVer=__webpack_require__(36660),Range=__webpack_require__(76520)},76520:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r)).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(18968),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(84995),Comparator=__webpack_require__(33604),debug=__webpack_require__(69191),SemVer=__webpack_require__(36660),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(46382),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=__webpack_require__(63809),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},36660:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(69191),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(63809),{safeRe:re,t}=__webpack_require__(46382),parseOptions=__webpack_require__(84995),{compareIdentifiers}=__webpack_require__(2719);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}module.exports=SemVer},42989:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},90964:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(79615),neq=__webpack_require__(44710),gt=__webpack_require__(7433),gte=__webpack_require__(71413),lt=__webpack_require__(52053),lte=__webpack_require__(30854),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},46259:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),parse=__webpack_require__(17794),{safeRe:re,t}=__webpack_require__(46382),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},38234:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},79440:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},46647:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},96704:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),diff=(version1,version2)=>{const v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;const v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return!lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";const prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff},79615:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},7433:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},71413:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},98865:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc},52053:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},30854:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},28409:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},27683:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},44710:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},17794:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse},60033:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},55003:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},94820:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(46647),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},58401:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(38234),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},36048:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},35892:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(38234),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},99480:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17794),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},9131:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(46382),constants=__webpack_require__(63809),SemVer=__webpack_require__(36660),identifiers=__webpack_require__(2719),parse=__webpack_require__(17794),valid=__webpack_require__(99480),clean=__webpack_require__(42989),inc=__webpack_require__(98865),diff=__webpack_require__(96704),major=__webpack_require__(28409),minor=__webpack_require__(27683),patch=__webpack_require__(60033),prerelease=__webpack_require__(55003),compare=__webpack_require__(46647),rcompare=__webpack_require__(94820),compareLoose=__webpack_require__(79440),compareBuild=__webpack_require__(38234),sort=__webpack_require__(35892),rsort=__webpack_require__(58401),gt=__webpack_require__(7433),lt=__webpack_require__(52053),eq=__webpack_require__(79615),neq=__webpack_require__(44710),gte=__webpack_require__(71413),lte=__webpack_require__(30854),cmp=__webpack_require__(90964),coerce=__webpack_require__(46259),Comparator=__webpack_require__(33604),Range=__webpack_require__(76520),satisfies=__webpack_require__(36048),toComparators=__webpack_require__(66357),maxSatisfying=__webpack_require__(89271),minSatisfying=__webpack_require__(20572),minVersion=__webpack_require__(50618),validRange=__webpack_require__(34400),outside=__webpack_require__(37854),gtr=__webpack_require__(72407),ltr=__webpack_require__(37996),intersects=__webpack_require__(40547),simplifyRange=__webpack_require__(77575),subset=__webpack_require__(3305);module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},63809:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},69191:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},2719:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},84995:module=>{const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions},46382:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(63809),debug=__webpack_require__(69191);exports=module.exports={};const re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value2,isGlobal)=>{const safe=value2.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),index=R++;debug(name,index,value2),t[name]=index,src[index]=value2,re[index]=new RegExp(value2,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},72407:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(37854),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},40547:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects},37996:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(37854),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},89271:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Range=__webpack_require__(76520),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},20572:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Range=__webpack_require__(76520),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},50618:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Range=__webpack_require__(76520),gt=__webpack_require__(7433),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},37854:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(36660),Comparator=__webpack_require__(33604),{ANY}=Comparator,Range=__webpack_require__(76520),satisfies=__webpack_require__(36048),gt=__webpack_require__(7433),lt=__webpack_require__(52053),lte=__webpack_require__(30854),gte=__webpack_require__(71413),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},77575:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(36048),compare=__webpack_require__(46647);module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},3305:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),Comparator=__webpack_require__(33604),{ANY}=Comparator,satisfies=__webpack_require__(36048),compare=__webpack_require__(46647),subset=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},66357:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},34400:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(76520),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},34214:module=>{"use strict";module.exports=(string,separator)=>{if(!(typeof string=="string"&&typeof separator=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(separator==="")return[string];const separatorIndex=string.indexOf(separator);return separatorIndex===-1?[string]:[string.slice(0,separatorIndex),string.slice(separatorIndex+separator.length)]}},45632:module=>{"use strict";module.exports=str=>encodeURIComponent(str).replace(/[!'()*]/g,x=>`%${x.charCodeAt(0).toString(16).toUpperCase()}`)},29147:module=>{"use strict";module.exports=2147483647},85128:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(63976),maxTimeout=__webpack_require__(29147);module.exports=function(value2){if(value2=toPosInt(value2),value2>maxTimeout)throw new TypeError(value2+" exceeds maximum possible timeout");return value2}},68519:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isPrototype=__webpack_require__(10794);module.exports=function(value2){if(typeof value2!="function"||!hasOwnProperty.call(value2,"length"))return!1;try{if(typeof value2.length!="number"||typeof value2.call!="function"||typeof value2.apply!="function")return!1}catch{return!1}return!isPrototype(value2)}},63583:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(87205),possibleTypes={object:!0,function:!0,undefined:!0};module.exports=function(value2){return isValue(value2)?hasOwnProperty.call(possibleTypes,typeof value2):!1}},78970:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isFunction=__webpack_require__(68519),classRe=/^\s*class[\s{/}]/,functionToString=Function.prototype.toString;module.exports=function(value2){return!(!isFunction(value2)||classRe.test(functionToString.call(value2)))}},10794:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isObject=__webpack_require__(63583);module.exports=function(value2){if(!isObject(value2))return!1;try{return value2.constructor?value2.constructor.prototype===value2:!1}catch{return!1}}},87205:module=>{"use strict";var _undefined=void 0;module.exports=function(value2){return value2!==_undefined&&value2!==null}},98367:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(name,context,definition){module.exports?module.exports=definition():(__WEBPACK_AMD_DEFINE_FACTORY__=definition,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__=="function"?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})("urljoin",this,function(){function normalize(strArray){var resultArray=[];if(strArray.length===0)return"";if(typeof strArray[0]!="string")throw new TypeError("Url must be a string. Received "+strArray[0]);if(strArray[0].match(/^[^/:]+:\/*$/)&&strArray.length>1){var first=strArray.shift();strArray[0]=first+strArray[0]}strArray[0].match(/^file:\/\/\//)?strArray[0]=strArray[0].replace(/^([^/:]+):\/*/,"$1:///"):strArray[0]=strArray[0].replace(/^([^/:]+):\/*/,"$1://");for(var i=0;i<strArray.length;i++){var component=strArray[i];if(typeof component!="string")throw new TypeError("Url must be a string. Received "+component);component!==""&&(i>0&&(component=component.replace(/^[\/]+/,"")),i<strArray.length-1?component=component.replace(/[\/]+$/,""):component=component.replace(/[\/]+$/,"/"),resultArray.push(component))}var str=resultArray.join("/");str=str.replace(/\/(\?|&|#[^!])/g,"$1");var parts=str.split("?");return str=parts.shift()+(parts.length>0?"?":"")+parts.join("&"),str}return function(){var input;return typeof arguments[0]=="object"?input=arguments[0]:input=[].slice.call(arguments),normalize(input)}})},15293:(__unused_webpack_module,exports,__webpack_require__)=>{var r=__webpack_require__(59496);function n(n2,e2,t2){var u=this,c=r.useRef(null),i=r.useRef(0),a=r.useRef(null),f=r.useRef([]),o=r.useRef(),l=r.useRef(),s=r.useRef(n2),v=r.useRef(!0);r.useEffect(function(){s.current=n2},[n2]);var m=!e2&&e2!==0&&typeof window<"u";if(typeof n2!="function")throw new TypeError("Expected a function");e2=+e2||0;var d=!!(t2=t2||{}).leading,p=!("trailing"in t2)||!!t2.trailing,R="maxWait"in t2,g=R?Math.max(+t2.maxWait||0,e2):null;r.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var x=r.useMemo(function(){var r2=function(r3){var n4=f.current,e3=o.current;return f.current=o.current=null,i.current=r3,l.current=s.current.apply(e3,n4)},n3=function(r3,n4){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(r3):setTimeout(r3,n4)},t3=function(r3){if(!v.current)return!1;var n4=r3-c.current;return!c.current||n4>=e2||n4<0||R&&r3-i.current>=g},x2=function(n4){return a.current=null,p&&f.current?r2(n4):(f.current=o.current=null,l.current)},w=function r3(){var u2=Date.now();if(t3(u2))return x2(u2);if(v.current){var a2=e2-(u2-c.current),f2=R?Math.min(a2,g-(u2-i.current)):a2;n3(r3,f2)}},b=function(){var s2=Date.now(),m2=t3(s2);if(f.current=[].slice.call(arguments),o.current=u,c.current=s2,m2){if(!a.current&&v.current)return i.current=c.current,n3(w,e2),d?r2(c.current):l.current;if(R)return n3(w,e2),r2(c.current)}return a.current||n3(w,e2),l.current};return b.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,f.current=c.current=o.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?x2(Date.now()):l.current},b},[d,R,e2,g,p,m]);return x}function e(r2,n2){return r2===n2}function t(r2){return typeof r2=="function"?function(){return r2}:r2}exports.useDebounce=function(u,c,i){var a,f,o=i&&i.equalityFn||e,l=(a=r.useState(t(u)),f=a[1],[a[0],r.useCallback(function(r2){return f(t(r2))},[])]),s=l[0],v=l[1],m=n(r.useCallback(function(r2){return v(r2)},[v]),c,i),d=r.useRef(u);return o(d.current,u)||(m(u),d.current=u),[s,m]},exports.useDebouncedCallback=n,exports.useThrottledCallback=function(r2,e2,t2){var u=t2===void 0?{}:t2,c=u.leading,i=u.trailing;return n(r2,e2,{maxWait:e2,leading:c===void 0||c,trailing:i===void 0||i})}},92674:(module,__unused_webpack_exports,__webpack_require__)=>{var v1=__webpack_require__(62335),v4=__webpack_require__(85234),uuid=v4;uuid.v1=v1,uuid.v4=v4,module.exports=uuid},40614:module=>{for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function bytesToUuid(buf,offset){var i2=offset||0,bth=byteToHex;return[bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],"-",bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]],bth[buf[i2++]]].join("")}module.exports=bytesToUuid},10537:module=>{var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);module.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);module.exports=function(){for(var i=0,r;i<16;i++)(i&3)===0&&(r=Math.random()*4294967296),rnds[i]=r>>>((i&3)<<3)&255;return rnds}}},62335:(module,__unused_webpack_exports,__webpack_require__)=>{var rng=__webpack_require__(10537),bytesToUuid=__webpack_require__(40614),_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0,b=buf||[];options=options||{};var node=options.node||_nodeId,clockseq=options.clockseq!==void 0?options.clockseq:_clockseq;if(node==null||clockseq==null){var seedBytes=rng();node==null&&(node=_nodeId=[seedBytes[0]|1,seedBytes[1],seedBytes[2],seedBytes[3],seedBytes[4],seedBytes[5]]),clockseq==null&&(clockseq=_clockseq=(seedBytes[6]<<8|seedBytes[7])&16383)}var msecs=options.msecs!==void 0?options.msecs:new Date().getTime(),nsecs=options.nsecs!==void 0?options.nsecs:_lastNSecs+1,dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/1e4;if(dt<0&&options.clockseq===void 0&&(clockseq=clockseq+1&16383),(dt<0||msecs>_lastMSecs)&&options.nsecs===void 0&&(nsecs=0),nsecs>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=msecs,_lastNSecs=nsecs,_clockseq=clockseq,msecs+=122192928e5;var tl=((msecs&268435455)*1e4+nsecs)%4294967296;b[i++]=tl>>>24&255,b[i++]=tl>>>16&255,b[i++]=tl>>>8&255,b[i++]=tl&255;var tmh=msecs/4294967296*1e4&268435455;b[i++]=tmh>>>8&255,b[i++]=tmh&255,b[i++]=tmh>>>24&15|16,b[i++]=tmh>>>16&255,b[i++]=clockseq>>>8|128,b[i++]=clockseq&255;for(var n=0;n<6;++n)b[i+n]=node[n];return buf||bytesToUuid(b)}module.exports=v1},85234:(module,__unused_webpack_exports,__webpack_require__)=>{var rng=__webpack_require__(10537),bytesToUuid=__webpack_require__(40614);function v4(options,buf,offset){var i=buf&&offset||0;typeof options=="string"&&(buf=options==="binary"?new Array(16):null,options=null),options=options||{};var rnds=options.random||(options.rng||rng)();if(rnds[6]=rnds[6]&15|64,rnds[8]=rnds[8]&63|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||bytesToUuid(rnds)}module.exports=v4},91162:module=>{"use strict";module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value}}},79900:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Yallist,Yallist.Node=Node2,Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item)});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(!!this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(!!this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p}return this.head=tail,this.tail=head,this};function insert(self2,node,value2){var inserted=node===self2.head?new Node2(value2,null,node,self2):new Node2(value2,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node2(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++}function unshift(self2,item){self2.head=new Node2(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++}function Node2(value2,prev,next,list){if(!(this instanceof Node2))return new Node2(value2,prev,next,list);this.list=list,this.value=value2,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null}try{__webpack_require__(91162)(Yallist)}catch{}},98695:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CommandBarAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const CommandBarAspect=exports.CommandBarAspect=_harmony().Aspect.create({id:"teambit.explorer/command-bar",dependencies:[],defaultConfig:{}});var _default=exports.default=CommandBarAspect},97996:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _keybinding(){const data=__webpack_require__(20625);return _keybinding=function(){return data},data}function _commandBar(){const data=__webpack_require__(98695);return _commandBar=function(){return data},data}function _keyEvent(){const data=__webpack_require__(1729);return _keyEvent=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class CommandBarPreview{constructor(pubSub){this.pubSub=pubSub,_defineProperty(this,"handleKeyEvent",e=>{const{target}=e;!target||isEditable(target)||(isDenyListed(e)&&e.preventDefault(),this.pubSub.pub(_commandBar().CommandBarAspect.id,new(_keyEvent()).KeyEvent(e)))}),document.addEventListener("keydown",this.handleKeyEvent),document.addEventListener("keypress",this.handleKeyEvent),document.addEventListener("keyup",this.handleKeyEvent)}static async provider([pubSub]){return new CommandBarPreview(pubSub)}}__webpack_unused_export__=CommandBarPreview,_defineProperty(CommandBarPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(CommandBarPreview,"runtime",_preview().PreviewRuntime);const editableTags=["INPUT","SELECT","TEXTAREA"];function isEditable(element){return editableTags.includes(element.tagName)||element.isContentEditable}_commandBar().CommandBarAspect.addRuntime(CommandBarPreview);function isDenyListed(e){return(0,_keybinding().isOpenCommandBarKeybinding)(e)}},20625:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.openCommandBarKeybinding=exports.isOpenCommandBarKeybinding=void 0;const openCommandBarKeybinding=exports.openCommandBarKeybinding="mod+k",isOpenCommandBarKeybinding=e=>(e.ctrlKey||e.metaKey)&&e.key==="k";exports.isOpenCommandBarKeybinding=isOpenCommandBarKeybinding},1729:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"KeyEvent",{enumerable:!0,get:function(){return _keyEvent().KeyEvent}});function _keyEvent(){const data=__webpack_require__(30364);return _keyEvent=function(){return data},data}},30364:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KeyEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _serializeKeyboardEvent(){const data=__webpack_require__(71921);return _serializeKeyboardEvent=function(){return data},data}class KeyEvent extends _pubsub().BitBaseEvent{constructor(event,timestamp=Date.now()){const serialized=(0,_serializeKeyboardEvent().serializeKeyboardEvent)(event);super(event.type,"0.0.1",timestamp,serialized)}}exports.KeyEvent=KeyEvent},71921:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.serializeKeyboardEvent=serializeKeyboardEvent;function _isPrimitive(){const data=_interopRequireDefault(__webpack_require__(51616));return _isPrimitive=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function serializeKeyboardEvent(e){const serialized={};for(const key in e){const val=e[key];(0,_isPrimitive().default)(val)&&(serialized[key]=val)}return serialized}},36717:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CompositionsAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const CompositionsAspect=exports.CompositionsAspect=_harmony().Aspect.create({id:"teambit.compositions/compositions",dependencies:[],defaultConfig:{}});var _default=exports.default=CompositionsAspect},61517:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _lodash(){const data=_interopRequireDefault(__webpack_require__(40733));return _lodash=function(){return data},data}function _compositions(){const data=__webpack_require__(36717);return _compositions=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class CompositionsPreview{constructor(preview){this.preview=preview}render(componentId,envId,modules,otherPreviewDefs,context){if(!modules.componentMap[componentId.fullName])return;const compositions=this.selectPreviewModel(componentId.fullName,modules),metadata=this.getMetadata(componentId.fullName,modules),active=this.getActiveComposition(compositions,metadata);let defaultExports=(modules.modulesMap[envId]||modules.modulesMap.default).default;typeof defaultExports!="function"&&defaultExports.default&&(defaultExports=defaultExports.default),defaultExports(active,context)}selectPreviewModel(componentFullName,previewModule){const files=previewModule.componentMap[componentFullName]||[];return Object.assign({},...files)}getMetadata(componentFullName,previewModule){const metadata=previewModule?.componentMapMetadata?previewModule.componentMapMetadata[componentFullName]:void 0;if(metadata)return metadata}getActiveComposition(module,metadata){const firstQueryParam=window.location.hash.split("&")[1],query=this.preview.getQuery(),compositionId=this.preview.getParam(query,"name")||firstQueryParam;if(compositionId&&module[compositionId])return module[compositionId];if(metadata&&metadata.compositions){const firstId=(0,_lodash().default)(metadata.compositions)?.identifier;if(firstId&&module[firstId])return module[firstId]}return(0,_lodash().default)(Object.values(module))}static async provider([preview]){const compPreview=new CompositionsPreview(preview);return preview.registerPreview({name:"compositions",render:compPreview.render.bind(compPreview),selectPreviewModel:compPreview.selectPreviewModel.bind(compPreview),default:!0}),compPreview}}__webpack_unused_export__=CompositionsPreview,_defineProperty(CompositionsPreview,"runtime",_preview().PreviewRuntime),_defineProperty(CompositionsPreview,"dependencies",[_preview().PreviewAspect]),_compositions().CompositionsAspect.addRuntime(CompositionsPreview)},12825:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DocsAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const DocsAspect=exports.DocsAspect=_harmony().Aspect.create({id:"teambit.docs/docs",dependencies:[],defaultConfig:{}});var _default=exports.default=DocsAspect},90428:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _react(){const data=_interopRequireDefault(__webpack_require__(59496));return _react=function(){return data},data}function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _docs(){const data=__webpack_require__(12825);return _docs=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class DocsPreview{constructor(preview){this.preview=preview,_defineProperty(this,"render",(componentId,envId,modules,[compositions],context)=>{const docsModule=this.selectPreviewModel(componentId.fullName,modules);let defaultExports=(modules.modulesMap[envId]||modules.modulesMap.default).default;if(typeof defaultExports!="function"&&defaultExports.default&&(defaultExports=defaultExports.default),!!!defaultExports.apiObject){const docsPropsArray=[NoopProvider,componentId.toString(),docsModule,compositions,context];defaultExports(...docsPropsArray);return}const docsProps={Provider:NoopProvider,componentId:componentId.toString(),docs:docsModule,compositions,context};defaultExports(docsProps)})}selectPreviewModel(componentId,modules){const relevant=modules.componentMap[componentId];if(!!relevant)return relevant[0]}static async provider([preview]){const docsPreview=new DocsPreview(preview);return preview.registerPreview({name:"overview",render:docsPreview.render.bind(docsPreview),selectPreviewModel:docsPreview.selectPreviewModel.bind(docsPreview),include:["compositions"]}),docsPreview}}__webpack_unused_export__=DocsPreview,_defineProperty(DocsPreview,"runtime",_preview().PreviewRuntime),_defineProperty(DocsPreview,"dependencies",[_preview().PreviewAspect]),_docs().DocsAspect.addRuntime(DocsPreview);function NoopProvider({children}){return _react().default.createElement(_react().default.Fragment,null,children)}},80396:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickInsideAnIframeEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ClickInsideAnIframeEventData{constructor(clickEvent){this.clickEvent=clickEvent}}class ClickInsideAnIframeEvent extends _pubsub().BitBaseEvent{constructor(timestamp=Date.now(),clickEvent){super(ClickInsideAnIframeEvent.TYPE,"0.0.1",timestamp,new ClickInsideAnIframeEventData(clickEvent));this.timestamp=timestamp,this.clickEvent=clickEvent}}exports.ClickInsideAnIframeEvent=ClickInsideAnIframeEvent,_defineProperty(ClickInsideAnIframeEvent,"TYPE","click-inside-an-iframe")},67335:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _clickInsideAnIframe=__webpack_require__(80396);Object.keys(_clickInsideAnIframe).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_clickInsideAnIframe[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _clickInsideAnIframe[key]}})})},21396:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BundlingStrategyNotFound=void 0;class BundlingStrategyNotFound extends Error{constructor(strategyName){super(`bundling strategy with name ${strategyName} was not found`);this.strategyName=strategyName}}exports.BundlingStrategyNotFound=BundlingStrategyNotFound},67166:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BundlingStrategyNotFound",{enumerable:!0,get:function(){return _bundlingStrategyNotFound().BundlingStrategyNotFound}}),Object.defineProperty(exports,"PreviewArtifactNotFound",{enumerable:!0,get:function(){return _previewArtifactNotFound().PreviewArtifactNotFound}}),Object.defineProperty(exports,"PreviewNotFound",{enumerable:!0,get:function(){return _previewNotFound().PreviewNotFound}}),Object.defineProperty(exports,"PreviewOutputFileNotFound",{enumerable:!0,get:function(){return _previewOutputFileNotFound().PreviewOutputFileNotFound}});function _previewNotFound(){const data=__webpack_require__(39517);return _previewNotFound=function(){return data},data}function _previewArtifactNotFound(){const data=__webpack_require__(82330);return _previewArtifactNotFound=function(){return data},data}function _bundlingStrategyNotFound(){const data=__webpack_require__(21396);return _bundlingStrategyNotFound=function(){return data},data}function _previewOutputFileNotFound(){const data=__webpack_require__(13291);return _previewOutputFileNotFound=function(){return data},data}},82330:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewArtifactNotFound=void 0;function _bitError(){const data=__webpack_require__(74155);return _bitError=function(){return data},data}class PreviewArtifactNotFound extends _bitError().BitError{constructor(componentId){super(`preview for component ${componentId.toString()} was not found`)}}exports.PreviewArtifactNotFound=PreviewArtifactNotFound},39517:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewNotFound=void 0;class PreviewNotFound extends Error{constructor(name){super(`Preview for name: ${name} was not found`)}}exports.PreviewNotFound=PreviewNotFound},13291:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewOutputFileNotFound=void 0;function _bitError(){const data=__webpack_require__(74155);return _bitError=function(){return data},data}class PreviewOutputFileNotFound extends _bitError().BitError{constructor(componentId,filePath){super(`preview output file for component: "${componentId.toString()}" was not found in the path: "${filePath}".
|
78
78
|
|
79
79
|
This is usually a result of an error during the bundling process.
|
80
80
|
The error might be an error of another component that uses the same env.
|
81
81
|
Run "bit build" with "--dev" to see more info.
|
82
|
-
Run "bit envs" to see other components that uses the same env`)}}exports.PreviewOutputFileNotFound=PreviewOutputFileNotFound},73110:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fetchComponentAspects=fetchComponentAspects;function _graphqlRequest(){const data=__webpack_require__(
|
82
|
+
Run "bit envs" to see other components that uses the same env`)}}exports.PreviewOutputFileNotFound=PreviewOutputFileNotFound},73110:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fetchComponentAspects=fetchComponentAspects;function _graphqlRequest(){const data=__webpack_require__(37620);return _graphqlRequest=function(){return data},data}const GQL_SERVER="/graphql",GET_COMPONENT_ASPECTS=(0,_graphqlRequest().gql)`
|
83
83
|
query getComponentAspects($id: String!) {
|
84
84
|
getHost {
|
85
85
|
id
|
@@ -90,19 +90,19 @@ Run "bit envs" to see other components that uses the same env`)}}exports.Preview
|
|
90
90
|
}
|
91
91
|
}
|
92
92
|
}
|
93
|
-
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},79271:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},49471:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={PreviewAspect:!0,PreviewRuntime:!0,ENV_PREVIEW_STRATEGY_NAME:!0,COMPONENT_PREVIEW_STRATEGY_NAME:!0};Object.defineProperty(exports,"COMPONENT_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().COMPONENT_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"ENV_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().ENV_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"PreviewAspect",{enumerable:!0,get:function(){return _preview().PreviewAspect}}),Object.defineProperty(exports,"PreviewRuntime",{enumerable:!0,get:function(){return _preview().PreviewRuntime}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _preview().PreviewAspect}});function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}var _events=__webpack_require__(67335);Object.keys(_events).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_events[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _events[key]}})});function _strategiesNames(){const data=__webpack_require__(87144);return _strategiesNames=function(){return data},data}},2094:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(27060);return _previewModules=function(){return data},data}},22395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},74649:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().linkModules}};function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(99978);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(45005));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(3105));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(32699);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(67166);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(67335);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(85216);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(73110);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(2094);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(79271);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(14285);return _sizeEvent=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},85216:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},14285:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},87144:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ENV_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME=void 0;const ENV_PREVIEW_STRATEGY_NAME=exports.ENV_PREVIEW_STRATEGY_NAME="env",COMPONENT_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME="component"},43979:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},23179:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(43979);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(17796);return _pubsubContext=function(){return data},data}},14339:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PubSubNoParentError=void 0;class PubSubNoParentError extends Error{constructor(){super("could not connect to parent window");this.name="PubSubNoParentError"}}exports.PubSubNoParentError=PubSubNoParentError},17796:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},56646:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},53707:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _uiFoundationUi(){const data=__webpack_require__(48843);return _uiFoundationUi=function(){return data},data}function _eventemitter(){const data=__webpack_require__(42481);return _eventemitter=function(){return data},data}function _penpal(){const data=__webpack_require__(63805);return _penpal=function(){return data},data}function _noParentError(){const data=__webpack_require__(14339);return _noParentError=function(){return data},data}function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PubsubPreview{constructor(){_defineProperty(this,"_parentPubsub",void 0),_defineProperty(this,"events",new(_eventemitter()).EventEmitter2),_defineProperty(this,"connectToParentPubSub",(retries=10)=>{if(retries<=0)throw new(_noParentError()).PubSubNoParentError;return(0,_penpal().connectToParent)({timeout:300,methods:{pub:this.handleMessageFromParent}}).promise.then(parentPubsub=>this._parentPubsub=parentPubsub).catch(e=>{if(e.code!==_penpal().ErrorCode.ConnectionTimeout)throw e;return this.connectToParentPubSub(retries-1)})}),_defineProperty(this,"handleMessageFromParent",(topic,message)=>{this.events.emit(topic,message)})}sub(topic,callback){const emitter=this.events;return emitter.on(topic,callback),()=>{emitter.off(topic,callback)}}pub(topic,event){this.events.emit(topic,event),this._parentPubsub?.pub(topic,event).catch(err=>{console.error("[Pubsub.preview]",err)})}inIframe(){try{return _uiFoundationUi().isBrowser&&window.self!==window.top}catch{return!1}}static async provider(){const pubsubPreview=new PubsubPreview;return pubsubPreview.inIframe()&&pubsubPreview.connectToParentPubSub().catch(err=>{err instanceof _noParentError().PubSubNoParentError||console.error("[Pubsub.preview]",err)}),pubsubPreview}}__webpack_unused_export__=PubsubPreview,_defineProperty(PubsubPreview,"runtime",_preview().PreviewRuntime),_pubsub().PubsubAspect.addRuntime(PubsubPreview)},38117:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactNativeAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactNativeAspect=exports.ReactNativeAspect=_harmony().Aspect.create({id:"teambit.react/react-native"});var _default=exports.default=ReactNativeAspect},65883:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _react(){const data=__webpack_require__(32750);return _react=function(){return data},data}function _reactNative(){const data=__webpack_require__(38117);return _reactNative=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactNativePreview{constructor(reactPreview,preview){this.reactPreview=reactPreview,this.preview=preview,_defineProperty(this,"registerProvider",this.reactPreview.registerProvider.bind(this.reactPreview)),_defineProperty(this,"getRenderingContext",this.reactPreview.getRenderingContext.bind(this.reactPreview))}static async provider([reactPreview,preview]){const reactNativePreview=new ReactNativePreview(reactPreview,preview);return preview.registerRenderContext(reactNativePreview.getRenderingContext),reactNativePreview}}__webpack_unused_export__=ReactNativePreview,_defineProperty(ReactNativePreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactNativePreview,"slots",[]),_defineProperty(ReactNativePreview,"dependencies",[_react().ReactAspect,_preview().PreviewAspect]),_reactNative().ReactNativeAspect.addRuntime(ReactNativePreview);var _default=__webpack_unused_export__=ReactNativePreview},28547:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=exports.PARAM_NAME=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_ui_component_highlighter_1=__webpack_require__(29537),query_string_1=__importDefault(__webpack_require__(42546)),highlighter_provider_module_scss_1=__importDefault(__webpack_require__(26585));exports.PARAM_NAME="highlighter";const classes={container:highlighter_provider_module_scss_1.default.label};function useHash(){const[hash,setHash]=(0,react_1.useState)(window?window.location.hash:"");return(0,react_1.useEffect)(()=>{const updateHash=()=>{setHash(window.location.hash)};return updateHash(),window.addEventListener("hashchange",updateHash),()=>{window.removeEventListener("hashchange",updateHash)}},[]),hash}const HighlighterProvider=({children})=>{const hash=useHash(),isActive=(0,react_1.useMemo)(()=>{const hashQuery=hash.split("?")[1];return query_string_1.default.parse(hashQuery)[exports.PARAM_NAME]==="true"},[hash]);return react_1.default.createElement(react_ui_component_highlighter_1.ComponentHighlighter,{disabled:!isActive,className:(0,classnames_1.default)(highlighter_provider_module_scss_1.default.highlighter,isActive&&highlighter_provider_module_scss_1.default.active),classes},children)};exports.HighlighterProvider=HighlighterProvider},87656:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=void 0;var highlighter_provider_1=__webpack_require__(28547);Object.defineProperty(exports,"HighlighterProvider",{enumerable:!0,get:function(){return highlighter_provider_1.HighlighterProvider}})},32750:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ReactAspect",{enumerable:!0,get:function(){return _react().ReactAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _react().ReactAspect}});function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}},72864:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactAspect=exports.ReactAspect=_harmony().Aspect.create({id:"teambit.react/react"});var _default=exports.default=ReactAspect},28177:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _lodash(){const data=_interopRequireDefault(__webpack_require__(11549));return _lodash=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _reactUi(){const data=__webpack_require__(87656);return _reactUi=function(){return data},data}function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactPreview{constructor(preview,providerSlot){this.preview=preview,this.providerSlot=providerSlot,_defineProperty(this,"getRenderingContext",({aspectsFilter})=>{let entries=this.providerSlot.toArray();if(aspectsFilter){const allowedAspects=new Set(aspectsFilter);allowedAspects.add(_react().ReactAspect.id),entries=entries.filter(([aspectId])=>allowedAspects.has(aspectId))}return{providers:(0,_lodash().default)(entries.map(([,provider])=>provider))}})}registerProvider(provider){this.providerSlot.register(provider)}static async provider([preview],config,[providerSlot]){const reactPreview=new ReactPreview(preview,providerSlot);return reactPreview.registerProvider([_reactUi().HighlighterProvider]),preview.registerRenderContext(reactPreview.getRenderingContext),reactPreview}}__webpack_unused_export__=ReactPreview,_defineProperty(ReactPreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactPreview,"slots",[_harmony().Slot.withType()]),_defineProperty(ReactPreview,"dependencies",[_preview().PreviewAspect]),_react().ReactAspect.addRuntime(ReactPreview);var _default=__webpack_unused_export__=ReactPreview},17462:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(55669),_teambit_harmony__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_teambit_harmony__WEBPACK_IMPORTED_MODULE_0__),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(22395),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12825),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(36717),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(56646),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(72864),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(38117),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(98695),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(74649),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_preview_runtime_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(90428),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_preview_runtime_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61517),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_preview_runtime_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(53707),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_preview_runtime_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28177),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_preview_runtime_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(65883),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_preview_runtime_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(97996);function generateSlot(length=5){return Array.from(Array(length)).map(()=>Slot.withType())}const isBrowser=typeof window<"u",windowConfig=isBrowser?window.harmonyAppConfig:void 0,mergedConfig={...JSON.parse('{"teambit.workspace/workspace":{"name":"bit","icon":"https://static.bit.dev/bit-logo.svg","defaultScope":"teambit.bit","defaultDirectory":"components","resolveEnvsFromRoots":false},"teambit.dependencies/dependency-resolver":{"packageManager":"teambit.dependencies/pnpm","policy":{"dependencies":{"@babel/core":"7.19.6","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","@babel/types":"7.22.3","@bitdev/node.generators.node-templates":"^2.0.2","@bitdev/react.generators.react-templates":"^2.0.1","@bitdev/symphony.generators.symphony-templates":"^1.0.0","@dagrejs/dagre":"^1.1.2","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"26.6.2","@mdx-js/mdx":"1.6.21","@mdx-js/react":"1.6.22","@monaco-editor/react":"4.4.6","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/client":"11.0.6","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config":"21.2.2","@pnpm/core":"14.1.4","@pnpm/default-reporter":"13.1.1","@pnpm/dependency-path":"5.0.0","@pnpm/error":"6.0.1","@pnpm/fetch":"8.0.1","@pnpm/list":"^10.1.3","@pnpm/lockfile-file":"9.0.6","@pnpm/logger":"5.0.0","@pnpm/modules-yaml":"13.1.1","@pnpm/network.ca-file":"3.0.0","@pnpm/package-store":"20.1.2","@pnpm/parse-overrides":"5.0.1","@pnpm/pick-registry-for-package":"6.0.1","@pnpm/plugin-commands-publishing":"8.1.4","@pnpm/plugin-commands-rebuild":"11.1.4","@pnpm/registry-mock":"3.4.0","@pnpm/reviewing.dependencies-hierarchy":"^3.1.3","@pnpm/semver-diff":"1.1.0","@pnpm/sort-packages":"6.0.2","@pnpm/store-connection-manager":"8.1.4","@pnpm/types":"10.1.0","@pnpm/worker":"1.0.2","@pnpm/workspace.pkgs-graph":"3.0.4","@prerenderer/prerenderer":"^1.2.0","@prerenderer/renderer-jsdom":"^1.1.2","@prerenderer/webpack-plugin":"^5.2.0","@react-hook/latest":"1.0.3","@teambit/any-fs":"0.0.5","@teambit/base-react.layout.row":"0.0.3","@teambit/base-react.navigation.link":"2.0.27","@teambit/base-react.themes.theme-switcher":"^1.0.2","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"0.0.4","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.0","@teambit/base-ui.graph.tree.recursive-tree":"1.0.0","@teambit/base-ui.graph.tree.root-node":"1.0.0","@teambit/base-ui.graph.tree.tree-context":"1.0.0","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.0","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.1","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.background":"1.0.1","@teambit/base-ui.surfaces.card":"1.0.1","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.0","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.1","@teambit/base-ui.text.paragraph":"1.0.1","@teambit/base-ui.text.text-sizes":"1.0.0","@teambit/base-ui.text.themed-text":"1.0.1","@teambit/base-ui.theme.accent-color":"1.1.0","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.1","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.0","@teambit/base-ui.utils.time-ago":"1.0.1","@teambit/bit.content.what-is-bit":"1.96.2","@teambit/bvm.config":"^0.2.3","@teambit/bvm.path":"^0.1.2","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.5","@teambit/code.ui.code-editor":"^0.0.8","@teambit/code.ui.code-tab-tree":"^0.0.613","@teambit/code.ui.dependency-tree":"0.0.546","@teambit/code.ui.hooks.use-code-params":"0.0.496","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"0.0.502","@teambit/code.ui.queries.get-file-content":"0.0.504","@teambit/code.ui.utils.get-file-icon":"0.0.495","@teambit/community.constants.links":"0.0.2","@teambit/community.starters.hello-world":"^0.0.16","@teambit/compilation.babel-compiler":"^1.1.8","@teambit/compilation.content.compiler-overview":"1.95.0","@teambit/component.content.component-overview":"1.95.0","@teambit/component.content.dev-files":"1.95.9","@teambit/component.instructions.exporting-components":"0.0.7","@teambit/component.ui.artifacts.artifacts-tree":"^0.0.26","@teambit/component.ui.artifacts.models.component-artifacts-model":"^0.0.12","@teambit/component.ui.artifacts.queries.use-component-artifacts":"^0.0.14","@teambit/component.ui.badges.component-count":"^0.0.15","@teambit/component.ui.component-compare.compare-aspects.compare-aspect-view":"^0.0.14","@teambit/component.ui.component-compare.compare-aspects.compare-aspects":"^0.0.146","@teambit/component.ui.component-compare.compare-aspects.context":"^0.0.12","@teambit/component.ui.component-compare.compare-aspects.hooks.use-compare-aspects":"^0.0.118","@teambit/component.ui.component-compare.compare-aspects.models.component-compare-aspects-model":"^0.0.11","@teambit/component.ui.component-compare.hooks.use-component-compare":"^0.0.113","@teambit/component.ui.component-compare.hooks.use-component-compare-url":"^0.0.9","@teambit/component.ui.component-compare.layouts.compare-split-layout-preset":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-change-type":"^0.0.7","@teambit/component.ui.component-compare.models.component-compare-hooks":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-model":"^0.0.111","@teambit/component.ui.component-compare.models.component-compare-state":"^0.0.7","@teambit/component.ui.component-compare.status-resolver":"^0.0.9","@teambit/component.ui.component-compare.utils.group-by-version":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-logs":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-tabs":"^0.0.102","@teambit/component.ui.component-deprecated":"^0.0.39","@teambit/component.ui.component-meta":"^0.0.358","@teambit/component.ui.component-size":"^0.0.77","@teambit/component.ui.component-status":"^0.0.504","@teambit/component.ui.component-status-resolver":"^0.0.510","@teambit/component.ui.component-tooltip":"^0.0.509","@teambit/component.ui.deprecation-icon":"^0.0.509","@teambit/component.ui.hooks.use-fetch-docs":"^0.0.21","@teambit/component.ui.version-label":"^0.0.509","@teambit/compositions.ui.composition-compare":"^0.0.255","@teambit/compositions.ui.composition-compare-section":"^0.0.100","@teambit/compositions.ui.compositions-menu-bar":"^0.0.177","@teambit/compositions.ui.compositions-overview":"^0.0.10","@teambit/compositions.ui.hooks.use-composition":"^0.0.177","@teambit/defender.content.formatter-overview":"1.96.1","@teambit/defender.content.linter-overview":"1.95.0","@teambit/defender.content.tester-overview":"1.95.0","@teambit/defender.eslint-linter":"1.0.22","@teambit/defender.prettier-formatter":"1.0.12","@teambit/defender.ui.test-compare-section":"^0.0.100","@teambit/defender.ui.test-loader":"^0.0.504","@teambit/defender.ui.test-row":"^0.0.503","@teambit/defender.ui.test-table":"^0.0.510","@teambit/dependencies.modules.packages-excluder":"^1.0.8","@teambit/design.controls.menu":"^0.0.1","@teambit/design.elements.icon":"1.0.5","@teambit/design.inputs.dropdown":"1.2.16","@teambit/design.inputs.input-text":"1.0.21","@teambit/design.inputs.selectors.multi-select":"0.0.20","@teambit/design.inputs.toggle-button":"0.0.9","@teambit/design.navigation.content-tabs":"0.0.5","@teambit/design.navigation.responsive-navbar":"^0.0.7","@teambit/design.theme.icons-font":"2.0.29","@teambit/design.themes.dark-theme":"1.91.4","@teambit/design.themes.theme-toggler":"0.1.3","@teambit/design.ui.alert-card":"0.0.26","@teambit/design.ui.brand.logo":"1.96.2","@teambit/design.ui.cli-snippet":"0.0.359","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.elements.level-icon":"0.0.20","@teambit/design.ui.empty-box":"0.0.363","@teambit/design.ui.error-page":"0.0.364","@teambit/design.ui.icon-button":"1.0.16","@teambit/design.ui.input.option-button":"1.0.0","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.12","@teambit/design.ui.navigation.link":"^1.96.11","@teambit/design.ui.pages.not-found":"0.0.371","@teambit/design.ui.pages.server-error":"0.0.368","@teambit/design.ui.pages.standalone-not-found-page":"0.0.369","@teambit/design.ui.pill-label":"0.0.356","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.354","@teambit/design.ui.skeletons.sidebar-loader":"0.0.4","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.surfaces.menu.link-item":"1.0.0","@teambit/design.ui.surfaces.menu.section":"^0.0.357","@teambit/design.ui.surfaces.message-card":"0.0.17","@teambit/design.ui.surfaces.status-message-card":"0.0.17","@teambit/design.ui.tree":"0.0.15","@teambit/docs.content.docs-overview":"1.95.9","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.overview-compare":"^1.0.10","@teambit/docs.ui.overview-compare-section":"^0.0.100","@teambit/documenter.code.react-playground":"4.1.9","@teambit/documenter.content.documentation-links":"4.1.3","@teambit/documenter.markdown.hybrid-live-code-snippet":"0.1.12","@teambit/documenter.markdown.mdx":"0.1.13","@teambit/documenter.theme.theme-compositions":"4.1.1","@teambit/documenter.theme.theme-context":"4.0.3","@teambit/documenter.ui.code-snippet":"^4.2.5","@teambit/documenter.ui.copy-box":"4.1.17","@teambit/documenter.ui.heading":"4.1.1","@teambit/documenter.ui.highlighted-text":"4.1.1","@teambit/documenter.ui.label":"4.0.3","@teambit/documenter.ui.label-list":"4.0.3","@teambit/documenter.ui.linked-heading":"4.1.6","@teambit/documenter.ui.paragraph":"4.1.1","@teambit/documenter.ui.property-table":"4.1.10","@teambit/documenter.ui.section":"4.1.1","@teambit/documenter.ui.separator":"4.1.1","@teambit/documenter.ui.sub-title":"4.1.1","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"4.1.13","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.2","@teambit/evangelist.elements.x-button":"1.0.7","@teambit/evangelist.input.checkbox.label":"1.0.3","@teambit/evangelist.surfaces.dropdown":"1.0.2","@teambit/evangelist.surfaces.tooltip":"1.0.1","@teambit/explorer.plugins.preview-plugin":"^0.0.10","@teambit/explorer.ui.command-bar":"^2.0.14","@teambit/explorer.ui.component-card":"^0.0.30","@teambit/explorer.ui.gallery.base-component-card":"0.0.503","@teambit/explorer.ui.gallery.component-card":"^0.0.513","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/git.modules.git-ignore":"^1.0.2","@teambit/harmony":"0.4.6","@teambit/html.generator.html-templates":"^1.0.8","@teambit/html.modules.inject-html-element":"0.0.4","@teambit/html.modules.render-template":"0.0.104","@teambit/lanes.ui.compare.lane-compare":"^0.0.193","@teambit/lanes.ui.compare.lane-compare-drawer":"^0.0.158","@teambit/lanes.ui.compare.lane-compare-hooks.use-lane-diff-status":"^0.0.144","@teambit/lanes.ui.compare.lane-compare-loader":"^0.0.6","@teambit/lanes.ui.compare.lane-compare-page":"^0.0.162","@teambit/lanes.ui.compare.lane-compare-state":"^0.0.11","@teambit/lanes.ui.icons.lane-icon":"^0.0.9","@teambit/lanes.ui.lane-details":"^0.0.204","@teambit/lanes.ui.menus.lanes-overview-menu":"^0.0.10","@teambit/lanes.ui.navigation.lane-switcher":"^0.0.225","@teambit/mdx.compilers.mdx-transpiler":"^1.0.6","@teambit/mdx.generator.mdx-templates":"^1.0.9","@teambit/mdx.modules.mdx-loader":"^1.0.14","@teambit/mdx.ui.docs.link":"0.0.500","@teambit/mdx.ui.docs.snippet":"^0.0.509","@teambit/mdx.ui.mdx-layout":"^1.0.9","@teambit/mdx.ui.mdx-scope-context":"^1.0.5","@teambit/node.utils.esm-loader":"^0.0.6","@teambit/pkg.content.packages-overview":"1.95.9","@teambit/preview.modules.preview-modules":"^1.0.3","@teambit/react.content.react-overview":"1.95.0","@teambit/react.generator.react-native-templates":"^1.0.7","@teambit/react.instructions.react-native.adding-tests":"0.0.1","@teambit/react.instructions.react.adding-compositions":"0.0.6","@teambit/react.instructions.react.adding-tests":"0.0.6","@teambit/react.rendering.ssr":"0.0.3","@teambit/react.ui.component-highlighter":"0.2.1","@teambit/react.webpack.react-webpack":"^1.0.25","@teambit/scope.content.scope-overview":"1.95.0","@teambit/scope.ui.empty-scope":"^0.0.509","@teambit/scope.ui.hooks.use-scope":"^0.0.453","@teambit/scope.ui.scope-details":"^0.0.526","@teambit/scope.ui.scope-icon":"0.0.91","@teambit/scope.ui.scope-labels":"^0.0.505","@teambit/scope.ui.scope-title":"^0.0.515","@teambit/scopes.scope-descriptor":"^0.0.24","@teambit/scopes.scope-id":"^0.0.7","@teambit/semantics.entities.semantic-schema":"^0.0.65","@teambit/tests-results":"^1.0.4","@teambit/typescript.typescript-compiler":"^2.0.22","@teambit/ui-foundation.ui.constants.z-indexes":"^0.0.504","@teambit/ui-foundation.ui.corner":"^0.0.520","@teambit/ui-foundation.ui.empty-component-gallery":"^0.0.508","@teambit/ui-foundation.ui.full-loader":"^0.0.500","@teambit/ui-foundation.ui.get-icon-from-file-name":"^0.0.500","@teambit/ui-foundation.ui.global-loader":"^0.0.502","@teambit/ui-foundation.ui.hooks.use-bind-key":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-data-query":"^0.0.505","@teambit/ui-foundation.ui.hooks.use-in-out-transition":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-is-mobile":"^0.0.198","@teambit/ui-foundation.ui.hooks.use-user-agent":"^0.0.197","@teambit/ui-foundation.ui.is-browser":"^0.0.500","@teambit/ui-foundation.ui.keycap":"^0.0.500","@teambit/ui-foundation.ui.main-dropdown":"^0.0.502","@teambit/ui-foundation.ui.menu":"^0.0.502","@teambit/ui-foundation.ui.menu-widget-icon":"^0.0.502","@teambit/ui-foundation.ui.navigation.react-router-adapter":"^6.1.1","@teambit/ui-foundation.ui.notifications.notification":"^0.0.515","@teambit/ui-foundation.ui.notifications.notification-center":"^0.0.523","@teambit/ui-foundation.ui.notifications.notification-context":"^0.0.501","@teambit/ui-foundation.ui.notifications.store":"^0.0.500","@teambit/ui-foundation.ui.react-router.extend-path":"^0.0.486","@teambit/ui-foundation.ui.react-router.use-query":"^0.0.501","@teambit/ui-foundation.ui.side-bar":"^0.0.875","@teambit/ui-foundation.ui.top-bar":"^0.0.514","@teambit/ui-foundation.ui.tree.drawer":"^0.0.518","@teambit/ui-foundation.ui.tree.file-tree":"^0.0.522","@teambit/ui-foundation.ui.tree.folder-tree-node":"^0.0.509","@teambit/ui-foundation.ui.tree.tree-node":"^0.0.513","@teambit/ui-foundation.ui.use-box.back-button":"^0.0.119","@teambit/ui-foundation.ui.use-box.bit-info":"^0.0.128","@teambit/ui-foundation.ui.use-box.bottom-link":"^0.0.119","@teambit/ui-foundation.ui.use-box.dropdown":"^0.0.142","@teambit/ui-foundation.ui.use-box.menu":"^1.0.7","@teambit/ui-foundation.ui.use-box.scope-menu":"^0.0.146","@teambit/ui-foundation.ui.use-box.tab":"^0.0.122","@teambit/ui-foundation.ui.use-box.tab-content":"^0.0.122","@teambit/ui.routing.compare-url":"^0.0.364","@teambit/workspace.content.variants":"1.95.9","@teambit/workspace.content.workspace-overview":"1.95.0","@teambit/workspace.ui.empty-workspace":"^0.0.508","@teambit/workspace.ui.load-preview":"^0.0.504","@teambit/workspace.ui.status":"^0.0.504","@testing-library/jest-dom":"5.16.2","@testing-library/jest-native":"4.0.4","@testing-library/react":"12.1.5","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/classnames":"2.2.11","@types/cors":"2.8.10","@types/didyoumean":"1.2.0","@types/eslint":"8.56.6","@types/express":"4.17.13","@types/find-root":"1.1.2","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/lodash.orderby":"4.6.6","@types/lodash.pick":"4.4.6","@types/mdx-js__react":"1.5.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/mousetrap":"1.6.5","@types/node":"14.14.31","@types/pluralize":"0.0.29","@types/react":"^17.0.67","@types/react-dev-utils":"9.0.10","@types/react-dom":"^17.0.21","@types/react-syntax-highlighter":"15.5.10","@types/react-tabs":"2.3.2","@types/socket.io-client":"1.4.35","@types/ssri":"^7.1.5","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/url-parse":"1.4.3","@types/webpack":"5.28.1","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0","ansi-to-html":"0.6.14","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.19.2","apollo-utilities":"1.3.4","archiver":"5.3.1","archy":"1.0.0","assert":"^2.1.0","aws-sdk":"2.756.0","babel-jest":"27.5.1","babel-preset-jest":"27.5.1","body-parser":"1.19.0","buffer":"6.0.3","camelcase":"6.2.0","chai-subset":"^1.6.0","classnames":"2.2.6","cli-highlight":"2.1.9","comlink":"4.3.0","command-exists":"1.2.9","compression-webpack-plugin":"11.0.0","copy-to-clipboard":"3.3.1","cors":"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","cross-fetch":"3.1.5","css-minimizer-webpack-plugin":"^6.0.0","didyoumean":"1.2.1","dreidels":"0.6.1","enquirer":"2.3.6","eslint-config-airbnb-typescript":"17.1.0","eslint-import-resolver-node":"0.3.4","eventemitter2":"6.4.4","expose-loader":"3.1.0","express":"4.17.1","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1","filenamify":"4.2.0","find-root":"1.1.0","flatted":"3.1.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0","graceful-fs":"4.2.10","graphql-disable-introspection":"^1.2.0","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","history":"5.3.0","html-escaper":"3.0.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","humanize-duration":"3.23.1","humanize-string":"2.1.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","jest":{"version":"27.5.1","preserve":true},"jest-message-util":"27.5.1","jest-watcher":"27.5.1","json-formatter-js":"2.3.4","junit-report-builder":"3.0.1","less":"^4.1.1","loader-utils":"2.0.4","lodash":"4.17.21","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.orderby":"4.6.0","lodash.pick":"4.4.0","map-obj":"4.2.1","mime":"2.5.2","mini-css-extract-plugin":"2.2.2","minimatch":"3.0.4","mousetrap":"1.6.5","multimatch":"5.0.0","nerf-dart":"1.0.0","npm":"6.14.17","p-limit":"3.1.0","p-locate":"5.0.0","parse-package-name":"0.1.0","path-to-regexp":"6.2.0","penpal":"6.2.2","pino-pretty":"9.1.1","pluralize":"8.0.0","postcss":"8.4.18","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2","pretty-bytes":"5.6.0","process":"0.11.10","punycode":"^2.3.1","puppeteer":"13.7.0","query-string":"7.0.0","react-animate-height":"2.0.23","react-dev-utils":"11.0.4","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-native":"^0.64.1","react-syntax-highlighter":"15.5.0","react-tabs":"3.2.0","react-test-renderer":"17.0.2","reactflow":"^11.11.3","remark-admonitions":"1.2.1","remark-frontmatter":"2.0.0","reset-css":"5.0.1","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0","semver":"7.5.4","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","socket.io-client":"2.4.0","ssri":"10.0.1","string_decoder":"^1.3.0","strip-ansi":"6.0.0","subscriptions-transport-ws":"0.9.18","symlink-dir":"^5.1.1","table":"6.7.3","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ua-parser-js":"0.7.24","unist-util-remove":"2.0.1","unist-util-visit":"2.0.3","url":"^0.11.3","url-join":"4.0.1","url-parse":"1.4.7","util":"^0.12.5","version-selector-type":"3.0.0","vfile":"4.2.0","vscode-icons-js":"11.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","webpack":"5.84.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.0","webpack-manifest-plugin":"5.0.0","webpack-merge":"5.8.0","workbox-webpack-plugin":"6.2.4","ws":"7.4.2","yesno":"0.4.0"},"peerDependencies":{"@apollo/client":"^3.6.0","@teambit/base-react.navigation.link":"2.0.27","@teambit/legacy":"1.0.704","@testing-library/react":"^12.1.5","core-js":"^3.10.0","graphql":"15.8.0","mz":"2.7.0","react":"17.0.2","react-dom":"17.0.2","react-router-dom":"^6.22.3"}},"linkCoreAspects":false,"overrides":{"@types/fs-capacitor":"2.0.0","signal-exit@4":"^4.0.2","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","minio@7.0":"7.1.1"},"rootComponents":true,"nodeVersion":"20.11.1","engineStrict":true,"packageImportMethod":"copy","packageManagerArgs":[],"devFilePatterns":["**/*.spec.ts"],"strictPeerDependencies":true,"autoInstallPeers":false,"savePrefix":"","extraArgs":[],"peerDependencyRules":{"allowAny":["react","react-dom","@testing-library/react","@teambit/legacy","typescript"],"ignoreMissing":[]},"capsuleSelfReference":true},"teambit.preview/preview":{"bundlingStrategy":"component"},"teambit.generator/generator":{"aspects":["teambit.harmony/aspect"]},"teambit.component/issues":{"ignoreIssues":["CircularDependencies","DuplicateComponentAndPackage"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}"}}},"{*/**}":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{}}}},"scopes/harmony/bit":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}","bvm":{"node":"20.11.1"},"bin":{"bbit":"bin/bit"},"engines":{"node":">=18.12.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"}}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/base-react.navigation.link":"2.0.27","@teambit/harmony.content.cli-reference":"^2.0.279","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@apollo/client":"3.6.9","@teambit/legacy":"1.0.704","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","graphql":"15.8.0","browserslist":"4.16.3","reflect-metadata":"0.1.13","monaco-editor":"0.33.0","mz":"2.7.0","react-native-web":"0.14.13","react":"17.0.2","react-dom":"17.0.2","core-js":"3.13.0","postcss":"8.4.18","buffer":"6.0.3","process":"0.11.10","react-router-dom":"6.3.0","typescript":"5.3.3","@parcel/css":"^1.8.3","lightningcss":"^1.20.0","@swc/css":"^0.0.20"},"devDependencies":{},"peerDependencies":{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-","browserslist":"-","graphql":"-","react":"-","react-dom":"-","react-native-web":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/harmony/node":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{"policy":{}}}},"teambit.harmony/bit":"teambit.workspace/workspace"}'),...windowConfig};_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default.id="teambit.preview/preview",_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default.id="teambit.docs/docs",_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default.id="teambit.compositions/compositions",_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default.id="teambit.harmony/pubsub",_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default.id="teambit.react/react",_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default.id="teambit.react/react-native",_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default.id="teambit.explorer/command-bar";function render(...props){return _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__.Harmony.load([_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default,_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default,_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default,_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default,_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default,_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default,_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default],"preview",mergedConfig).then(harmony=>harmony.run().then(()=>harmony.get("teambit.preview/preview")).then(rootExtension=>{const ssrSetup=!isBrowser&&rootExtension.setupSsr,setup=rootExtension.setup,setupFunc=(ssrSetup||setup||function(){}).bind(rootExtension);return Promise.resolve(setupFunc()).then(()=>rootExtension)}).then(rootExtension=>rootExtension.run?rootExtension.run():isBrowser?rootExtension.render("teambit.workspace/workspace",...props):rootExtension.renderSsr("teambit.workspace/workspace",...props)).catch(err=>{throw err}))}isBrowser&&render()},82187:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
93
|
+
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},79271:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},49471:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={PreviewAspect:!0,PreviewRuntime:!0,ENV_PREVIEW_STRATEGY_NAME:!0,COMPONENT_PREVIEW_STRATEGY_NAME:!0};Object.defineProperty(exports,"COMPONENT_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().COMPONENT_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"ENV_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().ENV_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"PreviewAspect",{enumerable:!0,get:function(){return _preview().PreviewAspect}}),Object.defineProperty(exports,"PreviewRuntime",{enumerable:!0,get:function(){return _preview().PreviewRuntime}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _preview().PreviewAspect}});function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}var _events=__webpack_require__(67335);Object.keys(_events).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_events[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _events[key]}})});function _strategiesNames(){const data=__webpack_require__(87144);return _strategiesNames=function(){return data},data}},2094:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(27060);return _previewModules=function(){return data},data}},22395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},74649:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().linkModules}};function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(99978);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(75752));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(3105));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(32699);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(67166);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(67335);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(85216);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(73110);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(2094);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(79271);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(14285);return _sizeEvent=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},85216:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},14285:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},87144:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ENV_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME=void 0;const ENV_PREVIEW_STRATEGY_NAME=exports.ENV_PREVIEW_STRATEGY_NAME="env",COMPONENT_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME="component"},43979:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},23179:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(43979);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(17796);return _pubsubContext=function(){return data},data}},14339:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PubSubNoParentError=void 0;class PubSubNoParentError extends Error{constructor(){super("could not connect to parent window");this.name="PubSubNoParentError"}}exports.PubSubNoParentError=PubSubNoParentError},17796:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},56646:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},53707:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _uiFoundationUi(){const data=__webpack_require__(92900);return _uiFoundationUi=function(){return data},data}function _eventemitter(){const data=__webpack_require__(42481);return _eventemitter=function(){return data},data}function _penpal(){const data=__webpack_require__(63805);return _penpal=function(){return data},data}function _noParentError(){const data=__webpack_require__(14339);return _noParentError=function(){return data},data}function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PubsubPreview{constructor(){_defineProperty(this,"_parentPubsub",void 0),_defineProperty(this,"events",new(_eventemitter()).EventEmitter2),_defineProperty(this,"connectToParentPubSub",(retries=10)=>{if(retries<=0)throw new(_noParentError()).PubSubNoParentError;return(0,_penpal().connectToParent)({timeout:300,methods:{pub:this.handleMessageFromParent}}).promise.then(parentPubsub=>this._parentPubsub=parentPubsub).catch(e=>{if(e.code!==_penpal().ErrorCode.ConnectionTimeout)throw e;return this.connectToParentPubSub(retries-1)})}),_defineProperty(this,"handleMessageFromParent",(topic,message)=>{this.events.emit(topic,message)})}sub(topic,callback){const emitter=this.events;return emitter.on(topic,callback),()=>{emitter.off(topic,callback)}}pub(topic,event){this.events.emit(topic,event),this._parentPubsub?.pub(topic,event).catch(err=>{console.error("[Pubsub.preview]",err)})}inIframe(){try{return _uiFoundationUi().isBrowser&&window.self!==window.top}catch{return!1}}static async provider(){const pubsubPreview=new PubsubPreview;return pubsubPreview.inIframe()&&pubsubPreview.connectToParentPubSub().catch(err=>{err instanceof _noParentError().PubSubNoParentError||console.error("[Pubsub.preview]",err)}),pubsubPreview}}__webpack_unused_export__=PubsubPreview,_defineProperty(PubsubPreview,"runtime",_preview().PreviewRuntime),_pubsub().PubsubAspect.addRuntime(PubsubPreview)},38117:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactNativeAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactNativeAspect=exports.ReactNativeAspect=_harmony().Aspect.create({id:"teambit.react/react-native"});var _default=exports.default=ReactNativeAspect},65883:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _react(){const data=__webpack_require__(32750);return _react=function(){return data},data}function _reactNative(){const data=__webpack_require__(38117);return _reactNative=function(){return data},data}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactNativePreview{constructor(reactPreview,preview){this.reactPreview=reactPreview,this.preview=preview,_defineProperty(this,"registerProvider",this.reactPreview.registerProvider.bind(this.reactPreview)),_defineProperty(this,"getRenderingContext",this.reactPreview.getRenderingContext.bind(this.reactPreview))}static async provider([reactPreview,preview]){const reactNativePreview=new ReactNativePreview(reactPreview,preview);return preview.registerRenderContext(reactNativePreview.getRenderingContext),reactNativePreview}}__webpack_unused_export__=ReactNativePreview,_defineProperty(ReactNativePreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactNativePreview,"slots",[]),_defineProperty(ReactNativePreview,"dependencies",[_react().ReactAspect,_preview().PreviewAspect]),_reactNative().ReactNativeAspect.addRuntime(ReactNativePreview);var _default=__webpack_unused_export__=ReactNativePreview},28547:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=exports.PARAM_NAME=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_ui_component_highlighter_1=__webpack_require__(58112),query_string_1=__importDefault(__webpack_require__(42546)),highlighter_provider_module_scss_1=__importDefault(__webpack_require__(82006));exports.PARAM_NAME="highlighter";const classes={container:highlighter_provider_module_scss_1.default.label};function useHash(){const[hash,setHash]=(0,react_1.useState)(window?window.location.hash:"");return(0,react_1.useEffect)(()=>{const updateHash=()=>{setHash(window.location.hash)};return updateHash(),window.addEventListener("hashchange",updateHash),()=>{window.removeEventListener("hashchange",updateHash)}},[]),hash}const HighlighterProvider=({children})=>{const hash=useHash(),isActive=(0,react_1.useMemo)(()=>{const hashQuery=hash.split("?")[1];return query_string_1.default.parse(hashQuery)[exports.PARAM_NAME]==="true"},[hash]);return react_1.default.createElement(react_ui_component_highlighter_1.ComponentHighlighter,{disabled:!isActive,className:(0,classnames_1.default)(highlighter_provider_module_scss_1.default.highlighter,isActive&&highlighter_provider_module_scss_1.default.active),classes},children)};exports.HighlighterProvider=HighlighterProvider},87656:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=void 0;var highlighter_provider_1=__webpack_require__(28547);Object.defineProperty(exports,"HighlighterProvider",{enumerable:!0,get:function(){return highlighter_provider_1.HighlighterProvider}})},32750:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ReactAspect",{enumerable:!0,get:function(){return _react().ReactAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _react().ReactAspect}});function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}},72864:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactAspect=exports.ReactAspect=_harmony().Aspect.create({id:"teambit.react/react"});var _default=exports.default=ReactAspect},28177:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _lodash(){const data=_interopRequireDefault(__webpack_require__(11549));return _lodash=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _reactUi(){const data=__webpack_require__(87656);return _reactUi=function(){return data},data}function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value2){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactPreview{constructor(preview,providerSlot){this.preview=preview,this.providerSlot=providerSlot,_defineProperty(this,"getRenderingContext",({aspectsFilter})=>{let entries=this.providerSlot.toArray();if(aspectsFilter){const allowedAspects=new Set(aspectsFilter);allowedAspects.add(_react().ReactAspect.id),entries=entries.filter(([aspectId])=>allowedAspects.has(aspectId))}return{providers:(0,_lodash().default)(entries.map(([,provider])=>provider))}})}registerProvider(provider){this.providerSlot.register(provider)}static async provider([preview],config,[providerSlot]){const reactPreview=new ReactPreview(preview,providerSlot);return reactPreview.registerProvider([_reactUi().HighlighterProvider]),preview.registerRenderContext(reactPreview.getRenderingContext),reactPreview}}__webpack_unused_export__=ReactPreview,_defineProperty(ReactPreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactPreview,"slots",[_harmony().Slot.withType()]),_defineProperty(ReactPreview,"dependencies",[_preview().PreviewAspect]),_react().ReactAspect.addRuntime(ReactPreview);var _default=__webpack_unused_export__=ReactPreview},32860:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(55669),_teambit_harmony__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_teambit_harmony__WEBPACK_IMPORTED_MODULE_0__),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(22395),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12825),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(36717),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(56646),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(72864),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(38117),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(98695),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(74649),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_preview_runtime_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(90428),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_preview_runtime_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61517),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_preview_runtime_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(53707),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_preview_runtime_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28177),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_preview_runtime_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(65883),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_preview_runtime_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(97996);function generateSlot(length=5){return Array.from(Array(length)).map(()=>Slot.withType())}const isBrowser=typeof window<"u",windowConfig=isBrowser?window.harmonyAppConfig:void 0,mergedConfig={...JSON.parse('{"teambit.workspace/workspace":{"name":"bit","icon":"https://static.bit.dev/bit-logo.svg","defaultScope":"teambit.bit","defaultDirectory":"components","resolveEnvsFromRoots":false},"teambit.dependencies/dependency-resolver":{"packageManager":"teambit.dependencies/pnpm","policy":{"dependencies":{"@babel/core":"7.19.6","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","@babel/types":"7.22.3","@bitdev/node.generators.node-templates":"^2.0.2","@bitdev/react.generators.react-templates":"^2.0.1","@bitdev/symphony.generators.symphony-templates":"^1.0.0","@dagrejs/dagre":"^1.1.2","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"26.6.2","@mdx-js/mdx":"1.6.21","@mdx-js/react":"1.6.22","@monaco-editor/react":"4.4.6","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/client":"11.1.0","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config":"21.2.3","@pnpm/core":"14.1.5","@pnpm/default-reporter":"13.1.2","@pnpm/dependency-path":"5.0.0","@pnpm/error":"6.0.1","@pnpm/fetch":"8.0.1","@pnpm/list":"^10.1.3","@pnpm/lockfile-file":"9.0.6","@pnpm/logger":"5.0.0","@pnpm/modules-yaml":"13.1.1","@pnpm/network.ca-file":"3.0.0","@pnpm/package-store":"20.2.0","@pnpm/parse-overrides":"5.0.1","@pnpm/pick-registry-for-package":"6.0.1","@pnpm/plugin-commands-publishing":"8.1.5","@pnpm/plugin-commands-rebuild":"11.1.5","@pnpm/registry-mock":"3.4.0","@pnpm/reviewing.dependencies-hierarchy":"^3.1.3","@pnpm/semver-diff":"1.1.0","@pnpm/sort-packages":"6.0.2","@pnpm/store-connection-manager":"8.2.0","@pnpm/types":"10.1.0","@pnpm/worker":"1.0.3","@pnpm/workspace.pkgs-graph":"3.0.5","@prerenderer/prerenderer":"^1.2.0","@prerenderer/renderer-jsdom":"^1.1.2","@prerenderer/webpack-plugin":"^5.2.0","@react-hook/latest":"1.0.3","@teambit/any-fs":"0.0.5","@teambit/base-react.layout.row":"0.0.3","@teambit/base-react.navigation.link":"2.0.27","@teambit/base-react.themes.theme-switcher":"^1.0.2","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"0.0.4","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.0","@teambit/base-ui.graph.tree.recursive-tree":"1.0.0","@teambit/base-ui.graph.tree.root-node":"1.0.0","@teambit/base-ui.graph.tree.tree-context":"1.0.0","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.0","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.1","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.background":"1.0.1","@teambit/base-ui.surfaces.card":"1.0.1","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.0","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.1","@teambit/base-ui.text.paragraph":"1.0.1","@teambit/base-ui.text.text-sizes":"1.0.0","@teambit/base-ui.text.themed-text":"1.0.1","@teambit/base-ui.theme.accent-color":"1.1.0","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.1","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.0","@teambit/base-ui.utils.time-ago":"1.0.1","@teambit/bit.content.what-is-bit":"1.96.2","@teambit/bvm.config":"^0.2.3","@teambit/bvm.path":"^0.1.2","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.5","@teambit/code.ui.code-editor":"^0.0.8","@teambit/code.ui.code-tab-tree":"^0.0.613","@teambit/code.ui.dependency-tree":"0.0.546","@teambit/code.ui.hooks.use-code-params":"0.0.496","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"0.0.502","@teambit/code.ui.queries.get-file-content":"0.0.504","@teambit/code.ui.utils.get-file-icon":"0.0.495","@teambit/community.constants.links":"0.0.2","@teambit/community.starters.hello-world":"^0.0.16","@teambit/compilation.babel-compiler":"^1.1.8","@teambit/compilation.content.compiler-overview":"1.95.0","@teambit/component.content.component-overview":"1.95.0","@teambit/component.content.dev-files":"1.95.9","@teambit/component.instructions.exporting-components":"0.0.7","@teambit/component.ui.artifacts.artifacts-tree":"^0.0.26","@teambit/component.ui.artifacts.models.component-artifacts-model":"^0.0.12","@teambit/component.ui.artifacts.queries.use-component-artifacts":"^0.0.14","@teambit/component.ui.badges.component-count":"^0.0.15","@teambit/component.ui.component-compare.compare-aspects.compare-aspect-view":"^0.0.14","@teambit/component.ui.component-compare.compare-aspects.compare-aspects":"^0.0.146","@teambit/component.ui.component-compare.compare-aspects.context":"^0.0.12","@teambit/component.ui.component-compare.compare-aspects.hooks.use-compare-aspects":"^0.0.118","@teambit/component.ui.component-compare.compare-aspects.models.component-compare-aspects-model":"^0.0.11","@teambit/component.ui.component-compare.hooks.use-component-compare":"^0.0.113","@teambit/component.ui.component-compare.hooks.use-component-compare-url":"^0.0.9","@teambit/component.ui.component-compare.layouts.compare-split-layout-preset":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-change-type":"^0.0.7","@teambit/component.ui.component-compare.models.component-compare-hooks":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-model":"^0.0.111","@teambit/component.ui.component-compare.models.component-compare-state":"^0.0.7","@teambit/component.ui.component-compare.status-resolver":"^0.0.9","@teambit/component.ui.component-compare.utils.group-by-version":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-logs":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-tabs":"^0.0.102","@teambit/component.ui.component-deprecated":"^0.0.39","@teambit/component.ui.component-meta":"^0.0.358","@teambit/component.ui.component-size":"^0.0.77","@teambit/component.ui.component-status":"^0.0.504","@teambit/component.ui.component-status-resolver":"^0.0.510","@teambit/component.ui.component-tooltip":"^0.0.509","@teambit/component.ui.deprecation-icon":"^0.0.509","@teambit/component.ui.hooks.use-fetch-docs":"^0.0.21","@teambit/component.ui.version-label":"^0.0.509","@teambit/compositions.ui.composition-compare":"^0.0.255","@teambit/compositions.ui.composition-compare-section":"^0.0.100","@teambit/compositions.ui.compositions-menu-bar":"^0.0.177","@teambit/compositions.ui.compositions-overview":"^0.0.10","@teambit/compositions.ui.hooks.use-composition":"^0.0.177","@teambit/defender.content.formatter-overview":"1.96.1","@teambit/defender.content.linter-overview":"1.95.0","@teambit/defender.content.tester-overview":"1.95.0","@teambit/defender.eslint-linter":"1.0.22","@teambit/defender.prettier-formatter":"1.0.12","@teambit/defender.ui.test-compare-section":"^0.0.100","@teambit/defender.ui.test-loader":"^0.0.504","@teambit/defender.ui.test-row":"^0.0.503","@teambit/defender.ui.test-table":"^0.0.510","@teambit/dependencies.modules.packages-excluder":"^1.0.8","@teambit/design.controls.menu":"^0.0.1","@teambit/design.elements.icon":"1.0.5","@teambit/design.inputs.dropdown":"1.2.16","@teambit/design.inputs.input-text":"1.0.21","@teambit/design.inputs.selectors.multi-select":"0.0.20","@teambit/design.inputs.toggle-button":"0.0.9","@teambit/design.navigation.content-tabs":"0.0.5","@teambit/design.navigation.responsive-navbar":"^0.0.7","@teambit/design.theme.icons-font":"2.0.29","@teambit/design.themes.dark-theme":"1.91.4","@teambit/design.themes.theme-toggler":"0.1.3","@teambit/design.ui.alert-card":"0.0.26","@teambit/design.ui.brand.logo":"1.96.2","@teambit/design.ui.cli-snippet":"0.0.359","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.elements.level-icon":"0.0.20","@teambit/design.ui.empty-box":"0.0.363","@teambit/design.ui.error-page":"0.0.364","@teambit/design.ui.icon-button":"1.0.16","@teambit/design.ui.input.option-button":"1.0.0","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.12","@teambit/design.ui.navigation.link":"^1.96.11","@teambit/design.ui.pages.not-found":"0.0.371","@teambit/design.ui.pages.server-error":"0.0.368","@teambit/design.ui.pages.standalone-not-found-page":"0.0.369","@teambit/design.ui.pill-label":"0.0.356","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.354","@teambit/design.ui.skeletons.sidebar-loader":"0.0.4","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.surfaces.menu.link-item":"1.0.0","@teambit/design.ui.surfaces.menu.section":"^0.0.357","@teambit/design.ui.surfaces.message-card":"0.0.17","@teambit/design.ui.surfaces.status-message-card":"0.0.17","@teambit/design.ui.tree":"0.0.15","@teambit/docs.content.docs-overview":"1.95.9","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.overview-compare":"^1.0.10","@teambit/docs.ui.overview-compare-section":"^0.0.100","@teambit/documenter.code.react-playground":"4.1.9","@teambit/documenter.content.documentation-links":"4.1.3","@teambit/documenter.markdown.hybrid-live-code-snippet":"0.1.12","@teambit/documenter.markdown.mdx":"0.1.13","@teambit/documenter.theme.theme-compositions":"4.1.1","@teambit/documenter.theme.theme-context":"4.0.3","@teambit/documenter.ui.code-snippet":"^4.2.5","@teambit/documenter.ui.copy-box":"4.1.17","@teambit/documenter.ui.heading":"4.1.1","@teambit/documenter.ui.highlighted-text":"4.1.1","@teambit/documenter.ui.label":"4.0.3","@teambit/documenter.ui.label-list":"4.0.3","@teambit/documenter.ui.linked-heading":"4.1.6","@teambit/documenter.ui.paragraph":"4.1.1","@teambit/documenter.ui.property-table":"4.1.10","@teambit/documenter.ui.section":"4.1.1","@teambit/documenter.ui.separator":"4.1.1","@teambit/documenter.ui.sub-title":"4.1.1","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"4.1.13","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.2","@teambit/evangelist.elements.x-button":"1.0.7","@teambit/evangelist.input.checkbox.label":"1.0.3","@teambit/evangelist.surfaces.dropdown":"1.0.2","@teambit/evangelist.surfaces.tooltip":"1.0.1","@teambit/explorer.plugins.preview-plugin":"^0.0.10","@teambit/explorer.ui.command-bar":"^2.0.14","@teambit/explorer.ui.component-card":"^0.0.30","@teambit/explorer.ui.gallery.base-component-card":"0.0.503","@teambit/explorer.ui.gallery.component-card":"^0.0.513","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/git.modules.git-ignore":"^1.0.2","@teambit/harmony":"0.4.6","@teambit/html.generator.html-templates":"^1.0.8","@teambit/html.modules.inject-html-element":"0.0.4","@teambit/html.modules.render-template":"0.0.104","@teambit/lanes.ui.compare.lane-compare":"^0.0.193","@teambit/lanes.ui.compare.lane-compare-drawer":"^0.0.158","@teambit/lanes.ui.compare.lane-compare-hooks.use-lane-diff-status":"^0.0.144","@teambit/lanes.ui.compare.lane-compare-loader":"^0.0.6","@teambit/lanes.ui.compare.lane-compare-page":"^0.0.162","@teambit/lanes.ui.compare.lane-compare-state":"^0.0.11","@teambit/lanes.ui.icons.lane-icon":"^0.0.9","@teambit/lanes.ui.lane-details":"^0.0.204","@teambit/lanes.ui.menus.lanes-overview-menu":"^0.0.10","@teambit/lanes.ui.navigation.lane-switcher":"^0.0.225","@teambit/mdx.compilers.mdx-transpiler":"^1.0.6","@teambit/mdx.generator.mdx-templates":"^1.0.9","@teambit/mdx.modules.mdx-loader":"^1.0.14","@teambit/mdx.ui.docs.link":"0.0.500","@teambit/mdx.ui.docs.snippet":"^0.0.509","@teambit/mdx.ui.mdx-layout":"^1.0.9","@teambit/mdx.ui.mdx-scope-context":"^1.0.5","@teambit/node.utils.esm-loader":"^0.0.6","@teambit/pkg.content.packages-overview":"1.95.9","@teambit/preview.modules.preview-modules":"^1.0.3","@teambit/react.content.react-overview":"1.95.0","@teambit/react.generator.react-native-templates":"^1.0.7","@teambit/react.instructions.react-native.adding-tests":"0.0.1","@teambit/react.instructions.react.adding-compositions":"0.0.6","@teambit/react.instructions.react.adding-tests":"0.0.6","@teambit/react.rendering.ssr":"0.0.3","@teambit/react.ui.component-highlighter":"0.2.1","@teambit/react.webpack.react-webpack":"^1.0.25","@teambit/scope.content.scope-overview":"1.95.0","@teambit/scope.ui.empty-scope":"^0.0.509","@teambit/scope.ui.hooks.use-scope":"^0.0.453","@teambit/scope.ui.scope-details":"^0.0.526","@teambit/scope.ui.scope-icon":"0.0.91","@teambit/scope.ui.scope-labels":"^0.0.505","@teambit/scope.ui.scope-title":"^0.0.515","@teambit/scopes.scope-descriptor":"^0.0.24","@teambit/scopes.scope-id":"^0.0.7","@teambit/semantics.entities.semantic-schema":"^0.0.65","@teambit/tests-results":"^1.0.4","@teambit/typescript.typescript-compiler":"^2.0.22","@teambit/ui-foundation.ui.constants.z-indexes":"^0.0.504","@teambit/ui-foundation.ui.corner":"^0.0.520","@teambit/ui-foundation.ui.empty-component-gallery":"^0.0.508","@teambit/ui-foundation.ui.full-loader":"^0.0.500","@teambit/ui-foundation.ui.get-icon-from-file-name":"^0.0.500","@teambit/ui-foundation.ui.global-loader":"^0.0.502","@teambit/ui-foundation.ui.hooks.use-bind-key":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-data-query":"^0.0.505","@teambit/ui-foundation.ui.hooks.use-in-out-transition":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-is-mobile":"^0.0.198","@teambit/ui-foundation.ui.hooks.use-user-agent":"^0.0.197","@teambit/ui-foundation.ui.is-browser":"^0.0.500","@teambit/ui-foundation.ui.keycap":"^0.0.500","@teambit/ui-foundation.ui.main-dropdown":"^0.0.502","@teambit/ui-foundation.ui.menu":"^0.0.502","@teambit/ui-foundation.ui.menu-widget-icon":"^0.0.502","@teambit/ui-foundation.ui.navigation.react-router-adapter":"^6.1.1","@teambit/ui-foundation.ui.notifications.notification":"^0.0.515","@teambit/ui-foundation.ui.notifications.notification-center":"^0.0.523","@teambit/ui-foundation.ui.notifications.notification-context":"^0.0.501","@teambit/ui-foundation.ui.notifications.store":"^0.0.500","@teambit/ui-foundation.ui.react-router.extend-path":"^0.0.486","@teambit/ui-foundation.ui.react-router.use-query":"^0.0.501","@teambit/ui-foundation.ui.side-bar":"^0.0.875","@teambit/ui-foundation.ui.top-bar":"^0.0.514","@teambit/ui-foundation.ui.tree.drawer":"^0.0.518","@teambit/ui-foundation.ui.tree.file-tree":"^0.0.522","@teambit/ui-foundation.ui.tree.folder-tree-node":"^0.0.509","@teambit/ui-foundation.ui.tree.tree-node":"^0.0.513","@teambit/ui-foundation.ui.use-box.back-button":"^0.0.119","@teambit/ui-foundation.ui.use-box.bit-info":"^0.0.128","@teambit/ui-foundation.ui.use-box.bottom-link":"^0.0.119","@teambit/ui-foundation.ui.use-box.dropdown":"^0.0.142","@teambit/ui-foundation.ui.use-box.menu":"^1.0.7","@teambit/ui-foundation.ui.use-box.scope-menu":"^0.0.146","@teambit/ui-foundation.ui.use-box.tab":"^0.0.122","@teambit/ui-foundation.ui.use-box.tab-content":"^0.0.122","@teambit/ui.routing.compare-url":"^0.0.364","@teambit/workspace.content.variants":"1.95.9","@teambit/workspace.content.workspace-overview":"1.95.0","@teambit/workspace.ui.empty-workspace":"^0.0.508","@teambit/workspace.ui.load-preview":"^0.0.504","@teambit/workspace.ui.status":"^0.0.504","@testing-library/jest-dom":"5.16.2","@testing-library/jest-native":"4.0.4","@testing-library/react":"12.1.5","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/classnames":"2.2.11","@types/cors":"2.8.10","@types/didyoumean":"1.2.0","@types/eslint":"8.56.6","@types/express":"4.17.13","@types/find-root":"1.1.2","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/lodash.orderby":"4.6.6","@types/lodash.pick":"4.4.6","@types/mdx-js__react":"1.5.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/mousetrap":"1.6.5","@types/node":"14.14.31","@types/pluralize":"0.0.29","@types/react":"^17.0.67","@types/react-dev-utils":"9.0.10","@types/react-dom":"^17.0.21","@types/react-syntax-highlighter":"15.5.10","@types/react-tabs":"2.3.2","@types/socket.io-client":"1.4.35","@types/ssri":"^7.1.5","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/url-parse":"1.4.3","@types/webpack":"5.28.1","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0","ansi-to-html":"0.6.14","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.19.2","apollo-utilities":"1.3.4","archiver":"5.3.1","archy":"1.0.0","assert":"^2.1.0","aws-sdk":"2.756.0","babel-jest":"27.5.1","babel-preset-jest":"27.5.1","body-parser":"1.19.0","buffer":"6.0.3","camelcase":"6.2.0","chai-subset":"^1.6.0","classnames":"2.2.6","cli-highlight":"2.1.9","comlink":"4.3.0","command-exists":"1.2.9","compression-webpack-plugin":"11.0.0","copy-to-clipboard":"3.3.1","cors":"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","cross-fetch":"3.1.5","css-minimizer-webpack-plugin":"^6.0.0","didyoumean":"1.2.1","dreidels":"0.6.1","enquirer":"2.3.6","eslint-config-airbnb-typescript":"17.1.0","eslint-import-resolver-node":"0.3.4","eventemitter2":"6.4.4","expose-loader":"3.1.0","express":"4.17.1","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1","filenamify":"4.2.0","find-root":"1.1.0","flatted":"3.1.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0","graceful-fs":"4.2.10","graphql-disable-introspection":"^1.2.0","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","history":"5.3.0","html-escaper":"3.0.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","humanize-duration":"3.23.1","humanize-string":"2.1.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","jest":{"version":"27.5.1","preserve":true},"jest-message-util":"27.5.1","jest-watcher":"27.5.1","json-formatter-js":"2.3.4","junit-report-builder":"3.0.1","less":"^4.1.1","loader-utils":"2.0.4","lodash":"4.17.21","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.orderby":"4.6.0","lodash.pick":"4.4.0","map-obj":"4.2.1","mime":"2.5.2","mini-css-extract-plugin":"2.2.2","minimatch":"3.0.4","mousetrap":"1.6.5","multimatch":"5.0.0","nerf-dart":"1.0.0","npm":"6.14.17","p-limit":"3.1.0","p-locate":"5.0.0","parse-package-name":"0.1.0","path-to-regexp":"6.2.0","penpal":"6.2.2","pino-pretty":"9.1.1","pluralize":"8.0.0","postcss":"8.4.18","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2","pretty-bytes":"5.6.0","process":"0.11.10","punycode":"^2.3.1","puppeteer":"13.7.0","query-string":"7.0.0","react-animate-height":"2.0.23","react-dev-utils":"11.0.4","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-native":"^0.64.1","react-syntax-highlighter":"15.5.0","react-tabs":"3.2.0","react-test-renderer":"17.0.2","reactflow":"^11.11.3","remark-admonitions":"1.2.1","remark-frontmatter":"2.0.0","reset-css":"5.0.1","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0","semver":"7.5.4","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","socket.io-client":"2.4.0","ssri":"10.0.1","string_decoder":"^1.3.0","strip-ansi":"6.0.0","subscriptions-transport-ws":"0.9.18","symlink-dir":"^5.1.1","table":"6.7.3","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ua-parser-js":"0.7.24","unist-util-remove":"2.0.1","unist-util-visit":"2.0.3","url":"^0.11.3","url-join":"4.0.1","url-parse":"1.4.7","util":"^0.12.5","version-selector-type":"3.0.0","vfile":"4.2.0","vscode-icons-js":"11.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","webpack":"5.84.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.0","webpack-manifest-plugin":"5.0.0","webpack-merge":"5.8.0","workbox-webpack-plugin":"6.2.4","ws":"7.4.2","yesno":"0.4.0"},"peerDependencies":{"@apollo/client":"^3.6.0","@teambit/base-react.navigation.link":"2.0.27","@teambit/legacy":"1.0.705","@testing-library/react":"^12.1.5","core-js":"^3.10.0","graphql":"15.8.0","mz":"2.7.0","react":"17.0.2","react-dom":"17.0.2","react-router-dom":"^6.22.3"}},"linkCoreAspects":false,"overrides":{"@types/fs-capacitor":"2.0.0","signal-exit@4":"^4.0.2","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","minio@7.0":"7.1.1"},"rootComponents":true,"nodeVersion":"20.11.1","engineStrict":true,"packageImportMethod":"copy","packageManagerArgs":[],"devFilePatterns":["**/*.spec.ts"],"strictPeerDependencies":true,"autoInstallPeers":true,"savePrefix":"","extraArgs":[],"peerDependencyRules":{"allowAny":["react","react-dom","@testing-library/react","@teambit/legacy","typescript"],"ignoreMissing":[]},"capsuleSelfReference":true},"teambit.preview/preview":{"bundlingStrategy":"component"},"teambit.generator/generator":{"aspects":["teambit.harmony/aspect"]},"teambit.component/issues":{"ignoreIssues":["CircularDependencies","DuplicateComponentAndPackage"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}"}}},"{*/**}":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{}}}},"scopes/harmony/bit":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}","bvm":{"node":"20.11.1"},"bin":{"bbit":"bin/bit"},"engines":{"node":">=18.12.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"}}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/base-react.navigation.link":"2.0.27","@teambit/harmony.content.cli-reference":"^2.0.279","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@apollo/client":"3.6.9","@teambit/legacy":"1.0.705","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","graphql":"15.8.0","browserslist":"4.16.3","reflect-metadata":"0.1.13","monaco-editor":"0.33.0","mz":"2.7.0","react-native-web":"0.14.13","react":"17.0.2","react-dom":"17.0.2","core-js":"3.13.0","postcss":"8.4.18","buffer":"6.0.3","process":"0.11.10","react-router-dom":"6.3.0","typescript":"5.3.3","@parcel/css":"^1.8.3","lightningcss":"^1.20.0","@swc/css":"^0.0.20"},"devDependencies":{},"peerDependencies":{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-","browserslist":"-","graphql":"-","react":"-","react-dom":"-","react-native-web":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/harmony/node":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{"policy":{}}}},"teambit.harmony/bit":"teambit.workspace/workspace"}'),...windowConfig};_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default.id="teambit.preview/preview",_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default.id="teambit.docs/docs",_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default.id="teambit.compositions/compositions",_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default.id="teambit.harmony/pubsub",_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default.id="teambit.react/react",_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default.id="teambit.react/react-native",_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default.id="teambit.explorer/command-bar";function render(...props){return _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__.Harmony.load([_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default,_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default,_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default,_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default,_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default,_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default,_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default],"preview",mergedConfig).then(harmony=>harmony.run().then(()=>harmony.get("teambit.preview/preview")).then(rootExtension=>{const ssrSetup=!isBrowser&&rootExtension.setupSsr,setup=rootExtension.setup,setupFunc=(ssrSetup||setup||function(){}).bind(rootExtension);return Promise.resolve(setupFunc()).then(()=>rootExtension)}).then(rootExtension=>rootExtension.run?rootExtension.run():isBrowser?rootExtension.render("teambit.workspace/workspace",...props):rootExtension.renderSsr("teambit.workspace/workspace",...props)).catch(err=>{throw err}))}isBrowser&&render()},82187:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
94
94
|
Copyright (c) 2018 Jed Watson.
|
95
95
|
Licensed under the MIT License (MIT), see
|
96
96
|
http://jedwatson.github.io/classnames
|
97
|
-
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if(typeof arg=="string"||typeof arg=="number")return arg;if(typeof arg!="object")return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value2,newClass){return newClass?value2?value2+" "+newClass:value2+newClass:value2}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},64370:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},25219:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(42983),types_js_1=__webpack_require__(36923),CONNECTION_INIT="connection_init",CONNECTION_ACK="connection_ack",PING="ping",PONG="pong",SUBSCRIBE="subscribe",NEXT="next",ERROR="error",COMPLETE="complete";class GraphQLWebSocketMessage{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(type,payload,id){this._type=type,this._payload=payload,this._id=id}get text(){const result={type:this.type};return this.id!=null&&this.id!=null&&(result.id=this.id),this.payload!=null&&this.payload!=null&&(result.payload=this.payload),JSON.stringify(result)}static parse(data,f){const{type,payload,id}=JSON.parse(data);return new GraphQLWebSocketMessage(type,f(payload),id)}}class GraphQLWebSocketClient{constructor(socket,{onInit,onAcknowledged,onPing,onPong}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=socket,socket.addEventListener("open",async e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},socket.send(ConnectionInit(onInit?await onInit():null).text)}),socket.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),socket.addEventListener("error",e=>{console.error(e)}),socket.addEventListener("message",e=>{try{const message=parseMessage(e.data);switch(message.type){case CONNECTION_ACK:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,onAcknowledged&&onAcknowledged(message.payload));return}case PING:{onPing?onPing(message.payload).then(r=>socket.send(Pong(r).text)):socket.send(Pong(null).text);return}case PONG:{onPong&&onPong(message.payload);return}}if(!this.socketState.acknowledged||message.id===void 0||message.id===null||!this.socketState.subscriptions[message.id])return;const{query,variables,subscriber}=this.socketState.subscriptions[message.id];switch(message.type){case NEXT:{!message.payload.errors&&message.payload.data&&subscriber.next&&subscriber.next(message.payload.data),message.payload.errors&&subscriber.error&&subscriber.error(new types_js_1.ClientError({...message.payload,status:200},{query,variables}));return}case ERROR:{subscriber.error&&subscriber.error(new types_js_1.ClientError({errors:message.payload,status:200},{query,variables}));return}case COMPLETE:{subscriber.complete&&subscriber.complete(),delete this.socketState.subscriptions[message.id];return}}}catch(e2){console.error(e2),socket.close(1006)}socket.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(query,operationName,subscriber,variables){const subscriptionId=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[subscriptionId]={query,variables,subscriber},this.socket.send(Subscribe(subscriptionId,{query,operationName,variables}).text),()=>{this.socket.send(Complete(subscriptionId).text),delete this.socketState.subscriptions[subscriptionId]}}rawRequest(query,variables){return new Promise((resolve,reject)=>{let result;this.rawSubscribe(query,{next:(data,extensions)=>result={data,extensions},error:reject,complete:()=>resolve(result)},variables)})}request(document2,variables){return new Promise((resolve,reject)=>{let result;this.subscribe(document2,{next:data=>result=data,error:reject,complete:()=>resolve(result)},variables)})}subscribe(document2,subscriber,variables){const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2);return this.makeSubscribe(query,operationName,subscriber,variables)}rawSubscribe(query,subscriber,variables){return this.makeSubscribe(query,void 0,subscriber,variables)}ping(payload){this.socket.send(Ping(payload).text)}close(){this.socket.close(1e3)}}GraphQLWebSocketClient.PROTOCOL="graphql-transport-ws",exports.GraphQLWebSocketClient=GraphQLWebSocketClient;function parseMessage(data,f=a=>a){return GraphQLWebSocketMessage.parse(data,f)}function ConnectionInit(payload){return new GraphQLWebSocketMessage(CONNECTION_INIT,payload)}function Ping(payload){return new GraphQLWebSocketMessage(PING,payload,void 0)}function Pong(payload){return new GraphQLWebSocketMessage(PONG,payload,void 0)}function Subscribe(id,payload){return new GraphQLWebSocketMessage(SUBSCRIBE,payload,id)}function Complete(id){return new GraphQLWebSocketMessage(COMPLETE,void 0,id)}},35242:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeadersInstanceToPlainObject=exports.uppercase=void 0;const uppercase=str=>str.toUpperCase();exports.uppercase=uppercase;const HeadersInstanceToPlainObject=headers=>{const o={};return headers.forEach((v,k)=>{o[k]=v}),o};exports.HeadersInstanceToPlainObject=HeadersInstanceToPlainObject},73625:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.request=exports.rawRequest=exports.GraphQLClient=exports.ClientError=exports.batchRequests=exports.resolveRequestDocument=exports.GraphQLWebSocketClient=exports.gql=void 0;const defaultJsonSerializer_js_1=__webpack_require__(64370),helpers_js_1=__webpack_require__(35242),parseArgs_js_1=__webpack_require__(73444),resolveRequestDocument_js_1=__webpack_require__(42983),types_js_1=__webpack_require__(36923);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(45005)),CrossFetch=cross_fetch_1,resolveHeaders=headers=>{let oHeaders={};return headers&&(typeof Headers<"u"&&headers instanceof Headers||CrossFetch&&CrossFetch.Headers&&headers instanceof CrossFetch.Headers?oHeaders=(0,helpers_js_1.HeadersInstanceToPlainObject)(headers):Array.isArray(headers)?headers.forEach(([name,value2])=>{name&&value2!==void 0&&(oHeaders[name]=value2)}):oHeaders=headers),oHeaders},cleanQuery=str=>str.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),buildRequestConfig=params=>{if(!Array.isArray(params.query)){const params_2=params,search=[`query=${encodeURIComponent(cleanQuery(params_2.query))}`];return params.variables&&search.push(`variables=${encodeURIComponent(params_2.jsonSerializer.stringify(params_2.variables))}`),params_2.operationName&&search.push(`operationName=${encodeURIComponent(params_2.operationName)}`),search.join("&")}if(typeof params.variables<"u"&&!Array.isArray(params.variables))throw new Error("Cannot create query with given variable type, array expected");const params_=params,payload=params.query.reduce((acc,currentQuery,index)=>(acc.push({query:cleanQuery(currentQuery),variables:params_.variables?params_.jsonSerializer.stringify(params_.variables[index]):void 0}),acc),[]);return`query=${encodeURIComponent(params_.jsonSerializer.stringify(payload))}`},createHttpMethodFetcher=method=>async params=>{const{url,query,variables,operationName,fetch,fetchOptions,middleware}=params,headers={...params.headers};let queryParams="",body;method==="POST"?(body=createRequestBody(query,variables,operationName,fetchOptions.jsonSerializer),typeof body=="string"&&(headers["Content-Type"]="application/json")):queryParams=buildRequestConfig({query,variables,operationName,jsonSerializer:fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer});const init={method,headers,body,...fetchOptions};let urlResolved=url,initResolved=init;if(middleware){const result=await Promise.resolve(middleware({...init,url,operationName,variables})),{url:urlNew,...initNew}=result;urlResolved=urlNew,initResolved=initNew}return queryParams&&(urlResolved=`${urlResolved}?${queryParams}`),await fetch(urlResolved,initResolved)};class GraphQLClient{constructor(url,requestConfig={}){this.url=url,this.requestConfig=requestConfig,this.rawRequest=async(...args)=>{const[queryOrOptions,variables,requestHeaders]=args,rawRequestOptions=(0,parseArgs_js_1.parseRawRequestArgs)(queryOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url:url2}=this;rawRequestOptions.signal!==void 0&&(fetchOptions.signal=rawRequestOptions.signal);const{operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(rawRequestOptions.query);return makeRequest({url:url2,query:rawRequestOptions.query,variables:rawRequestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(rawRequestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}}async request(documentOrOptions,...variablesAndRequestHeaders){const[variables,requestHeaders]=variablesAndRequestHeaders,requestOptions=(0,parseArgs_js_1.parseRequestArgs)(documentOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url}=this;requestOptions.signal!==void 0&&(fetchOptions.signal=requestOptions.signal);const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(requestOptions.document);return makeRequest({url,query,variables:requestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(requestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response.data)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}batchRequests(documentsOrOptions,requestHeaders){const batchRequestOptions=(0,parseArgs_js_1.parseBatchRequestArgs)(documentsOrOptions,requestHeaders),{headers,...fetchOptions}=this.requestConfig;batchRequestOptions.signal!==void 0&&(fetchOptions.signal=batchRequestOptions.signal);const queries=batchRequestOptions.documents.map(({document:document2})=>(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2).query),variables=batchRequestOptions.documents.map(({variables:variables2})=>variables2);return makeRequest({url:this.url,query:queries,variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(batchRequestOptions.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??cross_fetch_1.default,method:this.requestConfig.method||"POST",fetchOptions,middleware:this.requestConfig.requestMiddleware}).then(response=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(response),response.data)).catch(error=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(error),error})}setHeaders(headers){return this.requestConfig.headers=headers,this}setHeader(key,value2){const{headers}=this.requestConfig;return headers?headers[key]=value2:this.requestConfig.headers={[key]:value2},this}setEndpoint(value2){return this.url=value2,this}}exports.GraphQLClient=GraphQLClient;const makeRequest=async params=>{const{query,variables,fetchOptions}=params,fetcher=createHttpMethodFetcher((0,helpers_js_1.uppercase)(params.method??"post")),isBatchingQuery=Array.isArray(params.query),response=await fetcher(params),result=await getResult(response,fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer),successfullyReceivedData=Array.isArray(result)?!result.some(({data})=>!data):Boolean(result.data),successfullyPassedErrorPolicy=Array.isArray(result)||!result.errors||Array.isArray(result.errors)&&!result.errors.length||fetchOptions.errorPolicy==="all"||fetchOptions.errorPolicy==="ignore";if(response.ok&&successfullyPassedErrorPolicy&&successfullyReceivedData){const{errors:_,...rest}=(Array.isArray(result),result),data=fetchOptions.errorPolicy==="ignore"?rest:result;return{...isBatchingQuery?{data}:data,headers:response.headers,status:response.status}}else{const errorResult=typeof result=="string"?{error:result}:result;throw new types_js_1.ClientError({...errorResult,status:response.status,headers:response.headers},{query,variables})}},rawRequest=async(...args)=>{const[urlOrOptions,query,...variablesAndRequestHeaders]=args,requestOptions=(0,parseArgs_js_1.parseRawRequestExtendedArgs)(urlOrOptions,query,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).rawRequest({...requestOptions})};exports.rawRequest=rawRequest;async function request(urlOrOptions,document2,...variablesAndRequestHeaders){const requestOptions=(0,parseArgs_js_1.parseRequestExtendedArgs)(urlOrOptions,document2,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).request({...requestOptions})}exports.request=request;const batchRequests=async(...args)=>{const params=parseBatchRequestsArgsExtended(args);return new GraphQLClient(params.url).batchRequests(params)};exports.batchRequests=batchRequests;const parseBatchRequestsArgsExtended=args=>args.length===1?args[0]:{url:args[0],documents:args[1],requestHeaders:args[2],signal:void 0},createRequestBody=(query,variables,operationName,jsonSerializer)=>{const jsonSerializer_=jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer;if(!Array.isArray(query))return jsonSerializer_.stringify({query,variables,operationName});if(typeof variables<"u"&&!Array.isArray(variables))throw new Error("Cannot create request body with given variable type, array expected");const payload=query.reduce((acc,currentQuery,index)=>(acc.push({query:currentQuery,variables:variables?variables[index]:void 0}),acc),[]);return jsonSerializer_.stringify(payload)},getResult=async(response,jsonSerializer)=>{let contentType;return response.headers.forEach((value2,key)=>{key.toLowerCase()==="content-type"&&(contentType=value2)}),contentType&&(contentType.toLowerCase().startsWith("application/json")||contentType.toLowerCase().startsWith("application/graphql+json")||contentType.toLowerCase().startsWith("application/graphql-response+json"))?jsonSerializer.parse(await response.text()):response.text()},callOrIdentity=value2=>typeof value2=="function"?value2():value2,gql=(chunks,...variables)=>chunks.reduce((acc,chunk,index)=>`${acc}${chunk}${index in variables?String(variables[index]):""}`,"");exports.gql=gql;var graphql_ws_js_1=__webpack_require__(25219);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(42983);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},73444:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseRawRequestExtendedArgs=exports.parseRequestExtendedArgs=exports.parseBatchRequestArgs=exports.parseRawRequestArgs=exports.parseRequestArgs=void 0;const parseRequestArgs=(documentOrOptions,variables,requestHeaders)=>documentOrOptions.document?documentOrOptions:{document:documentOrOptions,variables,requestHeaders,signal:void 0};exports.parseRequestArgs=parseRequestArgs;const parseRawRequestArgs=(queryOrOptions,variables,requestHeaders)=>queryOrOptions.query?queryOrOptions:{query:queryOrOptions,variables,requestHeaders,signal:void 0};exports.parseRawRequestArgs=parseRawRequestArgs;const parseBatchRequestArgs=(documentsOrOptions,requestHeaders)=>documentsOrOptions.documents?documentsOrOptions:{documents:documentsOrOptions,requestHeaders,signal:void 0};exports.parseBatchRequestArgs=parseBatchRequestArgs;const parseRequestExtendedArgs=(urlOrOptions,document2,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.document?urlOrOptions:{url:urlOrOptions,document:document2,variables,requestHeaders,signal:void 0}};exports.parseRequestExtendedArgs=parseRequestExtendedArgs;const parseRawRequestExtendedArgs=(urlOrOptions,query,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.query?urlOrOptions:{url:urlOrOptions,query,variables,requestHeaders,signal:void 0}};exports.parseRawRequestExtendedArgs=parseRawRequestExtendedArgs},42983:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(77040),extractOperationName=document2=>{let operationName;const operationDefinitions=document2.definitions.filter(definition=>definition.kind==="OperationDefinition");return operationDefinitions.length===1&&(operationName=operationDefinitions[0]?.name?.value),operationName},resolveRequestDocument=document2=>{if(typeof document2=="string"){let operationName2;try{const parsedDocument=(0,graphql_1.parse)(document2);operationName2=extractOperationName(parsedDocument)}catch{}return{query:document2,operationName:operationName2}}const operationName=extractOperationName(document2);return{query:(0,graphql_1.print)(document2),operationName}};exports.resolveRequestDocument=resolveRequestDocument},36923:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClientError=void 0;class ClientError extends Error{constructor(response,request){const message=`${ClientError.extractMessage(response)}: ${JSON.stringify({response,request})}`;super(message);Object.setPrototypeOf(this,ClientError.prototype),this.response=response,this.request=request,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ClientError)}static extractMessage(response){return response.errors?.[0]?.message??`GraphQL Error (Code: ${response.status})`}}exports.ClientError=ClientError},44240:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>printError,_:()=>GraphQLError});var _jsutils_isObjectLike_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(16434),_polyfills_symbols_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58866),_language_location_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(34671),_language_printLocation_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(19866);function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self2,call){return call&&(_typeof(call)==="object"||typeof call=="function")?call:_assertThisInitialized(self2)}function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var GraphQLError=function(_Error){_inherits(GraphQLError2,_Error);var _super=_createSuper(GraphQLError2);function GraphQLError2(message,nodes,source,positions,path,originalError,extensions){var _nodeLocations,_nodeLocations2,_nodeLocations3,_this;_classCallCheck(this,GraphQLError2),_this=_super.call(this,message),_this.name="GraphQLError",_this.originalError=originalError??void 0,_this.nodes=undefinedIfEmpty(Array.isArray(nodes)?nodes:nodes?[nodes]:void 0);for(var nodeLocations=[],_i2=0,_ref3=(_this$nodes=_this.nodes)!==null&&_this$nodes!==void 0?_this$nodes:[];_i2<_ref3.length;_i2++){var _this$nodes,_ref4=_ref3[_i2],loc=_ref4.loc;loc!=null&&nodeLocations.push(loc)}nodeLocations=undefinedIfEmpty(nodeLocations),_this.source=source??((_nodeLocations=nodeLocations)===null||_nodeLocations===void 0?void 0:_nodeLocations[0].source),_this.positions=positions??((_nodeLocations2=nodeLocations)===null||_nodeLocations2===void 0?void 0:_nodeLocations2.map(function(loc2){return loc2.start})),_this.locations=positions&&source?positions.map(function(pos){return(0,_language_location_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(source,pos)}):(_nodeLocations3=nodeLocations)===null||_nodeLocations3===void 0?void 0:_nodeLocations3.map(function(loc2){return(0,_language_location_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(loc2.source,loc2.start)}),_this.path=path??void 0;var originalExtensions=originalError?.extensions;return extensions==null&&(0,_jsutils_isObjectLike_mjs__WEBPACK_IMPORTED_MODULE_1__.Z)(originalExtensions)?_this.extensions=_objectSpread({},originalExtensions):_this.extensions=extensions??{},Object.defineProperties(_assertThisInitialized(_this),{message:{enumerable:!0},locations:{enumerable:_this.locations!=null},path:{enumerable:_this.path!=null},extensions:{enumerable:_this.extensions!=null&&Object.keys(_this.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),originalError!=null&&originalError.stack?(Object.defineProperty(_assertThisInitialized(_this),"stack",{value:originalError.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(_this)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(_this),GraphQLError2):Object.defineProperty(_assertThisInitialized(_this),"stack",{value:Error().stack,writable:!0,configurable:!0}),_this)}return _createClass(GraphQLError2,[{key:"toString",value:function(){return printError(this)}},{key:_polyfills_symbols_mjs__WEBPACK_IMPORTED_MODULE_2__.YF,get:function(){return"Object"}}]),GraphQLError2}(_wrapNativeSuper(Error));function undefinedIfEmpty(array){return array===void 0||array.length===0?void 0:array}function printError(error){var output=error.message;if(error.nodes)for(var _i4=0,_error$nodes2=error.nodes;_i4<_error$nodes2.length;_i4++){var node=_error$nodes2[_i4];node.loc&&(output+=`
|
97
|
+
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if(typeof arg=="string"||typeof arg=="number")return arg;if(typeof arg!="object")return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value2,newClass){return newClass?value2?value2+" "+newClass:value2+newClass:value2}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},89810:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},50608:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(26828),types_js_1=__webpack_require__(45917),CONNECTION_INIT="connection_init",CONNECTION_ACK="connection_ack",PING="ping",PONG="pong",SUBSCRIBE="subscribe",NEXT="next",ERROR="error",COMPLETE="complete";class GraphQLWebSocketMessage{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(type,payload,id){this._type=type,this._payload=payload,this._id=id}get text(){const result={type:this.type};return this.id!=null&&this.id!=null&&(result.id=this.id),this.payload!=null&&this.payload!=null&&(result.payload=this.payload),JSON.stringify(result)}static parse(data,f){const{type,payload,id}=JSON.parse(data);return new GraphQLWebSocketMessage(type,f(payload),id)}}class GraphQLWebSocketClient{constructor(socket,{onInit,onAcknowledged,onPing,onPong}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=socket,socket.addEventListener("open",async e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},socket.send(ConnectionInit(onInit?await onInit():null).text)}),socket.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),socket.addEventListener("error",e=>{console.error(e)}),socket.addEventListener("message",e=>{try{const message=parseMessage(e.data);switch(message.type){case CONNECTION_ACK:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,onAcknowledged&&onAcknowledged(message.payload));return}case PING:{onPing?onPing(message.payload).then(r=>socket.send(Pong(r).text)):socket.send(Pong(null).text);return}case PONG:{onPong&&onPong(message.payload);return}}if(!this.socketState.acknowledged||message.id===void 0||message.id===null||!this.socketState.subscriptions[message.id])return;const{query,variables,subscriber}=this.socketState.subscriptions[message.id];switch(message.type){case NEXT:{!message.payload.errors&&message.payload.data&&subscriber.next&&subscriber.next(message.payload.data),message.payload.errors&&subscriber.error&&subscriber.error(new types_js_1.ClientError({...message.payload,status:200},{query,variables}));return}case ERROR:{subscriber.error&&subscriber.error(new types_js_1.ClientError({errors:message.payload,status:200},{query,variables}));return}case COMPLETE:{subscriber.complete&&subscriber.complete(),delete this.socketState.subscriptions[message.id];return}}}catch(e2){console.error(e2),socket.close(1006)}socket.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(query,operationName,subscriber,variables){const subscriptionId=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[subscriptionId]={query,variables,subscriber},this.socket.send(Subscribe(subscriptionId,{query,operationName,variables}).text),()=>{this.socket.send(Complete(subscriptionId).text),delete this.socketState.subscriptions[subscriptionId]}}rawRequest(query,variables){return new Promise((resolve,reject)=>{let result;this.rawSubscribe(query,{next:(data,extensions)=>result={data,extensions},error:reject,complete:()=>resolve(result)},variables)})}request(document2,variables){return new Promise((resolve,reject)=>{let result;this.subscribe(document2,{next:data=>result=data,error:reject,complete:()=>resolve(result)},variables)})}subscribe(document2,subscriber,variables){const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2);return this.makeSubscribe(query,operationName,subscriber,variables)}rawSubscribe(query,subscriber,variables){return this.makeSubscribe(query,void 0,subscriber,variables)}ping(payload){this.socket.send(Ping(payload).text)}close(){this.socket.close(1e3)}}GraphQLWebSocketClient.PROTOCOL="graphql-transport-ws",exports.GraphQLWebSocketClient=GraphQLWebSocketClient;function parseMessage(data,f=a=>a){return GraphQLWebSocketMessage.parse(data,f)}function ConnectionInit(payload){return new GraphQLWebSocketMessage(CONNECTION_INIT,payload)}function Ping(payload){return new GraphQLWebSocketMessage(PING,payload,void 0)}function Pong(payload){return new GraphQLWebSocketMessage(PONG,payload,void 0)}function Subscribe(id,payload){return new GraphQLWebSocketMessage(SUBSCRIBE,payload,id)}function Complete(id){return new GraphQLWebSocketMessage(COMPLETE,void 0,id)}},23473:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeadersInstanceToPlainObject=exports.uppercase=void 0;const uppercase=str=>str.toUpperCase();exports.uppercase=uppercase;const HeadersInstanceToPlainObject=headers=>{const o={};return headers.forEach((v,k)=>{o[k]=v}),o};exports.HeadersInstanceToPlainObject=HeadersInstanceToPlainObject},37620:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.request=exports.rawRequest=exports.GraphQLClient=exports.ClientError=exports.batchRequests=exports.resolveRequestDocument=exports.GraphQLWebSocketClient=exports.gql=void 0;const defaultJsonSerializer_js_1=__webpack_require__(89810),helpers_js_1=__webpack_require__(23473),parseArgs_js_1=__webpack_require__(48342),resolveRequestDocument_js_1=__webpack_require__(26828),types_js_1=__webpack_require__(45917);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(75752)),CrossFetch=cross_fetch_1,resolveHeaders=headers=>{let oHeaders={};return headers&&(typeof Headers<"u"&&headers instanceof Headers||CrossFetch&&CrossFetch.Headers&&headers instanceof CrossFetch.Headers?oHeaders=(0,helpers_js_1.HeadersInstanceToPlainObject)(headers):Array.isArray(headers)?headers.forEach(([name,value2])=>{name&&value2!==void 0&&(oHeaders[name]=value2)}):oHeaders=headers),oHeaders},cleanQuery=str=>str.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),buildRequestConfig=params=>{if(!Array.isArray(params.query)){const params_2=params,search=[`query=${encodeURIComponent(cleanQuery(params_2.query))}`];return params.variables&&search.push(`variables=${encodeURIComponent(params_2.jsonSerializer.stringify(params_2.variables))}`),params_2.operationName&&search.push(`operationName=${encodeURIComponent(params_2.operationName)}`),search.join("&")}if(typeof params.variables<"u"&&!Array.isArray(params.variables))throw new Error("Cannot create query with given variable type, array expected");const params_=params,payload=params.query.reduce((acc,currentQuery,index)=>(acc.push({query:cleanQuery(currentQuery),variables:params_.variables?params_.jsonSerializer.stringify(params_.variables[index]):void 0}),acc),[]);return`query=${encodeURIComponent(params_.jsonSerializer.stringify(payload))}`},createHttpMethodFetcher=method=>async params=>{const{url,query,variables,operationName,fetch,fetchOptions,middleware}=params,headers={...params.headers};let queryParams="",body;method==="POST"?(body=createRequestBody(query,variables,operationName,fetchOptions.jsonSerializer),typeof body=="string"&&(headers["Content-Type"]="application/json")):queryParams=buildRequestConfig({query,variables,operationName,jsonSerializer:fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer});const init={method,headers,body,...fetchOptions};let urlResolved=url,initResolved=init;if(middleware){const result=await Promise.resolve(middleware({...init,url,operationName,variables})),{url:urlNew,...initNew}=result;urlResolved=urlNew,initResolved=initNew}return queryParams&&(urlResolved=`${urlResolved}?${queryParams}`),await fetch(urlResolved,initResolved)};class GraphQLClient{constructor(url,requestConfig={}){this.url=url,this.requestConfig=requestConfig,this.rawRequest=async(...args)=>{const[queryOrOptions,variables,requestHeaders]=args,rawRequestOptions=(0,parseArgs_js_1.parseRawRequestArgs)(queryOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url:url2}=this;rawRequestOptions.signal!==void 0&&(fetchOptions.signal=rawRequestOptions.signal);const{operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(rawRequestOptions.query);return makeRequest({url:url2,query:rawRequestOptions.query,variables:rawRequestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(rawRequestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}}async request(documentOrOptions,...variablesAndRequestHeaders){const[variables,requestHeaders]=variablesAndRequestHeaders,requestOptions=(0,parseArgs_js_1.parseRequestArgs)(documentOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url}=this;requestOptions.signal!==void 0&&(fetchOptions.signal=requestOptions.signal);const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(requestOptions.document);return makeRequest({url,query,variables:requestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(requestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response.data)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}batchRequests(documentsOrOptions,requestHeaders){const batchRequestOptions=(0,parseArgs_js_1.parseBatchRequestArgs)(documentsOrOptions,requestHeaders),{headers,...fetchOptions}=this.requestConfig;batchRequestOptions.signal!==void 0&&(fetchOptions.signal=batchRequestOptions.signal);const queries=batchRequestOptions.documents.map(({document:document2})=>(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2).query),variables=batchRequestOptions.documents.map(({variables:variables2})=>variables2);return makeRequest({url:this.url,query:queries,variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(batchRequestOptions.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??cross_fetch_1.default,method:this.requestConfig.method||"POST",fetchOptions,middleware:this.requestConfig.requestMiddleware}).then(response=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(response),response.data)).catch(error=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(error),error})}setHeaders(headers){return this.requestConfig.headers=headers,this}setHeader(key,value2){const{headers}=this.requestConfig;return headers?headers[key]=value2:this.requestConfig.headers={[key]:value2},this}setEndpoint(value2){return this.url=value2,this}}exports.GraphQLClient=GraphQLClient;const makeRequest=async params=>{const{query,variables,fetchOptions}=params,fetcher=createHttpMethodFetcher((0,helpers_js_1.uppercase)(params.method??"post")),isBatchingQuery=Array.isArray(params.query),response=await fetcher(params),result=await getResult(response,fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer),successfullyReceivedData=Array.isArray(result)?!result.some(({data})=>!data):Boolean(result.data),successfullyPassedErrorPolicy=Array.isArray(result)||!result.errors||Array.isArray(result.errors)&&!result.errors.length||fetchOptions.errorPolicy==="all"||fetchOptions.errorPolicy==="ignore";if(response.ok&&successfullyPassedErrorPolicy&&successfullyReceivedData){const{errors:_,...rest}=(Array.isArray(result),result),data=fetchOptions.errorPolicy==="ignore"?rest:result;return{...isBatchingQuery?{data}:data,headers:response.headers,status:response.status}}else{const errorResult=typeof result=="string"?{error:result}:result;throw new types_js_1.ClientError({...errorResult,status:response.status,headers:response.headers},{query,variables})}},rawRequest=async(...args)=>{const[urlOrOptions,query,...variablesAndRequestHeaders]=args,requestOptions=(0,parseArgs_js_1.parseRawRequestExtendedArgs)(urlOrOptions,query,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).rawRequest({...requestOptions})};exports.rawRequest=rawRequest;async function request(urlOrOptions,document2,...variablesAndRequestHeaders){const requestOptions=(0,parseArgs_js_1.parseRequestExtendedArgs)(urlOrOptions,document2,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).request({...requestOptions})}exports.request=request;const batchRequests=async(...args)=>{const params=parseBatchRequestsArgsExtended(args);return new GraphQLClient(params.url).batchRequests(params)};exports.batchRequests=batchRequests;const parseBatchRequestsArgsExtended=args=>args.length===1?args[0]:{url:args[0],documents:args[1],requestHeaders:args[2],signal:void 0},createRequestBody=(query,variables,operationName,jsonSerializer)=>{const jsonSerializer_=jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer;if(!Array.isArray(query))return jsonSerializer_.stringify({query,variables,operationName});if(typeof variables<"u"&&!Array.isArray(variables))throw new Error("Cannot create request body with given variable type, array expected");const payload=query.reduce((acc,currentQuery,index)=>(acc.push({query:currentQuery,variables:variables?variables[index]:void 0}),acc),[]);return jsonSerializer_.stringify(payload)},getResult=async(response,jsonSerializer)=>{let contentType;return response.headers.forEach((value2,key)=>{key.toLowerCase()==="content-type"&&(contentType=value2)}),contentType&&(contentType.toLowerCase().startsWith("application/json")||contentType.toLowerCase().startsWith("application/graphql+json")||contentType.toLowerCase().startsWith("application/graphql-response+json"))?jsonSerializer.parse(await response.text()):response.text()},callOrIdentity=value2=>typeof value2=="function"?value2():value2,gql=(chunks,...variables)=>chunks.reduce((acc,chunk,index)=>`${acc}${chunk}${index in variables?String(variables[index]):""}`,"");exports.gql=gql;var graphql_ws_js_1=__webpack_require__(50608);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(26828);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},48342:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseRawRequestExtendedArgs=exports.parseRequestExtendedArgs=exports.parseBatchRequestArgs=exports.parseRawRequestArgs=exports.parseRequestArgs=void 0;const parseRequestArgs=(documentOrOptions,variables,requestHeaders)=>documentOrOptions.document?documentOrOptions:{document:documentOrOptions,variables,requestHeaders,signal:void 0};exports.parseRequestArgs=parseRequestArgs;const parseRawRequestArgs=(queryOrOptions,variables,requestHeaders)=>queryOrOptions.query?queryOrOptions:{query:queryOrOptions,variables,requestHeaders,signal:void 0};exports.parseRawRequestArgs=parseRawRequestArgs;const parseBatchRequestArgs=(documentsOrOptions,requestHeaders)=>documentsOrOptions.documents?documentsOrOptions:{documents:documentsOrOptions,requestHeaders,signal:void 0};exports.parseBatchRequestArgs=parseBatchRequestArgs;const parseRequestExtendedArgs=(urlOrOptions,document2,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.document?urlOrOptions:{url:urlOrOptions,document:document2,variables,requestHeaders,signal:void 0}};exports.parseRequestExtendedArgs=parseRequestExtendedArgs;const parseRawRequestExtendedArgs=(urlOrOptions,query,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.query?urlOrOptions:{url:urlOrOptions,query,variables,requestHeaders,signal:void 0}};exports.parseRawRequestExtendedArgs=parseRawRequestExtendedArgs},26828:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(10252),extractOperationName=document2=>{let operationName;const operationDefinitions=document2.definitions.filter(definition=>definition.kind==="OperationDefinition");return operationDefinitions.length===1&&(operationName=operationDefinitions[0]?.name?.value),operationName},resolveRequestDocument=document2=>{if(typeof document2=="string"){let operationName2;try{const parsedDocument=(0,graphql_1.parse)(document2);operationName2=extractOperationName(parsedDocument)}catch{}return{query:document2,operationName:operationName2}}const operationName=extractOperationName(document2);return{query:(0,graphql_1.print)(document2),operationName}};exports.resolveRequestDocument=resolveRequestDocument},45917:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClientError=void 0;class ClientError extends Error{constructor(response,request){const message=`${ClientError.extractMessage(response)}: ${JSON.stringify({response,request})}`;super(message);Object.setPrototypeOf(this,ClientError.prototype),this.response=response,this.request=request,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ClientError)}static extractMessage(response){return response.errors?.[0]?.message??`GraphQL Error (Code: ${response.status})`}}exports.ClientError=ClientError},44240:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>printError,_:()=>GraphQLError});var _jsutils_isObjectLike_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(16434),_polyfills_symbols_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58866),_language_location_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(34671),_language_printLocation_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(19866);function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self2,call){return call&&(_typeof(call)==="object"||typeof call=="function")?call:_assertThisInitialized(self2)}function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var GraphQLError=function(_Error){_inherits(GraphQLError2,_Error);var _super=_createSuper(GraphQLError2);function GraphQLError2(message,nodes,source,positions,path,originalError,extensions){var _nodeLocations,_nodeLocations2,_nodeLocations3,_this;_classCallCheck(this,GraphQLError2),_this=_super.call(this,message),_this.name="GraphQLError",_this.originalError=originalError??void 0,_this.nodes=undefinedIfEmpty(Array.isArray(nodes)?nodes:nodes?[nodes]:void 0);for(var nodeLocations=[],_i2=0,_ref3=(_this$nodes=_this.nodes)!==null&&_this$nodes!==void 0?_this$nodes:[];_i2<_ref3.length;_i2++){var _this$nodes,_ref4=_ref3[_i2],loc=_ref4.loc;loc!=null&&nodeLocations.push(loc)}nodeLocations=undefinedIfEmpty(nodeLocations),_this.source=source??((_nodeLocations=nodeLocations)===null||_nodeLocations===void 0?void 0:_nodeLocations[0].source),_this.positions=positions??((_nodeLocations2=nodeLocations)===null||_nodeLocations2===void 0?void 0:_nodeLocations2.map(function(loc2){return loc2.start})),_this.locations=positions&&source?positions.map(function(pos){return(0,_language_location_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(source,pos)}):(_nodeLocations3=nodeLocations)===null||_nodeLocations3===void 0?void 0:_nodeLocations3.map(function(loc2){return(0,_language_location_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(loc2.source,loc2.start)}),_this.path=path??void 0;var originalExtensions=originalError?.extensions;return extensions==null&&(0,_jsutils_isObjectLike_mjs__WEBPACK_IMPORTED_MODULE_1__.Z)(originalExtensions)?_this.extensions=_objectSpread({},originalExtensions):_this.extensions=extensions??{},Object.defineProperties(_assertThisInitialized(_this),{message:{enumerable:!0},locations:{enumerable:_this.locations!=null},path:{enumerable:_this.path!=null},extensions:{enumerable:_this.extensions!=null&&Object.keys(_this.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),originalError!=null&&originalError.stack?(Object.defineProperty(_assertThisInitialized(_this),"stack",{value:originalError.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(_this)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(_this),GraphQLError2):Object.defineProperty(_assertThisInitialized(_this),"stack",{value:Error().stack,writable:!0,configurable:!0}),_this)}return _createClass(GraphQLError2,[{key:"toString",value:function(){return printError(this)}},{key:_polyfills_symbols_mjs__WEBPACK_IMPORTED_MODULE_2__.YF,get:function(){return"Object"}}]),GraphQLError2}(_wrapNativeSuper(Error));function undefinedIfEmpty(array){return array===void 0||array.length===0?void 0:array}function printError(error){var output=error.message;if(error.nodes)for(var _i4=0,_error$nodes2=error.nodes;_i4<_error$nodes2.length;_i4++){var node=_error$nodes2[_i4];node.loc&&(output+=`
|
98
98
|
|
99
99
|
`+(0,_language_printLocation_mjs__WEBPACK_IMPORTED_MODULE_3__.Q)(node.loc))}else if(error.source&&error.locations)for(var _i6=0,_error$locations2=error.locations;_i6<_error$locations2.length;_i6++){var location=_error$locations2[_i6];output+=`
|
100
100
|
|
101
|
-
`+(0,_language_printLocation_mjs__WEBPACK_IMPORTED_MODULE_3__.z)(error.source,location)}return output}},51798:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>syntaxError});var _GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(44240);function syntaxError(source,position,description){return new _GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__._("Syntax Error: ".concat(description),void 0,source,[position])}},77040:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BREAK:()=>language_visitor.$_,BreakingChangeType:()=>BreakingChangeType,DEFAULT_DEPRECATION_REASON:()=>DEFAULT_DEPRECATION_REASON,DangerousChangeType:()=>DangerousChangeType,DirectiveLocation:()=>directiveLocation.B,ExecutableDefinitionsRule:()=>ExecutableDefinitionsRule,FieldsOnCorrectTypeRule:()=>FieldsOnCorrectTypeRule,FragmentsOnCompositeTypesRule:()=>FragmentsOnCompositeTypesRule,GraphQLBoolean:()=>GraphQLBoolean,GraphQLDeprecatedDirective:()=>GraphQLDeprecatedDirective,GraphQLDirective:()=>GraphQLDirective,GraphQLEnumType:()=>GraphQLEnumType,GraphQLError:()=>GraphQLError._,GraphQLFloat:()=>GraphQLFloat,GraphQLID:()=>GraphQLID,GraphQLIncludeDirective:()=>GraphQLIncludeDirective,GraphQLInputObjectType:()=>GraphQLInputObjectType,GraphQLInt:()=>GraphQLInt,GraphQLInterfaceType:()=>GraphQLInterfaceType,GraphQLList:()=>GraphQLList,GraphQLNonNull:()=>GraphQLNonNull,GraphQLObjectType:()=>GraphQLObjectType,GraphQLScalarType:()=>GraphQLScalarType,GraphQLSchema:()=>GraphQLSchema,GraphQLSkipDirective:()=>GraphQLSkipDirective,GraphQLSpecifiedByDirective:()=>GraphQLSpecifiedByDirective,GraphQLString:()=>GraphQLString,GraphQLUnionType:()=>GraphQLUnionType,Kind:()=>kinds.h,KnownArgumentNamesRule:()=>KnownArgumentNamesRule,KnownDirectivesRule:()=>KnownDirectivesRule,KnownFragmentNamesRule:()=>KnownFragmentNamesRule,KnownTypeNamesRule:()=>KnownTypeNamesRule,Lexer:()=>language_lexer.h,Location:()=>ast.Ye,LoneAnonymousOperationRule:()=>LoneAnonymousOperationRule,LoneSchemaDefinitionRule:()=>LoneSchemaDefinitionRule,NoDeprecatedCustomRule:()=>NoDeprecatedCustomRule,NoFragmentCyclesRule:()=>NoFragmentCyclesRule,NoSchemaIntrospectionCustomRule:()=>NoSchemaIntrospectionCustomRule,NoUndefinedVariablesRule:()=>NoUndefinedVariablesRule,NoUnusedFragmentsRule:()=>NoUnusedFragmentsRule,NoUnusedVariablesRule:()=>NoUnusedVariablesRule,OverlappingFieldsCanBeMergedRule:()=>OverlappingFieldsCanBeMergedRule,PossibleFragmentSpreadsRule:()=>PossibleFragmentSpreadsRule,PossibleTypeExtensionsRule:()=>PossibleTypeExtensionsRule,ProvidedRequiredArgumentsRule:()=>ProvidedRequiredArgumentsRule,ScalarLeafsRule:()=>ScalarLeafsRule,SchemaMetaFieldDef:()=>SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>SingleFieldSubscriptionsRule,Source:()=>language_source.H,Token:()=>ast.WU,TokenKind:()=>language_tokenKind.T,TypeInfo:()=>TypeInfo,TypeKind:()=>TypeKind,TypeMetaFieldDef:()=>TypeMetaFieldDef,TypeNameMetaFieldDef:()=>TypeNameMetaFieldDef,UniqueArgumentNamesRule:()=>UniqueArgumentNamesRule,UniqueDirectiveNamesRule:()=>UniqueDirectiveNamesRule,UniqueDirectivesPerLocationRule:()=>UniqueDirectivesPerLocationRule,UniqueEnumValueNamesRule:()=>UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule:()=>UniqueFieldDefinitionNamesRule,UniqueFragmentNamesRule:()=>UniqueFragmentNamesRule,UniqueInputFieldNamesRule:()=>UniqueInputFieldNamesRule,UniqueOperationNamesRule:()=>UniqueOperationNamesRule,UniqueOperationTypesRule:()=>UniqueOperationTypesRule,UniqueTypeNamesRule:()=>UniqueTypeNamesRule,UniqueVariableNamesRule:()=>UniqueVariableNamesRule,ValidationContext:()=>ValidationContext,ValuesOfCorrectTypeRule:()=>ValuesOfCorrectTypeRule,VariablesAreInputTypesRule:()=>VariablesAreInputTypesRule,VariablesInAllowedPositionRule:()=>VariablesInAllowedPositionRule,__Directive:()=>__Directive,__DirectiveLocation:()=>__DirectiveLocation,__EnumValue:()=>__EnumValue,__Field:()=>__Field,__InputValue:()=>__InputValue,__Schema:()=>__Schema,__Type:()=>__Type,__TypeKind:()=>__TypeKind,assertAbstractType:()=>assertAbstractType,assertCompositeType:()=>assertCompositeType,assertDirective:()=>assertDirective,assertEnumType:()=>assertEnumType,assertInputObjectType:()=>assertInputObjectType,assertInputType:()=>assertInputType,assertInterfaceType:()=>assertInterfaceType,assertLeafType:()=>assertLeafType,assertListType:()=>assertListType,assertNamedType:()=>assertNamedType,assertNonNullType:()=>assertNonNullType,assertNullableType:()=>assertNullableType,assertObjectType:()=>assertObjectType,assertOutputType:()=>assertOutputType,assertScalarType:()=>assertScalarType,assertSchema:()=>assertSchema,assertType:()=>assertType,assertUnionType:()=>assertUnionType,assertValidName:()=>assertValidName,assertValidSchema:()=>assertValidSchema,assertWrappingType:()=>assertWrappingType,astFromValue:()=>astFromValue,buildASTSchema:()=>buildASTSchema,buildClientSchema:()=>buildClientSchema,buildSchema:()=>buildSchema,coerceInputValue:()=>coerceInputValue,concatAST:()=>concatAST,createSourceEventStream:()=>createSourceEventStream,defaultFieldResolver:()=>defaultFieldResolver,defaultTypeResolver:()=>defaultTypeResolver,doTypesOverlap:()=>doTypesOverlap,execute:()=>execute,executeSync:()=>executeSync,extendSchema:()=>extendSchema,findBreakingChanges:()=>findBreakingChanges,findDangerousChanges:()=>findDangerousChanges,findDeprecatedUsages:()=>findDeprecatedUsages,formatError:()=>formatError,getDescription:()=>getDescription,getDirectiveValues:()=>getDirectiveValues,getIntrospectionQuery:()=>getIntrospectionQuery,getLocation:()=>language_location.k,getNamedType:()=>getNamedType,getNullableType:()=>getNullableType,getOperationAST:()=>getOperationAST,getOperationRootType:()=>getOperationRootType,getVisitFn:()=>language_visitor.CK,graphql:()=>graphql,graphqlSync:()=>graphqlSync,introspectionFromSchema:()=>introspectionFromSchema,introspectionTypes:()=>introspectionTypes,isAbstractType:()=>isAbstractType,isCompositeType:()=>isCompositeType,isDefinitionNode:()=>isDefinitionNode,isDirective:()=>isDirective,isEnumType:()=>isEnumType,isEqualType:()=>isEqualType,isExecutableDefinitionNode:()=>isExecutableDefinitionNode,isInputObjectType:()=>isInputObjectType,isInputType:()=>isInputType,isInterfaceType:()=>isInterfaceType,isIntrospectionType:()=>isIntrospectionType,isLeafType:()=>isLeafType,isListType:()=>isListType,isNamedType:()=>isNamedType,isNonNullType:()=>isNonNullType,isNullableType:()=>isNullableType,isObjectType:()=>isObjectType,isOutputType:()=>isOutputType,isRequiredArgument:()=>isRequiredArgument,isRequiredInputField:()=>isRequiredInputField,isScalarType:()=>isScalarType,isSchema:()=>isSchema,isSelectionNode:()=>isSelectionNode,isSpecifiedDirective:()=>isSpecifiedDirective,isSpecifiedScalarType:()=>isSpecifiedScalarType,isType:()=>isType,isTypeDefinitionNode:()=>isTypeDefinitionNode,isTypeExtensionNode:()=>isTypeExtensionNode,isTypeNode:()=>isTypeNode,isTypeSubTypeOf:()=>isTypeSubTypeOf,isTypeSystemDefinitionNode:()=>isTypeSystemDefinitionNode,isTypeSystemExtensionNode:()=>isTypeSystemExtensionNode,isUnionType:()=>isUnionType,isValidNameError:()=>isValidNameError,isValueNode:()=>isValueNode,isWrappingType:()=>isWrappingType,lexicographicSortSchema:()=>lexicographicSortSchema,locatedError:()=>locatedError,parse:()=>parser.parse,parseType:()=>parser.parseType,parseValue:()=>parser.parseValue,print:()=>printer.print,printError:()=>GraphQLError.O,printIntrospectionSchema:()=>printIntrospectionSchema,printLocation:()=>printLocation.Q,printSchema:()=>printSchema,printSourceLocation:()=>printLocation.z,printType:()=>printType,responsePathAsArray:()=>pathToArray,separateOperations:()=>separateOperations,specifiedDirectives:()=>specifiedDirectives,specifiedRules:()=>specifiedRules,specifiedScalarTypes:()=>specifiedScalarTypes,stripIgnoredCharacters:()=>stripIgnoredCharacters,subscribe:()=>subscribe,syntaxError:()=>syntaxError.h,typeFromAST:()=>typeFromAST,validate:()=>validate,validateSchema:()=>validateSchema,valueFromAST:()=>valueFromAST,valueFromASTUntyped:()=>valueFromASTUntyped,version:()=>version,versionInfo:()=>versionInfo,visit:()=>language_visitor.Vn,visitInParallel:()=>language_visitor.j1,visitWithTypeInfo:()=>visitWithTypeInfo});var version="15.8.0",versionInfo=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function isPromise(value2){return typeof value2?.then=="function"}var parser=__webpack_require__(64929),devAssert=__webpack_require__(89286),GraphQLError=__webpack_require__(44240),language_visitor=__webpack_require__(91545),find=Array.prototype.find?function(list,predicate){return Array.prototype.find.call(list,predicate)}:function(list,predicate){for(var _i2=0;_i2<list.length;_i2++){var value2=list[_i2];if(predicate(value2))return value2}};const polyfills_find=find;var objectValues=Object.values||function(obj){return Object.keys(obj).map(function(key){return obj[key]})};const polyfills_objectValues=objectValues;var inspect=__webpack_require__(5995);function locatedError(rawOriginalError,nodes,path){var _nodes,originalError=rawOriginalError instanceof Error?rawOriginalError:new Error("Unexpected error value: "+(0,inspect.Z)(rawOriginalError));return Array.isArray(originalError.path)?originalError:new GraphQLError._(originalError.message,(_nodes=originalError.nodes)!==null&&_nodes!==void 0?_nodes:nodes,originalError.source,originalError.positions,path,originalError)}var NAME_RX=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function assertValidName(name){var error=isValidNameError(name);if(error)throw error;return name}function isValidNameError(name){if(typeof name=="string"||(0,devAssert.Z)(0,"Expected name to be a string."),name.length>1&&name[0]==="_"&&name[1]==="_")return new GraphQLError._('Name "'.concat(name,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!NAME_RX.test(name))return new GraphQLError._('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(name,'" does not.'))}var objectEntries=Object.entries||function(obj){return Object.keys(obj).map(function(key){return[key,obj[key]]})};const polyfills_objectEntries=objectEntries;var symbols=__webpack_require__(58866);function keyMap(list,keyFn){return list.reduce(function(map,item){return map[keyFn(item)]=item,map},Object.create(null))}function mapValue(map,fn){for(var result=Object.create(null),_i2=0,_objectEntries2=polyfills_objectEntries(map);_i2<_objectEntries2.length;_i2++){var _ref2=_objectEntries2[_i2],_key=_ref2[0],_value=_ref2[1];result[_key]=fn(_value,_key)}return result}function toObjMap(obj){if(Object.getPrototypeOf(obj)===null)return obj;for(var map=Object.create(null),_i2=0,_objectEntries2=polyfills_objectEntries(obj);_i2<_objectEntries2.length;_i2++){var _ref2=_objectEntries2[_i2],key=_ref2[0],value2=_ref2[1];map[key]=value2}return map}function keyValMap(list,keyFn,valFn){return list.reduce(function(map,item){return map[keyFn(item)]=valFn(item),map},Object.create(null))}var instanceOf=__webpack_require__(23747),MAX_SUGGESTIONS=5;function didYouMean(firstArg,secondArg){var _ref=typeof firstArg=="string"?[firstArg,secondArg]:[void 0,firstArg],subMessage=_ref[0],suggestionsArg=_ref[1],message=" Did you mean ";subMessage&&(message+=subMessage+" ");var suggestions=suggestionsArg.map(function(x){return'"'.concat(x,'"')});switch(suggestions.length){case 0:return"";case 1:return message+suggestions[0]+"?";case 2:return message+suggestions[0]+" or "+suggestions[1]+"?"}var selected=suggestions.slice(0,MAX_SUGGESTIONS),lastItem=selected.pop();return message+selected.join(", ")+", or "+lastItem+"?"}var isObjectLike=__webpack_require__(16434);function identityFunc(x){return x}var defineInspect=__webpack_require__(8415);function naturalCompare(aStr,bStr){for(var aIdx=0,bIdx=0;aIdx<aStr.length&&bIdx<bStr.length;){var aChar=aStr.charCodeAt(aIdx),bChar=bStr.charCodeAt(bIdx);if(isDigit(aChar)&&isDigit(bChar)){var aNum=0;do++aIdx,aNum=aNum*10+aChar-DIGIT_0,aChar=aStr.charCodeAt(aIdx);while(isDigit(aChar)&&aNum>0);var bNum=0;do++bIdx,bNum=bNum*10+bChar-DIGIT_0,bChar=bStr.charCodeAt(bIdx);while(isDigit(bChar)&&bNum>0);if(aNum<bNum)return-1;if(aNum>bNum)return 1}else{if(aChar<bChar)return-1;if(aChar>bChar)return 1;++aIdx,++bIdx}}return aStr.length-bStr.length}var DIGIT_0=48,DIGIT_9=57;function isDigit(code){return!isNaN(code)&&DIGIT_0<=code&&code<=DIGIT_9}function suggestionList(input,options){for(var optionsByDistance=Object.create(null),lexicalDistance=new LexicalDistance(input),threshold=Math.floor(input.length*.4)+1,_i2=0;_i2<options.length;_i2++){var option=options[_i2],distance=lexicalDistance.measure(option,threshold);distance!==void 0&&(optionsByDistance[option]=distance)}return Object.keys(optionsByDistance).sort(function(a,b){var distanceDiff=optionsByDistance[a]-optionsByDistance[b];return distanceDiff!==0?distanceDiff:naturalCompare(a,b)})}var LexicalDistance=function(){function LexicalDistance2(input){this._input=input,this._inputLowerCase=input.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(input.length+1).fill(0),new Array(input.length+1).fill(0),new Array(input.length+1).fill(0)]}var _proto=LexicalDistance2.prototype;return _proto.measure=function(option,threshold){if(this._input===option)return 0;var optionLowerCase=option.toLowerCase();if(this._inputLowerCase===optionLowerCase)return 1;var a=stringToArray(optionLowerCase),b=this._inputArray;if(a.length<b.length){var tmp=a;a=b,b=tmp}var aLength=a.length,bLength=b.length;if(!(aLength-bLength>threshold)){for(var rows=this._rows,j=0;j<=bLength;j++)rows[0][j]=j;for(var i=1;i<=aLength;i++){for(var upRow=rows[(i-1)%3],currentRow=rows[i%3],smallestCell=currentRow[0]=i,_j=1;_j<=bLength;_j++){var cost=a[i-1]===b[_j-1]?0:1,currentCell=Math.min(upRow[_j]+1,currentRow[_j-1]+1,upRow[_j-1]+cost);if(i>1&&_j>1&&a[i-1]===b[_j-2]&&a[i-2]===b[_j-1]){var doubleDiagonalCell=rows[(i-2)%3][_j-2];currentCell=Math.min(currentCell,doubleDiagonalCell+1)}currentCell<smallestCell&&(smallestCell=currentCell),currentRow[_j]=currentCell}if(smallestCell>threshold)return}var distance=rows[aLength%3][bLength];return distance<=threshold?distance:void 0}},LexicalDistance2}();function stringToArray(str){for(var strLength=str.length,array=new Array(strLength),i=0;i<strLength;++i)array[i]=str.charCodeAt(i);return array}var kinds=__webpack_require__(47336),printer=__webpack_require__(69377),invariant=__webpack_require__(14270);function valueFromASTUntyped(valueNode,variables){switch(valueNode.kind){case kinds.h.NULL:return null;case kinds.h.INT:return parseInt(valueNode.value,10);case kinds.h.FLOAT:return parseFloat(valueNode.value);case kinds.h.STRING:case kinds.h.ENUM:case kinds.h.BOOLEAN:return valueNode.value;case kinds.h.LIST:return valueNode.values.map(function(node){return valueFromASTUntyped(node,variables)});case kinds.h.OBJECT:return keyValMap(valueNode.fields,function(field){return field.name.value},function(field){return valueFromASTUntyped(field.value,variables)});case kinds.h.VARIABLE:return variables?.[valueNode.name.value]}(0,invariant.Z)(0,"Unexpected value node: "+(0,inspect.Z)(valueNode))}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function isType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isInputObjectType(type)||isListType(type)||isNonNullType(type)}function assertType(type){if(!isType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL type."));return type}function isScalarType(type){return(0,instanceOf.Z)(type,GraphQLScalarType)}function assertScalarType(type){if(!isScalarType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Scalar type."));return type}function isObjectType(type){return(0,instanceOf.Z)(type,GraphQLObjectType)}function assertObjectType(type){if(!isObjectType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Object type."));return type}function isInterfaceType(type){return(0,instanceOf.Z)(type,GraphQLInterfaceType)}function assertInterfaceType(type){if(!isInterfaceType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Interface type."));return type}function isUnionType(type){return(0,instanceOf.Z)(type,GraphQLUnionType)}function assertUnionType(type){if(!isUnionType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Union type."));return type}function isEnumType(type){return(0,instanceOf.Z)(type,GraphQLEnumType)}function assertEnumType(type){if(!isEnumType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Enum type."));return type}function isInputObjectType(type){return(0,instanceOf.Z)(type,GraphQLInputObjectType)}function assertInputObjectType(type){if(!isInputObjectType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Input Object type."));return type}function isListType(type){return(0,instanceOf.Z)(type,GraphQLList)}function assertListType(type){if(!isListType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL List type."));return type}function isNonNullType(type){return(0,instanceOf.Z)(type,GraphQLNonNull)}function assertNonNullType(type){if(!isNonNullType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Non-Null type."));return type}function isInputType(type){return isScalarType(type)||isEnumType(type)||isInputObjectType(type)||isWrappingType(type)&&isInputType(type.ofType)}function assertInputType(type){if(!isInputType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL input type."));return type}function isOutputType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isWrappingType(type)&&isOutputType(type.ofType)}function assertOutputType(type){if(!isOutputType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL output type."));return type}function isLeafType(type){return isScalarType(type)||isEnumType(type)}function assertLeafType(type){if(!isLeafType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL leaf type."));return type}function isCompositeType(type){return isObjectType(type)||isInterfaceType(type)||isUnionType(type)}function assertCompositeType(type){if(!isCompositeType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL composite type."));return type}function isAbstractType(type){return isInterfaceType(type)||isUnionType(type)}function assertAbstractType(type){if(!isAbstractType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL abstract type."));return type}function GraphQLList(ofType){if(this instanceof GraphQLList)this.ofType=assertType(ofType);else return new GraphQLList(ofType)}GraphQLList.prototype.toString=function(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function(){return this.toString()},Object.defineProperty(GraphQLList.prototype,symbols.YF,{get:function(){return"GraphQLList"}}),(0,defineInspect.Z)(GraphQLList);function GraphQLNonNull(ofType){if(this instanceof GraphQLNonNull)this.ofType=assertNullableType(ofType);else return new GraphQLNonNull(ofType)}GraphQLNonNull.prototype.toString=function(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,symbols.YF,{get:function(){return"GraphQLNonNull"}}),(0,defineInspect.Z)(GraphQLNonNull);function isWrappingType(type){return isListType(type)||isNonNullType(type)}function assertWrappingType(type){if(!isWrappingType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL wrapping type."));return type}function isNullableType(type){return isType(type)&&!isNonNullType(type)}function assertNullableType(type){if(!isNullableType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL nullable type."));return type}function getNullableType(type){if(type)return isNonNullType(type)?type.ofType:type}function isNamedType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isInputObjectType(type)}function assertNamedType(type){if(!isNamedType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL named type."));return type}function getNamedType(type){if(type){for(var unwrappedType=type;isWrappingType(unwrappedType);)unwrappedType=unwrappedType.ofType;return unwrappedType}}function resolveThunk(thunk){return typeof thunk=="function"?thunk():thunk}function undefineIfEmpty(arr){return arr&&arr.length>0?arr:void 0}var GraphQLScalarType=function(){function GraphQLScalarType2(config){var _config$parseValue,_config$serialize,_config$parseLiteral,parseValue=(_config$parseValue=config.parseValue)!==null&&_config$parseValue!==void 0?_config$parseValue:identityFunc;this.name=config.name,this.description=config.description,this.specifiedByUrl=config.specifiedByUrl,this.serialize=(_config$serialize=config.serialize)!==null&&_config$serialize!==void 0?_config$serialize:identityFunc,this.parseValue=parseValue,this.parseLiteral=(_config$parseLiteral=config.parseLiteral)!==null&&_config$parseLiteral!==void 0?_config$parseLiteral:function(node,variables){return parseValue(valueFromASTUntyped(node,variables))},this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.specifiedByUrl==null||typeof config.specifiedByUrl=="string"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,inspect.Z)(config.specifiedByUrl),".")),config.serialize==null||typeof config.serialize=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),config.parseLiteral&&(typeof config.parseValue=="function"&&typeof config.parseLiteral=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var _proto=GraphQLScalarType2.prototype;return _proto.toConfig=function(){var _this$extensionASTNod;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod=this.extensionASTNodes)!==null&&_this$extensionASTNod!==void 0?_this$extensionASTNod:[]}},_proto.toString=function(){return this.name},_proto.toJSON=function(){return this.toString()},_createClass(GraphQLScalarType2,[{key:symbols.YF,get:function(){return"GraphQLScalarType"}}]),GraphQLScalarType2}();(0,defineInspect.Z)(GraphQLScalarType);var GraphQLObjectType=function(){function GraphQLObjectType2(config){this.name=config.name,this.description=config.description,this.isTypeOf=config.isTypeOf,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,config),this._interfaces=defineInterfaces.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.isTypeOf==null||typeof config.isTypeOf=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,inspect.Z)(config.isTypeOf),"."))}var _proto2=GraphQLObjectType2.prototype;return _proto2.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto2.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},_proto2.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},_proto2.toString=function(){return this.name},_proto2.toJSON=function(){return this.toString()},_createClass(GraphQLObjectType2,[{key:symbols.YF,get:function(){return"GraphQLObjectType"}}]),GraphQLObjectType2}();(0,defineInspect.Z)(GraphQLObjectType);function defineInterfaces(config){var _resolveThunk,interfaces=(_resolveThunk=resolveThunk(config.interfaces))!==null&&_resolveThunk!==void 0?_resolveThunk:[];return Array.isArray(interfaces)||(0,devAssert.Z)(0,"".concat(config.name," interfaces must be an Array or a function which returns an Array.")),interfaces}function defineFieldMap(config){var fieldMap=resolveThunk(config.fields);return isPlainObj(fieldMap)||(0,devAssert.Z)(0,"".concat(config.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(fieldMap,function(fieldConfig,fieldName){var _fieldConfig$args;isPlainObj(fieldConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," field config must be an object.")),!("isDeprecated"in fieldConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName,' should provide "deprecationReason" instead of "isDeprecated".')),fieldConfig.resolve==null||typeof fieldConfig.resolve=="function"||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," field resolver must be a function if ")+"provided, but got: ".concat((0,inspect.Z)(fieldConfig.resolve),"."));var argsConfig=(_fieldConfig$args=fieldConfig.args)!==null&&_fieldConfig$args!==void 0?_fieldConfig$args:{};isPlainObj(argsConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," args must be an object with argument names as keys."));var args=polyfills_objectEntries(argsConfig).map(function(_ref){var argName=_ref[0],argConfig=_ref[1];return{name:argName,description:argConfig.description,type:argConfig.type,defaultValue:argConfig.defaultValue,deprecationReason:argConfig.deprecationReason,extensions:argConfig.extensions&&toObjMap(argConfig.extensions),astNode:argConfig.astNode}});return{name:fieldName,description:fieldConfig.description,type:fieldConfig.type,args,resolve:fieldConfig.resolve,subscribe:fieldConfig.subscribe,isDeprecated:fieldConfig.deprecationReason!=null,deprecationReason:fieldConfig.deprecationReason,extensions:fieldConfig.extensions&&toObjMap(fieldConfig.extensions),astNode:fieldConfig.astNode}})}function isPlainObj(obj){return(0,isObjectLike.Z)(obj)&&!Array.isArray(obj)}function fieldsToFieldsConfig(fields){return mapValue(fields,function(field){return{description:field.description,type:field.type,args:argsToArgsConfig(field.args),resolve:field.resolve,subscribe:field.subscribe,deprecationReason:field.deprecationReason,extensions:field.extensions,astNode:field.astNode}})}function argsToArgsConfig(args){return keyValMap(args,function(arg){return arg.name},function(arg){return{description:arg.description,type:arg.type,defaultValue:arg.defaultValue,deprecationReason:arg.deprecationReason,extensions:arg.extensions,astNode:arg.astNode}})}function isRequiredArgument(arg){return isNonNullType(arg.type)&&arg.defaultValue===void 0}var GraphQLInterfaceType=function(){function GraphQLInterfaceType2(config){this.name=config.name,this.description=config.description,this.resolveType=config.resolveType,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,config),this._interfaces=defineInterfaces.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.resolveType==null||typeof config.resolveType=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,inspect.Z)(config.resolveType),"."))}var _proto3=GraphQLInterfaceType2.prototype;return _proto3.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto3.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},_proto3.toConfig=function(){var _this$extensionASTNod2;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod2=this.extensionASTNodes)!==null&&_this$extensionASTNod2!==void 0?_this$extensionASTNod2:[]}},_proto3.toString=function(){return this.name},_proto3.toJSON=function(){return this.toString()},_createClass(GraphQLInterfaceType2,[{key:symbols.YF,get:function(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType2}();(0,defineInspect.Z)(GraphQLInterfaceType);var GraphQLUnionType=function(){function GraphQLUnionType2(config){this.name=config.name,this.description=config.description,this.resolveType=config.resolveType,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._types=defineTypes.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.resolveType==null||typeof config.resolveType=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,inspect.Z)(config.resolveType),"."))}var _proto4=GraphQLUnionType2.prototype;return _proto4.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},_proto4.toConfig=function(){var _this$extensionASTNod3;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod3=this.extensionASTNodes)!==null&&_this$extensionASTNod3!==void 0?_this$extensionASTNod3:[]}},_proto4.toString=function(){return this.name},_proto4.toJSON=function(){return this.toString()},_createClass(GraphQLUnionType2,[{key:symbols.YF,get:function(){return"GraphQLUnionType"}}]),GraphQLUnionType2}();(0,defineInspect.Z)(GraphQLUnionType);function defineTypes(config){var types=resolveThunk(config.types);return Array.isArray(types)||(0,devAssert.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(config.name,".")),types}var GraphQLEnumType=function(){function GraphQLEnumType2(config){this.name=config.name,this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._values=defineEnumValues(this.name,config.values),this._valueLookup=new Map(this._values.map(function(enumValue){return[enumValue.value,enumValue]})),this._nameLookup=keyMap(this._values,function(value2){return value2.name}),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name.")}var _proto5=GraphQLEnumType2.prototype;return _proto5.getValues=function(){return this._values},_proto5.getValue=function(name){return this._nameLookup[name]},_proto5.serialize=function(outputValue){var enumValue=this._valueLookup.get(outputValue);if(enumValue===void 0)throw new GraphQLError._('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,inspect.Z)(outputValue)));return enumValue.name},_proto5.parseValue=function(inputValue){if(typeof inputValue!="string"){var valueStr=(0,inspect.Z)(inputValue);throw new GraphQLError._('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(valueStr,".")+didYouMeanEnumValue(this,valueStr))}var enumValue=this.getValue(inputValue);if(enumValue==null)throw new GraphQLError._('Value "'.concat(inputValue,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,inputValue));return enumValue.value},_proto5.parseLiteral=function(valueNode,_variables){if(valueNode.kind!==kinds.h.ENUM){var valueStr=(0,printer.print)(valueNode);throw new GraphQLError._('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(valueStr,".")+didYouMeanEnumValue(this,valueStr),valueNode)}var enumValue=this.getValue(valueNode.value);if(enumValue==null){var _valueStr=(0,printer.print)(valueNode);throw new GraphQLError._('Value "'.concat(_valueStr,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,_valueStr),valueNode)}return enumValue.value},_proto5.toConfig=function(){var _this$extensionASTNod4,values=keyValMap(this.getValues(),function(value2){return value2.name},function(value2){return{description:value2.description,value:value2.value,deprecationReason:value2.deprecationReason,extensions:value2.extensions,astNode:value2.astNode}});return{name:this.name,description:this.description,values,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod4=this.extensionASTNodes)!==null&&_this$extensionASTNod4!==void 0?_this$extensionASTNod4:[]}},_proto5.toString=function(){return this.name},_proto5.toJSON=function(){return this.toString()},_createClass(GraphQLEnumType2,[{key:symbols.YF,get:function(){return"GraphQLEnumType"}}]),GraphQLEnumType2}();(0,defineInspect.Z)(GraphQLEnumType);function didYouMeanEnumValue(enumType,unknownValueStr){var allNames=enumType.getValues().map(function(value2){return value2.name}),suggestedValues=suggestionList(unknownValueStr,allNames);return didYouMean("the enum value",suggestedValues)}function defineEnumValues(typeName,valueMap){return isPlainObj(valueMap)||(0,devAssert.Z)(0,"".concat(typeName," values must be an object with value names as keys.")),polyfills_objectEntries(valueMap).map(function(_ref2){var valueName=_ref2[0],valueConfig=_ref2[1];return isPlainObj(valueConfig)||(0,devAssert.Z)(0,"".concat(typeName,".").concat(valueName,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,inspect.Z)(valueConfig),".")),!("isDeprecated"in valueConfig)||(0,devAssert.Z)(0,"".concat(typeName,".").concat(valueName,' should provide "deprecationReason" instead of "isDeprecated".')),{name:valueName,description:valueConfig.description,value:valueConfig.value!==void 0?valueConfig.value:valueName,isDeprecated:valueConfig.deprecationReason!=null,deprecationReason:valueConfig.deprecationReason,extensions:valueConfig.extensions&&toObjMap(valueConfig.extensions),astNode:valueConfig.astNode}})}var GraphQLInputObjectType=function(){function GraphQLInputObjectType2(config){this.name=config.name,this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name.")}var _proto6=GraphQLInputObjectType2.prototype;return _proto6.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto6.toConfig=function(){var _this$extensionASTNod5,fields=mapValue(this.getFields(),function(field){return{description:field.description,type:field.type,defaultValue:field.defaultValue,deprecationReason:field.deprecationReason,extensions:field.extensions,astNode:field.astNode}});return{name:this.name,description:this.description,fields,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod5=this.extensionASTNodes)!==null&&_this$extensionASTNod5!==void 0?_this$extensionASTNod5:[]}},_proto6.toString=function(){return this.name},_proto6.toJSON=function(){return this.toString()},_createClass(GraphQLInputObjectType2,[{key:symbols.YF,get:function(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType2}();(0,defineInspect.Z)(GraphQLInputObjectType);function defineInputFieldMap(config){var fieldMap=resolveThunk(config.fields);return isPlainObj(fieldMap)||(0,devAssert.Z)(0,"".concat(config.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(fieldMap,function(fieldConfig,fieldName){return!("resolve"in fieldConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," field has a resolve property, but Input Types cannot define resolvers.")),{name:fieldName,description:fieldConfig.description,type:fieldConfig.type,defaultValue:fieldConfig.defaultValue,deprecationReason:fieldConfig.deprecationReason,extensions:fieldConfig.extensions&&toObjMap(fieldConfig.extensions),astNode:fieldConfig.astNode}})}function isRequiredInputField(field){return isNonNullType(field.type)&&field.defaultValue===void 0}function isEqualType(typeA,typeB){return typeA===typeB?!0:isNonNullType(typeA)&&isNonNullType(typeB)||isListType(typeA)&&isListType(typeB)?isEqualType(typeA.ofType,typeB.ofType):!1}function isTypeSubTypeOf(schema,maybeSubType,superType){return maybeSubType===superType?!0:isNonNullType(superType)?isNonNullType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType.ofType):!1:isNonNullType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType):isListType(superType)?isListType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType.ofType):!1:isListType(maybeSubType)?!1:isAbstractType(superType)&&(isInterfaceType(maybeSubType)||isObjectType(maybeSubType))&&schema.isSubType(superType,maybeSubType)}function doTypesOverlap(schema,typeA,typeB){return typeA===typeB?!0:isAbstractType(typeA)?isAbstractType(typeB)?schema.getPossibleTypes(typeA).some(function(type){return schema.isSubType(typeB,type)}):schema.isSubType(typeA,typeB):isAbstractType(typeB)?schema.isSubType(typeB,typeA):!1}var arrayFrom=Array.from||function(obj,mapFn,thisArg){if(obj==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var iteratorMethod=obj[symbols.Xr];if(typeof iteratorMethod=="function"){for(var iterator=iteratorMethod.call(obj),result=[],step,i=0;!(step=iterator.next()).done;++i)if(result.push(mapFn.call(thisArg,step.value,i)),i>9999999)throw new TypeError("Near-infinite iteration.");return result}var length=obj.length;if(typeof length=="number"&&length>=0&&length%1===0){for(var _result=[],_i=0;_i<length;++_i)Object.prototype.hasOwnProperty.call(obj,_i)&&_result.push(mapFn.call(thisArg,obj[_i],_i));return _result}return[]};const polyfills_arrayFrom=arrayFrom;var directiveLocation=__webpack_require__(72395),isFinitePolyfill=Number.isFinite||function(value2){return typeof value2=="number"&&isFinite(value2)};const polyfills_isFinite=isFinitePolyfill;function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function safeArrayFrom(collection){var mapFn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(item){return item};if(collection==null||_typeof(collection)!=="object")return null;if(Array.isArray(collection))return collection.map(mapFn);var iteratorMethod=collection[symbols.Xr];if(typeof iteratorMethod=="function"){for(var iterator=iteratorMethod.call(collection),result=[],step,i=0;!(step=iterator.next()).done;++i)result.push(mapFn(step.value,i));return result}var length=collection.length;if(typeof length=="number"&&length>=0&&length%1===0){for(var _result=[],_i=0;_i<length;++_i){if(!Object.prototype.hasOwnProperty.call(collection,_i))return null;_result.push(mapFn(collection[String(_i)],_i))}return _result}return null}var isInteger=Number.isInteger||function(value2){return typeof value2=="number"&&isFinite(value2)&&Math.floor(value2)===value2};const polyfills_isInteger=isInteger;var MAX_INT=2147483647,MIN_INT=-2147483648;function serializeInt(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue?1:0;var num=coercedValue;if(typeof coercedValue=="string"&&coercedValue!==""&&(num=Number(coercedValue)),!polyfills_isInteger(num))throw new GraphQLError._("Int cannot represent non-integer value: ".concat((0,inspect.Z)(coercedValue)));if(num>MAX_INT||num<MIN_INT)throw new GraphQLError._("Int cannot represent non 32-bit signed integer value: "+(0,inspect.Z)(coercedValue));return num}function coerceInt(inputValue){if(!polyfills_isInteger(inputValue))throw new GraphQLError._("Int cannot represent non-integer value: ".concat((0,inspect.Z)(inputValue)));if(inputValue>MAX_INT||inputValue<MIN_INT)throw new GraphQLError._("Int cannot represent non 32-bit signed integer value: ".concat(inputValue));return inputValue}var GraphQLInt=new GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:serializeInt,parseValue:coerceInt,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.INT)throw new GraphQLError._("Int cannot represent non-integer value: ".concat((0,printer.print)(valueNode)),valueNode);var num=parseInt(valueNode.value,10);if(num>MAX_INT||num<MIN_INT)throw new GraphQLError._("Int cannot represent non 32-bit signed integer value: ".concat(valueNode.value),valueNode);return num}});function serializeFloat(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue?1:0;var num=coercedValue;if(typeof coercedValue=="string"&&coercedValue!==""&&(num=Number(coercedValue)),!polyfills_isFinite(num))throw new GraphQLError._("Float cannot represent non numeric value: ".concat((0,inspect.Z)(coercedValue)));return num}function coerceFloat(inputValue){if(!polyfills_isFinite(inputValue))throw new GraphQLError._("Float cannot represent non numeric value: ".concat((0,inspect.Z)(inputValue)));return inputValue}var GraphQLFloat=new GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:serializeFloat,parseValue:coerceFloat,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.FLOAT&&valueNode.kind!==kinds.h.INT)throw new GraphQLError._("Float cannot represent non numeric value: ".concat((0,printer.print)(valueNode)),valueNode);return parseFloat(valueNode.value)}});function serializeObject(outputValue){if((0,isObjectLike.Z)(outputValue)){if(typeof outputValue.valueOf=="function"){var valueOfResult=outputValue.valueOf();if(!(0,isObjectLike.Z)(valueOfResult))return valueOfResult}if(typeof outputValue.toJSON=="function")return outputValue.toJSON()}return outputValue}function serializeString(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="string")return coercedValue;if(typeof coercedValue=="boolean")return coercedValue?"true":"false";if(polyfills_isFinite(coercedValue))return coercedValue.toString();throw new GraphQLError._("String cannot represent value: ".concat((0,inspect.Z)(outputValue)))}function coerceString(inputValue){if(typeof inputValue!="string")throw new GraphQLError._("String cannot represent a non string value: ".concat((0,inspect.Z)(inputValue)));return inputValue}var GraphQLString=new GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:serializeString,parseValue:coerceString,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.STRING)throw new GraphQLError._("String cannot represent a non string value: ".concat((0,printer.print)(valueNode)),valueNode);return valueNode.value}});function serializeBoolean(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue;if(polyfills_isFinite(coercedValue))return coercedValue!==0;throw new GraphQLError._("Boolean cannot represent a non boolean value: ".concat((0,inspect.Z)(coercedValue)))}function coerceBoolean(inputValue){if(typeof inputValue!="boolean")throw new GraphQLError._("Boolean cannot represent a non boolean value: ".concat((0,inspect.Z)(inputValue)));return inputValue}var GraphQLBoolean=new GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:serializeBoolean,parseValue:coerceBoolean,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.BOOLEAN)throw new GraphQLError._("Boolean cannot represent a non boolean value: ".concat((0,printer.print)(valueNode)),valueNode);return valueNode.value}});function serializeID(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="string")return coercedValue;if(polyfills_isInteger(coercedValue))return String(coercedValue);throw new GraphQLError._("ID cannot represent value: ".concat((0,inspect.Z)(outputValue)))}function coerceID(inputValue){if(typeof inputValue=="string")return inputValue;if(polyfills_isInteger(inputValue))return inputValue.toString();throw new GraphQLError._("ID cannot represent value: ".concat((0,inspect.Z)(inputValue)))}var GraphQLID=new GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:serializeID,parseValue:coerceID,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.STRING&&valueNode.kind!==kinds.h.INT)throw new GraphQLError._("ID cannot represent a non-string and non-integer value: "+(0,printer.print)(valueNode),valueNode);return valueNode.value}}),specifiedScalarTypes=Object.freeze([GraphQLString,GraphQLInt,GraphQLFloat,GraphQLBoolean,GraphQLID]);function isSpecifiedScalarType(type){return specifiedScalarTypes.some(function(_ref){var name=_ref.name;return type.name===name})}function astFromValue(value2,type){if(isNonNullType(type)){var astValue=astFromValue(value2,type.ofType);return astValue?.kind===kinds.h.NULL?null:astValue}if(value2===null)return{kind:kinds.h.NULL};if(value2===void 0)return null;if(isListType(type)){var itemType=type.ofType,items=safeArrayFrom(value2);if(items!=null){for(var valuesNodes=[],_i2=0;_i2<items.length;_i2++){var item=items[_i2],itemNode=astFromValue(item,itemType);itemNode!=null&&valuesNodes.push(itemNode)}return{kind:kinds.h.LIST,values:valuesNodes}}return astFromValue(value2,itemType)}if(isInputObjectType(type)){if(!(0,isObjectLike.Z)(value2))return null;for(var fieldNodes=[],_i4=0,_objectValues2=polyfills_objectValues(type.getFields());_i4<_objectValues2.length;_i4++){var field=_objectValues2[_i4],fieldValue=astFromValue(value2[field.name],field.type);fieldValue&&fieldNodes.push({kind:kinds.h.OBJECT_FIELD,name:{kind:kinds.h.NAME,value:field.name},value:fieldValue})}return{kind:kinds.h.OBJECT,fields:fieldNodes}}if(isLeafType(type)){var serialized=type.serialize(value2);if(serialized==null)return null;if(typeof serialized=="boolean")return{kind:kinds.h.BOOLEAN,value:serialized};if(typeof serialized=="number"&&polyfills_isFinite(serialized)){var stringNum=String(serialized);return integerStringRegExp.test(stringNum)?{kind:kinds.h.INT,value:stringNum}:{kind:kinds.h.FLOAT,value:stringNum}}if(typeof serialized=="string")return isEnumType(type)?{kind:kinds.h.ENUM,value:serialized}:type===GraphQLID&&integerStringRegExp.test(serialized)?{kind:kinds.h.INT,value:serialized}:{kind:kinds.h.STRING,value:serialized};throw new TypeError("Cannot convert value to AST: ".concat((0,inspect.Z)(serialized),"."))}(0,invariant.Z)(0,"Unexpected input type: "+(0,inspect.Z)(type))}var integerStringRegExp=/^-?(?:0|[1-9][0-9]*)$/,__Schema=new GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:GraphQLString,resolve:function(schema){return schema.description}},types:{description:"A list of all types supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Type))),resolve:function(schema){return polyfills_objectValues(schema.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new GraphQLNonNull(__Type),resolve:function(schema){return schema.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:__Type,resolve:function(schema){return schema.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:__Type,resolve:function(schema){return schema.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Directive))),resolve:function(schema){return schema.getDirectives()}}}}}),__Directive=new GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
101
|
+
`+(0,_language_printLocation_mjs__WEBPACK_IMPORTED_MODULE_3__.z)(error.source,location)}return output}},51798:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>syntaxError});var _GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(44240);function syntaxError(source,position,description){return new _GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__._("Syntax Error: ".concat(description),void 0,source,[position])}},10252:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BREAK:()=>language_visitor.$_,BreakingChangeType:()=>BreakingChangeType,DEFAULT_DEPRECATION_REASON:()=>DEFAULT_DEPRECATION_REASON,DangerousChangeType:()=>DangerousChangeType,DirectiveLocation:()=>directiveLocation.B,ExecutableDefinitionsRule:()=>ExecutableDefinitionsRule,FieldsOnCorrectTypeRule:()=>FieldsOnCorrectTypeRule,FragmentsOnCompositeTypesRule:()=>FragmentsOnCompositeTypesRule,GraphQLBoolean:()=>GraphQLBoolean,GraphQLDeprecatedDirective:()=>GraphQLDeprecatedDirective,GraphQLDirective:()=>GraphQLDirective,GraphQLEnumType:()=>GraphQLEnumType,GraphQLError:()=>GraphQLError._,GraphQLFloat:()=>GraphQLFloat,GraphQLID:()=>GraphQLID,GraphQLIncludeDirective:()=>GraphQLIncludeDirective,GraphQLInputObjectType:()=>GraphQLInputObjectType,GraphQLInt:()=>GraphQLInt,GraphQLInterfaceType:()=>GraphQLInterfaceType,GraphQLList:()=>GraphQLList,GraphQLNonNull:()=>GraphQLNonNull,GraphQLObjectType:()=>GraphQLObjectType,GraphQLScalarType:()=>GraphQLScalarType,GraphQLSchema:()=>GraphQLSchema,GraphQLSkipDirective:()=>GraphQLSkipDirective,GraphQLSpecifiedByDirective:()=>GraphQLSpecifiedByDirective,GraphQLString:()=>GraphQLString,GraphQLUnionType:()=>GraphQLUnionType,Kind:()=>kinds.h,KnownArgumentNamesRule:()=>KnownArgumentNamesRule,KnownDirectivesRule:()=>KnownDirectivesRule,KnownFragmentNamesRule:()=>KnownFragmentNamesRule,KnownTypeNamesRule:()=>KnownTypeNamesRule,Lexer:()=>language_lexer.h,Location:()=>ast.Ye,LoneAnonymousOperationRule:()=>LoneAnonymousOperationRule,LoneSchemaDefinitionRule:()=>LoneSchemaDefinitionRule,NoDeprecatedCustomRule:()=>NoDeprecatedCustomRule,NoFragmentCyclesRule:()=>NoFragmentCyclesRule,NoSchemaIntrospectionCustomRule:()=>NoSchemaIntrospectionCustomRule,NoUndefinedVariablesRule:()=>NoUndefinedVariablesRule,NoUnusedFragmentsRule:()=>NoUnusedFragmentsRule,NoUnusedVariablesRule:()=>NoUnusedVariablesRule,OverlappingFieldsCanBeMergedRule:()=>OverlappingFieldsCanBeMergedRule,PossibleFragmentSpreadsRule:()=>PossibleFragmentSpreadsRule,PossibleTypeExtensionsRule:()=>PossibleTypeExtensionsRule,ProvidedRequiredArgumentsRule:()=>ProvidedRequiredArgumentsRule,ScalarLeafsRule:()=>ScalarLeafsRule,SchemaMetaFieldDef:()=>SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>SingleFieldSubscriptionsRule,Source:()=>language_source.H,Token:()=>ast.WU,TokenKind:()=>language_tokenKind.T,TypeInfo:()=>TypeInfo,TypeKind:()=>TypeKind,TypeMetaFieldDef:()=>TypeMetaFieldDef,TypeNameMetaFieldDef:()=>TypeNameMetaFieldDef,UniqueArgumentNamesRule:()=>UniqueArgumentNamesRule,UniqueDirectiveNamesRule:()=>UniqueDirectiveNamesRule,UniqueDirectivesPerLocationRule:()=>UniqueDirectivesPerLocationRule,UniqueEnumValueNamesRule:()=>UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule:()=>UniqueFieldDefinitionNamesRule,UniqueFragmentNamesRule:()=>UniqueFragmentNamesRule,UniqueInputFieldNamesRule:()=>UniqueInputFieldNamesRule,UniqueOperationNamesRule:()=>UniqueOperationNamesRule,UniqueOperationTypesRule:()=>UniqueOperationTypesRule,UniqueTypeNamesRule:()=>UniqueTypeNamesRule,UniqueVariableNamesRule:()=>UniqueVariableNamesRule,ValidationContext:()=>ValidationContext,ValuesOfCorrectTypeRule:()=>ValuesOfCorrectTypeRule,VariablesAreInputTypesRule:()=>VariablesAreInputTypesRule,VariablesInAllowedPositionRule:()=>VariablesInAllowedPositionRule,__Directive:()=>__Directive,__DirectiveLocation:()=>__DirectiveLocation,__EnumValue:()=>__EnumValue,__Field:()=>__Field,__InputValue:()=>__InputValue,__Schema:()=>__Schema,__Type:()=>__Type,__TypeKind:()=>__TypeKind,assertAbstractType:()=>assertAbstractType,assertCompositeType:()=>assertCompositeType,assertDirective:()=>assertDirective,assertEnumType:()=>assertEnumType,assertInputObjectType:()=>assertInputObjectType,assertInputType:()=>assertInputType,assertInterfaceType:()=>assertInterfaceType,assertLeafType:()=>assertLeafType,assertListType:()=>assertListType,assertNamedType:()=>assertNamedType,assertNonNullType:()=>assertNonNullType,assertNullableType:()=>assertNullableType,assertObjectType:()=>assertObjectType,assertOutputType:()=>assertOutputType,assertScalarType:()=>assertScalarType,assertSchema:()=>assertSchema,assertType:()=>assertType,assertUnionType:()=>assertUnionType,assertValidName:()=>assertValidName,assertValidSchema:()=>assertValidSchema,assertWrappingType:()=>assertWrappingType,astFromValue:()=>astFromValue,buildASTSchema:()=>buildASTSchema,buildClientSchema:()=>buildClientSchema,buildSchema:()=>buildSchema,coerceInputValue:()=>coerceInputValue,concatAST:()=>concatAST,createSourceEventStream:()=>createSourceEventStream,defaultFieldResolver:()=>defaultFieldResolver,defaultTypeResolver:()=>defaultTypeResolver,doTypesOverlap:()=>doTypesOverlap,execute:()=>execute,executeSync:()=>executeSync,extendSchema:()=>extendSchema,findBreakingChanges:()=>findBreakingChanges,findDangerousChanges:()=>findDangerousChanges,findDeprecatedUsages:()=>findDeprecatedUsages,formatError:()=>formatError,getDescription:()=>getDescription,getDirectiveValues:()=>getDirectiveValues,getIntrospectionQuery:()=>getIntrospectionQuery,getLocation:()=>language_location.k,getNamedType:()=>getNamedType,getNullableType:()=>getNullableType,getOperationAST:()=>getOperationAST,getOperationRootType:()=>getOperationRootType,getVisitFn:()=>language_visitor.CK,graphql:()=>graphql,graphqlSync:()=>graphqlSync,introspectionFromSchema:()=>introspectionFromSchema,introspectionTypes:()=>introspectionTypes,isAbstractType:()=>isAbstractType,isCompositeType:()=>isCompositeType,isDefinitionNode:()=>predicates.Ir,isDirective:()=>isDirective,isEnumType:()=>isEnumType,isEqualType:()=>isEqualType,isExecutableDefinitionNode:()=>predicates.Wk,isInputObjectType:()=>isInputObjectType,isInputType:()=>isInputType,isInterfaceType:()=>isInterfaceType,isIntrospectionType:()=>isIntrospectionType,isLeafType:()=>isLeafType,isListType:()=>isListType,isNamedType:()=>isNamedType,isNonNullType:()=>isNonNullType,isNullableType:()=>isNullableType,isObjectType:()=>isObjectType,isOutputType:()=>isOutputType,isRequiredArgument:()=>isRequiredArgument,isRequiredInputField:()=>isRequiredInputField,isScalarType:()=>isScalarType,isSchema:()=>isSchema,isSelectionNode:()=>predicates.pO,isSpecifiedDirective:()=>isSpecifiedDirective,isSpecifiedScalarType:()=>isSpecifiedScalarType,isType:()=>isType,isTypeDefinitionNode:()=>predicates.zT,isTypeExtensionNode:()=>predicates.D$,isTypeNode:()=>predicates.VB,isTypeSubTypeOf:()=>isTypeSubTypeOf,isTypeSystemDefinitionNode:()=>predicates.G4,isTypeSystemExtensionNode:()=>predicates.aU,isUnionType:()=>isUnionType,isValidNameError:()=>isValidNameError,isValueNode:()=>predicates.nr,isWrappingType:()=>isWrappingType,lexicographicSortSchema:()=>lexicographicSortSchema,locatedError:()=>locatedError,parse:()=>parser.parse,parseType:()=>parser.parseType,parseValue:()=>parser.parseValue,print:()=>printer.print,printError:()=>GraphQLError.O,printIntrospectionSchema:()=>printIntrospectionSchema,printLocation:()=>printLocation.Q,printSchema:()=>printSchema,printSourceLocation:()=>printLocation.z,printType:()=>printType,responsePathAsArray:()=>pathToArray,separateOperations:()=>separateOperations,specifiedDirectives:()=>specifiedDirectives,specifiedRules:()=>specifiedRules,specifiedScalarTypes:()=>specifiedScalarTypes,stripIgnoredCharacters:()=>stripIgnoredCharacters,subscribe:()=>subscribe,syntaxError:()=>syntaxError.h,typeFromAST:()=>typeFromAST,validate:()=>validate,validateSchema:()=>validateSchema,valueFromAST:()=>valueFromAST,valueFromASTUntyped:()=>valueFromASTUntyped,version:()=>version,versionInfo:()=>versionInfo,visit:()=>language_visitor.Vn,visitInParallel:()=>language_visitor.j1,visitWithTypeInfo:()=>visitWithTypeInfo});var version="15.8.0",versionInfo=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function isPromise(value2){return typeof value2?.then=="function"}var parser=__webpack_require__(64929),devAssert=__webpack_require__(89286),GraphQLError=__webpack_require__(44240),language_visitor=__webpack_require__(91545),find=Array.prototype.find?function(list,predicate){return Array.prototype.find.call(list,predicate)}:function(list,predicate){for(var _i2=0;_i2<list.length;_i2++){var value2=list[_i2];if(predicate(value2))return value2}};const polyfills_find=find;var objectValues=Object.values||function(obj){return Object.keys(obj).map(function(key){return obj[key]})};const polyfills_objectValues=objectValues;var inspect=__webpack_require__(5995);function locatedError(rawOriginalError,nodes,path){var _nodes,originalError=rawOriginalError instanceof Error?rawOriginalError:new Error("Unexpected error value: "+(0,inspect.Z)(rawOriginalError));return Array.isArray(originalError.path)?originalError:new GraphQLError._(originalError.message,(_nodes=originalError.nodes)!==null&&_nodes!==void 0?_nodes:nodes,originalError.source,originalError.positions,path,originalError)}var NAME_RX=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function assertValidName(name){var error=isValidNameError(name);if(error)throw error;return name}function isValidNameError(name){if(typeof name=="string"||(0,devAssert.Z)(0,"Expected name to be a string."),name.length>1&&name[0]==="_"&&name[1]==="_")return new GraphQLError._('Name "'.concat(name,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!NAME_RX.test(name))return new GraphQLError._('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(name,'" does not.'))}var objectEntries=Object.entries||function(obj){return Object.keys(obj).map(function(key){return[key,obj[key]]})};const polyfills_objectEntries=objectEntries;var symbols=__webpack_require__(58866);function keyMap(list,keyFn){return list.reduce(function(map,item){return map[keyFn(item)]=item,map},Object.create(null))}function mapValue(map,fn){for(var result=Object.create(null),_i2=0,_objectEntries2=polyfills_objectEntries(map);_i2<_objectEntries2.length;_i2++){var _ref2=_objectEntries2[_i2],_key=_ref2[0],_value=_ref2[1];result[_key]=fn(_value,_key)}return result}function toObjMap(obj){if(Object.getPrototypeOf(obj)===null)return obj;for(var map=Object.create(null),_i2=0,_objectEntries2=polyfills_objectEntries(obj);_i2<_objectEntries2.length;_i2++){var _ref2=_objectEntries2[_i2],key=_ref2[0],value2=_ref2[1];map[key]=value2}return map}function keyValMap(list,keyFn,valFn){return list.reduce(function(map,item){return map[keyFn(item)]=valFn(item),map},Object.create(null))}var instanceOf=__webpack_require__(23747),MAX_SUGGESTIONS=5;function didYouMean(firstArg,secondArg){var _ref=typeof firstArg=="string"?[firstArg,secondArg]:[void 0,firstArg],subMessage=_ref[0],suggestionsArg=_ref[1],message=" Did you mean ";subMessage&&(message+=subMessage+" ");var suggestions=suggestionsArg.map(function(x){return'"'.concat(x,'"')});switch(suggestions.length){case 0:return"";case 1:return message+suggestions[0]+"?";case 2:return message+suggestions[0]+" or "+suggestions[1]+"?"}var selected=suggestions.slice(0,MAX_SUGGESTIONS),lastItem=selected.pop();return message+selected.join(", ")+", or "+lastItem+"?"}var isObjectLike=__webpack_require__(16434);function identityFunc(x){return x}var defineInspect=__webpack_require__(8415);function naturalCompare(aStr,bStr){for(var aIdx=0,bIdx=0;aIdx<aStr.length&&bIdx<bStr.length;){var aChar=aStr.charCodeAt(aIdx),bChar=bStr.charCodeAt(bIdx);if(isDigit(aChar)&&isDigit(bChar)){var aNum=0;do++aIdx,aNum=aNum*10+aChar-DIGIT_0,aChar=aStr.charCodeAt(aIdx);while(isDigit(aChar)&&aNum>0);var bNum=0;do++bIdx,bNum=bNum*10+bChar-DIGIT_0,bChar=bStr.charCodeAt(bIdx);while(isDigit(bChar)&&bNum>0);if(aNum<bNum)return-1;if(aNum>bNum)return 1}else{if(aChar<bChar)return-1;if(aChar>bChar)return 1;++aIdx,++bIdx}}return aStr.length-bStr.length}var DIGIT_0=48,DIGIT_9=57;function isDigit(code){return!isNaN(code)&&DIGIT_0<=code&&code<=DIGIT_9}function suggestionList(input,options){for(var optionsByDistance=Object.create(null),lexicalDistance=new LexicalDistance(input),threshold=Math.floor(input.length*.4)+1,_i2=0;_i2<options.length;_i2++){var option=options[_i2],distance=lexicalDistance.measure(option,threshold);distance!==void 0&&(optionsByDistance[option]=distance)}return Object.keys(optionsByDistance).sort(function(a,b){var distanceDiff=optionsByDistance[a]-optionsByDistance[b];return distanceDiff!==0?distanceDiff:naturalCompare(a,b)})}var LexicalDistance=function(){function LexicalDistance2(input){this._input=input,this._inputLowerCase=input.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(input.length+1).fill(0),new Array(input.length+1).fill(0),new Array(input.length+1).fill(0)]}var _proto=LexicalDistance2.prototype;return _proto.measure=function(option,threshold){if(this._input===option)return 0;var optionLowerCase=option.toLowerCase();if(this._inputLowerCase===optionLowerCase)return 1;var a=stringToArray(optionLowerCase),b=this._inputArray;if(a.length<b.length){var tmp=a;a=b,b=tmp}var aLength=a.length,bLength=b.length;if(!(aLength-bLength>threshold)){for(var rows=this._rows,j=0;j<=bLength;j++)rows[0][j]=j;for(var i=1;i<=aLength;i++){for(var upRow=rows[(i-1)%3],currentRow=rows[i%3],smallestCell=currentRow[0]=i,_j=1;_j<=bLength;_j++){var cost=a[i-1]===b[_j-1]?0:1,currentCell=Math.min(upRow[_j]+1,currentRow[_j-1]+1,upRow[_j-1]+cost);if(i>1&&_j>1&&a[i-1]===b[_j-2]&&a[i-2]===b[_j-1]){var doubleDiagonalCell=rows[(i-2)%3][_j-2];currentCell=Math.min(currentCell,doubleDiagonalCell+1)}currentCell<smallestCell&&(smallestCell=currentCell),currentRow[_j]=currentCell}if(smallestCell>threshold)return}var distance=rows[aLength%3][bLength];return distance<=threshold?distance:void 0}},LexicalDistance2}();function stringToArray(str){for(var strLength=str.length,array=new Array(strLength),i=0;i<strLength;++i)array[i]=str.charCodeAt(i);return array}var kinds=__webpack_require__(47336),printer=__webpack_require__(69377),invariant=__webpack_require__(14270);function valueFromASTUntyped(valueNode,variables){switch(valueNode.kind){case kinds.h.NULL:return null;case kinds.h.INT:return parseInt(valueNode.value,10);case kinds.h.FLOAT:return parseFloat(valueNode.value);case kinds.h.STRING:case kinds.h.ENUM:case kinds.h.BOOLEAN:return valueNode.value;case kinds.h.LIST:return valueNode.values.map(function(node){return valueFromASTUntyped(node,variables)});case kinds.h.OBJECT:return keyValMap(valueNode.fields,function(field){return field.name.value},function(field){return valueFromASTUntyped(field.value,variables)});case kinds.h.VARIABLE:return variables?.[valueNode.name.value]}(0,invariant.Z)(0,"Unexpected value node: "+(0,inspect.Z)(valueNode))}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function isType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isInputObjectType(type)||isListType(type)||isNonNullType(type)}function assertType(type){if(!isType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL type."));return type}function isScalarType(type){return(0,instanceOf.Z)(type,GraphQLScalarType)}function assertScalarType(type){if(!isScalarType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Scalar type."));return type}function isObjectType(type){return(0,instanceOf.Z)(type,GraphQLObjectType)}function assertObjectType(type){if(!isObjectType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Object type."));return type}function isInterfaceType(type){return(0,instanceOf.Z)(type,GraphQLInterfaceType)}function assertInterfaceType(type){if(!isInterfaceType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Interface type."));return type}function isUnionType(type){return(0,instanceOf.Z)(type,GraphQLUnionType)}function assertUnionType(type){if(!isUnionType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Union type."));return type}function isEnumType(type){return(0,instanceOf.Z)(type,GraphQLEnumType)}function assertEnumType(type){if(!isEnumType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Enum type."));return type}function isInputObjectType(type){return(0,instanceOf.Z)(type,GraphQLInputObjectType)}function assertInputObjectType(type){if(!isInputObjectType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Input Object type."));return type}function isListType(type){return(0,instanceOf.Z)(type,GraphQLList)}function assertListType(type){if(!isListType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL List type."));return type}function isNonNullType(type){return(0,instanceOf.Z)(type,GraphQLNonNull)}function assertNonNullType(type){if(!isNonNullType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL Non-Null type."));return type}function isInputType(type){return isScalarType(type)||isEnumType(type)||isInputObjectType(type)||isWrappingType(type)&&isInputType(type.ofType)}function assertInputType(type){if(!isInputType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL input type."));return type}function isOutputType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isWrappingType(type)&&isOutputType(type.ofType)}function assertOutputType(type){if(!isOutputType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL output type."));return type}function isLeafType(type){return isScalarType(type)||isEnumType(type)}function assertLeafType(type){if(!isLeafType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL leaf type."));return type}function isCompositeType(type){return isObjectType(type)||isInterfaceType(type)||isUnionType(type)}function assertCompositeType(type){if(!isCompositeType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL composite type."));return type}function isAbstractType(type){return isInterfaceType(type)||isUnionType(type)}function assertAbstractType(type){if(!isAbstractType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL abstract type."));return type}function GraphQLList(ofType){if(this instanceof GraphQLList)this.ofType=assertType(ofType);else return new GraphQLList(ofType)}GraphQLList.prototype.toString=function(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function(){return this.toString()},Object.defineProperty(GraphQLList.prototype,symbols.YF,{get:function(){return"GraphQLList"}}),(0,defineInspect.Z)(GraphQLList);function GraphQLNonNull(ofType){if(this instanceof GraphQLNonNull)this.ofType=assertNullableType(ofType);else return new GraphQLNonNull(ofType)}GraphQLNonNull.prototype.toString=function(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,symbols.YF,{get:function(){return"GraphQLNonNull"}}),(0,defineInspect.Z)(GraphQLNonNull);function isWrappingType(type){return isListType(type)||isNonNullType(type)}function assertWrappingType(type){if(!isWrappingType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL wrapping type."));return type}function isNullableType(type){return isType(type)&&!isNonNullType(type)}function assertNullableType(type){if(!isNullableType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL nullable type."));return type}function getNullableType(type){if(type)return isNonNullType(type)?type.ofType:type}function isNamedType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isInputObjectType(type)}function assertNamedType(type){if(!isNamedType(type))throw new Error("Expected ".concat((0,inspect.Z)(type)," to be a GraphQL named type."));return type}function getNamedType(type){if(type){for(var unwrappedType=type;isWrappingType(unwrappedType);)unwrappedType=unwrappedType.ofType;return unwrappedType}}function resolveThunk(thunk){return typeof thunk=="function"?thunk():thunk}function undefineIfEmpty(arr){return arr&&arr.length>0?arr:void 0}var GraphQLScalarType=function(){function GraphQLScalarType2(config){var _config$parseValue,_config$serialize,_config$parseLiteral,parseValue=(_config$parseValue=config.parseValue)!==null&&_config$parseValue!==void 0?_config$parseValue:identityFunc;this.name=config.name,this.description=config.description,this.specifiedByUrl=config.specifiedByUrl,this.serialize=(_config$serialize=config.serialize)!==null&&_config$serialize!==void 0?_config$serialize:identityFunc,this.parseValue=parseValue,this.parseLiteral=(_config$parseLiteral=config.parseLiteral)!==null&&_config$parseLiteral!==void 0?_config$parseLiteral:function(node,variables){return parseValue(valueFromASTUntyped(node,variables))},this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.specifiedByUrl==null||typeof config.specifiedByUrl=="string"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,inspect.Z)(config.specifiedByUrl),".")),config.serialize==null||typeof config.serialize=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),config.parseLiteral&&(typeof config.parseValue=="function"&&typeof config.parseLiteral=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var _proto=GraphQLScalarType2.prototype;return _proto.toConfig=function(){var _this$extensionASTNod;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod=this.extensionASTNodes)!==null&&_this$extensionASTNod!==void 0?_this$extensionASTNod:[]}},_proto.toString=function(){return this.name},_proto.toJSON=function(){return this.toString()},_createClass(GraphQLScalarType2,[{key:symbols.YF,get:function(){return"GraphQLScalarType"}}]),GraphQLScalarType2}();(0,defineInspect.Z)(GraphQLScalarType);var GraphQLObjectType=function(){function GraphQLObjectType2(config){this.name=config.name,this.description=config.description,this.isTypeOf=config.isTypeOf,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,config),this._interfaces=defineInterfaces.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.isTypeOf==null||typeof config.isTypeOf=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,inspect.Z)(config.isTypeOf),"."))}var _proto2=GraphQLObjectType2.prototype;return _proto2.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto2.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},_proto2.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},_proto2.toString=function(){return this.name},_proto2.toJSON=function(){return this.toString()},_createClass(GraphQLObjectType2,[{key:symbols.YF,get:function(){return"GraphQLObjectType"}}]),GraphQLObjectType2}();(0,defineInspect.Z)(GraphQLObjectType);function defineInterfaces(config){var _resolveThunk,interfaces=(_resolveThunk=resolveThunk(config.interfaces))!==null&&_resolveThunk!==void 0?_resolveThunk:[];return Array.isArray(interfaces)||(0,devAssert.Z)(0,"".concat(config.name," interfaces must be an Array or a function which returns an Array.")),interfaces}function defineFieldMap(config){var fieldMap=resolveThunk(config.fields);return isPlainObj(fieldMap)||(0,devAssert.Z)(0,"".concat(config.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(fieldMap,function(fieldConfig,fieldName){var _fieldConfig$args;isPlainObj(fieldConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," field config must be an object.")),!("isDeprecated"in fieldConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName,' should provide "deprecationReason" instead of "isDeprecated".')),fieldConfig.resolve==null||typeof fieldConfig.resolve=="function"||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," field resolver must be a function if ")+"provided, but got: ".concat((0,inspect.Z)(fieldConfig.resolve),"."));var argsConfig=(_fieldConfig$args=fieldConfig.args)!==null&&_fieldConfig$args!==void 0?_fieldConfig$args:{};isPlainObj(argsConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," args must be an object with argument names as keys."));var args=polyfills_objectEntries(argsConfig).map(function(_ref){var argName=_ref[0],argConfig=_ref[1];return{name:argName,description:argConfig.description,type:argConfig.type,defaultValue:argConfig.defaultValue,deprecationReason:argConfig.deprecationReason,extensions:argConfig.extensions&&toObjMap(argConfig.extensions),astNode:argConfig.astNode}});return{name:fieldName,description:fieldConfig.description,type:fieldConfig.type,args,resolve:fieldConfig.resolve,subscribe:fieldConfig.subscribe,isDeprecated:fieldConfig.deprecationReason!=null,deprecationReason:fieldConfig.deprecationReason,extensions:fieldConfig.extensions&&toObjMap(fieldConfig.extensions),astNode:fieldConfig.astNode}})}function isPlainObj(obj){return(0,isObjectLike.Z)(obj)&&!Array.isArray(obj)}function fieldsToFieldsConfig(fields){return mapValue(fields,function(field){return{description:field.description,type:field.type,args:argsToArgsConfig(field.args),resolve:field.resolve,subscribe:field.subscribe,deprecationReason:field.deprecationReason,extensions:field.extensions,astNode:field.astNode}})}function argsToArgsConfig(args){return keyValMap(args,function(arg){return arg.name},function(arg){return{description:arg.description,type:arg.type,defaultValue:arg.defaultValue,deprecationReason:arg.deprecationReason,extensions:arg.extensions,astNode:arg.astNode}})}function isRequiredArgument(arg){return isNonNullType(arg.type)&&arg.defaultValue===void 0}var GraphQLInterfaceType=function(){function GraphQLInterfaceType2(config){this.name=config.name,this.description=config.description,this.resolveType=config.resolveType,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,config),this._interfaces=defineInterfaces.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.resolveType==null||typeof config.resolveType=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,inspect.Z)(config.resolveType),"."))}var _proto3=GraphQLInterfaceType2.prototype;return _proto3.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto3.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},_proto3.toConfig=function(){var _this$extensionASTNod2;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod2=this.extensionASTNodes)!==null&&_this$extensionASTNod2!==void 0?_this$extensionASTNod2:[]}},_proto3.toString=function(){return this.name},_proto3.toJSON=function(){return this.toString()},_createClass(GraphQLInterfaceType2,[{key:symbols.YF,get:function(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType2}();(0,defineInspect.Z)(GraphQLInterfaceType);var GraphQLUnionType=function(){function GraphQLUnionType2(config){this.name=config.name,this.description=config.description,this.resolveType=config.resolveType,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._types=defineTypes.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name."),config.resolveType==null||typeof config.resolveType=="function"||(0,devAssert.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,inspect.Z)(config.resolveType),"."))}var _proto4=GraphQLUnionType2.prototype;return _proto4.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},_proto4.toConfig=function(){var _this$extensionASTNod3;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod3=this.extensionASTNodes)!==null&&_this$extensionASTNod3!==void 0?_this$extensionASTNod3:[]}},_proto4.toString=function(){return this.name},_proto4.toJSON=function(){return this.toString()},_createClass(GraphQLUnionType2,[{key:symbols.YF,get:function(){return"GraphQLUnionType"}}]),GraphQLUnionType2}();(0,defineInspect.Z)(GraphQLUnionType);function defineTypes(config){var types=resolveThunk(config.types);return Array.isArray(types)||(0,devAssert.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(config.name,".")),types}var GraphQLEnumType=function(){function GraphQLEnumType2(config){this.name=config.name,this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._values=defineEnumValues(this.name,config.values),this._valueLookup=new Map(this._values.map(function(enumValue){return[enumValue.value,enumValue]})),this._nameLookup=keyMap(this._values,function(value2){return value2.name}),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name.")}var _proto5=GraphQLEnumType2.prototype;return _proto5.getValues=function(){return this._values},_proto5.getValue=function(name){return this._nameLookup[name]},_proto5.serialize=function(outputValue){var enumValue=this._valueLookup.get(outputValue);if(enumValue===void 0)throw new GraphQLError._('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,inspect.Z)(outputValue)));return enumValue.name},_proto5.parseValue=function(inputValue){if(typeof inputValue!="string"){var valueStr=(0,inspect.Z)(inputValue);throw new GraphQLError._('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(valueStr,".")+didYouMeanEnumValue(this,valueStr))}var enumValue=this.getValue(inputValue);if(enumValue==null)throw new GraphQLError._('Value "'.concat(inputValue,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,inputValue));return enumValue.value},_proto5.parseLiteral=function(valueNode,_variables){if(valueNode.kind!==kinds.h.ENUM){var valueStr=(0,printer.print)(valueNode);throw new GraphQLError._('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(valueStr,".")+didYouMeanEnumValue(this,valueStr),valueNode)}var enumValue=this.getValue(valueNode.value);if(enumValue==null){var _valueStr=(0,printer.print)(valueNode);throw new GraphQLError._('Value "'.concat(_valueStr,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,_valueStr),valueNode)}return enumValue.value},_proto5.toConfig=function(){var _this$extensionASTNod4,values=keyValMap(this.getValues(),function(value2){return value2.name},function(value2){return{description:value2.description,value:value2.value,deprecationReason:value2.deprecationReason,extensions:value2.extensions,astNode:value2.astNode}});return{name:this.name,description:this.description,values,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod4=this.extensionASTNodes)!==null&&_this$extensionASTNod4!==void 0?_this$extensionASTNod4:[]}},_proto5.toString=function(){return this.name},_proto5.toJSON=function(){return this.toString()},_createClass(GraphQLEnumType2,[{key:symbols.YF,get:function(){return"GraphQLEnumType"}}]),GraphQLEnumType2}();(0,defineInspect.Z)(GraphQLEnumType);function didYouMeanEnumValue(enumType,unknownValueStr){var allNames=enumType.getValues().map(function(value2){return value2.name}),suggestedValues=suggestionList(unknownValueStr,allNames);return didYouMean("the enum value",suggestedValues)}function defineEnumValues(typeName,valueMap){return isPlainObj(valueMap)||(0,devAssert.Z)(0,"".concat(typeName," values must be an object with value names as keys.")),polyfills_objectEntries(valueMap).map(function(_ref2){var valueName=_ref2[0],valueConfig=_ref2[1];return isPlainObj(valueConfig)||(0,devAssert.Z)(0,"".concat(typeName,".").concat(valueName,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,inspect.Z)(valueConfig),".")),!("isDeprecated"in valueConfig)||(0,devAssert.Z)(0,"".concat(typeName,".").concat(valueName,' should provide "deprecationReason" instead of "isDeprecated".')),{name:valueName,description:valueConfig.description,value:valueConfig.value!==void 0?valueConfig.value:valueName,isDeprecated:valueConfig.deprecationReason!=null,deprecationReason:valueConfig.deprecationReason,extensions:valueConfig.extensions&&toObjMap(valueConfig.extensions),astNode:valueConfig.astNode}})}var GraphQLInputObjectType=function(){function GraphQLInputObjectType2(config){this.name=config.name,this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,config),typeof config.name=="string"||(0,devAssert.Z)(0,"Must provide name.")}var _proto6=GraphQLInputObjectType2.prototype;return _proto6.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto6.toConfig=function(){var _this$extensionASTNod5,fields=mapValue(this.getFields(),function(field){return{description:field.description,type:field.type,defaultValue:field.defaultValue,deprecationReason:field.deprecationReason,extensions:field.extensions,astNode:field.astNode}});return{name:this.name,description:this.description,fields,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod5=this.extensionASTNodes)!==null&&_this$extensionASTNod5!==void 0?_this$extensionASTNod5:[]}},_proto6.toString=function(){return this.name},_proto6.toJSON=function(){return this.toString()},_createClass(GraphQLInputObjectType2,[{key:symbols.YF,get:function(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType2}();(0,defineInspect.Z)(GraphQLInputObjectType);function defineInputFieldMap(config){var fieldMap=resolveThunk(config.fields);return isPlainObj(fieldMap)||(0,devAssert.Z)(0,"".concat(config.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(fieldMap,function(fieldConfig,fieldName){return!("resolve"in fieldConfig)||(0,devAssert.Z)(0,"".concat(config.name,".").concat(fieldName," field has a resolve property, but Input Types cannot define resolvers.")),{name:fieldName,description:fieldConfig.description,type:fieldConfig.type,defaultValue:fieldConfig.defaultValue,deprecationReason:fieldConfig.deprecationReason,extensions:fieldConfig.extensions&&toObjMap(fieldConfig.extensions),astNode:fieldConfig.astNode}})}function isRequiredInputField(field){return isNonNullType(field.type)&&field.defaultValue===void 0}function isEqualType(typeA,typeB){return typeA===typeB?!0:isNonNullType(typeA)&&isNonNullType(typeB)||isListType(typeA)&&isListType(typeB)?isEqualType(typeA.ofType,typeB.ofType):!1}function isTypeSubTypeOf(schema,maybeSubType,superType){return maybeSubType===superType?!0:isNonNullType(superType)?isNonNullType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType.ofType):!1:isNonNullType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType):isListType(superType)?isListType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType.ofType):!1:isListType(maybeSubType)?!1:isAbstractType(superType)&&(isInterfaceType(maybeSubType)||isObjectType(maybeSubType))&&schema.isSubType(superType,maybeSubType)}function doTypesOverlap(schema,typeA,typeB){return typeA===typeB?!0:isAbstractType(typeA)?isAbstractType(typeB)?schema.getPossibleTypes(typeA).some(function(type){return schema.isSubType(typeB,type)}):schema.isSubType(typeA,typeB):isAbstractType(typeB)?schema.isSubType(typeB,typeA):!1}var arrayFrom=Array.from||function(obj,mapFn,thisArg){if(obj==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var iteratorMethod=obj[symbols.Xr];if(typeof iteratorMethod=="function"){for(var iterator=iteratorMethod.call(obj),result=[],step,i=0;!(step=iterator.next()).done;++i)if(result.push(mapFn.call(thisArg,step.value,i)),i>9999999)throw new TypeError("Near-infinite iteration.");return result}var length=obj.length;if(typeof length=="number"&&length>=0&&length%1===0){for(var _result=[],_i=0;_i<length;++_i)Object.prototype.hasOwnProperty.call(obj,_i)&&_result.push(mapFn.call(thisArg,obj[_i],_i));return _result}return[]};const polyfills_arrayFrom=arrayFrom;var directiveLocation=__webpack_require__(72395),isFinitePolyfill=Number.isFinite||function(value2){return typeof value2=="number"&&isFinite(value2)};const polyfills_isFinite=isFinitePolyfill;function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function safeArrayFrom(collection){var mapFn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(item){return item};if(collection==null||_typeof(collection)!=="object")return null;if(Array.isArray(collection))return collection.map(mapFn);var iteratorMethod=collection[symbols.Xr];if(typeof iteratorMethod=="function"){for(var iterator=iteratorMethod.call(collection),result=[],step,i=0;!(step=iterator.next()).done;++i)result.push(mapFn(step.value,i));return result}var length=collection.length;if(typeof length=="number"&&length>=0&&length%1===0){for(var _result=[],_i=0;_i<length;++_i){if(!Object.prototype.hasOwnProperty.call(collection,_i))return null;_result.push(mapFn(collection[String(_i)],_i))}return _result}return null}var isInteger=Number.isInteger||function(value2){return typeof value2=="number"&&isFinite(value2)&&Math.floor(value2)===value2};const polyfills_isInteger=isInteger;var MAX_INT=2147483647,MIN_INT=-2147483648;function serializeInt(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue?1:0;var num=coercedValue;if(typeof coercedValue=="string"&&coercedValue!==""&&(num=Number(coercedValue)),!polyfills_isInteger(num))throw new GraphQLError._("Int cannot represent non-integer value: ".concat((0,inspect.Z)(coercedValue)));if(num>MAX_INT||num<MIN_INT)throw new GraphQLError._("Int cannot represent non 32-bit signed integer value: "+(0,inspect.Z)(coercedValue));return num}function coerceInt(inputValue){if(!polyfills_isInteger(inputValue))throw new GraphQLError._("Int cannot represent non-integer value: ".concat((0,inspect.Z)(inputValue)));if(inputValue>MAX_INT||inputValue<MIN_INT)throw new GraphQLError._("Int cannot represent non 32-bit signed integer value: ".concat(inputValue));return inputValue}var GraphQLInt=new GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:serializeInt,parseValue:coerceInt,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.INT)throw new GraphQLError._("Int cannot represent non-integer value: ".concat((0,printer.print)(valueNode)),valueNode);var num=parseInt(valueNode.value,10);if(num>MAX_INT||num<MIN_INT)throw new GraphQLError._("Int cannot represent non 32-bit signed integer value: ".concat(valueNode.value),valueNode);return num}});function serializeFloat(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue?1:0;var num=coercedValue;if(typeof coercedValue=="string"&&coercedValue!==""&&(num=Number(coercedValue)),!polyfills_isFinite(num))throw new GraphQLError._("Float cannot represent non numeric value: ".concat((0,inspect.Z)(coercedValue)));return num}function coerceFloat(inputValue){if(!polyfills_isFinite(inputValue))throw new GraphQLError._("Float cannot represent non numeric value: ".concat((0,inspect.Z)(inputValue)));return inputValue}var GraphQLFloat=new GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:serializeFloat,parseValue:coerceFloat,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.FLOAT&&valueNode.kind!==kinds.h.INT)throw new GraphQLError._("Float cannot represent non numeric value: ".concat((0,printer.print)(valueNode)),valueNode);return parseFloat(valueNode.value)}});function serializeObject(outputValue){if((0,isObjectLike.Z)(outputValue)){if(typeof outputValue.valueOf=="function"){var valueOfResult=outputValue.valueOf();if(!(0,isObjectLike.Z)(valueOfResult))return valueOfResult}if(typeof outputValue.toJSON=="function")return outputValue.toJSON()}return outputValue}function serializeString(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="string")return coercedValue;if(typeof coercedValue=="boolean")return coercedValue?"true":"false";if(polyfills_isFinite(coercedValue))return coercedValue.toString();throw new GraphQLError._("String cannot represent value: ".concat((0,inspect.Z)(outputValue)))}function coerceString(inputValue){if(typeof inputValue!="string")throw new GraphQLError._("String cannot represent a non string value: ".concat((0,inspect.Z)(inputValue)));return inputValue}var GraphQLString=new GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:serializeString,parseValue:coerceString,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.STRING)throw new GraphQLError._("String cannot represent a non string value: ".concat((0,printer.print)(valueNode)),valueNode);return valueNode.value}});function serializeBoolean(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue;if(polyfills_isFinite(coercedValue))return coercedValue!==0;throw new GraphQLError._("Boolean cannot represent a non boolean value: ".concat((0,inspect.Z)(coercedValue)))}function coerceBoolean(inputValue){if(typeof inputValue!="boolean")throw new GraphQLError._("Boolean cannot represent a non boolean value: ".concat((0,inspect.Z)(inputValue)));return inputValue}var GraphQLBoolean=new GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:serializeBoolean,parseValue:coerceBoolean,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.BOOLEAN)throw new GraphQLError._("Boolean cannot represent a non boolean value: ".concat((0,printer.print)(valueNode)),valueNode);return valueNode.value}});function serializeID(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="string")return coercedValue;if(polyfills_isInteger(coercedValue))return String(coercedValue);throw new GraphQLError._("ID cannot represent value: ".concat((0,inspect.Z)(outputValue)))}function coerceID(inputValue){if(typeof inputValue=="string")return inputValue;if(polyfills_isInteger(inputValue))return inputValue.toString();throw new GraphQLError._("ID cannot represent value: ".concat((0,inspect.Z)(inputValue)))}var GraphQLID=new GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:serializeID,parseValue:coerceID,parseLiteral:function(valueNode){if(valueNode.kind!==kinds.h.STRING&&valueNode.kind!==kinds.h.INT)throw new GraphQLError._("ID cannot represent a non-string and non-integer value: "+(0,printer.print)(valueNode),valueNode);return valueNode.value}}),specifiedScalarTypes=Object.freeze([GraphQLString,GraphQLInt,GraphQLFloat,GraphQLBoolean,GraphQLID]);function isSpecifiedScalarType(type){return specifiedScalarTypes.some(function(_ref){var name=_ref.name;return type.name===name})}function astFromValue(value2,type){if(isNonNullType(type)){var astValue=astFromValue(value2,type.ofType);return astValue?.kind===kinds.h.NULL?null:astValue}if(value2===null)return{kind:kinds.h.NULL};if(value2===void 0)return null;if(isListType(type)){var itemType=type.ofType,items=safeArrayFrom(value2);if(items!=null){for(var valuesNodes=[],_i2=0;_i2<items.length;_i2++){var item=items[_i2],itemNode=astFromValue(item,itemType);itemNode!=null&&valuesNodes.push(itemNode)}return{kind:kinds.h.LIST,values:valuesNodes}}return astFromValue(value2,itemType)}if(isInputObjectType(type)){if(!(0,isObjectLike.Z)(value2))return null;for(var fieldNodes=[],_i4=0,_objectValues2=polyfills_objectValues(type.getFields());_i4<_objectValues2.length;_i4++){var field=_objectValues2[_i4],fieldValue=astFromValue(value2[field.name],field.type);fieldValue&&fieldNodes.push({kind:kinds.h.OBJECT_FIELD,name:{kind:kinds.h.NAME,value:field.name},value:fieldValue})}return{kind:kinds.h.OBJECT,fields:fieldNodes}}if(isLeafType(type)){var serialized=type.serialize(value2);if(serialized==null)return null;if(typeof serialized=="boolean")return{kind:kinds.h.BOOLEAN,value:serialized};if(typeof serialized=="number"&&polyfills_isFinite(serialized)){var stringNum=String(serialized);return integerStringRegExp.test(stringNum)?{kind:kinds.h.INT,value:stringNum}:{kind:kinds.h.FLOAT,value:stringNum}}if(typeof serialized=="string")return isEnumType(type)?{kind:kinds.h.ENUM,value:serialized}:type===GraphQLID&&integerStringRegExp.test(serialized)?{kind:kinds.h.INT,value:serialized}:{kind:kinds.h.STRING,value:serialized};throw new TypeError("Cannot convert value to AST: ".concat((0,inspect.Z)(serialized),"."))}(0,invariant.Z)(0,"Unexpected input type: "+(0,inspect.Z)(type))}var integerStringRegExp=/^-?(?:0|[1-9][0-9]*)$/,__Schema=new GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:GraphQLString,resolve:function(schema){return schema.description}},types:{description:"A list of all types supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Type))),resolve:function(schema){return polyfills_objectValues(schema.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new GraphQLNonNull(__Type),resolve:function(schema){return schema.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:__Type,resolve:function(schema){return schema.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:__Type,resolve:function(schema){return schema.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Directive))),resolve:function(schema){return schema.getDirectives()}}}}}),__Directive=new GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
102
102
|
|
103
103
|
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(directive){return directive.name}},description:{type:GraphQLString,resolve:function(directive){return directive.description}},isRepeatable:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(directive){return directive.isRepeatable}},locations:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__DirectiveLocation))),resolve:function(directive){return directive.locations}},args:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__InputValue))),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(field,_ref){var includeDeprecated=_ref.includeDeprecated;return includeDeprecated?field.args:field.args.filter(function(arg){return arg.deprecationReason==null})}}}}}),__DirectiveLocation=new GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:directiveLocation.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:directiveLocation.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:directiveLocation.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:directiveLocation.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:directiveLocation.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:directiveLocation.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:directiveLocation.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:directiveLocation.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:directiveLocation.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:directiveLocation.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:directiveLocation.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:directiveLocation.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:directiveLocation.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:directiveLocation.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:directiveLocation.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:directiveLocation.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:directiveLocation.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:directiveLocation.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:directiveLocation.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),__Type=new GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new GraphQLNonNull(__TypeKind),resolve:function(type){if(isScalarType(type))return TypeKind.SCALAR;if(isObjectType(type))return TypeKind.OBJECT;if(isInterfaceType(type))return TypeKind.INTERFACE;if(isUnionType(type))return TypeKind.UNION;if(isEnumType(type))return TypeKind.ENUM;if(isInputObjectType(type))return TypeKind.INPUT_OBJECT;if(isListType(type))return TypeKind.LIST;if(isNonNullType(type))return TypeKind.NON_NULL;(0,invariant.Z)(0,'Unexpected type: "'.concat((0,inspect.Z)(type),'".'))}},name:{type:GraphQLString,resolve:function(type){return type.name!==void 0?type.name:void 0}},description:{type:GraphQLString,resolve:function(type){return type.description!==void 0?type.description:void 0}},specifiedByUrl:{type:GraphQLString,resolve:function(obj){return obj.specifiedByUrl!==void 0?obj.specifiedByUrl:void 0}},fields:{type:new GraphQLList(new GraphQLNonNull(__Field)),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(type,_ref2){var includeDeprecated=_ref2.includeDeprecated;if(isObjectType(type)||isInterfaceType(type)){var fields2=polyfills_objectValues(type.getFields());return includeDeprecated?fields2:fields2.filter(function(field){return field.deprecationReason==null})}}},interfaces:{type:new GraphQLList(new GraphQLNonNull(__Type)),resolve:function(type){if(isObjectType(type)||isInterfaceType(type))return type.getInterfaces()}},possibleTypes:{type:new GraphQLList(new GraphQLNonNull(__Type)),resolve:function(type,_args,_context,_ref3){var schema=_ref3.schema;if(isAbstractType(type))return schema.getPossibleTypes(type)}},enumValues:{type:new GraphQLList(new GraphQLNonNull(__EnumValue)),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(type,_ref4){var includeDeprecated=_ref4.includeDeprecated;if(isEnumType(type)){var values=type.getValues();return includeDeprecated?values:values.filter(function(field){return field.deprecationReason==null})}}},inputFields:{type:new GraphQLList(new GraphQLNonNull(__InputValue)),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(type,_ref5){var includeDeprecated=_ref5.includeDeprecated;if(isInputObjectType(type)){var values=polyfills_objectValues(type.getFields());return includeDeprecated?values:values.filter(function(field){return field.deprecationReason==null})}}},ofType:{type:__Type,resolve:function(type){return type.ofType!==void 0?type.ofType:void 0}}}}}),__Field=new GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(field){return field.name}},description:{type:GraphQLString,resolve:function(field){return field.description}},args:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__InputValue))),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(field,_ref6){var includeDeprecated=_ref6.includeDeprecated;return includeDeprecated?field.args:field.args.filter(function(arg){return arg.deprecationReason==null})}},type:{type:new GraphQLNonNull(__Type),resolve:function(field){return field.type}},isDeprecated:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(field){return field.deprecationReason!=null}},deprecationReason:{type:GraphQLString,resolve:function(field){return field.deprecationReason}}}}}),__InputValue=new GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(inputValue){return inputValue.name}},description:{type:GraphQLString,resolve:function(inputValue){return inputValue.description}},type:{type:new GraphQLNonNull(__Type),resolve:function(inputValue){return inputValue.type}},defaultValue:{type:GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(inputValue){var type=inputValue.type,defaultValue=inputValue.defaultValue,valueAST=astFromValue(defaultValue,type);return valueAST?(0,printer.print)(valueAST):null}},isDeprecated:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(field){return field.deprecationReason!=null}},deprecationReason:{type:GraphQLString,resolve:function(obj){return obj.deprecationReason}}}}}),__EnumValue=new GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(enumValue){return enumValue.name}},description:{type:GraphQLString,resolve:function(enumValue){return enumValue.description}},isDeprecated:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(enumValue){return enumValue.deprecationReason!=null}},deprecationReason:{type:GraphQLString,resolve:function(enumValue){return enumValue.deprecationReason}}}}}),TypeKind=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),__TypeKind=new GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:TypeKind.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:TypeKind.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:TypeKind.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:TypeKind.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:TypeKind.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:TypeKind.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:TypeKind.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:TypeKind.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),SchemaMetaFieldDef={name:"__schema",type:new GraphQLNonNull(__Schema),description:"Access the current type schema of this server.",args:[],resolve:function(_source,_args,_context,_ref7){var schema=_ref7.schema;return schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},TypeMetaFieldDef={name:"__type",type:__Type,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new GraphQLNonNull(GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(_source,_ref8,_context,_ref9){var name=_ref8.name,schema=_ref9.schema;return schema.getType(name)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},TypeNameMetaFieldDef={name:"__typename",type:new GraphQLNonNull(GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(_source,_args,_context,_ref10){var parentType=_ref10.parentType;return parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},introspectionTypes=Object.freeze([__Schema,__Directive,__DirectiveLocation,__Type,__Field,__InputValue,__EnumValue,__TypeKind]);function isIntrospectionType(type){return introspectionTypes.some(function(_ref11){var name=_ref11.name;return type.name===name})}function directives_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function directives_createClass(Constructor,protoProps,staticProps){return protoProps&&directives_defineProperties(Constructor.prototype,protoProps),staticProps&&directives_defineProperties(Constructor,staticProps),Constructor}function isDirective(directive){return(0,instanceOf.Z)(directive,GraphQLDirective)}function assertDirective(directive){if(!isDirective(directive))throw new Error("Expected ".concat((0,inspect.Z)(directive)," to be a GraphQL directive."));return directive}var GraphQLDirective=function(){function GraphQLDirective2(config){var _config$isRepeatable,_config$args;this.name=config.name,this.description=config.description,this.locations=config.locations,this.isRepeatable=(_config$isRepeatable=config.isRepeatable)!==null&&_config$isRepeatable!==void 0?_config$isRepeatable:!1,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,config.name||(0,devAssert.Z)(0,"Directive must be named."),Array.isArray(config.locations)||(0,devAssert.Z)(0,"@".concat(config.name," locations must be an Array."));var args=(_config$args=config.args)!==null&&_config$args!==void 0?_config$args:{};(0,isObjectLike.Z)(args)&&!Array.isArray(args)||(0,devAssert.Z)(0,"@".concat(config.name," args must be an object with argument names as keys.")),this.args=polyfills_objectEntries(args).map(function(_ref){var argName=_ref[0],argConfig=_ref[1];return{name:argName,description:argConfig.description,type:argConfig.type,defaultValue:argConfig.defaultValue,deprecationReason:argConfig.deprecationReason,extensions:argConfig.extensions&&toObjMap(argConfig.extensions),astNode:argConfig.astNode}})}var _proto=GraphQLDirective2.prototype;return _proto.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},_proto.toString=function(){return"@"+this.name},_proto.toJSON=function(){return this.toString()},directives_createClass(GraphQLDirective2,[{key:symbols.YF,get:function(){return"GraphQLDirective"}}]),GraphQLDirective2}();(0,defineInspect.Z)(GraphQLDirective);var GraphQLIncludeDirective=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[directiveLocation.B.FIELD,directiveLocation.B.FRAGMENT_SPREAD,directiveLocation.B.INLINE_FRAGMENT],args:{if:{type:new GraphQLNonNull(GraphQLBoolean),description:"Included when true."}}}),GraphQLSkipDirective=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[directiveLocation.B.FIELD,directiveLocation.B.FRAGMENT_SPREAD,directiveLocation.B.INLINE_FRAGMENT],args:{if:{type:new GraphQLNonNull(GraphQLBoolean),description:"Skipped when true."}}}),DEFAULT_DEPRECATION_REASON="No longer supported",GraphQLDeprecatedDirective=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[directiveLocation.B.FIELD_DEFINITION,directiveLocation.B.ARGUMENT_DEFINITION,directiveLocation.B.INPUT_FIELD_DEFINITION,directiveLocation.B.ENUM_VALUE],args:{reason:{type:GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:DEFAULT_DEPRECATION_REASON}}}),GraphQLSpecifiedByDirective=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[directiveLocation.B.SCALAR],args:{url:{type:new GraphQLNonNull(GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}}),specifiedDirectives=Object.freeze([GraphQLIncludeDirective,GraphQLSkipDirective,GraphQLDeprecatedDirective,GraphQLSpecifiedByDirective]);function isSpecifiedDirective(directive){return specifiedDirectives.some(function(_ref2){var name=_ref2.name;return name===directive.name})}function schema_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function schema_createClass(Constructor,protoProps,staticProps){return protoProps&&schema_defineProperties(Constructor.prototype,protoProps),staticProps&&schema_defineProperties(Constructor,staticProps),Constructor}function isSchema(schema){return(0,instanceOf.Z)(schema,GraphQLSchema)}function assertSchema(schema){if(!isSchema(schema))throw new Error("Expected ".concat((0,inspect.Z)(schema)," to be a GraphQL schema."));return schema}var GraphQLSchema=function(){function GraphQLSchema2(config){var _config$directives;this.__validationErrors=config.assumeValid===!0?[]:void 0,(0,isObjectLike.Z)(config)||(0,devAssert.Z)(0,"Must provide configuration object."),!config.types||Array.isArray(config.types)||(0,devAssert.Z)(0,'"types" must be Array if provided but got: '.concat((0,inspect.Z)(config.types),".")),!config.directives||Array.isArray(config.directives)||(0,devAssert.Z)(0,'"directives" must be Array if provided but got: '+"".concat((0,inspect.Z)(config.directives),".")),this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=config.extensionASTNodes,this._queryType=config.query,this._mutationType=config.mutation,this._subscriptionType=config.subscription,this._directives=(_config$directives=config.directives)!==null&&_config$directives!==void 0?_config$directives:specifiedDirectives;var allReferencedTypes=new Set(config.types);if(config.types!=null)for(var _i2=0,_config$types2=config.types;_i2<_config$types2.length;_i2++){var type=_config$types2[_i2];allReferencedTypes.delete(type),collectReferencedTypes(type,allReferencedTypes)}this._queryType!=null&&collectReferencedTypes(this._queryType,allReferencedTypes),this._mutationType!=null&&collectReferencedTypes(this._mutationType,allReferencedTypes),this._subscriptionType!=null&&collectReferencedTypes(this._subscriptionType,allReferencedTypes);for(var _i4=0,_this$_directives2=this._directives;_i4<_this$_directives2.length;_i4++){var directive=_this$_directives2[_i4];if(isDirective(directive))for(var _i6=0,_directive$args2=directive.args;_i6<_directive$args2.length;_i6++){var arg=_directive$args2[_i6];collectReferencedTypes(arg.type,allReferencedTypes)}}collectReferencedTypes(__Schema,allReferencedTypes),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var _i8=0,_arrayFrom2=polyfills_arrayFrom(allReferencedTypes);_i8<_arrayFrom2.length;_i8++){var namedType=_arrayFrom2[_i8];if(namedType!=null){var typeName=namedType.name;if(typeName||(0,devAssert.Z)(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[typeName]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(typeName,'".'));if(this._typeMap[typeName]=namedType,isInterfaceType(namedType))for(var _i10=0,_namedType$getInterfa2=namedType.getInterfaces();_i10<_namedType$getInterfa2.length;_i10++){var iface=_namedType$getInterfa2[_i10];if(isInterfaceType(iface)){var implementations=this._implementationsMap[iface.name];implementations===void 0&&(implementations=this._implementationsMap[iface.name]={objects:[],interfaces:[]}),implementations.interfaces.push(namedType)}}else if(isObjectType(namedType))for(var _i12=0,_namedType$getInterfa4=namedType.getInterfaces();_i12<_namedType$getInterfa4.length;_i12++){var _iface=_namedType$getInterfa4[_i12];if(isInterfaceType(_iface)){var _implementations=this._implementationsMap[_iface.name];_implementations===void 0&&(_implementations=this._implementationsMap[_iface.name]={objects:[],interfaces:[]}),_implementations.objects.push(namedType)}}}}}var _proto=GraphQLSchema2.prototype;return _proto.getQueryType=function(){return this._queryType},_proto.getMutationType=function(){return this._mutationType},_proto.getSubscriptionType=function(){return this._subscriptionType},_proto.getTypeMap=function(){return this._typeMap},_proto.getType=function(name){return this.getTypeMap()[name]},_proto.getPossibleTypes=function(abstractType){return isUnionType(abstractType)?abstractType.getTypes():this.getImplementations(abstractType).objects},_proto.getImplementations=function(interfaceType){var implementations=this._implementationsMap[interfaceType.name];return implementations??{objects:[],interfaces:[]}},_proto.isPossibleType=function(abstractType,possibleType){return this.isSubType(abstractType,possibleType)},_proto.isSubType=function(abstractType,maybeSubType){var map=this._subTypeMap[abstractType.name];if(map===void 0){if(map=Object.create(null),isUnionType(abstractType))for(var _i14=0,_abstractType$getType2=abstractType.getTypes();_i14<_abstractType$getType2.length;_i14++){var type=_abstractType$getType2[_i14];map[type.name]=!0}else{for(var implementations=this.getImplementations(abstractType),_i16=0,_implementations$obje2=implementations.objects;_i16<_implementations$obje2.length;_i16++){var _type=_implementations$obje2[_i16];map[_type.name]=!0}for(var _i18=0,_implementations$inte2=implementations.interfaces;_i18<_implementations$inte2.length;_i18++){var _type2=_implementations$inte2[_i18];map[_type2.name]=!0}}this._subTypeMap[abstractType.name]=map}return map[maybeSubType.name]!==void 0},_proto.getDirectives=function(){return this._directives},_proto.getDirective=function(name){return polyfills_find(this.getDirectives(),function(directive){return directive.name===name})},_proto.toConfig=function(){var _this$extensionASTNod;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:polyfills_objectValues(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod=this.extensionASTNodes)!==null&&_this$extensionASTNod!==void 0?_this$extensionASTNod:[],assumeValid:this.__validationErrors!==void 0}},schema_createClass(GraphQLSchema2,[{key:symbols.YF,get:function(){return"GraphQLSchema"}}]),GraphQLSchema2}();function collectReferencedTypes(type,typeSet){var namedType=getNamedType(type);if(!typeSet.has(namedType)){if(typeSet.add(namedType),isUnionType(namedType))for(var _i20=0,_namedType$getTypes2=namedType.getTypes();_i20<_namedType$getTypes2.length;_i20++){var memberType=_namedType$getTypes2[_i20];collectReferencedTypes(memberType,typeSet)}else if(isObjectType(namedType)||isInterfaceType(namedType)){for(var _i22=0,_namedType$getInterfa6=namedType.getInterfaces();_i22<_namedType$getInterfa6.length;_i22++){var interfaceType=_namedType$getInterfa6[_i22];collectReferencedTypes(interfaceType,typeSet)}for(var _i24=0,_objectValues2=polyfills_objectValues(namedType.getFields());_i24<_objectValues2.length;_i24++){var field=_objectValues2[_i24];collectReferencedTypes(field.type,typeSet);for(var _i26=0,_field$args2=field.args;_i26<_field$args2.length;_i26++){var arg=_field$args2[_i26];collectReferencedTypes(arg.type,typeSet)}}}else if(isInputObjectType(namedType))for(var _i28=0,_objectValues4=polyfills_objectValues(namedType.getFields());_i28<_objectValues4.length;_i28++){var _field=_objectValues4[_i28];collectReferencedTypes(_field.type,typeSet)}}return typeSet}function validateSchema(schema){if(assertSchema(schema),schema.__validationErrors)return schema.__validationErrors;var context=new SchemaValidationContext(schema);validateRootTypes(context),validateDirectives(context),validateTypes(context);var errors=context.getErrors();return schema.__validationErrors=errors,errors}function assertValidSchema(schema){var errors=validateSchema(schema);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
104
104
|
|
105
|
-
`))}var SchemaValidationContext=function(){function SchemaValidationContext2(schema){this._errors=[],this.schema=schema}var _proto=SchemaValidationContext2.prototype;return _proto.reportError=function(message,nodes){var _nodes=Array.isArray(nodes)?nodes.filter(Boolean):nodes;this.addError(new GraphQLError._(message,_nodes))},_proto.addError=function(error){this._errors.push(error)},_proto.getErrors=function(){return this._errors},SchemaValidationContext2}();function validateRootTypes(context){var schema=context.schema,queryType=schema.getQueryType();if(!queryType)context.reportError("Query root type must be provided.",schema.astNode);else if(!isObjectType(queryType)){var _getOperationTypeNode;context.reportError("Query root type must be Object type, it cannot be ".concat((0,inspect.Z)(queryType),"."),(_getOperationTypeNode=getOperationTypeNode(schema,"query"))!==null&&_getOperationTypeNode!==void 0?_getOperationTypeNode:queryType.astNode)}var mutationType=schema.getMutationType();if(mutationType&&!isObjectType(mutationType)){var _getOperationTypeNode2;context.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,inspect.Z)(mutationType),"."),(_getOperationTypeNode2=getOperationTypeNode(schema,"mutation"))!==null&&_getOperationTypeNode2!==void 0?_getOperationTypeNode2:mutationType.astNode)}var subscriptionType=schema.getSubscriptionType();if(subscriptionType&&!isObjectType(subscriptionType)){var _getOperationTypeNode3;context.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,inspect.Z)(subscriptionType),"."),(_getOperationTypeNode3=getOperationTypeNode(schema,"subscription"))!==null&&_getOperationTypeNode3!==void 0?_getOperationTypeNode3:subscriptionType.astNode)}}function getOperationTypeNode(schema,operation){for(var operationNodes=getAllSubNodes(schema,function(node2){return node2.operationTypes}),_i2=0;_i2<operationNodes.length;_i2++){var node=operationNodes[_i2];if(node.operation===operation)return node.type}}function validateDirectives(context){for(var _i4=0,_context$schema$getDi2=context.schema.getDirectives();_i4<_context$schema$getDi2.length;_i4++){var directive=_context$schema$getDi2[_i4];if(!isDirective(directive)){context.reportError("Expected directive but got: ".concat((0,inspect.Z)(directive),"."),directive?.astNode);continue}validateName(context,directive);for(var _i6=0,_directive$args2=directive.args;_i6<_directive$args2.length;_i6++){var arg=_directive$args2[_i6];if(validateName(context,arg),isInputType(arg.type)||context.reportError("The type of @".concat(directive.name,"(").concat(arg.name,":) must be Input Type ")+"but got: ".concat((0,inspect.Z)(arg.type),"."),arg.astNode),isRequiredArgument(arg)&&arg.deprecationReason!=null){var _arg$astNode;context.reportError("Required argument @".concat(directive.name,"(").concat(arg.name,":) cannot be deprecated."),[getDeprecatedDirectiveNode(arg.astNode),(_arg$astNode=arg.astNode)===null||_arg$astNode===void 0?void 0:_arg$astNode.type])}}}}function validateName(context,node){var error=isValidNameError(node.name);error&&context.addError(locatedError(error,node.astNode))}function validateTypes(context){for(var validateInputObjectCircularRefs=createInputObjectCircularRefsValidator(context),typeMap=context.schema.getTypeMap(),_i8=0,_objectValues2=polyfills_objectValues(typeMap);_i8<_objectValues2.length;_i8++){var type=_objectValues2[_i8];if(!isNamedType(type)){context.reportError("Expected GraphQL named type but got: ".concat((0,inspect.Z)(type),"."),type.astNode);continue}isIntrospectionType(type)||validateName(context,type),isObjectType(type)||isInterfaceType(type)?(validateFields(context,type),validateInterfaces(context,type)):isUnionType(type)?validateUnionMembers(context,type):isEnumType(type)?validateEnumValues(context,type):isInputObjectType(type)&&(validateInputFields(context,type),validateInputObjectCircularRefs(type))}}function validateFields(context,type){var fields=polyfills_objectValues(type.getFields());fields.length===0&&context.reportError("Type ".concat(type.name," must define one or more fields."),getAllNodes(type));for(var _i10=0;_i10<fields.length;_i10++){var field=fields[_i10];if(validateName(context,field),!isOutputType(field.type)){var _field$astNode;context.reportError("The type of ".concat(type.name,".").concat(field.name," must be Output Type ")+"but got: ".concat((0,inspect.Z)(field.type),"."),(_field$astNode=field.astNode)===null||_field$astNode===void 0?void 0:_field$astNode.type)}for(var _i12=0,_field$args2=field.args;_i12<_field$args2.length;_i12++){var arg=_field$args2[_i12],argName=arg.name;if(validateName(context,arg),!isInputType(arg.type)){var _arg$astNode2;context.reportError("The type of ".concat(type.name,".").concat(field.name,"(").concat(argName,":) must be Input ")+"Type but got: ".concat((0,inspect.Z)(arg.type),"."),(_arg$astNode2=arg.astNode)===null||_arg$astNode2===void 0?void 0:_arg$astNode2.type)}if(isRequiredArgument(arg)&&arg.deprecationReason!=null){var _arg$astNode3;context.reportError("Required argument ".concat(type.name,".").concat(field.name,"(").concat(argName,":) cannot be deprecated."),[getDeprecatedDirectiveNode(arg.astNode),(_arg$astNode3=arg.astNode)===null||_arg$astNode3===void 0?void 0:_arg$astNode3.type])}}}}function validateInterfaces(context,type){for(var ifaceTypeNames=Object.create(null),_i14=0,_type$getInterfaces2=type.getInterfaces();_i14<_type$getInterfaces2.length;_i14++){var iface=_type$getInterfaces2[_i14];if(!isInterfaceType(iface)){context.reportError("Type ".concat((0,inspect.Z)(type)," must only implement Interface types, ")+"it cannot implement ".concat((0,inspect.Z)(iface),"."),getAllImplementsInterfaceNodes(type,iface));continue}if(type===iface){context.reportError("Type ".concat(type.name," cannot implement itself because it would create a circular reference."),getAllImplementsInterfaceNodes(type,iface));continue}if(ifaceTypeNames[iface.name]){context.reportError("Type ".concat(type.name," can only implement ").concat(iface.name," once."),getAllImplementsInterfaceNodes(type,iface));continue}ifaceTypeNames[iface.name]=!0,validateTypeImplementsAncestors(context,type,iface),validateTypeImplementsInterface(context,type,iface)}}function validateTypeImplementsInterface(context,type,iface){for(var typeFieldMap=type.getFields(),_i16=0,_objectValues4=polyfills_objectValues(iface.getFields());_i16<_objectValues4.length;_i16++){var ifaceField=_objectValues4[_i16],fieldName=ifaceField.name,typeField=typeFieldMap[fieldName];if(!typeField){context.reportError("Interface field ".concat(iface.name,".").concat(fieldName," expected but ").concat(type.name," does not provide it."),[ifaceField.astNode].concat(getAllNodes(type)));continue}if(!isTypeSubTypeOf(context.schema,typeField.type,ifaceField.type)){var _ifaceField$astNode,_typeField$astNode;context.reportError("Interface field ".concat(iface.name,".").concat(fieldName," expects type ")+"".concat((0,inspect.Z)(ifaceField.type)," but ").concat(type.name,".").concat(fieldName," ")+"is type ".concat((0,inspect.Z)(typeField.type),"."),[(_ifaceField$astNode=ifaceField.astNode)===null||_ifaceField$astNode===void 0?void 0:_ifaceField$astNode.type,(_typeField$astNode=typeField.astNode)===null||_typeField$astNode===void 0?void 0:_typeField$astNode.type])}for(var _loop=function(_i182,_ifaceField$args22){var ifaceArg=_ifaceField$args22[_i182],argName=ifaceArg.name,typeArg=polyfills_find(typeField.args,function(arg){return arg.name===argName});if(!typeArg)return context.reportError("Interface field argument ".concat(iface.name,".").concat(fieldName,"(").concat(argName,":) expected but ").concat(type.name,".").concat(fieldName," does not provide it."),[ifaceArg.astNode,typeField.astNode]),"continue";if(!isEqualType(ifaceArg.type,typeArg.type)){var _ifaceArg$astNode,_typeArg$astNode;context.reportError("Interface field argument ".concat(iface.name,".").concat(fieldName,"(").concat(argName,":) ")+"expects type ".concat((0,inspect.Z)(ifaceArg.type)," but ")+"".concat(type.name,".").concat(fieldName,"(").concat(argName,":) is type ")+"".concat((0,inspect.Z)(typeArg.type),"."),[(_ifaceArg$astNode=ifaceArg.astNode)===null||_ifaceArg$astNode===void 0?void 0:_ifaceArg$astNode.type,(_typeArg$astNode=typeArg.astNode)===null||_typeArg$astNode===void 0?void 0:_typeArg$astNode.type])}},_i18=0,_ifaceField$args2=ifaceField.args;_i18<_ifaceField$args2.length;_i18++)var _ret=_loop(_i18,_ifaceField$args2);for(var _loop2=function(_i202,_typeField$args22){var typeArg=_typeField$args22[_i202],argName=typeArg.name,ifaceArg=polyfills_find(ifaceField.args,function(arg){return arg.name===argName});!ifaceArg&&isRequiredArgument(typeArg)&&context.reportError("Object field ".concat(type.name,".").concat(fieldName," includes required argument ").concat(argName," that is missing from the Interface field ").concat(iface.name,".").concat(fieldName,"."),[typeArg.astNode,ifaceField.astNode])},_i20=0,_typeField$args2=typeField.args;_i20<_typeField$args2.length;_i20++)_loop2(_i20,_typeField$args2)}}function validateTypeImplementsAncestors(context,type,iface){for(var ifaceInterfaces=type.getInterfaces(),_i22=0,_iface$getInterfaces2=iface.getInterfaces();_i22<_iface$getInterfaces2.length;_i22++){var transitive=_iface$getInterfaces2[_i22];ifaceInterfaces.indexOf(transitive)===-1&&context.reportError(transitive===type?"Type ".concat(type.name," cannot implement ").concat(iface.name," because it would create a circular reference."):"Type ".concat(type.name," must implement ").concat(transitive.name," because it is implemented by ").concat(iface.name,"."),[].concat(getAllImplementsInterfaceNodes(iface,transitive),getAllImplementsInterfaceNodes(type,iface)))}}function validateUnionMembers(context,union){var memberTypes=union.getTypes();memberTypes.length===0&&context.reportError("Union type ".concat(union.name," must define one or more member types."),getAllNodes(union));for(var includedTypeNames=Object.create(null),_i24=0;_i24<memberTypes.length;_i24++){var memberType=memberTypes[_i24];if(includedTypeNames[memberType.name]){context.reportError("Union type ".concat(union.name," can only include type ").concat(memberType.name," once."),getUnionMemberTypeNodes(union,memberType.name));continue}includedTypeNames[memberType.name]=!0,isObjectType(memberType)||context.reportError("Union type ".concat(union.name," can only include Object types, ")+"it cannot include ".concat((0,inspect.Z)(memberType),"."),getUnionMemberTypeNodes(union,String(memberType)))}}function validateEnumValues(context,enumType){var enumValues=enumType.getValues();enumValues.length===0&&context.reportError("Enum type ".concat(enumType.name," must define one or more values."),getAllNodes(enumType));for(var _i26=0;_i26<enumValues.length;_i26++){var enumValue=enumValues[_i26],valueName=enumValue.name;validateName(context,enumValue),(valueName==="true"||valueName==="false"||valueName==="null")&&context.reportError("Enum type ".concat(enumType.name," cannot include value: ").concat(valueName,"."),enumValue.astNode)}}function validateInputFields(context,inputObj){var fields=polyfills_objectValues(inputObj.getFields());fields.length===0&&context.reportError("Input Object type ".concat(inputObj.name," must define one or more fields."),getAllNodes(inputObj));for(var _i28=0;_i28<fields.length;_i28++){var field=fields[_i28];if(validateName(context,field),!isInputType(field.type)){var _field$astNode2;context.reportError("The type of ".concat(inputObj.name,".").concat(field.name," must be Input Type ")+"but got: ".concat((0,inspect.Z)(field.type),"."),(_field$astNode2=field.astNode)===null||_field$astNode2===void 0?void 0:_field$astNode2.type)}if(isRequiredInputField(field)&&field.deprecationReason!=null){var _field$astNode3;context.reportError("Required input field ".concat(inputObj.name,".").concat(field.name," cannot be deprecated."),[getDeprecatedDirectiveNode(field.astNode),(_field$astNode3=field.astNode)===null||_field$astNode3===void 0?void 0:_field$astNode3.type])}}}function createInputObjectCircularRefsValidator(context){var visitedTypes=Object.create(null),fieldPath=[],fieldPathIndexByTypeName=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(inputObj){if(!visitedTypes[inputObj.name]){visitedTypes[inputObj.name]=!0,fieldPathIndexByTypeName[inputObj.name]=fieldPath.length;for(var fields=polyfills_objectValues(inputObj.getFields()),_i30=0;_i30<fields.length;_i30++){var field=fields[_i30];if(isNonNullType(field.type)&&isInputObjectType(field.type.ofType)){var fieldType=field.type.ofType,cycleIndex=fieldPathIndexByTypeName[fieldType.name];if(fieldPath.push(field),cycleIndex===void 0)detectCycleRecursive(fieldType);else{var cyclePath=fieldPath.slice(cycleIndex),pathStr=cyclePath.map(function(fieldObj){return fieldObj.name}).join(".");context.reportError('Cannot reference Input Object "'.concat(fieldType.name,'" within itself through a series of non-null fields: "').concat(pathStr,'".'),cyclePath.map(function(fieldObj){return fieldObj.astNode}))}fieldPath.pop()}}fieldPathIndexByTypeName[inputObj.name]=void 0}}}function getAllNodes(object){var astNode=object.astNode,extensionASTNodes=object.extensionASTNodes;return astNode?extensionASTNodes?[astNode].concat(extensionASTNodes):[astNode]:extensionASTNodes??[]}function getAllSubNodes(object,getter){for(var subNodes=[],_i32=0,_getAllNodes2=getAllNodes(object);_i32<_getAllNodes2.length;_i32++){var _getter,node=_getAllNodes2[_i32];subNodes=subNodes.concat((_getter=getter(node))!==null&&_getter!==void 0?_getter:[])}return subNodes}function getAllImplementsInterfaceNodes(type,iface){return getAllSubNodes(type,function(typeNode){return typeNode.interfaces}).filter(function(ifaceNode){return ifaceNode.name.value===iface.name})}function getUnionMemberTypeNodes(union,typeName){return getAllSubNodes(union,function(unionNode){return unionNode.types}).filter(function(typeNode){return typeNode.name.value===typeName})}function getDeprecatedDirectiveNode(definitionNode){var _definitionNode$direc;return definitionNode==null||(_definitionNode$direc=definitionNode.directives)===null||_definitionNode$direc===void 0?void 0:_definitionNode$direc.find(function(node){return node.name.value===GraphQLDeprecatedDirective.name})}var ast=__webpack_require__(8074);function typeFromAST(schema,typeNode){var innerType;if(typeNode.kind===kinds.h.LIST_TYPE)return innerType=typeFromAST(schema,typeNode.type),innerType&&new GraphQLList(innerType);if(typeNode.kind===kinds.h.NON_NULL_TYPE)return innerType=typeFromAST(schema,typeNode.type),innerType&&new GraphQLNonNull(innerType);if(typeNode.kind===kinds.h.NAMED_TYPE)return schema.getType(typeNode.name.value);(0,invariant.Z)(0,"Unexpected type node: "+(0,inspect.Z)(typeNode))}var TypeInfo=function(){function TypeInfo2(schema,getFieldDefFn,initialType){this._schema=schema,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=getFieldDefFn??getFieldDef,initialType&&(isInputType(initialType)&&this._inputTypeStack.push(initialType),isCompositeType(initialType)&&this._parentTypeStack.push(initialType),isOutputType(initialType)&&this._typeStack.push(initialType))}var _proto=TypeInfo2.prototype;return _proto.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},_proto.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},_proto.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},_proto.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},_proto.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},_proto.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},_proto.getDirective=function(){return this._directive},_proto.getArgument=function(){return this._argument},_proto.getEnumValue=function(){return this._enumValue},_proto.enter=function(node){var schema=this._schema;switch(node.kind){case kinds.h.SELECTION_SET:{var namedType=getNamedType(this.getType());this._parentTypeStack.push(isCompositeType(namedType)?namedType:void 0);break}case kinds.h.FIELD:{var parentType=this.getParentType(),fieldDef,fieldType;parentType&&(fieldDef=this._getFieldDef(schema,parentType,node),fieldDef&&(fieldType=fieldDef.type)),this._fieldDefStack.push(fieldDef),this._typeStack.push(isOutputType(fieldType)?fieldType:void 0);break}case kinds.h.DIRECTIVE:this._directive=schema.getDirective(node.name.value);break;case kinds.h.OPERATION_DEFINITION:{var type;switch(node.operation){case"query":type=schema.getQueryType();break;case"mutation":type=schema.getMutationType();break;case"subscription":type=schema.getSubscriptionType();break}this._typeStack.push(isObjectType(type)?type:void 0);break}case kinds.h.INLINE_FRAGMENT:case kinds.h.FRAGMENT_DEFINITION:{var typeConditionAST=node.typeCondition,outputType=typeConditionAST?typeFromAST(schema,typeConditionAST):getNamedType(this.getType());this._typeStack.push(isOutputType(outputType)?outputType:void 0);break}case kinds.h.VARIABLE_DEFINITION:{var inputType=typeFromAST(schema,node.type);this._inputTypeStack.push(isInputType(inputType)?inputType:void 0);break}case kinds.h.ARGUMENT:{var _this$getDirective,argDef,argType,fieldOrDirective=(_this$getDirective=this.getDirective())!==null&&_this$getDirective!==void 0?_this$getDirective:this.getFieldDef();fieldOrDirective&&(argDef=polyfills_find(fieldOrDirective.args,function(arg){return arg.name===node.name.value}),argDef&&(argType=argDef.type)),this._argument=argDef,this._defaultValueStack.push(argDef?argDef.defaultValue:void 0),this._inputTypeStack.push(isInputType(argType)?argType:void 0);break}case kinds.h.LIST:{var listType=getNullableType(this.getInputType()),itemType=isListType(listType)?listType.ofType:listType;this._defaultValueStack.push(void 0),this._inputTypeStack.push(isInputType(itemType)?itemType:void 0);break}case kinds.h.OBJECT_FIELD:{var objectType=getNamedType(this.getInputType()),inputFieldType,inputField;isInputObjectType(objectType)&&(inputField=objectType.getFields()[node.name.value],inputField&&(inputFieldType=inputField.type)),this._defaultValueStack.push(inputField?inputField.defaultValue:void 0),this._inputTypeStack.push(isInputType(inputFieldType)?inputFieldType:void 0);break}case kinds.h.ENUM:{var enumType=getNamedType(this.getInputType()),enumValue;isEnumType(enumType)&&(enumValue=enumType.getValue(node.value)),this._enumValue=enumValue;break}}},_proto.leave=function(node){switch(node.kind){case kinds.h.SELECTION_SET:this._parentTypeStack.pop();break;case kinds.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case kinds.h.DIRECTIVE:this._directive=null;break;case kinds.h.OPERATION_DEFINITION:case kinds.h.INLINE_FRAGMENT:case kinds.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case kinds.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case kinds.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case kinds.h.LIST:case kinds.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case kinds.h.ENUM:this._enumValue=null;break}},TypeInfo2}();function getFieldDef(schema,parentType,fieldNode){var name=fieldNode.name.value;if(name===SchemaMetaFieldDef.name&&schema.getQueryType()===parentType)return SchemaMetaFieldDef;if(name===TypeMetaFieldDef.name&&schema.getQueryType()===parentType)return TypeMetaFieldDef;if(name===TypeNameMetaFieldDef.name&&isCompositeType(parentType))return TypeNameMetaFieldDef;if(isObjectType(parentType)||isInterfaceType(parentType))return parentType.getFields()[name]}function visitWithTypeInfo(typeInfo,visitor){return{enter:function(node){typeInfo.enter(node);var fn=(0,language_visitor.CK)(visitor,node.kind,!1);if(fn){var result=fn.apply(visitor,arguments);return result!==void 0&&(typeInfo.leave(node),(0,ast.UG)(result)&&typeInfo.enter(result)),result}},leave:function(node){var fn=(0,language_visitor.CK)(visitor,node.kind,!0),result;return fn&&(result=fn.apply(visitor,arguments)),typeInfo.leave(node),result}}}function isDefinitionNode(node){return isExecutableDefinitionNode(node)||isTypeSystemDefinitionNode(node)||isTypeSystemExtensionNode(node)}function isExecutableDefinitionNode(node){return node.kind===kinds.h.OPERATION_DEFINITION||node.kind===kinds.h.FRAGMENT_DEFINITION}function isSelectionNode(node){return node.kind===kinds.h.FIELD||node.kind===kinds.h.FRAGMENT_SPREAD||node.kind===kinds.h.INLINE_FRAGMENT}function isValueNode(node){return node.kind===kinds.h.VARIABLE||node.kind===kinds.h.INT||node.kind===kinds.h.FLOAT||node.kind===kinds.h.STRING||node.kind===kinds.h.BOOLEAN||node.kind===kinds.h.NULL||node.kind===kinds.h.ENUM||node.kind===kinds.h.LIST||node.kind===kinds.h.OBJECT}function isTypeNode(node){return node.kind===kinds.h.NAMED_TYPE||node.kind===kinds.h.LIST_TYPE||node.kind===kinds.h.NON_NULL_TYPE}function isTypeSystemDefinitionNode(node){return node.kind===kinds.h.SCHEMA_DEFINITION||isTypeDefinitionNode(node)||node.kind===kinds.h.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(node){return node.kind===kinds.h.SCALAR_TYPE_DEFINITION||node.kind===kinds.h.OBJECT_TYPE_DEFINITION||node.kind===kinds.h.INTERFACE_TYPE_DEFINITION||node.kind===kinds.h.UNION_TYPE_DEFINITION||node.kind===kinds.h.ENUM_TYPE_DEFINITION||node.kind===kinds.h.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(node){return node.kind===kinds.h.SCHEMA_EXTENSION||isTypeExtensionNode(node)}function isTypeExtensionNode(node){return node.kind===kinds.h.SCALAR_TYPE_EXTENSION||node.kind===kinds.h.OBJECT_TYPE_EXTENSION||node.kind===kinds.h.INTERFACE_TYPE_EXTENSION||node.kind===kinds.h.UNION_TYPE_EXTENSION||node.kind===kinds.h.ENUM_TYPE_EXTENSION||node.kind===kinds.h.INPUT_OBJECT_TYPE_EXTENSION}function ExecutableDefinitionsRule(context){return{Document:function(node){for(var _i2=0,_node$definitions2=node.definitions;_i2<_node$definitions2.length;_i2++){var definition=_node$definitions2[_i2];if(!isExecutableDefinitionNode(definition)){var defName=definition.kind===kinds.h.SCHEMA_DEFINITION||definition.kind===kinds.h.SCHEMA_EXTENSION?"schema":'"'+definition.name.value+'"';context.reportError(new GraphQLError._("The ".concat(defName," definition is not executable."),definition))}}return!1}}}function UniqueOperationNamesRule(context){var knownOperationNames=Object.create(null);return{OperationDefinition:function(node){var operationName=node.name;return operationName&&(knownOperationNames[operationName.value]?context.reportError(new GraphQLError._('There can be only one operation named "'.concat(operationName.value,'".'),[knownOperationNames[operationName.value],operationName])):knownOperationNames[operationName.value]=operationName),!1},FragmentDefinition:function(){return!1}}}function LoneAnonymousOperationRule(context){var operationCount=0;return{Document:function(node){operationCount=node.definitions.filter(function(definition){return definition.kind===kinds.h.OPERATION_DEFINITION}).length},OperationDefinition:function(node){!node.name&&operationCount>1&&context.reportError(new GraphQLError._("This anonymous operation must be the only defined operation.",node))}}}function SingleFieldSubscriptionsRule(context){return{OperationDefinition:function(node){node.operation==="subscription"&&node.selectionSet.selections.length!==1&&context.reportError(new GraphQLError._(node.name?'Subscription "'.concat(node.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",node.selectionSet.selections.slice(1)))}}}function KnownTypeNamesRule(context){for(var schema=context.getSchema(),existingTypesMap=schema?schema.getTypeMap():Object.create(null),definedTypes=Object.create(null),_i2=0,_context$getDocument$2=context.getDocument().definitions;_i2<_context$getDocument$2.length;_i2++){var def=_context$getDocument$2[_i2];isTypeDefinitionNode(def)&&(definedTypes[def.name.value]=!0)}var typeNames=Object.keys(existingTypesMap).concat(Object.keys(definedTypes));return{NamedType:function(node,_1,parent2,_2,ancestors){var typeName=node.name.value;if(!existingTypesMap[typeName]&&!definedTypes[typeName]){var _ancestors$,definitionNode=(_ancestors$=ancestors[2])!==null&&_ancestors$!==void 0?_ancestors$:parent2,isSDL=definitionNode!=null&&isSDLNode(definitionNode);if(isSDL&&isStandardTypeName(typeName))return;var suggestedTypes=suggestionList(typeName,isSDL?standardTypeNames.concat(typeNames):typeNames);context.reportError(new GraphQLError._('Unknown type "'.concat(typeName,'".')+didYouMean(suggestedTypes),node))}}}}var standardTypeNames=[].concat(specifiedScalarTypes,introspectionTypes).map(function(type){return type.name});function isStandardTypeName(typeName){return standardTypeNames.indexOf(typeName)!==-1}function isSDLNode(value2){return!Array.isArray(value2)&&(isTypeSystemDefinitionNode(value2)||isTypeSystemExtensionNode(value2))}function FragmentsOnCompositeTypesRule(context){return{InlineFragment:function(node){var typeCondition=node.typeCondition;if(typeCondition){var type=typeFromAST(context.getSchema(),typeCondition);if(type&&!isCompositeType(type)){var typeStr=(0,printer.print)(typeCondition);context.reportError(new GraphQLError._('Fragment cannot condition on non composite type "'.concat(typeStr,'".'),typeCondition))}}},FragmentDefinition:function(node){var type=typeFromAST(context.getSchema(),node.typeCondition);if(type&&!isCompositeType(type)){var typeStr=(0,printer.print)(node.typeCondition);context.reportError(new GraphQLError._('Fragment "'.concat(node.name.value,'" cannot condition on non composite type "').concat(typeStr,'".'),node.typeCondition))}}}}function VariablesAreInputTypesRule(context){return{VariableDefinition:function(node){var type=typeFromAST(context.getSchema(),node.type);if(type&&!isInputType(type)){var variableName=node.variable.name.value,typeName=(0,printer.print)(node.type);context.reportError(new GraphQLError._('Variable "$'.concat(variableName,'" cannot be non-input type "').concat(typeName,'".'),node.type))}}}}function ScalarLeafsRule(context){return{Field:function(node){var type=context.getType(),selectionSet=node.selectionSet;if(type){if(isLeafType(getNamedType(type))){if(selectionSet){var fieldName=node.name.value,typeStr=(0,inspect.Z)(type);context.reportError(new GraphQLError._('Field "'.concat(fieldName,'" must not have a selection since type "').concat(typeStr,'" has no subfields.'),selectionSet))}}else if(!selectionSet){var _fieldName=node.name.value,_typeStr=(0,inspect.Z)(type);context.reportError(new GraphQLError._('Field "'.concat(_fieldName,'" of type "').concat(_typeStr,'" must have a selection of subfields. Did you mean "').concat(_fieldName,' { ... }"?'),node))}}}}}function FieldsOnCorrectTypeRule(context){return{Field:function(node){var type=context.getParentType();if(type){var fieldDef=context.getFieldDef();if(!fieldDef){var schema=context.getSchema(),fieldName=node.name.value,suggestion=didYouMean("to use an inline fragment on",getSuggestedTypeNames(schema,type,fieldName));suggestion===""&&(suggestion=didYouMean(getSuggestedFieldNames(type,fieldName))),context.reportError(new GraphQLError._('Cannot query field "'.concat(fieldName,'" on type "').concat(type.name,'".')+suggestion,node))}}}}}function getSuggestedTypeNames(schema,type,fieldName){if(!isAbstractType(type))return[];for(var suggestedTypes=new Set,usageCount=Object.create(null),_i2=0,_schema$getPossibleTy2=schema.getPossibleTypes(type);_i2<_schema$getPossibleTy2.length;_i2++){var possibleType=_schema$getPossibleTy2[_i2];if(!!possibleType.getFields()[fieldName]){suggestedTypes.add(possibleType),usageCount[possibleType.name]=1;for(var _i4=0,_possibleType$getInte2=possibleType.getInterfaces();_i4<_possibleType$getInte2.length;_i4++){var _usageCount$possibleI,possibleInterface=_possibleType$getInte2[_i4];!possibleInterface.getFields()[fieldName]||(suggestedTypes.add(possibleInterface),usageCount[possibleInterface.name]=((_usageCount$possibleI=usageCount[possibleInterface.name])!==null&&_usageCount$possibleI!==void 0?_usageCount$possibleI:0)+1)}}}return polyfills_arrayFrom(suggestedTypes).sort(function(typeA,typeB){var usageCountDiff=usageCount[typeB.name]-usageCount[typeA.name];return usageCountDiff!==0?usageCountDiff:isInterfaceType(typeA)&&schema.isSubType(typeA,typeB)?-1:isInterfaceType(typeB)&&schema.isSubType(typeB,typeA)?1:naturalCompare(typeA.name,typeB.name)}).map(function(x){return x.name})}function getSuggestedFieldNames(type,fieldName){if(isObjectType(type)||isInterfaceType(type)){var possibleFieldNames=Object.keys(type.getFields());return suggestionList(fieldName,possibleFieldNames)}return[]}function UniqueFragmentNamesRule(context){var knownFragmentNames=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(node){var fragmentName=node.name.value;return knownFragmentNames[fragmentName]?context.reportError(new GraphQLError._('There can be only one fragment named "'.concat(fragmentName,'".'),[knownFragmentNames[fragmentName],node.name])):knownFragmentNames[fragmentName]=node.name,!1}}}function KnownFragmentNamesRule(context){return{FragmentSpread:function(node){var fragmentName=node.name.value,fragment=context.getFragment(fragmentName);fragment||context.reportError(new GraphQLError._('Unknown fragment "'.concat(fragmentName,'".'),node.name))}}}function NoUnusedFragmentsRule(context){var operationDefs=[],fragmentDefs=[];return{OperationDefinition:function(node){return operationDefs.push(node),!1},FragmentDefinition:function(node){return fragmentDefs.push(node),!1},Document:{leave:function(){for(var fragmentNameUsed=Object.create(null),_i2=0;_i2<operationDefs.length;_i2++)for(var operation=operationDefs[_i2],_i4=0,_context$getRecursive2=context.getRecursivelyReferencedFragments(operation);_i4<_context$getRecursive2.length;_i4++){var fragment=_context$getRecursive2[_i4];fragmentNameUsed[fragment.name.value]=!0}for(var _i6=0;_i6<fragmentDefs.length;_i6++){var fragmentDef=fragmentDefs[_i6],fragName=fragmentDef.name.value;fragmentNameUsed[fragName]!==!0&&context.reportError(new GraphQLError._('Fragment "'.concat(fragName,'" is never used.'),fragmentDef))}}}}}function PossibleFragmentSpreadsRule(context){return{InlineFragment:function(node){var fragType=context.getType(),parentType=context.getParentType();if(isCompositeType(fragType)&&isCompositeType(parentType)&&!doTypesOverlap(context.getSchema(),fragType,parentType)){var parentTypeStr=(0,inspect.Z)(parentType),fragTypeStr=(0,inspect.Z)(fragType);context.reportError(new GraphQLError._('Fragment cannot be spread here as objects of type "'.concat(parentTypeStr,'" can never be of type "').concat(fragTypeStr,'".'),node))}},FragmentSpread:function(node){var fragName=node.name.value,fragType=getFragmentType(context,fragName),parentType=context.getParentType();if(fragType&&parentType&&!doTypesOverlap(context.getSchema(),fragType,parentType)){var parentTypeStr=(0,inspect.Z)(parentType),fragTypeStr=(0,inspect.Z)(fragType);context.reportError(new GraphQLError._('Fragment "'.concat(fragName,'" cannot be spread here as objects of type "').concat(parentTypeStr,'" can never be of type "').concat(fragTypeStr,'".'),node))}}}}function getFragmentType(context,name){var frag=context.getFragment(name);if(frag){var type=typeFromAST(context.getSchema(),frag.typeCondition);if(isCompositeType(type))return type}}function NoFragmentCyclesRule(context){var visitedFrags=Object.create(null),spreadPath=[],spreadPathIndexByName=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(node){return detectCycleRecursive(node),!1}};function detectCycleRecursive(fragment){if(!visitedFrags[fragment.name.value]){var fragmentName=fragment.name.value;visitedFrags[fragmentName]=!0;var spreadNodes=context.getFragmentSpreads(fragment.selectionSet);if(spreadNodes.length!==0){spreadPathIndexByName[fragmentName]=spreadPath.length;for(var _i2=0;_i2<spreadNodes.length;_i2++){var spreadNode=spreadNodes[_i2],spreadName=spreadNode.name.value,cycleIndex=spreadPathIndexByName[spreadName];if(spreadPath.push(spreadNode),cycleIndex===void 0){var spreadFragment=context.getFragment(spreadName);spreadFragment&&detectCycleRecursive(spreadFragment)}else{var cyclePath=spreadPath.slice(cycleIndex),viaPath=cyclePath.slice(0,-1).map(function(s){return'"'+s.name.value+'"'}).join(", ");context.reportError(new GraphQLError._('Cannot spread fragment "'.concat(spreadName,'" within itself')+(viaPath!==""?" via ".concat(viaPath,"."):"."),cyclePath))}spreadPath.pop()}spreadPathIndexByName[fragmentName]=void 0}}}}function UniqueVariableNamesRule(context){var knownVariableNames=Object.create(null);return{OperationDefinition:function(){knownVariableNames=Object.create(null)},VariableDefinition:function(node){var variableName=node.variable.name.value;knownVariableNames[variableName]?context.reportError(new GraphQLError._('There can be only one variable named "$'.concat(variableName,'".'),[knownVariableNames[variableName],node.variable.name])):knownVariableNames[variableName]=node.variable.name}}}function NoUndefinedVariablesRule(context){var variableNameDefined=Object.create(null);return{OperationDefinition:{enter:function(){variableNameDefined=Object.create(null)},leave:function(operation){for(var usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node,varName=node.name.value;variableNameDefined[varName]!==!0&&context.reportError(new GraphQLError._(operation.name?'Variable "$'.concat(varName,'" is not defined by operation "').concat(operation.name.value,'".'):'Variable "$'.concat(varName,'" is not defined.'),[node,operation]))}}},VariableDefinition:function(node){variableNameDefined[node.variable.name.value]=!0}}}function NoUnusedVariablesRule(context){var variableDefs=[];return{OperationDefinition:{enter:function(){variableDefs=[]},leave:function(operation){for(var variableNameUsed=Object.create(null),usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node;variableNameUsed[node.name.value]=!0}for(var _i4=0,_variableDefs2=variableDefs;_i4<_variableDefs2.length;_i4++){var variableDef=_variableDefs2[_i4],variableName=variableDef.variable.name.value;variableNameUsed[variableName]!==!0&&context.reportError(new GraphQLError._(operation.name?'Variable "$'.concat(variableName,'" is never used in operation "').concat(operation.name.value,'".'):'Variable "$'.concat(variableName,'" is never used.'),variableDef))}}},VariableDefinition:function(def){variableDefs.push(def)}}}function KnownDirectivesRule(context){for(var locationsMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];locationsMap[directive.name]=directive.locations}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];def.kind===kinds.h.DIRECTIVE_DEFINITION&&(locationsMap[def.name.value]=def.locations.map(function(name){return name.value}))}return{Directive:function(node,_key,_parent,_path,ancestors){var name=node.name.value,locations=locationsMap[name];if(!locations){context.reportError(new GraphQLError._('Unknown directive "@'.concat(name,'".'),node));return}var candidateLocation=getDirectiveLocationForASTPath(ancestors);candidateLocation&&locations.indexOf(candidateLocation)===-1&&context.reportError(new GraphQLError._('Directive "@'.concat(name,'" may not be used on ').concat(candidateLocation,"."),node))}}}function getDirectiveLocationForASTPath(ancestors){var appliedTo=ancestors[ancestors.length-1];switch(!Array.isArray(appliedTo)||(0,invariant.Z)(0),appliedTo.kind){case kinds.h.OPERATION_DEFINITION:return getDirectiveLocationForOperation(appliedTo.operation);case kinds.h.FIELD:return directiveLocation.B.FIELD;case kinds.h.FRAGMENT_SPREAD:return directiveLocation.B.FRAGMENT_SPREAD;case kinds.h.INLINE_FRAGMENT:return directiveLocation.B.INLINE_FRAGMENT;case kinds.h.FRAGMENT_DEFINITION:return directiveLocation.B.FRAGMENT_DEFINITION;case kinds.h.VARIABLE_DEFINITION:return directiveLocation.B.VARIABLE_DEFINITION;case kinds.h.SCHEMA_DEFINITION:case kinds.h.SCHEMA_EXTENSION:return directiveLocation.B.SCHEMA;case kinds.h.SCALAR_TYPE_DEFINITION:case kinds.h.SCALAR_TYPE_EXTENSION:return directiveLocation.B.SCALAR;case kinds.h.OBJECT_TYPE_DEFINITION:case kinds.h.OBJECT_TYPE_EXTENSION:return directiveLocation.B.OBJECT;case kinds.h.FIELD_DEFINITION:return directiveLocation.B.FIELD_DEFINITION;case kinds.h.INTERFACE_TYPE_DEFINITION:case kinds.h.INTERFACE_TYPE_EXTENSION:return directiveLocation.B.INTERFACE;case kinds.h.UNION_TYPE_DEFINITION:case kinds.h.UNION_TYPE_EXTENSION:return directiveLocation.B.UNION;case kinds.h.ENUM_TYPE_DEFINITION:case kinds.h.ENUM_TYPE_EXTENSION:return directiveLocation.B.ENUM;case kinds.h.ENUM_VALUE_DEFINITION:return directiveLocation.B.ENUM_VALUE;case kinds.h.INPUT_OBJECT_TYPE_DEFINITION:case kinds.h.INPUT_OBJECT_TYPE_EXTENSION:return directiveLocation.B.INPUT_OBJECT;case kinds.h.INPUT_VALUE_DEFINITION:{var parentNode=ancestors[ancestors.length-3];return parentNode.kind===kinds.h.INPUT_OBJECT_TYPE_DEFINITION?directiveLocation.B.INPUT_FIELD_DEFINITION:directiveLocation.B.ARGUMENT_DEFINITION}}}function getDirectiveLocationForOperation(operation){switch(operation){case"query":return directiveLocation.B.QUERY;case"mutation":return directiveLocation.B.MUTATION;case"subscription":return directiveLocation.B.SUBSCRIPTION}(0,invariant.Z)(0,"Unexpected operation: "+(0,inspect.Z)(operation))}function UniqueDirectivesPerLocationRule(context){for(var uniqueDirectiveMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];uniqueDirectiveMap[directive.name]=!directive.isRepeatable}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];def.kind===kinds.h.DIRECTIVE_DEFINITION&&(uniqueDirectiveMap[def.name.value]=!def.repeatable)}var schemaDirectives=Object.create(null),typeDirectivesMap=Object.create(null);return{enter:function(node){if(node.directives!=null){var seenDirectives;if(node.kind===kinds.h.SCHEMA_DEFINITION||node.kind===kinds.h.SCHEMA_EXTENSION)seenDirectives=schemaDirectives;else if(isTypeDefinitionNode(node)||isTypeExtensionNode(node)){var typeName=node.name.value;seenDirectives=typeDirectivesMap[typeName],seenDirectives===void 0&&(typeDirectivesMap[typeName]=seenDirectives=Object.create(null))}else seenDirectives=Object.create(null);for(var _i6=0,_node$directives2=node.directives;_i6<_node$directives2.length;_i6++){var _directive=_node$directives2[_i6],directiveName=_directive.name.value;uniqueDirectiveMap[directiveName]&&(seenDirectives[directiveName]?context.reportError(new GraphQLError._('The directive "@'.concat(directiveName,'" can only be used once at this location.'),[seenDirectives[directiveName],_directive])):seenDirectives[directiveName]=_directive)}}}}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function KnownArgumentNamesRule(context){return _objectSpread(_objectSpread({},KnownArgumentNamesOnDirectivesRule(context)),{},{Argument:function(argNode){var argDef=context.getArgument(),fieldDef=context.getFieldDef(),parentType=context.getParentType();if(!argDef&&fieldDef&&parentType){var argName=argNode.name.value,knownArgsNames=fieldDef.args.map(function(arg){return arg.name}),suggestions=suggestionList(argName,knownArgsNames);context.reportError(new GraphQLError._('Unknown argument "'.concat(argName,'" on field "').concat(parentType.name,".").concat(fieldDef.name,'".')+didYouMean(suggestions),argNode))}}})}function KnownArgumentNamesOnDirectivesRule(context){for(var directiveArgs=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];directiveArgs[directive.name]=directive.args.map(function(arg){return arg.name})}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];if(def.kind===kinds.h.DIRECTIVE_DEFINITION){var _def$arguments,argsNodes=(_def$arguments=def.arguments)!==null&&_def$arguments!==void 0?_def$arguments:[];directiveArgs[def.name.value]=argsNodes.map(function(arg){return arg.name.value})}}return{Directive:function(directiveNode){var directiveName=directiveNode.name.value,knownArgs=directiveArgs[directiveName];if(directiveNode.arguments&&knownArgs)for(var _i6=0,_directiveNode$argume2=directiveNode.arguments;_i6<_directiveNode$argume2.length;_i6++){var argNode=_directiveNode$argume2[_i6],argName=argNode.name.value;if(knownArgs.indexOf(argName)===-1){var suggestions=suggestionList(argName,knownArgs);context.reportError(new GraphQLError._('Unknown argument "'.concat(argName,'" on directive "@').concat(directiveName,'".')+didYouMean(suggestions),argNode))}}return!1}}}function UniqueArgumentNamesRule(context){var knownArgNames=Object.create(null);return{Field:function(){knownArgNames=Object.create(null)},Directive:function(){knownArgNames=Object.create(null)},Argument:function(node){var argName=node.name.value;return knownArgNames[argName]?context.reportError(new GraphQLError._('There can be only one argument named "'.concat(argName,'".'),[knownArgNames[argName],node.name])):knownArgNames[argName]=node.name,!1}}}function ValuesOfCorrectTypeRule(context){return{ListValue:function(node){var type=getNullableType(context.getParentInputType());if(!isListType(type))return isValidValueNode(context,node),!1},ObjectValue:function(node){var type=getNamedType(context.getInputType());if(!isInputObjectType(type))return isValidValueNode(context,node),!1;for(var fieldNodeMap=keyMap(node.fields,function(field){return field.name.value}),_i2=0,_objectValues2=polyfills_objectValues(type.getFields());_i2<_objectValues2.length;_i2++){var fieldDef=_objectValues2[_i2],fieldNode=fieldNodeMap[fieldDef.name];if(!fieldNode&&isRequiredInputField(fieldDef)){var typeStr=(0,inspect.Z)(fieldDef.type);context.reportError(new GraphQLError._('Field "'.concat(type.name,".").concat(fieldDef.name,'" of required type "').concat(typeStr,'" was not provided.'),node))}}},ObjectField:function(node){var parentType=getNamedType(context.getParentInputType()),fieldType=context.getInputType();if(!fieldType&&isInputObjectType(parentType)){var suggestions=suggestionList(node.name.value,Object.keys(parentType.getFields()));context.reportError(new GraphQLError._('Field "'.concat(node.name.value,'" is not defined by type "').concat(parentType.name,'".')+didYouMean(suggestions),node))}},NullValue:function(node){var type=context.getInputType();isNonNullType(type)&&context.reportError(new GraphQLError._('Expected value of type "'.concat((0,inspect.Z)(type),'", found ').concat((0,printer.print)(node),"."),node))},EnumValue:function(node){return isValidValueNode(context,node)},IntValue:function(node){return isValidValueNode(context,node)},FloatValue:function(node){return isValidValueNode(context,node)},StringValue:function(node){return isValidValueNode(context,node)},BooleanValue:function(node){return isValidValueNode(context,node)}}}function isValidValueNode(context,node){var locationType=context.getInputType();if(!!locationType){var type=getNamedType(locationType);if(!isLeafType(type)){var typeStr=(0,inspect.Z)(locationType);context.reportError(new GraphQLError._('Expected value of type "'.concat(typeStr,'", found ').concat((0,printer.print)(node),"."),node));return}try{var parseResult=type.parseLiteral(node,void 0);if(parseResult===void 0){var _typeStr=(0,inspect.Z)(locationType);context.reportError(new GraphQLError._('Expected value of type "'.concat(_typeStr,'", found ').concat((0,printer.print)(node),"."),node))}}catch(error){var _typeStr2=(0,inspect.Z)(locationType);error instanceof GraphQLError._?context.reportError(error):context.reportError(new GraphQLError._('Expected value of type "'.concat(_typeStr2,'", found ').concat((0,printer.print)(node),"; ")+error.message,node,void 0,void 0,void 0,error))}}}function ProvidedRequiredArgumentsRule_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function ProvidedRequiredArgumentsRule_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ProvidedRequiredArgumentsRule_ownKeys(Object(source),!0).forEach(function(key){ProvidedRequiredArgumentsRule_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ProvidedRequiredArgumentsRule_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function ProvidedRequiredArgumentsRule_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function ProvidedRequiredArgumentsRule(context){return ProvidedRequiredArgumentsRule_objectSpread(ProvidedRequiredArgumentsRule_objectSpread({},ProvidedRequiredArgumentsOnDirectivesRule(context)),{},{Field:{leave:function(fieldNode){var _fieldNode$arguments,fieldDef=context.getFieldDef();if(!fieldDef)return!1;for(var argNodes=(_fieldNode$arguments=fieldNode.arguments)!==null&&_fieldNode$arguments!==void 0?_fieldNode$arguments:[],argNodeMap=keyMap(argNodes,function(arg){return arg.name.value}),_i2=0,_fieldDef$args2=fieldDef.args;_i2<_fieldDef$args2.length;_i2++){var argDef=_fieldDef$args2[_i2],argNode=argNodeMap[argDef.name];if(!argNode&&isRequiredArgument(argDef)){var argTypeStr=(0,inspect.Z)(argDef.type);context.reportError(new GraphQLError._('Field "'.concat(fieldDef.name,'" argument "').concat(argDef.name,'" of type "').concat(argTypeStr,'" is required, but it was not provided.'),fieldNode))}}}}})}function ProvidedRequiredArgumentsOnDirectivesRule(context){for(var requiredArgsMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i4=0;_i4<definedDirectives.length;_i4++){var directive=definedDirectives[_i4];requiredArgsMap[directive.name]=keyMap(directive.args.filter(isRequiredArgument),function(arg){return arg.name})}for(var astDefinitions=context.getDocument().definitions,_i6=0;_i6<astDefinitions.length;_i6++){var def=astDefinitions[_i6];if(def.kind===kinds.h.DIRECTIVE_DEFINITION){var _def$arguments,argNodes=(_def$arguments=def.arguments)!==null&&_def$arguments!==void 0?_def$arguments:[];requiredArgsMap[def.name.value]=keyMap(argNodes.filter(isRequiredArgumentNode),function(arg){return arg.name.value})}}return{Directive:{leave:function(directiveNode){var directiveName=directiveNode.name.value,requiredArgs=requiredArgsMap[directiveName];if(requiredArgs)for(var _directiveNode$argume,_argNodes=(_directiveNode$argume=directiveNode.arguments)!==null&&_directiveNode$argume!==void 0?_directiveNode$argume:[],argNodeMap=keyMap(_argNodes,function(arg){return arg.name.value}),_i8=0,_Object$keys2=Object.keys(requiredArgs);_i8<_Object$keys2.length;_i8++){var argName=_Object$keys2[_i8];if(!argNodeMap[argName]){var argType=requiredArgs[argName].type,argTypeStr=isType(argType)?(0,inspect.Z)(argType):(0,printer.print)(argType);context.reportError(new GraphQLError._('Directive "@'.concat(directiveName,'" argument "').concat(argName,'" of type "').concat(argTypeStr,'" is required, but it was not provided.'),directiveNode))}}}}}}function isRequiredArgumentNode(arg){return arg.type.kind===kinds.h.NON_NULL_TYPE&&arg.defaultValue==null}function VariablesInAllowedPositionRule(context){var varDefMap=Object.create(null);return{OperationDefinition:{enter:function(){varDefMap=Object.create(null)},leave:function(operation){for(var usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node,type=_ref2.type,defaultValue=_ref2.defaultValue,varName=node.name.value,varDef=varDefMap[varName];if(varDef&&type){var schema=context.getSchema(),varType=typeFromAST(schema,varDef.type);if(varType&&!allowedVariableUsage(schema,varType,varDef.defaultValue,type,defaultValue)){var varTypeStr=(0,inspect.Z)(varType),typeStr=(0,inspect.Z)(type);context.reportError(new GraphQLError._('Variable "$'.concat(varName,'" of type "').concat(varTypeStr,'" used in position expecting type "').concat(typeStr,'".'),[varDef,node]))}}}}},VariableDefinition:function(node){varDefMap[node.variable.name.value]=node}}}function allowedVariableUsage(schema,varType,varDefaultValue,locationType,locationDefaultValue){if(isNonNullType(locationType)&&!isNonNullType(varType)){var hasNonNullVariableDefaultValue=varDefaultValue!=null&&varDefaultValue.kind!==kinds.h.NULL,hasLocationDefaultValue=locationDefaultValue!==void 0;if(!hasNonNullVariableDefaultValue&&!hasLocationDefaultValue)return!1;var nullableLocationType=locationType.ofType;return isTypeSubTypeOf(schema,varType,nullableLocationType)}return isTypeSubTypeOf(schema,varType,locationType)}function reasonMessage(reason){return Array.isArray(reason)?reason.map(function(_ref){var responseName=_ref[0],subReason=_ref[1];return'subfields "'.concat(responseName,'" conflict because ')+reasonMessage(subReason)}).join(" and "):reason}function OverlappingFieldsCanBeMergedRule(context){var comparedFragmentPairs=new PairSet,cachedFieldsAndFragmentNames=new Map;return{SelectionSet:function(selectionSet){for(var conflicts=findConflictsWithinSelectionSet(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,context.getParentType(),selectionSet),_i2=0;_i2<conflicts.length;_i2++){var _ref3=conflicts[_i2],_ref2$=_ref3[0],responseName=_ref2$[0],reason=_ref2$[1],fields1=_ref3[1],fields2=_ref3[2],reasonMsg=reasonMessage(reason);context.reportError(new GraphQLError._('Fields "'.concat(responseName,'" conflict because ').concat(reasonMsg,". Use different aliases on the fields to fetch both if this was intentional."),fields1.concat(fields2)))}}}}function findConflictsWithinSelectionSet(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentType,selectionSet){var conflicts=[],_getFieldsAndFragment=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType,selectionSet),fieldMap=_getFieldsAndFragment[0],fragmentNames=_getFieldsAndFragment[1];if(collectConflictsWithin(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,fieldMap),fragmentNames.length!==0)for(var i=0;i<fragmentNames.length;i++){collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,fieldMap,fragmentNames[i]);for(var j=i+1;j<fragmentNames.length;j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,fragmentNames[i],fragmentNames[j])}return conflicts}function collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fragmentName){var fragment=context.getFragment(fragmentName);if(!!fragment){var _getReferencedFieldsA=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment),fieldMap2=_getReferencedFieldsA[0],fragmentNames2=_getReferencedFieldsA[1];if(fieldMap!==fieldMap2){collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fieldMap2);for(var i=0;i<fragmentNames2.length;i++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fragmentNames2[i])}}}function collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentName1,fragmentName2){if(fragmentName1!==fragmentName2&&!comparedFragmentPairs.has(fragmentName1,fragmentName2,areMutuallyExclusive)){comparedFragmentPairs.add(fragmentName1,fragmentName2,areMutuallyExclusive);var fragment1=context.getFragment(fragmentName1),fragment2=context.getFragment(fragmentName2);if(!(!fragment1||!fragment2)){var _getReferencedFieldsA2=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment1),fieldMap1=_getReferencedFieldsA2[0],fragmentNames1=_getReferencedFieldsA2[1],_getReferencedFieldsA3=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment2),fieldMap2=_getReferencedFieldsA3[0],fragmentNames2=_getReferencedFieldsA3[1];collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fieldMap2);for(var j=0;j<fragmentNames2.length;j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentName1,fragmentNames2[j]);for(var i=0;i<fragmentNames1.length;i++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentNames1[i],fragmentName2)}}}function findConflictsBetweenSubSelectionSets(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,parentType1,selectionSet1,parentType2,selectionSet2){var conflicts=[],_getFieldsAndFragment2=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType1,selectionSet1),fieldMap1=_getFieldsAndFragment2[0],fragmentNames1=_getFieldsAndFragment2[1],_getFieldsAndFragment3=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType2,selectionSet2),fieldMap2=_getFieldsAndFragment3[0],fragmentNames2=_getFieldsAndFragment3[1];if(collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fieldMap2),fragmentNames2.length!==0)for(var j=0;j<fragmentNames2.length;j++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fragmentNames2[j]);if(fragmentNames1.length!==0)for(var i=0;i<fragmentNames1.length;i++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap2,fragmentNames1[i]);for(var _i3=0;_i3<fragmentNames1.length;_i3++)for(var _j=0;_j<fragmentNames2.length;_j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentNames1[_i3],fragmentNames2[_j]);return conflicts}function collectConflictsWithin(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,fieldMap){for(var _i5=0,_objectEntries2=polyfills_objectEntries(fieldMap);_i5<_objectEntries2.length;_i5++){var _ref5=_objectEntries2[_i5],responseName=_ref5[0],fields=_ref5[1];if(fields.length>1)for(var i=0;i<fields.length;i++)for(var j=i+1;j<fields.length;j++){var conflict=findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,responseName,fields[i],fields[j]);conflict&&conflicts.push(conflict)}}}function collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,fieldMap1,fieldMap2){for(var _i7=0,_Object$keys2=Object.keys(fieldMap1);_i7<_Object$keys2.length;_i7++){var responseName=_Object$keys2[_i7],fields2=fieldMap2[responseName];if(fields2)for(var fields1=fieldMap1[responseName],i=0;i<fields1.length;i++)for(var j=0;j<fields2.length;j++){var conflict=findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,responseName,fields1[i],fields2[j]);conflict&&conflicts.push(conflict)}}}function findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,responseName,field1,field2){var parentType1=field1[0],node1=field1[1],def1=field1[2],parentType2=field2[0],node2=field2[1],def2=field2[2],areMutuallyExclusive=parentFieldsAreMutuallyExclusive||parentType1!==parentType2&&isObjectType(parentType1)&&isObjectType(parentType2);if(!areMutuallyExclusive){var _node1$arguments,_node2$arguments,name1=node1.name.value,name2=node2.name.value;if(name1!==name2)return[[responseName,'"'.concat(name1,'" and "').concat(name2,'" are different fields')],[node1],[node2]];var args1=(_node1$arguments=node1.arguments)!==null&&_node1$arguments!==void 0?_node1$arguments:[],args2=(_node2$arguments=node2.arguments)!==null&&_node2$arguments!==void 0?_node2$arguments:[];if(!sameArguments(args1,args2))return[[responseName,"they have differing arguments"],[node1],[node2]]}var type1=def1?.type,type2=def2?.type;if(type1&&type2&&doTypesConflict(type1,type2))return[[responseName,'they return conflicting types "'.concat((0,inspect.Z)(type1),'" and "').concat((0,inspect.Z)(type2),'"')],[node1],[node2]];var selectionSet1=node1.selectionSet,selectionSet2=node2.selectionSet;if(selectionSet1&&selectionSet2){var conflicts=findConflictsBetweenSubSelectionSets(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,getNamedType(type1),selectionSet1,getNamedType(type2),selectionSet2);return subfieldConflicts(conflicts,responseName,node1,node2)}}function sameArguments(arguments1,arguments2){return arguments1.length!==arguments2.length?!1:arguments1.every(function(argument1){var argument2=polyfills_find(arguments2,function(argument){return argument.name.value===argument1.name.value});return argument2?sameValue(argument1.value,argument2.value):!1})}function sameValue(value1,value2){return(0,printer.print)(value1)===(0,printer.print)(value2)}function doTypesConflict(type1,type2){return isListType(type1)?isListType(type2)?doTypesConflict(type1.ofType,type2.ofType):!0:isListType(type2)?!0:isNonNullType(type1)?isNonNullType(type2)?doTypesConflict(type1.ofType,type2.ofType):!0:isNonNullType(type2)?!0:isLeafType(type1)||isLeafType(type2)?type1!==type2:!1}function getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType,selectionSet){var cached=cachedFieldsAndFragmentNames.get(selectionSet);if(!cached){var nodeAndDefs=Object.create(null),fragmentNames=Object.create(null);_collectFieldsAndFragmentNames(context,parentType,selectionSet,nodeAndDefs,fragmentNames),cached=[nodeAndDefs,Object.keys(fragmentNames)],cachedFieldsAndFragmentNames.set(selectionSet,cached)}return cached}function getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment){var cached=cachedFieldsAndFragmentNames.get(fragment.selectionSet);if(cached)return cached;var fragmentType=typeFromAST(context.getSchema(),fragment.typeCondition);return getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragmentType,fragment.selectionSet)}function _collectFieldsAndFragmentNames(context,parentType,selectionSet,nodeAndDefs,fragmentNames){for(var _i9=0,_selectionSet$selecti2=selectionSet.selections;_i9<_selectionSet$selecti2.length;_i9++){var selection=_selectionSet$selecti2[_i9];switch(selection.kind){case kinds.h.FIELD:{var fieldName=selection.name.value,fieldDef=void 0;(isObjectType(parentType)||isInterfaceType(parentType))&&(fieldDef=parentType.getFields()[fieldName]);var responseName=selection.alias?selection.alias.value:fieldName;nodeAndDefs[responseName]||(nodeAndDefs[responseName]=[]),nodeAndDefs[responseName].push([parentType,selection,fieldDef]);break}case kinds.h.FRAGMENT_SPREAD:fragmentNames[selection.name.value]=!0;break;case kinds.h.INLINE_FRAGMENT:{var typeCondition=selection.typeCondition,inlineFragmentType=typeCondition?typeFromAST(context.getSchema(),typeCondition):parentType;_collectFieldsAndFragmentNames(context,inlineFragmentType,selection.selectionSet,nodeAndDefs,fragmentNames);break}}}}function subfieldConflicts(conflicts,responseName,node1,node2){if(conflicts.length>0)return[[responseName,conflicts.map(function(_ref6){var reason=_ref6[0];return reason})],conflicts.reduce(function(allFields,_ref7){var fields1=_ref7[1];return allFields.concat(fields1)},[node1]),conflicts.reduce(function(allFields,_ref8){var fields2=_ref8[2];return allFields.concat(fields2)},[node2])]}var PairSet=function(){function PairSet2(){this._data=Object.create(null)}var _proto=PairSet2.prototype;return _proto.has=function(a,b,areMutuallyExclusive){var first=this._data[a],result=first&&first[b];return result===void 0?!1:areMutuallyExclusive===!1?result===!1:!0},_proto.add=function(a,b,areMutuallyExclusive){this._pairSetAdd(a,b,areMutuallyExclusive),this._pairSetAdd(b,a,areMutuallyExclusive)},_proto._pairSetAdd=function(a,b,areMutuallyExclusive){var map=this._data[a];map||(map=Object.create(null),this._data[a]=map),map[b]=areMutuallyExclusive},PairSet2}();function UniqueInputFieldNamesRule(context){var knownNameStack=[],knownNames=Object.create(null);return{ObjectValue:{enter:function(){knownNameStack.push(knownNames),knownNames=Object.create(null)},leave:function(){knownNames=knownNameStack.pop()}},ObjectField:function(node){var fieldName=node.name.value;knownNames[fieldName]?context.reportError(new GraphQLError._('There can be only one input field named "'.concat(fieldName,'".'),[knownNames[fieldName],node.name])):knownNames[fieldName]=node.name}}}function LoneSchemaDefinitionRule(context){var _ref,_ref2,_oldSchema$astNode,oldSchema=context.getSchema(),alreadyDefined=(_ref=(_ref2=(_oldSchema$astNode=oldSchema?.astNode)!==null&&_oldSchema$astNode!==void 0?_oldSchema$astNode:oldSchema?.getQueryType())!==null&&_ref2!==void 0?_ref2:oldSchema?.getMutationType())!==null&&_ref!==void 0?_ref:oldSchema?.getSubscriptionType(),schemaDefinitionsCount=0;return{SchemaDefinition:function(node){if(alreadyDefined){context.reportError(new GraphQLError._("Cannot define a new schema within a schema extension.",node));return}schemaDefinitionsCount>0&&context.reportError(new GraphQLError._("Must provide only one schema definition.",node)),++schemaDefinitionsCount}}}function UniqueOperationTypesRule(context){var schema=context.getSchema(),definedOperationTypes=Object.create(null),existingOperationTypes=schema?{query:schema.getQueryType(),mutation:schema.getMutationType(),subscription:schema.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(node){for(var _node$operationTypes,operationTypesNodes=(_node$operationTypes=node.operationTypes)!==null&&_node$operationTypes!==void 0?_node$operationTypes:[],_i2=0;_i2<operationTypesNodes.length;_i2++){var operationType=operationTypesNodes[_i2],operation=operationType.operation,alreadyDefinedOperationType=definedOperationTypes[operation];existingOperationTypes[operation]?context.reportError(new GraphQLError._("Type for ".concat(operation," already defined in the schema. It cannot be redefined."),operationType)):alreadyDefinedOperationType?context.reportError(new GraphQLError._("There can be only one ".concat(operation," type in schema."),[alreadyDefinedOperationType,operationType])):definedOperationTypes[operation]=operationType}return!1}}function UniqueTypeNamesRule(context){var knownTypeNames=Object.create(null),schema=context.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(node){var typeName=node.name.value;if(schema!=null&&schema.getType(typeName)){context.reportError(new GraphQLError._('Type "'.concat(typeName,'" already exists in the schema. It cannot also be defined in this type definition.'),node.name));return}return knownTypeNames[typeName]?context.reportError(new GraphQLError._('There can be only one type named "'.concat(typeName,'".'),[knownTypeNames[typeName],node.name])):knownTypeNames[typeName]=node.name,!1}}function UniqueEnumValueNamesRule(context){var schema=context.getSchema(),existingTypeMap=schema?schema.getTypeMap():Object.create(null),knownValueNames=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(node){var _node$values,typeName=node.name.value;knownValueNames[typeName]||(knownValueNames[typeName]=Object.create(null));for(var valueNodes=(_node$values=node.values)!==null&&_node$values!==void 0?_node$values:[],valueNames=knownValueNames[typeName],_i2=0;_i2<valueNodes.length;_i2++){var valueDef=valueNodes[_i2],valueName=valueDef.name.value,existingType=existingTypeMap[typeName];isEnumType(existingType)&&existingType.getValue(valueName)?context.reportError(new GraphQLError._('Enum value "'.concat(typeName,".").concat(valueName,'" already exists in the schema. It cannot also be defined in this type extension.'),valueDef.name)):valueNames[valueName]?context.reportError(new GraphQLError._('Enum value "'.concat(typeName,".").concat(valueName,'" can only be defined once.'),[valueNames[valueName],valueDef.name])):valueNames[valueName]=valueDef.name}return!1}}function UniqueFieldDefinitionNamesRule(context){var schema=context.getSchema(),existingTypeMap=schema?schema.getTypeMap():Object.create(null),knownFieldNames=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(node){var _node$fields,typeName=node.name.value;knownFieldNames[typeName]||(knownFieldNames[typeName]=Object.create(null));for(var fieldNodes=(_node$fields=node.fields)!==null&&_node$fields!==void 0?_node$fields:[],fieldNames=knownFieldNames[typeName],_i2=0;_i2<fieldNodes.length;_i2++){var fieldDef=fieldNodes[_i2],fieldName=fieldDef.name.value;hasField(existingTypeMap[typeName],fieldName)?context.reportError(new GraphQLError._('Field "'.concat(typeName,".").concat(fieldName,'" already exists in the schema. It cannot also be defined in this type extension.'),fieldDef.name)):fieldNames[fieldName]?context.reportError(new GraphQLError._('Field "'.concat(typeName,".").concat(fieldName,'" can only be defined once.'),[fieldNames[fieldName],fieldDef.name])):fieldNames[fieldName]=fieldDef.name}return!1}}function hasField(type,fieldName){return isObjectType(type)||isInterfaceType(type)||isInputObjectType(type)?type.getFields()[fieldName]!=null:!1}function UniqueDirectiveNamesRule(context){var knownDirectiveNames=Object.create(null),schema=context.getSchema();return{DirectiveDefinition:function(node){var directiveName=node.name.value;if(schema!=null&&schema.getDirective(directiveName)){context.reportError(new GraphQLError._('Directive "@'.concat(directiveName,'" already exists in the schema. It cannot be redefined.'),node.name));return}return knownDirectiveNames[directiveName]?context.reportError(new GraphQLError._('There can be only one directive named "@'.concat(directiveName,'".'),[knownDirectiveNames[directiveName],node.name])):knownDirectiveNames[directiveName]=node.name,!1}}}var _defKindToExtKind;function PossibleTypeExtensionsRule_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function PossibleTypeExtensionsRule(context){for(var schema=context.getSchema(),definedTypes=Object.create(null),_i2=0,_context$getDocument$2=context.getDocument().definitions;_i2<_context$getDocument$2.length;_i2++){var def=_context$getDocument$2[_i2];isTypeDefinitionNode(def)&&(definedTypes[def.name.value]=def)}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(node){var typeName=node.name.value,defNode=definedTypes[typeName],existingType=schema?.getType(typeName),expectedKind;if(defNode?expectedKind=defKindToExtKind[defNode.kind]:existingType&&(expectedKind=typeToExtKind(existingType)),expectedKind){if(expectedKind!==node.kind){var kindStr=extensionKindToTypeName(node.kind);context.reportError(new GraphQLError._("Cannot extend non-".concat(kindStr,' type "').concat(typeName,'".'),defNode?[defNode,node]:node))}}else{var allTypeNames=Object.keys(definedTypes);schema&&(allTypeNames=allTypeNames.concat(Object.keys(schema.getTypeMap())));var suggestedTypes=suggestionList(typeName,allTypeNames);context.reportError(new GraphQLError._('Cannot extend type "'.concat(typeName,'" because it is not defined.')+didYouMean(suggestedTypes),node.name))}}}var defKindToExtKind=(_defKindToExtKind={},PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.SCALAR_TYPE_DEFINITION,kinds.h.SCALAR_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.OBJECT_TYPE_DEFINITION,kinds.h.OBJECT_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.INTERFACE_TYPE_DEFINITION,kinds.h.INTERFACE_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.UNION_TYPE_DEFINITION,kinds.h.UNION_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.ENUM_TYPE_DEFINITION,kinds.h.ENUM_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.INPUT_OBJECT_TYPE_DEFINITION,kinds.h.INPUT_OBJECT_TYPE_EXTENSION),_defKindToExtKind);function typeToExtKind(type){if(isScalarType(type))return kinds.h.SCALAR_TYPE_EXTENSION;if(isObjectType(type))return kinds.h.OBJECT_TYPE_EXTENSION;if(isInterfaceType(type))return kinds.h.INTERFACE_TYPE_EXTENSION;if(isUnionType(type))return kinds.h.UNION_TYPE_EXTENSION;if(isEnumType(type))return kinds.h.ENUM_TYPE_EXTENSION;if(isInputObjectType(type))return kinds.h.INPUT_OBJECT_TYPE_EXTENSION;(0,invariant.Z)(0,"Unexpected type: "+(0,inspect.Z)(type))}function extensionKindToTypeName(kind){switch(kind){case kinds.h.SCALAR_TYPE_EXTENSION:return"scalar";case kinds.h.OBJECT_TYPE_EXTENSION:return"object";case kinds.h.INTERFACE_TYPE_EXTENSION:return"interface";case kinds.h.UNION_TYPE_EXTENSION:return"union";case kinds.h.ENUM_TYPE_EXTENSION:return"enum";case kinds.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,invariant.Z)(0,"Unexpected kind: "+(0,inspect.Z)(kind))}var specifiedRules=Object.freeze([ExecutableDefinitionsRule,UniqueOperationNamesRule,LoneAnonymousOperationRule,SingleFieldSubscriptionsRule,KnownTypeNamesRule,FragmentsOnCompositeTypesRule,VariablesAreInputTypesRule,ScalarLeafsRule,FieldsOnCorrectTypeRule,UniqueFragmentNamesRule,KnownFragmentNamesRule,NoUnusedFragmentsRule,PossibleFragmentSpreadsRule,NoFragmentCyclesRule,UniqueVariableNamesRule,NoUndefinedVariablesRule,NoUnusedVariablesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,KnownArgumentNamesRule,UniqueArgumentNamesRule,ValuesOfCorrectTypeRule,ProvidedRequiredArgumentsRule,VariablesInAllowedPositionRule,OverlappingFieldsCanBeMergedRule,UniqueInputFieldNamesRule]),specifiedSDLRules=Object.freeze([LoneSchemaDefinitionRule,UniqueOperationTypesRule,UniqueTypeNamesRule,UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule,UniqueDirectiveNamesRule,KnownTypeNamesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,PossibleTypeExtensionsRule,KnownArgumentNamesOnDirectivesRule,UniqueArgumentNamesRule,UniqueInputFieldNamesRule,ProvidedRequiredArgumentsOnDirectivesRule]);function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var ASTValidationContext=function(){function ASTValidationContext2(ast2,onError){this._ast=ast2,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=onError}var _proto=ASTValidationContext2.prototype;return _proto.reportError=function(error){this._onError(error)},_proto.getDocument=function(){return this._ast},_proto.getFragment=function(name){var fragments=this._fragments;return fragments||(this._fragments=fragments=this.getDocument().definitions.reduce(function(frags,statement){return statement.kind===kinds.h.FRAGMENT_DEFINITION&&(frags[statement.name.value]=statement),frags},Object.create(null))),fragments[name]},_proto.getFragmentSpreads=function(node){var spreads=this._fragmentSpreads.get(node);if(!spreads){spreads=[];for(var setsToVisit=[node];setsToVisit.length!==0;)for(var set=setsToVisit.pop(),_i2=0,_set$selections2=set.selections;_i2<_set$selections2.length;_i2++){var selection=_set$selections2[_i2];selection.kind===kinds.h.FRAGMENT_SPREAD?spreads.push(selection):selection.selectionSet&&setsToVisit.push(selection.selectionSet)}this._fragmentSpreads.set(node,spreads)}return spreads},_proto.getRecursivelyReferencedFragments=function(operation){var fragments=this._recursivelyReferencedFragments.get(operation);if(!fragments){fragments=[];for(var collectedNames=Object.create(null),nodesToVisit=[operation.selectionSet];nodesToVisit.length!==0;)for(var node=nodesToVisit.pop(),_i4=0,_this$getFragmentSpre2=this.getFragmentSpreads(node);_i4<_this$getFragmentSpre2.length;_i4++){var spread=_this$getFragmentSpre2[_i4],fragName=spread.name.value;if(collectedNames[fragName]!==!0){collectedNames[fragName]=!0;var fragment=this.getFragment(fragName);fragment&&(fragments.push(fragment),nodesToVisit.push(fragment.selectionSet))}}this._recursivelyReferencedFragments.set(operation,fragments)}return fragments},ASTValidationContext2}(),SDLValidationContext=function(_ASTValidationContext){_inheritsLoose(SDLValidationContext2,_ASTValidationContext);function SDLValidationContext2(ast2,schema,onError){var _this;return _this=_ASTValidationContext.call(this,ast2,onError)||this,_this._schema=schema,_this}var _proto2=SDLValidationContext2.prototype;return _proto2.getSchema=function(){return this._schema},SDLValidationContext2}(ASTValidationContext),ValidationContext=function(_ASTValidationContext2){_inheritsLoose(ValidationContext2,_ASTValidationContext2);function ValidationContext2(schema,ast2,typeInfo,onError){var _this2;return _this2=_ASTValidationContext2.call(this,ast2,onError)||this,_this2._schema=schema,_this2._typeInfo=typeInfo,_this2._variableUsages=new Map,_this2._recursiveVariableUsages=new Map,_this2}var _proto3=ValidationContext2.prototype;return _proto3.getSchema=function(){return this._schema},_proto3.getVariableUsages=function(node){var usages=this._variableUsages.get(node);if(!usages){var newUsages=[],typeInfo=new TypeInfo(this._schema);(0,language_visitor.Vn)(node,visitWithTypeInfo(typeInfo,{VariableDefinition:function(){return!1},Variable:function(variable){newUsages.push({node:variable,type:typeInfo.getInputType(),defaultValue:typeInfo.getDefaultValue()})}})),usages=newUsages,this._variableUsages.set(node,usages)}return usages},_proto3.getRecursiveVariableUsages=function(operation){var usages=this._recursiveVariableUsages.get(operation);if(!usages){usages=this.getVariableUsages(operation);for(var _i6=0,_this$getRecursivelyR2=this.getRecursivelyReferencedFragments(operation);_i6<_this$getRecursivelyR2.length;_i6++){var frag=_this$getRecursivelyR2[_i6];usages=usages.concat(this.getVariableUsages(frag))}this._recursiveVariableUsages.set(operation,usages)}return usages},_proto3.getType=function(){return this._typeInfo.getType()},_proto3.getParentType=function(){return this._typeInfo.getParentType()},_proto3.getInputType=function(){return this._typeInfo.getInputType()},_proto3.getParentInputType=function(){return this._typeInfo.getParentInputType()},_proto3.getFieldDef=function(){return this._typeInfo.getFieldDef()},_proto3.getDirective=function(){return this._typeInfo.getDirective()},_proto3.getArgument=function(){return this._typeInfo.getArgument()},_proto3.getEnumValue=function(){return this._typeInfo.getEnumValue()},ValidationContext2}(ASTValidationContext);function validate(schema,documentAST){var rules=arguments.length>2&&arguments[2]!==void 0?arguments[2]:specifiedRules,typeInfo=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new TypeInfo(schema),options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};documentAST||(0,devAssert.Z)(0,"Must provide document."),assertValidSchema(schema);var abortObj=Object.freeze({}),errors=[],context=new ValidationContext(schema,documentAST,typeInfo,function(error){if(options.maxErrors!=null&&errors.length>=options.maxErrors)throw errors.push(new GraphQLError._("Too many validation errors, error limit reached. Validation aborted.")),abortObj;errors.push(error)}),visitor=(0,language_visitor.j1)(rules.map(function(rule){return rule(context)}));try{(0,language_visitor.Vn)(documentAST,visitWithTypeInfo(typeInfo,visitor))}catch(e){if(e!==abortObj)throw e}return errors}function validateSDL(documentAST,schemaToExtend){var rules=arguments.length>2&&arguments[2]!==void 0?arguments[2]:specifiedSDLRules,errors=[],context=new SDLValidationContext(documentAST,schemaToExtend,function(error){errors.push(error)}),visitors=rules.map(function(rule){return rule(context)});return(0,language_visitor.Vn)(documentAST,(0,language_visitor.j1)(visitors)),errors}function assertValidSDL(documentAST){var errors=validateSDL(documentAST);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
105
|
+
`))}var SchemaValidationContext=function(){function SchemaValidationContext2(schema){this._errors=[],this.schema=schema}var _proto=SchemaValidationContext2.prototype;return _proto.reportError=function(message,nodes){var _nodes=Array.isArray(nodes)?nodes.filter(Boolean):nodes;this.addError(new GraphQLError._(message,_nodes))},_proto.addError=function(error){this._errors.push(error)},_proto.getErrors=function(){return this._errors},SchemaValidationContext2}();function validateRootTypes(context){var schema=context.schema,queryType=schema.getQueryType();if(!queryType)context.reportError("Query root type must be provided.",schema.astNode);else if(!isObjectType(queryType)){var _getOperationTypeNode;context.reportError("Query root type must be Object type, it cannot be ".concat((0,inspect.Z)(queryType),"."),(_getOperationTypeNode=getOperationTypeNode(schema,"query"))!==null&&_getOperationTypeNode!==void 0?_getOperationTypeNode:queryType.astNode)}var mutationType=schema.getMutationType();if(mutationType&&!isObjectType(mutationType)){var _getOperationTypeNode2;context.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,inspect.Z)(mutationType),"."),(_getOperationTypeNode2=getOperationTypeNode(schema,"mutation"))!==null&&_getOperationTypeNode2!==void 0?_getOperationTypeNode2:mutationType.astNode)}var subscriptionType=schema.getSubscriptionType();if(subscriptionType&&!isObjectType(subscriptionType)){var _getOperationTypeNode3;context.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,inspect.Z)(subscriptionType),"."),(_getOperationTypeNode3=getOperationTypeNode(schema,"subscription"))!==null&&_getOperationTypeNode3!==void 0?_getOperationTypeNode3:subscriptionType.astNode)}}function getOperationTypeNode(schema,operation){for(var operationNodes=getAllSubNodes(schema,function(node2){return node2.operationTypes}),_i2=0;_i2<operationNodes.length;_i2++){var node=operationNodes[_i2];if(node.operation===operation)return node.type}}function validateDirectives(context){for(var _i4=0,_context$schema$getDi2=context.schema.getDirectives();_i4<_context$schema$getDi2.length;_i4++){var directive=_context$schema$getDi2[_i4];if(!isDirective(directive)){context.reportError("Expected directive but got: ".concat((0,inspect.Z)(directive),"."),directive?.astNode);continue}validateName(context,directive);for(var _i6=0,_directive$args2=directive.args;_i6<_directive$args2.length;_i6++){var arg=_directive$args2[_i6];if(validateName(context,arg),isInputType(arg.type)||context.reportError("The type of @".concat(directive.name,"(").concat(arg.name,":) must be Input Type ")+"but got: ".concat((0,inspect.Z)(arg.type),"."),arg.astNode),isRequiredArgument(arg)&&arg.deprecationReason!=null){var _arg$astNode;context.reportError("Required argument @".concat(directive.name,"(").concat(arg.name,":) cannot be deprecated."),[getDeprecatedDirectiveNode(arg.astNode),(_arg$astNode=arg.astNode)===null||_arg$astNode===void 0?void 0:_arg$astNode.type])}}}}function validateName(context,node){var error=isValidNameError(node.name);error&&context.addError(locatedError(error,node.astNode))}function validateTypes(context){for(var validateInputObjectCircularRefs=createInputObjectCircularRefsValidator(context),typeMap=context.schema.getTypeMap(),_i8=0,_objectValues2=polyfills_objectValues(typeMap);_i8<_objectValues2.length;_i8++){var type=_objectValues2[_i8];if(!isNamedType(type)){context.reportError("Expected GraphQL named type but got: ".concat((0,inspect.Z)(type),"."),type.astNode);continue}isIntrospectionType(type)||validateName(context,type),isObjectType(type)||isInterfaceType(type)?(validateFields(context,type),validateInterfaces(context,type)):isUnionType(type)?validateUnionMembers(context,type):isEnumType(type)?validateEnumValues(context,type):isInputObjectType(type)&&(validateInputFields(context,type),validateInputObjectCircularRefs(type))}}function validateFields(context,type){var fields=polyfills_objectValues(type.getFields());fields.length===0&&context.reportError("Type ".concat(type.name," must define one or more fields."),getAllNodes(type));for(var _i10=0;_i10<fields.length;_i10++){var field=fields[_i10];if(validateName(context,field),!isOutputType(field.type)){var _field$astNode;context.reportError("The type of ".concat(type.name,".").concat(field.name," must be Output Type ")+"but got: ".concat((0,inspect.Z)(field.type),"."),(_field$astNode=field.astNode)===null||_field$astNode===void 0?void 0:_field$astNode.type)}for(var _i12=0,_field$args2=field.args;_i12<_field$args2.length;_i12++){var arg=_field$args2[_i12],argName=arg.name;if(validateName(context,arg),!isInputType(arg.type)){var _arg$astNode2;context.reportError("The type of ".concat(type.name,".").concat(field.name,"(").concat(argName,":) must be Input ")+"Type but got: ".concat((0,inspect.Z)(arg.type),"."),(_arg$astNode2=arg.astNode)===null||_arg$astNode2===void 0?void 0:_arg$astNode2.type)}if(isRequiredArgument(arg)&&arg.deprecationReason!=null){var _arg$astNode3;context.reportError("Required argument ".concat(type.name,".").concat(field.name,"(").concat(argName,":) cannot be deprecated."),[getDeprecatedDirectiveNode(arg.astNode),(_arg$astNode3=arg.astNode)===null||_arg$astNode3===void 0?void 0:_arg$astNode3.type])}}}}function validateInterfaces(context,type){for(var ifaceTypeNames=Object.create(null),_i14=0,_type$getInterfaces2=type.getInterfaces();_i14<_type$getInterfaces2.length;_i14++){var iface=_type$getInterfaces2[_i14];if(!isInterfaceType(iface)){context.reportError("Type ".concat((0,inspect.Z)(type)," must only implement Interface types, ")+"it cannot implement ".concat((0,inspect.Z)(iface),"."),getAllImplementsInterfaceNodes(type,iface));continue}if(type===iface){context.reportError("Type ".concat(type.name," cannot implement itself because it would create a circular reference."),getAllImplementsInterfaceNodes(type,iface));continue}if(ifaceTypeNames[iface.name]){context.reportError("Type ".concat(type.name," can only implement ").concat(iface.name," once."),getAllImplementsInterfaceNodes(type,iface));continue}ifaceTypeNames[iface.name]=!0,validateTypeImplementsAncestors(context,type,iface),validateTypeImplementsInterface(context,type,iface)}}function validateTypeImplementsInterface(context,type,iface){for(var typeFieldMap=type.getFields(),_i16=0,_objectValues4=polyfills_objectValues(iface.getFields());_i16<_objectValues4.length;_i16++){var ifaceField=_objectValues4[_i16],fieldName=ifaceField.name,typeField=typeFieldMap[fieldName];if(!typeField){context.reportError("Interface field ".concat(iface.name,".").concat(fieldName," expected but ").concat(type.name," does not provide it."),[ifaceField.astNode].concat(getAllNodes(type)));continue}if(!isTypeSubTypeOf(context.schema,typeField.type,ifaceField.type)){var _ifaceField$astNode,_typeField$astNode;context.reportError("Interface field ".concat(iface.name,".").concat(fieldName," expects type ")+"".concat((0,inspect.Z)(ifaceField.type)," but ").concat(type.name,".").concat(fieldName," ")+"is type ".concat((0,inspect.Z)(typeField.type),"."),[(_ifaceField$astNode=ifaceField.astNode)===null||_ifaceField$astNode===void 0?void 0:_ifaceField$astNode.type,(_typeField$astNode=typeField.astNode)===null||_typeField$astNode===void 0?void 0:_typeField$astNode.type])}for(var _loop=function(_i182,_ifaceField$args22){var ifaceArg=_ifaceField$args22[_i182],argName=ifaceArg.name,typeArg=polyfills_find(typeField.args,function(arg){return arg.name===argName});if(!typeArg)return context.reportError("Interface field argument ".concat(iface.name,".").concat(fieldName,"(").concat(argName,":) expected but ").concat(type.name,".").concat(fieldName," does not provide it."),[ifaceArg.astNode,typeField.astNode]),"continue";if(!isEqualType(ifaceArg.type,typeArg.type)){var _ifaceArg$astNode,_typeArg$astNode;context.reportError("Interface field argument ".concat(iface.name,".").concat(fieldName,"(").concat(argName,":) ")+"expects type ".concat((0,inspect.Z)(ifaceArg.type)," but ")+"".concat(type.name,".").concat(fieldName,"(").concat(argName,":) is type ")+"".concat((0,inspect.Z)(typeArg.type),"."),[(_ifaceArg$astNode=ifaceArg.astNode)===null||_ifaceArg$astNode===void 0?void 0:_ifaceArg$astNode.type,(_typeArg$astNode=typeArg.astNode)===null||_typeArg$astNode===void 0?void 0:_typeArg$astNode.type])}},_i18=0,_ifaceField$args2=ifaceField.args;_i18<_ifaceField$args2.length;_i18++)var _ret=_loop(_i18,_ifaceField$args2);for(var _loop2=function(_i202,_typeField$args22){var typeArg=_typeField$args22[_i202],argName=typeArg.name,ifaceArg=polyfills_find(ifaceField.args,function(arg){return arg.name===argName});!ifaceArg&&isRequiredArgument(typeArg)&&context.reportError("Object field ".concat(type.name,".").concat(fieldName," includes required argument ").concat(argName," that is missing from the Interface field ").concat(iface.name,".").concat(fieldName,"."),[typeArg.astNode,ifaceField.astNode])},_i20=0,_typeField$args2=typeField.args;_i20<_typeField$args2.length;_i20++)_loop2(_i20,_typeField$args2)}}function validateTypeImplementsAncestors(context,type,iface){for(var ifaceInterfaces=type.getInterfaces(),_i22=0,_iface$getInterfaces2=iface.getInterfaces();_i22<_iface$getInterfaces2.length;_i22++){var transitive=_iface$getInterfaces2[_i22];ifaceInterfaces.indexOf(transitive)===-1&&context.reportError(transitive===type?"Type ".concat(type.name," cannot implement ").concat(iface.name," because it would create a circular reference."):"Type ".concat(type.name," must implement ").concat(transitive.name," because it is implemented by ").concat(iface.name,"."),[].concat(getAllImplementsInterfaceNodes(iface,transitive),getAllImplementsInterfaceNodes(type,iface)))}}function validateUnionMembers(context,union){var memberTypes=union.getTypes();memberTypes.length===0&&context.reportError("Union type ".concat(union.name," must define one or more member types."),getAllNodes(union));for(var includedTypeNames=Object.create(null),_i24=0;_i24<memberTypes.length;_i24++){var memberType=memberTypes[_i24];if(includedTypeNames[memberType.name]){context.reportError("Union type ".concat(union.name," can only include type ").concat(memberType.name," once."),getUnionMemberTypeNodes(union,memberType.name));continue}includedTypeNames[memberType.name]=!0,isObjectType(memberType)||context.reportError("Union type ".concat(union.name," can only include Object types, ")+"it cannot include ".concat((0,inspect.Z)(memberType),"."),getUnionMemberTypeNodes(union,String(memberType)))}}function validateEnumValues(context,enumType){var enumValues=enumType.getValues();enumValues.length===0&&context.reportError("Enum type ".concat(enumType.name," must define one or more values."),getAllNodes(enumType));for(var _i26=0;_i26<enumValues.length;_i26++){var enumValue=enumValues[_i26],valueName=enumValue.name;validateName(context,enumValue),(valueName==="true"||valueName==="false"||valueName==="null")&&context.reportError("Enum type ".concat(enumType.name," cannot include value: ").concat(valueName,"."),enumValue.astNode)}}function validateInputFields(context,inputObj){var fields=polyfills_objectValues(inputObj.getFields());fields.length===0&&context.reportError("Input Object type ".concat(inputObj.name," must define one or more fields."),getAllNodes(inputObj));for(var _i28=0;_i28<fields.length;_i28++){var field=fields[_i28];if(validateName(context,field),!isInputType(field.type)){var _field$astNode2;context.reportError("The type of ".concat(inputObj.name,".").concat(field.name," must be Input Type ")+"but got: ".concat((0,inspect.Z)(field.type),"."),(_field$astNode2=field.astNode)===null||_field$astNode2===void 0?void 0:_field$astNode2.type)}if(isRequiredInputField(field)&&field.deprecationReason!=null){var _field$astNode3;context.reportError("Required input field ".concat(inputObj.name,".").concat(field.name," cannot be deprecated."),[getDeprecatedDirectiveNode(field.astNode),(_field$astNode3=field.astNode)===null||_field$astNode3===void 0?void 0:_field$astNode3.type])}}}function createInputObjectCircularRefsValidator(context){var visitedTypes=Object.create(null),fieldPath=[],fieldPathIndexByTypeName=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(inputObj){if(!visitedTypes[inputObj.name]){visitedTypes[inputObj.name]=!0,fieldPathIndexByTypeName[inputObj.name]=fieldPath.length;for(var fields=polyfills_objectValues(inputObj.getFields()),_i30=0;_i30<fields.length;_i30++){var field=fields[_i30];if(isNonNullType(field.type)&&isInputObjectType(field.type.ofType)){var fieldType=field.type.ofType,cycleIndex=fieldPathIndexByTypeName[fieldType.name];if(fieldPath.push(field),cycleIndex===void 0)detectCycleRecursive(fieldType);else{var cyclePath=fieldPath.slice(cycleIndex),pathStr=cyclePath.map(function(fieldObj){return fieldObj.name}).join(".");context.reportError('Cannot reference Input Object "'.concat(fieldType.name,'" within itself through a series of non-null fields: "').concat(pathStr,'".'),cyclePath.map(function(fieldObj){return fieldObj.astNode}))}fieldPath.pop()}}fieldPathIndexByTypeName[inputObj.name]=void 0}}}function getAllNodes(object){var astNode=object.astNode,extensionASTNodes=object.extensionASTNodes;return astNode?extensionASTNodes?[astNode].concat(extensionASTNodes):[astNode]:extensionASTNodes??[]}function getAllSubNodes(object,getter){for(var subNodes=[],_i32=0,_getAllNodes2=getAllNodes(object);_i32<_getAllNodes2.length;_i32++){var _getter,node=_getAllNodes2[_i32];subNodes=subNodes.concat((_getter=getter(node))!==null&&_getter!==void 0?_getter:[])}return subNodes}function getAllImplementsInterfaceNodes(type,iface){return getAllSubNodes(type,function(typeNode){return typeNode.interfaces}).filter(function(ifaceNode){return ifaceNode.name.value===iface.name})}function getUnionMemberTypeNodes(union,typeName){return getAllSubNodes(union,function(unionNode){return unionNode.types}).filter(function(typeNode){return typeNode.name.value===typeName})}function getDeprecatedDirectiveNode(definitionNode){var _definitionNode$direc;return definitionNode==null||(_definitionNode$direc=definitionNode.directives)===null||_definitionNode$direc===void 0?void 0:_definitionNode$direc.find(function(node){return node.name.value===GraphQLDeprecatedDirective.name})}var ast=__webpack_require__(8074);function typeFromAST(schema,typeNode){var innerType;if(typeNode.kind===kinds.h.LIST_TYPE)return innerType=typeFromAST(schema,typeNode.type),innerType&&new GraphQLList(innerType);if(typeNode.kind===kinds.h.NON_NULL_TYPE)return innerType=typeFromAST(schema,typeNode.type),innerType&&new GraphQLNonNull(innerType);if(typeNode.kind===kinds.h.NAMED_TYPE)return schema.getType(typeNode.name.value);(0,invariant.Z)(0,"Unexpected type node: "+(0,inspect.Z)(typeNode))}var TypeInfo=function(){function TypeInfo2(schema,getFieldDefFn,initialType){this._schema=schema,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=getFieldDefFn??getFieldDef,initialType&&(isInputType(initialType)&&this._inputTypeStack.push(initialType),isCompositeType(initialType)&&this._parentTypeStack.push(initialType),isOutputType(initialType)&&this._typeStack.push(initialType))}var _proto=TypeInfo2.prototype;return _proto.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},_proto.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},_proto.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},_proto.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},_proto.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},_proto.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},_proto.getDirective=function(){return this._directive},_proto.getArgument=function(){return this._argument},_proto.getEnumValue=function(){return this._enumValue},_proto.enter=function(node){var schema=this._schema;switch(node.kind){case kinds.h.SELECTION_SET:{var namedType=getNamedType(this.getType());this._parentTypeStack.push(isCompositeType(namedType)?namedType:void 0);break}case kinds.h.FIELD:{var parentType=this.getParentType(),fieldDef,fieldType;parentType&&(fieldDef=this._getFieldDef(schema,parentType,node),fieldDef&&(fieldType=fieldDef.type)),this._fieldDefStack.push(fieldDef),this._typeStack.push(isOutputType(fieldType)?fieldType:void 0);break}case kinds.h.DIRECTIVE:this._directive=schema.getDirective(node.name.value);break;case kinds.h.OPERATION_DEFINITION:{var type;switch(node.operation){case"query":type=schema.getQueryType();break;case"mutation":type=schema.getMutationType();break;case"subscription":type=schema.getSubscriptionType();break}this._typeStack.push(isObjectType(type)?type:void 0);break}case kinds.h.INLINE_FRAGMENT:case kinds.h.FRAGMENT_DEFINITION:{var typeConditionAST=node.typeCondition,outputType=typeConditionAST?typeFromAST(schema,typeConditionAST):getNamedType(this.getType());this._typeStack.push(isOutputType(outputType)?outputType:void 0);break}case kinds.h.VARIABLE_DEFINITION:{var inputType=typeFromAST(schema,node.type);this._inputTypeStack.push(isInputType(inputType)?inputType:void 0);break}case kinds.h.ARGUMENT:{var _this$getDirective,argDef,argType,fieldOrDirective=(_this$getDirective=this.getDirective())!==null&&_this$getDirective!==void 0?_this$getDirective:this.getFieldDef();fieldOrDirective&&(argDef=polyfills_find(fieldOrDirective.args,function(arg){return arg.name===node.name.value}),argDef&&(argType=argDef.type)),this._argument=argDef,this._defaultValueStack.push(argDef?argDef.defaultValue:void 0),this._inputTypeStack.push(isInputType(argType)?argType:void 0);break}case kinds.h.LIST:{var listType=getNullableType(this.getInputType()),itemType=isListType(listType)?listType.ofType:listType;this._defaultValueStack.push(void 0),this._inputTypeStack.push(isInputType(itemType)?itemType:void 0);break}case kinds.h.OBJECT_FIELD:{var objectType=getNamedType(this.getInputType()),inputFieldType,inputField;isInputObjectType(objectType)&&(inputField=objectType.getFields()[node.name.value],inputField&&(inputFieldType=inputField.type)),this._defaultValueStack.push(inputField?inputField.defaultValue:void 0),this._inputTypeStack.push(isInputType(inputFieldType)?inputFieldType:void 0);break}case kinds.h.ENUM:{var enumType=getNamedType(this.getInputType()),enumValue;isEnumType(enumType)&&(enumValue=enumType.getValue(node.value)),this._enumValue=enumValue;break}}},_proto.leave=function(node){switch(node.kind){case kinds.h.SELECTION_SET:this._parentTypeStack.pop();break;case kinds.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case kinds.h.DIRECTIVE:this._directive=null;break;case kinds.h.OPERATION_DEFINITION:case kinds.h.INLINE_FRAGMENT:case kinds.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case kinds.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case kinds.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case kinds.h.LIST:case kinds.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case kinds.h.ENUM:this._enumValue=null;break}},TypeInfo2}();function getFieldDef(schema,parentType,fieldNode){var name=fieldNode.name.value;if(name===SchemaMetaFieldDef.name&&schema.getQueryType()===parentType)return SchemaMetaFieldDef;if(name===TypeMetaFieldDef.name&&schema.getQueryType()===parentType)return TypeMetaFieldDef;if(name===TypeNameMetaFieldDef.name&&isCompositeType(parentType))return TypeNameMetaFieldDef;if(isObjectType(parentType)||isInterfaceType(parentType))return parentType.getFields()[name]}function visitWithTypeInfo(typeInfo,visitor){return{enter:function(node){typeInfo.enter(node);var fn=(0,language_visitor.CK)(visitor,node.kind,!1);if(fn){var result=fn.apply(visitor,arguments);return result!==void 0&&(typeInfo.leave(node),(0,ast.UG)(result)&&typeInfo.enter(result)),result}},leave:function(node){var fn=(0,language_visitor.CK)(visitor,node.kind,!0),result;return fn&&(result=fn.apply(visitor,arguments)),typeInfo.leave(node),result}}}var predicates=__webpack_require__(69050);function ExecutableDefinitionsRule(context){return{Document:function(node){for(var _i2=0,_node$definitions2=node.definitions;_i2<_node$definitions2.length;_i2++){var definition=_node$definitions2[_i2];if(!(0,predicates.Wk)(definition)){var defName=definition.kind===kinds.h.SCHEMA_DEFINITION||definition.kind===kinds.h.SCHEMA_EXTENSION?"schema":'"'+definition.name.value+'"';context.reportError(new GraphQLError._("The ".concat(defName," definition is not executable."),definition))}}return!1}}}function UniqueOperationNamesRule(context){var knownOperationNames=Object.create(null);return{OperationDefinition:function(node){var operationName=node.name;return operationName&&(knownOperationNames[operationName.value]?context.reportError(new GraphQLError._('There can be only one operation named "'.concat(operationName.value,'".'),[knownOperationNames[operationName.value],operationName])):knownOperationNames[operationName.value]=operationName),!1},FragmentDefinition:function(){return!1}}}function LoneAnonymousOperationRule(context){var operationCount=0;return{Document:function(node){operationCount=node.definitions.filter(function(definition){return definition.kind===kinds.h.OPERATION_DEFINITION}).length},OperationDefinition:function(node){!node.name&&operationCount>1&&context.reportError(new GraphQLError._("This anonymous operation must be the only defined operation.",node))}}}function SingleFieldSubscriptionsRule(context){return{OperationDefinition:function(node){node.operation==="subscription"&&node.selectionSet.selections.length!==1&&context.reportError(new GraphQLError._(node.name?'Subscription "'.concat(node.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",node.selectionSet.selections.slice(1)))}}}function KnownTypeNamesRule(context){for(var schema=context.getSchema(),existingTypesMap=schema?schema.getTypeMap():Object.create(null),definedTypes=Object.create(null),_i2=0,_context$getDocument$2=context.getDocument().definitions;_i2<_context$getDocument$2.length;_i2++){var def=_context$getDocument$2[_i2];(0,predicates.zT)(def)&&(definedTypes[def.name.value]=!0)}var typeNames=Object.keys(existingTypesMap).concat(Object.keys(definedTypes));return{NamedType:function(node,_1,parent2,_2,ancestors){var typeName=node.name.value;if(!existingTypesMap[typeName]&&!definedTypes[typeName]){var _ancestors$,definitionNode=(_ancestors$=ancestors[2])!==null&&_ancestors$!==void 0?_ancestors$:parent2,isSDL=definitionNode!=null&&isSDLNode(definitionNode);if(isSDL&&isStandardTypeName(typeName))return;var suggestedTypes=suggestionList(typeName,isSDL?standardTypeNames.concat(typeNames):typeNames);context.reportError(new GraphQLError._('Unknown type "'.concat(typeName,'".')+didYouMean(suggestedTypes),node))}}}}var standardTypeNames=[].concat(specifiedScalarTypes,introspectionTypes).map(function(type){return type.name});function isStandardTypeName(typeName){return standardTypeNames.indexOf(typeName)!==-1}function isSDLNode(value2){return!Array.isArray(value2)&&((0,predicates.G4)(value2)||(0,predicates.aU)(value2))}function FragmentsOnCompositeTypesRule(context){return{InlineFragment:function(node){var typeCondition=node.typeCondition;if(typeCondition){var type=typeFromAST(context.getSchema(),typeCondition);if(type&&!isCompositeType(type)){var typeStr=(0,printer.print)(typeCondition);context.reportError(new GraphQLError._('Fragment cannot condition on non composite type "'.concat(typeStr,'".'),typeCondition))}}},FragmentDefinition:function(node){var type=typeFromAST(context.getSchema(),node.typeCondition);if(type&&!isCompositeType(type)){var typeStr=(0,printer.print)(node.typeCondition);context.reportError(new GraphQLError._('Fragment "'.concat(node.name.value,'" cannot condition on non composite type "').concat(typeStr,'".'),node.typeCondition))}}}}function VariablesAreInputTypesRule(context){return{VariableDefinition:function(node){var type=typeFromAST(context.getSchema(),node.type);if(type&&!isInputType(type)){var variableName=node.variable.name.value,typeName=(0,printer.print)(node.type);context.reportError(new GraphQLError._('Variable "$'.concat(variableName,'" cannot be non-input type "').concat(typeName,'".'),node.type))}}}}function ScalarLeafsRule(context){return{Field:function(node){var type=context.getType(),selectionSet=node.selectionSet;if(type){if(isLeafType(getNamedType(type))){if(selectionSet){var fieldName=node.name.value,typeStr=(0,inspect.Z)(type);context.reportError(new GraphQLError._('Field "'.concat(fieldName,'" must not have a selection since type "').concat(typeStr,'" has no subfields.'),selectionSet))}}else if(!selectionSet){var _fieldName=node.name.value,_typeStr=(0,inspect.Z)(type);context.reportError(new GraphQLError._('Field "'.concat(_fieldName,'" of type "').concat(_typeStr,'" must have a selection of subfields. Did you mean "').concat(_fieldName,' { ... }"?'),node))}}}}}function FieldsOnCorrectTypeRule(context){return{Field:function(node){var type=context.getParentType();if(type){var fieldDef=context.getFieldDef();if(!fieldDef){var schema=context.getSchema(),fieldName=node.name.value,suggestion=didYouMean("to use an inline fragment on",getSuggestedTypeNames(schema,type,fieldName));suggestion===""&&(suggestion=didYouMean(getSuggestedFieldNames(type,fieldName))),context.reportError(new GraphQLError._('Cannot query field "'.concat(fieldName,'" on type "').concat(type.name,'".')+suggestion,node))}}}}}function getSuggestedTypeNames(schema,type,fieldName){if(!isAbstractType(type))return[];for(var suggestedTypes=new Set,usageCount=Object.create(null),_i2=0,_schema$getPossibleTy2=schema.getPossibleTypes(type);_i2<_schema$getPossibleTy2.length;_i2++){var possibleType=_schema$getPossibleTy2[_i2];if(!!possibleType.getFields()[fieldName]){suggestedTypes.add(possibleType),usageCount[possibleType.name]=1;for(var _i4=0,_possibleType$getInte2=possibleType.getInterfaces();_i4<_possibleType$getInte2.length;_i4++){var _usageCount$possibleI,possibleInterface=_possibleType$getInte2[_i4];!possibleInterface.getFields()[fieldName]||(suggestedTypes.add(possibleInterface),usageCount[possibleInterface.name]=((_usageCount$possibleI=usageCount[possibleInterface.name])!==null&&_usageCount$possibleI!==void 0?_usageCount$possibleI:0)+1)}}}return polyfills_arrayFrom(suggestedTypes).sort(function(typeA,typeB){var usageCountDiff=usageCount[typeB.name]-usageCount[typeA.name];return usageCountDiff!==0?usageCountDiff:isInterfaceType(typeA)&&schema.isSubType(typeA,typeB)?-1:isInterfaceType(typeB)&&schema.isSubType(typeB,typeA)?1:naturalCompare(typeA.name,typeB.name)}).map(function(x){return x.name})}function getSuggestedFieldNames(type,fieldName){if(isObjectType(type)||isInterfaceType(type)){var possibleFieldNames=Object.keys(type.getFields());return suggestionList(fieldName,possibleFieldNames)}return[]}function UniqueFragmentNamesRule(context){var knownFragmentNames=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(node){var fragmentName=node.name.value;return knownFragmentNames[fragmentName]?context.reportError(new GraphQLError._('There can be only one fragment named "'.concat(fragmentName,'".'),[knownFragmentNames[fragmentName],node.name])):knownFragmentNames[fragmentName]=node.name,!1}}}function KnownFragmentNamesRule(context){return{FragmentSpread:function(node){var fragmentName=node.name.value,fragment=context.getFragment(fragmentName);fragment||context.reportError(new GraphQLError._('Unknown fragment "'.concat(fragmentName,'".'),node.name))}}}function NoUnusedFragmentsRule(context){var operationDefs=[],fragmentDefs=[];return{OperationDefinition:function(node){return operationDefs.push(node),!1},FragmentDefinition:function(node){return fragmentDefs.push(node),!1},Document:{leave:function(){for(var fragmentNameUsed=Object.create(null),_i2=0;_i2<operationDefs.length;_i2++)for(var operation=operationDefs[_i2],_i4=0,_context$getRecursive2=context.getRecursivelyReferencedFragments(operation);_i4<_context$getRecursive2.length;_i4++){var fragment=_context$getRecursive2[_i4];fragmentNameUsed[fragment.name.value]=!0}for(var _i6=0;_i6<fragmentDefs.length;_i6++){var fragmentDef=fragmentDefs[_i6],fragName=fragmentDef.name.value;fragmentNameUsed[fragName]!==!0&&context.reportError(new GraphQLError._('Fragment "'.concat(fragName,'" is never used.'),fragmentDef))}}}}}function PossibleFragmentSpreadsRule(context){return{InlineFragment:function(node){var fragType=context.getType(),parentType=context.getParentType();if(isCompositeType(fragType)&&isCompositeType(parentType)&&!doTypesOverlap(context.getSchema(),fragType,parentType)){var parentTypeStr=(0,inspect.Z)(parentType),fragTypeStr=(0,inspect.Z)(fragType);context.reportError(new GraphQLError._('Fragment cannot be spread here as objects of type "'.concat(parentTypeStr,'" can never be of type "').concat(fragTypeStr,'".'),node))}},FragmentSpread:function(node){var fragName=node.name.value,fragType=getFragmentType(context,fragName),parentType=context.getParentType();if(fragType&&parentType&&!doTypesOverlap(context.getSchema(),fragType,parentType)){var parentTypeStr=(0,inspect.Z)(parentType),fragTypeStr=(0,inspect.Z)(fragType);context.reportError(new GraphQLError._('Fragment "'.concat(fragName,'" cannot be spread here as objects of type "').concat(parentTypeStr,'" can never be of type "').concat(fragTypeStr,'".'),node))}}}}function getFragmentType(context,name){var frag=context.getFragment(name);if(frag){var type=typeFromAST(context.getSchema(),frag.typeCondition);if(isCompositeType(type))return type}}function NoFragmentCyclesRule(context){var visitedFrags=Object.create(null),spreadPath=[],spreadPathIndexByName=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(node){return detectCycleRecursive(node),!1}};function detectCycleRecursive(fragment){if(!visitedFrags[fragment.name.value]){var fragmentName=fragment.name.value;visitedFrags[fragmentName]=!0;var spreadNodes=context.getFragmentSpreads(fragment.selectionSet);if(spreadNodes.length!==0){spreadPathIndexByName[fragmentName]=spreadPath.length;for(var _i2=0;_i2<spreadNodes.length;_i2++){var spreadNode=spreadNodes[_i2],spreadName=spreadNode.name.value,cycleIndex=spreadPathIndexByName[spreadName];if(spreadPath.push(spreadNode),cycleIndex===void 0){var spreadFragment=context.getFragment(spreadName);spreadFragment&&detectCycleRecursive(spreadFragment)}else{var cyclePath=spreadPath.slice(cycleIndex),viaPath=cyclePath.slice(0,-1).map(function(s){return'"'+s.name.value+'"'}).join(", ");context.reportError(new GraphQLError._('Cannot spread fragment "'.concat(spreadName,'" within itself')+(viaPath!==""?" via ".concat(viaPath,"."):"."),cyclePath))}spreadPath.pop()}spreadPathIndexByName[fragmentName]=void 0}}}}function UniqueVariableNamesRule(context){var knownVariableNames=Object.create(null);return{OperationDefinition:function(){knownVariableNames=Object.create(null)},VariableDefinition:function(node){var variableName=node.variable.name.value;knownVariableNames[variableName]?context.reportError(new GraphQLError._('There can be only one variable named "$'.concat(variableName,'".'),[knownVariableNames[variableName],node.variable.name])):knownVariableNames[variableName]=node.variable.name}}}function NoUndefinedVariablesRule(context){var variableNameDefined=Object.create(null);return{OperationDefinition:{enter:function(){variableNameDefined=Object.create(null)},leave:function(operation){for(var usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node,varName=node.name.value;variableNameDefined[varName]!==!0&&context.reportError(new GraphQLError._(operation.name?'Variable "$'.concat(varName,'" is not defined by operation "').concat(operation.name.value,'".'):'Variable "$'.concat(varName,'" is not defined.'),[node,operation]))}}},VariableDefinition:function(node){variableNameDefined[node.variable.name.value]=!0}}}function NoUnusedVariablesRule(context){var variableDefs=[];return{OperationDefinition:{enter:function(){variableDefs=[]},leave:function(operation){for(var variableNameUsed=Object.create(null),usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node;variableNameUsed[node.name.value]=!0}for(var _i4=0,_variableDefs2=variableDefs;_i4<_variableDefs2.length;_i4++){var variableDef=_variableDefs2[_i4],variableName=variableDef.variable.name.value;variableNameUsed[variableName]!==!0&&context.reportError(new GraphQLError._(operation.name?'Variable "$'.concat(variableName,'" is never used in operation "').concat(operation.name.value,'".'):'Variable "$'.concat(variableName,'" is never used.'),variableDef))}}},VariableDefinition:function(def){variableDefs.push(def)}}}function KnownDirectivesRule(context){for(var locationsMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];locationsMap[directive.name]=directive.locations}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];def.kind===kinds.h.DIRECTIVE_DEFINITION&&(locationsMap[def.name.value]=def.locations.map(function(name){return name.value}))}return{Directive:function(node,_key,_parent,_path,ancestors){var name=node.name.value,locations=locationsMap[name];if(!locations){context.reportError(new GraphQLError._('Unknown directive "@'.concat(name,'".'),node));return}var candidateLocation=getDirectiveLocationForASTPath(ancestors);candidateLocation&&locations.indexOf(candidateLocation)===-1&&context.reportError(new GraphQLError._('Directive "@'.concat(name,'" may not be used on ').concat(candidateLocation,"."),node))}}}function getDirectiveLocationForASTPath(ancestors){var appliedTo=ancestors[ancestors.length-1];switch(!Array.isArray(appliedTo)||(0,invariant.Z)(0),appliedTo.kind){case kinds.h.OPERATION_DEFINITION:return getDirectiveLocationForOperation(appliedTo.operation);case kinds.h.FIELD:return directiveLocation.B.FIELD;case kinds.h.FRAGMENT_SPREAD:return directiveLocation.B.FRAGMENT_SPREAD;case kinds.h.INLINE_FRAGMENT:return directiveLocation.B.INLINE_FRAGMENT;case kinds.h.FRAGMENT_DEFINITION:return directiveLocation.B.FRAGMENT_DEFINITION;case kinds.h.VARIABLE_DEFINITION:return directiveLocation.B.VARIABLE_DEFINITION;case kinds.h.SCHEMA_DEFINITION:case kinds.h.SCHEMA_EXTENSION:return directiveLocation.B.SCHEMA;case kinds.h.SCALAR_TYPE_DEFINITION:case kinds.h.SCALAR_TYPE_EXTENSION:return directiveLocation.B.SCALAR;case kinds.h.OBJECT_TYPE_DEFINITION:case kinds.h.OBJECT_TYPE_EXTENSION:return directiveLocation.B.OBJECT;case kinds.h.FIELD_DEFINITION:return directiveLocation.B.FIELD_DEFINITION;case kinds.h.INTERFACE_TYPE_DEFINITION:case kinds.h.INTERFACE_TYPE_EXTENSION:return directiveLocation.B.INTERFACE;case kinds.h.UNION_TYPE_DEFINITION:case kinds.h.UNION_TYPE_EXTENSION:return directiveLocation.B.UNION;case kinds.h.ENUM_TYPE_DEFINITION:case kinds.h.ENUM_TYPE_EXTENSION:return directiveLocation.B.ENUM;case kinds.h.ENUM_VALUE_DEFINITION:return directiveLocation.B.ENUM_VALUE;case kinds.h.INPUT_OBJECT_TYPE_DEFINITION:case kinds.h.INPUT_OBJECT_TYPE_EXTENSION:return directiveLocation.B.INPUT_OBJECT;case kinds.h.INPUT_VALUE_DEFINITION:{var parentNode=ancestors[ancestors.length-3];return parentNode.kind===kinds.h.INPUT_OBJECT_TYPE_DEFINITION?directiveLocation.B.INPUT_FIELD_DEFINITION:directiveLocation.B.ARGUMENT_DEFINITION}}}function getDirectiveLocationForOperation(operation){switch(operation){case"query":return directiveLocation.B.QUERY;case"mutation":return directiveLocation.B.MUTATION;case"subscription":return directiveLocation.B.SUBSCRIPTION}(0,invariant.Z)(0,"Unexpected operation: "+(0,inspect.Z)(operation))}function UniqueDirectivesPerLocationRule(context){for(var uniqueDirectiveMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];uniqueDirectiveMap[directive.name]=!directive.isRepeatable}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];def.kind===kinds.h.DIRECTIVE_DEFINITION&&(uniqueDirectiveMap[def.name.value]=!def.repeatable)}var schemaDirectives=Object.create(null),typeDirectivesMap=Object.create(null);return{enter:function(node){if(node.directives!=null){var seenDirectives;if(node.kind===kinds.h.SCHEMA_DEFINITION||node.kind===kinds.h.SCHEMA_EXTENSION)seenDirectives=schemaDirectives;else if((0,predicates.zT)(node)||(0,predicates.D$)(node)){var typeName=node.name.value;seenDirectives=typeDirectivesMap[typeName],seenDirectives===void 0&&(typeDirectivesMap[typeName]=seenDirectives=Object.create(null))}else seenDirectives=Object.create(null);for(var _i6=0,_node$directives2=node.directives;_i6<_node$directives2.length;_i6++){var _directive=_node$directives2[_i6],directiveName=_directive.name.value;uniqueDirectiveMap[directiveName]&&(seenDirectives[directiveName]?context.reportError(new GraphQLError._('The directive "@'.concat(directiveName,'" can only be used once at this location.'),[seenDirectives[directiveName],_directive])):seenDirectives[directiveName]=_directive)}}}}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function KnownArgumentNamesRule(context){return _objectSpread(_objectSpread({},KnownArgumentNamesOnDirectivesRule(context)),{},{Argument:function(argNode){var argDef=context.getArgument(),fieldDef=context.getFieldDef(),parentType=context.getParentType();if(!argDef&&fieldDef&&parentType){var argName=argNode.name.value,knownArgsNames=fieldDef.args.map(function(arg){return arg.name}),suggestions=suggestionList(argName,knownArgsNames);context.reportError(new GraphQLError._('Unknown argument "'.concat(argName,'" on field "').concat(parentType.name,".").concat(fieldDef.name,'".')+didYouMean(suggestions),argNode))}}})}function KnownArgumentNamesOnDirectivesRule(context){for(var directiveArgs=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];directiveArgs[directive.name]=directive.args.map(function(arg){return arg.name})}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];if(def.kind===kinds.h.DIRECTIVE_DEFINITION){var _def$arguments,argsNodes=(_def$arguments=def.arguments)!==null&&_def$arguments!==void 0?_def$arguments:[];directiveArgs[def.name.value]=argsNodes.map(function(arg){return arg.name.value})}}return{Directive:function(directiveNode){var directiveName=directiveNode.name.value,knownArgs=directiveArgs[directiveName];if(directiveNode.arguments&&knownArgs)for(var _i6=0,_directiveNode$argume2=directiveNode.arguments;_i6<_directiveNode$argume2.length;_i6++){var argNode=_directiveNode$argume2[_i6],argName=argNode.name.value;if(knownArgs.indexOf(argName)===-1){var suggestions=suggestionList(argName,knownArgs);context.reportError(new GraphQLError._('Unknown argument "'.concat(argName,'" on directive "@').concat(directiveName,'".')+didYouMean(suggestions),argNode))}}return!1}}}function UniqueArgumentNamesRule(context){var knownArgNames=Object.create(null);return{Field:function(){knownArgNames=Object.create(null)},Directive:function(){knownArgNames=Object.create(null)},Argument:function(node){var argName=node.name.value;return knownArgNames[argName]?context.reportError(new GraphQLError._('There can be only one argument named "'.concat(argName,'".'),[knownArgNames[argName],node.name])):knownArgNames[argName]=node.name,!1}}}function ValuesOfCorrectTypeRule(context){return{ListValue:function(node){var type=getNullableType(context.getParentInputType());if(!isListType(type))return isValidValueNode(context,node),!1},ObjectValue:function(node){var type=getNamedType(context.getInputType());if(!isInputObjectType(type))return isValidValueNode(context,node),!1;for(var fieldNodeMap=keyMap(node.fields,function(field){return field.name.value}),_i2=0,_objectValues2=polyfills_objectValues(type.getFields());_i2<_objectValues2.length;_i2++){var fieldDef=_objectValues2[_i2],fieldNode=fieldNodeMap[fieldDef.name];if(!fieldNode&&isRequiredInputField(fieldDef)){var typeStr=(0,inspect.Z)(fieldDef.type);context.reportError(new GraphQLError._('Field "'.concat(type.name,".").concat(fieldDef.name,'" of required type "').concat(typeStr,'" was not provided.'),node))}}},ObjectField:function(node){var parentType=getNamedType(context.getParentInputType()),fieldType=context.getInputType();if(!fieldType&&isInputObjectType(parentType)){var suggestions=suggestionList(node.name.value,Object.keys(parentType.getFields()));context.reportError(new GraphQLError._('Field "'.concat(node.name.value,'" is not defined by type "').concat(parentType.name,'".')+didYouMean(suggestions),node))}},NullValue:function(node){var type=context.getInputType();isNonNullType(type)&&context.reportError(new GraphQLError._('Expected value of type "'.concat((0,inspect.Z)(type),'", found ').concat((0,printer.print)(node),"."),node))},EnumValue:function(node){return isValidValueNode(context,node)},IntValue:function(node){return isValidValueNode(context,node)},FloatValue:function(node){return isValidValueNode(context,node)},StringValue:function(node){return isValidValueNode(context,node)},BooleanValue:function(node){return isValidValueNode(context,node)}}}function isValidValueNode(context,node){var locationType=context.getInputType();if(!!locationType){var type=getNamedType(locationType);if(!isLeafType(type)){var typeStr=(0,inspect.Z)(locationType);context.reportError(new GraphQLError._('Expected value of type "'.concat(typeStr,'", found ').concat((0,printer.print)(node),"."),node));return}try{var parseResult=type.parseLiteral(node,void 0);if(parseResult===void 0){var _typeStr=(0,inspect.Z)(locationType);context.reportError(new GraphQLError._('Expected value of type "'.concat(_typeStr,'", found ').concat((0,printer.print)(node),"."),node))}}catch(error){var _typeStr2=(0,inspect.Z)(locationType);error instanceof GraphQLError._?context.reportError(error):context.reportError(new GraphQLError._('Expected value of type "'.concat(_typeStr2,'", found ').concat((0,printer.print)(node),"; ")+error.message,node,void 0,void 0,void 0,error))}}}function ProvidedRequiredArgumentsRule_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function ProvidedRequiredArgumentsRule_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ProvidedRequiredArgumentsRule_ownKeys(Object(source),!0).forEach(function(key){ProvidedRequiredArgumentsRule_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ProvidedRequiredArgumentsRule_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function ProvidedRequiredArgumentsRule_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function ProvidedRequiredArgumentsRule(context){return ProvidedRequiredArgumentsRule_objectSpread(ProvidedRequiredArgumentsRule_objectSpread({},ProvidedRequiredArgumentsOnDirectivesRule(context)),{},{Field:{leave:function(fieldNode){var _fieldNode$arguments,fieldDef=context.getFieldDef();if(!fieldDef)return!1;for(var argNodes=(_fieldNode$arguments=fieldNode.arguments)!==null&&_fieldNode$arguments!==void 0?_fieldNode$arguments:[],argNodeMap=keyMap(argNodes,function(arg){return arg.name.value}),_i2=0,_fieldDef$args2=fieldDef.args;_i2<_fieldDef$args2.length;_i2++){var argDef=_fieldDef$args2[_i2],argNode=argNodeMap[argDef.name];if(!argNode&&isRequiredArgument(argDef)){var argTypeStr=(0,inspect.Z)(argDef.type);context.reportError(new GraphQLError._('Field "'.concat(fieldDef.name,'" argument "').concat(argDef.name,'" of type "').concat(argTypeStr,'" is required, but it was not provided.'),fieldNode))}}}}})}function ProvidedRequiredArgumentsOnDirectivesRule(context){for(var requiredArgsMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i4=0;_i4<definedDirectives.length;_i4++){var directive=definedDirectives[_i4];requiredArgsMap[directive.name]=keyMap(directive.args.filter(isRequiredArgument),function(arg){return arg.name})}for(var astDefinitions=context.getDocument().definitions,_i6=0;_i6<astDefinitions.length;_i6++){var def=astDefinitions[_i6];if(def.kind===kinds.h.DIRECTIVE_DEFINITION){var _def$arguments,argNodes=(_def$arguments=def.arguments)!==null&&_def$arguments!==void 0?_def$arguments:[];requiredArgsMap[def.name.value]=keyMap(argNodes.filter(isRequiredArgumentNode),function(arg){return arg.name.value})}}return{Directive:{leave:function(directiveNode){var directiveName=directiveNode.name.value,requiredArgs=requiredArgsMap[directiveName];if(requiredArgs)for(var _directiveNode$argume,_argNodes=(_directiveNode$argume=directiveNode.arguments)!==null&&_directiveNode$argume!==void 0?_directiveNode$argume:[],argNodeMap=keyMap(_argNodes,function(arg){return arg.name.value}),_i8=0,_Object$keys2=Object.keys(requiredArgs);_i8<_Object$keys2.length;_i8++){var argName=_Object$keys2[_i8];if(!argNodeMap[argName]){var argType=requiredArgs[argName].type,argTypeStr=isType(argType)?(0,inspect.Z)(argType):(0,printer.print)(argType);context.reportError(new GraphQLError._('Directive "@'.concat(directiveName,'" argument "').concat(argName,'" of type "').concat(argTypeStr,'" is required, but it was not provided.'),directiveNode))}}}}}}function isRequiredArgumentNode(arg){return arg.type.kind===kinds.h.NON_NULL_TYPE&&arg.defaultValue==null}function VariablesInAllowedPositionRule(context){var varDefMap=Object.create(null);return{OperationDefinition:{enter:function(){varDefMap=Object.create(null)},leave:function(operation){for(var usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node,type=_ref2.type,defaultValue=_ref2.defaultValue,varName=node.name.value,varDef=varDefMap[varName];if(varDef&&type){var schema=context.getSchema(),varType=typeFromAST(schema,varDef.type);if(varType&&!allowedVariableUsage(schema,varType,varDef.defaultValue,type,defaultValue)){var varTypeStr=(0,inspect.Z)(varType),typeStr=(0,inspect.Z)(type);context.reportError(new GraphQLError._('Variable "$'.concat(varName,'" of type "').concat(varTypeStr,'" used in position expecting type "').concat(typeStr,'".'),[varDef,node]))}}}}},VariableDefinition:function(node){varDefMap[node.variable.name.value]=node}}}function allowedVariableUsage(schema,varType,varDefaultValue,locationType,locationDefaultValue){if(isNonNullType(locationType)&&!isNonNullType(varType)){var hasNonNullVariableDefaultValue=varDefaultValue!=null&&varDefaultValue.kind!==kinds.h.NULL,hasLocationDefaultValue=locationDefaultValue!==void 0;if(!hasNonNullVariableDefaultValue&&!hasLocationDefaultValue)return!1;var nullableLocationType=locationType.ofType;return isTypeSubTypeOf(schema,varType,nullableLocationType)}return isTypeSubTypeOf(schema,varType,locationType)}function reasonMessage(reason){return Array.isArray(reason)?reason.map(function(_ref){var responseName=_ref[0],subReason=_ref[1];return'subfields "'.concat(responseName,'" conflict because ')+reasonMessage(subReason)}).join(" and "):reason}function OverlappingFieldsCanBeMergedRule(context){var comparedFragmentPairs=new PairSet,cachedFieldsAndFragmentNames=new Map;return{SelectionSet:function(selectionSet){for(var conflicts=findConflictsWithinSelectionSet(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,context.getParentType(),selectionSet),_i2=0;_i2<conflicts.length;_i2++){var _ref3=conflicts[_i2],_ref2$=_ref3[0],responseName=_ref2$[0],reason=_ref2$[1],fields1=_ref3[1],fields2=_ref3[2],reasonMsg=reasonMessage(reason);context.reportError(new GraphQLError._('Fields "'.concat(responseName,'" conflict because ').concat(reasonMsg,". Use different aliases on the fields to fetch both if this was intentional."),fields1.concat(fields2)))}}}}function findConflictsWithinSelectionSet(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentType,selectionSet){var conflicts=[],_getFieldsAndFragment=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType,selectionSet),fieldMap=_getFieldsAndFragment[0],fragmentNames=_getFieldsAndFragment[1];if(collectConflictsWithin(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,fieldMap),fragmentNames.length!==0)for(var i=0;i<fragmentNames.length;i++){collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,fieldMap,fragmentNames[i]);for(var j=i+1;j<fragmentNames.length;j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,fragmentNames[i],fragmentNames[j])}return conflicts}function collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fragmentName){var fragment=context.getFragment(fragmentName);if(!!fragment){var _getReferencedFieldsA=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment),fieldMap2=_getReferencedFieldsA[0],fragmentNames2=_getReferencedFieldsA[1];if(fieldMap!==fieldMap2){collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fieldMap2);for(var i=0;i<fragmentNames2.length;i++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fragmentNames2[i])}}}function collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentName1,fragmentName2){if(fragmentName1!==fragmentName2&&!comparedFragmentPairs.has(fragmentName1,fragmentName2,areMutuallyExclusive)){comparedFragmentPairs.add(fragmentName1,fragmentName2,areMutuallyExclusive);var fragment1=context.getFragment(fragmentName1),fragment2=context.getFragment(fragmentName2);if(!(!fragment1||!fragment2)){var _getReferencedFieldsA2=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment1),fieldMap1=_getReferencedFieldsA2[0],fragmentNames1=_getReferencedFieldsA2[1],_getReferencedFieldsA3=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment2),fieldMap2=_getReferencedFieldsA3[0],fragmentNames2=_getReferencedFieldsA3[1];collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fieldMap2);for(var j=0;j<fragmentNames2.length;j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentName1,fragmentNames2[j]);for(var i=0;i<fragmentNames1.length;i++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentNames1[i],fragmentName2)}}}function findConflictsBetweenSubSelectionSets(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,parentType1,selectionSet1,parentType2,selectionSet2){var conflicts=[],_getFieldsAndFragment2=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType1,selectionSet1),fieldMap1=_getFieldsAndFragment2[0],fragmentNames1=_getFieldsAndFragment2[1],_getFieldsAndFragment3=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType2,selectionSet2),fieldMap2=_getFieldsAndFragment3[0],fragmentNames2=_getFieldsAndFragment3[1];if(collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fieldMap2),fragmentNames2.length!==0)for(var j=0;j<fragmentNames2.length;j++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fragmentNames2[j]);if(fragmentNames1.length!==0)for(var i=0;i<fragmentNames1.length;i++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap2,fragmentNames1[i]);for(var _i3=0;_i3<fragmentNames1.length;_i3++)for(var _j=0;_j<fragmentNames2.length;_j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentNames1[_i3],fragmentNames2[_j]);return conflicts}function collectConflictsWithin(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,fieldMap){for(var _i5=0,_objectEntries2=polyfills_objectEntries(fieldMap);_i5<_objectEntries2.length;_i5++){var _ref5=_objectEntries2[_i5],responseName=_ref5[0],fields=_ref5[1];if(fields.length>1)for(var i=0;i<fields.length;i++)for(var j=i+1;j<fields.length;j++){var conflict=findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,responseName,fields[i],fields[j]);conflict&&conflicts.push(conflict)}}}function collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,fieldMap1,fieldMap2){for(var _i7=0,_Object$keys2=Object.keys(fieldMap1);_i7<_Object$keys2.length;_i7++){var responseName=_Object$keys2[_i7],fields2=fieldMap2[responseName];if(fields2)for(var fields1=fieldMap1[responseName],i=0;i<fields1.length;i++)for(var j=0;j<fields2.length;j++){var conflict=findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,responseName,fields1[i],fields2[j]);conflict&&conflicts.push(conflict)}}}function findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,responseName,field1,field2){var parentType1=field1[0],node1=field1[1],def1=field1[2],parentType2=field2[0],node2=field2[1],def2=field2[2],areMutuallyExclusive=parentFieldsAreMutuallyExclusive||parentType1!==parentType2&&isObjectType(parentType1)&&isObjectType(parentType2);if(!areMutuallyExclusive){var _node1$arguments,_node2$arguments,name1=node1.name.value,name2=node2.name.value;if(name1!==name2)return[[responseName,'"'.concat(name1,'" and "').concat(name2,'" are different fields')],[node1],[node2]];var args1=(_node1$arguments=node1.arguments)!==null&&_node1$arguments!==void 0?_node1$arguments:[],args2=(_node2$arguments=node2.arguments)!==null&&_node2$arguments!==void 0?_node2$arguments:[];if(!sameArguments(args1,args2))return[[responseName,"they have differing arguments"],[node1],[node2]]}var type1=def1?.type,type2=def2?.type;if(type1&&type2&&doTypesConflict(type1,type2))return[[responseName,'they return conflicting types "'.concat((0,inspect.Z)(type1),'" and "').concat((0,inspect.Z)(type2),'"')],[node1],[node2]];var selectionSet1=node1.selectionSet,selectionSet2=node2.selectionSet;if(selectionSet1&&selectionSet2){var conflicts=findConflictsBetweenSubSelectionSets(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,getNamedType(type1),selectionSet1,getNamedType(type2),selectionSet2);return subfieldConflicts(conflicts,responseName,node1,node2)}}function sameArguments(arguments1,arguments2){return arguments1.length!==arguments2.length?!1:arguments1.every(function(argument1){var argument2=polyfills_find(arguments2,function(argument){return argument.name.value===argument1.name.value});return argument2?sameValue(argument1.value,argument2.value):!1})}function sameValue(value1,value2){return(0,printer.print)(value1)===(0,printer.print)(value2)}function doTypesConflict(type1,type2){return isListType(type1)?isListType(type2)?doTypesConflict(type1.ofType,type2.ofType):!0:isListType(type2)?!0:isNonNullType(type1)?isNonNullType(type2)?doTypesConflict(type1.ofType,type2.ofType):!0:isNonNullType(type2)?!0:isLeafType(type1)||isLeafType(type2)?type1!==type2:!1}function getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType,selectionSet){var cached=cachedFieldsAndFragmentNames.get(selectionSet);if(!cached){var nodeAndDefs=Object.create(null),fragmentNames=Object.create(null);_collectFieldsAndFragmentNames(context,parentType,selectionSet,nodeAndDefs,fragmentNames),cached=[nodeAndDefs,Object.keys(fragmentNames)],cachedFieldsAndFragmentNames.set(selectionSet,cached)}return cached}function getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment){var cached=cachedFieldsAndFragmentNames.get(fragment.selectionSet);if(cached)return cached;var fragmentType=typeFromAST(context.getSchema(),fragment.typeCondition);return getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragmentType,fragment.selectionSet)}function _collectFieldsAndFragmentNames(context,parentType,selectionSet,nodeAndDefs,fragmentNames){for(var _i9=0,_selectionSet$selecti2=selectionSet.selections;_i9<_selectionSet$selecti2.length;_i9++){var selection=_selectionSet$selecti2[_i9];switch(selection.kind){case kinds.h.FIELD:{var fieldName=selection.name.value,fieldDef=void 0;(isObjectType(parentType)||isInterfaceType(parentType))&&(fieldDef=parentType.getFields()[fieldName]);var responseName=selection.alias?selection.alias.value:fieldName;nodeAndDefs[responseName]||(nodeAndDefs[responseName]=[]),nodeAndDefs[responseName].push([parentType,selection,fieldDef]);break}case kinds.h.FRAGMENT_SPREAD:fragmentNames[selection.name.value]=!0;break;case kinds.h.INLINE_FRAGMENT:{var typeCondition=selection.typeCondition,inlineFragmentType=typeCondition?typeFromAST(context.getSchema(),typeCondition):parentType;_collectFieldsAndFragmentNames(context,inlineFragmentType,selection.selectionSet,nodeAndDefs,fragmentNames);break}}}}function subfieldConflicts(conflicts,responseName,node1,node2){if(conflicts.length>0)return[[responseName,conflicts.map(function(_ref6){var reason=_ref6[0];return reason})],conflicts.reduce(function(allFields,_ref7){var fields1=_ref7[1];return allFields.concat(fields1)},[node1]),conflicts.reduce(function(allFields,_ref8){var fields2=_ref8[2];return allFields.concat(fields2)},[node2])]}var PairSet=function(){function PairSet2(){this._data=Object.create(null)}var _proto=PairSet2.prototype;return _proto.has=function(a,b,areMutuallyExclusive){var first=this._data[a],result=first&&first[b];return result===void 0?!1:areMutuallyExclusive===!1?result===!1:!0},_proto.add=function(a,b,areMutuallyExclusive){this._pairSetAdd(a,b,areMutuallyExclusive),this._pairSetAdd(b,a,areMutuallyExclusive)},_proto._pairSetAdd=function(a,b,areMutuallyExclusive){var map=this._data[a];map||(map=Object.create(null),this._data[a]=map),map[b]=areMutuallyExclusive},PairSet2}();function UniqueInputFieldNamesRule(context){var knownNameStack=[],knownNames=Object.create(null);return{ObjectValue:{enter:function(){knownNameStack.push(knownNames),knownNames=Object.create(null)},leave:function(){knownNames=knownNameStack.pop()}},ObjectField:function(node){var fieldName=node.name.value;knownNames[fieldName]?context.reportError(new GraphQLError._('There can be only one input field named "'.concat(fieldName,'".'),[knownNames[fieldName],node.name])):knownNames[fieldName]=node.name}}}function LoneSchemaDefinitionRule(context){var _ref,_ref2,_oldSchema$astNode,oldSchema=context.getSchema(),alreadyDefined=(_ref=(_ref2=(_oldSchema$astNode=oldSchema?.astNode)!==null&&_oldSchema$astNode!==void 0?_oldSchema$astNode:oldSchema?.getQueryType())!==null&&_ref2!==void 0?_ref2:oldSchema?.getMutationType())!==null&&_ref!==void 0?_ref:oldSchema?.getSubscriptionType(),schemaDefinitionsCount=0;return{SchemaDefinition:function(node){if(alreadyDefined){context.reportError(new GraphQLError._("Cannot define a new schema within a schema extension.",node));return}schemaDefinitionsCount>0&&context.reportError(new GraphQLError._("Must provide only one schema definition.",node)),++schemaDefinitionsCount}}}function UniqueOperationTypesRule(context){var schema=context.getSchema(),definedOperationTypes=Object.create(null),existingOperationTypes=schema?{query:schema.getQueryType(),mutation:schema.getMutationType(),subscription:schema.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(node){for(var _node$operationTypes,operationTypesNodes=(_node$operationTypes=node.operationTypes)!==null&&_node$operationTypes!==void 0?_node$operationTypes:[],_i2=0;_i2<operationTypesNodes.length;_i2++){var operationType=operationTypesNodes[_i2],operation=operationType.operation,alreadyDefinedOperationType=definedOperationTypes[operation];existingOperationTypes[operation]?context.reportError(new GraphQLError._("Type for ".concat(operation," already defined in the schema. It cannot be redefined."),operationType)):alreadyDefinedOperationType?context.reportError(new GraphQLError._("There can be only one ".concat(operation," type in schema."),[alreadyDefinedOperationType,operationType])):definedOperationTypes[operation]=operationType}return!1}}function UniqueTypeNamesRule(context){var knownTypeNames=Object.create(null),schema=context.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(node){var typeName=node.name.value;if(schema!=null&&schema.getType(typeName)){context.reportError(new GraphQLError._('Type "'.concat(typeName,'" already exists in the schema. It cannot also be defined in this type definition.'),node.name));return}return knownTypeNames[typeName]?context.reportError(new GraphQLError._('There can be only one type named "'.concat(typeName,'".'),[knownTypeNames[typeName],node.name])):knownTypeNames[typeName]=node.name,!1}}function UniqueEnumValueNamesRule(context){var schema=context.getSchema(),existingTypeMap=schema?schema.getTypeMap():Object.create(null),knownValueNames=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(node){var _node$values,typeName=node.name.value;knownValueNames[typeName]||(knownValueNames[typeName]=Object.create(null));for(var valueNodes=(_node$values=node.values)!==null&&_node$values!==void 0?_node$values:[],valueNames=knownValueNames[typeName],_i2=0;_i2<valueNodes.length;_i2++){var valueDef=valueNodes[_i2],valueName=valueDef.name.value,existingType=existingTypeMap[typeName];isEnumType(existingType)&&existingType.getValue(valueName)?context.reportError(new GraphQLError._('Enum value "'.concat(typeName,".").concat(valueName,'" already exists in the schema. It cannot also be defined in this type extension.'),valueDef.name)):valueNames[valueName]?context.reportError(new GraphQLError._('Enum value "'.concat(typeName,".").concat(valueName,'" can only be defined once.'),[valueNames[valueName],valueDef.name])):valueNames[valueName]=valueDef.name}return!1}}function UniqueFieldDefinitionNamesRule(context){var schema=context.getSchema(),existingTypeMap=schema?schema.getTypeMap():Object.create(null),knownFieldNames=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(node){var _node$fields,typeName=node.name.value;knownFieldNames[typeName]||(knownFieldNames[typeName]=Object.create(null));for(var fieldNodes=(_node$fields=node.fields)!==null&&_node$fields!==void 0?_node$fields:[],fieldNames=knownFieldNames[typeName],_i2=0;_i2<fieldNodes.length;_i2++){var fieldDef=fieldNodes[_i2],fieldName=fieldDef.name.value;hasField(existingTypeMap[typeName],fieldName)?context.reportError(new GraphQLError._('Field "'.concat(typeName,".").concat(fieldName,'" already exists in the schema. It cannot also be defined in this type extension.'),fieldDef.name)):fieldNames[fieldName]?context.reportError(new GraphQLError._('Field "'.concat(typeName,".").concat(fieldName,'" can only be defined once.'),[fieldNames[fieldName],fieldDef.name])):fieldNames[fieldName]=fieldDef.name}return!1}}function hasField(type,fieldName){return isObjectType(type)||isInterfaceType(type)||isInputObjectType(type)?type.getFields()[fieldName]!=null:!1}function UniqueDirectiveNamesRule(context){var knownDirectiveNames=Object.create(null),schema=context.getSchema();return{DirectiveDefinition:function(node){var directiveName=node.name.value;if(schema!=null&&schema.getDirective(directiveName)){context.reportError(new GraphQLError._('Directive "@'.concat(directiveName,'" already exists in the schema. It cannot be redefined.'),node.name));return}return knownDirectiveNames[directiveName]?context.reportError(new GraphQLError._('There can be only one directive named "@'.concat(directiveName,'".'),[knownDirectiveNames[directiveName],node.name])):knownDirectiveNames[directiveName]=node.name,!1}}}var _defKindToExtKind;function PossibleTypeExtensionsRule_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function PossibleTypeExtensionsRule(context){for(var schema=context.getSchema(),definedTypes=Object.create(null),_i2=0,_context$getDocument$2=context.getDocument().definitions;_i2<_context$getDocument$2.length;_i2++){var def=_context$getDocument$2[_i2];(0,predicates.zT)(def)&&(definedTypes[def.name.value]=def)}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(node){var typeName=node.name.value,defNode=definedTypes[typeName],existingType=schema?.getType(typeName),expectedKind;if(defNode?expectedKind=defKindToExtKind[defNode.kind]:existingType&&(expectedKind=typeToExtKind(existingType)),expectedKind){if(expectedKind!==node.kind){var kindStr=extensionKindToTypeName(node.kind);context.reportError(new GraphQLError._("Cannot extend non-".concat(kindStr,' type "').concat(typeName,'".'),defNode?[defNode,node]:node))}}else{var allTypeNames=Object.keys(definedTypes);schema&&(allTypeNames=allTypeNames.concat(Object.keys(schema.getTypeMap())));var suggestedTypes=suggestionList(typeName,allTypeNames);context.reportError(new GraphQLError._('Cannot extend type "'.concat(typeName,'" because it is not defined.')+didYouMean(suggestedTypes),node.name))}}}var defKindToExtKind=(_defKindToExtKind={},PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.SCALAR_TYPE_DEFINITION,kinds.h.SCALAR_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.OBJECT_TYPE_DEFINITION,kinds.h.OBJECT_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.INTERFACE_TYPE_DEFINITION,kinds.h.INTERFACE_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.UNION_TYPE_DEFINITION,kinds.h.UNION_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.ENUM_TYPE_DEFINITION,kinds.h.ENUM_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,kinds.h.INPUT_OBJECT_TYPE_DEFINITION,kinds.h.INPUT_OBJECT_TYPE_EXTENSION),_defKindToExtKind);function typeToExtKind(type){if(isScalarType(type))return kinds.h.SCALAR_TYPE_EXTENSION;if(isObjectType(type))return kinds.h.OBJECT_TYPE_EXTENSION;if(isInterfaceType(type))return kinds.h.INTERFACE_TYPE_EXTENSION;if(isUnionType(type))return kinds.h.UNION_TYPE_EXTENSION;if(isEnumType(type))return kinds.h.ENUM_TYPE_EXTENSION;if(isInputObjectType(type))return kinds.h.INPUT_OBJECT_TYPE_EXTENSION;(0,invariant.Z)(0,"Unexpected type: "+(0,inspect.Z)(type))}function extensionKindToTypeName(kind){switch(kind){case kinds.h.SCALAR_TYPE_EXTENSION:return"scalar";case kinds.h.OBJECT_TYPE_EXTENSION:return"object";case kinds.h.INTERFACE_TYPE_EXTENSION:return"interface";case kinds.h.UNION_TYPE_EXTENSION:return"union";case kinds.h.ENUM_TYPE_EXTENSION:return"enum";case kinds.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,invariant.Z)(0,"Unexpected kind: "+(0,inspect.Z)(kind))}var specifiedRules=Object.freeze([ExecutableDefinitionsRule,UniqueOperationNamesRule,LoneAnonymousOperationRule,SingleFieldSubscriptionsRule,KnownTypeNamesRule,FragmentsOnCompositeTypesRule,VariablesAreInputTypesRule,ScalarLeafsRule,FieldsOnCorrectTypeRule,UniqueFragmentNamesRule,KnownFragmentNamesRule,NoUnusedFragmentsRule,PossibleFragmentSpreadsRule,NoFragmentCyclesRule,UniqueVariableNamesRule,NoUndefinedVariablesRule,NoUnusedVariablesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,KnownArgumentNamesRule,UniqueArgumentNamesRule,ValuesOfCorrectTypeRule,ProvidedRequiredArgumentsRule,VariablesInAllowedPositionRule,OverlappingFieldsCanBeMergedRule,UniqueInputFieldNamesRule]),specifiedSDLRules=Object.freeze([LoneSchemaDefinitionRule,UniqueOperationTypesRule,UniqueTypeNamesRule,UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule,UniqueDirectiveNamesRule,KnownTypeNamesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,PossibleTypeExtensionsRule,KnownArgumentNamesOnDirectivesRule,UniqueArgumentNamesRule,UniqueInputFieldNamesRule,ProvidedRequiredArgumentsOnDirectivesRule]);function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var ASTValidationContext=function(){function ASTValidationContext2(ast2,onError){this._ast=ast2,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=onError}var _proto=ASTValidationContext2.prototype;return _proto.reportError=function(error){this._onError(error)},_proto.getDocument=function(){return this._ast},_proto.getFragment=function(name){var fragments=this._fragments;return fragments||(this._fragments=fragments=this.getDocument().definitions.reduce(function(frags,statement){return statement.kind===kinds.h.FRAGMENT_DEFINITION&&(frags[statement.name.value]=statement),frags},Object.create(null))),fragments[name]},_proto.getFragmentSpreads=function(node){var spreads=this._fragmentSpreads.get(node);if(!spreads){spreads=[];for(var setsToVisit=[node];setsToVisit.length!==0;)for(var set=setsToVisit.pop(),_i2=0,_set$selections2=set.selections;_i2<_set$selections2.length;_i2++){var selection=_set$selections2[_i2];selection.kind===kinds.h.FRAGMENT_SPREAD?spreads.push(selection):selection.selectionSet&&setsToVisit.push(selection.selectionSet)}this._fragmentSpreads.set(node,spreads)}return spreads},_proto.getRecursivelyReferencedFragments=function(operation){var fragments=this._recursivelyReferencedFragments.get(operation);if(!fragments){fragments=[];for(var collectedNames=Object.create(null),nodesToVisit=[operation.selectionSet];nodesToVisit.length!==0;)for(var node=nodesToVisit.pop(),_i4=0,_this$getFragmentSpre2=this.getFragmentSpreads(node);_i4<_this$getFragmentSpre2.length;_i4++){var spread=_this$getFragmentSpre2[_i4],fragName=spread.name.value;if(collectedNames[fragName]!==!0){collectedNames[fragName]=!0;var fragment=this.getFragment(fragName);fragment&&(fragments.push(fragment),nodesToVisit.push(fragment.selectionSet))}}this._recursivelyReferencedFragments.set(operation,fragments)}return fragments},ASTValidationContext2}(),SDLValidationContext=function(_ASTValidationContext){_inheritsLoose(SDLValidationContext2,_ASTValidationContext);function SDLValidationContext2(ast2,schema,onError){var _this;return _this=_ASTValidationContext.call(this,ast2,onError)||this,_this._schema=schema,_this}var _proto2=SDLValidationContext2.prototype;return _proto2.getSchema=function(){return this._schema},SDLValidationContext2}(ASTValidationContext),ValidationContext=function(_ASTValidationContext2){_inheritsLoose(ValidationContext2,_ASTValidationContext2);function ValidationContext2(schema,ast2,typeInfo,onError){var _this2;return _this2=_ASTValidationContext2.call(this,ast2,onError)||this,_this2._schema=schema,_this2._typeInfo=typeInfo,_this2._variableUsages=new Map,_this2._recursiveVariableUsages=new Map,_this2}var _proto3=ValidationContext2.prototype;return _proto3.getSchema=function(){return this._schema},_proto3.getVariableUsages=function(node){var usages=this._variableUsages.get(node);if(!usages){var newUsages=[],typeInfo=new TypeInfo(this._schema);(0,language_visitor.Vn)(node,visitWithTypeInfo(typeInfo,{VariableDefinition:function(){return!1},Variable:function(variable){newUsages.push({node:variable,type:typeInfo.getInputType(),defaultValue:typeInfo.getDefaultValue()})}})),usages=newUsages,this._variableUsages.set(node,usages)}return usages},_proto3.getRecursiveVariableUsages=function(operation){var usages=this._recursiveVariableUsages.get(operation);if(!usages){usages=this.getVariableUsages(operation);for(var _i6=0,_this$getRecursivelyR2=this.getRecursivelyReferencedFragments(operation);_i6<_this$getRecursivelyR2.length;_i6++){var frag=_this$getRecursivelyR2[_i6];usages=usages.concat(this.getVariableUsages(frag))}this._recursiveVariableUsages.set(operation,usages)}return usages},_proto3.getType=function(){return this._typeInfo.getType()},_proto3.getParentType=function(){return this._typeInfo.getParentType()},_proto3.getInputType=function(){return this._typeInfo.getInputType()},_proto3.getParentInputType=function(){return this._typeInfo.getParentInputType()},_proto3.getFieldDef=function(){return this._typeInfo.getFieldDef()},_proto3.getDirective=function(){return this._typeInfo.getDirective()},_proto3.getArgument=function(){return this._typeInfo.getArgument()},_proto3.getEnumValue=function(){return this._typeInfo.getEnumValue()},ValidationContext2}(ASTValidationContext);function validate(schema,documentAST){var rules=arguments.length>2&&arguments[2]!==void 0?arguments[2]:specifiedRules,typeInfo=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new TypeInfo(schema),options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};documentAST||(0,devAssert.Z)(0,"Must provide document."),assertValidSchema(schema);var abortObj=Object.freeze({}),errors=[],context=new ValidationContext(schema,documentAST,typeInfo,function(error){if(options.maxErrors!=null&&errors.length>=options.maxErrors)throw errors.push(new GraphQLError._("Too many validation errors, error limit reached. Validation aborted.")),abortObj;errors.push(error)}),visitor=(0,language_visitor.j1)(rules.map(function(rule){return rule(context)}));try{(0,language_visitor.Vn)(documentAST,visitWithTypeInfo(typeInfo,visitor))}catch(e){if(e!==abortObj)throw e}return errors}function validateSDL(documentAST,schemaToExtend){var rules=arguments.length>2&&arguments[2]!==void 0?arguments[2]:specifiedSDLRules,errors=[],context=new SDLValidationContext(documentAST,schemaToExtend,function(error){errors.push(error)}),visitors=rules.map(function(rule){return rule(context)});return(0,language_visitor.Vn)(documentAST,(0,language_visitor.j1)(visitors)),errors}function assertValidSDL(documentAST){var errors=validateSDL(documentAST);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
106
106
|
|
107
107
|
`))}function assertValidSDLExtension(documentAST,schema){var errors=validateSDL(documentAST,schema);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
108
108
|
|
@@ -203,7 +203,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
203
203
|
}
|
204
204
|
}
|
205
205
|
}
|
206
|
-
`)}function getOperationAST(documentAST,operationName){for(var operation=null,_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var definition=_documentAST$definiti2[_i2];if(definition.kind===kinds.h.OPERATION_DEFINITION){var _definition$name;if(operationName==null){if(operation)return null;operation=definition}else if(((_definition$name=definition.name)===null||_definition$name===void 0?void 0:_definition$name.value)===operationName)return definition}}return operation}function introspectionFromSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function introspectionFromSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?introspectionFromSchema_ownKeys(Object(source),!0).forEach(function(key){introspectionFromSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):introspectionFromSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function introspectionFromSchema_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function introspectionFromSchema(schema,options){var optionsWithDefaults=introspectionFromSchema_objectSpread({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},options),document2=(0,parser.parse)(getIntrospectionQuery(optionsWithDefaults)),result=executeSync({schema,document:document2});return!result.errors&&result.data||(0,invariant.Z)(0),result.data}function buildClientSchema(introspection,options){(0,isObjectLike.Z)(introspection)&&(0,isObjectLike.Z)(introspection.__schema)||(0,devAssert.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,inspect.Z)(introspection),"."));for(var schemaIntrospection=introspection.__schema,typeMap=keyValMap(schemaIntrospection.types,function(typeIntrospection){return typeIntrospection.name},function(typeIntrospection){return buildType(typeIntrospection)}),_i2=0,_ref2=[].concat(specifiedScalarTypes,introspectionTypes);_i2<_ref2.length;_i2++){var stdType=_ref2[_i2];typeMap[stdType.name]&&(typeMap[stdType.name]=stdType)}var queryType=schemaIntrospection.queryType?getObjectType(schemaIntrospection.queryType):null,mutationType=schemaIntrospection.mutationType?getObjectType(schemaIntrospection.mutationType):null,subscriptionType=schemaIntrospection.subscriptionType?getObjectType(schemaIntrospection.subscriptionType):null,directives=schemaIntrospection.directives?schemaIntrospection.directives.map(buildDirective):[];return new GraphQLSchema({description:schemaIntrospection.description,query:queryType,mutation:mutationType,subscription:subscriptionType,types:polyfills_objectValues(typeMap),directives,assumeValid:options?.assumeValid});function getType(typeRef){if(typeRef.kind===TypeKind.LIST){var itemRef=typeRef.ofType;if(!itemRef)throw new Error("Decorated type deeper than introspection query.");return new GraphQLList(getType(itemRef))}if(typeRef.kind===TypeKind.NON_NULL){var nullableRef=typeRef.ofType;if(!nullableRef)throw new Error("Decorated type deeper than introspection query.");var nullableType=getType(nullableRef);return new GraphQLNonNull(assertNullableType(nullableType))}return getNamedType2(typeRef)}function getNamedType2(typeRef){var typeName=typeRef.name;if(!typeName)throw new Error("Unknown type reference: ".concat((0,inspect.Z)(typeRef),"."));var type=typeMap[typeName];if(!type)throw new Error("Invalid or incomplete schema, unknown type: ".concat(typeName,". Ensure that a full introspection query is used in order to build a client schema."));return type}function getObjectType(typeRef){return assertObjectType(getNamedType2(typeRef))}function getInterfaceType(typeRef){return assertInterfaceType(getNamedType2(typeRef))}function buildType(type){if(type!=null&&type.name!=null&&type.kind!=null)switch(type.kind){case TypeKind.SCALAR:return buildScalarDef(type);case TypeKind.OBJECT:return buildObjectDef(type);case TypeKind.INTERFACE:return buildInterfaceDef(type);case TypeKind.UNION:return buildUnionDef(type);case TypeKind.ENUM:return buildEnumDef(type);case TypeKind.INPUT_OBJECT:return buildInputObjectDef(type)}var typeStr=(0,inspect.Z)(type);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(typeStr,"."))}function buildScalarDef(scalarIntrospection){return new GraphQLScalarType({name:scalarIntrospection.name,description:scalarIntrospection.description,specifiedByUrl:scalarIntrospection.specifiedByUrl})}function buildImplementationsList(implementingIntrospection){if(implementingIntrospection.interfaces===null&&implementingIntrospection.kind===TypeKind.INTERFACE)return[];if(!implementingIntrospection.interfaces){var implementingIntrospectionStr=(0,inspect.Z)(implementingIntrospection);throw new Error("Introspection result missing interfaces: ".concat(implementingIntrospectionStr,"."))}return implementingIntrospection.interfaces.map(getInterfaceType)}function buildObjectDef(objectIntrospection){return new GraphQLObjectType({name:objectIntrospection.name,description:objectIntrospection.description,interfaces:function(){return buildImplementationsList(objectIntrospection)},fields:function(){return buildFieldDefMap(objectIntrospection)}})}function buildInterfaceDef(interfaceIntrospection){return new GraphQLInterfaceType({name:interfaceIntrospection.name,description:interfaceIntrospection.description,interfaces:function(){return buildImplementationsList(interfaceIntrospection)},fields:function(){return buildFieldDefMap(interfaceIntrospection)}})}function buildUnionDef(unionIntrospection){if(!unionIntrospection.possibleTypes){var unionIntrospectionStr=(0,inspect.Z)(unionIntrospection);throw new Error("Introspection result missing possibleTypes: ".concat(unionIntrospectionStr,"."))}return new GraphQLUnionType({name:unionIntrospection.name,description:unionIntrospection.description,types:function(){return unionIntrospection.possibleTypes.map(getObjectType)}})}function buildEnumDef(enumIntrospection){if(!enumIntrospection.enumValues){var enumIntrospectionStr=(0,inspect.Z)(enumIntrospection);throw new Error("Introspection result missing enumValues: ".concat(enumIntrospectionStr,"."))}return new GraphQLEnumType({name:enumIntrospection.name,description:enumIntrospection.description,values:keyValMap(enumIntrospection.enumValues,function(valueIntrospection){return valueIntrospection.name},function(valueIntrospection){return{description:valueIntrospection.description,deprecationReason:valueIntrospection.deprecationReason}})})}function buildInputObjectDef(inputObjectIntrospection){if(!inputObjectIntrospection.inputFields){var inputObjectIntrospectionStr=(0,inspect.Z)(inputObjectIntrospection);throw new Error("Introspection result missing inputFields: ".concat(inputObjectIntrospectionStr,"."))}return new GraphQLInputObjectType({name:inputObjectIntrospection.name,description:inputObjectIntrospection.description,fields:function(){return buildInputValueDefMap(inputObjectIntrospection.inputFields)}})}function buildFieldDefMap(typeIntrospection){if(!typeIntrospection.fields)throw new Error("Introspection result missing fields: ".concat((0,inspect.Z)(typeIntrospection),"."));return keyValMap(typeIntrospection.fields,function(fieldIntrospection){return fieldIntrospection.name},buildField)}function buildField(fieldIntrospection){var type=getType(fieldIntrospection.type);if(!isOutputType(type)){var typeStr=(0,inspect.Z)(type);throw new Error("Introspection must provide output type for fields, but received: ".concat(typeStr,"."))}if(!fieldIntrospection.args){var fieldIntrospectionStr=(0,inspect.Z)(fieldIntrospection);throw new Error("Introspection result missing field args: ".concat(fieldIntrospectionStr,"."))}return{description:fieldIntrospection.description,deprecationReason:fieldIntrospection.deprecationReason,type,args:buildInputValueDefMap(fieldIntrospection.args)}}function buildInputValueDefMap(inputValueIntrospections){return keyValMap(inputValueIntrospections,function(inputValue){return inputValue.name},buildInputValue)}function buildInputValue(inputValueIntrospection){var type=getType(inputValueIntrospection.type);if(!isInputType(type)){var typeStr=(0,inspect.Z)(type);throw new Error("Introspection must provide input type for arguments, but received: ".concat(typeStr,"."))}var defaultValue=inputValueIntrospection.defaultValue!=null?valueFromAST((0,parser.parseValue)(inputValueIntrospection.defaultValue),type):void 0;return{description:inputValueIntrospection.description,type,defaultValue,deprecationReason:inputValueIntrospection.deprecationReason}}function buildDirective(directiveIntrospection){if(!directiveIntrospection.args){var directiveIntrospectionStr=(0,inspect.Z)(directiveIntrospection);throw new Error("Introspection result missing directive args: ".concat(directiveIntrospectionStr,"."))}if(!directiveIntrospection.locations){var _directiveIntrospectionStr=(0,inspect.Z)(directiveIntrospection);throw new Error("Introspection result missing directive locations: ".concat(_directiveIntrospectionStr,"."))}return new GraphQLDirective({name:directiveIntrospection.name,description:directiveIntrospection.description,isRepeatable:directiveIntrospection.isRepeatable,locations:directiveIntrospection.locations.slice(),args:buildInputValueDefMap(directiveIntrospection.args)})}}var language_blockString=__webpack_require__(49336);function extendSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function extendSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?extendSchema_ownKeys(Object(source),!0).forEach(function(key){extendSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):extendSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function extendSchema_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function extendSchema(schema,documentAST,options){assertSchema(schema),documentAST!=null&&documentAST.kind===kinds.h.DOCUMENT||(0,devAssert.Z)(0,"Must provide valid Document AST."),options?.assumeValid!==!0&&options?.assumeValidSDL!==!0&&assertValidSDLExtension(documentAST,schema);var schemaConfig=schema.toConfig(),extendedConfig=extendSchemaImpl(schemaConfig,documentAST,options);return schemaConfig===extendedConfig?schema:new GraphQLSchema(extendedConfig)}function extendSchemaImpl(schemaConfig,documentAST,options){for(var _schemaDef,_schemaDef$descriptio,_schemaDef2,_options$assumeValid,typeDefs=[],typeExtensionsMap=Object.create(null),directiveDefs=[],schemaDef,schemaExtensions=[],_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var def=_documentAST$definiti2[_i2];if(def.kind===kinds.h.SCHEMA_DEFINITION)schemaDef=def;else if(def.kind===kinds.h.SCHEMA_EXTENSION)schemaExtensions.push(def);else if(isTypeDefinitionNode(def))typeDefs.push(def);else if(isTypeExtensionNode(def)){var extendedTypeName=def.name.value,existingTypeExtensions=typeExtensionsMap[extendedTypeName];typeExtensionsMap[extendedTypeName]=existingTypeExtensions?existingTypeExtensions.concat([def]):[def]}else def.kind===kinds.h.DIRECTIVE_DEFINITION&&directiveDefs.push(def)}if(Object.keys(typeExtensionsMap).length===0&&typeDefs.length===0&&directiveDefs.length===0&&schemaExtensions.length===0&&schemaDef==null)return schemaConfig;for(var typeMap=Object.create(null),_i4=0,_schemaConfig$types2=schemaConfig.types;_i4<_schemaConfig$types2.length;_i4++){var existingType=_schemaConfig$types2[_i4];typeMap[existingType.name]=extendNamedType(existingType)}for(var _i6=0;_i6<typeDefs.length;_i6++){var _stdTypeMap$name,typeNode=typeDefs[_i6],name=typeNode.name.value;typeMap[name]=(_stdTypeMap$name=stdTypeMap[name])!==null&&_stdTypeMap$name!==void 0?_stdTypeMap$name:buildType(typeNode)}var operationTypes=extendSchema_objectSpread(extendSchema_objectSpread({query:schemaConfig.query&&replaceNamedType(schemaConfig.query),mutation:schemaConfig.mutation&&replaceNamedType(schemaConfig.mutation),subscription:schemaConfig.subscription&&replaceNamedType(schemaConfig.subscription)},schemaDef&&getOperationTypes([schemaDef])),getOperationTypes(schemaExtensions));return extendSchema_objectSpread(extendSchema_objectSpread({description:(_schemaDef=schemaDef)===null||_schemaDef===void 0||(_schemaDef$descriptio=_schemaDef.description)===null||_schemaDef$descriptio===void 0?void 0:_schemaDef$descriptio.value},operationTypes),{},{types:polyfills_objectValues(typeMap),directives:[].concat(schemaConfig.directives.map(replaceDirective),directiveDefs.map(buildDirective)),extensions:void 0,astNode:(_schemaDef2=schemaDef)!==null&&_schemaDef2!==void 0?_schemaDef2:schemaConfig.astNode,extensionASTNodes:schemaConfig.extensionASTNodes.concat(schemaExtensions),assumeValid:(_options$assumeValid=options?.assumeValid)!==null&&_options$assumeValid!==void 0?_options$assumeValid:!1});function replaceType(type){return isListType(type)?new GraphQLList(replaceType(type.ofType)):isNonNullType(type)?new GraphQLNonNull(replaceType(type.ofType)):replaceNamedType(type)}function replaceNamedType(type){return typeMap[type.name]}function replaceDirective(directive){var config=directive.toConfig();return new GraphQLDirective(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{args:mapValue(config.args,extendArg)}))}function extendNamedType(type){if(isIntrospectionType(type)||isSpecifiedScalarType(type))return type;if(isScalarType(type))return extendScalarType(type);if(isObjectType(type))return extendObjectType(type);if(isInterfaceType(type))return extendInterfaceType(type);if(isUnionType(type))return extendUnionType(type);if(isEnumType(type))return extendEnumType(type);if(isInputObjectType(type))return extendInputObjectType(type);(0,invariant.Z)(0,"Unexpected type: "+(0,inspect.Z)(type))}function extendInputObjectType(type){var _typeExtensionsMap$co,config=type.toConfig(),extensions=(_typeExtensionsMap$co=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co!==void 0?_typeExtensionsMap$co:[];return new GraphQLInputObjectType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,function(field){return extendSchema_objectSpread(extendSchema_objectSpread({},field),{},{type:replaceType(field.type)})})),buildInputFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendEnumType(type){var _typeExtensionsMap$ty,config=type.toConfig(),extensions=(_typeExtensionsMap$ty=typeExtensionsMap[type.name])!==null&&_typeExtensionsMap$ty!==void 0?_typeExtensionsMap$ty:[];return new GraphQLEnumType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{values:extendSchema_objectSpread(extendSchema_objectSpread({},config.values),buildEnumValueMap(extensions)),extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendScalarType(type){for(var _typeExtensionsMap$co2,config=type.toConfig(),extensions=(_typeExtensionsMap$co2=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co2!==void 0?_typeExtensionsMap$co2:[],specifiedByUrl=config.specifiedByUrl,_i8=0;_i8<extensions.length;_i8++){var _getSpecifiedByUrl,extensionNode=extensions[_i8];specifiedByUrl=(_getSpecifiedByUrl=getSpecifiedByUrl(extensionNode))!==null&&_getSpecifiedByUrl!==void 0?_getSpecifiedByUrl:specifiedByUrl}return new GraphQLScalarType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{specifiedByUrl,extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendObjectType(type){var _typeExtensionsMap$co3,config=type.toConfig(),extensions=(_typeExtensionsMap$co3=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co3!==void 0?_typeExtensionsMap$co3:[];return new GraphQLObjectType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{interfaces:function(){return[].concat(type.getInterfaces().map(replaceNamedType),buildInterfaces(extensions))},fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,extendField)),buildFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendInterfaceType(type){var _typeExtensionsMap$co4,config=type.toConfig(),extensions=(_typeExtensionsMap$co4=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co4!==void 0?_typeExtensionsMap$co4:[];return new GraphQLInterfaceType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{interfaces:function(){return[].concat(type.getInterfaces().map(replaceNamedType),buildInterfaces(extensions))},fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,extendField)),buildFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendUnionType(type){var _typeExtensionsMap$co5,config=type.toConfig(),extensions=(_typeExtensionsMap$co5=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co5!==void 0?_typeExtensionsMap$co5:[];return new GraphQLUnionType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{types:function(){return[].concat(type.getTypes().map(replaceNamedType),buildUnionTypes(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendField(field){return extendSchema_objectSpread(extendSchema_objectSpread({},field),{},{type:replaceType(field.type),args:mapValue(field.args,extendArg)})}function extendArg(arg){return extendSchema_objectSpread(extendSchema_objectSpread({},arg),{},{type:replaceType(arg.type)})}function getOperationTypes(nodes){for(var opTypes={},_i10=0;_i10<nodes.length;_i10++)for(var _node$operationTypes,node=nodes[_i10],operationTypesNodes=(_node$operationTypes=node.operationTypes)!==null&&_node$operationTypes!==void 0?_node$operationTypes:[],_i12=0;_i12<operationTypesNodes.length;_i12++){var operationType=operationTypesNodes[_i12];opTypes[operationType.operation]=getNamedType2(operationType.type)}return opTypes}function getNamedType2(node){var _stdTypeMap$name2,name2=node.name.value,type=(_stdTypeMap$name2=stdTypeMap[name2])!==null&&_stdTypeMap$name2!==void 0?_stdTypeMap$name2:typeMap[name2];if(type===void 0)throw new Error('Unknown type: "'.concat(name2,'".'));return type}function getWrappedType(node){return node.kind===kinds.h.LIST_TYPE?new GraphQLList(getWrappedType(node.type)):node.kind===kinds.h.NON_NULL_TYPE?new GraphQLNonNull(getWrappedType(node.type)):getNamedType2(node)}function buildDirective(node){var locations=node.locations.map(function(_ref){var value2=_ref.value;return value2});return new GraphQLDirective({name:node.name.value,description:getDescription(node,options),locations,isRepeatable:node.repeatable,args:buildArgumentMap(node.arguments),astNode:node})}function buildFieldMap(nodes){for(var fieldConfigMap=Object.create(null),_i14=0;_i14<nodes.length;_i14++)for(var _node$fields,node=nodes[_i14],nodeFields=(_node$fields=node.fields)!==null&&_node$fields!==void 0?_node$fields:[],_i16=0;_i16<nodeFields.length;_i16++){var field=nodeFields[_i16];fieldConfigMap[field.name.value]={type:getWrappedType(field.type),description:getDescription(field,options),args:buildArgumentMap(field.arguments),deprecationReason:getDeprecationReason(field),astNode:field}}return fieldConfigMap}function buildArgumentMap(args){for(var argsNodes=args??[],argConfigMap=Object.create(null),_i18=0;_i18<argsNodes.length;_i18++){var arg=argsNodes[_i18],type=getWrappedType(arg.type);argConfigMap[arg.name.value]={type,description:getDescription(arg,options),defaultValue:valueFromAST(arg.defaultValue,type),deprecationReason:getDeprecationReason(arg),astNode:arg}}return argConfigMap}function buildInputFieldMap(nodes){for(var inputFieldMap=Object.create(null),_i20=0;_i20<nodes.length;_i20++)for(var _node$fields2,node=nodes[_i20],fieldsNodes=(_node$fields2=node.fields)!==null&&_node$fields2!==void 0?_node$fields2:[],_i22=0;_i22<fieldsNodes.length;_i22++){var field=fieldsNodes[_i22],type=getWrappedType(field.type);inputFieldMap[field.name.value]={type,description:getDescription(field,options),defaultValue:valueFromAST(field.defaultValue,type),deprecationReason:getDeprecationReason(field),astNode:field}}return inputFieldMap}function buildEnumValueMap(nodes){for(var enumValueMap=Object.create(null),_i24=0;_i24<nodes.length;_i24++)for(var _node$values,node=nodes[_i24],valuesNodes=(_node$values=node.values)!==null&&_node$values!==void 0?_node$values:[],_i26=0;_i26<valuesNodes.length;_i26++){var value2=valuesNodes[_i26];enumValueMap[value2.name.value]={description:getDescription(value2,options),deprecationReason:getDeprecationReason(value2),astNode:value2}}return enumValueMap}function buildInterfaces(nodes){for(var interfaces=[],_i28=0;_i28<nodes.length;_i28++)for(var _node$interfaces,node=nodes[_i28],interfacesNodes=(_node$interfaces=node.interfaces)!==null&&_node$interfaces!==void 0?_node$interfaces:[],_i30=0;_i30<interfacesNodes.length;_i30++){var type=interfacesNodes[_i30];interfaces.push(getNamedType2(type))}return interfaces}function buildUnionTypes(nodes){for(var types=[],_i32=0;_i32<nodes.length;_i32++)for(var _node$types,node=nodes[_i32],typeNodes=(_node$types=node.types)!==null&&_node$types!==void 0?_node$types:[],_i34=0;_i34<typeNodes.length;_i34++){var type=typeNodes[_i34];types.push(getNamedType2(type))}return types}function buildType(astNode){var _typeExtensionsMap$na,name2=astNode.name.value,description=getDescription(astNode,options),extensionNodes=(_typeExtensionsMap$na=typeExtensionsMap[name2])!==null&&_typeExtensionsMap$na!==void 0?_typeExtensionsMap$na:[];switch(astNode.kind){case kinds.h.OBJECT_TYPE_DEFINITION:{var extensionASTNodes=extensionNodes,allNodes=[astNode].concat(extensionASTNodes);return new GraphQLObjectType({name:name2,description,interfaces:function(){return buildInterfaces(allNodes)},fields:function(){return buildFieldMap(allNodes)},astNode,extensionASTNodes})}case kinds.h.INTERFACE_TYPE_DEFINITION:{var _extensionASTNodes=extensionNodes,_allNodes=[astNode].concat(_extensionASTNodes);return new GraphQLInterfaceType({name:name2,description,interfaces:function(){return buildInterfaces(_allNodes)},fields:function(){return buildFieldMap(_allNodes)},astNode,extensionASTNodes:_extensionASTNodes})}case kinds.h.ENUM_TYPE_DEFINITION:{var _extensionASTNodes2=extensionNodes,_allNodes2=[astNode].concat(_extensionASTNodes2);return new GraphQLEnumType({name:name2,description,values:buildEnumValueMap(_allNodes2),astNode,extensionASTNodes:_extensionASTNodes2})}case kinds.h.UNION_TYPE_DEFINITION:{var _extensionASTNodes3=extensionNodes,_allNodes3=[astNode].concat(_extensionASTNodes3);return new GraphQLUnionType({name:name2,description,types:function(){return buildUnionTypes(_allNodes3)},astNode,extensionASTNodes:_extensionASTNodes3})}case kinds.h.SCALAR_TYPE_DEFINITION:{var _extensionASTNodes4=extensionNodes;return new GraphQLScalarType({name:name2,description,specifiedByUrl:getSpecifiedByUrl(astNode),astNode,extensionASTNodes:_extensionASTNodes4})}case kinds.h.INPUT_OBJECT_TYPE_DEFINITION:{var _extensionASTNodes5=extensionNodes,_allNodes4=[astNode].concat(_extensionASTNodes5);return new GraphQLInputObjectType({name:name2,description,fields:function(){return buildInputFieldMap(_allNodes4)},astNode,extensionASTNodes:_extensionASTNodes5})}}(0,invariant.Z)(0,"Unexpected type definition node: "+(0,inspect.Z)(astNode))}}var stdTypeMap=keyMap(specifiedScalarTypes.concat(introspectionTypes),function(type){return type.name});function getDeprecationReason(node){var deprecated=getDirectiveValues(GraphQLDeprecatedDirective,node);return deprecated?.reason}function getSpecifiedByUrl(node){var specifiedBy=getDirectiveValues(GraphQLSpecifiedByDirective,node);return specifiedBy?.url}function getDescription(node,options){if(node.description)return node.description.value;if(options?.commentDescriptions===!0){var rawValue=getLeadingCommentBlock(node);if(rawValue!==void 0)return(0,language_blockString.W7)(`
|
206
|
+
`)}function getOperationAST(documentAST,operationName){for(var operation=null,_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var definition=_documentAST$definiti2[_i2];if(definition.kind===kinds.h.OPERATION_DEFINITION){var _definition$name;if(operationName==null){if(operation)return null;operation=definition}else if(((_definition$name=definition.name)===null||_definition$name===void 0?void 0:_definition$name.value)===operationName)return definition}}return operation}function introspectionFromSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function introspectionFromSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?introspectionFromSchema_ownKeys(Object(source),!0).forEach(function(key){introspectionFromSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):introspectionFromSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function introspectionFromSchema_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function introspectionFromSchema(schema,options){var optionsWithDefaults=introspectionFromSchema_objectSpread({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},options),document2=(0,parser.parse)(getIntrospectionQuery(optionsWithDefaults)),result=executeSync({schema,document:document2});return!result.errors&&result.data||(0,invariant.Z)(0),result.data}function buildClientSchema(introspection,options){(0,isObjectLike.Z)(introspection)&&(0,isObjectLike.Z)(introspection.__schema)||(0,devAssert.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,inspect.Z)(introspection),"."));for(var schemaIntrospection=introspection.__schema,typeMap=keyValMap(schemaIntrospection.types,function(typeIntrospection){return typeIntrospection.name},function(typeIntrospection){return buildType(typeIntrospection)}),_i2=0,_ref2=[].concat(specifiedScalarTypes,introspectionTypes);_i2<_ref2.length;_i2++){var stdType=_ref2[_i2];typeMap[stdType.name]&&(typeMap[stdType.name]=stdType)}var queryType=schemaIntrospection.queryType?getObjectType(schemaIntrospection.queryType):null,mutationType=schemaIntrospection.mutationType?getObjectType(schemaIntrospection.mutationType):null,subscriptionType=schemaIntrospection.subscriptionType?getObjectType(schemaIntrospection.subscriptionType):null,directives=schemaIntrospection.directives?schemaIntrospection.directives.map(buildDirective):[];return new GraphQLSchema({description:schemaIntrospection.description,query:queryType,mutation:mutationType,subscription:subscriptionType,types:polyfills_objectValues(typeMap),directives,assumeValid:options?.assumeValid});function getType(typeRef){if(typeRef.kind===TypeKind.LIST){var itemRef=typeRef.ofType;if(!itemRef)throw new Error("Decorated type deeper than introspection query.");return new GraphQLList(getType(itemRef))}if(typeRef.kind===TypeKind.NON_NULL){var nullableRef=typeRef.ofType;if(!nullableRef)throw new Error("Decorated type deeper than introspection query.");var nullableType=getType(nullableRef);return new GraphQLNonNull(assertNullableType(nullableType))}return getNamedType2(typeRef)}function getNamedType2(typeRef){var typeName=typeRef.name;if(!typeName)throw new Error("Unknown type reference: ".concat((0,inspect.Z)(typeRef),"."));var type=typeMap[typeName];if(!type)throw new Error("Invalid or incomplete schema, unknown type: ".concat(typeName,". Ensure that a full introspection query is used in order to build a client schema."));return type}function getObjectType(typeRef){return assertObjectType(getNamedType2(typeRef))}function getInterfaceType(typeRef){return assertInterfaceType(getNamedType2(typeRef))}function buildType(type){if(type!=null&&type.name!=null&&type.kind!=null)switch(type.kind){case TypeKind.SCALAR:return buildScalarDef(type);case TypeKind.OBJECT:return buildObjectDef(type);case TypeKind.INTERFACE:return buildInterfaceDef(type);case TypeKind.UNION:return buildUnionDef(type);case TypeKind.ENUM:return buildEnumDef(type);case TypeKind.INPUT_OBJECT:return buildInputObjectDef(type)}var typeStr=(0,inspect.Z)(type);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(typeStr,"."))}function buildScalarDef(scalarIntrospection){return new GraphQLScalarType({name:scalarIntrospection.name,description:scalarIntrospection.description,specifiedByUrl:scalarIntrospection.specifiedByUrl})}function buildImplementationsList(implementingIntrospection){if(implementingIntrospection.interfaces===null&&implementingIntrospection.kind===TypeKind.INTERFACE)return[];if(!implementingIntrospection.interfaces){var implementingIntrospectionStr=(0,inspect.Z)(implementingIntrospection);throw new Error("Introspection result missing interfaces: ".concat(implementingIntrospectionStr,"."))}return implementingIntrospection.interfaces.map(getInterfaceType)}function buildObjectDef(objectIntrospection){return new GraphQLObjectType({name:objectIntrospection.name,description:objectIntrospection.description,interfaces:function(){return buildImplementationsList(objectIntrospection)},fields:function(){return buildFieldDefMap(objectIntrospection)}})}function buildInterfaceDef(interfaceIntrospection){return new GraphQLInterfaceType({name:interfaceIntrospection.name,description:interfaceIntrospection.description,interfaces:function(){return buildImplementationsList(interfaceIntrospection)},fields:function(){return buildFieldDefMap(interfaceIntrospection)}})}function buildUnionDef(unionIntrospection){if(!unionIntrospection.possibleTypes){var unionIntrospectionStr=(0,inspect.Z)(unionIntrospection);throw new Error("Introspection result missing possibleTypes: ".concat(unionIntrospectionStr,"."))}return new GraphQLUnionType({name:unionIntrospection.name,description:unionIntrospection.description,types:function(){return unionIntrospection.possibleTypes.map(getObjectType)}})}function buildEnumDef(enumIntrospection){if(!enumIntrospection.enumValues){var enumIntrospectionStr=(0,inspect.Z)(enumIntrospection);throw new Error("Introspection result missing enumValues: ".concat(enumIntrospectionStr,"."))}return new GraphQLEnumType({name:enumIntrospection.name,description:enumIntrospection.description,values:keyValMap(enumIntrospection.enumValues,function(valueIntrospection){return valueIntrospection.name},function(valueIntrospection){return{description:valueIntrospection.description,deprecationReason:valueIntrospection.deprecationReason}})})}function buildInputObjectDef(inputObjectIntrospection){if(!inputObjectIntrospection.inputFields){var inputObjectIntrospectionStr=(0,inspect.Z)(inputObjectIntrospection);throw new Error("Introspection result missing inputFields: ".concat(inputObjectIntrospectionStr,"."))}return new GraphQLInputObjectType({name:inputObjectIntrospection.name,description:inputObjectIntrospection.description,fields:function(){return buildInputValueDefMap(inputObjectIntrospection.inputFields)}})}function buildFieldDefMap(typeIntrospection){if(!typeIntrospection.fields)throw new Error("Introspection result missing fields: ".concat((0,inspect.Z)(typeIntrospection),"."));return keyValMap(typeIntrospection.fields,function(fieldIntrospection){return fieldIntrospection.name},buildField)}function buildField(fieldIntrospection){var type=getType(fieldIntrospection.type);if(!isOutputType(type)){var typeStr=(0,inspect.Z)(type);throw new Error("Introspection must provide output type for fields, but received: ".concat(typeStr,"."))}if(!fieldIntrospection.args){var fieldIntrospectionStr=(0,inspect.Z)(fieldIntrospection);throw new Error("Introspection result missing field args: ".concat(fieldIntrospectionStr,"."))}return{description:fieldIntrospection.description,deprecationReason:fieldIntrospection.deprecationReason,type,args:buildInputValueDefMap(fieldIntrospection.args)}}function buildInputValueDefMap(inputValueIntrospections){return keyValMap(inputValueIntrospections,function(inputValue){return inputValue.name},buildInputValue)}function buildInputValue(inputValueIntrospection){var type=getType(inputValueIntrospection.type);if(!isInputType(type)){var typeStr=(0,inspect.Z)(type);throw new Error("Introspection must provide input type for arguments, but received: ".concat(typeStr,"."))}var defaultValue=inputValueIntrospection.defaultValue!=null?valueFromAST((0,parser.parseValue)(inputValueIntrospection.defaultValue),type):void 0;return{description:inputValueIntrospection.description,type,defaultValue,deprecationReason:inputValueIntrospection.deprecationReason}}function buildDirective(directiveIntrospection){if(!directiveIntrospection.args){var directiveIntrospectionStr=(0,inspect.Z)(directiveIntrospection);throw new Error("Introspection result missing directive args: ".concat(directiveIntrospectionStr,"."))}if(!directiveIntrospection.locations){var _directiveIntrospectionStr=(0,inspect.Z)(directiveIntrospection);throw new Error("Introspection result missing directive locations: ".concat(_directiveIntrospectionStr,"."))}return new GraphQLDirective({name:directiveIntrospection.name,description:directiveIntrospection.description,isRepeatable:directiveIntrospection.isRepeatable,locations:directiveIntrospection.locations.slice(),args:buildInputValueDefMap(directiveIntrospection.args)})}}var language_blockString=__webpack_require__(49336);function extendSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function extendSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?extendSchema_ownKeys(Object(source),!0).forEach(function(key){extendSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):extendSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function extendSchema_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function extendSchema(schema,documentAST,options){assertSchema(schema),documentAST!=null&&documentAST.kind===kinds.h.DOCUMENT||(0,devAssert.Z)(0,"Must provide valid Document AST."),options?.assumeValid!==!0&&options?.assumeValidSDL!==!0&&assertValidSDLExtension(documentAST,schema);var schemaConfig=schema.toConfig(),extendedConfig=extendSchemaImpl(schemaConfig,documentAST,options);return schemaConfig===extendedConfig?schema:new GraphQLSchema(extendedConfig)}function extendSchemaImpl(schemaConfig,documentAST,options){for(var _schemaDef,_schemaDef$descriptio,_schemaDef2,_options$assumeValid,typeDefs=[],typeExtensionsMap=Object.create(null),directiveDefs=[],schemaDef,schemaExtensions=[],_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var def=_documentAST$definiti2[_i2];if(def.kind===kinds.h.SCHEMA_DEFINITION)schemaDef=def;else if(def.kind===kinds.h.SCHEMA_EXTENSION)schemaExtensions.push(def);else if((0,predicates.zT)(def))typeDefs.push(def);else if((0,predicates.D$)(def)){var extendedTypeName=def.name.value,existingTypeExtensions=typeExtensionsMap[extendedTypeName];typeExtensionsMap[extendedTypeName]=existingTypeExtensions?existingTypeExtensions.concat([def]):[def]}else def.kind===kinds.h.DIRECTIVE_DEFINITION&&directiveDefs.push(def)}if(Object.keys(typeExtensionsMap).length===0&&typeDefs.length===0&&directiveDefs.length===0&&schemaExtensions.length===0&&schemaDef==null)return schemaConfig;for(var typeMap=Object.create(null),_i4=0,_schemaConfig$types2=schemaConfig.types;_i4<_schemaConfig$types2.length;_i4++){var existingType=_schemaConfig$types2[_i4];typeMap[existingType.name]=extendNamedType(existingType)}for(var _i6=0;_i6<typeDefs.length;_i6++){var _stdTypeMap$name,typeNode=typeDefs[_i6],name=typeNode.name.value;typeMap[name]=(_stdTypeMap$name=stdTypeMap[name])!==null&&_stdTypeMap$name!==void 0?_stdTypeMap$name:buildType(typeNode)}var operationTypes=extendSchema_objectSpread(extendSchema_objectSpread({query:schemaConfig.query&&replaceNamedType(schemaConfig.query),mutation:schemaConfig.mutation&&replaceNamedType(schemaConfig.mutation),subscription:schemaConfig.subscription&&replaceNamedType(schemaConfig.subscription)},schemaDef&&getOperationTypes([schemaDef])),getOperationTypes(schemaExtensions));return extendSchema_objectSpread(extendSchema_objectSpread({description:(_schemaDef=schemaDef)===null||_schemaDef===void 0||(_schemaDef$descriptio=_schemaDef.description)===null||_schemaDef$descriptio===void 0?void 0:_schemaDef$descriptio.value},operationTypes),{},{types:polyfills_objectValues(typeMap),directives:[].concat(schemaConfig.directives.map(replaceDirective),directiveDefs.map(buildDirective)),extensions:void 0,astNode:(_schemaDef2=schemaDef)!==null&&_schemaDef2!==void 0?_schemaDef2:schemaConfig.astNode,extensionASTNodes:schemaConfig.extensionASTNodes.concat(schemaExtensions),assumeValid:(_options$assumeValid=options?.assumeValid)!==null&&_options$assumeValid!==void 0?_options$assumeValid:!1});function replaceType(type){return isListType(type)?new GraphQLList(replaceType(type.ofType)):isNonNullType(type)?new GraphQLNonNull(replaceType(type.ofType)):replaceNamedType(type)}function replaceNamedType(type){return typeMap[type.name]}function replaceDirective(directive){var config=directive.toConfig();return new GraphQLDirective(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{args:mapValue(config.args,extendArg)}))}function extendNamedType(type){if(isIntrospectionType(type)||isSpecifiedScalarType(type))return type;if(isScalarType(type))return extendScalarType(type);if(isObjectType(type))return extendObjectType(type);if(isInterfaceType(type))return extendInterfaceType(type);if(isUnionType(type))return extendUnionType(type);if(isEnumType(type))return extendEnumType(type);if(isInputObjectType(type))return extendInputObjectType(type);(0,invariant.Z)(0,"Unexpected type: "+(0,inspect.Z)(type))}function extendInputObjectType(type){var _typeExtensionsMap$co,config=type.toConfig(),extensions=(_typeExtensionsMap$co=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co!==void 0?_typeExtensionsMap$co:[];return new GraphQLInputObjectType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,function(field){return extendSchema_objectSpread(extendSchema_objectSpread({},field),{},{type:replaceType(field.type)})})),buildInputFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendEnumType(type){var _typeExtensionsMap$ty,config=type.toConfig(),extensions=(_typeExtensionsMap$ty=typeExtensionsMap[type.name])!==null&&_typeExtensionsMap$ty!==void 0?_typeExtensionsMap$ty:[];return new GraphQLEnumType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{values:extendSchema_objectSpread(extendSchema_objectSpread({},config.values),buildEnumValueMap(extensions)),extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendScalarType(type){for(var _typeExtensionsMap$co2,config=type.toConfig(),extensions=(_typeExtensionsMap$co2=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co2!==void 0?_typeExtensionsMap$co2:[],specifiedByUrl=config.specifiedByUrl,_i8=0;_i8<extensions.length;_i8++){var _getSpecifiedByUrl,extensionNode=extensions[_i8];specifiedByUrl=(_getSpecifiedByUrl=getSpecifiedByUrl(extensionNode))!==null&&_getSpecifiedByUrl!==void 0?_getSpecifiedByUrl:specifiedByUrl}return new GraphQLScalarType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{specifiedByUrl,extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendObjectType(type){var _typeExtensionsMap$co3,config=type.toConfig(),extensions=(_typeExtensionsMap$co3=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co3!==void 0?_typeExtensionsMap$co3:[];return new GraphQLObjectType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{interfaces:function(){return[].concat(type.getInterfaces().map(replaceNamedType),buildInterfaces(extensions))},fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,extendField)),buildFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendInterfaceType(type){var _typeExtensionsMap$co4,config=type.toConfig(),extensions=(_typeExtensionsMap$co4=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co4!==void 0?_typeExtensionsMap$co4:[];return new GraphQLInterfaceType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{interfaces:function(){return[].concat(type.getInterfaces().map(replaceNamedType),buildInterfaces(extensions))},fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,extendField)),buildFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendUnionType(type){var _typeExtensionsMap$co5,config=type.toConfig(),extensions=(_typeExtensionsMap$co5=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co5!==void 0?_typeExtensionsMap$co5:[];return new GraphQLUnionType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{types:function(){return[].concat(type.getTypes().map(replaceNamedType),buildUnionTypes(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendField(field){return extendSchema_objectSpread(extendSchema_objectSpread({},field),{},{type:replaceType(field.type),args:mapValue(field.args,extendArg)})}function extendArg(arg){return extendSchema_objectSpread(extendSchema_objectSpread({},arg),{},{type:replaceType(arg.type)})}function getOperationTypes(nodes){for(var opTypes={},_i10=0;_i10<nodes.length;_i10++)for(var _node$operationTypes,node=nodes[_i10],operationTypesNodes=(_node$operationTypes=node.operationTypes)!==null&&_node$operationTypes!==void 0?_node$operationTypes:[],_i12=0;_i12<operationTypesNodes.length;_i12++){var operationType=operationTypesNodes[_i12];opTypes[operationType.operation]=getNamedType2(operationType.type)}return opTypes}function getNamedType2(node){var _stdTypeMap$name2,name2=node.name.value,type=(_stdTypeMap$name2=stdTypeMap[name2])!==null&&_stdTypeMap$name2!==void 0?_stdTypeMap$name2:typeMap[name2];if(type===void 0)throw new Error('Unknown type: "'.concat(name2,'".'));return type}function getWrappedType(node){return node.kind===kinds.h.LIST_TYPE?new GraphQLList(getWrappedType(node.type)):node.kind===kinds.h.NON_NULL_TYPE?new GraphQLNonNull(getWrappedType(node.type)):getNamedType2(node)}function buildDirective(node){var locations=node.locations.map(function(_ref){var value2=_ref.value;return value2});return new GraphQLDirective({name:node.name.value,description:getDescription(node,options),locations,isRepeatable:node.repeatable,args:buildArgumentMap(node.arguments),astNode:node})}function buildFieldMap(nodes){for(var fieldConfigMap=Object.create(null),_i14=0;_i14<nodes.length;_i14++)for(var _node$fields,node=nodes[_i14],nodeFields=(_node$fields=node.fields)!==null&&_node$fields!==void 0?_node$fields:[],_i16=0;_i16<nodeFields.length;_i16++){var field=nodeFields[_i16];fieldConfigMap[field.name.value]={type:getWrappedType(field.type),description:getDescription(field,options),args:buildArgumentMap(field.arguments),deprecationReason:getDeprecationReason(field),astNode:field}}return fieldConfigMap}function buildArgumentMap(args){for(var argsNodes=args??[],argConfigMap=Object.create(null),_i18=0;_i18<argsNodes.length;_i18++){var arg=argsNodes[_i18],type=getWrappedType(arg.type);argConfigMap[arg.name.value]={type,description:getDescription(arg,options),defaultValue:valueFromAST(arg.defaultValue,type),deprecationReason:getDeprecationReason(arg),astNode:arg}}return argConfigMap}function buildInputFieldMap(nodes){for(var inputFieldMap=Object.create(null),_i20=0;_i20<nodes.length;_i20++)for(var _node$fields2,node=nodes[_i20],fieldsNodes=(_node$fields2=node.fields)!==null&&_node$fields2!==void 0?_node$fields2:[],_i22=0;_i22<fieldsNodes.length;_i22++){var field=fieldsNodes[_i22],type=getWrappedType(field.type);inputFieldMap[field.name.value]={type,description:getDescription(field,options),defaultValue:valueFromAST(field.defaultValue,type),deprecationReason:getDeprecationReason(field),astNode:field}}return inputFieldMap}function buildEnumValueMap(nodes){for(var enumValueMap=Object.create(null),_i24=0;_i24<nodes.length;_i24++)for(var _node$values,node=nodes[_i24],valuesNodes=(_node$values=node.values)!==null&&_node$values!==void 0?_node$values:[],_i26=0;_i26<valuesNodes.length;_i26++){var value2=valuesNodes[_i26];enumValueMap[value2.name.value]={description:getDescription(value2,options),deprecationReason:getDeprecationReason(value2),astNode:value2}}return enumValueMap}function buildInterfaces(nodes){for(var interfaces=[],_i28=0;_i28<nodes.length;_i28++)for(var _node$interfaces,node=nodes[_i28],interfacesNodes=(_node$interfaces=node.interfaces)!==null&&_node$interfaces!==void 0?_node$interfaces:[],_i30=0;_i30<interfacesNodes.length;_i30++){var type=interfacesNodes[_i30];interfaces.push(getNamedType2(type))}return interfaces}function buildUnionTypes(nodes){for(var types=[],_i32=0;_i32<nodes.length;_i32++)for(var _node$types,node=nodes[_i32],typeNodes=(_node$types=node.types)!==null&&_node$types!==void 0?_node$types:[],_i34=0;_i34<typeNodes.length;_i34++){var type=typeNodes[_i34];types.push(getNamedType2(type))}return types}function buildType(astNode){var _typeExtensionsMap$na,name2=astNode.name.value,description=getDescription(astNode,options),extensionNodes=(_typeExtensionsMap$na=typeExtensionsMap[name2])!==null&&_typeExtensionsMap$na!==void 0?_typeExtensionsMap$na:[];switch(astNode.kind){case kinds.h.OBJECT_TYPE_DEFINITION:{var extensionASTNodes=extensionNodes,allNodes=[astNode].concat(extensionASTNodes);return new GraphQLObjectType({name:name2,description,interfaces:function(){return buildInterfaces(allNodes)},fields:function(){return buildFieldMap(allNodes)},astNode,extensionASTNodes})}case kinds.h.INTERFACE_TYPE_DEFINITION:{var _extensionASTNodes=extensionNodes,_allNodes=[astNode].concat(_extensionASTNodes);return new GraphQLInterfaceType({name:name2,description,interfaces:function(){return buildInterfaces(_allNodes)},fields:function(){return buildFieldMap(_allNodes)},astNode,extensionASTNodes:_extensionASTNodes})}case kinds.h.ENUM_TYPE_DEFINITION:{var _extensionASTNodes2=extensionNodes,_allNodes2=[astNode].concat(_extensionASTNodes2);return new GraphQLEnumType({name:name2,description,values:buildEnumValueMap(_allNodes2),astNode,extensionASTNodes:_extensionASTNodes2})}case kinds.h.UNION_TYPE_DEFINITION:{var _extensionASTNodes3=extensionNodes,_allNodes3=[astNode].concat(_extensionASTNodes3);return new GraphQLUnionType({name:name2,description,types:function(){return buildUnionTypes(_allNodes3)},astNode,extensionASTNodes:_extensionASTNodes3})}case kinds.h.SCALAR_TYPE_DEFINITION:{var _extensionASTNodes4=extensionNodes;return new GraphQLScalarType({name:name2,description,specifiedByUrl:getSpecifiedByUrl(astNode),astNode,extensionASTNodes:_extensionASTNodes4})}case kinds.h.INPUT_OBJECT_TYPE_DEFINITION:{var _extensionASTNodes5=extensionNodes,_allNodes4=[astNode].concat(_extensionASTNodes5);return new GraphQLInputObjectType({name:name2,description,fields:function(){return buildInputFieldMap(_allNodes4)},astNode,extensionASTNodes:_extensionASTNodes5})}}(0,invariant.Z)(0,"Unexpected type definition node: "+(0,inspect.Z)(astNode))}}var stdTypeMap=keyMap(specifiedScalarTypes.concat(introspectionTypes),function(type){return type.name});function getDeprecationReason(node){var deprecated=getDirectiveValues(GraphQLDeprecatedDirective,node);return deprecated?.reason}function getSpecifiedByUrl(node){var specifiedBy=getDirectiveValues(GraphQLSpecifiedByDirective,node);return specifiedBy?.url}function getDescription(node,options){if(node.description)return node.description.value;if(options?.commentDescriptions===!0){var rawValue=getLeadingCommentBlock(node);if(rawValue!==void 0)return(0,language_blockString.W7)(`
|
207
207
|
`+rawValue)}}function getLeadingCommentBlock(node){var loc=node.loc;if(!!loc){for(var comments=[],token=loc.startToken.prev;token!=null&&token.kind===language_tokenKind.T.COMMENT&&token.next&&token.prev&&token.line+1===token.next.line&&token.line!==token.prev.line;){var value2=String(token.value);comments.push(value2),token=token.prev}return comments.length>0?comments.reverse().join(`
|
208
208
|
`):void 0}}function buildASTSchema(documentAST,options){documentAST!=null&&documentAST.kind===kinds.h.DOCUMENT||(0,devAssert.Z)(0,"Must provide valid Document AST."),options?.assumeValid!==!0&&options?.assumeValidSDL!==!0&&assertValidSDL(documentAST);var emptySchemaConfig={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},config=extendSchemaImpl(emptySchemaConfig,documentAST,options);if(config.astNode==null)for(var _i2=0,_config$types2=config.types;_i2<_config$types2.length;_i2++){var type=_config$types2[_i2];switch(type.name){case"Query":config.query=type;break;case"Mutation":config.mutation=type;break;case"Subscription":config.subscription=type;break}}for(var directives=config.directives,_loop=function(_i42){var stdDirective=specifiedDirectives[_i42];directives.every(function(directive){return directive.name!==stdDirective.name})&&directives.push(stdDirective)},_i4=0;_i4<specifiedDirectives.length;_i4++)_loop(_i4);return new GraphQLSchema(config)}function buildSchema(source,options){var document2=(0,parser.parse)(source,{noLocation:options?.noLocation,allowLegacySDLEmptyFields:options?.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:options?.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:options?.experimentalFragmentVariables});return buildASTSchema(document2,{commentDescriptions:options?.commentDescriptions,assumeValidSDL:options?.assumeValidSDL,assumeValid:options?.assumeValid})}function lexicographicSortSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols2=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols2=symbols2.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols2)}return keys}function lexicographicSortSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?lexicographicSortSchema_ownKeys(Object(source),!0).forEach(function(key){lexicographicSortSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):lexicographicSortSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function lexicographicSortSchema_defineProperty(obj,key,value2){return key in obj?Object.defineProperty(obj,key,{value:value2,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value2,obj}function lexicographicSortSchema(schema){var schemaConfig=schema.toConfig(),typeMap=keyValMap(sortByName(schemaConfig.types),function(type){return type.name},sortNamedType);return new GraphQLSchema(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},schemaConfig),{},{types:polyfills_objectValues(typeMap),directives:sortByName(schemaConfig.directives).map(sortDirective),query:replaceMaybeType(schemaConfig.query),mutation:replaceMaybeType(schemaConfig.mutation),subscription:replaceMaybeType(schemaConfig.subscription)}));function replaceType(type){return isListType(type)?new GraphQLList(replaceType(type.ofType)):isNonNullType(type)?new GraphQLNonNull(replaceType(type.ofType)):replaceNamedType(type)}function replaceNamedType(type){return typeMap[type.name]}function replaceMaybeType(maybeType){return maybeType&&replaceNamedType(maybeType)}function sortDirective(directive){var config=directive.toConfig();return new GraphQLDirective(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},config),{},{locations:sortBy(config.locations,function(x){return x}),args:sortArgs(config.args)}))}function sortArgs(args){return sortObjMap(args,function(arg){return lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},arg),{},{type:replaceType(arg.type)})})}function sortFields(fieldsMap){return sortObjMap(fieldsMap,function(field){return lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},field),{},{type:replaceType(field.type),args:sortArgs(field.args)})})}function sortInputFields(fieldsMap){return sortObjMap(fieldsMap,function(field){return lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},field),{},{type:replaceType(field.type)})})}function sortTypes(arr){return sortByName(arr).map(replaceNamedType)}function sortNamedType(type){if(isScalarType(type)||isIntrospectionType(type))return type;if(isObjectType(type)){var config=type.toConfig();return new GraphQLObjectType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},config),{},{interfaces:function(){return sortTypes(config.interfaces)},fields:function(){return sortFields(config.fields)}}))}if(isInterfaceType(type)){var _config=type.toConfig();return new GraphQLInterfaceType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config),{},{interfaces:function(){return sortTypes(_config.interfaces)},fields:function(){return sortFields(_config.fields)}}))}if(isUnionType(type)){var _config2=type.toConfig();return new GraphQLUnionType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config2),{},{types:function(){return sortTypes(_config2.types)}}))}if(isEnumType(type)){var _config3=type.toConfig();return new GraphQLEnumType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config3),{},{values:sortObjMap(_config3.values)}))}if(isInputObjectType(type)){var _config4=type.toConfig();return new GraphQLInputObjectType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config4),{},{fields:function(){return sortInputFields(_config4.fields)}}))}(0,invariant.Z)(0,"Unexpected type: "+(0,inspect.Z)(type))}}function sortObjMap(map,sortValueFn){for(var sortedMap=Object.create(null),sortedKeys=sortBy(Object.keys(map),function(x){return x}),_i2=0;_i2<sortedKeys.length;_i2++){var key=sortedKeys[_i2],value2=map[key];sortedMap[key]=sortValueFn?sortValueFn(value2):value2}return sortedMap}function sortByName(array){return sortBy(array,function(obj){return obj.name})}function sortBy(array,mapToKey){return array.slice().sort(function(obj1,obj2){var key1=mapToKey(obj1),key2=mapToKey(obj2);return naturalCompare(key1,key2)})}function printSchema(schema,options){return printFilteredSchema(schema,function(n){return!isSpecifiedDirective(n)},isDefinedType,options)}function printIntrospectionSchema(schema,options){return printFilteredSchema(schema,isSpecifiedDirective,isIntrospectionType,options)}function isDefinedType(type){return!isSpecifiedScalarType(type)&&!isIntrospectionType(type)}function printFilteredSchema(schema,directiveFilter,typeFilter,options){var directives=schema.getDirectives().filter(directiveFilter),types=polyfills_objectValues(schema.getTypeMap()).filter(typeFilter);return[printSchemaDefinition(schema)].concat(directives.map(function(directive){return printDirective(directive,options)}),types.map(function(type){return printType(type,options)})).filter(Boolean).join(`
|
209
209
|
|
@@ -232,7 +232,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
232
232
|
`+indentation),result+=indentation?value2.replace(/\n/g,`
|
233
233
|
`+indentation):value2,printAsMultipleLines&&(result+=`
|
234
234
|
`),'"""'+result.replace(/"""/g,'\\"""')+'"""'}},72395:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>DirectiveLocation});var DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},47336:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>Kind});var Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},50571:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>Lexer,u:()=>isPunctuatorTokenKind});var _error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(51798),_ast_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8074),_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(81416),_blockString_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(49336),Lexer=function(){function Lexer2(source){var startOfFileToken=new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.SOF,0,0,0,0,null);this.source=source,this.lastToken=startOfFileToken,this.token=startOfFileToken,this.line=1,this.lineStart=0}var _proto=Lexer2.prototype;return _proto.advance=function(){this.lastToken=this.token;var token=this.token=this.lookahead();return token},_proto.lookahead=function(){var token=this.token;if(token.kind!==_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.EOF)do{var _token$next;token=(_token$next=token.next)!==null&&_token$next!==void 0?_token$next:token.next=readToken(this,token)}while(token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.COMMENT);return token},Lexer2}();function isPunctuatorTokenKind(kind){return kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BANG||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.DOLLAR||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.AMP||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.PAREN_L||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.PAREN_R||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.SPREAD||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.COLON||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.EQUALS||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.AT||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACKET_L||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACKET_R||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACE_L||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.PIPE||kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACE_R}function printCharCode(code){return isNaN(code)?_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.EOF:code<127?JSON.stringify(String.fromCharCode(code)):'"\\u'.concat(("00"+code.toString(16).toUpperCase()).slice(-4),'"')}function readToken(lexer,prev){for(var source=lexer.source,body=source.body,bodyLength=body.length,pos=prev.end;pos<bodyLength;){var code=body.charCodeAt(pos),_line=lexer.line,_col=1+pos-lexer.lineStart;switch(code){case 65279:case 9:case 32:case 44:++pos;continue;case 10:++pos,++lexer.line,lexer.lineStart=pos;continue;case 13:body.charCodeAt(pos+1)===10?pos+=2:++pos,++lexer.line,lexer.lineStart=pos;continue;case 33:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BANG,pos,pos+1,_line,_col,prev);case 35:return readComment(source,pos,_line,_col,prev);case 36:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.DOLLAR,pos,pos+1,_line,_col,prev);case 38:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.AMP,pos,pos+1,_line,_col,prev);case 40:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.PAREN_L,pos,pos+1,_line,_col,prev);case 41:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.PAREN_R,pos,pos+1,_line,_col,prev);case 46:if(body.charCodeAt(pos+1)===46&&body.charCodeAt(pos+2)===46)return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.SPREAD,pos,pos+3,_line,_col,prev);break;case 58:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.COLON,pos,pos+1,_line,_col,prev);case 61:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.EQUALS,pos,pos+1,_line,_col,prev);case 64:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.AT,pos,pos+1,_line,_col,prev);case 91:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACKET_L,pos,pos+1,_line,_col,prev);case 93:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACKET_R,pos,pos+1,_line,_col,prev);case 123:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACE_L,pos,pos+1,_line,_col,prev);case 124:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.PIPE,pos,pos+1,_line,_col,prev);case 125:return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BRACE_R,pos,pos+1,_line,_col,prev);case 34:return body.charCodeAt(pos+1)===34&&body.charCodeAt(pos+2)===34?readBlockString(source,pos,_line,_col,prev,lexer):readString(source,pos,_line,_col,prev);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(source,pos,code,_line,_col,prev);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(source,pos,_line,_col,prev)}throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,pos,unexpectedCharacterMessage(code))}var line=lexer.line,col=1+pos-lexer.lineStart;return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.EOF,bodyLength,bodyLength,line,col,prev)}function unexpectedCharacterMessage(code){return code<32&&code!==9&&code!==10&&code!==13?"Cannot contain the invalid character ".concat(printCharCode(code),"."):code===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(printCharCode(code),".")}function readComment(source,start,line,col,prev){var body=source.body,code,position=start;do code=body.charCodeAt(++position);while(!isNaN(code)&&(code>31||code===9));return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.COMMENT,start,position,line,col,prev,body.slice(start+1,position))}function readNumber(source,start,firstCode,line,col,prev){var body=source.body,code=firstCode,position=start,isFloat=!1;if(code===45&&(code=body.charCodeAt(++position)),code===48){if(code=body.charCodeAt(++position),code>=48&&code<=57)throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid number, unexpected digit after 0: ".concat(printCharCode(code),"."))}else position=readDigits(source,position,code),code=body.charCodeAt(position);if(code===46&&(isFloat=!0,code=body.charCodeAt(++position),position=readDigits(source,position,code),code=body.charCodeAt(position)),(code===69||code===101)&&(isFloat=!0,code=body.charCodeAt(++position),(code===43||code===45)&&(code=body.charCodeAt(++position)),position=readDigits(source,position,code),code=body.charCodeAt(position)),code===46||isNameStart(code))throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."));return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(isFloat?_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.FLOAT:_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.INT,start,position,line,col,prev,body.slice(start,position))}function readDigits(source,start,firstCode){var body=source.body,position=start,code=firstCode;if(code>=48&&code<=57){do code=body.charCodeAt(++position);while(code>=48&&code<=57);return position}throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."))}function readString(source,start,line,col,prev){for(var body=source.body,position=start+1,chunkStart=position,code=0,value2="";position<body.length&&!isNaN(code=body.charCodeAt(position))&&code!==10&&code!==13;){if(code===34)return value2+=body.slice(chunkStart,position),new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.STRING,start,position+1,line,col,prev,value2);if(code<32&&code!==9)throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));if(++position,code===92){switch(value2+=body.slice(chunkStart,position-1),code=body.charCodeAt(position),code){case 34:value2+='"';break;case 47:value2+="/";break;case 92:value2+="\\";break;case 98:value2+="\b";break;case 102:value2+="\f";break;case 110:value2+=`
|
235
|
-
`;break;case 114:value2+="\r";break;case 116:value2+=" ";break;case 117:{var charCode=uniCharCode(body.charCodeAt(position+1),body.charCodeAt(position+2),body.charCodeAt(position+3),body.charCodeAt(position+4));if(charCode<0){var invalidSequence=body.slice(position+1,position+5);throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character escape sequence: \\u".concat(invalidSequence,"."))}value2+=String.fromCharCode(charCode),position+=4;break}default:throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character escape sequence: \\".concat(String.fromCharCode(code),"."))}++position,chunkStart=position}}throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Unterminated string.")}function readBlockString(source,start,line,col,prev,lexer){for(var body=source.body,position=start+3,chunkStart=position,code=0,rawValue="";position<body.length&&!isNaN(code=body.charCodeAt(position));){if(code===34&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34)return rawValue+=body.slice(chunkStart,position),new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BLOCK_STRING,start,position+3,line,col,prev,(0,_blockString_mjs__WEBPACK_IMPORTED_MODULE_3__.W7)(rawValue));if(code<32&&code!==9&&code!==10&&code!==13)throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));code===10?(++position,++lexer.line,lexer.lineStart=position):code===13?(body.charCodeAt(position+1)===10?position+=2:++position,++lexer.line,lexer.lineStart=position):code===92&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34&&body.charCodeAt(position+3)===34?(rawValue+=body.slice(chunkStart,position)+'"""',position+=4,chunkStart=position):++position}throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Unterminated string.")}function uniCharCode(a,b,c,d){return char2hex(a)<<12|char2hex(b)<<8|char2hex(c)<<4|char2hex(d)}function char2hex(a){return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:-1}function readName(source,start,line,col,prev){for(var body=source.body,bodyLength=body.length,position=start+1,code=0;position!==bodyLength&&!isNaN(code=body.charCodeAt(position))&&(code===95||code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122);)++position;return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.NAME,start,position,line,col,prev,body.slice(start,position))}function isNameStart(code){return code===95||code>=65&&code<=90||code>=97&&code<=122}},34671:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{k:()=>getLocation});function getLocation(source,position){for(var lineRegexp=/\r\n|[\n\r]/g,line=1,column=position+1,match;(match=lineRegexp.exec(source.body))&&match.index<position;)line+=1,column=position+1-(match.index+match[0].length);return{line,column}}},64929:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Parser:()=>Parser,parse:()=>parse,parseType:()=>parseType,parseValue:()=>parseValue});var _error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(51798),_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(47336),_ast_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8074),_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(81416),_source_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85387),_directiveLocation_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(72395),_lexer_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(50571);function parse(source,options){var parser=new Parser(source,options);return parser.parseDocument()}function parseValue(source,options){var parser=new Parser(source,options);parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SOF);var value2=parser.parseValueLiteral(!1);return parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EOF),value2}function parseType(source,options){var parser=new Parser(source,options);parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SOF);var type=parser.parseTypeReference();return parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EOF),type}var Parser=function(){function Parser2(source,options){var sourceObj=(0,_source_mjs__WEBPACK_IMPORTED_MODULE_1__.T)(source)?source:new _source_mjs__WEBPACK_IMPORTED_MODULE_1__.H(source);this._lexer=new _lexer_mjs__WEBPACK_IMPORTED_MODULE_2__.h(sourceObj),this._options=options}var _proto=Parser2.prototype;return _proto.parseName=function(){var token=this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NAME,value:token.value,loc:this.loc(token)}},_proto.parseDocument=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.DOCUMENT,definitions:this.many(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SOF,this.parseDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EOF),loc:this.loc(start)}},_proto.parseDefinition=function(){if(this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},_proto.parseOperationDefinition=function(){var start=this._lexer.token;if(this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L))return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(start)};var operation=this.parseOperationType(),name;return this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)&&(name=this.parseName()),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OPERATION_DEFINITION,operation,name,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseOperationType=function(){var operationToken=this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME);switch(operationToken.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(operationToken)},_proto.parseVariableDefinitions=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_L,this.parseVariableDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_R)},_proto.parseVariableDefinition=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(start)}},_proto.parseVariable=function(){var start=this._lexer.token;return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.DOLLAR),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.VARIABLE,name:this.parseName(),loc:this.loc(start)}},_proto.parseSelectionSet=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SELECTION_SET,selections:this.many(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseSelection,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R),loc:this.loc(start)}},_proto.parseSelection=function(){return this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SPREAD)?this.parseFragment():this.parseField()},_proto.parseField=function(){var start=this._lexer.token,nameOrAlias=this.parseName(),alias,name;return this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON)?(alias=nameOrAlias,name=this.parseName()):name=nameOrAlias,{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FIELD,alias,name,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(start)}},_proto.parseArguments=function(isConst){var item=isConst?this.parseConstArgument:this.parseArgument;return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_L,item,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_R)},_proto.parseArgument=function(){var start=this._lexer.token,name=this.parseName();return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ARGUMENT,name,value:this.parseValueLiteral(!1),loc:this.loc(start)}},_proto.parseConstArgument=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(start)}},_proto.parseFragment=function(){var start=this._lexer.token;this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SPREAD);var hasTypeCondition=this.expectOptionalKeyword("on");return!hasTypeCondition&&this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)?{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(start)}:{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INLINE_FRAGMENT,typeCondition:hasTypeCondition?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentDefinition=function(){var _this$_options,start=this._lexer.token;return this.expectKeyword("fragment"),((_this$_options=this._options)===null||_this$_options===void 0?void 0:_this$_options.experimentalFragmentVariables)===!0?{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}:{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},_proto.parseValueLiteral=function(isConst){var token=this._lexer.token;switch(token.kind){case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_L:return this.parseList(isConst);case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L:return this.parseObject(isConst);case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.INT:return this._lexer.advance(),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INT,value:token.value,loc:this.loc(token)};case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.FLOAT:return this._lexer.advance(),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FLOAT,value:token.value,loc:this.loc(token)};case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.STRING:case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BLOCK_STRING:return this.parseStringLiteral();case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME:switch(this._lexer.advance(),token.value){case"true":return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.BOOLEAN,value:!0,loc:this.loc(token)};case"false":return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.BOOLEAN,value:!1,loc:this.loc(token)};case"null":return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NULL,loc:this.loc(token)};default:return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM,value:token.value,loc:this.loc(token)}}case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.DOLLAR:if(!isConst)return this.parseVariable();break}throw this.unexpected()},_proto.parseStringLiteral=function(){var token=this._lexer.token;return this._lexer.advance(),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.STRING,value:token.value,block:token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BLOCK_STRING,loc:this.loc(token)}},_proto.parseList=function(isConst){var _this=this,start=this._lexer.token,item=function(){return _this.parseValueLiteral(isConst)};return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.LIST,values:this.any(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_L,item,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_R),loc:this.loc(start)}},_proto.parseObject=function(isConst){var _this2=this,start=this._lexer.token,item=function(){return _this2.parseObjectField(isConst)};return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT,fields:this.any(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,item,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R),loc:this.loc(start)}},_proto.parseObjectField=function(isConst){var start=this._lexer.token,name=this.parseName();return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT_FIELD,name,value:this.parseValueLiteral(isConst),loc:this.loc(start)}},_proto.parseDirectives=function(isConst){for(var directives=[];this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AT);)directives.push(this.parseDirective(isConst));return directives},_proto.parseDirective=function(isConst){var start=this._lexer.token;return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AT),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(isConst),loc:this.loc(start)}},_proto.parseTypeReference=function(){var start=this._lexer.token,type;return this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_L)?(type=this.parseTypeReference(),this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_R),type={kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.LIST_TYPE,type,loc:this.loc(start)}):type=this.parseNamedType(),this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BANG)?{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NON_NULL_TYPE,type,loc:this.loc(start)}:type},_proto.parseNamedType=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(start)}},_proto.parseTypeSystemDefinition=function(){var keywordToken=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(keywordToken.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(keywordToken)},_proto.peekDescription=function(){return this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.STRING)||this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BLOCK_STRING)},_proto.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},_proto.parseSchemaDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.many(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseOperationTypeDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCHEMA_DEFINITION,description,directives,operationTypes,loc:this.loc(start)}},_proto.parseOperationTypeDefinition=function(){var start=this._lexer.token,operation=this.parseOperationType();this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON);var type=this.parseNamedType();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OPERATION_TYPE_DEFINITION,operation,type,loc:this.loc(start)}},_proto.parseScalarTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCALAR_TYPE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseImplementsInterfaces=function(){var _this$_options2;if(!this.expectOptionalKeyword("implements"))return[];if(((_this$_options2=this._options)===null||_this$_options2===void 0?void 0:_this$_options2.allowLegacySDLImplementsInterfaces)===!0){var types=[];this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AMP);do types.push(this.parseNamedType());while(this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AMP)||this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME));return types}return this.delimitedMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AMP,this.parseNamedType)},_proto.parseFieldsDefinition=function(){var _this$_options3;return((_this$_options3=this._options)===null||_this$_options3===void 0?void 0:_this$_options3.allowLegacySDLEmptyFields)===!0&&this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L)&&this._lexer.lookahead().kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseFieldDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R)},_proto.parseFieldDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),args=this.parseArgumentDefs();this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON);var type=this.parseTypeReference(),directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FIELD_DEFINITION,description,name,arguments:args,type,directives,loc:this.loc(start)}},_proto.parseArgumentDefs=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_L,this.parseInputValueDef,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_R)},_proto.parseInputValueDef=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName();this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON);var type=this.parseTypeReference(),defaultValue;this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EQUALS)&&(defaultValue=this.parseValueLiteral(!0));var directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INPUT_VALUE_DEFINITION,description,name,type,defaultValue,directives,loc:this.loc(start)}},_proto.parseInterfaceTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INTERFACE_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.UNION_TYPE_DEFINITION,description,name,directives,types,loc:this.loc(start)}},_proto.parseUnionMemberTypes=function(){return this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EQUALS)?this.delimitedMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PIPE,this.parseNamedType):[]},_proto.parseEnumTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM_TYPE_DEFINITION,description,name,directives,values,loc:this.loc(start)}},_proto.parseEnumValuesDefinition=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseEnumValueDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R)},_proto.parseEnumValueDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM_VALUE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseInputObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INPUT_OBJECT_TYPE_DEFINITION,description,name,directives,fields,loc:this.loc(start)}},_proto.parseInputFieldsDefinition=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseInputValueDef,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R)},_proto.parseTypeSystemExtension=function(){var keywordToken=this._lexer.lookahead();if(keywordToken.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(keywordToken)},_proto.parseSchemaExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseOperationTypeDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R);if(directives.length===0&&operationTypes.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCHEMA_EXTENSION,directives,operationTypes,loc:this.loc(start)}},_proto.parseScalarTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);if(directives.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCALAR_TYPE_EXTENSION,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseInterfaceTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INTERFACE_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();if(directives.length===0&&types.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.UNION_TYPE_EXTENSION,name,directives,types,loc:this.loc(start)}},_proto.parseEnumTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();if(directives.length===0&&values.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM_TYPE_EXTENSION,name,directives,values,loc:this.loc(start)}},_proto.parseInputObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();if(directives.length===0&&fields.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INPUT_OBJECT_TYPE_EXTENSION,name,directives,fields,loc:this.loc(start)}},_proto.parseDirectiveDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("directive"),this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AT);var name=this.parseName(),args=this.parseArgumentDefs(),repeatable=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var locations=this.parseDirectiveLocations();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.DIRECTIVE_DEFINITION,description,name,arguments:args,repeatable,locations,loc:this.loc(start)}},_proto.parseDirectiveLocations=function(){return this.delimitedMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PIPE,this.parseDirectiveLocation)},_proto.parseDirectiveLocation=function(){var start=this._lexer.token,name=this.parseName();if(_directiveLocation_mjs__WEBPACK_IMPORTED_MODULE_4__.B[name.value]!==void 0)return name;throw this.unexpected(start)},_proto.loc=function(startToken){var _this$_options4;if(((_this$_options4=this._options)===null||_this$_options4===void 0?void 0:_this$_options4.noLocation)!==!0)return new _ast_mjs__WEBPACK_IMPORTED_MODULE_5__.Ye(startToken,this._lexer.lastToken,this._lexer.source)},_proto.peek=function(kind){return this._lexer.token.kind===kind},_proto.expectToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token;throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__.h)(this._lexer.source,token.start,"Expected ".concat(getTokenKindDesc(kind),", found ").concat(getTokenDesc(token),"."))},_proto.expectOptionalToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token},_proto.expectKeyword=function(value2){var token=this._lexer.token;if(token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME&&token.value===value2)this._lexer.advance();else throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__.h)(this._lexer.source,token.start,'Expected "'.concat(value2,'", found ').concat(getTokenDesc(token),"."))},_proto.expectOptionalKeyword=function(value2){var token=this._lexer.token;return token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME&&token.value===value2?(this._lexer.advance(),!0):!1},_proto.unexpected=function(atToken){var token=atToken??this._lexer.token;return(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__.h)(this._lexer.source,token.start,"Unexpected ".concat(getTokenDesc(token),"."))},_proto.any=function(openKind,parseFn,closeKind){this.expectToken(openKind);for(var nodes=[];!this.expectOptionalToken(closeKind);)nodes.push(parseFn.call(this));return nodes},_proto.optionalMany=function(openKind,parseFn,closeKind){if(this.expectOptionalToken(openKind)){var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes}return[]},_proto.many=function(openKind,parseFn,closeKind){this.expectToken(openKind);var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes},_proto.delimitedMany=function(delimiterKind,parseFn){this.expectOptionalToken(delimiterKind);var nodes=[];do nodes.push(parseFn.call(this));while(this.expectOptionalToken(delimiterKind));return nodes},Parser2}();function getTokenDesc(token){var value2=token.value;return getTokenKindDesc(token.kind)+(value2!=null?' "'.concat(value2,'"'):"")}function getTokenKindDesc(kind){return(0,_lexer_mjs__WEBPACK_IMPORTED_MODULE_2__.u)(kind)?'"'.concat(kind,'"'):kind}},19866:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>printLocation,z:()=>printSourceLocation});var _location_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(34671);function printLocation(location){return printSourceLocation(location.source,(0,_location_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(location.source,location.start))}function printSourceLocation(source,sourceLocation){var firstLineColumnOffset=source.locationOffset.column-1,body=whitespace(firstLineColumnOffset)+source.body,lineIndex=sourceLocation.line-1,lineOffset=source.locationOffset.line-1,lineNum=sourceLocation.line+lineOffset,columnOffset=sourceLocation.line===1?firstLineColumnOffset:0,columnNum=sourceLocation.column+columnOffset,locationStr="".concat(source.name,":").concat(lineNum,":").concat(columnNum,`
|
235
|
+
`;break;case 114:value2+="\r";break;case 116:value2+=" ";break;case 117:{var charCode=uniCharCode(body.charCodeAt(position+1),body.charCodeAt(position+2),body.charCodeAt(position+3),body.charCodeAt(position+4));if(charCode<0){var invalidSequence=body.slice(position+1,position+5);throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character escape sequence: \\u".concat(invalidSequence,"."))}value2+=String.fromCharCode(charCode),position+=4;break}default:throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character escape sequence: \\".concat(String.fromCharCode(code),"."))}++position,chunkStart=position}}throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Unterminated string.")}function readBlockString(source,start,line,col,prev,lexer){for(var body=source.body,position=start+3,chunkStart=position,code=0,rawValue="";position<body.length&&!isNaN(code=body.charCodeAt(position));){if(code===34&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34)return rawValue+=body.slice(chunkStart,position),new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.BLOCK_STRING,start,position+3,line,col,prev,(0,_blockString_mjs__WEBPACK_IMPORTED_MODULE_3__.W7)(rawValue));if(code<32&&code!==9&&code!==10&&code!==13)throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));code===10?(++position,++lexer.line,lexer.lineStart=position):code===13?(body.charCodeAt(position+1)===10?position+=2:++position,++lexer.line,lexer.lineStart=position):code===92&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34&&body.charCodeAt(position+3)===34?(rawValue+=body.slice(chunkStart,position)+'"""',position+=4,chunkStart=position):++position}throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_2__.h)(source,position,"Unterminated string.")}function uniCharCode(a,b,c,d){return char2hex(a)<<12|char2hex(b)<<8|char2hex(c)<<4|char2hex(d)}function char2hex(a){return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:-1}function readName(source,start,line,col,prev){for(var body=source.body,bodyLength=body.length,position=start+1,code=0;position!==bodyLength&&!isNaN(code=body.charCodeAt(position))&&(code===95||code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122);)++position;return new _ast_mjs__WEBPACK_IMPORTED_MODULE_0__.WU(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_1__.T.NAME,start,position,line,col,prev,body.slice(start,position))}function isNameStart(code){return code===95||code>=65&&code<=90||code>=97&&code<=122}},34671:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{k:()=>getLocation});function getLocation(source,position){for(var lineRegexp=/\r\n|[\n\r]/g,line=1,column=position+1,match;(match=lineRegexp.exec(source.body))&&match.index<position;)line+=1,column=position+1-(match.index+match[0].length);return{line,column}}},64929:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Parser:()=>Parser,parse:()=>parse,parseType:()=>parseType,parseValue:()=>parseValue});var _error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(51798),_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(47336),_ast_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8074),_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(81416),_source_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85387),_directiveLocation_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(72395),_lexer_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(50571);function parse(source,options){var parser=new Parser(source,options);return parser.parseDocument()}function parseValue(source,options){var parser=new Parser(source,options);parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SOF);var value2=parser.parseValueLiteral(!1);return parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EOF),value2}function parseType(source,options){var parser=new Parser(source,options);parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SOF);var type=parser.parseTypeReference();return parser.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EOF),type}var Parser=function(){function Parser2(source,options){var sourceObj=(0,_source_mjs__WEBPACK_IMPORTED_MODULE_1__.T)(source)?source:new _source_mjs__WEBPACK_IMPORTED_MODULE_1__.H(source);this._lexer=new _lexer_mjs__WEBPACK_IMPORTED_MODULE_2__.h(sourceObj),this._options=options}var _proto=Parser2.prototype;return _proto.parseName=function(){var token=this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NAME,value:token.value,loc:this.loc(token)}},_proto.parseDocument=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.DOCUMENT,definitions:this.many(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SOF,this.parseDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EOF),loc:this.loc(start)}},_proto.parseDefinition=function(){if(this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},_proto.parseOperationDefinition=function(){var start=this._lexer.token;if(this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L))return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(start)};var operation=this.parseOperationType(),name;return this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)&&(name=this.parseName()),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OPERATION_DEFINITION,operation,name,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseOperationType=function(){var operationToken=this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME);switch(operationToken.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(operationToken)},_proto.parseVariableDefinitions=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_L,this.parseVariableDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_R)},_proto.parseVariableDefinition=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(start)}},_proto.parseVariable=function(){var start=this._lexer.token;return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.DOLLAR),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.VARIABLE,name:this.parseName(),loc:this.loc(start)}},_proto.parseSelectionSet=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SELECTION_SET,selections:this.many(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseSelection,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R),loc:this.loc(start)}},_proto.parseSelection=function(){return this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SPREAD)?this.parseFragment():this.parseField()},_proto.parseField=function(){var start=this._lexer.token,nameOrAlias=this.parseName(),alias,name;return this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON)?(alias=nameOrAlias,name=this.parseName()):name=nameOrAlias,{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FIELD,alias,name,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(start)}},_proto.parseArguments=function(isConst){var item=isConst?this.parseConstArgument:this.parseArgument;return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_L,item,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_R)},_proto.parseArgument=function(){var start=this._lexer.token,name=this.parseName();return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ARGUMENT,name,value:this.parseValueLiteral(!1),loc:this.loc(start)}},_proto.parseConstArgument=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(start)}},_proto.parseFragment=function(){var start=this._lexer.token;this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.SPREAD);var hasTypeCondition=this.expectOptionalKeyword("on");return!hasTypeCondition&&this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)?{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(start)}:{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INLINE_FRAGMENT,typeCondition:hasTypeCondition?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentDefinition=function(){var _this$_options,start=this._lexer.token;return this.expectKeyword("fragment"),((_this$_options=this._options)===null||_this$_options===void 0?void 0:_this$_options.experimentalFragmentVariables)===!0?{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}:{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},_proto.parseValueLiteral=function(isConst){var token=this._lexer.token;switch(token.kind){case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_L:return this.parseList(isConst);case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L:return this.parseObject(isConst);case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.INT:return this._lexer.advance(),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INT,value:token.value,loc:this.loc(token)};case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.FLOAT:return this._lexer.advance(),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FLOAT,value:token.value,loc:this.loc(token)};case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.STRING:case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BLOCK_STRING:return this.parseStringLiteral();case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME:switch(this._lexer.advance(),token.value){case"true":return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.BOOLEAN,value:!0,loc:this.loc(token)};case"false":return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.BOOLEAN,value:!1,loc:this.loc(token)};case"null":return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NULL,loc:this.loc(token)};default:return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM,value:token.value,loc:this.loc(token)}}case _tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.DOLLAR:if(!isConst)return this.parseVariable();break}throw this.unexpected()},_proto.parseStringLiteral=function(){var token=this._lexer.token;return this._lexer.advance(),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.STRING,value:token.value,block:token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BLOCK_STRING,loc:this.loc(token)}},_proto.parseList=function(isConst){var _this=this,start=this._lexer.token,item=function(){return _this.parseValueLiteral(isConst)};return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.LIST,values:this.any(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_L,item,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_R),loc:this.loc(start)}},_proto.parseObject=function(isConst){var _this2=this,start=this._lexer.token,item=function(){return _this2.parseObjectField(isConst)};return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT,fields:this.any(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,item,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R),loc:this.loc(start)}},_proto.parseObjectField=function(isConst){var start=this._lexer.token,name=this.parseName();return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT_FIELD,name,value:this.parseValueLiteral(isConst),loc:this.loc(start)}},_proto.parseDirectives=function(isConst){for(var directives=[];this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AT);)directives.push(this.parseDirective(isConst));return directives},_proto.parseDirective=function(isConst){var start=this._lexer.token;return this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AT),{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(isConst),loc:this.loc(start)}},_proto.parseTypeReference=function(){var start=this._lexer.token,type;return this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_L)?(type=this.parseTypeReference(),this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACKET_R),type={kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.LIST_TYPE,type,loc:this.loc(start)}):type=this.parseNamedType(),this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BANG)?{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NON_NULL_TYPE,type,loc:this.loc(start)}:type},_proto.parseNamedType=function(){var start=this._lexer.token;return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(start)}},_proto.parseTypeSystemDefinition=function(){var keywordToken=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(keywordToken.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(keywordToken)},_proto.peekDescription=function(){return this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.STRING)||this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BLOCK_STRING)},_proto.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},_proto.parseSchemaDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.many(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseOperationTypeDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCHEMA_DEFINITION,description,directives,operationTypes,loc:this.loc(start)}},_proto.parseOperationTypeDefinition=function(){var start=this._lexer.token,operation=this.parseOperationType();this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON);var type=this.parseNamedType();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OPERATION_TYPE_DEFINITION,operation,type,loc:this.loc(start)}},_proto.parseScalarTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCALAR_TYPE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseImplementsInterfaces=function(){var _this$_options2;if(!this.expectOptionalKeyword("implements"))return[];if(((_this$_options2=this._options)===null||_this$_options2===void 0?void 0:_this$_options2.allowLegacySDLImplementsInterfaces)===!0){var types=[];this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AMP);do types.push(this.parseNamedType());while(this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AMP)||this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME));return types}return this.delimitedMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AMP,this.parseNamedType)},_proto.parseFieldsDefinition=function(){var _this$_options3;return((_this$_options3=this._options)===null||_this$_options3===void 0?void 0:_this$_options3.allowLegacySDLEmptyFields)===!0&&this.peek(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L)&&this._lexer.lookahead().kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseFieldDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R)},_proto.parseFieldDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),args=this.parseArgumentDefs();this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON);var type=this.parseTypeReference(),directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.FIELD_DEFINITION,description,name,arguments:args,type,directives,loc:this.loc(start)}},_proto.parseArgumentDefs=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_L,this.parseInputValueDef,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PAREN_R)},_proto.parseInputValueDef=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName();this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.COLON);var type=this.parseTypeReference(),defaultValue;this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EQUALS)&&(defaultValue=this.parseValueLiteral(!0));var directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INPUT_VALUE_DEFINITION,description,name,type,defaultValue,directives,loc:this.loc(start)}},_proto.parseInterfaceTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INTERFACE_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.UNION_TYPE_DEFINITION,description,name,directives,types,loc:this.loc(start)}},_proto.parseUnionMemberTypes=function(){return this.expectOptionalToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.EQUALS)?this.delimitedMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PIPE,this.parseNamedType):[]},_proto.parseEnumTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM_TYPE_DEFINITION,description,name,directives,values,loc:this.loc(start)}},_proto.parseEnumValuesDefinition=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseEnumValueDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R)},_proto.parseEnumValueDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),directives=this.parseDirectives(!0);return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM_VALUE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseInputObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INPUT_OBJECT_TYPE_DEFINITION,description,name,directives,fields,loc:this.loc(start)}},_proto.parseInputFieldsDefinition=function(){return this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseInputValueDef,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R)},_proto.parseTypeSystemExtension=function(){var keywordToken=this._lexer.lookahead();if(keywordToken.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(keywordToken)},_proto.parseSchemaExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.optionalMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_L,this.parseOperationTypeDefinition,_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.BRACE_R);if(directives.length===0&&operationTypes.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCHEMA_EXTENSION,directives,operationTypes,loc:this.loc(start)}},_proto.parseScalarTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);if(directives.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.SCALAR_TYPE_EXTENSION,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.OBJECT_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseInterfaceTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INTERFACE_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();if(directives.length===0&&types.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.UNION_TYPE_EXTENSION,name,directives,types,loc:this.loc(start)}},_proto.parseEnumTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();if(directives.length===0&&values.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.ENUM_TYPE_EXTENSION,name,directives,values,loc:this.loc(start)}},_proto.parseInputObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();if(directives.length===0&&fields.length===0)throw this.unexpected();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.INPUT_OBJECT_TYPE_EXTENSION,name,directives,fields,loc:this.loc(start)}},_proto.parseDirectiveDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("directive"),this.expectToken(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.AT);var name=this.parseName(),args=this.parseArgumentDefs(),repeatable=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var locations=this.parseDirectiveLocations();return{kind:_kinds_mjs__WEBPACK_IMPORTED_MODULE_3__.h.DIRECTIVE_DEFINITION,description,name,arguments:args,repeatable,locations,loc:this.loc(start)}},_proto.parseDirectiveLocations=function(){return this.delimitedMany(_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.PIPE,this.parseDirectiveLocation)},_proto.parseDirectiveLocation=function(){var start=this._lexer.token,name=this.parseName();if(_directiveLocation_mjs__WEBPACK_IMPORTED_MODULE_4__.B[name.value]!==void 0)return name;throw this.unexpected(start)},_proto.loc=function(startToken){var _this$_options4;if(((_this$_options4=this._options)===null||_this$_options4===void 0?void 0:_this$_options4.noLocation)!==!0)return new _ast_mjs__WEBPACK_IMPORTED_MODULE_5__.Ye(startToken,this._lexer.lastToken,this._lexer.source)},_proto.peek=function(kind){return this._lexer.token.kind===kind},_proto.expectToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token;throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__.h)(this._lexer.source,token.start,"Expected ".concat(getTokenKindDesc(kind),", found ").concat(getTokenDesc(token),"."))},_proto.expectOptionalToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token},_proto.expectKeyword=function(value2){var token=this._lexer.token;if(token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME&&token.value===value2)this._lexer.advance();else throw(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__.h)(this._lexer.source,token.start,'Expected "'.concat(value2,'", found ').concat(getTokenDesc(token),"."))},_proto.expectOptionalKeyword=function(value2){var token=this._lexer.token;return token.kind===_tokenKind_mjs__WEBPACK_IMPORTED_MODULE_0__.T.NAME&&token.value===value2?(this._lexer.advance(),!0):!1},_proto.unexpected=function(atToken){var token=atToken??this._lexer.token;return(0,_error_syntaxError_mjs__WEBPACK_IMPORTED_MODULE_6__.h)(this._lexer.source,token.start,"Unexpected ".concat(getTokenDesc(token),"."))},_proto.any=function(openKind,parseFn,closeKind){this.expectToken(openKind);for(var nodes=[];!this.expectOptionalToken(closeKind);)nodes.push(parseFn.call(this));return nodes},_proto.optionalMany=function(openKind,parseFn,closeKind){if(this.expectOptionalToken(openKind)){var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes}return[]},_proto.many=function(openKind,parseFn,closeKind){this.expectToken(openKind);var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes},_proto.delimitedMany=function(delimiterKind,parseFn){this.expectOptionalToken(delimiterKind);var nodes=[];do nodes.push(parseFn.call(this));while(this.expectOptionalToken(delimiterKind));return nodes},Parser2}();function getTokenDesc(token){var value2=token.value;return getTokenKindDesc(token.kind)+(value2!=null?' "'.concat(value2,'"'):"")}function getTokenKindDesc(kind){return(0,_lexer_mjs__WEBPACK_IMPORTED_MODULE_2__.u)(kind)?'"'.concat(kind,'"'):kind}},69050:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{D$:()=>isTypeExtensionNode,G4:()=>isTypeSystemDefinitionNode,Ir:()=>isDefinitionNode,VB:()=>isTypeNode,Wk:()=>isExecutableDefinitionNode,aU:()=>isTypeSystemExtensionNode,nr:()=>isValueNode,pO:()=>isSelectionNode,zT:()=>isTypeDefinitionNode});var _kinds_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(47336);function isDefinitionNode(node){return isExecutableDefinitionNode(node)||isTypeSystemDefinitionNode(node)||isTypeSystemExtensionNode(node)}function isExecutableDefinitionNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.OPERATION_DEFINITION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.FRAGMENT_DEFINITION}function isSelectionNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.FIELD||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.FRAGMENT_SPREAD||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.INLINE_FRAGMENT}function isValueNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.VARIABLE||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.INT||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.FLOAT||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.STRING||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.BOOLEAN||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.NULL||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.ENUM||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.LIST||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.OBJECT}function isTypeNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.NAMED_TYPE||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.LIST_TYPE||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.NON_NULL_TYPE}function isTypeSystemDefinitionNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.SCHEMA_DEFINITION||isTypeDefinitionNode(node)||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.SCALAR_TYPE_DEFINITION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.OBJECT_TYPE_DEFINITION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.INTERFACE_TYPE_DEFINITION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.UNION_TYPE_DEFINITION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.ENUM_TYPE_DEFINITION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.SCHEMA_EXTENSION||isTypeExtensionNode(node)}function isTypeExtensionNode(node){return node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.SCALAR_TYPE_EXTENSION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.OBJECT_TYPE_EXTENSION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.INTERFACE_TYPE_EXTENSION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.UNION_TYPE_EXTENSION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.ENUM_TYPE_EXTENSION||node.kind===_kinds_mjs__WEBPACK_IMPORTED_MODULE_0__.h.INPUT_OBJECT_TYPE_EXTENSION}},19866:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>printLocation,z:()=>printSourceLocation});var _location_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(34671);function printLocation(location){return printSourceLocation(location.source,(0,_location_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(location.source,location.start))}function printSourceLocation(source,sourceLocation){var firstLineColumnOffset=source.locationOffset.column-1,body=whitespace(firstLineColumnOffset)+source.body,lineIndex=sourceLocation.line-1,lineOffset=source.locationOffset.line-1,lineNum=sourceLocation.line+lineOffset,columnOffset=sourceLocation.line===1?firstLineColumnOffset:0,columnNum=sourceLocation.column+columnOffset,locationStr="".concat(source.name,":").concat(lineNum,":").concat(columnNum,`
|
236
236
|
`),lines=body.split(/\r\n|[\n\r]/g),locationLine=lines[lineIndex];if(locationLine.length>120){for(var subLineIndex=Math.floor(columnNum/80),subLineColumnNum=columnNum%80,subLines=[],i=0;i<locationLine.length;i+=80)subLines.push(locationLine.slice(i,i+80));return locationStr+printPrefixedLines([["".concat(lineNum),subLines[0]]].concat(subLines.slice(1,subLineIndex+1).map(function(subLine){return["",subLine]}),[[" ",whitespace(subLineColumnNum-1)+"^"],["",subLines[subLineIndex+1]]]))}return locationStr+printPrefixedLines([["".concat(lineNum-1),lines[lineIndex-1]],["".concat(lineNum),locationLine],["",whitespace(columnNum-1)+"^"],["".concat(lineNum+1),lines[lineIndex+1]]])}function printPrefixedLines(lines){var existingLines=lines.filter(function(_ref){var _=_ref[0],line=_ref[1];return line!==void 0}),padLen=Math.max.apply(Math,existingLines.map(function(_ref2){var prefix=_ref2[0];return prefix.length}));return existingLines.map(function(_ref3){var prefix=_ref3[0],line=_ref3[1];return leftPad(padLen,prefix)+(line?" | "+line:" |")}).join(`
|
237
237
|
`)}function whitespace(len){return Array(len+1).join(" ")}function leftPad(len,str){return whitespace(len-str.length)+str}},69377:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{print:()=>print});var _visitor_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(91545),_blockString_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49336);function print(ast){return(0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_0__.Vn)(ast,{leave:printDocASTReducer})}var MAX_LINE_LENGTH=80,printDocASTReducer={Name:function(node){return node.value},Variable:function(node){return"$"+node.name},Document:function(node){return join(node.definitions,`
|
238
238
|
|