@teambit/mdx 1.0.1269 → 1.0.1270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/env-template/public/{492.3295f3dfdfe3473b45a2.js → 109.a3942720f015c0ae96ac.js} +21 -21
- package/artifacts/env-template/public/{290.bba6c69248719fe6a37b.js → 811.b1b4275ed7e8912d7e48.js} +2 -2
- package/artifacts/env-template/public/assets-manifest.json +12 -12
- package/artifacts/env-template/public/compositions.40241f2071e92fa3d2cf.js +2 -0
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.670731fce4d4c14d7d62.js → overview.8b2c5a1ea5b01111e758.js} +2 -2
- package/artifacts/env-template/public/overview.html +1 -1
- package/{compositions-1793203031502.js → compositions-1793213596565.js} +1 -1
- package/dist/{preview-1793203031502.js → preview-1793213596565.js} +2 -2
- package/{overview-1793203031502.js → overview-1793213596565.js} +1 -1
- package/package.json +11 -11
- package/artifacts/env-template/public/compositions.0e5c8fb395899f67e99a.js +0 -2
- /package/artifacts/env-template/public/{peers.9ec48541f691381bf968.js → peers.12df8db28ef007c73b76.js} +0 -0
- /package/artifacts/env-template/public/static/css/{492.97944f20.css → 109.97944f20.css} +0 -0
package/artifacts/env-template/public/{492.3295f3dfdfe3473b45a2.js → 109.a3942720f015c0ae96ac.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[
|
|
1
|
+
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[109],{58015(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Composite:()=>Composite,CompositeItem:()=>CompositeItem,FloatingArrow:()=>FloatingArrow,FloatingDelayGroup:()=>FloatingDelayGroup,FloatingFocusManager:()=>FloatingFocusManager,FloatingList:()=>FloatingList,FloatingNode:()=>FloatingNode,FloatingOverlay:()=>FloatingOverlay,FloatingPortal:()=>FloatingPortal,FloatingTree:()=>FloatingTree,NextFloatingDelayGroup:()=>NextFloatingDelayGroup,arrow:()=>floating_ui_react_dom_arrow,autoPlacement:()=>floating_ui_react_dom_autoPlacement,autoUpdate:()=>autoUpdate,computePosition:()=>floating_ui_dom_computePosition,detectOverflow:()=>floating_ui_dom_detectOverflow,flip:()=>floating_ui_react_dom_flip,getOverflowAncestors:()=>getOverflowAncestors,hide:()=>floating_ui_react_dom_hide,inline:()=>floating_ui_react_dom_inline,inner:()=>inner,limitShift:()=>floating_ui_react_dom_limitShift,offset:()=>floating_ui_react_dom_offset,platform:()=>platform,safePolygon:()=>safePolygon,shift:()=>floating_ui_react_dom_shift,size:()=>floating_ui_react_dom_size,useClick:()=>useClick,useClientPoint:()=>useClientPoint,useDelayGroup:()=>useDelayGroup,useDelayGroupContext:()=>useDelayGroupContext,useDismiss:()=>useDismiss,useFloating:()=>floating_ui_react_esm_useFloating,useFloatingNodeId:()=>useFloatingNodeId,useFloatingParentNodeId:()=>useFloatingParentNodeId,useFloatingPortalNode:()=>useFloatingPortalNode,useFloatingRootContext:()=>useFloatingRootContext,useFloatingTree:()=>useFloatingTree,useFocus:()=>useFocus,useHover:()=>useHover,useId:()=>useId,useInnerOffset:()=>useInnerOffset,useInteractions:()=>useInteractions,useListItem:()=>useListItem,useListNavigation:()=>useListNavigation,useMergeRefs:()=>useMergeRefs,useNextDelayGroup:()=>useNextDelayGroup,useRole:()=>useRole,useTransitionStatus:()=>useTransitionStatus,useTransitionStyles:()=>useTransitionStyles,useTypeahead:()=>useTypeahead});var react=__webpack_require__(12888),react_namespaceObject=__webpack_require__.t(react,2);function hasWindow(){return typeof window<"u"}function getNodeName(node){return isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function getWindow(node){var _node$ownerDocument;return(node==null||(_node$ownerDocument=node.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement(node){var _ref;return(_ref=(isNode(node)?node.ownerDocument:node.document)||window.document)==null?void 0:_ref.documentElement}function isNode(value){return hasWindow()?value instanceof Node||value instanceof getWindow(value).Node:!1}function isElement(value){return hasWindow()?value instanceof Element||value instanceof getWindow(value).Element:!1}function isHTMLElement(value){return hasWindow()?value instanceof HTMLElement||value instanceof getWindow(value).HTMLElement:!1}function isShadowRoot(value){return!hasWindow()||typeof ShadowRoot>"u"?!1:value instanceof ShadowRoot||value instanceof getWindow(value).ShadowRoot}function isOverflowElement(element){const{overflow,overflowX,overflowY,display}=floating_ui_utils_dom_getComputedStyle(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&display!=="inline"&&display!=="contents"}function isTableElement(element){return/^(table|td|th)$/.test(getNodeName(element))}function isTopLayer(element){try{if(element.matches(":popover-open"))return!0}catch{}try{return element.matches(":modal")}catch{return!1}}const willChangeRe=/transform|translate|scale|rotate|perspective|filter/,containRe=/paint|layout|strict|content/,isNotNone=value=>!!value&&value!=="none";let isWebKitValue;function isContainingBlock(elementOrCss){const css=isElement(elementOrCss)?floating_ui_utils_dom_getComputedStyle(elementOrCss):elementOrCss;return isNotNone(css.transform)||isNotNone(css.translate)||isNotNone(css.scale)||isNotNone(css.rotate)||isNotNone(css.perspective)||!isWebKit()&&(isNotNone(css.backdropFilter)||isNotNone(css.filter))||willChangeRe.test(css.willChange||"")||containRe.test(css.contain||"")}function getContainingBlock(element){let currentNode=getParentNode(element);for(;isHTMLElement(currentNode)&&!isLastTraversableNode(currentNode);){if(isContainingBlock(currentNode))return currentNode;if(isTopLayer(currentNode))return null;currentNode=getParentNode(currentNode)}return null}function isWebKit(){return isWebKitValue==null&&(isWebKitValue=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(node){return/^(html|body|#document)$/.test(getNodeName(node))}function floating_ui_utils_dom_getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function getNodeScroll(element){return isElement(element)?{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}:{scrollLeft:element.scrollX,scrollTop:element.scrollY}}function getParentNode(node){if(getNodeName(node)==="html")return node;const result=node.assignedSlot||node.parentNode||isShadowRoot(node)&&node.host||getDocumentElement(node);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node){const parentNode=getParentNode(node);return isLastTraversableNode(parentNode)?(node.ownerDocument||node).body:isHTMLElement(parentNode)&&isOverflowElement(parentNode)?parentNode:getNearestOverflowAncestor(parentNode)}function getOverflowAncestors(node,list,traverseIframes){var _node$ownerDocument2;list===void 0&&(list=[]),traverseIframes===void 0&&(traverseIframes=!0);const scrollableAncestor=getNearestOverflowAncestor(node),isBody=scrollableAncestor===((_node$ownerDocument2=node.ownerDocument)==null?void 0:_node$ownerDocument2.body),win=getWindow(scrollableAncestor);if(isBody){const frameElement=getFrameElement(win);return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?getOverflowAncestors(frameElement):[])}else return list.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null}const sides=["top","right","bottom","left"],alignments=["start","end"],placements=sides.reduce((acc,side)=>acc.concat(side,side+"-"+alignments[0],side+"-"+alignments[1]),[]),min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=v=>({x:v,y:v}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function clamp(start,value,end){return max(start,min(value,end))}function evaluate(value,param){return typeof value=="function"?value(param):value}function getSide(placement){return placement.split("-")[0]}function getAlignment(placement){return placement.split("-")[1]}function getOppositeAxis(axis){return axis==="x"?"y":"x"}function getAxisLength(axis){return axis==="y"?"height":"width"}function getSideAxis(placement){const firstChar=placement[0];return firstChar==="t"||firstChar==="b"?"y":"x"}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement))}function getAlignmentSides(placement,rects,rtl){rtl===void 0&&(rtl=!1);const alignment=getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis);let mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}function getExpandedPlacements(placement){const oppositePlacement=getOppositePlacement(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)]}function getOppositeAlignmentPlacement(placement){return placement.includes("start")?placement.replace("start","end"):placement.replace("end","start")}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":return rtl?isStart?rlPlacement:lrPlacement:isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){const alignment=getAlignment(placement);let list=getSideList(getSide(placement),direction==="start",rtl);return alignment&&(list=list.map(side=>side+"-"+alignment),flipAlignment&&(list=list.concat(list.map(getOppositeAlignmentPlacement)))),list}function getOppositePlacement(placement){const side=getSide(placement);return oppositeSideMap[side]+placement.slice(side.length)}function expandPaddingObject(padding){var _padding$top,_padding$right,_padding$bottom,_padding$left;return{top:(_padding$top=padding.top)!=null?_padding$top:0,right:(_padding$right=padding.right)!=null?_padding$right:0,bottom:(_padding$bottom=padding.bottom)!=null?_padding$bottom:0,left:(_padding$left=padding.left)!=null?_padding$left:0}}function getPaddingObject(padding){return typeof padding!="number"?expandPaddingObject(padding):{top:padding,right:padding,bottom:padding,left:padding}}function rectToClientRect(rect){const{x,y,width,height}=rect;return{width,height,top:y,left:x,right:x+width,bottom:y+height,x,y}}/*!
|
|
2
2
|
* tabbable 6.5.0
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
4
|
*/var candidateSelectors=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],candidateSelector=candidateSelectors.join(","),NoElement=typeof Element>"u",matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(element){var _element$getRootNode;return element==null||(_element$getRootNode=element.getRootNode)===null||_element$getRootNode===void 0?void 0:_element$getRootNode.call(element)}:function(element){return element?.ownerDocument},_isInert=function(node,lookUp){var _node$getAttribute;lookUp===void 0&&(lookUp=!0);var inertAtt=node==null||(_node$getAttribute=node.getAttribute)===null||_node$getAttribute===void 0?void 0:_node$getAttribute.call(node,"inert"),inert=inertAtt===""||inertAtt==="true",result=inert||lookUp&&node&&(typeof node.closest=="function"?node.closest("[inert]"):_isInert(node.parentNode));return result},isContentEditable=function(node){var _node$getAttribute2,attValue=node==null||(_node$getAttribute2=node.getAttribute)===null||_node$getAttribute2===void 0?void 0:_node$getAttribute2.call(node,"contenteditable");return attValue===""||attValue==="true"},getCandidates=function(el,includeContainer,filter){if(_isInert(el))return[];var candidates=Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));return includeContainer&&matches.call(el,candidateSelector)&&candidates.unshift(el),candidates=candidates.filter(filter),candidates},_getCandidatesIteratively=function(elements,includeContainer,options){for(var candidates=[],elementsToCheck=Array.from(elements);elementsToCheck.length;){var element=elementsToCheck.shift();if(!_isInert(element,!1))if(element.tagName==="SLOT"){var assigned=element.assignedElements(),content=assigned.length?assigned:element.children,nestedCandidates=_getCandidatesIteratively(content,!0,options);options.flatten?candidates.push.apply(candidates,nestedCandidates):candidates.push({scopeParent:element,candidates:nestedCandidates})}else{var validCandidate=matches.call(element,candidateSelector);validCandidate&&options.filter(element)&&(includeContainer||!elements.includes(element))&&candidates.push(element);var shadowRoot=element.shadowRoot||typeof options.getShadowRoot=="function"&&options.getShadowRoot(element),validShadowRoot=!_isInert(shadowRoot,!1)&&(!options.shadowRootFilter||options.shadowRootFilter(element));if(shadowRoot&&validShadowRoot){var _nestedCandidates=_getCandidatesIteratively(shadowRoot===!0?element.children:shadowRoot.children,!0,options);options.flatten?candidates.push.apply(candidates,_nestedCandidates):candidates.push({scopeParent:element,candidates:_nestedCandidates})}else elementsToCheck.unshift.apply(elementsToCheck,element.children)}}return candidates},hasTabIndex=function(node){return!isNaN(parseInt(node.getAttribute("tabindex"),10))},getTabIndex=function(node){if(!node)throw new Error("No node provided");return node.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName)||isContentEditable(node))&&!hasTabIndex(node)?0:node.tabIndex},getSortOrderTabIndex=function(node,isScope){var tabIndex=getTabIndex(node);return tabIndex<0&&isScope&&!hasTabIndex(node)?0:tabIndex},sortOrderedTabbables=function(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex},isInput=function(node){return node.tagName==="INPUT"},isHiddenInput=function(node){return isInput(node)&&node.type==="hidden"},isDetailsWithSummary=function(node){var r=node.tagName==="DETAILS"&&Array.prototype.slice.apply(node.children).some(function(child){return child.tagName==="SUMMARY"});return r},getCheckedRadio=function(nodes,form){for(var i=0;i<nodes.length;i++)if(nodes[i].checked&&nodes[i].form===form)return nodes[i]},isTabbableRadio=function(node){if(!node.name)return!0;var radioScope=node.form||getRootNode(node),queryRadios=function(name){return radioScope.querySelectorAll('input[type="radio"][name="'+name+'"]')},radioSet;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")radioSet=queryRadios(window.CSS.escape(node.name));else try{radioSet=queryRadios(node.name)}catch(err){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",err.message),!1}var checked=getCheckedRadio(radioSet,node.form);return!checked||checked===node},isRadio=function(node){return isInput(node)&&node.type==="radio"},isNonTabbableRadio=function(node){return isRadio(node)&&!isTabbableRadio(node)},isNodeAttached=function(node){var _nodeRoot,nodeRoot=node&&getRootNode(node),nodeRootHost=(_nodeRoot=nodeRoot)===null||_nodeRoot===void 0?void 0:_nodeRoot.host,attached=!1;if(nodeRoot&&nodeRoot!==node){var _nodeRootHost,_nodeRootHost$ownerDo,_node$ownerDocument;for(attached=!!((_nodeRootHost=nodeRootHost)!==null&&_nodeRootHost!==void 0&&(_nodeRootHost$ownerDo=_nodeRootHost.ownerDocument)!==null&&_nodeRootHost$ownerDo!==void 0&&_nodeRootHost$ownerDo.contains(nodeRootHost)||node!=null&&(_node$ownerDocument=node.ownerDocument)!==null&&_node$ownerDocument!==void 0&&_node$ownerDocument.contains(node));!attached&&nodeRootHost;){var _nodeRoot2,_nodeRootHost2,_nodeRootHost2$ownerD;nodeRoot=getRootNode(nodeRootHost),nodeRootHost=(_nodeRoot2=nodeRoot)===null||_nodeRoot2===void 0?void 0:_nodeRoot2.host,attached=!!((_nodeRootHost2=nodeRootHost)!==null&&_nodeRootHost2!==void 0&&(_nodeRootHost2$ownerD=_nodeRootHost2.ownerDocument)!==null&&_nodeRootHost2$ownerD!==void 0&&_nodeRootHost2$ownerD.contains(nodeRootHost))}}return attached},isZeroArea=function(node){var _node$getBoundingClie=node.getBoundingClientRect(),width=_node$getBoundingClie.width,height=_node$getBoundingClie.height;return width===0&&height===0},isHidden=function(node,_ref){var displayCheck=_ref.displayCheck,getShadowRoot=_ref.getShadowRoot;if(displayCheck==="full-native"&&"checkVisibility"in node){var visible=node.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!visible}var _getComputedStyle=getComputedStyle(node),visibility=_getComputedStyle.visibility;if(visibility==="hidden"||visibility==="collapse")return!0;var isDirectSummary=matches.call(node,"details>summary:first-of-type"),nodeUnderDetails=isDirectSummary?node.parentElement:node;if(matches.call(nodeUnderDetails,"details:not([open]) *"))return!0;if(!displayCheck||displayCheck==="full"||displayCheck==="full-native"||displayCheck==="legacy-full"){if(typeof getShadowRoot=="function"){for(var originalNode=node;node;){var parentElement=node.parentElement,rootNode=getRootNode(node);if(parentElement&&!parentElement.shadowRoot&&getShadowRoot(parentElement)===!0)return isZeroArea(node);node.assignedSlot?node=node.assignedSlot:!parentElement&&rootNode!==node.ownerDocument?node=rootNode.host:node=parentElement}node=originalNode}if(isNodeAttached(node))return!node.getClientRects().length;if(displayCheck!=="legacy-full")return!0}else if(displayCheck==="non-zero-area")return isZeroArea(node);return!1},isDisabledFromFieldset=function(node){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName))for(var parentNode=node.parentElement;parentNode;){if(parentNode.tagName==="FIELDSET"&&parentNode.disabled){for(var i=0;i<parentNode.children.length;i++){var child=parentNode.children.item(i);if(child.tagName==="LEGEND")return matches.call(parentNode,"fieldset[disabled] *")?!0:!child.contains(node)}return!0}parentNode=parentNode.parentElement}return!1},isNodeMatchingSelectorFocusable=function(options,node){return!(node.disabled||isHiddenInput(node)||isHidden(node,options)||isDetailsWithSummary(node)||isDisabledFromFieldset(node))},isNodeMatchingSelectorTabbable=function(options,node){return!(isNonTabbableRadio(node)||getTabIndex(node)<0||!isNodeMatchingSelectorFocusable(options,node))},isShadowRootTabbable=function(shadowHostNode){var tabIndex=parseInt(shadowHostNode.getAttribute("tabindex"),10);return!!(isNaN(tabIndex)||tabIndex>=0)},_sortByOrder=function(candidates){var regularTabbables=[],orderedTabbables=[];return candidates.forEach(function(item,i){var isScope=!!item.scopeParent,element=isScope?item.scopeParent:item,candidateTabindex=getSortOrderTabIndex(element,isScope),elements=isScope?_sortByOrder(item.candidates):element;candidateTabindex===0?isScope?regularTabbables.push.apply(regularTabbables,elements):regularTabbables.push(element):orderedTabbables.push({documentOrder:i,tabIndex:candidateTabindex,item,isScope,content:elements})}),orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc,sortable){return sortable.isScope?acc.push.apply(acc,sortable.content):acc.push(sortable.content),acc},[]).concat(regularTabbables)},tabbable=function(container,options){options=options||{};var candidates;return options.getShadowRoot?candidates=_getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,options),flatten:!1,getShadowRoot:options.getShadowRoot,shadowRootFilter:isShadowRootTabbable}):candidates=getCandidates(container,options.includeContainer,isNodeMatchingSelectorTabbable.bind(null,options)),_sortByOrder(candidates)},focusable=function(container,options){options=options||{};var candidates;return options.getShadowRoot?candidates=_getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,options),flatten:!0,getShadowRoot:options.getShadowRoot}):candidates=getCandidates(container,options.includeContainer,isNodeMatchingSelectorFocusable.bind(null,options)),candidates},isTabbable=function(node,options){if(options=options||{},!node)throw new Error("No node provided");return matches.call(node,candidateSelector)===!1?!1:isNodeMatchingSelectorTabbable(options,node)},focusableCandidateSelector=null,isFocusable=function(node,options){if(options=options||{},!node)throw new Error("No node provided");return matches.call(node,focusableCandidateSelector)===!1?!1:isNodeMatchingSelectorFocusable(options,node)};function getPlatform(){const uaData=navigator.userAgentData;return uaData!=null&&uaData.platform?uaData.platform:navigator.platform}function getUserAgent(){const uaData=navigator.userAgentData;return uaData&&Array.isArray(uaData.brands)?uaData.brands.map(_ref=>{let{brand,version}=_ref;return brand+"/"+version}).join(" "):navigator.userAgent}function isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){const re=/android/i;return re.test(getPlatform())||re.test(getUserAgent())}function isMac(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isJSDOM(){return getUserAgent().includes("jsdom/")}const FOCUSABLE_ATTRIBUTE="data-floating-ui-focusable",TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight",ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown";function activeElement(doc){let activeElement2=doc.activeElement;for(;((_activeElement=activeElement2)==null||(_activeElement=_activeElement.shadowRoot)==null?void 0:_activeElement.activeElement)!=null;){var _activeElement;activeElement2=activeElement2.shadowRoot.activeElement}return activeElement2}function contains(parent2,child){if(!parent2||!child)return!1;const rootNode=child.getRootNode==null?void 0:child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent2===next)return!0;next=next.parentNode||next.host}}return!1}function getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}function isEventTargetWithin(event,node){if(node==null)return!1;if("composedPath"in event)return event.composedPath().includes(node);const e=event;return e.target!=null&&node.contains(e.target)}function isRootElement(element){return element.matches("html,body")}function getDocument(node){return node?.ownerDocument||document}function isTypeableElement(element){return isHTMLElement(element)&&element.matches(TYPEABLE_SELECTOR)}function isTypeableCombobox(element){return element?element.getAttribute("role")==="combobox"&&isTypeableElement(element):!1}function matchesFocusVisible(element){if(!element||isJSDOM())return!0;try{return element.matches(":focus-visible")}catch{return!0}}function getFloatingFocusElement(floatingElement){return floatingElement?floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE)?floatingElement:floatingElement.querySelector("["+FOCUSABLE_ATTRIBUTE+"]")||floatingElement:null}function getNodeChildren(nodes,id,onlyOpenChildren){return onlyOpenChildren===void 0&&(onlyOpenChildren=!0),nodes.filter(node=>{var _node$context;return node.parentId===id&&(!onlyOpenChildren||((_node$context=node.context)==null?void 0:_node$context.open))}).flatMap(child=>[child,...getNodeChildren(nodes,child.id,onlyOpenChildren)])}function getDeepestNode(nodes,id){let deepestNodeId,maxDepth=-1;function findDeepest(nodeId,depth){depth>maxDepth&&(deepestNodeId=nodeId,maxDepth=depth),getNodeChildren(nodes,nodeId).forEach(child=>{findDeepest(child.id,depth+1)})}return findDeepest(id,0),nodes.find(node=>node.id===deepestNodeId)}function getNodeAncestors(nodes,id){var _nodes$find;let allAncestors=[],currentParentId=(_nodes$find=nodes.find(node=>node.id===id))==null?void 0:_nodes$find.parentId;for(;currentParentId;){const currentNode=nodes.find(node=>node.id===currentParentId);currentParentId=currentNode?.parentId,currentNode&&(allAncestors=allAncestors.concat(currentNode))}return allAncestors}function stopEvent(event){event.preventDefault(),event.stopPropagation()}function isReactEvent(event){return"nativeEvent"in event}function isVirtualClick(event){return event.mozInputSource===0&&event.isTrusted?!0:isAndroid()&&event.pointerType?event.type==="click"&&event.buttons===1:event.detail===0&&!event.pointerType}function isVirtualPointerEvent(event){return isJSDOM()?!1:!isAndroid()&&event.width===0&&event.height===0||isAndroid()&&event.width===1&&event.height===1&&event.pressure===0&&event.detail===0&&event.pointerType==="mouse"||event.width<1&&event.height<1&&event.pressure===0&&event.detail===0&&event.pointerType==="touch"}function isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];return strict||values.push("",void 0),values.includes(pointerType)}var isClient=typeof document<"u",noop=function(){},floating_ui_react_utils_index=isClient?react.useLayoutEffect:noop;const SafeReact={...react_namespaceObject};function useLatestRef(value){const ref=react.useRef(value);return floating_ui_react_utils_index(()=>{ref.current=value}),ref}const useSafeInsertionEffect=SafeReact.useInsertionEffect||(fn=>fn());function useEffectEvent(callback){const ref=react.useRef(()=>{});return useSafeInsertionEffect(()=>{ref.current=callback}),react.useCallback(function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return ref.current==null?void 0:ref.current(...args)},[])}function isDifferentGridRow(index2,cols,prevRow){return Math.floor(index2/cols)!==prevRow}function isIndexOutOfListBounds(listRef,index2){return index2<0||index2>=listRef.current.length}function getMinListIndex(listRef,disabledIndices){return findNonDisabledListIndex(listRef,{disabledIndices})}function getMaxListIndex(listRef,disabledIndices){return findNonDisabledListIndex(listRef,{decrement:!0,startingIndex:listRef.current.length,disabledIndices})}function findNonDisabledListIndex(listRef,_temp){let{startingIndex=-1,decrement=!1,disabledIndices,amount=1}=_temp===void 0?{}:_temp,index2=startingIndex;do index2+=decrement?-amount:amount;while(index2>=0&&index2<=listRef.current.length-1&&isListIndexDisabled(listRef,index2,disabledIndices));return index2}function getGridNavigatedIndex(listRef,_ref){let{event,orientation,loop,rtl,cols,disabledIndices,minIndex,maxIndex,prevIndex,stopEvent:stop=!1}=_ref,nextIndex=prevIndex;if(event.key===ARROW_UP){if(stop&&stopEvent(event),prevIndex===-1)nextIndex=maxIndex;else if(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:nextIndex,amount:cols,decrement:!0,disabledIndices}),loop&&(prevIndex-cols<minIndex||nextIndex<0)){const col=prevIndex%cols,maxCol=maxIndex%cols,offset2=maxIndex-(maxCol-col);maxCol===col?nextIndex=maxIndex:nextIndex=maxCol>col?offset2:offset2-cols}isIndexOutOfListBounds(listRef,nextIndex)&&(nextIndex=prevIndex)}if(event.key===ARROW_DOWN&&(stop&&stopEvent(event),prevIndex===-1?nextIndex=minIndex:(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex,amount:cols,disabledIndices}),loop&&prevIndex+cols>maxIndex&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex%cols-cols,amount:cols,disabledIndices}))),isIndexOutOfListBounds(listRef,nextIndex)&&(nextIndex=prevIndex)),orientation==="both"){const prevRow=floor(prevIndex/cols);event.key===(rtl?ARROW_LEFT:ARROW_RIGHT)&&(stop&&stopEvent(event),prevIndex%cols!==cols-1?(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex,disabledIndices}),loop&&isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex-prevIndex%cols-1,disabledIndices}))):loop&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex-prevIndex%cols-1,disabledIndices})),isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=prevIndex)),event.key===(rtl?ARROW_RIGHT:ARROW_LEFT)&&(stop&&stopEvent(event),prevIndex%cols!==0?(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex,decrement:!0,disabledIndices}),loop&&isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex+(cols-prevIndex%cols),decrement:!0,disabledIndices}))):loop&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex+(cols-prevIndex%cols),decrement:!0,disabledIndices})),isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=prevIndex));const lastRow=floor(maxIndex/cols)===prevRow;isIndexOutOfListBounds(listRef,nextIndex)&&(loop&&lastRow?nextIndex=event.key===(rtl?ARROW_RIGHT:ARROW_LEFT)?maxIndex:findNonDisabledListIndex(listRef,{startingIndex:prevIndex-prevIndex%cols-1,disabledIndices}):nextIndex=prevIndex)}return nextIndex}function createGridCellMap(sizes,cols,dense){const cellMap=[];let startIndex=0;return sizes.forEach((_ref2,index2)=>{let{width,height}=_ref2;width>cols;let itemPlaced=!1;for(dense&&(startIndex=0);!itemPlaced;){const targetCells=[];for(let i=0;i<width;i++)for(let j=0;j<height;j++)targetCells.push(startIndex+i+j*cols);startIndex%cols+width<=cols&&targetCells.every(cell=>cellMap[cell]==null)?(targetCells.forEach(cell=>{cellMap[cell]=index2}),itemPlaced=!0):startIndex++}}),[...cellMap]}function getGridCellIndexOfCorner(index2,sizes,cellMap,cols,corner){if(index2===-1)return-1;const firstCellIndex=cellMap.indexOf(index2),sizeItem=sizes[index2];switch(corner){case"tl":return firstCellIndex;case"tr":return sizeItem?firstCellIndex+sizeItem.width-1:firstCellIndex;case"bl":return sizeItem?firstCellIndex+(sizeItem.height-1)*cols:firstCellIndex;case"br":return cellMap.lastIndexOf(index2)}}function getGridCellIndices(indices,cellMap){return cellMap.flatMap((index2,cellIndex)=>indices.includes(index2)?[cellIndex]:[])}function isListIndexDisabled(listRef,index2,disabledIndices){if(typeof disabledIndices=="function")return disabledIndices(index2);if(disabledIndices)return disabledIndices.includes(index2);const element=listRef.current[index2];return element==null||element.hasAttribute("disabled")||element.getAttribute("aria-disabled")==="true"}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(container,dir){const list=tabbable(container,getTabbableOptions()),len=list.length;if(len===0)return;const active=activeElement(getDocument(container)),index2=list.indexOf(active),nextIndex=index2===-1?dir===1?0:len-1:index2+dir;return list[nextIndex]}function getNextTabbable(referenceElement){return getTabbableIn(getDocument(referenceElement).body,1)||referenceElement}function getPreviousTabbable(referenceElement){return getTabbableIn(getDocument(referenceElement).body,-1)||referenceElement}function isOutsideEvent(event,container){const containerElement=container||event.currentTarget,relatedTarget=event.relatedTarget;return!relatedTarget||!contains(containerElement,relatedTarget)}function disableFocusInside(container){tabbable(container,getTabbableOptions()).forEach(element=>{element.dataset.tabindex=element.getAttribute("tabindex")||"",element.setAttribute("tabindex","-1")})}function enableFocusInside(container){container.querySelectorAll("[data-tabindex]").forEach(element=>{const tabindex=element.dataset.tabindex;delete element.dataset.tabindex,tabindex?element.setAttribute("tabindex",tabindex):element.removeAttribute("tabindex")})}var jsx_runtime=__webpack_require__(11684),react_dom=__webpack_require__(2163);function computeCoordsFromPlacement(_ref,placement,rtl){let{reference,floating}=_ref;const sideAxis=getSideAxis(placement),alignmentAxis=getAlignmentAxis(placement),alignLength=getAxisLength(alignmentAxis),side=getSide(placement),isVertical=sideAxis==="y",commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2;let coords;switch(side){case"top":coords={x:commonX,y:reference.y-floating.height};break;case"bottom":coords={x:commonX,y:reference.y+reference.height};break;case"right":coords={x:reference.x+reference.width,y:commonY};break;case"left":coords={x:reference.x-floating.width,y:commonY};break;default:coords={x:reference.x,y:reference.y}}const alignment=getAlignment(placement);return alignment&&(coords[alignmentAxis]+=commonAlign*(alignment==="end"?1:-1)*(rtl&&isVertical?-1:1)),coords}async function detectOverflow(state,options){var _await$platform$isEle;options===void 0&&(options={});const{x,y,platform:platform2,rects,elements,strategy}=state,{boundary="clippingAncestors",rootBoundary="viewport",elementContext="floating",altBoundary=!1,padding=0}=evaluate(options,state),paddingObject=getPaddingObject(padding),element=elements[altBoundary?elementContext==="floating"?"reference":"floating":elementContext],clippingClientRect=rectToClientRect(await platform2.getClippingRect({element:(_await$platform$isEle=await(platform2.isElement==null?void 0:platform2.isElement(element)))==null||_await$platform$isEle?element:element.contextElement||await(platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating)),boundary,rootBoundary,strategy})),rect=elementContext==="floating"?{x,y,width:rects.floating.width,height:rects.floating.height}:rects.reference,offsetParent=await(platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating)),offsetScale=await(platform2.isElement==null?void 0:platform2.isElement(offsetParent))&&await(platform2.getScale==null?void 0:platform2.getScale(offsetParent))||{x:1,y:1},elementClientRect=rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect?await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements,rect,offsetParent,strategy}):rect);return{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x}}const MAX_RESET_COUNT=50,computePosition=async(reference,floating,config)=>{const{placement="bottom",strategy="absolute",middleware=[],platform:platform2}=config,platformWithDetectOverflow=platform2.detectOverflow?platform2:{...platform2,detectOverflow},rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(floating));let rects=await platform2.getElementRects({reference,floating,strategy}),{x,y}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,resetCount=0;const middlewareData={};for(let i=0;i<middleware.length;i++){const currentMiddleware=middleware[i];if(!currentMiddleware)continue;const{name,fn}=currentMiddleware,{x:nextX,y:nextY,data,reset}=await fn({x,y,initialPlacement:placement,placement:statefulPlacement,strategy,middlewareData,rects,platform:platformWithDetectOverflow,elements:{reference,floating}});x=nextX??x,y=nextY??y,middlewareData[name]={...middlewareData[name],...data},reset&&resetCount<MAX_RESET_COUNT&&(resetCount++,typeof reset=="object"&&(reset.placement&&(statefulPlacement=reset.placement),reset.rects&&(rects=reset.rects===!0?await platform2.getElementRects({reference,floating,strategy}):reset.rects),{x,y}=computeCoordsFromPlacement(rects,statefulPlacement,rtl)),i=-1)}return{x,y,placement:statefulPlacement,strategy,middlewareData}},arrow=options=>({name:"arrow",options,async fn(state){const{x,y,placement,rects,platform:platform2,elements,middlewareData}=state,{element,padding=0}=evaluate(options,state)||{};if(element==null)return{};const paddingObject=getPaddingObject(padding),coords={x,y},axis=getAlignmentAxis(placement),length=getAxisLength(axis),arrowDimensions=await platform2.getDimensions(element),isYAxis=axis==="y",minProp=isYAxis?"top":"left",maxProp=isYAxis?"bottom":"right",clientProp=isYAxis?"clientHeight":"clientWidth",endDiff=rects.reference[length]+rects.reference[axis]-coords[axis]-rects.floating[length],startDiff=coords[axis]-rects.reference[axis],arrowOffsetParent=await(platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element));let clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;(!clientSize||!await(platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent)))&&(clientSize=elements.floating[clientProp]||rects.floating[length]);const centerToReference=endDiff/2-startDiff/2,largestPossiblePadding=clientSize/2-arrowDimensions[length]/2-1,minPadding=min(paddingObject[minProp],largestPossiblePadding),maxPadding=min(paddingObject[maxProp],largestPossiblePadding),max2=clientSize-arrowDimensions[length]-maxPadding,center=clientSize/2-arrowDimensions[length]/2+centerToReference,offset2=clamp(minPadding,center,max2),shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset2&&rects.reference[length]/2-(center<minPadding?minPadding:maxPadding)-arrowDimensions[length]/2<0,alignmentOffset=shouldAddOffset?center<minPadding?center-minPadding:center-max2:0;return{[axis]:coords[axis]+alignmentOffset,data:{[axis]:offset2,centerOffset:center-offset2-alignmentOffset,...shouldAddOffset&&{alignmentOffset}},reset:shouldAddOffset}}});function getPlacementList(alignment,autoAlignment,allowedPlacements){return(alignment?[...allowedPlacements.filter(placement=>getAlignment(placement)===alignment),...allowedPlacements.filter(placement=>getAlignment(placement)!==alignment)]:allowedPlacements.filter(placement=>getSide(placement)===placement)).filter(placement=>alignment?getAlignment(placement)===alignment||(autoAlignment?getOppositeAlignmentPlacement(placement)!==placement:!1):!0)}const autoPlacement=function(options){return options===void 0&&(options={}),{name:"autoPlacement",options,async fn(state){var _middlewareData$autoP,_middlewareData$autoP2,_placementsThatFitOnE;const{rects,middlewareData,placement,platform:platform2,elements}=state,{crossAxis=!1,alignment,allowedPlacements=placements,autoAlignment=!0,...detectOverflowOptions}=evaluate(options,state),placements$1=alignment!==void 0||allowedPlacements===placements?getPlacementList(alignment||null,autoAlignment,allowedPlacements):allowedPlacements,currentIndex=((_middlewareData$autoP=middlewareData.autoPlacement)==null?void 0:_middlewareData$autoP.index)||0,currentPlacement=placements$1[currentIndex];if(currentPlacement==null)return{};if(placement!==currentPlacement)return{reset:{placement:placements$1[0]}};const overflow=await platform2.detectOverflow(state,detectOverflowOptions),alignmentSides=getAlignmentSides(currentPlacement,rects,await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating))),currentOverflows=[overflow[getSide(currentPlacement)],overflow[alignmentSides[0]],overflow[alignmentSides[1]]],allOverflows=[...((_middlewareData$autoP2=middlewareData.autoPlacement)==null?void 0:_middlewareData$autoP2.overflows)||[],{placement:currentPlacement,overflows:currentOverflows}],nextPlacement=placements$1[currentIndex+1];if(nextPlacement)return{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:nextPlacement}};const placementsSortedByMostSpace=allOverflows.map(d=>{const alignment2=getAlignment(d.placement);return[d.placement,alignment2&&crossAxis?d.overflows.slice(0,2).reduce((acc,v)=>acc+v,0):d.overflows[0],d.overflows]}).sort((a,b)=>a[1]-b[1]),resetPlacement=((_placementsThatFitOnE=placementsSortedByMostSpace.filter(d=>d[2].slice(0,getAlignment(d[0])?2:3).every(v=>v<=0))[0])==null?void 0:_placementsThatFitOnE[0])||placementsSortedByMostSpace[0][0];return resetPlacement!==placement?{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:resetPlacement}}:{}}}},flip=function(options){return options===void 0&&(options={}),{name:"flip",options,async fn(state){var _middlewareData$arrow,_middlewareData$flip;const{placement,middlewareData,rects,initialPlacement,platform:platform2,elements}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0,fallbackPlacements:specifiedFallbackPlacements,fallbackStrategy="bestFit",fallbackAxisSideDirection="none",flipAlignment=!0,...detectOverflowOptions}=evaluate(options,state);if((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)return{};const side=getSide(placement),initialSideAxis=getSideAxis(initialPlacement),isBasePlacement=getSide(initialPlacement)===initialPlacement,rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating)),fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement(initialPlacement)]:getExpandedPlacements(initialPlacement)),hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";!specifiedFallbackPlacements&&hasFallbackAxisSideDirection&&fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl));const placements2=[initialPlacement,...fallbackPlacements],overflow=await platform2.detectOverflow(state,detectOverflowOptions),overflows=[];let overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis&&overflows.push(overflow[side]),checkCrossAxis){const sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]])}if(overflowsData=[...overflowsData,{placement,overflows}],!overflows.every(side2=>side2<=0)){var _middlewareData$flip2,_overflowsData$filter;const nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1,nextPlacement=placements2[nextIndex];if(nextPlacement&&(!(checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):!1)||overflowsData.every(d=>getSideAxis(d.placement)===initialSideAxis?d.overflows[0]>0:!0)))return{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}};let resetPlacement=(_overflowsData$filter=overflowsData.filter(d=>d.overflows[0]<=0).sort((a,b)=>a.overflows[1]-b.overflows[1])[0])==null?void 0:_overflowsData$filter.placement;if(!resetPlacement)switch(fallbackStrategy){case"bestFit":{var _overflowsData$filter2;const placement2=(_overflowsData$filter2=overflowsData.filter(d=>{if(hasFallbackAxisSideDirection){const currentSideAxis=getSideAxis(d.placement);return currentSideAxis===initialSideAxis||currentSideAxis==="y"}return!0}).map(d=>[d.placement,d.overflows.filter(overflow2=>overflow2>0).reduce((acc,overflow2)=>acc+overflow2,0)]).sort((a,b)=>a[1]-b[1])[0])==null?void 0:_overflowsData$filter2[0];placement2&&(resetPlacement=placement2);break}case"initialPlacement":resetPlacement=initialPlacement;break}if(placement!==resetPlacement)return{reset:{placement:resetPlacement}}}return{}}}};function getSideOffsets(overflow,rect){return{top:overflow.top-rect.height,right:overflow.right-rect.width,bottom:overflow.bottom-rect.height,left:overflow.left-rect.width}}function isAnySideFullyClipped(overflow){return sides.some(side=>overflow[side]>=0)}const hide=function(options){return options===void 0&&(options={}),{name:"hide",options,async fn(state){const{rects,platform:platform2}=state,{strategy="referenceHidden",...detectOverflowOptions}=evaluate(options,state);switch(strategy){case"referenceHidden":{const overflow=await platform2.detectOverflow(state,{...detectOverflowOptions,elementContext:"reference"}),offsets=getSideOffsets(overflow,rects.reference);return{data:{referenceHiddenOffsets:offsets,referenceHidden:isAnySideFullyClipped(offsets)}}}case"escaped":{const overflow=await platform2.detectOverflow(state,{...detectOverflowOptions,altBoundary:!0}),offsets=getSideOffsets(overflow,rects.floating);return{data:{escapedOffsets:offsets,escaped:isAnySideFullyClipped(offsets)}}}default:return{}}}}};function getBoundingRect(rects){const minX=min(...rects.map(rect=>rect.left)),minY=min(...rects.map(rect=>rect.top)),maxX=max(...rects.map(rect=>rect.right)),maxY=max(...rects.map(rect=>rect.bottom));return{x:minX,y:minY,width:maxX-minX,height:maxY-minY}}function getRectsByLine(rects){const sortedRects=rects.slice().sort((a,b)=>a.y-b.y),groups=[];let prevRect=null;for(let i=0;i<sortedRects.length;i++){const rect=sortedRects[i];!prevRect||rect.y-prevRect.y>prevRect.height/2?groups.push([rect]):groups[groups.length-1].push(rect),prevRect=rect}return groups.map(rect=>rectToClientRect(getBoundingRect(rect)))}const inline=function(options){return options===void 0&&(options={}),{name:"inline",options,async fn(state){const{placement,elements,rects,platform:platform2,strategy}=state,{padding=2,x,y}=evaluate(options,state),nativeClientRects=Array.from(await(platform2.getClientRects==null?void 0:platform2.getClientRects(elements.reference))||[]);if(!nativeClientRects.length)return{};const clientRects=getRectsByLine(nativeClientRects),fallback=rectToClientRect(getBoundingRect(nativeClientRects)),paddingObject=getPaddingObject(padding);function getBoundingClientRect2(){if(clientRects.length===2&&(clientRects[0].left>clientRects[1].right||clientRects[1].left>clientRects[0].right)&&x!=null&&y!=null)return clientRects.find(rect=>x>rect.left-paddingObject.left&&x<rect.right+paddingObject.right&&y>rect.top-paddingObject.top&&y<rect.bottom+paddingObject.bottom)||fallback;if(clientRects.length>=2){if(getSideAxis(placement)==="y"){const firstRect=clientRects[0],lastRect=clientRects[clientRects.length-1],isTop=getSide(placement)==="top",top2=firstRect.top,bottom2=lastRect.bottom,left=isTop?firstRect.left:lastRect.left,right=isTop?firstRect.right:lastRect.right;return rectToClientRect({x:left,y:top2,width:right-left,height:bottom2-top2})}const isLeftSide=getSide(placement)==="left",maxRight=max(...clientRects.map(rect=>rect.right)),minLeft=min(...clientRects.map(rect=>rect.left)),measureRects=clientRects.filter(rect=>isLeftSide?rect.left===minLeft:rect.right===maxRight),top=measureRects[0].top,bottom=measureRects[measureRects.length-1].bottom;return rectToClientRect({x:minLeft,y:top,width:maxRight-minLeft,height:bottom-top})}return fallback}const resetRects=await platform2.getElementRects({reference:{getBoundingClientRect:getBoundingClientRect2},floating:elements.floating,strategy});return rects.reference.x!==resetRects.reference.x||rects.reference.y!==resetRects.reference.y||rects.reference.width!==resetRects.reference.width||rects.reference.height!==resetRects.reference.height?{reset:{rects:resetRects}}:{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(state,options){const{placement,platform:platform2,elements}=state,rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating)),side=getSide(placement),alignment=getAlignment(placement),isVertical=getSideAxis(placement)==="y",mainAxisMulti=originSides.has(side)?-1:1,crossAxisMulti=rtl&&isVertical?-1:1,rawValue=evaluate(options,state);let{mainAxis,crossAxis,alignmentAxis}=typeof rawValue=="number"?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:rawValue.mainAxis||0,crossAxis:rawValue.crossAxis||0,alignmentAxis:rawValue.alignmentAxis};return alignment&&typeof alignmentAxis=="number"&&(crossAxis=alignment==="end"?alignmentAxis*-1:alignmentAxis),isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}const offset=function(options){return options===void 0&&(options=0),{name:"offset",options,async fn(state){var _middlewareData$offse,_middlewareData$arrow;const{x,y,placement,middlewareData}=state,diffCoords=await convertValueToCoords(state,options);return placement===((_middlewareData$offse=middlewareData.offset)==null?void 0:_middlewareData$offse.placement)&&(_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset?{}:{x:x+diffCoords.x,y:y+diffCoords.y,data:{...diffCoords,placement}}}}},shift=function(options){return options===void 0&&(options={}),{name:"shift",options,async fn(state){const{x,y,placement,platform:platform2}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!1,limiter={fn:_ref=>{let{x:x2,y:y2}=_ref;return{x:x2,y:y2}}},...detectOverflowOptions}=evaluate(options,state),coords={x,y},overflow=await platform2.detectOverflow(state,detectOverflowOptions),crossAxis=getSideAxis(placement),mainAxis=getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis],crossAxisCoord=coords[crossAxis];const clampCoord=(axis,coord)=>clamp(coord+overflow[axis==="y"?"top":"left"],coord,coord-overflow[axis==="y"?"bottom":"right"]);checkMainAxis&&(mainAxisCoord=clampCoord(mainAxis,mainAxisCoord)),checkCrossAxis&&(crossAxisCoord=clampCoord(crossAxis,crossAxisCoord));const limitedCoords=limiter.fn({...state,[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord});return{...limitedCoords,data:{x:limitedCoords.x-x,y:limitedCoords.y-y,enabled:{[mainAxis]:checkMainAxis,[crossAxis]:checkCrossAxis}}}}}},limitShift=function(options){return options===void 0&&(options={}),{options,fn(state){var _rawOffset$mainAxis,_rawOffset$crossAxis;const{x,y,placement,rects,middlewareData}=state,{offset:offset2=0,mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0}=evaluate(options,state),coords={x,y},crossAxis=getSideAxis(placement),mainAxis=getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis],crossAxisCoord=coords[crossAxis];const rawOffset=evaluate(offset2,state),computedOffset=typeof rawOffset=="number"?{mainAxis:rawOffset,crossAxis:0}:{mainAxis:(_rawOffset$mainAxis=rawOffset.mainAxis)!=null?_rawOffset$mainAxis:0,crossAxis:(_rawOffset$crossAxis=rawOffset.crossAxis)!=null?_rawOffset$crossAxis:0};if(checkMainAxis){const len=mainAxis==="y"?"height":"width",limitMin=rects.reference[mainAxis]-rects.floating[len]+computedOffset.mainAxis,limitMax=rects.reference[mainAxis]+rects.reference[len]-computedOffset.mainAxis;mainAxisCoord<limitMin?mainAxisCoord=limitMin:mainAxisCoord>limitMax&&(mainAxisCoord=limitMax)}if(checkCrossAxis){var _middlewareData$offse,_middlewareData$offse2;const len=mainAxis==="y"?"width":"height",isOriginSide=originSides.has(getSide(placement)),limitMin=rects.reference[crossAxis]-rects.floating[len]+(isOriginSide&&((_middlewareData$offse=middlewareData.offset)==null?void 0:_middlewareData$offse[crossAxis])||0)+(isOriginSide?0:computedOffset.crossAxis),limitMax=rects.reference[crossAxis]+rects.reference[len]+(isOriginSide?0:((_middlewareData$offse2=middlewareData.offset)==null?void 0:_middlewareData$offse2[crossAxis])||0)-(isOriginSide?computedOffset.crossAxis:0);crossAxisCoord<limitMin?crossAxisCoord=limitMin:crossAxisCoord>limitMax&&(crossAxisCoord=limitMax)}return{[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord}}}},size=function(options){return options===void 0&&(options={}),{name:"size",options,async fn(state){const{placement,rects,platform:platform2,elements}=state,{apply=()=>{},...detectOverflowOptions}=evaluate(options,state),overflow=await platform2.detectOverflow(state,detectOverflowOptions),side=getSide(placement),alignment=getAlignment(placement),isYAxis=getSideAxis(placement)==="y",{width,height}=rects.floating;let heightSide,widthSide;side==="top"||side==="bottom"?(heightSide=side,widthSide=alignment===(await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating))?"start":"end")?"left":"right"):(widthSide=side,heightSide=alignment==="end"?"top":"bottom");const maximumClippingHeight=height-overflow.top-overflow.bottom,maximumClippingWidth=width-overflow.left-overflow.right,overflowAvailableHeight=min(height-overflow[heightSide],maximumClippingHeight),overflowAvailableWidth=min(width-overflow[widthSide],maximumClippingWidth),shiftData=state.middlewareData.shift,noShift=!shiftData;let availableHeight=overflowAvailableHeight,availableWidth=overflowAvailableWidth;shiftData!=null&&shiftData.enabled.x&&(availableWidth=maximumClippingWidth),shiftData!=null&&shiftData.enabled.y&&(availableHeight=maximumClippingHeight),noShift&&!alignment&&(isYAxis?availableWidth=width-2*max(overflow.left,overflow.right):availableHeight=height-2*max(overflow.top,overflow.bottom)),await apply({...state,availableWidth,availableHeight});const nextDimensions=await platform2.getDimensions(elements.floating);return width!==nextDimensions.width||height!==nextDimensions.height?{reset:{rects:!0}}:{}}}};function getCssDimensions(element){const css=floating_ui_utils_dom_getComputedStyle(element);let width=parseFloat(css.width)||0,height=parseFloat(css.height)||0;const hasOffset=isHTMLElement(element),offsetWidth=hasOffset?element.offsetWidth:width,offsetHeight=hasOffset?element.offsetHeight:height,shouldFallback=round(width)!==offsetWidth||round(height)!==offsetHeight;return shouldFallback&&(width=offsetWidth,height=offsetHeight),{width,height,$:shouldFallback}}function unwrapElement(element){return isElement(element)?element:element.contextElement}function getScale(element){const domElement=unwrapElement(element);if(!isHTMLElement(domElement))return createCoords(1);const rect=domElement.getBoundingClientRect(),{width,height,$}=getCssDimensions(domElement);let x=($?round(rect.width):rect.width)/width,y=($?round(rect.height):rect.height)/height;return(!x||!Number.isFinite(x))&&(x=1),(!y||!Number.isFinite(y))&&(y=1),{x,y}}const noOffsets=createCoords(0);function getVisualOffsets(element){const win=getWindow(element);return!isWebKit()||!win.visualViewport?noOffsets:{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}}function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){return isFixed===void 0&&(isFixed=!1),!!floatingOffsetParent&&isFixed&&floatingOffsetParent===getWindow(element)}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);const clientRect=element.getBoundingClientRect(),domElement=unwrapElement(element);let scale=createCoords(1);includeScale&&(offsetParent?isElement(offsetParent)&&(scale=getScale(offsetParent)):scale=getScale(element));const visualOffsets=shouldAddVisualOffsets(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):createCoords(0);let x=(clientRect.left+visualOffsets.x)/scale.x,y=(clientRect.top+visualOffsets.y)/scale.y,width=clientRect.width/scale.x,height=clientRect.height/scale.y;if(domElement&&offsetParent){const win=getWindow(domElement),offsetWin=isElement(offsetParent)?getWindow(offsetParent):offsetParent;let currentWin=win,currentIFrame=getFrameElement(currentWin);for(;currentIFrame&&offsetWin!==currentWin;){const iframeScale=getScale(currentIFrame),iframeRect=currentIFrame.getBoundingClientRect(),css=floating_ui_utils_dom_getComputedStyle(currentIFrame),left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css.paddingLeft))*iframeScale.x,top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css.paddingTop))*iframeScale.y;x*=iframeScale.x,y*=iframeScale.y,width*=iframeScale.x,height*=iframeScale.y,x+=left,y+=top,currentWin=getWindow(currentIFrame),currentIFrame=getFrameElement(currentWin)}}return rectToClientRect({width,height,x,y})}function getWindowScrollBarX(element,rect){const leftScroll=getNodeScroll(element).scrollLeft;return rect?rect.left+leftScroll:getBoundingClientRect(getDocumentElement(element)).left+leftScroll}function getHTMLOffset(documentElement,scroll){const htmlRect=documentElement.getBoundingClientRect(),x=htmlRect.left+scroll.scrollLeft-getWindowScrollBarX(documentElement,htmlRect),y=htmlRect.top+scroll.scrollTop;return{x,y}}function convertOffsetParentRelativeRectToViewportRelativeRect(_ref){let{elements,rect,offsetParent,strategy}=_ref;const isFixed=strategy==="fixed",documentElement=getDocumentElement(offsetParent),topLayer=elements?isTopLayer(elements.floating):!1;if(offsetParent===documentElement||topLayer&&isFixed)return rect;let scroll={scrollLeft:0,scrollTop:0},scale=createCoords(1);const offsets=createCoords(0),isOffsetParentAnElement=isHTMLElement(offsetParent);if((isOffsetParentAnElement||!isFixed)&&((getNodeName(offsetParent)!=="body"||isOverflowElement(documentElement))&&(scroll=getNodeScroll(offsetParent)),isOffsetParentAnElement)){const offsetRect=getBoundingClientRect(offsetParent);scale=getScale(offsetParent),offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}const htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0);return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x+htmlOffset.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y+htmlOffset.y}}function getClientRects(element){return element.getClientRects?Array.from(element.getClientRects()):[]}function getDocumentRect(html){const scroll=getNodeScroll(html),body=html.ownerDocument.body,width=max(html.scrollWidth,html.clientWidth,body.scrollWidth,body.clientWidth),height=max(html.scrollHeight,html.clientHeight,body.scrollHeight,body.clientHeight);let x=-scroll.scrollLeft+getWindowScrollBarX(html);const y=-scroll.scrollTop;return floating_ui_utils_dom_getComputedStyle(body).direction==="rtl"&&(x+=max(html.clientWidth,body.clientWidth)-width),{width,height,x,y}}const SCROLLBAR_MAX=25;function getViewportRect(element,strategy,rootBoundary){rootBoundary===void 0&&(rootBoundary="viewport");const isLayoutViewport=rootBoundary==="layoutViewport",win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport;let width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){const layoutRelativeClientCoords=!isWebKit()||strategy==="fixed";isLayoutViewport?layoutRelativeClientCoords||(x=-visualViewport.offsetLeft,y=-visualViewport.offsetTop):(width=visualViewport.width,height=visualViewport.height,layoutRelativeClientCoords&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop))}if(getWindowScrollBarX(html)<=0){const doc=html.ownerDocument,body=doc.body,bodyStyles=getComputedStyle(body),bodyMarginInline=doc.compatMode==="CSS1Compat"&&parseFloat(bodyStyles.marginLeft)+parseFloat(bodyStyles.marginRight)||0,reservedWidth=Math.abs(html.clientWidth-body.clientWidth-bodyMarginInline),gutter=getComputedStyle(html).scrollbarGutter==="stable both-edges"?reservedWidth/2:reservedWidth;gutter<=SCROLLBAR_MAX&&(width-=gutter)}return{width,height,x,y}}function getInnerBoundingClientRect(element,strategy){const clientRect=getBoundingClientRect(element,!0,strategy==="fixed"),top=clientRect.top+element.clientTop,left=clientRect.left+element.clientLeft,scale=getScale(element),width=element.clientWidth*scale.x,height=element.clientHeight*scale.y,x=left*scale.x,y=top*scale.y;return{width,height,x,y}}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){let rect;if(clippingAncestor==="viewport"||clippingAncestor==="layoutViewport")rect=getViewportRect(element,strategy,clippingAncestor);else if(clippingAncestor==="document")rect=getDocumentRect(getDocumentElement(element));else if(isElement(clippingAncestor))rect=getInnerBoundingClientRect(clippingAncestor,strategy);else{const visualOffsets=getVisualOffsets(element);rect={x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y,width:clippingAncestor.width,height:clippingAncestor.height}}return rectToClientRect(rect)}function getClippingElementAncestors(element,cache){const cachedResult=cache.get(element);if(cachedResult)return cachedResult;let result=getOverflowAncestors(element,[],!1).filter(el=>isElement(el)&&getNodeName(el)!=="body"),lastKeptComputedStyle=null;const elementIsFixed=floating_ui_utils_dom_getComputedStyle(element).position==="fixed";let currentNode=elementIsFixed?getParentNode(element):element;for(;isElement(currentNode)&&!isLastTraversableNode(currentNode);){const computedStyle=floating_ui_utils_dom_getComputedStyle(currentNode),currentNodeIsContaining=isContainingBlock(currentNode),lastPosition=lastKeptComputedStyle?lastKeptComputedStyle.position:elementIsFixed?"fixed":"";!currentNodeIsContaining&&(lastPosition==="fixed"||lastPosition==="absolute"&&computedStyle.position==="static")?result=result.filter(ancestor=>ancestor!==currentNode):lastKeptComputedStyle=computedStyle,currentNode=getParentNode(currentNode)}return cache.set(element,result),result}function getClippingRect(_ref){let{element,boundary,rootBoundary,strategy}=_ref;const clippingAncestors=[...boundary==="clippingAncestors"?isTopLayer(element)?[]:getClippingElementAncestors(element,this._c):[].concat(boundary),rootBoundary],firstRect=getClientRectFromClippingAncestor(element,clippingAncestors[0],strategy);let top=firstRect.top,right=firstRect.right,bottom=firstRect.bottom,left=firstRect.left;for(let i=1;i<clippingAncestors.length;i++){const rect=getClientRectFromClippingAncestor(element,clippingAncestors[i],strategy);top=max(rect.top,top),right=min(rect.right,right),bottom=min(rect.bottom,bottom),left=max(rect.left,left)}return{width:right-left,height:bottom-top,x:left,y:top}}function getDimensions(element){const{width,height}=getCssDimensions(element);return{width,height}}function getRectRelativeToOffsetParent(element,offsetParent,strategy){const isOffsetParentAnElement=isHTMLElement(offsetParent),documentElement=getDocumentElement(offsetParent),isFixed=strategy==="fixed",rect=getBoundingClientRect(element,!0,isFixed,offsetParent);let scroll={scrollLeft:0,scrollTop:0};const offsets=createCoords(0);if((isOffsetParentAnElement||!isFixed)&&((getNodeName(offsetParent)!=="body"||isOverflowElement(documentElement))&&(scroll=getNodeScroll(offsetParent)),isOffsetParentAnElement)){const offsetRect=getBoundingClientRect(offsetParent,!0,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}!isOffsetParentAnElement&&documentElement&&(offsets.x=getWindowScrollBarX(documentElement));const htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0),x=rect.left+scroll.scrollLeft-offsets.x-htmlOffset.x,y=rect.top+scroll.scrollTop-offsets.y-htmlOffset.y;return{x,y,width:rect.width,height:rect.height}}function isStaticPositioned(element){return floating_ui_utils_dom_getComputedStyle(element).position==="static"}function getTrueOffsetParent(element,polyfill){if(!isHTMLElement(element)||floating_ui_utils_dom_getComputedStyle(element).position==="fixed")return null;if(polyfill)return polyfill(element);let rawOffsetParent=element.offsetParent;return getDocumentElement(element)===rawOffsetParent&&(rawOffsetParent=rawOffsetParent.ownerDocument.body),rawOffsetParent}function getOffsetParent(element,polyfill){const win=getWindow(element);if(isTopLayer(element))return win;if(!isHTMLElement(element)){let svgOffsetParent=getParentNode(element);for(;svgOffsetParent&&!isLastTraversableNode(svgOffsetParent);){if(isElement(svgOffsetParent)&&!isStaticPositioned(svgOffsetParent))return svgOffsetParent;svgOffsetParent=getParentNode(svgOffsetParent)}return win}let offsetParent=getTrueOffsetParent(element,polyfill);for(;offsetParent&&isTableElement(offsetParent)&&isStaticPositioned(offsetParent);)offsetParent=getTrueOffsetParent(offsetParent,polyfill);return offsetParent&&isLastTraversableNode(offsetParent)&&isStaticPositioned(offsetParent)&&!isContainingBlock(offsetParent)?win:offsetParent||getContainingBlock(element)||win}const getElementRects=async function(data){const getOffsetParentFn=this.getOffsetParent||getOffsetParent,floatingDimensions=await this.getDimensions(data.floating);return{reference:getRectRelativeToOffsetParent(data.reference,await getOffsetParentFn(data.floating),data.strategy),floating:{x:0,y:0,width:floatingDimensions.width,height:floatingDimensions.height}}};function isRTL(element){return floating_ui_utils_dom_getComputedStyle(element).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height}function observeMove(element,onMove,ancestorResize){let io=null,timeoutId;const root=getDocumentElement(element);function cleanup2(){var _io;clearTimeout(timeoutId),(_io=io)==null||_io.disconnect(),io=null}function refresh(skip,threshold){skip===void 0&&(skip=!1),threshold===void 0&&(threshold=1),cleanup2();const elementRectForRootMargin=element.getBoundingClientRect(),{left,top,width,height}=elementRectForRootMargin;if(skip||onMove(),!width||!height)return;const insetTop=floor(top),insetRight=floor(root.clientWidth-(left+width)),insetBottom=floor(root.clientHeight-(top+height)),insetLeft=floor(left),options={rootMargin:-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px",threshold:max(0,min(1,threshold))||1};let isFirstUpdate=!0;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(!rectsAreEqual(elementRectForRootMargin,element.getBoundingClientRect()))return refresh();if(ratio!==threshold){if(!isFirstUpdate)return refresh();ratio?refresh(!1,ratio):timeoutId=setTimeout(()=>{refresh(!1,1e-7)},1e3)}isFirstUpdate=!1}try{io=new IntersectionObserver(handleObserve,{...options,root:root.ownerDocument})}catch{io=new IntersectionObserver(handleObserve,options)}io.observe(element)}const win=getWindow(element),handleResize=()=>refresh(ancestorResize);return win.addEventListener("resize",handleResize),refresh(!0),()=>{win.removeEventListener("resize",handleResize),cleanup2()}}function autoUpdate(reference,floating,update,options){options===void 0&&(options={});const{ancestorScroll=!0,ancestorResize=!0,elementResize=typeof ResizeObserver=="function",layoutShift=typeof IntersectionObserver=="function",animationFrame=!1}=options,referenceEl=unwrapElement(reference),ancestors=ancestorScroll||ancestorResize?[...referenceEl?getOverflowAncestors(referenceEl):[],...floating?getOverflowAncestors(floating):[]]:[];ancestors.forEach(ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update),ancestorResize&&ancestor.addEventListener("resize",update)});const cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update,ancestorResize):null;let reobserveFrame=-1,resizeObserver=null;elementResize&&(resizeObserver=new ResizeObserver(_ref=>{let[firstEntry]=_ref;firstEntry&&firstEntry.target===referenceEl&&resizeObserver&&floating&&(resizeObserver.unobserve(floating),cancelAnimationFrame(reobserveFrame),reobserveFrame=requestAnimationFrame(()=>{var _resizeObserver;(_resizeObserver=resizeObserver)==null||_resizeObserver.observe(floating)})),update()}),referenceEl&&!animationFrame&&resizeObserver.observe(referenceEl),floating&&resizeObserver.observe(floating));let frameId,prevRefRect=animationFrame?getBoundingClientRect(reference):null;animationFrame&&frameLoop();function frameLoop(){const nextRefRect=getBoundingClientRect(reference);prevRefRect&&!rectsAreEqual(prevRefRect,nextRefRect)&&update(),prevRefRect=nextRefRect,frameId=requestAnimationFrame(frameLoop)}return update(),()=>{var _resizeObserver2;ancestors.forEach(ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update),ancestorResize&&ancestor.removeEventListener("resize",update)}),cleanupIo?.(),(_resizeObserver2=resizeObserver)==null||_resizeObserver2.disconnect(),resizeObserver=null,animationFrame&&cancelAnimationFrame(frameId)}}const floating_ui_dom_detectOverflow=detectOverflow,floating_ui_dom_offset=offset,floating_ui_dom_autoPlacement=autoPlacement,floating_ui_dom_shift=shift,floating_ui_dom_flip=flip,floating_ui_dom_size=size,floating_ui_dom_hide=hide,floating_ui_dom_arrow=arrow,floating_ui_dom_inline=inline,floating_ui_dom_limitShift=limitShift,floating_ui_dom_computePosition=(reference,floating,options)=>{const cache=new Map,mergedOptions=options??{},platformWithCache={...platform,...mergedOptions.platform,_c:cache};return computePosition(reference,floating,{...mergedOptions,platform:platformWithCache})};var floating_ui_react_dom_isClient=typeof document<"u",floating_ui_react_dom_noop=function(){},index=floating_ui_react_dom_isClient?react.useLayoutEffect:floating_ui_react_dom_noop;function deepEqual(a,b){if(a===b)return!0;if(typeof a!=typeof b)return!1;if(typeof a=="function"&&a.toString()===b.toString())return!0;let length,i,keys;if(a&&b&&typeof a=="object"){if(Array.isArray(a)){if(length=a.length,length!==b.length)return!1;for(i=length;i--!==0;)if(!deepEqual(a[i],b[i]))return!1;return!0}if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return!1;for(i=length;i--!==0;)if(!{}.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;i--!==0;){const key=keys[i];if(!(key==="_owner"&&a.$$typeof)&&!deepEqual(a[key],b[key]))return!1}return!0}return a!==a&&b!==b}function getDPR(element){return typeof window>"u"?1:(element.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function floating_ui_react_dom_useLatestRef(value){const ref=react.useRef(value);return index(()=>{ref.current=value}),ref}function useFloating(options){options===void 0&&(options={});const{placement="bottom",strategy="absolute",middleware=[],platform:platform2,elements:{reference:externalReference,floating:externalFloating}={},transform=!0,whileElementsMounted,open}=options,[data,setData]=react.useState({x:0,y:0,strategy,placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react.useState(null),[_floating,_setFloating]=react.useState(null),setReference=react.useCallback(node=>{node!==referenceRef.current&&(referenceRef.current=node,_setReference(node))},[]),setFloating=react.useCallback(node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))},[]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react.useRef(null),floatingRef=react.useRef(null),dataRef=react.useRef(data),hasWhileElementsMounted=whileElementsMounted!=null,whileElementsMountedRef=floating_ui_react_dom_useLatestRef(whileElementsMounted),platformRef=floating_ui_react_dom_useLatestRef(platform2),openRef=floating_ui_react_dom_useLatestRef(open),update=react.useCallback(()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement,strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),floating_ui_dom_computePosition(referenceRef.current,floatingRef.current,config).then(data2=>{const fullData={...data2,isPositioned:openRef.current!==!1};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom.flushSync(()=>{setData(fullData)}))})},[latestMiddleware,placement,strategy,platformRef,openRef]);index(()=>{open===!1&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData(data2=>({...data2,isPositioned:!1})))},[open]);const isMountedRef=react.useRef(!1);index(()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1}),[]),index(()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}},[referenceEl,floatingEl,update,whileElementsMountedRef,hasWhileElementsMounted]);const refs=react.useMemo(()=>({reference:referenceRef,floating:floatingRef,setReference,setFloating}),[setReference,setFloating]),elements=react.useMemo(()=>({reference:referenceEl,floating:floatingEl}),[referenceEl,floatingEl]),floatingStyles=react.useMemo(()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}},[strategy,transform,elements.floating,data.x,data.y]);return react.useMemo(()=>({...data,update,refs,elements,floatingStyles}),[data,update,refs,elements,floatingStyles])}const arrow$1=options=>{function isRef(value){return{}.hasOwnProperty.call(value,"current")}return{name:"arrow",options,fn(state){const{element,padding}=typeof options=="function"?options(state):options;return element&&isRef(element)?element.current!=null?floating_ui_dom_arrow({element:element.current,padding}).fn(state):{}:element?floating_ui_dom_arrow({element,padding}).fn(state):{}}}},floating_ui_react_dom_offset=(options,deps)=>{const result=floating_ui_dom_offset(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_shift=(options,deps)=>{const result=floating_ui_dom_shift(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_limitShift=(options,deps)=>({fn:floating_ui_dom_limitShift(options).fn,options:[options,deps]}),floating_ui_react_dom_flip=(options,deps)=>{const result=floating_ui_dom_flip(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_size=(options,deps)=>{const result=floating_ui_dom_size(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_autoPlacement=(options,deps)=>{const result=floating_ui_dom_autoPlacement(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_hide=(options,deps)=>{const result=floating_ui_dom_hide(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_inline=(options,deps)=>{const result=floating_ui_dom_inline(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_arrow=(options,deps)=>{const result=arrow$1(options);return{name:result.name,fn:result.fn,options:[options,deps]}};function useMergeRefs(refs){const cleanupRef=react.useRef(void 0),refEffect=react.useCallback(instance=>{const cleanups=refs.map(ref=>{if(ref!=null){if(typeof ref=="function"){const refCallback=ref,refCleanup=refCallback(instance);return typeof refCleanup=="function"?refCleanup:()=>{refCallback(null)}}return ref.current=instance,()=>{ref.current=null}}});return()=>{cleanups.forEach(refCleanup=>refCleanup?.())}},refs);return react.useMemo(()=>refs.every(ref=>ref==null)?null:value=>{cleanupRef.current&&(cleanupRef.current(),cleanupRef.current=void 0),value!=null&&(cleanupRef.current=refEffect(value))},refs)}function sortByDocumentPosition(a,b){const position=a.compareDocumentPosition(b);return position&Node.DOCUMENT_POSITION_FOLLOWING||position&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:position&Node.DOCUMENT_POSITION_PRECEDING||position&Node.DOCUMENT_POSITION_CONTAINS?1:0}const FloatingListContext=react.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function FloatingList(props){const{children,elementsRef,labelsRef}=props,[nodes,setNodes]=react.useState(()=>new Set),register=react.useCallback(node=>{setNodes(prevSet=>new Set(prevSet).add(node))},[]),unregister=react.useCallback(node=>{setNodes(prevSet=>{const set=new Set(prevSet);return set.delete(node),set})},[]),map=react.useMemo(()=>{const newMap=new Map;return Array.from(nodes.keys()).sort(sortByDocumentPosition).forEach((node,index2)=>{newMap.set(node,index2)}),newMap},[nodes]);return(0,jsx_runtime.jsx)(FloatingListContext.Provider,{value:react.useMemo(()=>({register,unregister,map,elementsRef,labelsRef}),[register,unregister,map,elementsRef,labelsRef]),children})}function useListItem(props){props===void 0&&(props={});const{label}=props,{register,unregister,map,elementsRef,labelsRef}=react.useContext(FloatingListContext),[index2,setIndex]=react.useState(null),componentRef=react.useRef(null),ref=react.useCallback(node=>{if(componentRef.current=node,index2!==null&&(elementsRef.current[index2]=node,labelsRef)){var _node$textContent;const isLabelDefined=label!==void 0;labelsRef.current[index2]=isLabelDefined?label:(_node$textContent=node?.textContent)!=null?_node$textContent:null}},[index2,elementsRef,labelsRef,label]);return floating_ui_react_utils_index(()=>{const node=componentRef.current;if(node)return register(node),()=>{unregister(node)}},[register,unregister]),floating_ui_react_utils_index(()=>{const index3=componentRef.current?map.get(componentRef.current):null;index3!=null&&setIndex(index3)},[map]),react.useMemo(()=>({ref,index:index2??-1}),[index2,ref])}const floating_ui_react_esm_FOCUSABLE_ATTRIBUTE="data-floating-ui-focusable",ACTIVE_KEY="active",SELECTED_KEY="selected",floating_ui_react_esm_ARROW_LEFT="ArrowLeft",floating_ui_react_esm_ARROW_RIGHT="ArrowRight",floating_ui_react_esm_ARROW_UP="ArrowUp",floating_ui_react_esm_ARROW_DOWN="ArrowDown";function renderJsx(render,computedProps){return typeof render=="function"?render(computedProps):render?react.cloneElement(render,computedProps):(0,jsx_runtime.jsx)("div",{...computedProps})}const CompositeContext=react.createContext({activeIndex:0,onNavigate:()=>{}}),horizontalKeys=[floating_ui_react_esm_ARROW_LEFT,floating_ui_react_esm_ARROW_RIGHT],verticalKeys=[floating_ui_react_esm_ARROW_UP,floating_ui_react_esm_ARROW_DOWN],allKeys=[...horizontalKeys,...verticalKeys],Composite=react.forwardRef(function(props,forwardedRef){const{render,orientation="both",loop=!0,rtl=!1,cols=1,disabledIndices,activeIndex:externalActiveIndex,onNavigate:externalSetActiveIndex,itemSizes,dense=!1,...domProps}=props,[internalActiveIndex,internalSetActiveIndex]=react.useState(0),activeIndex=externalActiveIndex??internalActiveIndex,onNavigate=useEffectEvent(externalSetActiveIndex??internalSetActiveIndex),elementsRef=react.useRef([]),renderElementProps=render&&typeof render!="function"?render.props:{},contextValue=react.useMemo(()=>({activeIndex,onNavigate}),[activeIndex,onNavigate]),isGrid=cols>1;function handleKeyDown(event){if(!allKeys.includes(event.key))return;let nextIndex=activeIndex;const minIndex=getMinListIndex(elementsRef,disabledIndices),maxIndex=getMaxListIndex(elementsRef,disabledIndices),horizontalEndKey=rtl?floating_ui_react_esm_ARROW_LEFT:floating_ui_react_esm_ARROW_RIGHT,horizontalStartKey=rtl?floating_ui_react_esm_ARROW_RIGHT:floating_ui_react_esm_ARROW_LEFT;if(isGrid){const sizes=itemSizes||Array.from({length:elementsRef.current.length},()=>({width:1,height:1})),cellMap=createGridCellMap(sizes,cols,dense),minGridIndex=cellMap.findIndex(index2=>index2!=null&&!isListIndexDisabled(elementsRef,index2,disabledIndices)),maxGridIndex=cellMap.reduce((foundIndex,index2,cellIndex)=>index2!=null&&!isListIndexDisabled(elementsRef,index2,disabledIndices)?cellIndex:foundIndex,-1),maybeNextIndex=cellMap[getGridNavigatedIndex({current:cellMap.map(itemIndex=>itemIndex?elementsRef.current[itemIndex]:null)},{event,orientation,loop,rtl,cols,disabledIndices:getGridCellIndices([...(typeof disabledIndices!="function"?disabledIndices:null)||elementsRef.current.map((_,index2)=>isListIndexDisabled(elementsRef,index2,disabledIndices)?index2:void 0),void 0],cellMap),minIndex:minGridIndex,maxIndex:maxGridIndex,prevIndex:getGridCellIndexOfCorner(activeIndex>maxIndex?minIndex:activeIndex,sizes,cellMap,cols,event.key===floating_ui_react_esm_ARROW_DOWN?"bl":event.key===horizontalEndKey?"tr":"tl")})];maybeNextIndex!=null&&(nextIndex=maybeNextIndex)}const toEndKeys={horizontal:[horizontalEndKey],vertical:[floating_ui_react_esm_ARROW_DOWN],both:[horizontalEndKey,floating_ui_react_esm_ARROW_DOWN]}[orientation],toStartKeys={horizontal:[horizontalStartKey],vertical:[floating_ui_react_esm_ARROW_UP],both:[horizontalStartKey,floating_ui_react_esm_ARROW_UP]}[orientation],preventedKeys=isGrid?allKeys:{horizontal:horizontalKeys,vertical:verticalKeys,both:allKeys}[orientation];if(nextIndex===activeIndex&&[...toEndKeys,...toStartKeys].includes(event.key)&&(loop&&nextIndex===maxIndex&&toEndKeys.includes(event.key)?nextIndex=minIndex:loop&&nextIndex===minIndex&&toStartKeys.includes(event.key)?nextIndex=maxIndex:nextIndex=findNonDisabledListIndex(elementsRef,{startingIndex:nextIndex,decrement:toStartKeys.includes(event.key),disabledIndices})),nextIndex!==activeIndex&&!isIndexOutOfListBounds(elementsRef,nextIndex)){var _elementsRef$current$;event.stopPropagation(),preventedKeys.includes(event.key)&&event.preventDefault(),onNavigate(nextIndex),(_elementsRef$current$=elementsRef.current[nextIndex])==null||_elementsRef$current$.focus()}}const computedProps={...domProps,...renderElementProps,ref:forwardedRef,"aria-orientation":orientation==="both"?void 0:orientation,onKeyDown(e){domProps.onKeyDown==null||domProps.onKeyDown(e),renderElementProps.onKeyDown==null||renderElementProps.onKeyDown(e),handleKeyDown(e)}};return(0,jsx_runtime.jsx)(CompositeContext.Provider,{value:contextValue,children:(0,jsx_runtime.jsx)(FloatingList,{elementsRef,children:renderJsx(render,computedProps)})})}),CompositeItem=react.forwardRef(function(props,forwardedRef){const{render,...domProps}=props,renderElementProps=render&&typeof render!="function"?render.props:{},{activeIndex,onNavigate}=react.useContext(CompositeContext),{ref,index:index2}=useListItem(),mergedRef=useMergeRefs([ref,forwardedRef,renderElementProps.ref]),isActive=activeIndex===index2,computedProps={...domProps,...renderElementProps,ref:mergedRef,tabIndex:isActive?0:-1,"data-active":isActive?"":void 0,onFocus(e){domProps.onFocus==null||domProps.onFocus(e),renderElementProps.onFocus==null||renderElementProps.onFocus(e),onNavigate(index2)}};return renderJsx(render,computedProps)}),floating_ui_react_esm_SafeReact={...react_namespaceObject};let serverHandoffComplete=!1,count=0;const genId=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;function useFloatingId(){const[id,setId]=react.useState(()=>serverHandoffComplete?genId():void 0);return floating_ui_react_utils_index(()=>{id==null&&setId(genId())},[]),react.useEffect(()=>{serverHandoffComplete=!0},[]),id}const useId=floating_ui_react_esm_SafeReact.useId||useFloatingId;let devMessageSet;function warn(){for(var _devMessageSet,_len=arguments.length,messages=new Array(_len),_key=0;_key<_len;_key++)messages[_key]=arguments[_key];const message="Floating UI: "+messages.join(" ");if(!((_devMessageSet=devMessageSet)!=null&&_devMessageSet.has(message))){var _devMessageSet2;(_devMessageSet2=devMessageSet)==null||_devMessageSet2.add(message),console.warn(message)}}function error(){for(var _devMessageSet3,_len2=arguments.length,messages=new Array(_len2),_key2=0;_key2<_len2;_key2++)messages[_key2]=arguments[_key2];const message="Floating UI: "+messages.join(" ");if(!((_devMessageSet3=devMessageSet)!=null&&_devMessageSet3.has(message))){var _devMessageSet4;(_devMessageSet4=devMessageSet)==null||_devMessageSet4.add(message),console.error(message)}}const FloatingArrow=react.forwardRef(function(props,ref){const{context:{placement,elements:{floating},middlewareData:{arrow:arrow2,shift:shift2}},width=14,height=7,tipRadius=0,strokeWidth=0,staticOffset,stroke,d,style:{transform,...restStyle}={},...rest}=props,clipPathId=useId(),[isRTL2,setIsRTL]=react.useState(!1);if(floating_ui_react_utils_index(()=>{if(!floating)return;floating_ui_utils_dom_getComputedStyle(floating).direction==="rtl"&&setIsRTL(!0)},[floating]),!floating)return null;const[side,alignment]=placement.split("-"),isVerticalSide=side==="top"||side==="bottom";let computedStaticOffset=staticOffset;(isVerticalSide&&shift2!=null&&shift2.x||!isVerticalSide&&shift2!=null&&shift2.y)&&(computedStaticOffset=null);const computedStrokeWidth=strokeWidth*2,halfStrokeWidth=computedStrokeWidth/2,svgX=width/2*(tipRadius/-8+1),svgY=height/2*tipRadius/4,isCustomShape=!!d,yOffsetProp=computedStaticOffset&&alignment==="end"?"bottom":"top";let xOffsetProp=computedStaticOffset&&alignment==="end"?"right":"left";computedStaticOffset&&isRTL2&&(xOffsetProp=alignment==="end"?"left":"right");const arrowX=arrow2?.x!=null?computedStaticOffset||arrow2.x:"",arrowY=arrow2?.y!=null?computedStaticOffset||arrow2.y:"",dValue=d||"M0,0"+(" H"+width)+(" L"+(width-svgX)+","+(height-svgY))+(" Q"+width/2+","+height+" "+svgX+","+(height-svgY))+" Z",rotation={top:isCustomShape?"rotate(180deg)":"",left:isCustomShape?"rotate(90deg)":"rotate(-90deg)",bottom:isCustomShape?"":"rotate(180deg)",right:isCustomShape?"rotate(-90deg)":"rotate(90deg)"}[side];return(0,jsx_runtime.jsxs)("svg",{...rest,"aria-hidden":!0,ref,width:isCustomShape?width:width+computedStrokeWidth,height:width,viewBox:"0 0 "+width+" "+(height>width?height:width),style:{position:"absolute",pointerEvents:"none",[xOffsetProp]:arrowX,[yOffsetProp]:arrowY,[side]:isVerticalSide||isCustomShape?"100%":"calc(100% - "+computedStrokeWidth/2+"px)",transform:[rotation,transform].filter(t=>!!t).join(" "),...restStyle},children:[computedStrokeWidth>0&&(0,jsx_runtime.jsx)("path",{clipPath:"url(#"+clipPathId+")",fill:"none",stroke,strokeWidth:computedStrokeWidth+(d?0:1),d:dValue}),(0,jsx_runtime.jsx)("path",{stroke:computedStrokeWidth&&!d?rest.fill:"none",d:dValue}),(0,jsx_runtime.jsx)("clipPath",{id:clipPathId,children:(0,jsx_runtime.jsx)("rect",{x:-halfStrokeWidth,y:halfStrokeWidth*(isCustomShape?-1:1),width:width+computedStrokeWidth,height:width})})]})});function createEventEmitter(){const map=new Map;return{emit(event,data){var _map$get;(_map$get=map.get(event))==null||_map$get.forEach(listener=>listener(data))},on(event,listener){map.has(event)||map.set(event,new Set),map.get(event).add(listener)},off(event,listener){var _map$get2;(_map$get2=map.get(event))==null||_map$get2.delete(listener)}}}const FloatingNodeContext=react.createContext(null),FloatingTreeContext=react.createContext(null),useFloatingParentNodeId=()=>{var _React$useContext;return((_React$useContext=react.useContext(FloatingNodeContext))==null?void 0:_React$useContext.id)||null},useFloatingTree=()=>react.useContext(FloatingTreeContext);function useFloatingNodeId(customParentId){const id=useId(),tree=useFloatingTree(),reactParentId=useFloatingParentNodeId(),parentId=customParentId||reactParentId;return floating_ui_react_utils_index(()=>{if(!id)return;const node={id,parentId};return tree?.addNode(node),()=>{tree?.removeNode(node)}},[tree,id,parentId]),id}function FloatingNode(props){const{children,id}=props,parentId=useFloatingParentNodeId();return(0,jsx_runtime.jsx)(FloatingNodeContext.Provider,{value:react.useMemo(()=>({id,parentId}),[id,parentId]),children})}function FloatingTree(props){const{children}=props,nodesRef=react.useRef([]),addNode=react.useCallback(node=>{nodesRef.current=[...nodesRef.current,node]},[]),removeNode=react.useCallback(node=>{nodesRef.current=nodesRef.current.filter(n=>n!==node)},[]),[events]=react.useState(()=>createEventEmitter());return(0,jsx_runtime.jsx)(FloatingTreeContext.Provider,{value:react.useMemo(()=>({nodesRef,addNode,removeNode,events}),[addNode,removeNode,events]),children})}function createAttribute(name){return"data-floating-ui-"+name}function clearTimeoutIfSet(timeoutRef){timeoutRef.current!==-1&&(clearTimeout(timeoutRef.current),timeoutRef.current=-1)}const safePolygonIdentifier=createAttribute("safe-polygon");function getDelay(value,prop,pointerType){if(pointerType&&!isMouseLikePointerType(pointerType))return 0;if(typeof value=="number")return value;if(typeof value=="function"){const result=value();return typeof result=="number"?result:result?.[prop]}return value?.[prop]}function getRestMs(value){return typeof value=="function"?value():value}function useHover(context,props){props===void 0&&(props={});const{open,onOpenChange,dataRef,events,elements}=context,{enabled=!0,delay=0,handleClose=null,mouseOnly=!1,restMs=0,move=!0}=props,tree=useFloatingTree(),parentId=useFloatingParentNodeId(),handleCloseRef=useLatestRef(handleClose),delayRef=useLatestRef(delay),openRef=useLatestRef(open),restMsRef=useLatestRef(restMs),pointerTypeRef=react.useRef(),timeoutRef=react.useRef(-1),handlerRef=react.useRef(),restTimeoutRef=react.useRef(-1),blockMouseMoveRef=react.useRef(!0),performedPointerEventsMutationRef=react.useRef(!1),unbindMouseMoveRef=react.useRef(()=>{}),restTimeoutPendingRef=react.useRef(!1),isHoverOpen=useEffectEvent(()=>{var _dataRef$current$open;const type=(_dataRef$current$open=dataRef.current.openEvent)==null?void 0:_dataRef$current$open.type;return type?.includes("mouse")&&type!=="mousedown"});react.useEffect(()=>{if(!enabled)return;function onOpenChange2(_ref){let{open:open2}=_ref;open2||(clearTimeoutIfSet(timeoutRef),clearTimeoutIfSet(restTimeoutRef),blockMouseMoveRef.current=!0,restTimeoutPendingRef.current=!1)}return events.on("openchange",onOpenChange2),()=>{events.off("openchange",onOpenChange2)}},[enabled,events]),react.useEffect(()=>{if(!enabled||!handleCloseRef.current||!open)return;function onLeave(event){isHoverOpen()&&onOpenChange(!1,event,"hover")}const html=getDocument(elements.floating).documentElement;return html.addEventListener("mouseleave",onLeave),()=>{html.removeEventListener("mouseleave",onLeave)}},[elements.floating,open,onOpenChange,enabled,handleCloseRef,isHoverOpen]);const closeWithDelay=react.useCallback(function(event,runElseBranch,reason){runElseBranch===void 0&&(runElseBranch=!0),reason===void 0&&(reason="hover");const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);closeDelay&&!handlerRef.current?(clearTimeoutIfSet(timeoutRef),timeoutRef.current=window.setTimeout(()=>onOpenChange(!1,event,reason),closeDelay)):runElseBranch&&(clearTimeoutIfSet(timeoutRef),onOpenChange(!1,event,reason))},[delayRef,onOpenChange]),cleanupMouseMoveHandler=useEffectEvent(()=>{unbindMouseMoveRef.current(),handlerRef.current=void 0}),clearPointerEvents=useEffectEvent(()=>{if(performedPointerEventsMutationRef.current){const body=getDocument(elements.floating).body;body.style.pointerEvents="",body.removeAttribute(safePolygonIdentifier),performedPointerEventsMutationRef.current=!1}}),isClickLikeOpenEvent=useEffectEvent(()=>dataRef.current.openEvent?["click","mousedown"].includes(dataRef.current.openEvent.type):!1);react.useEffect(()=>{if(!enabled)return;function onReferenceMouseEnter(event){if(clearTimeoutIfSet(timeoutRef),blockMouseMoveRef.current=!1,mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||getRestMs(restMsRef.current)>0&&!getDelay(delayRef.current,"open"))return;const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);openDelay?timeoutRef.current=window.setTimeout(()=>{openRef.current||onOpenChange(!0,event,"hover")},openDelay):open||onOpenChange(!0,event,"hover")}function onReferenceMouseLeave(event){if(isClickLikeOpenEvent()){clearPointerEvents();return}unbindMouseMoveRef.current();const doc=getDocument(elements.floating);if(clearTimeoutIfSet(restTimeoutRef),restTimeoutPendingRef.current=!1,handleCloseRef.current&&dataRef.current.floatingContext){open||clearTimeoutIfSet(timeoutRef),handlerRef.current=handleCloseRef.current({...dataRef.current.floatingContext,tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),isClickLikeOpenEvent()||closeWithDelay(event,!0,"safe-polygon")}});const handler=handlerRef.current;doc.addEventListener("mousemove",handler),unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)};return}(pointerTypeRef.current==="touch"?!contains(elements.floating,event.relatedTarget):!0)&&closeWithDelay(event)}function onScrollMouseLeave(event){isClickLikeOpenEvent()||!dataRef.current.floatingContext||handleCloseRef.current==null||handleCloseRef.current({...dataRef.current.floatingContext,tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),isClickLikeOpenEvent()||closeWithDelay(event)}})(event)}function onFloatingMouseEnter(){clearTimeoutIfSet(timeoutRef)}function onFloatingMouseLeave(event){isClickLikeOpenEvent()||closeWithDelay(event,!1)}if(isElement(elements.domReference)){const reference2=elements.domReference,floating=elements.floating;return open&&reference2.addEventListener("mouseleave",onScrollMouseLeave),move&&reference2.addEventListener("mousemove",onReferenceMouseEnter,{once:!0}),reference2.addEventListener("mouseenter",onReferenceMouseEnter),reference2.addEventListener("mouseleave",onReferenceMouseLeave),floating&&(floating.addEventListener("mouseleave",onScrollMouseLeave),floating.addEventListener("mouseenter",onFloatingMouseEnter),floating.addEventListener("mouseleave",onFloatingMouseLeave)),()=>{open&&reference2.removeEventListener("mouseleave",onScrollMouseLeave),move&&reference2.removeEventListener("mousemove",onReferenceMouseEnter),reference2.removeEventListener("mouseenter",onReferenceMouseEnter),reference2.removeEventListener("mouseleave",onReferenceMouseLeave),floating&&(floating.removeEventListener("mouseleave",onScrollMouseLeave),floating.removeEventListener("mouseenter",onFloatingMouseEnter),floating.removeEventListener("mouseleave",onFloatingMouseLeave))}}},[elements,enabled,context,mouseOnly,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,openRef,tree,delayRef,handleCloseRef,dataRef,isClickLikeOpenEvent,restMsRef]),floating_ui_react_utils_index(()=>{var _handleCloseRef$curre;if(!!enabled&&open&&(_handleCloseRef$curre=handleCloseRef.current)!=null&&(_handleCloseRef$curre=_handleCloseRef$curre.__options)!=null&&_handleCloseRef$curre.blockPointerEvents&&isHoverOpen()){performedPointerEventsMutationRef.current=!0;const floatingEl=elements.floating;if(isElement(elements.domReference)&&floatingEl){var _tree$nodesRef$curren;const body=getDocument(elements.floating).body;body.setAttribute(safePolygonIdentifier,"");const ref=elements.domReference,parentFloating=tree==null||(_tree$nodesRef$curren=tree.nodesRef.current.find(node=>node.id===parentId))==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.context)==null?void 0:_tree$nodesRef$curren.elements.floating;return parentFloating&&(parentFloating.style.pointerEvents=""),body.style.pointerEvents="none",ref.style.pointerEvents="auto",floatingEl.style.pointerEvents="auto",()=>{body.style.pointerEvents="",ref.style.pointerEvents="",floatingEl.style.pointerEvents=""}}}},[enabled,open,parentId,elements,tree,handleCloseRef,isHoverOpen]),floating_ui_react_utils_index(()=>{open||(pointerTypeRef.current=void 0,restTimeoutPendingRef.current=!1,cleanupMouseMoveHandler(),clearPointerEvents())},[open,cleanupMouseMoveHandler,clearPointerEvents]),react.useEffect(()=>()=>{cleanupMouseMoveHandler(),clearTimeoutIfSet(timeoutRef),clearTimeoutIfSet(restTimeoutRef),clearPointerEvents()},[enabled,elements.domReference,cleanupMouseMoveHandler,clearPointerEvents]);const reference=react.useMemo(()=>{function setPointerRef(event){pointerTypeRef.current=event.pointerType}return{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(event){const{nativeEvent}=event;function handleMouseMove(){!blockMouseMoveRef.current&&!openRef.current&&onOpenChange(!0,nativeEvent,"hover")}mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||open||getRestMs(restMsRef.current)===0||restTimeoutPendingRef.current&&event.movementX**2+event.movementY**2<2||(clearTimeoutIfSet(restTimeoutRef),pointerTypeRef.current==="touch"?handleMouseMove():(restTimeoutPendingRef.current=!0,restTimeoutRef.current=window.setTimeout(handleMouseMove,getRestMs(restMsRef.current))))}}},[mouseOnly,onOpenChange,open,openRef,restMsRef]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}const NOOP=()=>{},FloatingDelayGroupContext=react.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:NOOP,setState:NOOP,isInstantPhase:!1}),useDelayGroupContext=()=>react.useContext(FloatingDelayGroupContext);function FloatingDelayGroup(props){const{children,delay,timeoutMs=0}=props,[state,setState]=react.useReducer((prev,next)=>({...prev,...next}),{delay,timeoutMs,initialDelay:delay,currentId:null,isInstantPhase:!1}),initialCurrentIdRef=react.useRef(null),setCurrentId=react.useCallback(currentId=>{setState({currentId})},[]);return floating_ui_react_utils_index(()=>{state.currentId?initialCurrentIdRef.current===null?initialCurrentIdRef.current=state.currentId:state.isInstantPhase||setState({isInstantPhase:!0}):(state.isInstantPhase&&setState({isInstantPhase:!1}),initialCurrentIdRef.current=null)},[state.currentId,state.isInstantPhase]),(0,jsx_runtime.jsx)(FloatingDelayGroupContext.Provider,{value:react.useMemo(()=>({...state,setState,setCurrentId}),[state,setCurrentId]),children})}function useDelayGroup(context,options){options===void 0&&(options={});const{open,onOpenChange,floatingId}=context,{id:optionId,enabled=!0}=options,id=optionId??floatingId,groupContext=useDelayGroupContext(),{currentId,setCurrentId,initialDelay,setState,timeoutMs}=groupContext;return floating_ui_react_utils_index(()=>{!enabled||!currentId||(setState({delay:{open:1,close:getDelay(initialDelay,"close")}}),currentId!==id&&onOpenChange(!1))},[enabled,id,onOpenChange,setState,currentId,initialDelay]),floating_ui_react_utils_index(()=>{function unset(){onOpenChange(!1),setState({delay:initialDelay,currentId:null})}if(!!enabled&&!!currentId&&!open&¤tId===id){if(timeoutMs){const timeout=window.setTimeout(unset,timeoutMs);return()=>{clearTimeout(timeout)}}unset()}},[enabled,open,setState,currentId,id,onOpenChange,initialDelay,timeoutMs]),floating_ui_react_utils_index(()=>{!enabled||setCurrentId===NOOP||!open||setCurrentId(id)},[enabled,open,setCurrentId,id]),groupContext}const NextFloatingDelayGroupContext=react.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function NextFloatingDelayGroup(props){const{children,delay,timeoutMs=0}=props,delayRef=react.useRef(delay),initialDelayRef=react.useRef(delay),currentIdRef=react.useRef(null),currentContextRef=react.useRef(null),timeoutIdRef=react.useRef(-1);return(0,jsx_runtime.jsx)(NextFloatingDelayGroupContext.Provider,{value:react.useMemo(()=>({hasProvider:!0,delayRef,initialDelayRef,currentIdRef,timeoutMs,currentContextRef,timeoutIdRef}),[timeoutMs]),children})}function useNextDelayGroup(context,options){options===void 0&&(options={});const{open,onOpenChange,floatingId}=context,{enabled=!0}=options,groupContext=react.useContext(NextFloatingDelayGroupContext),{currentIdRef,delayRef,timeoutMs,initialDelayRef,currentContextRef,hasProvider,timeoutIdRef}=groupContext,[isInstantPhase,setIsInstantPhase]=react.useState(!1);return floating_ui_react_utils_index(()=>{function unset(){var _currentContextRef$cu;setIsInstantPhase(!1),(_currentContextRef$cu=currentContextRef.current)==null||_currentContextRef$cu.setIsInstantPhase(!1),currentIdRef.current=null,currentContextRef.current=null,delayRef.current=initialDelayRef.current}if(!!enabled&&!!currentIdRef.current&&!open&¤tIdRef.current===floatingId){if(setIsInstantPhase(!1),timeoutMs)return timeoutIdRef.current=window.setTimeout(unset,timeoutMs),()=>{clearTimeout(timeoutIdRef.current)};unset()}},[enabled,open,floatingId,currentIdRef,delayRef,timeoutMs,initialDelayRef,currentContextRef,timeoutIdRef]),floating_ui_react_utils_index(()=>{if(!enabled||!open)return;const prevContext=currentContextRef.current,prevId=currentIdRef.current;currentContextRef.current={onOpenChange,setIsInstantPhase},currentIdRef.current=floatingId,delayRef.current={open:0,close:getDelay(initialDelayRef.current,"close")},prevId!==null&&prevId!==floatingId?(clearTimeoutIfSet(timeoutIdRef),setIsInstantPhase(!0),prevContext?.setIsInstantPhase(!0),prevContext?.onOpenChange(!1)):(setIsInstantPhase(!1),prevContext?.setIsInstantPhase(!1))},[enabled,open,floatingId,onOpenChange,currentIdRef,delayRef,timeoutMs,initialDelayRef,currentContextRef,timeoutIdRef]),floating_ui_react_utils_index(()=>()=>{currentContextRef.current=null},[currentContextRef]),react.useMemo(()=>({hasProvider,delayRef,isInstantPhase}),[hasProvider,delayRef,isInstantPhase])}let rafId=0;function enqueueFocus(el,options){options===void 0&&(options={});const{preventScroll=!1,cancelPrevious=!0,sync=!1}=options;cancelPrevious&&cancelAnimationFrame(rafId);const exec=()=>el?.focus({preventScroll});sync?exec():rafId=requestAnimationFrame(exec)}function floating_ui_react_esm_contains(parent2,child){if(!parent2||!child)return!1;const rootNode=child.getRootNode==null?void 0:child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent2===next)return!0;next=next.parentNode||next.host}}return!1}function floating_ui_react_esm_getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}function floating_ui_react_esm_getDocument(node){return node?.ownerDocument||document}const counters={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function getCounterMap(control){return control==="inert"?counters.inert:control==="aria-hidden"?counters["aria-hidden"]:counters.none}let uncontrolledElementsSet=new WeakSet,markerMap={},lockCount$1=0;const supportsInert=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function unwrapHost(node){return node?isShadowRoot(node)?node.host:unwrapHost(node.parentNode):null}const correctElements=(parent2,targets)=>targets.map(target=>{if(parent2.contains(target))return target;const correctedTarget=unwrapHost(target);return parent2.contains(correctedTarget)?correctedTarget:null}).filter(x=>x!=null);function applyAttributeToOthers(uncorrectedAvoidElements,body,ariaHidden,inert){const markerName="data-floating-ui-inert",controlAttribute=inert?"inert":ariaHidden?"aria-hidden":null,avoidElements=correctElements(body,uncorrectedAvoidElements),elementsToKeep=new Set,elementsToStop=new Set(avoidElements),hiddenElements=[];markerMap[markerName]||(markerMap[markerName]=new WeakMap);const markerCounter=markerMap[markerName];avoidElements.forEach(keep),deep(body),elementsToKeep.clear();function keep(el){!el||elementsToKeep.has(el)||(elementsToKeep.add(el),el.parentNode&&keep(el.parentNode))}function deep(parent2){!parent2||elementsToStop.has(parent2)||[].forEach.call(parent2.children,node=>{if(getNodeName(node)!=="script")if(elementsToKeep.has(node))deep(node);else{const attr2=controlAttribute?node.getAttribute(controlAttribute):null,alreadyHidden=attr2!==null&&attr2!=="false",counterMap=getCounterMap(controlAttribute),counterValue=(counterMap.get(node)||0)+1,markerValue=(markerCounter.get(node)||0)+1;counterMap.set(node,counterValue),markerCounter.set(node,markerValue),hiddenElements.push(node),counterValue===1&&alreadyHidden&&uncontrolledElementsSet.add(node),markerValue===1&&node.setAttribute(markerName,""),!alreadyHidden&&controlAttribute&&node.setAttribute(controlAttribute,controlAttribute==="inert"?"":"true")}})}return lockCount$1++,()=>{hiddenElements.forEach(element=>{const counterMap=getCounterMap(controlAttribute),counterValue=(counterMap.get(element)||0)-1,markerValue=(markerCounter.get(element)||0)-1;counterMap.set(element,counterValue),markerCounter.set(element,markerValue),counterValue||(!uncontrolledElementsSet.has(element)&&controlAttribute&&element.removeAttribute(controlAttribute),uncontrolledElementsSet.delete(element)),markerValue||element.removeAttribute(markerName)}),lockCount$1--,lockCount$1||(counters.inert=new WeakMap,counters["aria-hidden"]=new WeakMap,counters.none=new WeakMap,uncontrolledElementsSet=new WeakSet,markerMap={})}}function markOthers(avoidElements,ariaHidden,inert){ariaHidden===void 0&&(ariaHidden=!1),inert===void 0&&(inert=!1);const body=floating_ui_react_esm_getDocument(avoidElements[0]).body;return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live],[role="status"],output'))),body,ariaHidden,inert)}const HIDDEN_STYLES={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},FocusGuard=react.forwardRef(function(props,ref){const[role,setRole]=react.useState();floating_ui_react_utils_index(()=>{isSafari()&&setRole("button")},[]);const restProps={ref,tabIndex:0,role,"aria-hidden":role?void 0:!0,[createAttribute("focus-guard")]:"",style:HIDDEN_STYLES};return(0,jsx_runtime.jsx)("span",{...props,...restProps})}),HIDDEN_OWNER_STYLES={clipPath:"inset(50%)",position:"fixed",top:0,left:0},PortalContext=react.createContext(null),attr=createAttribute("portal");function useFloatingPortalNode(props){props===void 0&&(props={});const{id,root}=props,uniqueId=useId(),portalContext=usePortalContext(),[portalNode,setPortalNode]=react.useState(null),portalNodeRef=react.useRef(null);return floating_ui_react_utils_index(()=>()=>{portalNode?.remove(),queueMicrotask(()=>{portalNodeRef.current=null})},[portalNode]),floating_ui_react_utils_index(()=>{if(!uniqueId||portalNodeRef.current)return;const existingIdRoot=id?document.getElementById(id):null;if(!existingIdRoot)return;const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),existingIdRoot.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)},[id,uniqueId]),floating_ui_react_utils_index(()=>{if(root===null||!uniqueId||portalNodeRef.current)return;let container=root||portalContext?.portalNode;container&&!isNode(container)&&(container=container.current),container=container||document.body;let idWrapper=null;id&&(idWrapper=document.createElement("div"),idWrapper.id=id,container.appendChild(idWrapper));const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),container=idWrapper||container,container.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)},[id,root,uniqueId,portalContext]),portalNode}function FloatingPortal(props){const{children,id,root,preserveTabOrder=!0}=props,portalNode=useFloatingPortalNode({id,root}),[focusManagerState,setFocusManagerState]=react.useState(null),beforeOutsideRef=react.useRef(null),afterOutsideRef=react.useRef(null),beforeInsideRef=react.useRef(null),afterInsideRef=react.useRef(null),modal=focusManagerState?.modal,open=focusManagerState?.open,shouldRenderGuards=!!focusManagerState&&!focusManagerState.modal&&focusManagerState.open&&preserveTabOrder&&!!(root||portalNode);return react.useEffect(()=>{if(!portalNode||!preserveTabOrder||modal)return;function onFocus(event){portalNode&&isOutsideEvent(event)&&(event.type==="focusin"?enableFocusInside:disableFocusInside)(portalNode)}return portalNode.addEventListener("focusin",onFocus,!0),portalNode.addEventListener("focusout",onFocus,!0),()=>{portalNode.removeEventListener("focusin",onFocus,!0),portalNode.removeEventListener("focusout",onFocus,!0)}},[portalNode,preserveTabOrder,modal]),react.useEffect(()=>{!portalNode||open||enableFocusInside(portalNode)},[open,portalNode]),(0,jsx_runtime.jsxs)(PortalContext.Provider,{value:react.useMemo(()=>({preserveTabOrder,beforeOutsideRef,afterOutsideRef,beforeInsideRef,afterInsideRef,portalNode,setFocusManagerState}),[preserveTabOrder,portalNode]),children:[shouldRenderGuards&&portalNode&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"outside",ref:beforeOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _beforeInsideRef$curr;(_beforeInsideRef$curr=beforeInsideRef.current)==null||_beforeInsideRef$curr.focus()}else{const domReference=focusManagerState?focusManagerState.domReference:null,prevTabbable=getPreviousTabbable(domReference);prevTabbable?.focus()}}}),shouldRenderGuards&&portalNode&&(0,jsx_runtime.jsx)("span",{"aria-owns":portalNode.id,style:HIDDEN_OWNER_STYLES}),portalNode&&react_dom.createPortal(children,portalNode),shouldRenderGuards&&portalNode&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"outside",ref:afterOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _afterInsideRef$curre;(_afterInsideRef$curre=afterInsideRef.current)==null||_afterInsideRef$curre.focus()}else{const domReference=focusManagerState?focusManagerState.domReference:null,nextTabbable=getNextTabbable(domReference);nextTabbable?.focus(),focusManagerState?.closeOnFocusOut&&focusManagerState?.onOpenChange(!1,event.nativeEvent,"focus-out")}}})]})}const usePortalContext=()=>react.useContext(PortalContext);function useLiteMergeRefs(refs){return react.useMemo(()=>value=>{refs.forEach(ref=>{ref&&(ref.current=value)})},refs)}const LIST_LIMIT=20;let previouslyFocusedElements=[];function clearDisconnectedPreviouslyFocusedElements(){previouslyFocusedElements=previouslyFocusedElements.filter(elementRef=>{var _elementRef$deref;return(_elementRef$deref=elementRef.deref())==null?void 0:_elementRef$deref.isConnected})}function addPreviouslyFocusedElement(element){clearDisconnectedPreviouslyFocusedElements(),element&&getNodeName(element)!=="body"&&(previouslyFocusedElements.push(new WeakRef(element)),previouslyFocusedElements.length>LIST_LIMIT&&(previouslyFocusedElements=previouslyFocusedElements.slice(-LIST_LIMIT)))}function getPreviouslyFocusedElement(){clearDisconnectedPreviouslyFocusedElements();const elementRef=previouslyFocusedElements[previouslyFocusedElements.length-1];return elementRef?.deref()}function getFirstTabbableElement(container){const tabbableOptions=getTabbableOptions();return isTabbable(container,tabbableOptions)?container:tabbable(container,tabbableOptions)[0]||container}function handleTabIndex(floatingFocusElement,orderRef){var _floatingFocusElement;if(!orderRef.current.includes("floating")&&!((_floatingFocusElement=floatingFocusElement.getAttribute("role"))!=null&&_floatingFocusElement.includes("dialog")))return;const options=getTabbableOptions(),tabbableContent=focusable(floatingFocusElement,options).filter(element=>{const dataTabIndex=element.getAttribute("data-tabindex")||"";return isTabbable(element,options)||element.hasAttribute("data-tabindex")&&!dataTabIndex.startsWith("-")}),tabIndex=floatingFocusElement.getAttribute("tabindex");orderRef.current.includes("floating")||tabbableContent.length===0?tabIndex!=="0"&&floatingFocusElement.setAttribute("tabindex","0"):(tabIndex!=="-1"||floatingFocusElement.hasAttribute("data-tabindex")&&floatingFocusElement.getAttribute("data-tabindex")!=="-1")&&(floatingFocusElement.setAttribute("tabindex","-1"),floatingFocusElement.setAttribute("data-tabindex","-1"))}const VisuallyHiddenDismiss=react.forwardRef(function(props,ref){return(0,jsx_runtime.jsx)("button",{...props,type:"button",ref,tabIndex:-1,style:HIDDEN_STYLES})});function FloatingFocusManager(props){const{context,children,disabled=!1,order=["content"],guards:_guards=!0,initialFocus=0,returnFocus=!0,restoreFocus=!1,modal=!0,visuallyHiddenDismiss=!1,closeOnFocusOut=!0,outsideElementsInert=!1,getInsideElements:_getInsideElements=()=>[]}=props,{open,onOpenChange,events,dataRef,elements:{domReference,floating}}=context,getNodeId=useEffectEvent(()=>{var _dataRef$current$floa;return(_dataRef$current$floa=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa.nodeId}),getInsideElements=useEffectEvent(_getInsideElements),ignoreInitialFocus=typeof initialFocus=="number"&&initialFocus<0,isUntrappedTypeableCombobox=isTypeableCombobox(domReference)&&ignoreInitialFocus,inertSupported=supportsInert(),guards=inertSupported?_guards:!0,useInert=!guards||inertSupported&&outsideElementsInert,orderRef=useLatestRef(order),initialFocusRef=useLatestRef(initialFocus),returnFocusRef=useLatestRef(returnFocus),tree=useFloatingTree(),portalContext=usePortalContext(),startDismissButtonRef=react.useRef(null),endDismissButtonRef=react.useRef(null),preventReturnFocusRef=react.useRef(!1),isPointerDownRef=react.useRef(!1),tabbableIndexRef=react.useRef(-1),blurTimeoutRef=react.useRef(-1),isInsidePortal=portalContext!=null,floatingFocusElement=getFloatingFocusElement(floating),getTabbableContent=useEffectEvent(function(container){return container===void 0&&(container=floatingFocusElement),container?tabbable(container,getTabbableOptions()):[]}),getTabbableElements=useEffectEvent(container=>{const content=getTabbableContent(container);return orderRef.current.map(type=>domReference&&type==="reference"?domReference:floatingFocusElement&&type==="floating"?floatingFocusElement:content).filter(Boolean).flat()});react.useEffect(()=>{if(disabled||!modal)return;function onKeyDown(event){if(event.key==="Tab"){contains(floatingFocusElement,activeElement(getDocument(floatingFocusElement)))&&getTabbableContent().length===0&&!isUntrappedTypeableCombobox&&stopEvent(event);const els=getTabbableElements(),target=getTarget(event);orderRef.current[0]==="reference"&&target===domReference&&(stopEvent(event),event.shiftKey?enqueueFocus(els[els.length-1]):enqueueFocus(els[1])),orderRef.current[1]==="floating"&&target===floatingFocusElement&&event.shiftKey&&(stopEvent(event),enqueueFocus(els[0]))}}const doc=getDocument(floatingFocusElement);return doc.addEventListener("keydown",onKeyDown),()=>{doc.removeEventListener("keydown",onKeyDown)}},[disabled,domReference,floatingFocusElement,modal,orderRef,isUntrappedTypeableCombobox,getTabbableContent,getTabbableElements]),react.useEffect(()=>{if(disabled||!floating)return;function handleFocusIn(event){const target=getTarget(event),tabbableIndex=getTabbableContent().indexOf(target);tabbableIndex!==-1&&(tabbableIndexRef.current=tabbableIndex)}return floating.addEventListener("focusin",handleFocusIn),()=>{floating.removeEventListener("focusin",handleFocusIn)}},[disabled,floating,getTabbableContent]),react.useEffect(()=>{if(disabled||!closeOnFocusOut)return;function handlePointerDown(){isPointerDownRef.current=!0,setTimeout(()=>{isPointerDownRef.current=!1})}function handleFocusOutside(event){const relatedTarget=event.relatedTarget,currentTarget=event.currentTarget,target=getTarget(event);queueMicrotask(()=>{const nodeId=getNodeId(),movedToUnrelatedNode=!(contains(domReference,relatedTarget)||contains(floating,relatedTarget)||contains(relatedTarget,floating)||contains(portalContext?.portalNode,relatedTarget)||relatedTarget!=null&&relatedTarget.hasAttribute(createAttribute("focus-guard"))||tree&&(getNodeChildren(tree.nodesRef.current,nodeId).find(node=>{var _node$context,_node$context2;return contains((_node$context=node.context)==null?void 0:_node$context.elements.floating,relatedTarget)||contains((_node$context2=node.context)==null?void 0:_node$context2.elements.domReference,relatedTarget)})||getNodeAncestors(tree.nodesRef.current,nodeId).find(node=>{var _node$context3,_node$context4,_node$context5;return[(_node$context3=node.context)==null?void 0:_node$context3.elements.floating,getFloatingFocusElement((_node$context4=node.context)==null?void 0:_node$context4.elements.floating)].includes(relatedTarget)||((_node$context5=node.context)==null?void 0:_node$context5.elements.domReference)===relatedTarget})));if(currentTarget===domReference&&floatingFocusElement&&handleTabIndex(floatingFocusElement,orderRef),restoreFocus&¤tTarget!==domReference&&!(target!=null&&target.isConnected)&&activeElement(getDocument(floatingFocusElement))===getDocument(floatingFocusElement).body){isHTMLElement(floatingFocusElement)&&floatingFocusElement.focus();const prevTabbableIndex=tabbableIndexRef.current,tabbableContent=getTabbableContent(),nodeToFocus=tabbableContent[prevTabbableIndex]||tabbableContent[tabbableContent.length-1]||floatingFocusElement;isHTMLElement(nodeToFocus)&&nodeToFocus.focus()}if(dataRef.current.insideReactTree){dataRef.current.insideReactTree=!1;return}(isUntrappedTypeableCombobox?!0:!modal)&&relatedTarget&&movedToUnrelatedNode&&!isPointerDownRef.current&&relatedTarget!==getPreviouslyFocusedElement()&&(preventReturnFocusRef.current=!0,onOpenChange(!1,event,"focus-out"))})}const shouldHandleBlurCapture=Boolean(!tree&&portalContext);function markInsideReactTree(){clearTimeoutIfSet(blurTimeoutRef),dataRef.current.insideReactTree=!0,blurTimeoutRef.current=window.setTimeout(()=>{dataRef.current.insideReactTree=!1})}if(floating&&isHTMLElement(domReference))return domReference.addEventListener("focusout",handleFocusOutside),domReference.addEventListener("pointerdown",handlePointerDown),floating.addEventListener("focusout",handleFocusOutside),shouldHandleBlurCapture&&floating.addEventListener("focusout",markInsideReactTree,!0),()=>{domReference.removeEventListener("focusout",handleFocusOutside),domReference.removeEventListener("pointerdown",handlePointerDown),floating.removeEventListener("focusout",handleFocusOutside),shouldHandleBlurCapture&&floating.removeEventListener("focusout",markInsideReactTree,!0)}},[disabled,domReference,floating,floatingFocusElement,modal,tree,portalContext,onOpenChange,closeOnFocusOut,restoreFocus,getTabbableContent,isUntrappedTypeableCombobox,getNodeId,orderRef,dataRef]);const beforeGuardRef=react.useRef(null),afterGuardRef=react.useRef(null),mergedBeforeGuardRef=useLiteMergeRefs([beforeGuardRef,portalContext?.beforeInsideRef]),mergedAfterGuardRef=useLiteMergeRefs([afterGuardRef,portalContext?.afterInsideRef]);react.useEffect(()=>{var _portalContext$portal,_ancestors$find;if(disabled||!floating)return;const portalNodes=Array.from((portalContext==null||(_portalContext$portal=portalContext.portalNode)==null?void 0:_portalContext$portal.querySelectorAll("["+createAttribute("portal")+"]"))||[]),rootAncestorComboboxDomReference=(_ancestors$find=(tree?getNodeAncestors(tree.nodesRef.current,getNodeId()):[]).find(node=>{var _node$context6;return isTypeableCombobox(((_node$context6=node.context)==null?void 0:_node$context6.elements.domReference)||null)}))==null||(_ancestors$find=_ancestors$find.context)==null?void 0:_ancestors$find.elements.domReference,insideElements=[floating,rootAncestorComboboxDomReference,...portalNodes,...getInsideElements(),startDismissButtonRef.current,endDismissButtonRef.current,beforeGuardRef.current,afterGuardRef.current,portalContext?.beforeOutsideRef.current,portalContext?.afterOutsideRef.current,orderRef.current.includes("reference")||isUntrappedTypeableCombobox?domReference:null].filter(x=>x!=null),cleanup2=modal||isUntrappedTypeableCombobox?markOthers(insideElements,!useInert,useInert):markOthers(insideElements);return()=>{cleanup2()}},[disabled,domReference,floating,modal,orderRef,portalContext,isUntrappedTypeableCombobox,guards,useInert,tree,getNodeId,getInsideElements]),floating_ui_react_utils_index(()=>{if(disabled||!isHTMLElement(floatingFocusElement))return;const doc=getDocument(floatingFocusElement),previouslyFocusedElement=activeElement(doc);queueMicrotask(()=>{const focusableElements=getTabbableElements(floatingFocusElement),initialFocusValue=initialFocusRef.current,elToFocus=(typeof initialFocusValue=="number"?focusableElements[initialFocusValue]:initialFocusValue.current)||floatingFocusElement,focusAlreadyInsideFloatingEl=contains(floatingFocusElement,previouslyFocusedElement);!ignoreInitialFocus&&!focusAlreadyInsideFloatingEl&&open&&enqueueFocus(elToFocus,{preventScroll:elToFocus===floatingFocusElement})})},[disabled,open,floatingFocusElement,ignoreInitialFocus,getTabbableElements,initialFocusRef]),floating_ui_react_utils_index(()=>{if(disabled||!floatingFocusElement)return;const doc=getDocument(floatingFocusElement),previouslyFocusedElement=activeElement(doc);addPreviouslyFocusedElement(previouslyFocusedElement);function onOpenChange2(_ref){let{reason,event,nested}=_ref;if(["hover","safe-polygon"].includes(reason)&&event.type==="mouseleave"&&(preventReturnFocusRef.current=!0),reason==="outside-press")if(nested)preventReturnFocusRef.current=!1;else if(isVirtualClick(event)||isVirtualPointerEvent(event))preventReturnFocusRef.current=!1;else{let isPreventScrollSupported=!1;document.createElement("div").focus({get preventScroll(){return isPreventScrollSupported=!0,!1}}),isPreventScrollSupported?preventReturnFocusRef.current=!1:preventReturnFocusRef.current=!0}}events.on("openchange",onOpenChange2);const fallbackEl=doc.createElement("span");fallbackEl.setAttribute("tabindex","-1"),fallbackEl.setAttribute("aria-hidden","true"),Object.assign(fallbackEl.style,HIDDEN_STYLES),isInsidePortal&&domReference&&domReference.insertAdjacentElement("afterend",fallbackEl);function getReturnElement(){if(typeof returnFocusRef.current=="boolean"){const el=domReference||getPreviouslyFocusedElement();return el&&el.isConnected?el:fallbackEl}return returnFocusRef.current.current||fallbackEl}return()=>{events.off("openchange",onOpenChange2);const activeEl=activeElement(doc),isFocusInsideFloatingTree=contains(floating,activeEl)||tree&&getNodeChildren(tree.nodesRef.current,getNodeId(),!1).some(node=>{var _node$context7;return contains((_node$context7=node.context)==null?void 0:_node$context7.elements.floating,activeEl)}),returnElement=getReturnElement();queueMicrotask(()=>{const tabbableReturnElement=getFirstTabbableElement(returnElement);returnFocusRef.current&&!preventReturnFocusRef.current&&isHTMLElement(tabbableReturnElement)&&(tabbableReturnElement!==activeEl&&activeEl!==doc.body?isFocusInsideFloatingTree:!0)&&tabbableReturnElement.focus({preventScroll:!0}),fallbackEl.remove()})}},[disabled,floating,floatingFocusElement,returnFocusRef,dataRef,events,tree,isInsidePortal,domReference,getNodeId]),react.useEffect(()=>(queueMicrotask(()=>{preventReturnFocusRef.current=!1}),()=>{queueMicrotask(clearDisconnectedPreviouslyFocusedElements)}),[disabled]),floating_ui_react_utils_index(()=>{if(!disabled&&!!portalContext)return portalContext.setFocusManagerState({modal,closeOnFocusOut,open,onOpenChange,domReference}),()=>{portalContext.setFocusManagerState(null)}},[disabled,portalContext,modal,open,onOpenChange,closeOnFocusOut,domReference]),floating_ui_react_utils_index(()=>{disabled||!floatingFocusElement||handleTabIndex(floatingFocusElement,orderRef)},[disabled,floatingFocusElement,orderRef]);function renderDismissButton(location){return disabled||!visuallyHiddenDismiss||!modal?null:(0,jsx_runtime.jsx)(VisuallyHiddenDismiss,{ref:location==="start"?startDismissButtonRef:endDismissButtonRef,onClick:event=>onOpenChange(!1,event.nativeEvent),children:typeof visuallyHiddenDismiss=="string"?visuallyHiddenDismiss:"Dismiss"})}const shouldRenderGuards=!disabled&&guards&&(modal?!isUntrappedTypeableCombobox:!0)&&(isInsidePortal||modal);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[shouldRenderGuards&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"inside",ref:mergedBeforeGuardRef,onFocus:event=>{if(modal){const els=getTabbableElements();enqueueFocus(order[0]==="reference"?els[0]:els[els.length-1])}else if(portalContext!=null&&portalContext.preserveTabOrder&&portalContext.portalNode)if(preventReturnFocusRef.current=!1,isOutsideEvent(event,portalContext.portalNode)){const nextTabbable=getNextTabbable(domReference);nextTabbable?.focus()}else{var _portalContext$before;(_portalContext$before=portalContext.beforeOutsideRef.current)==null||_portalContext$before.focus()}}}),!isUntrappedTypeableCombobox&&renderDismissButton("start"),children,renderDismissButton("end"),shouldRenderGuards&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"inside",ref:mergedAfterGuardRef,onFocus:event=>{if(modal)enqueueFocus(getTabbableElements()[0]);else if(portalContext!=null&&portalContext.preserveTabOrder&&portalContext.portalNode)if(closeOnFocusOut&&(preventReturnFocusRef.current=!0),isOutsideEvent(event,portalContext.portalNode)){const prevTabbable=getPreviousTabbable(domReference);prevTabbable?.focus()}else{var _portalContext$afterO;(_portalContext$afterO=portalContext.afterOutsideRef.current)==null||_portalContext$afterO.focus()}}})]})}let lockCount=0;const scrollbarProperty="--floating-ui-scrollbar-width";function enableScrollLock(){const platform2=getPlatform(),isIOS=/iP(hone|ad|od)|iOS/.test(platform2)||platform2==="MacIntel"&&navigator.maxTouchPoints>1,bodyStyle=document.body.style,paddingProp=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",scrollbarWidth=window.innerWidth-document.documentElement.clientWidth,scrollX=bodyStyle.left?parseFloat(bodyStyle.left):window.scrollX,scrollY=bodyStyle.top?parseFloat(bodyStyle.top):window.scrollY;if(bodyStyle.overflow="hidden",bodyStyle.setProperty(scrollbarProperty,scrollbarWidth+"px"),scrollbarWidth&&(bodyStyle[paddingProp]=scrollbarWidth+"px"),isIOS){var _window$visualViewpor,_window$visualViewpor2;const offsetLeft=((_window$visualViewpor=window.visualViewport)==null?void 0:_window$visualViewpor.offsetLeft)||0,offsetTop=((_window$visualViewpor2=window.visualViewport)==null?void 0:_window$visualViewpor2.offsetTop)||0;Object.assign(bodyStyle,{position:"fixed",top:-(scrollY-Math.floor(offsetTop))+"px",left:-(scrollX-Math.floor(offsetLeft))+"px",right:"0"})}return()=>{Object.assign(bodyStyle,{overflow:"",[paddingProp]:""}),bodyStyle.removeProperty(scrollbarProperty),isIOS&&(Object.assign(bodyStyle,{position:"",top:"",left:"",right:""}),window.scrollTo(scrollX,scrollY))}}let cleanup=()=>{};const FloatingOverlay=react.forwardRef(function(props,ref){const{lockScroll=!1,...rest}=props;return floating_ui_react_utils_index(()=>{if(!!lockScroll)return lockCount++,lockCount===1&&(cleanup=enableScrollLock()),()=>{lockCount--,lockCount===0&&cleanup()}},[lockScroll]),(0,jsx_runtime.jsx)("div",{ref,...rest,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...rest.style}})});function isButtonTarget(event){return isHTMLElement(event.target)&&event.target.tagName==="BUTTON"}function isAnchorTarget(event){return isHTMLElement(event.target)&&event.target.tagName==="A"}function isSpaceIgnored(element){return isTypeableElement(element)}function useClick(context,props){props===void 0&&(props={});const{open,onOpenChange,dataRef,elements:{domReference}}=context,{enabled=!0,event:eventOption="click",toggle=!0,ignoreMouse=!1,keyboardHandlers=!0,stickIfOpen=!0}=props,pointerTypeRef=react.useRef(),didKeyDownRef=react.useRef(!1),reference=react.useMemo(()=>({onPointerDown(event){pointerTypeRef.current=event.pointerType},onMouseDown(event){const pointerType=pointerTypeRef.current;event.button===0&&eventOption!=="click"&&(isMouseLikePointerType(pointerType,!0)&&ignoreMouse||(open&&toggle&&(dataRef.current.openEvent&&stickIfOpen?dataRef.current.openEvent.type==="mousedown":!0)?onOpenChange(!1,event.nativeEvent,"click"):(event.preventDefault(),onOpenChange(!0,event.nativeEvent,"click"))))},onClick(event){const pointerType=pointerTypeRef.current;if(eventOption==="mousedown"&&pointerTypeRef.current){pointerTypeRef.current=void 0;return}isMouseLikePointerType(pointerType,!0)&&ignoreMouse||(open&&toggle&&(dataRef.current.openEvent&&stickIfOpen?dataRef.current.openEvent.type==="click":!0)?onOpenChange(!1,event.nativeEvent,"click"):onOpenChange(!0,event.nativeEvent,"click"))},onKeyDown(event){pointerTypeRef.current=void 0,!(event.defaultPrevented||!keyboardHandlers||isButtonTarget(event))&&(event.key===" "&&!isSpaceIgnored(domReference)&&(event.preventDefault(),didKeyDownRef.current=!0),!isAnchorTarget(event)&&event.key==="Enter"&&onOpenChange(!(open&&toggle),event.nativeEvent,"click"))},onKeyUp(event){event.defaultPrevented||!keyboardHandlers||isButtonTarget(event)||isSpaceIgnored(domReference)||event.key===" "&&didKeyDownRef.current&&(didKeyDownRef.current=!1,onOpenChange(!(open&&toggle),event.nativeEvent,"click"))}}),[dataRef,domReference,eventOption,ignoreMouse,keyboardHandlers,onOpenChange,open,stickIfOpen,toggle]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}function createVirtualElement(domElement,data){let offsetX=null,offsetY=null,isAutoUpdateEvent=!1;return{contextElement:domElement||void 0,getBoundingClientRect(){var _data$dataRef$current;const domRect=domElement?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},isXAxis=data.axis==="x"||data.axis==="both",isYAxis=data.axis==="y"||data.axis==="both",canTrackCursorOnAutoUpdate=["mouseenter","mousemove"].includes(((_data$dataRef$current=data.dataRef.current.openEvent)==null?void 0:_data$dataRef$current.type)||"")&&data.pointerType!=="touch";let width=domRect.width,height=domRect.height,x=domRect.x,y=domRect.y;return offsetX==null&&data.x&&isXAxis&&(offsetX=domRect.x-data.x),offsetY==null&&data.y&&isYAxis&&(offsetY=domRect.y-data.y),x-=offsetX||0,y-=offsetY||0,width=0,height=0,!isAutoUpdateEvent||canTrackCursorOnAutoUpdate?(width=data.axis==="y"?domRect.width:0,height=data.axis==="x"?domRect.height:0,x=isXAxis&&data.x!=null?data.x:x,y=isYAxis&&data.y!=null?data.y:y):isAutoUpdateEvent&&!canTrackCursorOnAutoUpdate&&(height=data.axis==="x"?domRect.height:height,width=data.axis==="y"?domRect.width:width),isAutoUpdateEvent=!0,{width,height,x,y,top:y,right:x+width,bottom:y+height,left:x}}}}function isMouseBasedEvent(event){return event!=null&&event.clientX!=null}function useClientPoint(context,props){props===void 0&&(props={});const{open,dataRef,elements:{floating,domReference},refs}=context,{enabled=!0,axis="both",x=null,y=null}=props,initialRef=react.useRef(!1),cleanupListenerRef=react.useRef(null),[pointerType,setPointerType]=react.useState(),[reactive,setReactive]=react.useState([]),setReference=useEffectEvent((x2,y2)=>{initialRef.current||dataRef.current.openEvent&&!isMouseBasedEvent(dataRef.current.openEvent)||refs.setPositionReference(createVirtualElement(domReference,{x:x2,y:y2,axis,dataRef,pointerType}))}),handleReferenceEnterOrMove=useEffectEvent(event=>{x!=null||y!=null||(open?cleanupListenerRef.current||setReactive([]):setReference(event.clientX,event.clientY))}),openCheck=isMouseLikePointerType(pointerType)?floating:open,addListener=react.useCallback(()=>{if(!openCheck||!enabled||x!=null||y!=null)return;const win=getWindow(floating);function handleMouseMove(event){const target=getTarget(event);contains(floating,target)?(win.removeEventListener("mousemove",handleMouseMove),cleanupListenerRef.current=null):setReference(event.clientX,event.clientY)}if(!dataRef.current.openEvent||isMouseBasedEvent(dataRef.current.openEvent)){win.addEventListener("mousemove",handleMouseMove);const cleanup2=()=>{win.removeEventListener("mousemove",handleMouseMove),cleanupListenerRef.current=null};return cleanupListenerRef.current=cleanup2,cleanup2}refs.setPositionReference(domReference)},[openCheck,enabled,x,y,floating,dataRef,refs,domReference,setReference]);react.useEffect(()=>addListener(),[addListener,reactive]),react.useEffect(()=>{enabled&&!floating&&(initialRef.current=!1)},[enabled,floating]),react.useEffect(()=>{!enabled&&open&&(initialRef.current=!0)},[enabled,open]),floating_ui_react_utils_index(()=>{enabled&&(x!=null||y!=null)&&(initialRef.current=!1,setReference(x,y))},[enabled,x,y,setReference]);const reference=react.useMemo(()=>{function setPointerTypeRef(_ref){let{pointerType:pointerType2}=_ref;setPointerType(pointerType2)}return{onPointerDown:setPointerTypeRef,onPointerEnter:setPointerTypeRef,onMouseMove:handleReferenceEnterOrMove,onMouseEnter:handleReferenceEnterOrMove}},[handleReferenceEnterOrMove]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}const bubbleHandlerKeys={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},captureHandlerKeys={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=normalizable=>{var _normalizable$escapeK,_normalizable$outside;return{escapeKey:typeof normalizable=="boolean"?normalizable:(_normalizable$escapeK=normalizable?.escapeKey)!=null?_normalizable$escapeK:!1,outsidePress:typeof normalizable=="boolean"?normalizable:(_normalizable$outside=normalizable?.outsidePress)!=null?_normalizable$outside:!0}};function useDismiss(context,props){props===void 0&&(props={});const{open,onOpenChange,elements,dataRef}=context,{enabled=!0,escapeKey=!0,outsidePress:unstable_outsidePress=!0,outsidePressEvent="pointerdown",referencePress=!1,referencePressEvent="pointerdown",ancestorScroll=!1,bubbles,capture}=props,tree=useFloatingTree(),outsidePressFn=useEffectEvent(typeof unstable_outsidePress=="function"?unstable_outsidePress:()=>!1),outsidePress=typeof unstable_outsidePress=="function"?outsidePressFn:unstable_outsidePress,endedOrStartedInsideRef=react.useRef(!1),{escapeKey:escapeKeyBubbles,outsidePress:outsidePressBubbles}=normalizeProp(bubbles),{escapeKey:escapeKeyCapture,outsidePress:outsidePressCapture}=normalizeProp(capture),isComposingRef=react.useRef(!1),closeOnEscapeKeyDown=useEffectEvent(event=>{var _dataRef$current$floa;if(!open||!enabled||!escapeKey||event.key!=="Escape"||isComposingRef.current)return;const nodeId=(_dataRef$current$floa=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa.nodeId,children=tree?getNodeChildren(tree.nodesRef.current,nodeId):[];if(!escapeKeyBubbles&&(event.stopPropagation(),children.length>0)){let shouldDismiss=!0;if(children.forEach(child=>{var _child$context;if((_child$context=child.context)!=null&&_child$context.open&&!child.context.dataRef.current.__escapeKeyBubbles){shouldDismiss=!1;return}}),!shouldDismiss)return}onOpenChange(!1,isReactEvent(event)?event.nativeEvent:event,"escape-key")}),closeOnEscapeKeyDownCapture=useEffectEvent(event=>{var _getTarget2;const callback=()=>{var _getTarget;closeOnEscapeKeyDown(event),(_getTarget=getTarget(event))==null||_getTarget.removeEventListener("keydown",callback)};(_getTarget2=getTarget(event))==null||_getTarget2.addEventListener("keydown",callback)}),closeOnPressOutside=useEffectEvent(event=>{var _dataRef$current$floa2;const insideReactTree=dataRef.current.insideReactTree;dataRef.current.insideReactTree=!1;const endedOrStartedInside=endedOrStartedInsideRef.current;if(endedOrStartedInsideRef.current=!1,outsidePressEvent==="click"&&endedOrStartedInside||insideReactTree||typeof outsidePress=="function"&&!outsidePress(event))return;const target=getTarget(event),inertSelector="["+createAttribute("inert")+"]",markers=getDocument(elements.floating).querySelectorAll(inertSelector);let targetRootAncestor=isElement(target)?target:null;for(;targetRootAncestor&&!isLastTraversableNode(targetRootAncestor);){const nextParent=getParentNode(targetRootAncestor);if(isLastTraversableNode(nextParent)||!isElement(nextParent))break;targetRootAncestor=nextParent}if(markers.length&&isElement(target)&&!isRootElement(target)&&!contains(target,elements.floating)&&Array.from(markers).every(marker=>!contains(targetRootAncestor,marker)))return;if(isHTMLElement(target)&&floating){const lastTraversableNode=isLastTraversableNode(target),style=floating_ui_utils_dom_getComputedStyle(target),scrollRe=/auto|scroll/,isScrollableX=lastTraversableNode||scrollRe.test(style.overflowX),isScrollableY=lastTraversableNode||scrollRe.test(style.overflowY),canScrollX=isScrollableX&&target.clientWidth>0&&target.scrollWidth>target.clientWidth,canScrollY=isScrollableY&&target.clientHeight>0&&target.scrollHeight>target.clientHeight,isRTL2=style.direction==="rtl",pressedVerticalScrollbar=canScrollY&&(isRTL2?event.offsetX<=target.offsetWidth-target.clientWidth:event.offsetX>target.clientWidth),pressedHorizontalScrollbar=canScrollX&&event.offsetY>target.clientHeight;if(pressedVerticalScrollbar||pressedHorizontalScrollbar)return}const nodeId=(_dataRef$current$floa2=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa2.nodeId,targetIsInsideChildren=tree&&getNodeChildren(tree.nodesRef.current,nodeId).some(node=>{var _node$context;return isEventTargetWithin(event,(_node$context=node.context)==null?void 0:_node$context.elements.floating)});if(isEventTargetWithin(event,elements.floating)||isEventTargetWithin(event,elements.domReference)||targetIsInsideChildren)return;const children=tree?getNodeChildren(tree.nodesRef.current,nodeId):[];if(children.length>0){let shouldDismiss=!0;if(children.forEach(child=>{var _child$context2;if((_child$context2=child.context)!=null&&_child$context2.open&&!child.context.dataRef.current.__outsidePressBubbles){shouldDismiss=!1;return}}),!shouldDismiss)return}onOpenChange(!1,event,"outside-press")}),closeOnPressOutsideCapture=useEffectEvent(event=>{var _getTarget4;const callback=()=>{var _getTarget3;closeOnPressOutside(event),(_getTarget3=getTarget(event))==null||_getTarget3.removeEventListener(outsidePressEvent,callback)};(_getTarget4=getTarget(event))==null||_getTarget4.addEventListener(outsidePressEvent,callback)});react.useEffect(()=>{if(!open||!enabled)return;dataRef.current.__escapeKeyBubbles=escapeKeyBubbles,dataRef.current.__outsidePressBubbles=outsidePressBubbles;let compositionTimeout=-1;function onScroll(event){onOpenChange(!1,event,"ancestor-scroll")}function handleCompositionStart(){window.clearTimeout(compositionTimeout),isComposingRef.current=!0}function handleCompositionEnd(){compositionTimeout=window.setTimeout(()=>{isComposingRef.current=!1},isWebKit()?5:0)}const doc=getDocument(elements.floating);escapeKey&&(doc.addEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),doc.addEventListener("compositionstart",handleCompositionStart),doc.addEventListener("compositionend",handleCompositionEnd)),outsidePress&&doc.addEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture);let ancestors=[];return ancestorScroll&&(isElement(elements.domReference)&&(ancestors=getOverflowAncestors(elements.domReference)),isElement(elements.floating)&&(ancestors=ancestors.concat(getOverflowAncestors(elements.floating))),!isElement(elements.reference)&&elements.reference&&elements.reference.contextElement&&(ancestors=ancestors.concat(getOverflowAncestors(elements.reference.contextElement)))),ancestors=ancestors.filter(ancestor=>{var _doc$defaultView;return ancestor!==((_doc$defaultView=doc.defaultView)==null?void 0:_doc$defaultView.visualViewport)}),ancestors.forEach(ancestor=>{ancestor.addEventListener("scroll",onScroll)}),()=>{escapeKey&&(doc.removeEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),doc.removeEventListener("compositionstart",handleCompositionStart),doc.removeEventListener("compositionend",handleCompositionEnd)),outsidePress&&doc.removeEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture),ancestors.forEach(ancestor=>{ancestor.removeEventListener("scroll",onScroll)}),window.clearTimeout(compositionTimeout)}},[dataRef,elements,escapeKey,outsidePress,outsidePressEvent,open,onOpenChange,ancestorScroll,enabled,escapeKeyBubbles,outsidePressBubbles,closeOnEscapeKeyDown,escapeKeyCapture,closeOnEscapeKeyDownCapture,closeOnPressOutside,outsidePressCapture,closeOnPressOutsideCapture]),react.useEffect(()=>{dataRef.current.insideReactTree=!1},[dataRef,outsidePress,outsidePressEvent]);const reference=react.useMemo(()=>({onKeyDown:closeOnEscapeKeyDown,...referencePress&&{[bubbleHandlerKeys[referencePressEvent]]:event=>{onOpenChange(!1,event.nativeEvent,"reference-press")},...referencePressEvent!=="click"&&{onClick(event){onOpenChange(!1,event.nativeEvent,"reference-press")}}}}),[closeOnEscapeKeyDown,onOpenChange,referencePress,referencePressEvent]),floating=react.useMemo(()=>{function setMouseDownOrUpInside(event){event.button===0&&(endedOrStartedInsideRef.current=!0)}return{onKeyDown:closeOnEscapeKeyDown,onMouseDown:setMouseDownOrUpInside,onMouseUp:setMouseDownOrUpInside,[captureHandlerKeys[outsidePressEvent]]:()=>{dataRef.current.insideReactTree=!0}}},[closeOnEscapeKeyDown,outsidePressEvent,dataRef]);return react.useMemo(()=>enabled?{reference,floating}:{},[enabled,reference,floating])}function useFloatingRootContext(options){const{open=!1,onOpenChange:onOpenChangeProp,elements:elementsProp}=options,floatingId=useId(),dataRef=react.useRef({}),[events]=react.useState(()=>createEventEmitter()),nested=useFloatingParentNodeId()!=null,[positionReference,setPositionReference]=react.useState(elementsProp.reference),onOpenChange=useEffectEvent((open2,event,reason)=>{dataRef.current.openEvent=open2?event:void 0,events.emit("openchange",{open:open2,event,reason,nested}),onOpenChangeProp?.(open2,event,reason)}),refs=react.useMemo(()=>({setPositionReference}),[]),elements=react.useMemo(()=>({reference:positionReference||elementsProp.reference||null,floating:elementsProp.floating||null,domReference:elementsProp.reference}),[positionReference,elementsProp.reference,elementsProp.floating]);return react.useMemo(()=>({dataRef,open,onOpenChange,elements,events,floatingId,refs}),[open,onOpenChange,elements,events,floatingId,refs])}function floating_ui_react_esm_useFloating(_temp){var _elementsOption$refer,_elementsOption$float;let{elements:elementsOption,...options}=_temp===void 0?{}:_temp;const{nodeId}=options,internalRootContext=useFloatingRootContext({...options,elements:{reference:(_elementsOption$refer=elementsOption?.reference)!=null?_elementsOption$refer:null,floating:(_elementsOption$float=elementsOption?.floating)!=null?_elementsOption$float:null}}),rootContext=options.rootContext||internalRootContext,computedElements=rootContext.elements,[_domReference,setDomReference]=react.useState(null),[positionReference,_setPositionReference]=react.useState(null),domReference=computedElements?.domReference||_domReference,domReferenceRef=react.useRef(null),tree=useFloatingTree();floating_ui_react_utils_index(()=>{domReference&&(domReferenceRef.current=domReference)},[domReference]);const position=useFloating({...options,elements:{...computedElements,...positionReference&&{reference:positionReference}}}),setPositionReference=react.useCallback(node=>{const computedPositionReference=isElement(node)?{getBoundingClientRect:()=>node.getBoundingClientRect(),getClientRects:()=>node.getClientRects(),contextElement:node}:node;_setPositionReference(computedPositionReference),position.refs.setReference(computedPositionReference)},[position.refs]),setReference=react.useCallback(node=>{(isElement(node)||node===null)&&(domReferenceRef.current=node,setDomReference(node)),(isElement(position.refs.reference.current)||position.refs.reference.current===null||node!==null&&!isElement(node))&&position.refs.setReference(node)},[position.refs]),refs=react.useMemo(()=>({...position.refs,setReference,setPositionReference,domReference:domReferenceRef}),[position.refs,setReference,setPositionReference]),elements=react.useMemo(()=>({...position.elements,domReference}),[position.elements,domReference]),context=react.useMemo(()=>({...position,...rootContext,refs,elements,nodeId}),[position,refs,elements,nodeId,rootContext]);return floating_ui_react_utils_index(()=>{rootContext.dataRef.current.floatingContext=context;const node=tree?.nodesRef.current.find(node2=>node2.id===nodeId);node&&(node.context=context)}),react.useMemo(()=>({...position,context,refs,elements}),[position,refs,elements,context])}function isMacSafari(){return isMac()&&isSafari()}function useFocus(context,props){props===void 0&&(props={});const{open,onOpenChange,events,dataRef,elements}=context,{enabled=!0,visibleOnly=!0}=props,blockFocusRef=react.useRef(!1),timeoutRef=react.useRef(-1),keyboardModalityRef=react.useRef(!0);react.useEffect(()=>{if(!enabled)return;const win=getWindow(elements.domReference);function onBlur(){!open&&isHTMLElement(elements.domReference)&&elements.domReference===activeElement(getDocument(elements.domReference))&&(blockFocusRef.current=!0)}function onKeyDown(){keyboardModalityRef.current=!0}function onPointerDown(){keyboardModalityRef.current=!1}return win.addEventListener("blur",onBlur),isMacSafari()&&(win.addEventListener("keydown",onKeyDown,!0),win.addEventListener("pointerdown",onPointerDown,!0)),()=>{win.removeEventListener("blur",onBlur),isMacSafari()&&(win.removeEventListener("keydown",onKeyDown,!0),win.removeEventListener("pointerdown",onPointerDown,!0))}},[elements.domReference,open,enabled]),react.useEffect(()=>{if(!enabled)return;function onOpenChange2(_ref){let{reason}=_ref;(reason==="reference-press"||reason==="escape-key")&&(blockFocusRef.current=!0)}return events.on("openchange",onOpenChange2),()=>{events.off("openchange",onOpenChange2)}},[events,enabled]),react.useEffect(()=>()=>{clearTimeoutIfSet(timeoutRef)},[]);const reference=react.useMemo(()=>({onMouseLeave(){blockFocusRef.current=!1},onFocus(event){if(blockFocusRef.current)return;const target=getTarget(event.nativeEvent);if(visibleOnly&&isElement(target)){if(isMacSafari()&&!event.relatedTarget){if(!keyboardModalityRef.current&&!isTypeableElement(target))return}else if(!matchesFocusVisible(target))return}onOpenChange(!0,event.nativeEvent,"focus")},onBlur(event){blockFocusRef.current=!1;const relatedTarget=event.relatedTarget,nativeEvent=event.nativeEvent,movedToFocusGuard=isElement(relatedTarget)&&relatedTarget.hasAttribute(createAttribute("focus-guard"))&&relatedTarget.getAttribute("data-type")==="outside";timeoutRef.current=window.setTimeout(()=>{var _dataRef$current$floa;const activeEl=activeElement(elements.domReference?elements.domReference.ownerDocument:document);!relatedTarget&&activeEl===elements.domReference||contains((_dataRef$current$floa=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa.refs.floating.current,activeEl)||contains(elements.domReference,activeEl)||movedToFocusGuard||onOpenChange(!1,nativeEvent,"focus")})}}),[dataRef,elements.domReference,onOpenChange,visibleOnly]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}function mergeProps(userProps,propsList,elementKey){const map=new Map,isItem=elementKey==="item";let domUserProps=userProps;if(isItem&&userProps){const{[ACTIVE_KEY]:_,[SELECTED_KEY]:__,...validProps}=userProps;domUserProps=validProps}return{...elementKey==="floating"&&{tabIndex:-1,[floating_ui_react_esm_FOCUSABLE_ATTRIBUTE]:""},...domUserProps,...propsList.map(value=>{const propsOrGetProps=value?value[elementKey]:null;return typeof propsOrGetProps=="function"?userProps?propsOrGetProps(userProps):null:propsOrGetProps}).concat(userProps).reduce((acc,props)=>(props&&Object.entries(props).forEach(_ref=>{let[key,value]=_ref;if(!(isItem&&[ACTIVE_KEY,SELECTED_KEY].includes(key)))if(key.indexOf("on")===0){if(map.has(key)||map.set(key,[]),typeof value=="function"){var _map$get;(_map$get=map.get(key))==null||_map$get.push(value),acc[key]=function(){for(var _map$get2,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_map$get2=map.get(key))==null?void 0:_map$get2.map(fn=>fn(...args)).find(val=>val!==void 0)}}}else acc[key]=value}),acc),{})}}function useInteractions(propsList){propsList===void 0&&(propsList=[]);const referenceDeps=propsList.map(key=>key?.reference),floatingDeps=propsList.map(key=>key?.floating),itemDeps=propsList.map(key=>key?.item),getReferenceProps=react.useCallback(userProps=>mergeProps(userProps,propsList,"reference"),referenceDeps),getFloatingProps=react.useCallback(userProps=>mergeProps(userProps,propsList,"floating"),floatingDeps),getItemProps=react.useCallback(userProps=>mergeProps(userProps,propsList,"item"),itemDeps);return react.useMemo(()=>({getReferenceProps,getFloatingProps,getItemProps}),[getReferenceProps,getFloatingProps,getItemProps])}const ESCAPE="Escape";function doSwitch(orientation,vertical,horizontal){switch(orientation){case"vertical":return vertical;case"horizontal":return horizontal;default:return vertical||horizontal}}function isMainOrientationKey(key,orientation){return doSwitch(orientation,key===floating_ui_react_esm_ARROW_UP||key===floating_ui_react_esm_ARROW_DOWN,key===floating_ui_react_esm_ARROW_LEFT||key===floating_ui_react_esm_ARROW_RIGHT)}function isMainOrientationToEndKey(key,orientation,rtl){return doSwitch(orientation,key===floating_ui_react_esm_ARROW_DOWN,rtl?key===floating_ui_react_esm_ARROW_LEFT:key===floating_ui_react_esm_ARROW_RIGHT)||key==="Enter"||key===" "||key===""}function isCrossOrientationOpenKey(key,orientation,rtl){return doSwitch(orientation,rtl?key===floating_ui_react_esm_ARROW_LEFT:key===floating_ui_react_esm_ARROW_RIGHT,key===floating_ui_react_esm_ARROW_DOWN)}function isCrossOrientationCloseKey(key,orientation,rtl,cols){const vertical=rtl?key===floating_ui_react_esm_ARROW_RIGHT:key===floating_ui_react_esm_ARROW_LEFT,horizontal=key===floating_ui_react_esm_ARROW_UP;return orientation==="both"||orientation==="horizontal"&&cols&&cols>1?key===ESCAPE:doSwitch(orientation,vertical,horizontal)}function useListNavigation(context,props){const{open,onOpenChange,elements,floatingId}=context,{listRef,activeIndex,onNavigate:unstable_onNavigate=()=>{},enabled=!0,selectedIndex=null,allowEscape=!1,loop=!1,nested=!1,rtl=!1,virtual=!1,focusItemOnOpen="auto",focusItemOnHover=!0,openOnArrowKeyDown=!0,disabledIndices=void 0,orientation="vertical",parentOrientation,cols=1,scrollItemIntoView=!0,virtualItemRef,itemSizes,dense=!1}=props,floatingFocusElement=getFloatingFocusElement(elements.floating),floatingFocusElementRef=useLatestRef(floatingFocusElement),parentId=useFloatingParentNodeId(),tree=useFloatingTree();floating_ui_react_utils_index(()=>{context.dataRef.current.orientation=orientation},[context,orientation]);const onNavigate=useEffectEvent(()=>{unstable_onNavigate(indexRef.current===-1?null:indexRef.current)}),typeableComboboxReference=isTypeableCombobox(elements.domReference),focusItemOnOpenRef=react.useRef(focusItemOnOpen),indexRef=react.useRef(selectedIndex??-1),keyRef=react.useRef(null),isPointerModalityRef=react.useRef(!0),previousOnNavigateRef=react.useRef(onNavigate),previousMountedRef=react.useRef(!!elements.floating),previousOpenRef=react.useRef(open),forceSyncFocusRef=react.useRef(!1),forceScrollIntoViewRef=react.useRef(!1),disabledIndicesRef=useLatestRef(disabledIndices),latestOpenRef=useLatestRef(open),scrollItemIntoViewRef=useLatestRef(scrollItemIntoView),selectedIndexRef=useLatestRef(selectedIndex),[activeId,setActiveId]=react.useState(),[virtualId,setVirtualId]=react.useState(),focusItem=useEffectEvent(()=>{function runFocus(item2){if(virtual){var _item$id;(_item$id=item2.id)!=null&&_item$id.endsWith("-fui-option")&&(item2.id=floatingId+"-"+Math.random().toString(16).slice(2,10)),setActiveId(item2.id),tree?.events.emit("virtualfocus",item2),virtualItemRef&&(virtualItemRef.current=item2)}else enqueueFocus(item2,{sync:forceSyncFocusRef.current,preventScroll:!0})}const initialItem=listRef.current[indexRef.current],forceScrollIntoView=forceScrollIntoViewRef.current;initialItem&&runFocus(initialItem),(forceSyncFocusRef.current?v=>v():requestAnimationFrame)(()=>{const waitedItem=listRef.current[indexRef.current]||initialItem;if(!waitedItem)return;initialItem||runFocus(waitedItem);const scrollIntoViewOptions=scrollItemIntoViewRef.current;scrollIntoViewOptions&&item&&(forceScrollIntoView||!isPointerModalityRef.current)&&(waitedItem.scrollIntoView==null||waitedItem.scrollIntoView(typeof scrollIntoViewOptions=="boolean"?{block:"nearest",inline:"nearest"}:scrollIntoViewOptions))})});floating_ui_react_utils_index(()=>{!enabled||(open&&elements.floating?focusItemOnOpenRef.current&&selectedIndex!=null&&(forceScrollIntoViewRef.current=!0,indexRef.current=selectedIndex,onNavigate()):previousMountedRef.current&&(indexRef.current=-1,previousOnNavigateRef.current()))},[enabled,open,elements.floating,selectedIndex,onNavigate]),floating_ui_react_utils_index(()=>{if(!!enabled&&!!open&&!!elements.floating)if(activeIndex==null){if(forceSyncFocusRef.current=!1,selectedIndexRef.current!=null)return;if(previousMountedRef.current&&(indexRef.current=-1,focusItem()),(!previousOpenRef.current||!previousMountedRef.current)&&focusItemOnOpenRef.current&&(keyRef.current!=null||focusItemOnOpenRef.current===!0&&keyRef.current==null)){let runs=0;const waitForListPopulated=()=>{listRef.current[0]==null?(runs<2&&(runs?requestAnimationFrame:queueMicrotask)(waitForListPopulated),runs++):(indexRef.current=keyRef.current==null||isMainOrientationToEndKey(keyRef.current,orientation,rtl)||nested?getMinListIndex(listRef,disabledIndicesRef.current):getMaxListIndex(listRef,disabledIndicesRef.current),keyRef.current=null,onNavigate())};waitForListPopulated()}}else isIndexOutOfListBounds(listRef,activeIndex)||(indexRef.current=activeIndex,focusItem(),forceScrollIntoViewRef.current=!1)},[enabled,open,elements.floating,activeIndex,selectedIndexRef,nested,listRef,orientation,rtl,onNavigate,focusItem,disabledIndicesRef]),floating_ui_react_utils_index(()=>{var _nodes$find;if(!enabled||elements.floating||!tree||virtual||!previousMountedRef.current)return;const nodes=tree.nodesRef.current,parent2=(_nodes$find=nodes.find(node=>node.id===parentId))==null||(_nodes$find=_nodes$find.context)==null?void 0:_nodes$find.elements.floating,activeEl=activeElement(getDocument(elements.floating)),treeContainsActiveEl=nodes.some(node=>node.context&&contains(node.context.elements.floating,activeEl));parent2&&!treeContainsActiveEl&&isPointerModalityRef.current&&parent2.focus({preventScroll:!0})},[enabled,elements.floating,tree,parentId,virtual]),floating_ui_react_utils_index(()=>{if(!enabled||!tree||!virtual||parentId)return;function handleVirtualFocus(item2){setVirtualId(item2.id),virtualItemRef&&(virtualItemRef.current=item2)}return tree.events.on("virtualfocus",handleVirtualFocus),()=>{tree.events.off("virtualfocus",handleVirtualFocus)}},[enabled,tree,virtual,parentId,virtualItemRef]),floating_ui_react_utils_index(()=>{previousOnNavigateRef.current=onNavigate,previousOpenRef.current=open,previousMountedRef.current=!!elements.floating}),floating_ui_react_utils_index(()=>{open||(keyRef.current=null,focusItemOnOpenRef.current=focusItemOnOpen)},[open,focusItemOnOpen]);const hasActiveIndex=activeIndex!=null,item=react.useMemo(()=>{function syncCurrentTarget(currentTarget){if(!latestOpenRef.current)return;const index2=listRef.current.indexOf(currentTarget);index2!==-1&&indexRef.current!==index2&&(indexRef.current=index2,onNavigate())}return{onFocus(_ref){let{currentTarget}=_ref;forceSyncFocusRef.current=!0,syncCurrentTarget(currentTarget)},onClick:_ref2=>{let{currentTarget}=_ref2;return currentTarget.focus({preventScroll:!0})},onMouseMove(_ref3){let{currentTarget}=_ref3;forceSyncFocusRef.current=!0,forceScrollIntoViewRef.current=!1,focusItemOnHover&&syncCurrentTarget(currentTarget)},onPointerLeave(_ref4){let{pointerType}=_ref4;if(!(!isPointerModalityRef.current||pointerType==="touch")&&(forceSyncFocusRef.current=!0,!!focusItemOnHover&&(indexRef.current=-1,onNavigate(),!virtual))){var _floatingFocusElement;(_floatingFocusElement=floatingFocusElementRef.current)==null||_floatingFocusElement.focus({preventScroll:!0})}}}},[latestOpenRef,floatingFocusElementRef,focusItemOnHover,listRef,onNavigate,virtual]),getParentOrientation=react.useCallback(()=>{var _tree$nodesRef$curren;return parentOrientation??(tree==null||(_tree$nodesRef$curren=tree.nodesRef.current.find(node=>node.id===parentId))==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.context)==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.dataRef)==null?void 0:_tree$nodesRef$curren.current.orientation)},[parentId,tree,parentOrientation]),commonOnKeyDown=useEffectEvent(event=>{if(isPointerModalityRef.current=!1,forceSyncFocusRef.current=!0,event.which===229||!latestOpenRef.current&&event.currentTarget===floatingFocusElementRef.current)return;if(nested&&isCrossOrientationCloseKey(event.key,orientation,rtl,cols)){isMainOrientationKey(event.key,getParentOrientation())||stopEvent(event),onOpenChange(!1,event.nativeEvent,"list-navigation"),isHTMLElement(elements.domReference)&&(virtual?tree?.events.emit("virtualfocus",elements.domReference):elements.domReference.focus());return}const currentIndex=indexRef.current,minIndex=getMinListIndex(listRef,disabledIndices),maxIndex=getMaxListIndex(listRef,disabledIndices);if(typeableComboboxReference||(event.key==="Home"&&(stopEvent(event),indexRef.current=minIndex,onNavigate()),event.key==="End"&&(stopEvent(event),indexRef.current=maxIndex,onNavigate())),cols>1){const sizes=itemSizes||Array.from({length:listRef.current.length},()=>({width:1,height:1})),cellMap=createGridCellMap(sizes,cols,dense),minGridIndex=cellMap.findIndex(index3=>index3!=null&&!isListIndexDisabled(listRef,index3,disabledIndices)),maxGridIndex=cellMap.reduce((foundIndex,index3,cellIndex)=>index3!=null&&!isListIndexDisabled(listRef,index3,disabledIndices)?cellIndex:foundIndex,-1),index2=cellMap[getGridNavigatedIndex({current:cellMap.map(itemIndex=>itemIndex!=null?listRef.current[itemIndex]:null)},{event,orientation,loop,rtl,cols,disabledIndices:getGridCellIndices([...(typeof disabledIndices!="function"?disabledIndices:null)||listRef.current.map((_,index3)=>isListIndexDisabled(listRef,index3,disabledIndices)?index3:void 0),void 0],cellMap),minIndex:minGridIndex,maxIndex:maxGridIndex,prevIndex:getGridCellIndexOfCorner(indexRef.current>maxIndex?minIndex:indexRef.current,sizes,cellMap,cols,event.key===floating_ui_react_esm_ARROW_DOWN?"bl":event.key===(rtl?floating_ui_react_esm_ARROW_LEFT:floating_ui_react_esm_ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(index2!=null&&(indexRef.current=index2,onNavigate()),orientation==="both")return}if(isMainOrientationKey(event.key,orientation)){if(stopEvent(event),open&&!virtual&&activeElement(event.currentTarget.ownerDocument)===event.currentTarget){indexRef.current=isMainOrientationToEndKey(event.key,orientation,rtl)?minIndex:maxIndex,onNavigate();return}isMainOrientationToEndKey(event.key,orientation,rtl)?loop?indexRef.current=currentIndex>=maxIndex?allowEscape&¤tIndex!==listRef.current.length?-1:minIndex:findNonDisabledListIndex(listRef,{startingIndex:currentIndex,disabledIndices}):indexRef.current=Math.min(maxIndex,findNonDisabledListIndex(listRef,{startingIndex:currentIndex,disabledIndices})):loop?indexRef.current=currentIndex<=minIndex?allowEscape&¤tIndex!==-1?listRef.current.length:maxIndex:findNonDisabledListIndex(listRef,{startingIndex:currentIndex,decrement:!0,disabledIndices}):indexRef.current=Math.max(minIndex,findNonDisabledListIndex(listRef,{startingIndex:currentIndex,decrement:!0,disabledIndices})),isIndexOutOfListBounds(listRef,indexRef.current)&&(indexRef.current=-1),onNavigate()}}),ariaActiveDescendantProp=react.useMemo(()=>virtual&&open&&hasActiveIndex&&{"aria-activedescendant":virtualId||activeId},[virtual,open,hasActiveIndex,virtualId,activeId]),floating=react.useMemo(()=>({"aria-orientation":orientation==="both"?void 0:orientation,...typeableComboboxReference?{}:ariaActiveDescendantProp,onKeyDown:commonOnKeyDown,onPointerMove(){isPointerModalityRef.current=!0}}),[ariaActiveDescendantProp,commonOnKeyDown,orientation,typeableComboboxReference]),reference=react.useMemo(()=>{function checkVirtualMouse(event){focusItemOnOpen==="auto"&&isVirtualClick(event.nativeEvent)&&(focusItemOnOpenRef.current=!0)}function checkVirtualPointer(event){focusItemOnOpenRef.current=focusItemOnOpen,focusItemOnOpen==="auto"&&isVirtualPointerEvent(event.nativeEvent)&&(focusItemOnOpenRef.current=!0)}return{...ariaActiveDescendantProp,onKeyDown(event){isPointerModalityRef.current=!1;const isArrowKey=event.key.startsWith("Arrow"),isHomeOrEndKey=["Home","End"].includes(event.key),isMoveKey=isArrowKey||isHomeOrEndKey,isCrossOpenKey=isCrossOrientationOpenKey(event.key,orientation,rtl),isCrossCloseKey=isCrossOrientationCloseKey(event.key,orientation,rtl,cols),isParentCrossOpenKey=isCrossOrientationOpenKey(event.key,getParentOrientation(),rtl),isMainKey=isMainOrientationKey(event.key,orientation),isNavigationKey=(nested?isParentCrossOpenKey:isMainKey)||event.key==="Enter"||event.key.trim()==="";if(virtual&&open){const rootNode=tree?.nodesRef.current.find(node=>node.parentId==null),deepestNode=tree&&rootNode?getDeepestNode(tree.nodesRef.current,rootNode.id):null;if(isMoveKey&&deepestNode&&virtualItemRef){const eventObject=new KeyboardEvent("keydown",{key:event.key,bubbles:!0});if(isCrossOpenKey||isCrossCloseKey){var _deepestNode$context,_deepestNode$context2;const isCurrentTarget=((_deepestNode$context=deepestNode.context)==null?void 0:_deepestNode$context.elements.domReference)===event.currentTarget,dispatchItem=isCrossCloseKey&&!isCurrentTarget?(_deepestNode$context2=deepestNode.context)==null?void 0:_deepestNode$context2.elements.domReference:isCrossOpenKey?listRef.current.find(item2=>item2?.id===activeId):null;dispatchItem&&(stopEvent(event),dispatchItem.dispatchEvent(eventObject),setVirtualId(void 0))}if((isMainKey||isHomeOrEndKey)&&deepestNode.context&&deepestNode.context.open&&deepestNode.parentId&&event.currentTarget!==deepestNode.context.elements.domReference){var _deepestNode$context$;stopEvent(event),(_deepestNode$context$=deepestNode.context.elements.domReference)==null||_deepestNode$context$.dispatchEvent(eventObject);return}}return commonOnKeyDown(event)}if(!(!open&&!openOnArrowKeyDown&&isArrowKey)){if(isNavigationKey){const isParentMainKey=isMainOrientationKey(event.key,getParentOrientation());keyRef.current=nested&&isParentMainKey?null:event.key}if(nested){isParentCrossOpenKey&&(stopEvent(event),open?(indexRef.current=getMinListIndex(listRef,disabledIndicesRef.current),onNavigate()):onOpenChange(!0,event.nativeEvent,"list-navigation"));return}isMainKey&&(selectedIndex!=null&&(indexRef.current=selectedIndex),stopEvent(event),!open&&openOnArrowKeyDown?onOpenChange(!0,event.nativeEvent,"list-navigation"):commonOnKeyDown(event),open&&onNavigate())}},onFocus(){open&&!virtual&&(indexRef.current=-1,onNavigate())},onPointerDown:checkVirtualPointer,onPointerEnter:checkVirtualPointer,onMouseDown:checkVirtualMouse,onClick:checkVirtualMouse}},[activeId,ariaActiveDescendantProp,cols,commonOnKeyDown,disabledIndicesRef,focusItemOnOpen,listRef,nested,onNavigate,onOpenChange,open,openOnArrowKeyDown,orientation,getParentOrientation,rtl,selectedIndex,tree,virtual,virtualItemRef]);return react.useMemo(()=>enabled?{reference,floating,item}:{},[enabled,reference,floating,item])}const componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(context,props){var _elements$domReferenc,_componentRoleToAriaR;props===void 0&&(props={});const{open,elements,floatingId:defaultFloatingId}=context,{enabled=!0,role="dialog"}=props,defaultReferenceId=useId(),referenceId=((_elements$domReferenc=elements.domReference)==null?void 0:_elements$domReferenc.id)||defaultReferenceId,floatingId=react.useMemo(()=>{var _getFloatingFocusElem;return((_getFloatingFocusElem=getFloatingFocusElement(elements.floating))==null?void 0:_getFloatingFocusElem.id)||defaultFloatingId},[elements.floating,defaultFloatingId]),ariaRole=(_componentRoleToAriaR=componentRoleToAriaRoleMap.get(role))!=null?_componentRoleToAriaR:role,isNested=useFloatingParentNodeId()!=null,reference=react.useMemo(()=>ariaRole==="tooltip"||role==="label"?{["aria-"+(role==="label"?"labelledby":"describedby")]:open?floatingId:void 0}:{"aria-expanded":open?"true":"false","aria-haspopup":ariaRole==="alertdialog"?"dialog":ariaRole,"aria-controls":open?floatingId:void 0,...ariaRole==="listbox"&&{role:"combobox"},...ariaRole==="menu"&&{id:referenceId},...ariaRole==="menu"&&isNested&&{role:"menuitem"},...role==="select"&&{"aria-autocomplete":"none"},...role==="combobox"&&{"aria-autocomplete":"list"}},[ariaRole,floatingId,isNested,open,referenceId,role]),floating=react.useMemo(()=>{const floatingProps={id:floatingId,...ariaRole&&{role:ariaRole}};return ariaRole==="tooltip"||role==="label"?floatingProps:{...floatingProps,...ariaRole==="menu"&&{"aria-labelledby":referenceId}}},[ariaRole,floatingId,referenceId,role]),item=react.useCallback(_ref=>{let{active,selected}=_ref;const commonProps={role:"option",...active&&{id:floatingId+"-fui-option"}};switch(role){case"select":case"combobox":return{...commonProps,"aria-selected":selected}}return{}},[floatingId,role]);return react.useMemo(()=>enabled?{reference,floating,item}:{},[enabled,reference,floating,item])}const camelCaseToKebabCase=str=>str.replace(/[A-Z]+(?![a-z])|[A-Z]/g,($,ofs)=>(ofs?"-":"")+$.toLowerCase());function execWithArgsOrReturn(valueOrFn,args){return typeof valueOrFn=="function"?valueOrFn(args):valueOrFn}function useDelayUnmount(open,durationMs){const[isMounted,setIsMounted]=react.useState(open);return open&&!isMounted&&setIsMounted(!0),react.useEffect(()=>{if(!open&&isMounted){const timeout=setTimeout(()=>setIsMounted(!1),durationMs);return()=>clearTimeout(timeout)}},[open,isMounted,durationMs]),isMounted}function useTransitionStatus(context,props){props===void 0&&(props={});const{open,elements:{floating}}=context,{duration=250}=props,closeDuration=(typeof duration=="number"?duration:duration.close)||0,[status,setStatus]=react.useState("unmounted"),isMounted=useDelayUnmount(open,closeDuration);return!isMounted&&status==="close"&&setStatus("unmounted"),floating_ui_react_utils_index(()=>{if(!!floating){if(open){setStatus("initial");const frame=requestAnimationFrame(()=>{react_dom.flushSync(()=>{setStatus("open")})});return()=>{cancelAnimationFrame(frame)}}setStatus("close")}},[open,floating]),{isMounted,status}}function useTransitionStyles(context,props){props===void 0&&(props={});const{initial:unstable_initial={opacity:0},open:unstable_open,close:unstable_close,common:unstable_common,duration=250}=props,placement=context.placement,side=placement.split("-")[0],fnArgs=react.useMemo(()=>({side,placement}),[side,placement]),isNumberDuration=typeof duration=="number",openDuration=(isNumberDuration?duration:duration.open)||0,closeDuration=(isNumberDuration?duration:duration.close)||0,[styles,setStyles]=react.useState(()=>({...execWithArgsOrReturn(unstable_common,fnArgs),...execWithArgsOrReturn(unstable_initial,fnArgs)})),{isMounted,status}=useTransitionStatus(context,{duration}),initialRef=useLatestRef(unstable_initial),openRef=useLatestRef(unstable_open),closeRef=useLatestRef(unstable_close),commonRef=useLatestRef(unstable_common);return floating_ui_react_utils_index(()=>{const initialStyles=execWithArgsOrReturn(initialRef.current,fnArgs),closeStyles=execWithArgsOrReturn(closeRef.current,fnArgs),commonStyles=execWithArgsOrReturn(commonRef.current,fnArgs),openStyles=execWithArgsOrReturn(openRef.current,fnArgs)||Object.keys(initialStyles).reduce((acc,key)=>(acc[key]="",acc),{});if(status==="initial"&&setStyles(styles2=>({transitionProperty:styles2.transitionProperty,...commonStyles,...initialStyles})),status==="open"&&setStyles({transitionProperty:Object.keys(openStyles).map(camelCaseToKebabCase).join(","),transitionDuration:openDuration+"ms",...commonStyles,...openStyles}),status==="close"){const styles2=closeStyles||initialStyles;setStyles({transitionProperty:Object.keys(styles2).map(camelCaseToKebabCase).join(","),transitionDuration:closeDuration+"ms",...commonStyles,...styles2})}},[closeDuration,closeRef,initialRef,openRef,commonRef,openDuration,status,fnArgs]),{isMounted,styles}}function useTypeahead(context,props){var _ref;const{open,dataRef}=context,{listRef,activeIndex,onMatch:unstable_onMatch,onTypingChange:unstable_onTypingChange,enabled=!0,findMatch=null,resetMs=750,ignoreKeys=[],selectedIndex=null}=props,timeoutIdRef=react.useRef(-1),stringRef=react.useRef(""),prevIndexRef=react.useRef((_ref=selectedIndex??activeIndex)!=null?_ref:-1),matchIndexRef=react.useRef(null),onMatch=useEffectEvent(unstable_onMatch),onTypingChange=useEffectEvent(unstable_onTypingChange),findMatchRef=useLatestRef(findMatch),ignoreKeysRef=useLatestRef(ignoreKeys);floating_ui_react_utils_index(()=>{open&&(clearTimeoutIfSet(timeoutIdRef),matchIndexRef.current=null,stringRef.current="")},[open]),floating_ui_react_utils_index(()=>{if(open&&stringRef.current===""){var _ref2;prevIndexRef.current=(_ref2=selectedIndex??activeIndex)!=null?_ref2:-1}},[open,selectedIndex,activeIndex]);const setTypingChange=useEffectEvent(value=>{value?dataRef.current.typing||(dataRef.current.typing=value,onTypingChange(value)):dataRef.current.typing&&(dataRef.current.typing=value,onTypingChange(value))}),onKeyDown=useEffectEvent(event=>{function getMatchingIndex(list,orderedList,string){const str=findMatchRef.current?findMatchRef.current(orderedList,string):orderedList.find(text=>text?.toLocaleLowerCase().indexOf(string.toLocaleLowerCase())===0);return str?list.indexOf(str):-1}const listContent=listRef.current;if(stringRef.current.length>0&&stringRef.current[0]!==" "&&(getMatchingIndex(listContent,listContent,stringRef.current)===-1?setTypingChange(!1):event.key===" "&&stopEvent(event)),listContent==null||ignoreKeysRef.current.includes(event.key)||event.key.length!==1||event.ctrlKey||event.metaKey||event.altKey)return;open&&event.key!==" "&&(stopEvent(event),setTypingChange(!0)),listContent.every(text=>{var _text$,_text$2;return text?((_text$=text[0])==null?void 0:_text$.toLocaleLowerCase())!==((_text$2=text[1])==null?void 0:_text$2.toLocaleLowerCase()):!0})&&stringRef.current===event.key&&(stringRef.current="",prevIndexRef.current=matchIndexRef.current),stringRef.current+=event.key,clearTimeoutIfSet(timeoutIdRef),timeoutIdRef.current=window.setTimeout(()=>{stringRef.current="",prevIndexRef.current=matchIndexRef.current,setTypingChange(!1)},resetMs);const prevIndex=prevIndexRef.current,index2=getMatchingIndex(listContent,[...listContent.slice((prevIndex||0)+1),...listContent.slice(0,(prevIndex||0)+1)],stringRef.current);index2!==-1?(onMatch(index2),matchIndexRef.current=index2):event.key!==" "&&(stringRef.current="",setTypingChange(!1))}),reference=react.useMemo(()=>({onKeyDown}),[onKeyDown]),floating=react.useMemo(()=>({onKeyDown,onKeyUp(event){event.key===" "&&setTypingChange(!1)}}),[onKeyDown,setTypingChange]);return react.useMemo(()=>enabled?{reference,floating}:{},[enabled,reference,floating])}function getArgsWithCustomFloatingHeight(state,height){return{...state,rects:{...state.rects,floating:{...state.rects.floating,height}}}}const inner=props=>({name:"inner",options:props,async fn(state){const{listRef,overflowRef,onFallbackChange,offset:innerOffset=0,index:index2=0,minItemsVisible=4,referenceOverflowThreshold=0,scrollRef,...detectOverflowOptions}=evaluate(props,state),{rects,platform:platform2,elements:{floating}}=state,item=listRef.current[index2],scrollEl=scrollRef?.current||floating,clientTop=floating.clientTop||scrollEl.clientTop,floatingIsBordered=floating.clientTop!==0,scrollElIsBordered=scrollEl.clientTop!==0,floatingIsScrollEl=floating===scrollEl;if(!item)return{};const nextArgs={...state,...await floating_ui_react_dom_offset(-item.offsetTop-floating.clientTop-rects.reference.height/2-item.offsetHeight/2-innerOffset).fn(state)},overflow=await platform2.detectOverflow(getArgsWithCustomFloatingHeight(nextArgs,scrollEl.scrollHeight+clientTop+floating.clientTop),detectOverflowOptions),refOverflow=await platform2.detectOverflow(nextArgs,{...detectOverflowOptions,elementContext:"reference"}),diffY=max(0,overflow.top),nextY=nextArgs.y+diffY,maxHeight=(scrollEl.scrollHeight>scrollEl.clientHeight?v=>v:round)(max(0,scrollEl.scrollHeight+(floatingIsBordered&&floatingIsScrollEl||scrollElIsBordered?clientTop*2:0)-diffY-max(0,overflow.bottom)));if(scrollEl.style.maxHeight=maxHeight+"px",scrollEl.scrollTop=diffY,onFallbackChange){const shouldFallback=scrollEl.offsetHeight<item.offsetHeight*min(minItemsVisible,listRef.current.length)-1||refOverflow.top>=-referenceOverflowThreshold||refOverflow.bottom>=-referenceOverflowThreshold;react_dom.flushSync(()=>onFallbackChange(shouldFallback))}return overflowRef&&(overflowRef.current=await platform2.detectOverflow(getArgsWithCustomFloatingHeight({...nextArgs,y:nextY},scrollEl.offsetHeight+clientTop+floating.clientTop),detectOverflowOptions)),{y:nextY}}});function useInnerOffset(context,props){const{open,elements}=context,{enabled=!0,overflowRef,scrollRef,onChange:unstable_onChange}=props,onChange=useEffectEvent(unstable_onChange),controlledScrollingRef=react.useRef(!1),prevScrollTopRef=react.useRef(null),initialOverflowRef=react.useRef(null);react.useEffect(()=>{if(!enabled)return;function onWheel(e){if(e.ctrlKey||!el||overflowRef.current==null)return;const dY=e.deltaY,isAtTop=overflowRef.current.top>=-.5,isAtBottom=overflowRef.current.bottom>=-.5,remainingScroll=el.scrollHeight-el.clientHeight,sign=dY<0?-1:1,method=dY<0?"max":"min";el.scrollHeight<=el.clientHeight||(!isAtTop&&dY>0||!isAtBottom&&dY<0?(e.preventDefault(),react_dom.flushSync(()=>{onChange(d=>d+Math[method](dY,remainingScroll*sign))})):/firefox/i.test(getUserAgent())&&(el.scrollTop+=dY))}const el=scrollRef?.current||elements.floating;if(open&&el)return el.addEventListener("wheel",onWheel),requestAnimationFrame(()=>{prevScrollTopRef.current=el.scrollTop,overflowRef.current!=null&&(initialOverflowRef.current={...overflowRef.current})}),()=>{prevScrollTopRef.current=null,initialOverflowRef.current=null,el.removeEventListener("wheel",onWheel)}},[enabled,open,elements.floating,overflowRef,scrollRef,onChange]);const floating=react.useMemo(()=>({onKeyDown(){controlledScrollingRef.current=!0},onWheel(){controlledScrollingRef.current=!1},onPointerMove(){controlledScrollingRef.current=!1},onScroll(){const el=scrollRef?.current||elements.floating;if(!(!overflowRef.current||!el||!controlledScrollingRef.current)){if(prevScrollTopRef.current!==null){const scrollDiff=el.scrollTop-prevScrollTopRef.current;(overflowRef.current.bottom<-.5&&scrollDiff<-1||overflowRef.current.top<-.5&&scrollDiff>1)&&react_dom.flushSync(()=>onChange(d=>d+scrollDiff))}requestAnimationFrame(()=>{prevScrollTopRef.current=el.scrollTop})}}}),[elements.floating,onChange,overflowRef,scrollRef]);return react.useMemo(()=>enabled?{floating}:{},[enabled,floating])}function floating_ui_react_esm_getNodeChildren(nodes,id,onlyOpenChildren){return onlyOpenChildren===void 0&&(onlyOpenChildren=!0),nodes.filter(node=>{var _node$context;return node.parentId===id&&(!onlyOpenChildren||((_node$context=node.context)==null?void 0:_node$context.open))}).flatMap(child=>[child,...floating_ui_react_esm_getNodeChildren(nodes,child.id,onlyOpenChildren)])}function isPointInPolygon(point,polygon){const[x,y]=point;let isInside2=!1;const length=polygon.length;for(let i=0,j=length-1;i<length;j=i++){const[xi,yi]=polygon[i]||[0,0],[xj,yj]=polygon[j]||[0,0];yi>=y!=yj>=y&&x<=(xj-xi)*(y-yi)/(yj-yi)+xi&&(isInside2=!isInside2)}return isInside2}function isInside(point,rect){return point[0]>=rect.x&&point[0]<=rect.x+rect.width&&point[1]>=rect.y&&point[1]<=rect.y+rect.height}function safePolygon(options){options===void 0&&(options={});const{buffer=.5,blockPointerEvents=!1,requireIntent=!0}=options,timeoutRef={current:-1};let hasLanded=!1,lastX=null,lastY=null,lastCursorTime=typeof performance<"u"?performance.now():0;function getCursorSpeed(x,y){const currentTime=performance.now(),elapsedTime=currentTime-lastCursorTime;if(lastX===null||lastY===null||elapsedTime===0)return lastX=x,lastY=y,lastCursorTime=currentTime,null;const deltaX=x-lastX,deltaY=y-lastY,speed=Math.sqrt(deltaX*deltaX+deltaY*deltaY)/elapsedTime;return lastX=x,lastY=y,lastCursorTime=currentTime,speed}const fn=_ref=>{let{x,y,placement,elements,onClose,nodeId,tree}=_ref;return function(event){function close(){clearTimeoutIfSet(timeoutRef),onClose()}if(clearTimeoutIfSet(timeoutRef),!elements.domReference||!elements.floating||placement==null||x==null||y==null)return;const{clientX,clientY}=event,clientPoint=[clientX,clientY],target=floating_ui_react_esm_getTarget(event),isLeave=event.type==="mouseleave",isOverFloatingEl=floating_ui_react_esm_contains(elements.floating,target),isOverReferenceEl=floating_ui_react_esm_contains(elements.domReference,target),refRect=elements.domReference.getBoundingClientRect(),rect=elements.floating.getBoundingClientRect(),side=placement.split("-")[0],cursorLeaveFromRight=x>rect.right-rect.width/2,cursorLeaveFromBottom=y>rect.bottom-rect.height/2,isOverReferenceRect=isInside(clientPoint,refRect),isFloatingWider=rect.width>refRect.width,isFloatingTaller=rect.height>refRect.height,left=(isFloatingWider?refRect:rect).left,right=(isFloatingWider?refRect:rect).right,top=(isFloatingTaller?refRect:rect).top,bottom=(isFloatingTaller?refRect:rect).bottom;if(isOverFloatingEl&&(hasLanded=!0,!isLeave))return;if(isOverReferenceEl&&(hasLanded=!1),isOverReferenceEl&&!isLeave){hasLanded=!0;return}if(isLeave&&isElement(event.relatedTarget)&&floating_ui_react_esm_contains(elements.floating,event.relatedTarget)||tree&&floating_ui_react_esm_getNodeChildren(tree.nodesRef.current,nodeId).length)return;if(side==="top"&&y>=refRect.bottom-1||side==="bottom"&&y<=refRect.top+1||side==="left"&&x>=refRect.right-1||side==="right"&&x<=refRect.left+1)return close();let rectPoly=[];switch(side){case"top":rectPoly=[[left,refRect.top+1],[left,rect.bottom-1],[right,rect.bottom-1],[right,refRect.top+1]];break;case"bottom":rectPoly=[[left,rect.top+1],[left,refRect.bottom-1],[right,refRect.bottom-1],[right,rect.top+1]];break;case"left":rectPoly=[[rect.right-1,bottom],[rect.right-1,top],[refRect.left+1,top],[refRect.left+1,bottom]];break;case"right":rectPoly=[[refRect.right-1,bottom],[refRect.right-1,top],[rect.left+1,top],[rect.left+1,bottom]];break}function getPolygon(_ref2){let[x2,y2]=_ref2;switch(side){case"top":{const cursorPointOne=[isFloatingWider?x2+buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2+buffer+1],cursorPointTwo=[isFloatingWider?x2-buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2+buffer+1],commonPoints=[[rect.left,cursorLeaveFromRight||isFloatingWider?rect.bottom-buffer:rect.top],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.bottom-buffer:rect.top:rect.bottom-buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"bottom":{const cursorPointOne=[isFloatingWider?x2+buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2-buffer],cursorPointTwo=[isFloatingWider?x2-buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2-buffer],commonPoints=[[rect.left,cursorLeaveFromRight||isFloatingWider?rect.top+buffer:rect.bottom],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.top+buffer:rect.bottom:rect.top+buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"left":{const cursorPointOne=[x2+buffer+1,isFloatingTaller?y2+buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4],cursorPointTwo=[x2+buffer+1,isFloatingTaller?y2-buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4];return[...[[cursorLeaveFromBottom||isFloatingTaller?rect.right-buffer:rect.left,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.right-buffer:rect.left:rect.right-buffer,rect.bottom]],cursorPointOne,cursorPointTwo]}case"right":{const cursorPointOne=[x2-buffer,isFloatingTaller?y2+buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4],cursorPointTwo=[x2-buffer,isFloatingTaller?y2-buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4],commonPoints=[[cursorLeaveFromBottom||isFloatingTaller?rect.left+buffer:rect.right,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.left+buffer:rect.right:rect.left+buffer,rect.bottom]];return[cursorPointOne,cursorPointTwo,...commonPoints]}}}if(!isPointInPolygon([clientX,clientY],rectPoly)){if(hasLanded&&!isOverReferenceRect)return close();if(!isLeave&&requireIntent){const cursorSpeed=getCursorSpeed(event.clientX,event.clientY);if(cursorSpeed!==null&&cursorSpeed<.1)return close()}isPointInPolygon([clientX,clientY],getPolygon([x,y]))?!hasLanded&&requireIntent&&(timeoutRef.current=window.setTimeout(close,40)):close()}}};return fn.__options={blockPointerEvents},fn}},85111(module){(function(global,factory){module.exports=factory()})(this,function(){"use strict";const schemeRegex=/^[\w+.-]+:\/\//,urlRegex=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fileRegex=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(input){return schemeRegex.test(input)}function isSchemeRelativeUrl(input){return input.startsWith("//")}function isAbsolutePath(input){return input.startsWith("/")}function isFileUrl(input){return input.startsWith("file:")}function isRelative(input){return/^[.?#]/.test(input)}function parseAbsoluteUrl(input){const match=urlRegex.exec(input);return makeUrl(match[1],match[2]||"",match[3],match[4]||"",match[5]||"/",match[6]||"",match[7]||"")}function parseFileUrl(input){const match=fileRegex.exec(input),path=match[2];return makeUrl("file:","",match[1]||"","",isAbsolutePath(path)?path:"/"+path,match[3]||"",match[4]||"")}function makeUrl(scheme,user,host,port,path,query,hash){return{scheme,user,host,port,path,query,hash,type:7}}function parseUrl(input){if(isSchemeRelativeUrl(input)){const url2=parseAbsoluteUrl("http:"+input);return url2.scheme="",url2.type=6,url2}if(isAbsolutePath(input)){const url2=parseAbsoluteUrl("http://foo.com"+input);return url2.scheme="",url2.host="",url2.type=5,url2}if(isFileUrl(input))return parseFileUrl(input);if(isAbsoluteUrl(input))return parseAbsoluteUrl(input);const url=parseAbsoluteUrl("http://foo.com/"+input);return url.scheme="",url.host="",url.type=input?input.startsWith("?")?3:input.startsWith("#")?2:4:1,url}function stripPathFilename(path){if(path.endsWith("/.."))return path;const index=path.lastIndexOf("/");return path.slice(0,index+1)}function mergePaths(url,base){normalizePath(base,base.type),url.path==="/"?url.path=base.path:url.path=stripPathFilename(base.path)+url.path}function normalizePath(url,type){const rel=type<=4,pieces=url.path.split("/");let pointer=1,positive=0,addTrailingSlash=!1;for(let i=1;i<pieces.length;i++){const piece=pieces[i];if(!piece){addTrailingSlash=!0;continue}if(addTrailingSlash=!1,piece!=="."){if(piece===".."){positive?(addTrailingSlash=!0,positive--,pointer--):rel&&(pieces[pointer++]=piece);continue}pieces[pointer++]=piece,positive++}}let path="";for(let i=1;i<pointer;i++)path+="/"+pieces[i];(!path||addTrailingSlash&&!path.endsWith("/.."))&&(path+="/"),url.path=path}function resolve(input,base){if(!input&&!base)return"";const url=parseUrl(input);let inputType=url.type;if(base&&inputType!==7){const baseUrl=parseUrl(base),baseType=baseUrl.type;switch(inputType){case 1:url.hash=baseUrl.hash;case 2:url.query=baseUrl.query;case 3:case 4:mergePaths(url,baseUrl);case 5:url.user=baseUrl.user,url.host=baseUrl.host,url.port=baseUrl.port;case 6:url.scheme=baseUrl.scheme}baseType>inputType&&(inputType=baseType)}normalizePath(url,inputType);const queryHash=url.query+url.hash;switch(inputType){case 2:case 3:return queryHash;case 4:{const path=url.path.slice(1);return path?isRelative(base||input)&&!isRelative(path)?"./"+path+queryHash:path+queryHash:queryHash||"."}case 5:return url.path+queryHash;default:return url.scheme+"//"+url.user+url.host+url.port+url.path+queryHash}}return resolve})},83875(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(86343))},32796(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0});var node_fs_1=__webpack_require__(64644);exports.NodeFS=node_fs_1.NodeFS,__export(__webpack_require__(45780))},64644(__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 path_1=__webpack_require__(52101),fs_1=__importDefault(__webpack_require__(94891)),promises_1=__importDefault(__webpack_require__(45780));class NodeFS{constructor(workingDir){this.workingDir=workingDir,this.promises=new promises_1.default}getPath(path){return path_1.join(this.workingDir,path)}access(path,mode,callback){fs_1.default.access(this.getPath(path),mode,callback)}accessSync(path,mode){fs_1.default.accessSync(this.getPath(path),mode)}appendFile(file,data,options,callback){fs_1.default.appendFile(this.getPath(file),data,options)}appendFileSync(file,data,options){fs_1.default.appendFileSync(this.getPath(file),data,options)}chmod(path,mode,callback){fs_1.default.chmod(this.getPath(path),mode,callback)}chmodSync(path,mode){fs_1.default.chmodSync(this.getPath(path),mode)}chown(path,uid,gid,callback){fs_1.default.chown(this.getPath(path),uid,gid,callback)}chownSync(path,uid,gid){fs_1.default.chownSync(this.getPath(path),uid,gid)}close(fd,callback){fs_1.default.close(fd,callback)}closeSync(fd){fs_1.default.closeSync(fd)}copyFile(src,dest,callback){fs_1.default.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){fs_1.default.copyFileSync(src,dest,flags)}createReadStream(path,options){return fs_1.default.createReadStream(this.getPath(path),options)}createWriteStream(path,options){return fs_1.default.createWriteStream(this.getPath(path),options)}exists(path,callback){fs_1.default.exists(this.getPath(path),callback)}existsSync(path){return fs_1.default.existsSync(this.getPath(path))}fchmod(fd,mode,callback){fs_1.default.fchmod(fd,mode,callback)}fchmodSync(fd,mode){fs_1.default.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){fs_1.default.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){fs_1.default.fchownSync(fd,uid,gid)}fdatasync(fd,callback){fs_1.default.fdatasync(fd,callback)}fdatasyncSync(fd){fs_1.default.fdatasyncSync(fd)}fstat(fd,callback){fs_1.default.fstat(fd,callback)}fstatSync(fd){return fs_1.default.fstatSync(fd)}fsync(fd,callback){fs_1.default.fsync(fd,callback)}fsyncSync(fd){fs_1.default.fsyncSync(fd)}ftruncate(fd,len,callback){fs_1.default.ftruncate(fd,len,callback)}ftruncateSync(fd,len){fs_1.default.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){fs_1.default.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){fs_1.default.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){fs_1.default.lchmod(this.getPath(path),mode,callback)}lchmodSync(path,mode){fs_1.default.lchmodSync(this.getPath(path),mode)}lchown(path,uid,gid,callback){fs_1.default.lchown(this.getPath(path),uid,gid,callback)}lchownSync(path,uid,gid){fs_1.default.lchownSync(this.getPath(path),uid,gid)}link(existingPath,newPath,callback){fs_1.default.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){fs_1.default.linkSync(existingPath,newPath)}lstat(path,callback){fs_1.default.lstat(this.getPath(path),callback)}lstatSync(path){return fs_1.default.lstatSync(path)}mkdir(path,options,callback){fs_1.default.mkdir(this.getPath(path),options,callback)}mkdirSync(path,options){fs_1.default.mkdirSync(this.getPath(path),options)}mkdtemp(prefix,options,callback){fs_1.default.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return fs_1.default.mkdtempSync(prefix,options)}open(path,flags,mode,callback){fs_1.default.open(this.getPath(path),flags,mode,callback)}openSync(path,flags,mode){return fs_1.default.openSync(this.getPath(path),flags,mode)}read(fd,buffer,offset,length,position,callback){fs_1.default.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return fs_1.default.readFileSync(this.getPath(path))}readSync(fd,buffer,offset,length,position){return fs_1.default.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){fs_1.default.readdir(this.getPath(path),options,callback)}readdirSync(path,options){return fs_1.default.readdirSync(this.getPath(path),options)}readlink(path,options,callback){fs_1.default.readlink(this.getPath(path),options,callback)}readlinkSync(path,options){return fs_1.default.readlinkSync(this.getPath(path),options)}realpath(path,options,callback){fs_1.default.realpath(this.getPath(path),options,callback)}realpathSync(path,options){return fs_1.default.realpathSync(this.getPath(path),options)}rename(oldPath,newPath,callback){fs_1.default.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){fs_1.default.renameSync(oldPath,newPath)}rmdir(path,callback){fs_1.default.rmdir(this.getPath(path),callback)}rmdirSync(path){fs_1.default.rmdirSync(this.getPath(path))}stat(path,callback){fs_1.default.stat(this.getPath(path),callback)}statSync(path){return fs_1.default.statSync(path)}symlink(target,path,type,callback){fs_1.default.symlink(target,this.getPath(path),type,callback)}symlinkSync(target,path,type){fs_1.default.symlinkSync(target,this.getPath(path),type)}truncate(path,len,callback){fs_1.default.truncate(this.getPath(path),len,callback)}truncateSync(path,len){fs_1.default.truncateSync(this.getPath(path),len)}unlink(path,callback){fs_1.default.unlink(this.getPath(path),callback)}unlinkSync(path){fs_1.default.unlinkSync(this.getPath(path))}unwatchFile(filename,listener){fs_1.default.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){fs_1.default.utimes(this.getPath(path),atime,mtime,callback)}utimesSync(path,atime,mtime){fs_1.default.utimesSync(this.getPath(path),atime,mtime)}watch(filename,options,listener){return fs_1.default.watch(filename,options,listener)}watchFile(filename,options,listener){fs_1.default.watchFile(filename,options,listener)}writeFile(path,data,options,callback){fs_1.default.writeFile(this.getPath(path),data,options)}writeFileSync(path,data,options){fs_1.default.writeFileSync(this.getPath(path),data,options)}writeSync(fd,buffer,offset,length,position){return fs_1.default.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.NodeFS=NodeFS},45780(__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 fs_1=__importDefault(__webpack_require__(94891));class FsPromisesAPI{access(path,mode){return fs_1.default.promises.access(path,mode)}appendFile(path,data,options){return fs_1.default.promises.appendFile(path,data)}chmod(path,mode){return fs_1.default.promises.chmod(path,mode)}chown(path,uid,gid){return fs_1.default.promises.chown(path,uid,gid)}copyFile(src,dest,flags){return fs_1.default.promises.copyFile(src,dest,flags)}fchmod(handle,mode){return fs_1.default.promises.fchmod(handle,mode)}fchown(handle,uid,gid){return fs_1.default.promises.fchown(handle,uid,gid)}fdatasync(handle){return fs_1.default.promises.fdatasync(handle)}fstat(handle){return fs_1.default.promises.fstat(handle)}fsync(handle){return fs_1.default.promises.fsync(handle)}ftruncate(handle,len){return fs_1.default.promises.ftruncate(handle,len)}futimes(handle,atime,mtime){return fs_1.default.promises.futimes(handle,atime,mtime)}lchmod(path,mode){return fs_1.default.promises.lchmod(path,mode)}lchown(path,uid,gid){return fs_1.default.promises.lchown(path,uid,gid)}link(existingPath,newPath){return fs_1.default.promises.link(existingPath,newPath)}lstat(path){return fs_1.default.promises.lstat(path)}mkdir(path,options){return fs_1.default.promises.mkdir(path,options)}mkdtemp(prefix,options){return fs_1.default.promises.mkdtemp(prefix,options)}open(path,flags,mode){return fs_1.default.promises.open(path,flags,mode)}read(handle,buffer,offset,length,position){return fs_1.default.promises.read(handle,buffer,offset,length,position)}readFile(path,options){return fs_1.default.promises.readFile(path,options)}readdir(path,options){return fs_1.default.promises.readdir(path,options)}readlink(path,options){return fs_1.default.promises.readlink(path,options)}realpath(path,options){return fs_1.default.promises.realpath(path,options)}rename(oldPath,newPath){return fs_1.default.promises.rename(oldPath,newPath)}rmdir(path){return fs_1.default.promises.rmdir(path)}stat(path){return fs_1.default.promises.stat(path)}symlink(target,path,type){return fs_1.default.promises.symlink(target,path,type)}truncate(path,len){return fs_1.default.promises.truncate(path,len)}unlink(path){return fs_1.default.promises.unlink(path)}utimes(path,atime,mtime){return fs_1.default.promises.utimes(path,atime,mtime)}write(handle,buffer,offset,length,position){fs_1.default.promises.write(handle,buffer,offset,length)}writeFile(path,data,options){return fs_1.default.promises.writeFile(path,data,options)}}exports.default=FsPromisesAPI},86343(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(32796)),__export(__webpack_require__(32339))},32339(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(78691))},78691(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const memfs_1=__webpack_require__(51165);class MemoryFS{constructor(){this.volume=new memfs_1.Volume,this.promises=this.volume.promises}access(path,mode,callback){this.volume.access(path,mode,callback)}accessSync(path,mode){this.volume.accessSync(path,mode)}appendFile(file,data,options,callback){this.volume.appendFile(file,data,options)}mkdirpSync(path){this.volume.mkdirpSync(path)}appendFileSync(file,data,options){this.volume.appendFileSync(file,data,options)}chmod(path,mode,callback){this.volume.chmod(path,mode,callback)}chmodSync(path,mode){this.volume.chmodSync(path,mode)}chown(path,uid,gid,callback){this.volume.chown(path,uid,gid,callback)}chownSync(path,uid,gid){this.volume.chownSync(path,uid,gid)}close(fd,callback){this.volume.close(fd,callback)}closeSync(fd){this.volume.closeSync(fd)}copyFile(src,dest,callback){this.volume.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){this.volume.copyFileSync(src,dest,flags)}createReadStream(path,options){return this.volume.createReadStream(path,options)}createWriteStream(path,options){return this.volume.createWriteStream(path,options)}exists(path,callback){this.volume.exists(path,callback)}existsSync(path){return!1}fchmod(fd,mode,callback){this.volume.fchmod(fd,mode,callback)}fchmodSync(fd,mode){this.volume.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){this.volume.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){this.volume.fchownSync(fd,uid,gid)}fdatasync(fd,callback){this.volume.fdatasync(fd,callback)}fdatasyncSync(fd){this.volume.fdatasyncSync(fd)}fstat(fd,callback){this.volume.fstat(fd,callback)}fstatSync(fd){return this.volume.fstatSync(fd)}fsync(fd,callback){this.volume.fsync(fd,callback)}fsyncSync(fd){this.volume.fsyncSync(fd)}ftruncate(fd,len,callback){this.volume.ftruncate(fd,len,callback)}ftruncateSync(fd,len){this.volume.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){this.volume.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){this.volume.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){this.volume.lchmod(path,mode,callback)}lchmodSync(path,mode){this.volume.lchmodSync(path,mode)}lchown(path,uid,gid,callback){this.volume.lchown(path,uid,gid,callback)}lchownSync(path,uid,gid){this.volume.lchownSync(path,uid,gid)}link(existingPath,newPath,callback){this.volume.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){this.volume.linkSync(existingPath,newPath)}lstat(path,callback){this.volume.lstat(path,callback)}lstatSync(path){return this.volume.lstatSync(path)}mkdir(path,options,callback){this.volume.mkdir(path,options,callback)}mkdirSync(path,options){this.volume.mkdirSync(path,options)}mkdtemp(prefix,options,callback){this.volume.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return this.volume.mkdtempSync(prefix,options)}open(path,flags,mode,callback){this.volume.open(path,flags,mode,callback)}openSync(path,flags,mode){return this.volume.openSync(path,flags,mode)}read(fd,buffer,offset,length,position,callback){this.volume.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return this.volume.readFileSync(path)}readSync(fd,buffer,offset,length,position){return this.volume.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){this.volume.readdir(path,options,callback)}readdirSync(path,options){return this.volume.readdirSync(path,options)}readlink(path,options,callback){this.volume.readlink(path,options,callback)}readlinkSync(path,options){return this.volume.readlinkSync(path,options)}realpath(path,options,callback){this.volume.realpath(path,options,callback)}realpathSync(path,options){return this.volume.realpathSync(path,options)}rename(oldPath,newPath,callback){this.volume.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){this.volume.renameSync(oldPath,newPath)}rmdir(path,callback){this.volume.rmdir(path,callback)}rmdirSync(path){this.volume.rmdirSync(path)}stat(path,callback){this.volume.stat(path,callback)}statSync(path){return this.volume.statSync(path)}symlink(target,path,type,callback){this.volume.symlink(target,path,type,callback)}symlinkSync(target,path,type){this.volume.symlinkSync(target,path,type)}truncate(path,len,callback){this.volume.truncate(path,len,callback)}truncateSync(path,len){this.volume.truncateSync(path,len)}unlink(path,callback){this.volume.unlink(path,callback)}unlinkSync(path){this.volume.unlinkSync(path)}unwatchFile(filename,listener){this.volume.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){this.volume.utimes(path,atime,mtime,callback)}utimesSync(path,atime,mtime){this.volume.utimesSync(path,atime,mtime)}watch(filename,options,listener){return this.volume.watch(filename,options,listener)}watchFile(filename,options,listener){this.volume.watchFile(filename,options,listener)}writeFile(path,data,options,callback){this.volume.writeFile(path,data,options)}writeFileSync(path,data,options){this.volume.writeFileSync(path,data,options)}writeSync(fd,buffer,offset,length,position){return this.volume.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.MemoryFS=MemoryFS},19633(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAPI=void 0;var use_api_1=__webpack_require__(56839);Object.defineProperty(exports,"useAPI",{enumerable:!0,get:function(){return use_api_1.useAPI}})},56839(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAPI=useAPI;const ui_foundation_ui_hooks_use_data_query_1=__webpack_require__(73356),client_1=__webpack_require__(6083),api_reference_models_api_reference_model_1=__webpack_require__(74958),GET_SCHEMA=(0,client_1.gql)`
|
|
@@ -198,7 +198,7 @@ ${namesToRegister.map(({variableName,uniqueLocalName})=>` reactHotLoader.regist
|
|
|
198
198
|
`),{code:code.slice(0,newlineIndex+1)+prefix+code.slice(newlineIndex+1)+suffix,mappings:this.shiftMappings(result.mappings,prefix.length)}}else return{code:prefix+code+suffix,mappings:this.shiftMappings(result.mappings,prefix.length)}}processBalancedCode(){let braceDepth=0,parenDepth=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(TokenType.braceL)||this.tokens.matches1(TokenType.dollarBraceL))braceDepth++;else if(this.tokens.matches1(TokenType.braceR)){if(braceDepth===0)return;braceDepth--}if(this.tokens.matches1(TokenType.parenL))parenDepth++;else if(this.tokens.matches1(TokenType.parenR)){if(parenDepth===0)return;parenDepth--}this.processToken()}}processToken(){if(this.tokens.matches1(TokenType._class)){this.processClass();return}for(const transformer of this.transformers)if(transformer.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(TokenType._class,TokenType.name))throw new Error("Expected identifier for exported class name.");const name=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),name}processClass(){const classInfo=getClassInfo(this,this.tokens,this.nameManager,this.disableESTransforms),needsCommaExpression=(classInfo.headerInfo.isExpression||!classInfo.headerInfo.className)&&classInfo.staticInitializerNames.length+classInfo.instanceInitializerNames.length>0;let className=classInfo.headerInfo.className;needsCommaExpression&&(className=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(className),this.tokens.appendCode(` (${className} =`));const contextId=this.tokens.currentToken().contextId;if(contextId==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(TokenType._class);!this.tokens.matchesContextIdAndLabel(TokenType.braceL,contextId);)this.processToken();this.processClassBody(classInfo,className);const staticInitializerStatements=classInfo.staticInitializerNames.map(name=>`${className}.${name}()`);needsCommaExpression?this.tokens.appendCode(`, ${staticInitializerStatements.map(s=>`${s}, `).join("")}${className})`):classInfo.staticInitializerNames.length>0&&this.tokens.appendCode(` ${staticInitializerStatements.map(s=>`${s};`).join(" ")}`)}processClassBody(classInfo,className){const{headerInfo,constructorInsertPos,constructorInitializerStatements,fields,instanceInitializerNames,rangesToRemove}=classInfo;let fieldIndex=0,rangeToRemoveIndex=0;const classContextId=this.tokens.currentToken().contextId;if(classContextId==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(TokenType.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const needsConstructorInit=constructorInitializerStatements.length+instanceInitializerNames.length>0;if(constructorInsertPos===null&&needsConstructorInit){const constructorInitializersCode=this.makeConstructorInitCode(constructorInitializerStatements,instanceInitializerNames,className);if(headerInfo.hasSuperclass){const argsName=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${argsName}) { super(...${argsName}); ${constructorInitializersCode}; }`)}else this.tokens.appendCode(`constructor() { ${constructorInitializersCode}; }`)}for(;!this.tokens.matchesContextIdAndLabel(TokenType.braceR,classContextId);)if(fieldIndex<fields.length&&this.tokens.currentIndex()===fields[fieldIndex].start){let needsCloseBrace=!1;for(this.tokens.matches1(TokenType.bracketL)?this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this`):this.tokens.matches1(TokenType.string)||this.tokens.matches1(TokenType.num)?(this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this[`),needsCloseBrace=!0):this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this.`);this.tokens.currentIndex()<fields[fieldIndex].end;)needsCloseBrace&&this.tokens.currentIndex()===fields[fieldIndex].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),fieldIndex++}else if(rangeToRemoveIndex<rangesToRemove.length&&this.tokens.currentIndex()>=rangesToRemove[rangeToRemoveIndex].start){for(this.tokens.currentIndex()<rangesToRemove[rangeToRemoveIndex].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<rangesToRemove[rangeToRemoveIndex].end;)this.tokens.removeToken();rangeToRemoveIndex++}else this.tokens.currentIndex()===constructorInsertPos?(this.tokens.copyToken(),needsConstructorInit&&this.tokens.appendCode(`;${this.makeConstructorInitCode(constructorInitializerStatements,instanceInitializerNames,className)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(TokenType.braceR)}makeConstructorInitCode(constructorInitializerStatements,instanceInitializerNames,className){return[...constructorInitializerStatements,...instanceInitializerNames.map(name=>`${className}.prototype.${name}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(TokenType.parenR,TokenType.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let nextNonTypeIndex=this.tokens.currentIndex()+1;for(;this.tokens.tokens[nextNonTypeIndex].isType;)nextNonTypeIndex++;if(this.tokens.matches1AtIndex(nextNonTypeIndex,TokenType.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<nextNonTypeIndex;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(ContextualKeyword._async)&&!this.tokens.matches1(TokenType._async))return!1;const nextToken2=this.tokens.tokenAtRelativeIndex(1);if(nextToken2.type!==TokenType.lessThan||!nextToken2.isType)return!1;let nextNonTypeIndex=this.tokens.currentIndex()+1;for(;this.tokens.tokens[nextNonTypeIndex].isType;)nextNonTypeIndex++;if(this.tokens.matches1AtIndex(nextNonTypeIndex,TokenType.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<nextNonTypeIndex;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(mappings,prefixLength){for(let i2=0;i2<mappings.length;i2++){const mapping=mappings[i2];mapping!==void 0&&(mappings[i2]=mapping+prefixLength)}return mappings}}var __webpack_unused_export__;__webpack_unused_export__=!0,__webpack_unused_export__=void 0;var LF=`
|
|
199
199
|
`,CR="\r",LinesAndColumns=function(){function LinesAndColumns2(string){this.string=string;for(var offsets=[0],offset=0;offset<string.length;)switch(string[offset]){case LF:offset+=LF.length,offsets.push(offset);break;case CR:offset+=CR.length,string[offset]===LF&&(offset+=LF.length),offsets.push(offset);break;default:offset++;break}this.offsets=offsets}return LinesAndColumns2.prototype.locationForIndex=function(index){if(index<0||index>this.string.length)return null;for(var line=0,offsets=this.offsets;offsets[line+1]<=index;)line++;var column=index-offsets[line];return{line,column}},LinesAndColumns2.prototype.indexForLocation=function(location){var line=location.line,column=location.column;return line<0||line>=this.offsets.length||column<0||column>this.lengthOfLine(line)?null:this.offsets[line]+column},LinesAndColumns2.prototype.lengthOfLine=function(line){var offset=this.offsets[line],nextOffset=line===this.offsets.length-1?this.string.length:this.offsets[line+1];return nextOffset-offset},LinesAndColumns2}();__webpack_unused_export__=LinesAndColumns,__webpack_unused_export__=LinesAndColumns;var formatTokens_LinesAndColumns,formatTokens_formatTokenType;function formatTokens(code,tokens){if(tokens.length===0)return"";const tokenKeys=Object.keys(tokens[0]).filter(k=>k!=="type"&&k!=="value"&&k!=="start"&&k!=="end"&&k!=="loc"),typeKeys=Object.keys(tokens[0].type).filter(k=>k!=="label"&&k!=="keyword"),headings=["Location","Label","Raw",...tokenKeys,...typeKeys],lines=new formatTokens_LinesAndColumns(code),rows=[headings,...tokens.map(getTokenComponents)],padding=headings.map(()=>0);for(const components of rows)for(let i2=0;i2<components.length;i2++)padding[i2]=Math.max(padding[i2],components[i2].length);return rows.map(components=>components.map((component,i2)=>component.padEnd(padding[i2])).join(" ")).join(`
|
|
200
200
|
`);function getTokenComponents(token){const raw=code.slice(token.start,token.end);return[formatRange(token.start,token.end),formatTokens_formatTokenType(token.type),truncate(String(raw),14),...tokenKeys.map(key=>formatValue(token[key],key)),...typeKeys.map(key=>formatValue(token.type[key],key))]}function formatValue(value,key){return value===!0?key:value===!1||value===null?"":String(value)}function formatRange(start,end){return`${formatPos(start)}-${formatPos(end)}`}function formatPos(pos){const location=lines.locationForIndex(pos);return location?`${location.line+1}:${location.column+1}`:"Unknown"}}function truncate(s,length){return s.length>length?`${s.slice(0,length-3)}...`:s}function getTSImportedNames(tokens){const importedNames=new Set;for(let i2=0;i2<tokens.tokens.length;i2++)tokens.matches1AtIndex(i2,TokenType._import)&&!tokens.matches3AtIndex(i2,TokenType._import,TokenType.name,TokenType.eq)&&collectNamesForImport(tokens,i2,importedNames);return importedNames}function collectNamesForImport(tokens,index,importedNames){index++,!tokens.matches1AtIndex(index,TokenType.parenL)&&(tokens.matches1AtIndex(index,TokenType.name)&&(importedNames.add(tokens.identifierNameAtIndex(index)),index++,tokens.matches1AtIndex(index,TokenType.comma)&&index++),tokens.matches1AtIndex(index,TokenType.star)&&(index+=2,importedNames.add(tokens.identifierNameAtIndex(index)),index++),tokens.matches1AtIndex(index,TokenType.braceL)&&(index++,collectNamesForNamedImport(tokens,index,importedNames)))}function collectNamesForNamedImport(tokens,index,importedNames){for(;;){if(tokens.matches1AtIndex(index,TokenType.braceR))return;const specifierInfo=getImportExportSpecifierInfo(tokens,index);if(index=specifierInfo.endIndex,specifierInfo.isType||importedNames.add(specifierInfo.rightName),tokens.matches2AtIndex(index,TokenType.comma,TokenType.braceR))return;if(tokens.matches1AtIndex(index,TokenType.braceR))return;if(tokens.matches1AtIndex(index,TokenType.comma))index++;else throw new Error(`Unexpected token: ${JSON.stringify(tokens.tokens[index])}`)}}var esm_formatTokens;function getVersion(){return"3.35.1"}function transform(code,options){validateOptions(options);try{const sucraseContext=getSucraseContext(code,options),transformerResult=new RootTransformer(sucraseContext,options.transforms,Boolean(options.enableLegacyBabel5ModuleInterop),options).transform();let result={code:transformerResult.code};if(options.sourceMapOptions){if(!options.filePath)throw new Error("filePath must be specified when generating a source map.");result={...result,sourceMap:computeSourceMap(transformerResult,options.filePath,options.sourceMapOptions,code,sucraseContext.tokenProcessor.tokens)}}return result}catch(e){throw options.filePath&&(e.message=`Error transforming ${options.filePath}: ${e.message}`),e}}function getFormattedTokens(code,options){const tokens=getSucraseContext(code,options).tokenProcessor.tokens;return esm_formatTokens(code,tokens)}function getSucraseContext(code,options){const isJSXEnabled2=options.transforms.includes("jsx"),isTypeScriptEnabled2=options.transforms.includes("typescript"),isFlowEnabled2=options.transforms.includes("flow"),disableESTransforms=options.disableESTransforms===!0,file=parser_parse(code,isJSXEnabled2,isTypeScriptEnabled2,isFlowEnabled2),tokens=file.tokens,scopes=file.scopes,nameManager=new NameManager(code,tokens),helperManager=new HelperManager(nameManager),tokenProcessor=new TokenProcessor(code,tokens,isFlowEnabled2,disableESTransforms,helperManager),enableLegacyTypeScriptModuleInterop=Boolean(options.enableLegacyTypeScriptModuleInterop);let importProcessor=null;return options.transforms.includes("imports")?(importProcessor=new CJSImportProcessor(nameManager,tokenProcessor,enableLegacyTypeScriptModuleInterop,options,options.transforms.includes("typescript"),Boolean(options.keepUnusedImports),helperManager),importProcessor.preprocessTokens(),identifyShadowedGlobals(tokenProcessor,scopes,importProcessor.getGlobalNames()),options.transforms.includes("typescript")&&!options.keepUnusedImports&&importProcessor.pruneTypeOnlyImports()):options.transforms.includes("typescript")&&!options.keepUnusedImports&&identifyShadowedGlobals(tokenProcessor,scopes,getTSImportedNames(tokenProcessor)),{tokenProcessor,scopes,nameManager,importProcessor,helperManager}}var jsx7,dist_defProp=Object.defineProperty,dist_defProps=Object.defineProperties,dist_getOwnPropDescs=Object.getOwnPropertyDescriptors,dist_getOwnPropSymbols=Object.getOwnPropertySymbols,dist_hasOwnProp=Object.prototype.hasOwnProperty,dist_propIsEnum=Object.prototype.propertyIsEnumerable,dist_defNormalProp=(obj,key,value)=>key in obj?dist_defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,dist_spreadValues=(a2,b)=>{for(var prop in b||(b={}))dist_hasOwnProp.call(b,prop)&&dist_defNormalProp(a2,prop,b[prop]);if(dist_getOwnPropSymbols)for(var prop of dist_getOwnPropSymbols(b))dist_propIsEnum.call(b,prop)&&dist_defNormalProp(a2,prop,b[prop]);return a2},dist_spreadProps=(a2,b)=>dist_defProps(a2,dist_getOwnPropDescs(b)),dist_objRest=(source,exclude)=>{var target={};for(var prop in source)dist_hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0&&(target[prop]=source[prop]);if(source!=null&&dist_getOwnPropSymbols)for(var prop of dist_getOwnPropSymbols(source))exclude.indexOf(prop)<0&&dist_propIsEnum.call(source,prop)&&(target[prop]=source[prop]);return target},__async=(__this,__arguments,generator)=>new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}},rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}},step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),CodeEditor=props=>{const{tabMode="indentation"}=props,editorRef=(0,react.useRef)(null),[code,setCode]=(0,react.useState)(props.code||""),{theme:theme21}=props;return(0,react.useEffect)(()=>{setCode(props.code)},[props.code]),useEditable(editorRef,text=>{const t=text.slice(0,-1);setCode(t),props.onChange&&props.onChange(t)},{disabled:props.disabled,indentation:tabMode==="indentation"?2:void 0}),(0,jsx_runtime.jsx)("div",{className:props.className,style:props.style,children:(0,jsx_runtime.jsx)(Highlight2,{code,theme:props.theme||themes_exports.nightOwl,language:props.language,children:({className:_className,tokens,getLineProps,getTokenProps,style:_style})=>(0,jsx_runtime.jsx)("pre",{className:_className,style:dist_spreadValues(dist_spreadValues({margin:0,outline:"none",padding:10,fontFamily:"inherit"},theme21&&typeof theme21.plain=="object"?theme21.plain:{}),_style),ref:editorRef,spellCheck:"false",children:tokens.map((line,lineIndex)=>(0,jsx_runtime.jsxs)("span",dist_spreadProps(dist_spreadValues({},getLineProps({line})),{children:[line.filter(token=>!token.empty).map((token,tokenIndex)=>(0,jsx_runtime.jsx)("span",dist_spreadValues({},getTokenProps({token})),`token-${tokenIndex}`)),`
|
|
201
|
-
`]}),`line-${lineIndex}`))})})})},Editor_default=CodeEditor,LiveContext=(0,react.createContext)({}),LiveContext_default=LiveContext,defaultTransforms=["jsx","imports"];function dist_transform(opts={}){const transforms=Array.isArray(opts.transforms)?opts.transforms.filter(Boolean):defaultTransforms;return code=>transform(code,{transforms}).code}var errorBoundary=(Element2,errorCallback)=>class extends react.Component{componentDidCatch(error){errorCallback(error)}render(){return typeof Element2=="function"?(0,jsx_runtime.jsx)(Element2,{}):react.isValidElement(Element2)?Element2:null}},errorBoundary_default=errorBoundary,evalCode=(code,scope)=>{const scopeKeys=Object.keys(scope),scopeValues=scopeKeys.map(key=>scope[key]);return new Function(...scopeKeys,code)(...scopeValues)},evalCode_default=evalCode;function compose(...functions){return functions.reduce((acc,currentFn)=>(...args)=>acc(currentFn(...args)))}var jsxConst='const _jsxFileName = "";',trimCode=code=>code.trim().replace(/;$/,""),spliceJsxConst=code=>code.replace(jsxConst,"").trim(),addJsxConst=code=>jsxConst+code,wrapReturn=code=>`return (${code})`,generateElement=({code="",scope={},enableTypeScript=!0},errorCallback)=>{const firstPassTransforms=["jsx"];enableTypeScript&&firstPassTransforms.push("typescript");const transformed=compose(addJsxConst,dist_transform({transforms:["imports"]}),spliceJsxConst,trimCode,dist_transform({transforms:firstPassTransforms}),wrapReturn,trimCode)(code);return errorBoundary_default(evalCode_default(transformed,dist_spreadValues({React:react},scope)),errorCallback)},renderElementAsync=({code="",scope={},enableTypeScript=!0},resultCallback,errorCallback)=>{const render=element=>{typeof element>"u"?errorCallback(new SyntaxError("`render` must be called with valid JSX.")):resultCallback(errorBoundary_default(element,errorCallback))};if(!/render\s*\(/.test(code))return errorCallback(new SyntaxError("No-Inline evaluations must call `render`."));const transforms=["jsx","imports"];enableTypeScript&&transforms.splice(1,0,"typescript"),evalCode_default(dist_transform({transforms})(code),dist_spreadProps(dist_spreadValues({React:react},scope),{render}))};function LiveProvider({children,code="",language="tsx",theme:theme21,enableTypeScript=!0,disabled=!1,scope,transformCode,noInline=!1}){const[state2,setState]=(0,react.useState)({error:void 0,element:void 0});function transpileAsync(newCode){return __async(this,null,function*(){const errorCallback=error=>{setState(previousState=>dist_spreadProps(dist_spreadValues({},previousState),{error:error.toString(),element:void 0}))};try{const transformResult=transformCode?transformCode(newCode):newCode;try{const transformedCode=yield Promise.resolve(transformResult),renderElement=element=>setState({error:void 0,element,newCode});if(typeof transformedCode!="string")throw new Error("Code failed to transform");const input2={code:transformedCode,scope,enableTypeScript};noInline?(setState(previousState=>dist_spreadProps(dist_spreadValues({},previousState),{error:void 0,element:null})),renderElementAsync(input2,renderElement,errorCallback)):renderElement(generateElement(input2,errorCallback))}catch(error){return errorCallback(error)}}catch(e){return errorCallback(e),Promise.resolve()}})}const onError=error=>setState({error:error.toString()});(0,react.useEffect)(()=>{transpileAsync(code).catch(onError)},[code,scope,noInline,transformCode]);const onChange=newCode=>{transpileAsync(newCode).catch(onError)};return(0,jsx_runtime.jsx)(LiveContext_default.Provider,{value:dist_spreadProps(dist_spreadValues({},state2),{code,language,theme:theme21,disabled,onError,onChange}),children})}var LiveProvider_default=LiveProvider;function LiveEditor(props){const{code,language,theme:theme21,disabled,onChange}=(0,react.useContext)(LiveContext_default);return(0,jsx_runtime.jsx)(Editor_default,dist_spreadValues({theme:theme21,code,language,disabled,onChange},props))}function LiveError(props){const{error}=(0,react.useContext)(LiveContext_default);return error?(0,jsx_runtime.jsx)("pre",dist_spreadProps(dist_spreadValues({},props),{children:error})):null}var ErrorBoundary=class extends react.Component{static getDerivedStateFromError(){return{hasError:!0}}constructor(props){super(props);this.state={hasError:!1}}componentDidCatch(err){var _a,_b;(_b=(_a=this.props).onError)==null||_b.call(_a,err)}render(){return this.state.hasError?null:this.props.children}};function LivePreview(_a){var _b=_a,{Component:Component3="div"}=_b,rest=dist_objRest(_b,["Component"]);const{element:Element2,onError,newCode}=(0,react.useContext)(LiveContext_default);return(0,jsx_runtime.jsx)(ErrorBoundary,{onError,children:(0,jsx_runtime.jsx)(Component3,dist_spreadProps(dist_spreadValues({},rest),{children:Element2?(0,jsx_runtime.jsx)(Element2,{}):null}))},newCode)}var LivePreview_default=LivePreview;function withLive(WrappedComponent){const WithLive=props=>jsx7(LiveContext_default.Consumer,{children:live=>jsx7(WrappedComponent,dist_spreadValues({live},props))});return WithLive.displayName="WithLive",WithLive}var base_ui_surfaces_split_pane_split_pane_dist=__webpack_require__(52696),base_ui_surfaces_split_pane_hover_splitter_dist=__webpack_require__(40062),es=__webpack_require__(38518);function c(u,e,c2){var i2=this,a2=(0,react.useRef)(null),o2=(0,react.useRef)(0),f2=(0,react.useRef)(null),l=(0,react.useRef)([]),m2=(0,react.useRef)(),v=(0,react.useRef)(),d=(0,react.useRef)(u),p2=(0,react.useRef)(!0);(0,react.useEffect)(function(){d.current=u},[u]);var g=!e&&e!==0&&typeof window<"u";if(typeof u!="function")throw new TypeError("Expected a function");e=+e||0;var w2=!!(c2=c2||{}).leading,s=!("trailing"in c2)||!!c2.trailing,x="maxWait"in c2,y=x?Math.max(+c2.maxWait||0,e):null;(0,react.useEffect)(function(){return p2.current=!0,function(){p2.current=!1}},[]);var h=(0,react.useMemo)(function(){var r2=function(r3){var n2=l.current,t2=m2.current;return l.current=m2.current=null,o2.current=r3,v.current=d.current.apply(t2,n2)},n=function(r3,n2){g&&cancelAnimationFrame(f2.current),f2.current=g?requestAnimationFrame(r3):setTimeout(r3,n2)},t=function(r3){if(!p2.current)return!1;var n2=r3-a2.current;return!a2.current||n2>=e||n2<0||x&&r3-o2.current>=y},u2=function(n2){return f2.current=null,s&&l.current?r2(n2):(l.current=m2.current=null,v.current)},c3=function r3(){var c4=Date.now();if(t(c4))return u2(c4);if(p2.current){var i3=e-(c4-a2.current),f3=x?Math.min(i3,y-(c4-o2.current)):i3;n(r3,f3)}},h7=function(){var u3=Date.now(),d2=t(u3);if(l.current=[].slice.call(arguments),m2.current=i2,a2.current=u3,d2){if(!f2.current&&p2.current)return o2.current=a2.current,n(c3,e),w2?r2(a2.current):v.current;if(x)return n(c3,e),r2(a2.current)}return f2.current||n(c3,e),v.current};return h7.cancel=function(){f2.current&&(g?cancelAnimationFrame(f2.current):clearTimeout(f2.current)),o2.current=0,l.current=a2.current=m2.current=f2.current=null},h7.isPending=function(){return!!f2.current},h7.flush=function(){return f2.current?u2(Date.now()):v.current},h7},[w2,x,e,y,s,g]);return h}function i(r2,n){return r2===n}function a(r2){return typeof r2=="function"?function(){return r2}:r2}function o(n,t,o2){var f2,l,m2=o2&&o2.equalityFn||i,v=(f2=(0,react.useState)(a(n)),l=f2[1],[f2[0],(0,react.useCallback)(function(r2){return l(a(r2))},[])]),d=v[0],p2=v[1],g=c((0,react.useCallback)(function(r2){return p2(r2)},[p2]),t,o2),w2=(0,react.useRef)(n);return m2(w2.current,n)||(g(n),w2.current=n),[d,g]}function f(r2,n,t){var u=t===void 0?{}:t,e=u.leading,i2=u.trailing;return c(r2,n,{maxWait:n,leading:e===void 0||e,trailing:i2===void 0||i2})}var oceanicNext_colors={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},oceanicNext_theme={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:oceanicNext_colors.keyword}},{types:["attr-value"],style:{color:oceanicNext_colors.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:oceanicNext_colors.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:oceanicNext_colors.primitive}},{types:["boolean"],style:{color:oceanicNext_colors.boolean}},{types:["tag"],style:{color:oceanicNext_colors.tag}},{types:["string"],style:{color:oceanicNext_colors.string}},{types:["punctuation"],style:{color:oceanicNext_colors.string}},{types:["selector","char","builtin","inserted"],style:{color:oceanicNext_colors.char}},{types:["function"],style:{color:oceanicNext_colors.function}},{types:["operator","entity","url","variable"],style:{color:oceanicNext_colors.variable}},{types:["keyword"],style:{color:oceanicNext_colors.keyword}},{types:["atrule","class-name"],style:{color:oceanicNext_colors.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]};const oceanicNext=oceanicNext_theme;var base_ui_input_error_dist=__webpack_require__(72973);const react_playground_module={column:"react-playground_column__sBiR2",codePane:"react-playground_codePane__oEXAe",previewPane:"react-playground_previewPane__1H4Yn",error:"react-playground_error__r0acd",row:"react-playground_row__0N0bo",editor:"react-playground_editor__xhkzX",splitter:"react-playground_splitter__tCT4a",previewBox:"react-playground_previewBox__II8rN",playground:"react-playground_playground__St+cP"};function Playground({code,scope,style,className,...rest}){const codeMemoed=(0,react.useMemo)(()=>code?.toString().replace(/\n$/,"").trim(),[code]),[ref,{width}]=(0,es.A)(),isColumn=+o(width,300,{leading:!0})[0]<=500,placement=isColumn?base_ui_surfaces_split_pane_split_pane_dist.Layout.columnReverse:base_ui_surfaces_split_pane_split_pane_dist.Layout.row;return width?(0,jsx_runtime.jsx)(LiveProvider_default,{code:codeMemoed,scope,theme:oceanicNext,children:(0,jsx_runtime.jsx)("div",{ref,className:classnames_default()(className,react_playground_module.playground,isColumn?react_playground_module.column:react_playground_module.row),...rest,children:(0,jsx_runtime.jsxs)(base_ui_surfaces_split_pane_split_pane_dist.SplitPane,{className:react_playground_module.main,size:"50%",layout:placement,children:[(0,jsx_runtime.jsx)(base_ui_surfaces_split_pane_split_pane_dist.Pane,{className:classnames_default()(react_playground_module.codePane),children:(0,jsx_runtime.jsx)(LiveEditor,{className:classnames_default()(react_playground_module.editor)})}),(0,jsx_runtime.jsx)(base_ui_surfaces_split_pane_hover_splitter_dist.HoverSplitter,{className:react_playground_module.splitter}),(0,jsx_runtime.jsx)(base_ui_surfaces_split_pane_split_pane_dist.Pane,{className:classnames_default()(react_playground_module.previewPane),children:(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(LivePreview_default,{className:react_playground_module.previewBox}),(0,jsx_runtime.jsx)(LiveError,{className:classnames_default()(base_ui_input_error_dist.Error,react_playground_module.error)})]})})]})})}):(0,jsx_runtime.jsx)("div",{ref})}const snippet_module={snippet:"snippet_snippet__+6owh"};function Snippet({children,scope,live}){return live?(0,jsx_runtime.jsx)(Playground,{className:snippet_module.snippet,code:children,scope}):(0,jsx_runtime.jsx)(CodeSnippet,{className:snippet_module.snippet,children})}const sup_module={sup:"sup_sup__T4TiM"};function Sup({children,className,...rest}){return(0,jsx_runtime.jsx)("sup",{...rest,className:classnames_default()(sup_module.sup,className),children})}const base_table_module={table:"base-table_table__4tmtn"};function Table({children,className,...rest}){return(0,jsx_runtime.jsx)("table",{...rest,className:classnames_default()(base_table_module.table,className),children})}const td_module={td:"td_td__p0uqh"};function Td({children,className,...rest}){return(0,jsx_runtime.jsx)("td",{...rest,className:classnames_default()(td_module.td,className),children})}const tr_module={tr:"tr_tr__Hywdz"};function Tr({children,className,...rest}){return(0,jsx_runtime.jsx)("tr",{...rest,className:classnames_default()(tr_module.tr,className),children})}const ul_module={ul:"ul_ul__EW0bv"};function Ul({children,className,...rest}){return(0,jsx_runtime.jsx)("ul",{...rest,className:classnames_default()(ul_module.ul,className),children})}const defaultMdxComponents={h1,h2,h3,h4,h5,h6,p:Paragraph,code:Snippet,a:ExternalLink,inlineCode:InlineCode,ol:Ol,ul:Ul,hr:Separator,thematicBreak:Separator,img:Image,strong:Bold,em:Italic,pre:({children,live})=>{const props={...children.props,live:live||children?.props?.live,isMdx3:!0,isBlock:!0};return{...children,props}},sup:Sup,table:Table,tr:Tr,td:Td,blockquote:BlockQuote},mdx_layout_module={mdxContent:"mdx-layout_mdxContent__pbF0P"};function MDXLayout({children,components,className,...rest}){const componentsMemoed=(0,react.useMemo)(()=>({...defaultMdxComponents,...components}),[defaultMdxComponents,components]);return(0,jsx_runtime.jsx)(lib.x,{components:componentsMemoed,children:(0,jsx_runtime.jsx)("div",{className:classnames_default()(mdx_layout_module.mdxContent,className),...rest,children})})}var mdx_ui_mdx_scope_context_dist=__webpack_require__(43210);function snippet_Snippet({scope,isMdx3,isBlock,...rest}){const components=(0,react.useContext)(mdx_ui_mdx_scope_context_dist.t),_scope=(0,react.useMemo)(()=>({...components,...scope}),[components,scope]);return isMdx3&&!isBlock?(0,jsx_runtime.jsx)(InlineCode,{children:rest.children}):(0,jsx_runtime.jsx)(Snippet,{scope:_scope,...rest})}var base_react_navigation_link_dist=__webpack_require__(19304);const link_module={link:"link_link__tosGn"};function Link(props){return(0,jsx_runtime.jsx)(base_react_navigation_link_dist.Link,{...props,className:link_module.link,external:!0})}const mdxComponents={code:({...props})=>(0,jsx_runtime.jsx)(snippet_Snippet,{...props,isMdx3:!0}),a:Link};function mdx_layout_MDXLayout({components,...rest}){const memoizedComponents=(0,react.useMemo)(()=>({...mdxComponents,...components}),[mdxComponents,components]);return(0,jsx_runtime.jsx)(MDXLayout,{components:memoizedComponents,...rest})}},69366(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}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.ErrorFallback=void 0;const react_1=__importDefault(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),design_ui_icon_button_1=__webpack_require__(29373),base_ui_styles_flex_center_1=__webpack_require__(88378),error_fallback_module_scss_1=__importDefault(__webpack_require__(34837));function ErrorFallback({resetErrorBoundary,className,children="Failed to render",cta="try again"}){const handleClick=()=>__awaiter(this,void 0,void 0,function*(){yield new Promise(resolve=>setTimeout(resolve,480)),resetErrorBoundary()});return react_1.default.createElement("div",{className:(0,classnames_1.default)(error_fallback_module_scss_1.default.errorFallback,base_ui_styles_flex_center_1.flexCenter,className)},react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.icon}),react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.message},children),react_1.default.createElement(design_ui_icon_button_1.IconButton,{onClick:handleClick,className:error_fallback_module_scss_1.default.retryButton},cta))}exports.ErrorFallback=ErrorFallback},83469(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.ErrorFallback=void 0;var error_fallback_1=__webpack_require__(69366);Object.defineProperty(exports,"ErrorFallback",{enumerable:!0,get:function(){return error_fallback_1.ErrorFallback}})},30824(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.APISchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _componentId(){const data=__webpack_require__(19100);return _componentId=function(){return data},data}function _schemas(){const data=__webpack_require__(91553);return _schemas=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(83660);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class APISchema extends _schemaNode().SchemaNode{constructor(location,module,internals,componentId,taggedModuleExports=[]){super();this.location=location,this.module=module,this.internals=internals,this.componentId=componentId,taggedModuleExports=taggedModuleExports.length&&taggedModuleExports||this.listTaggedExports(module),this.taggedModuleExports=taggedModuleExports}listTaggedExports(module){return module?module.exports.filter(e=>_schemas().ExportSchema.isExportSchema(e)&&e.exportNode.doc?.hasTag(_tag().TagName.exports)||e.doc?.hasTag(_tag().TagName.exports)).map(e=>_schemas().ExportSchema.isExportSchema(e)?e.exportNode:e):[]}toString(){return JSON.stringify(this.module.exports.map(exp=>exp.toObject()),void 0,2)}toStringPerType(){const title=_chalk().default.inverse(`API Schema of ${this.componentId.toString()}
|
|
201
|
+
`]}),`line-${lineIndex}`))})})})},Editor_default=CodeEditor,LiveContext=(0,react.createContext)({}),LiveContext_default=LiveContext,defaultTransforms=["jsx","imports"];function dist_transform(opts={}){const transforms=Array.isArray(opts.transforms)?opts.transforms.filter(Boolean):defaultTransforms;return code=>transform(code,{transforms}).code}var errorBoundary=(Element2,errorCallback)=>class extends react.Component{componentDidCatch(error){errorCallback(error)}render(){return typeof Element2=="function"?(0,jsx_runtime.jsx)(Element2,{}):react.isValidElement(Element2)?Element2:null}},errorBoundary_default=errorBoundary,evalCode=(code,scope)=>{const scopeKeys=Object.keys(scope),scopeValues=scopeKeys.map(key=>scope[key]);return new Function(...scopeKeys,code)(...scopeValues)},evalCode_default=evalCode;function compose(...functions){return functions.reduce((acc,currentFn)=>(...args)=>acc(currentFn(...args)))}var jsxConst='const _jsxFileName = "";',trimCode=code=>code.trim().replace(/;$/,""),spliceJsxConst=code=>code.replace(jsxConst,"").trim(),addJsxConst=code=>jsxConst+code,wrapReturn=code=>`return (${code})`,generateElement=({code="",scope={},enableTypeScript=!0},errorCallback)=>{const firstPassTransforms=["jsx"];enableTypeScript&&firstPassTransforms.push("typescript");const transformed=compose(addJsxConst,dist_transform({transforms:["imports"]}),spliceJsxConst,trimCode,dist_transform({transforms:firstPassTransforms}),wrapReturn,trimCode)(code);return errorBoundary_default(evalCode_default(transformed,dist_spreadValues({React:react},scope)),errorCallback)},renderElementAsync=({code="",scope={},enableTypeScript=!0},resultCallback,errorCallback)=>{const render=element=>{typeof element>"u"?errorCallback(new SyntaxError("`render` must be called with valid JSX.")):resultCallback(errorBoundary_default(element,errorCallback))};if(!/render\s*\(/.test(code))return errorCallback(new SyntaxError("No-Inline evaluations must call `render`."));const transforms=["jsx","imports"];enableTypeScript&&transforms.splice(1,0,"typescript"),evalCode_default(dist_transform({transforms})(code),dist_spreadProps(dist_spreadValues({React:react},scope),{render}))};function LiveProvider({children,code="",language="tsx",theme:theme21,enableTypeScript=!0,disabled=!1,scope,transformCode,noInline=!1}){const[state2,setState]=(0,react.useState)({error:void 0,element:void 0});function transpileAsync(newCode){return __async(this,null,function*(){const errorCallback=error=>{setState(previousState=>dist_spreadProps(dist_spreadValues({},previousState),{error:error.toString(),element:void 0}))};try{const transformResult=transformCode?transformCode(newCode):newCode;try{const transformedCode=yield Promise.resolve(transformResult),renderElement=element=>setState({error:void 0,element,newCode});if(typeof transformedCode!="string")throw new Error("Code failed to transform");const input2={code:transformedCode,scope,enableTypeScript};noInline?(setState(previousState=>dist_spreadProps(dist_spreadValues({},previousState),{error:void 0,element:null})),renderElementAsync(input2,renderElement,errorCallback)):renderElement(generateElement(input2,errorCallback))}catch(error){return errorCallback(error)}}catch(e){return errorCallback(e),Promise.resolve()}})}const onError=error=>setState({error:error.toString()});(0,react.useEffect)(()=>{transpileAsync(code).catch(onError)},[code,scope,noInline,transformCode]);const onChange=newCode=>{transpileAsync(newCode).catch(onError)};return(0,jsx_runtime.jsx)(LiveContext_default.Provider,{value:dist_spreadProps(dist_spreadValues({},state2),{code,language,theme:theme21,disabled,onError,onChange}),children})}var LiveProvider_default=LiveProvider;function LiveEditor(props){const{code,language,theme:theme21,disabled,onChange}=(0,react.useContext)(LiveContext_default);return(0,jsx_runtime.jsx)(Editor_default,dist_spreadValues({theme:theme21,code,language,disabled,onChange},props))}function LiveError(props){const{error}=(0,react.useContext)(LiveContext_default);return error?(0,jsx_runtime.jsx)("pre",dist_spreadProps(dist_spreadValues({},props),{children:error})):null}var ErrorBoundary=class extends react.Component{static getDerivedStateFromError(){return{hasError:!0}}constructor(props){super(props);this.state={hasError:!1}}componentDidCatch(err){var _a,_b;(_b=(_a=this.props).onError)==null||_b.call(_a,err)}render(){return this.state.hasError?null:this.props.children}};function LivePreview(_a){var _b=_a,{Component:Component3="div"}=_b,rest=dist_objRest(_b,["Component"]);const{element:Element2,onError,newCode}=(0,react.useContext)(LiveContext_default);return(0,jsx_runtime.jsx)(ErrorBoundary,{onError,children:(0,jsx_runtime.jsx)(Component3,dist_spreadProps(dist_spreadValues({},rest),{children:Element2?(0,jsx_runtime.jsx)(Element2,{}):null}))},newCode)}var LivePreview_default=LivePreview;function withLive(WrappedComponent){const WithLive=props=>jsx7(LiveContext_default.Consumer,{children:live=>jsx7(WrappedComponent,dist_spreadValues({live},props))});return WithLive.displayName="WithLive",WithLive}var base_ui_surfaces_split_pane_split_pane_dist=__webpack_require__(52696),base_ui_surfaces_split_pane_hover_splitter_dist=__webpack_require__(40062),es=__webpack_require__(38518);function c(u,e,c2){var i2=this,a2=(0,react.useRef)(null),o2=(0,react.useRef)(0),f2=(0,react.useRef)(null),l=(0,react.useRef)([]),m2=(0,react.useRef)(),v=(0,react.useRef)(),d=(0,react.useRef)(u),p2=(0,react.useRef)(!0);(0,react.useEffect)(function(){d.current=u},[u]);var g=!e&&e!==0&&typeof window<"u";if(typeof u!="function")throw new TypeError("Expected a function");e=+e||0;var w2=!!(c2=c2||{}).leading,s=!("trailing"in c2)||!!c2.trailing,x="maxWait"in c2,y=x?Math.max(+c2.maxWait||0,e):null;(0,react.useEffect)(function(){return p2.current=!0,function(){p2.current=!1}},[]);var h=(0,react.useMemo)(function(){var r2=function(r3){var n2=l.current,t2=m2.current;return l.current=m2.current=null,o2.current=r3,v.current=d.current.apply(t2,n2)},n=function(r3,n2){g&&cancelAnimationFrame(f2.current),f2.current=g?requestAnimationFrame(r3):setTimeout(r3,n2)},t=function(r3){if(!p2.current)return!1;var n2=r3-a2.current;return!a2.current||n2>=e||n2<0||x&&r3-o2.current>=y},u2=function(n2){return f2.current=null,s&&l.current?r2(n2):(l.current=m2.current=null,v.current)},c3=function r3(){var c4=Date.now();if(t(c4))return u2(c4);if(p2.current){var i3=e-(c4-a2.current),f3=x?Math.min(i3,y-(c4-o2.current)):i3;n(r3,f3)}},h7=function(){var u3=Date.now(),d2=t(u3);if(l.current=[].slice.call(arguments),m2.current=i2,a2.current=u3,d2){if(!f2.current&&p2.current)return o2.current=a2.current,n(c3,e),w2?r2(a2.current):v.current;if(x)return n(c3,e),r2(a2.current)}return f2.current||n(c3,e),v.current};return h7.cancel=function(){f2.current&&(g?cancelAnimationFrame(f2.current):clearTimeout(f2.current)),o2.current=0,l.current=a2.current=m2.current=f2.current=null},h7.isPending=function(){return!!f2.current},h7.flush=function(){return f2.current?u2(Date.now()):v.current},h7},[w2,x,e,y,s,g]);return h}function i(r2,n){return r2===n}function a(r2){return typeof r2=="function"?function(){return r2}:r2}function o(n,t,o2){var f2,l,m2=o2&&o2.equalityFn||i,v=(f2=(0,react.useState)(a(n)),l=f2[1],[f2[0],(0,react.useCallback)(function(r2){return l(a(r2))},[])]),d=v[0],p2=v[1],g=c((0,react.useCallback)(function(r2){return p2(r2)},[p2]),t,o2),w2=(0,react.useRef)(n);return m2(w2.current,n)||(g(n),w2.current=n),[d,g]}function f(r2,n,t){var u=t===void 0?{}:t,e=u.leading,i2=u.trailing;return c(r2,n,{maxWait:n,leading:e===void 0||e,trailing:i2===void 0||i2})}var oceanicNext_colors={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},oceanicNext_theme={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:oceanicNext_colors.keyword}},{types:["attr-value"],style:{color:oceanicNext_colors.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:oceanicNext_colors.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:oceanicNext_colors.primitive}},{types:["boolean"],style:{color:oceanicNext_colors.boolean}},{types:["tag"],style:{color:oceanicNext_colors.tag}},{types:["string"],style:{color:oceanicNext_colors.string}},{types:["punctuation"],style:{color:oceanicNext_colors.string}},{types:["selector","char","builtin","inserted"],style:{color:oceanicNext_colors.char}},{types:["function"],style:{color:oceanicNext_colors.function}},{types:["operator","entity","url","variable"],style:{color:oceanicNext_colors.variable}},{types:["keyword"],style:{color:oceanicNext_colors.keyword}},{types:["atrule","class-name"],style:{color:oceanicNext_colors.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]};const oceanicNext=oceanicNext_theme;var base_ui_input_error_dist=__webpack_require__(72973);const react_playground_module={column:"react-playground_column__sBiR2",codePane:"react-playground_codePane__oEXAe",previewPane:"react-playground_previewPane__1H4Yn",error:"react-playground_error__r0acd",row:"react-playground_row__0N0bo",editor:"react-playground_editor__xhkzX",splitter:"react-playground_splitter__tCT4a",previewBox:"react-playground_previewBox__II8rN",playground:"react-playground_playground__St+cP"};function Playground({code,scope,style,className,...rest}){const codeMemoed=(0,react.useMemo)(()=>code?.toString().replace(/\n$/,"").trim(),[code]),[ref,{width}]=(0,es.A)(),isColumn=+o(width,300,{leading:!0})[0]<=500,placement=isColumn?base_ui_surfaces_split_pane_split_pane_dist.Layout.columnReverse:base_ui_surfaces_split_pane_split_pane_dist.Layout.row;return width?(0,jsx_runtime.jsx)(LiveProvider_default,{code:codeMemoed,scope,theme:oceanicNext,children:(0,jsx_runtime.jsx)("div",{ref,className:classnames_default()(className,react_playground_module.playground,isColumn?react_playground_module.column:react_playground_module.row),...rest,children:(0,jsx_runtime.jsxs)(base_ui_surfaces_split_pane_split_pane_dist.SplitPane,{className:react_playground_module.main,size:"50%",layout:placement,children:[(0,jsx_runtime.jsx)(base_ui_surfaces_split_pane_split_pane_dist.Pane,{className:classnames_default()(react_playground_module.codePane),children:(0,jsx_runtime.jsx)(LiveEditor,{className:classnames_default()(react_playground_module.editor)})}),(0,jsx_runtime.jsx)(base_ui_surfaces_split_pane_hover_splitter_dist.HoverSplitter,{className:react_playground_module.splitter}),(0,jsx_runtime.jsx)(base_ui_surfaces_split_pane_split_pane_dist.Pane,{className:classnames_default()(react_playground_module.previewPane),children:(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(LivePreview_default,{className:react_playground_module.previewBox}),(0,jsx_runtime.jsx)(LiveError,{className:classnames_default()(base_ui_input_error_dist.Error,react_playground_module.error)})]})})]})})}):(0,jsx_runtime.jsx)("div",{ref})}const snippet_module={snippet:"snippet_snippet__+6owh"};function Snippet({children,scope,live}){return live?(0,jsx_runtime.jsx)(Playground,{className:snippet_module.snippet,code:children,scope}):(0,jsx_runtime.jsx)(CodeSnippet,{className:snippet_module.snippet,children})}const sup_module={sup:"sup_sup__T4TiM"};function Sup({children,className,...rest}){return(0,jsx_runtime.jsx)("sup",{...rest,className:classnames_default()(sup_module.sup,className),children})}const base_table_module={table:"base-table_table__4tmtn"};function Table({children,className,...rest}){return(0,jsx_runtime.jsx)("table",{...rest,className:classnames_default()(base_table_module.table,className),children})}const td_module={td:"td_td__p0uqh"};function Td({children,className,...rest}){return(0,jsx_runtime.jsx)("td",{...rest,className:classnames_default()(td_module.td,className),children})}const tr_module={tr:"tr_tr__Hywdz"};function Tr({children,className,...rest}){return(0,jsx_runtime.jsx)("tr",{...rest,className:classnames_default()(tr_module.tr,className),children})}const ul_module={ul:"ul_ul__EW0bv"};function Ul({children,className,...rest}){return(0,jsx_runtime.jsx)("ul",{...rest,className:classnames_default()(ul_module.ul,className),children})}const defaultMdxComponents={h1,h2,h3,h4,h5,h6,p:Paragraph,code:Snippet,a:ExternalLink,inlineCode:InlineCode,ol:Ol,ul:Ul,hr:Separator,thematicBreak:Separator,img:Image,strong:Bold,em:Italic,pre:({children,live})=>{const props={...children.props,live:live||children?.props?.live,isMdx3:!0,isBlock:!0};return{...children,props}},sup:Sup,table:Table,tr:Tr,td:Td,blockquote:BlockQuote},mdx_layout_module={mdxContent:"mdx-layout_mdxContent__pbF0P"};function MDXLayout({children,components,className,...rest}){const componentsMemoed=(0,react.useMemo)(()=>({...defaultMdxComponents,...components}),[defaultMdxComponents,components]);return(0,jsx_runtime.jsx)(lib.x,{components:componentsMemoed,children:(0,jsx_runtime.jsx)("div",{className:classnames_default()(mdx_layout_module.mdxContent,className),...rest,children})})}var mdx_ui_mdx_scope_context_dist=__webpack_require__(43210);function snippet_Snippet({scope,isMdx3,isBlock,...rest}){const components=(0,react.useContext)(mdx_ui_mdx_scope_context_dist.t),_scope=(0,react.useMemo)(()=>({...components,...scope}),[components,scope]);return isMdx3&&!isBlock?(0,jsx_runtime.jsx)(InlineCode,{children:rest.children}):(0,jsx_runtime.jsx)(Snippet,{scope:_scope,...rest})}var base_react_navigation_link_dist=__webpack_require__(19304);const link_module={link:"link_link__tosGn"};function Link(props){return(0,jsx_runtime.jsx)(base_react_navigation_link_dist.Link,{...props,className:link_module.link,external:!0})}const mdxComponents={code:({...props})=>(0,jsx_runtime.jsx)(snippet_Snippet,{...props,isMdx3:!0}),a:Link};function mdx_layout_MDXLayout({components,...rest}){const memoizedComponents=(0,react.useMemo)(()=>({...mdxComponents,...components}),[mdxComponents,components]);return(0,jsx_runtime.jsx)(MDXLayout,{components:memoizedComponents,...rest})}},69366(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}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.ErrorFallback=void 0;const react_1=__importDefault(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),design_ui_icon_button_1=__webpack_require__(29373),base_ui_styles_flex_center_1=__webpack_require__(88378),error_fallback_module_scss_1=__importDefault(__webpack_require__(34837));function ErrorFallback({resetErrorBoundary,className,children="Failed to render",cta="try again"}){const handleClick=()=>__awaiter(this,void 0,void 0,function*(){yield new Promise(resolve=>setTimeout(resolve,480)),resetErrorBoundary()});return react_1.default.createElement("div",{className:(0,classnames_1.default)(error_fallback_module_scss_1.default.errorFallback,base_ui_styles_flex_center_1.flexCenter,className)},react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.icon}),react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.message},children),react_1.default.createElement(design_ui_icon_button_1.IconButton,{onClick:handleClick,className:error_fallback_module_scss_1.default.retryButton},cta))}exports.ErrorFallback=ErrorFallback},83469(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.ErrorFallback=void 0;var error_fallback_1=__webpack_require__(69366);Object.defineProperty(exports,"ErrorFallback",{enumerable:!0,get:function(){return error_fallback_1.ErrorFallback}})},30824(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.APISchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _componentId(){const data=__webpack_require__(19100);return _componentId=function(){return data},data}function _schemas(){const data=__webpack_require__(91553);return _schemas=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class APISchema extends _schemaNode().SchemaNode{constructor(location,module,internals,componentId,taggedModuleExports=[]){super();this.location=location,this.module=module,this.internals=internals,this.componentId=componentId,taggedModuleExports=taggedModuleExports.length&&taggedModuleExports||this.listTaggedExports(module),this.taggedModuleExports=taggedModuleExports}listTaggedExports(module){return module?module.exports.filter(e=>_schemas().ExportSchema.isExportSchema(e)&&e.exportNode.doc?.hasTag(_tag().TagName.exports)||e.doc?.hasTag(_tag().TagName.exports)).map(e=>_schemas().ExportSchema.isExportSchema(e)?e.exportNode:e):[]}toString(){return JSON.stringify(this.module.exports.map(exp=>exp.toObject()),void 0,2)}toStringPerType(){const title=_chalk().default.inverse(`API Schema of ${this.componentId.toString()}
|
|
202
202
|
`),exportGroups=this.module.exports.reduce((acc,exp)=>{const displayName=(_schemas().ExportSchema.isExportSchema(exp)?exp.exportNode:exp).displaySchemaName;return(acc[displayName]=acc[displayName]||[]).push(exp),acc},{}),sortedDisplayNames=Object.keys(exportGroups).sort();if(sortedDisplayNames.length===0)return title;const sections=sortedDisplayNames.map(displayName=>{const sectionBody=exportGroups[displayName].map(c=>c.toString({color:!0})).join(`
|
|
203
203
|
`);return`${_chalk().default.green.bold(displayName)}
|
|
204
204
|
${sectionBody}`});return title+sections.join(`
|
|
@@ -213,7 +213,7 @@ ${sectionBody}`});return title+sections.join(`
|
|
|
213
213
|
|
|
214
214
|
`)}
|
|
215
215
|
|
|
216
|
-
`;return output.trim()}getReadableSectionName(constructorName){return{ModuleSchema:"Namespaces",ClassSchema:"Classes",InterfaceSchema:"Interfaces",FunctionLikeSchema:"Functions",VariableLikeSchema:"Variables",TypeSchema:"Types",EnumSchema:"Enums",TypeRefSchema:"Type References",UnresolvedSchema:"Unresolved",ReactSchema:"React Components"}[constructorName]||constructorName}listSignatures(){return this.module.exports.map(exp=>exp.signature)}toObject(){return{...super.toObject(),module:this.module.toObject(),internals:this.internals.map(i=>i.toObject()),componentId:this.componentId.toObject(),taggedModuleExports:this.taggedModuleExports.map(e=>e.toObject())}}static fromObject(obj){const location=obj.location,module=_schemas().ModuleSchema.fromObject(obj.module),internals=(obj.internals||[]).map(i=>_schemas().ModuleSchema.fromObject(i)),componentId=_componentId().ComponentID.fromObject(obj.componentId),taggedModuleExports=(obj.taggedModuleExports||[]).map(e=>_schemaRegistry().SchemaRegistry.fromObject(e));return new APISchema(location,module,internals,componentId,taggedModuleExports)}static empty(componentId){return new APISchema({filePath:"",line:0,character:0},new(_schemas()).ModuleSchema({filePath:"",line:0,character:0},[],[]),[],componentId)}}exports.APISchema=APISchema},37230(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Export=void 0;class Export{constructor(identifier,staticProperties){this.identifier=identifier,this.staticProperties=staticProperties}toObject(){return{constructorName:this.constructor.name,identifier:this.identifier}}}exports.Export=Export},14606(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={Schemas:!0,SchemaNode:!0,ISchemaNode:!0,APISchema:!0,Export:!0,StaticProperties:!0,TagName:!0,SchemaRegistry:!0,SchemaNodeConstructor:!0,Modifier:!0};Object.defineProperty(exports,"APISchema",{enumerable:!0,get:function(){return _apiSchema().APISchema}}),Object.defineProperty(exports,"Export",{enumerable:!0,get:function(){return _export().Export}}),Object.defineProperty(exports,"ISchemaNode",{enumerable:!0,get:function(){return _schemaNode().ISchemaNode}}),Object.defineProperty(exports,"Modifier",{enumerable:!0,get:function(){return _functionLike().Modifier}}),Object.defineProperty(exports,"SchemaNode",{enumerable:!0,get:function(){return _schemaNode().SchemaNode}}),Object.defineProperty(exports,"SchemaNodeConstructor",{enumerable:!0,get:function(){return _schemaNodeConstructor().SchemaNodeConstructor}}),Object.defineProperty(exports,"SchemaRegistry",{enumerable:!0,get:function(){return _schemaRegistry().SchemaRegistry}}),exports.Schemas=void 0,Object.defineProperty(exports,"StaticProperties",{enumerable:!0,get:function(){return _export().StaticProperties}}),Object.defineProperty(exports,"TagName",{enumerable:!0,get:function(){return _tag().TagName}});var Schemas=_interopRequireWildcard(__webpack_require__(91553));exports.Schemas=Schemas,Object.keys(Schemas).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===Schemas[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return Schemas[key]}})});function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _apiSchema(){const data=__webpack_require__(30824);return _apiSchema=function(){return data},data}function _export(){const data=__webpack_require__(37230);return _export=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
216
|
+
`;return output.trim()}getReadableSectionName(constructorName){return{ModuleSchema:"Namespaces",ClassSchema:"Classes",InterfaceSchema:"Interfaces",FunctionLikeSchema:"Functions",VariableLikeSchema:"Variables",TypeSchema:"Types",EnumSchema:"Enums",TypeRefSchema:"Type References",UnresolvedSchema:"Unresolved",ReactSchema:"React Components"}[constructorName]||constructorName}listSignatures(){return this.module.exports.map(exp=>exp.signature)}toObject(){return{...super.toObject(),module:this.module.toObject(),internals:this.internals.map(i=>i.toObject()),componentId:this.componentId.toObject(),taggedModuleExports:this.taggedModuleExports.map(e=>e.toObject())}}static fromObject(obj){const location=obj.location,module=_schemas().ModuleSchema.fromObject(obj.module),internals=(obj.internals||[]).map(i=>_schemas().ModuleSchema.fromObject(i)),componentId=_componentId().ComponentID.fromObject(obj.componentId),taggedModuleExports=(obj.taggedModuleExports||[]).map(e=>_schemaRegistry().SchemaRegistry.fromObject(e));return new APISchema(location,module,internals,componentId,taggedModuleExports)}static empty(componentId){return new APISchema({filePath:"",line:0,character:0},new(_schemas()).ModuleSchema({filePath:"",line:0,character:0},[],[]),[],componentId)}}exports.APISchema=APISchema},37230(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Export=void 0;class Export{constructor(identifier,staticProperties){this.identifier=identifier,this.staticProperties=staticProperties}toObject(){return{constructorName:this.constructor.name,identifier:this.identifier}}}exports.Export=Export},14606(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={Schemas:!0,SchemaNode:!0,ISchemaNode:!0,APISchema:!0,Export:!0,StaticProperties:!0,TagName:!0,SchemaRegistry:!0,SchemaNodeConstructor:!0,Modifier:!0};Object.defineProperty(exports,"APISchema",{enumerable:!0,get:function(){return _apiSchema().APISchema}}),Object.defineProperty(exports,"Export",{enumerable:!0,get:function(){return _export().Export}}),Object.defineProperty(exports,"ISchemaNode",{enumerable:!0,get:function(){return _schemaNode().ISchemaNode}}),Object.defineProperty(exports,"Modifier",{enumerable:!0,get:function(){return _functionLike().Modifier}}),Object.defineProperty(exports,"SchemaNode",{enumerable:!0,get:function(){return _schemaNode().SchemaNode}}),Object.defineProperty(exports,"SchemaNodeConstructor",{enumerable:!0,get:function(){return _schemaNodeConstructor().SchemaNodeConstructor}}),Object.defineProperty(exports,"SchemaRegistry",{enumerable:!0,get:function(){return _schemaRegistry().SchemaRegistry}}),exports.Schemas=void 0,Object.defineProperty(exports,"StaticProperties",{enumerable:!0,get:function(){return _export().StaticProperties}}),Object.defineProperty(exports,"TagName",{enumerable:!0,get:function(){return _tag().TagName}});var Schemas=_interopRequireWildcard(__webpack_require__(91553));exports.Schemas=Schemas,Object.keys(Schemas).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===Schemas[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return Schemas[key]}})});function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _apiSchema(){const data=__webpack_require__(30824);return _apiSchema=function(){return data},data}function _export(){const data=__webpack_require__(37230);return _export=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _schemaNodeConstructor(){const data=__webpack_require__(49241);return _schemaNodeConstructor=function(){return data},data}function _functionLike(){const data=__webpack_require__(20021);return _functionLike=function(){return data},data}function _interopRequireWildcard(e,t){if(typeof WeakMap=="function")var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e2,t2){if(!t2&&e2&&e2.__esModule)return e2;var o,i,f={__proto__:null,default:e2};if(e2===null||typeof e2!="object"&&typeof e2!="function")return f;if(o=t2?n:r){if(o.has(e2))return o.get(e2);o.set(e2,f)}for(const t3 in e2)t3!=="default"&&{}.hasOwnProperty.call(e2,t3)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e2,t3))&&(i.get||i.set)?o(f,t3,i):f[t3]=e2[t3]);return f})(e,t)}},49241(){"use strict"},80700(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SchemaNode=void 0;function _lodash(){const data=__webpack_require__(46746);return _lodash=function(){return data},data}function _pluralize(){const data=_interopRequireDefault(__webpack_require__(11929));return _pluralize=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class SchemaNode{__schema=this.constructor.name;displaySchemaName=(0,_pluralize().default)(this.constructor.name.replace(/Schema$/,"").replace(/([A-Z])/g," $1").trim());static fromObject(obj){throw new Error("Method 'fromObject' not implemented in subclass.")}toObject(){return(0,_lodash().pickBy)({__schema:this.__schema,location:this.location,doc:this.doc?this.doc.toObject():void 0,signature:this.signature,name:this.name},v=>v!==void 0)}getNodes(){return[this]}getAllNodesRecursively(visitedNodes=new Set){if(visitedNodes.has(this))return[];visitedNodes.add(this);const nodes=this.getNodes();return[this,...nodes.flatMap(node=>node.getAllNodesRecursively(visitedNodes))]}findNode(predicate,visitedNodes=new Set){if(predicate(this))return this;if(!visitedNodes.has(this)){visitedNodes.add(this);for(const child of this.getNodes()){const foundNode=child.findNode(predicate,visitedNodes);if(foundNode)return foundNode}}}}exports.SchemaNode=SchemaNode},61279(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SchemaRegistry=void 0;function _unknownSchemaFactory(){const data=__webpack_require__(68717);return _unknownSchemaFactory=function(){return data},data}class SchemaRegistry{static instance=new SchemaRegistry;_getSchemas=[];constructor(){this._schemas={}}static registerGetSchemas(getSchemas){this.instance._getSchemas.push(getSchemas)}static register(schema){this.instance._schemas[schema.name]||(this.instance._schemas[schema.name]=schema)}static schemas(){return this.instance._getSchemas.forEach(getSchemas=>{getSchemas().forEach(schema=>{this.instance._schemas[schema.name]||(this.instance._schemas[schema.name]=schema)})}),this.instance._getSchemas=[],this.instance._schemas}static fromObject(obj){if(!obj.__schema)throw new Error('fatal: "__schema" is missing, make sure the transformer is set on SchemaNode type');const SchemaClass=this.schemas()[obj.__schema];return SchemaClass?SchemaClass.fromObject(obj):_unknownSchemaFactory().UnknownSchemaFactory.create(obj.location||{path:"",line:0,character:0},obj.__schema,obj)}}exports.SchemaRegistry=SchemaRegistry},8777(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrayLiteralExpressionSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ArrayLiteralExpressionSchema extends _schemaNode().SchemaNode{constructor(members,location){super();this.members=members,this.location=location}toObject(){return{...super.toObject(),members:this.members.map(member=>member.toObject()),location:this.location}}static fromObject(obj){const members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member));return new ArrayLiteralExpressionSchema(members,obj.location)}toString(){return`[${this.members.join(", ")}]`}toFullSignature(options){return`[${this.members.map(member=>member.toFullSignature(options)).join(", ")}]`}}exports.ArrayLiteralExpressionSchema=ArrayLiteralExpressionSchema},53413(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClassSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _expressionWithArguments(){const data=__webpack_require__(69446);return _expressionWithArguments=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ClassSchema extends _schemaNode().SchemaNode{constructor(name,members,location,signature,doc,typeParams,extendsNodes,implementNodes,decorators){super();this.name=name,this.location=location,this.signature=signature,this.typeParams=typeParams,this.extendsNodes=extendsNodes,this.implementNodes=implementNodes,this.decorators=decorators,this.members=members,this.doc=doc}getNodes(){return this.members}toString(options){const boldUnderline=options?.color?_chalk().default.bold.underline:str=>str,membersStr=this.members.map(m=>`* ${m.toString(options)}`).join(`
|
|
217
217
|
`),decoratorsStr=this.decorators?.map(decorator=>decorator.toString(options)).join(`
|
|
218
218
|
`);return`${this.decorators?`${decoratorsStr}
|
|
219
219
|
`:""}${boldUnderline(this.name)}
|
|
@@ -225,36 +225,36 @@ ${membersStr}`}toFullSignature(options){let result="";options?.showDocs&&this.do
|
|
|
225
225
|
`).map(line=>` ${line}`).join(`
|
|
226
226
|
`)).join(`
|
|
227
227
|
`)}
|
|
228
|
-
`,result+="}",result}toObject(){return{...super.toObject(),name:this.name,members:this.members.map(member=>member.toObject()),doc:this.doc?.toObject(),signature:this.signature,typeParams:this.typeParams,extendsNodes:this.extendsNodes?.map(node=>node.toObject()),implementNodes:this.implementNodes?.map(node=>node.toObject()),decorators:this.decorators?.map(decorator=>decorator.toObject())}}static fromObject(obj){const name=obj.name,members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),location=obj.location,signature=obj.signature,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,typeParams=obj.typeParams,extendsNodes=obj.extendsNodes?.map(node=>_expressionWithArguments().ExpressionWithTypeArgumentsSchema.fromObject(node)),implementNodes=obj.implementNodes?.map(node=>_expressionWithArguments().ExpressionWithTypeArgumentsSchema.fromObject(node)),decorators=obj.decorators?.map(decorator=>_schemaRegistry().SchemaRegistry.fromObject(decorator));return new ClassSchema(name,members,location,signature,doc,typeParams,extendsNodes,implementNodes,decorators)}static fromSchema(node,memberTransformer=_node=>_node){return new ClassSchema(node.name,node.members.map(memberTransformer),node.location,node.signature,node.doc,node.typeParams,node.extendsNodes,node.implementNodes,node.decorators)}}exports.ClassSchema=ClassSchema},45854(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConditionalTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
229
|
-
`);const argsStr=this.args?.map(arg=>arg.toFullSignature(options)).join(", ");return result+=`@${this.name}${argsStr?`(${argsStr})`:""}`,result}toObject(){return{...super.toObject(),name:this.name,doc:this.doc?.toObject(),args:this.args?.map(arg=>arg.toObject())}}static fromObject(obj){const location=obj.location,name=obj.name,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,args=obj.args?obj.args.map(arg=>_schemaRegistry().SchemaRegistry.fromObject(arg)):void 0;return new DecoratorSchema(location,name,doc,args)}}exports.DecoratorSchema=DecoratorSchema},8111(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
228
|
+
`,result+="}",result}toObject(){return{...super.toObject(),name:this.name,members:this.members.map(member=>member.toObject()),doc:this.doc?.toObject(),signature:this.signature,typeParams:this.typeParams,extendsNodes:this.extendsNodes?.map(node=>node.toObject()),implementNodes:this.implementNodes?.map(node=>node.toObject()),decorators:this.decorators?.map(decorator=>decorator.toObject())}}static fromObject(obj){const name=obj.name,members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),location=obj.location,signature=obj.signature,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,typeParams=obj.typeParams,extendsNodes=obj.extendsNodes?.map(node=>_expressionWithArguments().ExpressionWithTypeArgumentsSchema.fromObject(node)),implementNodes=obj.implementNodes?.map(node=>_expressionWithArguments().ExpressionWithTypeArgumentsSchema.fromObject(node)),decorators=obj.decorators?.map(decorator=>_schemaRegistry().SchemaRegistry.fromObject(decorator));return new ClassSchema(name,members,location,signature,doc,typeParams,extendsNodes,implementNodes,decorators)}static fromSchema(node,memberTransformer=_node=>_node){return new ClassSchema(node.name,node.members.map(memberTransformer),node.location,node.signature,node.doc,node.typeParams,node.extendsNodes,node.implementNodes,node.decorators)}}exports.ClassSchema=ClassSchema},45854(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConditionalTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ConditionalTypeSchema extends _schemaNode().SchemaNode{constructor(location,checkType,extendsType,trueType,falseType){super();this.location=location,this.checkType=checkType,this.extendsType=extendsType,this.trueType=trueType,this.falseType=falseType}getNodes(){return[this.checkType,this.extendsType,this.trueType,this.falseType]}toString(){return`${this.checkType.toString()} extends ${this.extendsType.toString()} ? ${this.trueType.toString()} : ${this.falseType.toString()}`}toFullSignature(options){const checkTypeStr=this.checkType.toFullSignature(options),extendsTypeStr=this.extendsType.toFullSignature(options),trueTypeStr=this.trueType.toFullSignature(options),falseTypeStr=this.falseType.toFullSignature(options);return`${checkTypeStr} extends ${extendsTypeStr} ? ${trueTypeStr} : ${falseTypeStr}`}toObject(){return{...super.toObject(),checkType:this.checkType.toObject(),extendsType:this.extendsType.toObject(),trueType:this.trueType.toObject(),falseType:this.falseType.toObject()}}static fromObject(obj){const location=obj.location,checkType=_schemaRegistry().SchemaRegistry.fromObject(obj.checkType),extendsType=_schemaRegistry().SchemaRegistry.fromObject(obj.extendsType),trueType=_schemaRegistry().SchemaRegistry.fromObject(obj.trueType),falseType=_schemaRegistry().SchemaRegistry.fromObject(obj.falseType);return new ConditionalTypeSchema(location,checkType,extendsType,trueType,falseType)}}exports.ConditionalTypeSchema=ConditionalTypeSchema},59845(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConstructorSchema=void 0;function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}function _functionLike(){const data=__webpack_require__(20021);return _functionLike=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _thisType(){const data=__webpack_require__(89454);return _thisType=function(){return data},data}class ConstructorSchema extends _functionLike().FunctionLikeSchema{constructor(location,params,returnType,signature,modifiers=[],doc){super(location,"constructor",params,returnType,signature,modifiers,doc,void 0)}static fromObject(obj){const location=obj.location,params=obj.params.map(param=>_parameter().ParameterSchema.fromObject(param)),returns=_thisType().ThisTypeSchema.fromObject(obj.returnType),signature=obj.signature,modifiers=obj.modifiers,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new ConstructorSchema(location,params,returns,signature,modifiers,doc)}}exports.ConstructorSchema=ConstructorSchema},76596(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DecoratorSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}class DecoratorSchema extends _schemaNode().SchemaNode{constructor(location,name,doc,args){super();this.location=location,this.name=name,this.doc=doc,this.args=args}getNodes(){return this.args||[]}toString(){const argsStr=this.args?.map(arg=>arg.toString()).join(", ");return`@${this.name}${argsStr?`(${argsStr})`:""}`}toFullSignature(options){let result="";options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
229
|
+
`);const argsStr=this.args?.map(arg=>arg.toFullSignature(options)).join(", ");return result+=`@${this.name}${argsStr?`(${argsStr})`:""}`,result}toObject(){return{...super.toObject(),name:this.name,doc:this.doc?.toObject(),args:this.args?.map(arg=>arg.toObject())}}static fromObject(obj){const location=obj.location,name=obj.name,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,args=obj.args?obj.args.map(arg=>_schemaRegistry().SchemaRegistry.fromObject(arg)):void 0;return new DecoratorSchema(location,name,doc,args)}}exports.DecoratorSchema=DecoratorSchema},8111(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class DocSchema extends _schemaNode().SchemaNode{constructor(location,raw,comment,tags){super();this.location=location,this.raw=raw,this.comment=comment,this.tags=tags}toString(){const comment=this.comment?`${this.comment}
|
|
230
230
|
`:"",tags=this.tags?this.tags.map(tag=>tag.toString()).join(`
|
|
231
231
|
`):"";return`${comment}${tags}`}toFullSignature(){const lines=[];if(this.comment&&lines.push(...this.comment.split(`
|
|
232
232
|
`).map(line=>` * ${line.trim()}`)),this.tags&&this.tags.length>0)for(const tag of this.tags)lines.push(` * ${tag.toString().trim()}`);return lines.length===0?"":`/**
|
|
233
233
|
${lines.join(`
|
|
234
234
|
`)}
|
|
235
|
-
*/`}hasTag(tagName){return Boolean(this.findTag(tagName))}findTag(tagName){return this.tags?.find(tag=>tag.tagName===tagName)}toObject(){return{__schema:this.__schema,name:this.name,location:this.location,signature:this.signature,raw:this.raw,comment:this.comment,tags:this.tags?this.tags.map(tag=>tag.toObject()):void 0}}static fromObject(obj){const location=obj.location,tags=obj.tags?obj.tags.map(tag=>_schemaRegistry().SchemaRegistry.fromObject(tag)):void 0;return new DocSchema(location,obj.raw,obj.comment,tags)}}exports.DocSchema=DocSchema},22813(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DocSchema",{enumerable:!0,get:function(){return _doc().DocSchema}}),Object.defineProperty(exports,"PropertyLikeTagSchema",{enumerable:!0,get:function(){return _propertyLikeTag().PropertyLikeTagSchema}}),Object.defineProperty(exports,"ReturnTagSchema",{enumerable:!0,get:function(){return _returnTag().ReturnTagSchema}}),Object.defineProperty(exports,"TagSchema",{enumerable:!0,get:function(){return _tag().TagSchema}});function _doc(){const data=__webpack_require__(8111);return _doc=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _returnTag(){const data=__webpack_require__(60966);return _returnTag=function(){return data},data}function _propertyLikeTag(){const data=__webpack_require__(17651);return _propertyLikeTag=function(){return data},data}},17651(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertyLikeTagSchema=void 0;function _schemaRegistry(){const data=__webpack_require__(
|
|
235
|
+
*/`}hasTag(tagName){return Boolean(this.findTag(tagName))}findTag(tagName){return this.tags?.find(tag=>tag.tagName===tagName)}toObject(){return{__schema:this.__schema,name:this.name,location:this.location,signature:this.signature,raw:this.raw,comment:this.comment,tags:this.tags?this.tags.map(tag=>tag.toObject()):void 0}}static fromObject(obj){const location=obj.location,tags=obj.tags?obj.tags.map(tag=>_schemaRegistry().SchemaRegistry.fromObject(tag)):void 0;return new DocSchema(location,obj.raw,obj.comment,tags)}}exports.DocSchema=DocSchema},22813(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DocSchema",{enumerable:!0,get:function(){return _doc().DocSchema}}),Object.defineProperty(exports,"PropertyLikeTagSchema",{enumerable:!0,get:function(){return _propertyLikeTag().PropertyLikeTagSchema}}),Object.defineProperty(exports,"ReturnTagSchema",{enumerable:!0,get:function(){return _returnTag().ReturnTagSchema}}),Object.defineProperty(exports,"TagSchema",{enumerable:!0,get:function(){return _tag().TagSchema}});function _doc(){const data=__webpack_require__(8111);return _doc=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _returnTag(){const data=__webpack_require__(60966);return _returnTag=function(){return data},data}function _propertyLikeTag(){const data=__webpack_require__(17651);return _propertyLikeTag=function(){return data},data}},17651(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertyLikeTagSchema=void 0;function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}class PropertyLikeTagSchema extends _tag().TagSchema{constructor(location,name,comment,type){super(location,_tag().TagName.parameter,comment);this.location=location,this.name=name,this.comment=comment,this.type=type}toString(){const comment=this.comment?` ${this.comment}`:"",type=this.type?` {${this.type.toString()}} `:"";return`@${this.tagName} ${this.name}${type} ${comment}`}toFullSignature(options){const typeStr=this.type?` {${this.type.toFullSignature(options)}} `:"",comment=this.comment?` ${this.comment}`:"";return`@${this.tagName} ${this.name}${typeStr}${comment}`}toObject(){return{...super.toObject(),name:this.name,type:this.type?.toObject()}}static fromObject(obj){const location=obj.location,name=obj.name,comment=obj.comment,type=obj.type?_schemaRegistry().SchemaRegistry.fromObject(obj.type):void 0;return new PropertyLikeTagSchema(location,name,comment,type)}}exports.PropertyLikeTagSchema=PropertyLikeTagSchema},60966(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReturnTagSchema=void 0;function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}class ReturnTagSchema extends _tag().TagSchema{constructor(location,comment,type){super(location,_tag().TagName.return,comment);this.location=location,this.comment=comment,this.type=type}toString(){const comment=this.comment?` ${this.comment}`:"";return`@${this.tagName}${comment}`}toFullSignature(options){const typeStr=this.type?` {${this.type.toFullSignature(options)}}`:"",comment=this.comment?` ${this.comment}`:"";return`@${this.tagName}${typeStr}${comment}`}toObject(){return{...super.toObject(),type:this.type?.toObject()}}static fromObject(obj){const location=obj.location,comment=obj.comment,type=obj.type?_schemaRegistry().SchemaRegistry.fromObject(obj.type):void 0;return new ReturnTagSchema(location,comment,type)}}exports.ReturnTagSchema=ReturnTagSchema},1817(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TagSchema=exports.TagName=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class TagSchema extends _schemaNode().SchemaNode{constructor(location,tagName,comment){super();this.location=location,this.tagName=tagName,this.comment=comment}toString(){const comment=this.comment?` ${this.comment}`:"";return`@${this.tagName}${comment}`}toFullSignature(){return this.toString()}static fromObject(obj){const location=obj.location,tagName=obj.tagName,comment=obj.comment;return new TagSchema(location,tagName,comment)}toObject(){return{__schema:this.__schema,location:this.location,name:this.name,signature:this.signature,tagName:this.tagName,comment:this.comment}}}exports.TagSchema=TagSchema;let TagName=exports.TagName=function(TagName2){return TagName2.augments="augments",TagName2.author="author",TagName2.class="class",TagName2.callback="callback",TagName2.public="public",TagName2.private="private",TagName2.protected="protected",TagName2.readonly="readonly",TagName2.override="override",TagName2.see="see",TagName2.enum="enum",TagName2.parameter="parameter",TagName2.this="this",TagName2.type="type",TagName2.template="template",TagName2.typedef="typedef",TagName2.property="property",TagName2.implements="implements",TagName2.return="return",TagName2.deprecated="deprecated",TagName2.exports="exports",TagName2.link="link",TagName2}({})},6875(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EnumMemberSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}class EnumMemberSchema extends _schemaNode().SchemaNode{constructor(location,name,signature,value,doc){super();this.location=location,this.name=name,this.signature=signature,this.value=value,this.doc=doc}toString(){return this.value?`${this.name}=${this.value}`:this.name}toFullSignature(options){let result="";return options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
236
236
|
`),this.value!==void 0?result+=`${this.name} = ${this.value}`:result+=`${this.name}`,result}toObject(){return{...super.toObject(),name:this.name,signature:this.signature,value:this.value,doc:this.doc?.toObject()}}static fromObject(obj){const location=obj.location,name=obj.name,signature=obj.signature,value=obj.value,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new EnumMemberSchema(location,name,signature,value,doc)}}exports.EnumMemberSchema=EnumMemberSchema},46312(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EnumSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _(){const data=__webpack_require__(14606);return _=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class EnumSchema extends _schemaNode().SchemaNode{constructor(location,name,members,signature,doc){super();this.location=location,this.name=name,this.signature=signature,this.doc=doc,this.members=members}getNodes(){return this.members}toString(options){const boldUnderline=options?.color?_chalk().default.bold.underline:str=>str,membersStr=this.members.map(m=>`* ${m.toString(options)}`).join(`
|
|
237
237
|
`);return`${boldUnderline(this.name)}
|
|
238
238
|
${membersStr}`}toFullSignature(options){let result="";return options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
239
239
|
`),result+=`enum ${this.name} {
|
|
240
240
|
`,result+=`${this.members.map(member=>` ${member.toFullSignature(options)}`).join(`,
|
|
241
241
|
`)}
|
|
242
|
-
`,result+="}",result}toObject(){return{...super.toObject(),name:this.name,members:this.members.map(member=>member.toObject()),doc:this.doc?.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,members=obj.members.map(member=>_().SchemaRegistry.fromObject(member)),signature=obj.signature,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new EnumSchema(location,name,members,signature,doc)}}exports.EnumSchema=EnumSchema},2855(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExportSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
242
|
+
`,result+="}",result}toObject(){return{...super.toObject(),name:this.name,members:this.members.map(member=>member.toObject()),doc:this.doc?.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,members=obj.members.map(member=>_().SchemaRegistry.fromObject(member)),signature=obj.signature,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new EnumSchema(location,name,members,signature,doc)}}exports.EnumSchema=EnumSchema},2855(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExportSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ExportSchema extends _schemaNode().SchemaNode{constructor(location,name,exportNode,alias,doc){super();this.location=location,this.name=name,this.exportNode=exportNode,this.alias=alias,this.doc=doc,this.signature=exportNode.signature||this.toFullSignature()}toString(options){let signature="";const alias=this.alias||this.name,originalName=this.exportNode.name||this.name;return alias!==originalName?signature+=`export { ${originalName} as ${alias} };
|
|
243
243
|
`:signature+=`export { ${originalName} };
|
|
244
244
|
`,signature+=`
|
|
245
245
|
${this.exportNode.toString(options)}`,signature}toFullSignature(options){let signature="";options?.showDocs&&this.doc&&(signature+=`${this.doc.toFullSignature()}
|
|
246
246
|
`);const alias=this.alias||this.name,originalName=this.exportNode.name||this.name;return alias!==originalName?signature+=`export { ${originalName} as ${alias} };
|
|
247
247
|
`:signature+=`export { ${originalName} };
|
|
248
248
|
`,signature+=`
|
|
249
|
-
${this.exportNode.toFullSignature(options)}`,signature}toObject(){return{...super.toObject(),name:this.name,doc:this.doc?.toObject(),location:this.location,exportNode:this.exportNode.toObject(),alias:this.alias}}static fromObject(obj){const name=obj.name,location=obj.location,exportNode=_schemaRegistry().SchemaRegistry.fromObject(obj.exportNode),alias=obj.alias,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new ExportSchema(location,name,exportNode,alias,doc)}static isExportSchema(node){return"exportNode"in node}}exports.ExportSchema=ExportSchema},69446(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExpressionWithTypeArgumentsSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
249
|
+
${this.exportNode.toFullSignature(options)}`,signature}toObject(){return{...super.toObject(),name:this.name,doc:this.doc?.toObject(),location:this.location,exportNode:this.exportNode.toObject(),alias:this.alias}}static fromObject(obj){const name=obj.name,location=obj.location,exportNode=_schemaRegistry().SchemaRegistry.fromObject(obj.exportNode),alias=obj.alias,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new ExportSchema(location,name,exportNode,alias,doc)}static isExportSchema(node){return"exportNode"in node}}exports.ExportSchema=ExportSchema},69446(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExpressionWithTypeArgumentsSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ExpressionWithTypeArgumentsSchema extends _schemaNode().SchemaNode{constructor(typeArgs,expression,name,location){super();this.name=name,this.location=location,this.typeArgs=typeArgs,this.expression=expression}toString(){return this.name}toFullSignature(options){let result=this.name;return this.typeArgs&&this.typeArgs.length>0&&(result+=`<${this.typeArgs.map(arg=>arg.toFullSignature(options)).join(", ")}>`),result}toObject(){return{...super.toObject(),name:this.name,location:this.location,typeArgs:this.typeArgs.map(typeArg=>typeArg.toObject()),expression:this.expression}}static fromObject(obj){const name=obj.name,location=obj.location,typeArgs=obj.typeArgs.map(typeArg=>_schemaRegistry().SchemaRegistry.fromObject(typeArg)),expression=_schemaRegistry().SchemaRegistry.fromObject(obj.expression);return new ExpressionWithTypeArgumentsSchema(typeArgs,expression,name,location)}}exports.ExpressionWithTypeArgumentsSchema=ExpressionWithTypeArgumentsSchema},20021(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FunctionLikeSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _tag(){const data=__webpack_require__(1817);return _tag=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class FunctionLikeSchema extends _schemaNode().SchemaNode{displaySchemaName="Functions";constructor(location,name,params,returnType,signature,modifiers=[],doc,typeParams,decorators){super();this.location=location,this.name=name,this.modifiers=modifiers,this.typeParams=typeParams,this.decorators=decorators,this.params=params,this.returnType=returnType,this.doc=doc,this.signature=signature||FunctionLikeSchema.createSignature(this.name,this.params,this.returnType)}getNodes(){return[...this.params,this.returnType,...this.decorators||[]]}toString(options){const bold=options?.color?_chalk().default.bold:text=>text,paramsStr=this.params.map(param=>param.toString()).join(", "),typeParamsStr=this.typeParams?`<${this.typeParams.join(", ")}>`:"",decoratorsStr=this.decorators?.map(decorator=>decorator.toString(options)).join(`
|
|
250
250
|
`);return`${this.decorators?`${decoratorsStr}
|
|
251
251
|
`:""}${this.modifiersToString()}${typeParamsStr}${bold(this.name)}(${paramsStr}): ${this.returnType.toString(options)}`}toFullSignature(options){let result="";options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
252
252
|
`);const decoratorsStr=this.decorators?.map(decorator=>decorator.toString()).join(`
|
|
253
253
|
`);decoratorsStr&&(result+=`${decoratorsStr}
|
|
254
254
|
`);const modifiersStr=this.modifiersToString(),typeParamsStr=this.typeParams?`<${this.typeParams.join(", ")}>`:"",paramsStr=this.params.map(param=>{let paramStr="";return param.isSpread&&(paramStr+="..."),paramStr+=param.name,param.isOptional&&(paramStr+="?"),paramStr+=`: ${param.type.toString()}`,param.defaultValue!==void 0&&(paramStr+=` = ${param.defaultValue}`),paramStr}).join(", ");return result+=`${modifiersStr}${this.name}${typeParamsStr}(${paramsStr}): ${this.returnType.toString()}`,result}isDeprecated(){return Boolean(this.doc?.hasTag(_tag().TagName.deprecated))}isPrivate(){return Boolean(this.modifiers.find(m=>m==="private")||this.doc?.hasTag(_tag().TagName.private))}generateSignature(){return FunctionLikeSchema.createSignature(this.name,this.params,this.returnType,this.decorators)}static createSignature(name,params,returnType,decorators){const paramsStr=params.map(param=>{let type=param.type.toString();return param.isSpread&&(type=`...${type}`),`${param.name}${param.isOptional?"?":""}: ${type}`}).join(", "),decoratorsStr=decorators?.map(decorator=>decorator.toString()).join(`
|
|
255
255
|
`);return`${decorators?`${decoratorsStr}
|
|
256
|
-
`:""}${name}(${paramsStr}): ${returnType.toString()}`}toObject(){return{...super.toObject(),name:this.name,params:this.params.map(param=>param.toObject()),returnType:this.returnType.toObject(),signature:this.signature,modifiers:this.modifiers,doc:this.doc?.toObject(),typeParams:this.typeParams,decorators:this.decorators?.map(decorator=>decorator.toObject())}}static fromObject(obj){return new FunctionLikeSchema(obj.location,obj.name,obj.params.map(param=>_parameter().ParameterSchema.fromObject(param)),_schemaRegistry().SchemaRegistry.fromObject(obj.returnType),obj.signature,obj.modifiers,obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,obj.typeParams,obj.decorators?.map(decorator=>_schemaRegistry().SchemaRegistry.fromObject(decorator)))}modifiersToString(){const modifiersToPrint=this.modifiers.filter(modifier=>modifier!=="export");return modifiersToPrint.length?`${modifiersToPrint.join(" ")} `:""}}exports.FunctionLikeSchema=FunctionLikeSchema},64857(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GetAccessorSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
257
|
-
`),result+=`get ${this.name}(): ${this.type.toFullSignature(options)}`,result}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),signature=obj.signature;return new GetAccessorSchema(location,name,type,signature)}}exports.GetAccessorSchema=GetAccessorSchema},37087(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IgnoredSchema=void 0;function _(){const data=__webpack_require__(14606);return _=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class IgnoredSchema extends _schemaNode().SchemaNode{constructor(node){super();this.node=node,this.location=node.location,this.doc=node.doc,this.name=node.name}getNodes(){return[]}getAllNodesRecursively(){return[]}toString(){return""}toFullSignature(){return""}toObject(){return{...super.toObject(),node:this.node.toObject()}}static fromObject(obj){const node=_().SchemaRegistry.fromObject(obj.node);return new IgnoredSchema(node)}}exports.IgnoredSchema=IgnoredSchema},84626(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IndexSignatureSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(83660);return _schemaRegistry=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}class IndexSignatureSchema extends _schemaNode().SchemaNode{constructor(location,keyType,valueType){super();this.location=location,this.keyType=keyType,this.valueType=valueType}toString(){return`[${this.keyType.toString()}]: ${this.valueType.toString()}`}toFullSignature(options){const keyTypeStr=this.keyType.toFullSignature(options),valueTypeStr=this.valueType.toFullSignature(options);return`[${keyTypeStr}]: ${valueTypeStr}`}toObject(){return{...super.toObject(),location:this.location,keyType:this.keyType.toObject(),valueType:this.valueType.toObject()}}static fromObject(obj){const location=obj.location,keyType=_parameter().ParameterSchema.fromObject(obj.keyType),valueType=_schemaRegistry().SchemaRegistry.fromObject(obj.valueType);return new IndexSignatureSchema(location,keyType,valueType)}}exports.IndexSignatureSchema=IndexSignatureSchema},91553(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={ModuleSchema:!0,FunctionLikeSchema:!0,TypeRefSchema:!0,VariableLikeSchema:!0,ClassSchema:!0,ConstructorSchema:!0,TypeSchema:!0,TypeIntersectionSchema:!0,TypeUnionSchema:!0,TypeLiteralSchema:!0,IndexSignatureSchema:!0,InterfaceSchema:!0,GetAccessorSchema:!0,SetAccessorSchema:!0,TypeQuerySchema:!0,InferenceTypeSchema:!0,LiteralTypeSchema:!0,KeywordTypeSchema:!0,TypeArraySchema:!0,TypeOperatorSchema:!0,TupleTypeSchema:!0,ParameterSchema:!0,EnumSchema:!0,EnumMemberSchema:!0,ParenthesizedTypeSchema:!0,TypePredicateSchema:!0,IndexedAccessSchema:!0,TemplateLiteralTypeSchema:!0,TemplateLiteralTypeSpanSchema:!0,ThisTypeSchema:!0,UnknownSchema:!0,UnresolvedSchema:!0,ConditionalTypeSchema:!0,ExpressionWithTypeArgumentsSchema:!0,NamedTupleSchema:!0,UnImplementedSchema:!0,ObjectLiteralExpressionSchema:!0,ArrayLiteralExpressionSchema:!0,PropertyAssignmentSchema:!0,DecoratorSchema:!0,LiteralValueSchema:!0,IgnoredSchema:!0,ExportSchema:!0};Object.defineProperty(exports,"ArrayLiteralExpressionSchema",{enumerable:!0,get:function(){return _arrayLiteralExpression().ArrayLiteralExpressionSchema}}),Object.defineProperty(exports,"ClassSchema",{enumerable:!0,get:function(){return _class().ClassSchema}}),Object.defineProperty(exports,"ConditionalTypeSchema",{enumerable:!0,get:function(){return _conditionalType().ConditionalTypeSchema}}),Object.defineProperty(exports,"ConstructorSchema",{enumerable:!0,get:function(){return _constructor().ConstructorSchema}}),Object.defineProperty(exports,"DecoratorSchema",{enumerable:!0,get:function(){return _decorator().DecoratorSchema}}),Object.defineProperty(exports,"EnumMemberSchema",{enumerable:!0,get:function(){return _enumMember().EnumMemberSchema}}),Object.defineProperty(exports,"EnumSchema",{enumerable:!0,get:function(){return _enum().EnumSchema}}),Object.defineProperty(exports,"ExportSchema",{enumerable:!0,get:function(){return _export().ExportSchema}}),Object.defineProperty(exports,"ExpressionWithTypeArgumentsSchema",{enumerable:!0,get:function(){return _expressionWithArguments().ExpressionWithTypeArgumentsSchema}}),Object.defineProperty(exports,"FunctionLikeSchema",{enumerable:!0,get:function(){return _functionLike().FunctionLikeSchema}}),Object.defineProperty(exports,"GetAccessorSchema",{enumerable:!0,get:function(){return _getAccessor().GetAccessorSchema}}),Object.defineProperty(exports,"IgnoredSchema",{enumerable:!0,get:function(){return _ignored().IgnoredSchema}}),Object.defineProperty(exports,"IndexSignatureSchema",{enumerable:!0,get:function(){return _indexSignature().IndexSignatureSchema}}),Object.defineProperty(exports,"IndexedAccessSchema",{enumerable:!0,get:function(){return _indexedAccessType().IndexedAccessSchema}}),Object.defineProperty(exports,"InferenceTypeSchema",{enumerable:!0,get:function(){return _inferenceType().InferenceTypeSchema}}),Object.defineProperty(exports,"InterfaceSchema",{enumerable:!0,get:function(){return _interface().InterfaceSchema}}),Object.defineProperty(exports,"KeywordTypeSchema",{enumerable:!0,get:function(){return _keywordType().KeywordTypeSchema}}),Object.defineProperty(exports,"LiteralTypeSchema",{enumerable:!0,get:function(){return _literalType().LiteralTypeSchema}}),Object.defineProperty(exports,"LiteralValueSchema",{enumerable:!0,get:function(){return _literalValue().LiteralValueSchema}}),Object.defineProperty(exports,"ModuleSchema",{enumerable:!0,get:function(){return _module().ModuleSchema}}),Object.defineProperty(exports,"NamedTupleSchema",{enumerable:!0,get:function(){return _namedTuple().NamedTupleSchema}}),Object.defineProperty(exports,"ObjectLiteralExpressionSchema",{enumerable:!0,get:function(){return _objectLiteralExpression().ObjectLiteralExpressionSchema}}),Object.defineProperty(exports,"ParameterSchema",{enumerable:!0,get:function(){return _parameter().ParameterSchema}}),Object.defineProperty(exports,"ParenthesizedTypeSchema",{enumerable:!0,get:function(){return _parenthesizedType().ParenthesizedTypeSchema}}),Object.defineProperty(exports,"PropertyAssignmentSchema",{enumerable:!0,get:function(){return _propertyAssignment().PropertyAssignmentSchema}}),Object.defineProperty(exports,"SetAccessorSchema",{enumerable:!0,get:function(){return _setAccessor().SetAccessorSchema}}),Object.defineProperty(exports,"TemplateLiteralTypeSchema",{enumerable:!0,get:function(){return _templateLiteralType().TemplateLiteralTypeSchema}}),Object.defineProperty(exports,"TemplateLiteralTypeSpanSchema",{enumerable:!0,get:function(){return _templateLiteralTypeSpan().TemplateLiteralTypeSpanSchema}}),Object.defineProperty(exports,"ThisTypeSchema",{enumerable:!0,get:function(){return _thisType().ThisTypeSchema}}),Object.defineProperty(exports,"TupleTypeSchema",{enumerable:!0,get:function(){return _tupleType().TupleTypeSchema}}),Object.defineProperty(exports,"TypeArraySchema",{enumerable:!0,get:function(){return _typeArray().TypeArraySchema}}),Object.defineProperty(exports,"TypeIntersectionSchema",{enumerable:!0,get:function(){return _typeIntersection().TypeIntersectionSchema}}),Object.defineProperty(exports,"TypeLiteralSchema",{enumerable:!0,get:function(){return _typeLiteral().TypeLiteralSchema}}),Object.defineProperty(exports,"TypeOperatorSchema",{enumerable:!0,get:function(){return _typeOperator().TypeOperatorSchema}}),Object.defineProperty(exports,"TypePredicateSchema",{enumerable:!0,get:function(){return _typePredicate().TypePredicateSchema}}),Object.defineProperty(exports,"TypeQuerySchema",{enumerable:!0,get:function(){return _typeQuery().TypeQuerySchema}}),Object.defineProperty(exports,"TypeRefSchema",{enumerable:!0,get:function(){return _typeRef().TypeRefSchema}}),Object.defineProperty(exports,"TypeSchema",{enumerable:!0,get:function(){return _type().TypeSchema}}),Object.defineProperty(exports,"TypeUnionSchema",{enumerable:!0,get:function(){return _typeUnion().TypeUnionSchema}}),Object.defineProperty(exports,"UnImplementedSchema",{enumerable:!0,get:function(){return _unimplementedSchema().UnImplementedSchema}}),Object.defineProperty(exports,"UnknownSchema",{enumerable:!0,get:function(){return _unknownSchema().UnknownSchema}}),Object.defineProperty(exports,"UnresolvedSchema",{enumerable:!0,get:function(){return _unresolvedSchema().UnresolvedSchema}}),Object.defineProperty(exports,"VariableLikeSchema",{enumerable:!0,get:function(){return _variableLike().VariableLikeSchema}});function _module(){const data=__webpack_require__(59001);return _module=function(){return data},data}function _functionLike(){const data=__webpack_require__(20021);return _functionLike=function(){return data},data}function _typeRef(){const data=__webpack_require__(50693);return _typeRef=function(){return data},data}function _variableLike(){const data=__webpack_require__(99005);return _variableLike=function(){return data},data}function _class(){const data=__webpack_require__(53413);return _class=function(){return data},data}function _constructor(){const data=__webpack_require__(59845);return _constructor=function(){return data},data}function _type(){const data=__webpack_require__(79109);return _type=function(){return data},data}function _typeIntersection(){const data=__webpack_require__(55895);return _typeIntersection=function(){return data},data}function _typeUnion(){const data=__webpack_require__(51835);return _typeUnion=function(){return data},data}function _typeLiteral(){const data=__webpack_require__(50011);return _typeLiteral=function(){return data},data}function _indexSignature(){const data=__webpack_require__(84626);return _indexSignature=function(){return data},data}function _interface(){const data=__webpack_require__(97618);return _interface=function(){return data},data}function _getAccessor(){const data=__webpack_require__(64857);return _getAccessor=function(){return data},data}function _setAccessor(){const data=__webpack_require__(13069);return _setAccessor=function(){return data},data}function _typeQuery(){const data=__webpack_require__(87576);return _typeQuery=function(){return data},data}function _inferenceType(){const data=__webpack_require__(75659);return _inferenceType=function(){return data},data}function _literalType(){const data=__webpack_require__(5835);return _literalType=function(){return data},data}function _keywordType(){const data=__webpack_require__(13219);return _keywordType=function(){return data},data}function _typeArray(){const data=__webpack_require__(17201);return _typeArray=function(){return data},data}function _typeOperator(){const data=__webpack_require__(53254);return _typeOperator=function(){return data},data}function _tupleType(){const data=__webpack_require__(94032);return _tupleType=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}function _enum(){const data=__webpack_require__(46312);return _enum=function(){return data},data}function _enumMember(){const data=__webpack_require__(6875);return _enumMember=function(){return data},data}function _parenthesizedType(){const data=__webpack_require__(40336);return _parenthesizedType=function(){return data},data}function _typePredicate(){const data=__webpack_require__(47017);return _typePredicate=function(){return data},data}function _indexedAccessType(){const data=__webpack_require__(30668);return _indexedAccessType=function(){return data},data}function _templateLiteralType(){const data=__webpack_require__(49801);return _templateLiteralType=function(){return data},data}function _templateLiteralTypeSpan(){const data=__webpack_require__(7199);return _templateLiteralTypeSpan=function(){return data},data}function _thisType(){const data=__webpack_require__(89454);return _thisType=function(){return data},data}function _unknownSchema(){const data=__webpack_require__(23775);return _unknownSchema=function(){return data},data}function _unresolvedSchema(){const data=__webpack_require__(1580);return _unresolvedSchema=function(){return data},data}function _conditionalType(){const data=__webpack_require__(45854);return _conditionalType=function(){return data},data}function _expressionWithArguments(){const data=__webpack_require__(69446);return _expressionWithArguments=function(){return data},data}function _namedTuple(){const data=__webpack_require__(34759);return _namedTuple=function(){return data},data}function _unimplementedSchema(){const data=__webpack_require__(1734);return _unimplementedSchema=function(){return data},data}function _objectLiteralExpression(){const data=__webpack_require__(42791);return _objectLiteralExpression=function(){return data},data}function _arrayLiteralExpression(){const data=__webpack_require__(8777);return _arrayLiteralExpression=function(){return data},data}function _propertyAssignment(){const data=__webpack_require__(87352);return _propertyAssignment=function(){return data},data}function _decorator(){const data=__webpack_require__(76596);return _decorator=function(){return data},data}function _literalValue(){const data=__webpack_require__(48462);return _literalValue=function(){return data},data}function _ignored(){const data=__webpack_require__(37087);return _ignored=function(){return data},data}function _export(){const data=__webpack_require__(2855);return _export=function(){return data},data}var _docs=__webpack_require__(22813);Object.keys(_docs).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_docs[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _docs[key]}})})},30668(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IndexedAccessSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(83660);return _schemaRegistry=function(){return data},data}class IndexedAccessSchema extends _schemaNode().SchemaNode{constructor(location,objectType,indexType){super();this.location=location,this.objectType=objectType,this.indexType=indexType}getNodes(){return[this.objectType,this.indexType]}toString(){return`${this.objectType.toString()}[${this.indexType.toString()}]`}toFullSignature(options){const objectTypeStr=this.objectType.toFullSignature(options),indexTypeStr=this.indexType.toFullSignature(options);return`${objectTypeStr}[${indexTypeStr}]`}toObject(){return{...super.toObject(),objectType:this.objectType.toObject(),indexType:this.indexType.toObject()}}static fromObject(obj){const location=obj.location,objectType=_schemaRegistry().SchemaRegistry.fromObject(obj.objectType),indexType=_schemaRegistry().SchemaRegistry.fromObject(obj.indexType);return new IndexedAccessSchema(location,objectType,indexType)}}exports.IndexedAccessSchema=IndexedAccessSchema},75659(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InferenceTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class InferenceTypeSchema extends _schemaNode().SchemaNode{constructor(location,type,name,defaultValue,isSpread,alias){super();this.location=location,this.type=type,this.name=name,this.defaultValue=defaultValue,this.isSpread=isSpread,this.alias=alias}toString(){return this.name&&this.name!==this.type?`${this.name}: ${this.type}`:this.type}toFullSignature(){let result="";return this.name&&this.name!==this.type&&(result+=`${this.name}: `),result+=this.type,this.defaultValue!==void 0&&(result+=` = ${this.defaultValue}`),result}toObject(){return{...super.toObject(),type:this.type,defaultValue:this.defaultValue,isSpread:this.isSpread,alias:this.alias}}static fromObject(obj){const location=obj.location,type=obj.type,name=obj.name,defaultValue=obj.defaultValue,isSpread=obj.isSpread,alias=obj.alias;return new InferenceTypeSchema(location,type,name,defaultValue,isSpread,alias)}}exports.InferenceTypeSchema=InferenceTypeSchema},97618(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InterfaceSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _expressionWithArguments(){const data=__webpack_require__(69446);return _expressionWithArguments=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(83660);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class InterfaceSchema extends _schemaNode().SchemaNode{constructor(location,name,signature,extendsNodes,members,doc,typeParams){super();this.location=location,this.name=name,this.signature=signature,this.extendsNodes=extendsNodes,this.typeParams=typeParams,this.members=members,this.doc=doc}getNodes(){return this.members}toString(options){const boldUnderline=options?.color?_chalk().default.bold.underline:str=>str,membersStr=this.members.map(m=>`* ${m.toString(options)}`).join(`
|
|
256
|
+
`:""}${name}(${paramsStr}): ${returnType.toString()}`}toObject(){return{...super.toObject(),name:this.name,params:this.params.map(param=>param.toObject()),returnType:this.returnType.toObject(),signature:this.signature,modifiers:this.modifiers,doc:this.doc?.toObject(),typeParams:this.typeParams,decorators:this.decorators?.map(decorator=>decorator.toObject())}}static fromObject(obj){return new FunctionLikeSchema(obj.location,obj.name,obj.params.map(param=>_parameter().ParameterSchema.fromObject(param)),_schemaRegistry().SchemaRegistry.fromObject(obj.returnType),obj.signature,obj.modifiers,obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,obj.typeParams,obj.decorators?.map(decorator=>_schemaRegistry().SchemaRegistry.fromObject(decorator)))}modifiersToString(){const modifiersToPrint=this.modifiers.filter(modifier=>modifier!=="export");return modifiersToPrint.length?`${modifiersToPrint.join(" ")} `:""}}exports.FunctionLikeSchema=FunctionLikeSchema},64857(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GetAccessorSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class GetAccessorSchema extends _schemaNode().SchemaNode{constructor(location,name,type,signature){super();this.location=location,this.name=name,this.signature=signature,this.type=type}getSignature(){return this.signature}getNodes(){return[this.type]}toString(options){return`get ${(options?.color?_chalk().default.bold:x=>x)(this.name)}(): ${this.type.toString(options)}`}toFullSignature(options){let result="";return options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
257
|
+
`),result+=`get ${this.name}(): ${this.type.toFullSignature(options)}`,result}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),signature=obj.signature;return new GetAccessorSchema(location,name,type,signature)}}exports.GetAccessorSchema=GetAccessorSchema},37087(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IgnoredSchema=void 0;function _(){const data=__webpack_require__(14606);return _=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class IgnoredSchema extends _schemaNode().SchemaNode{constructor(node){super();this.node=node,this.location=node.location,this.doc=node.doc,this.name=node.name}getNodes(){return[]}getAllNodesRecursively(){return[]}toString(){return""}toFullSignature(){return""}toObject(){return{...super.toObject(),node:this.node.toObject()}}static fromObject(obj){const node=_().SchemaRegistry.fromObject(obj.node);return new IgnoredSchema(node)}}exports.IgnoredSchema=IgnoredSchema},84626(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IndexSignatureSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}class IndexSignatureSchema extends _schemaNode().SchemaNode{constructor(location,keyType,valueType){super();this.location=location,this.keyType=keyType,this.valueType=valueType}toString(){return`[${this.keyType.toString()}]: ${this.valueType.toString()}`}toFullSignature(options){const keyTypeStr=this.keyType.toFullSignature(options),valueTypeStr=this.valueType.toFullSignature(options);return`[${keyTypeStr}]: ${valueTypeStr}`}toObject(){return{...super.toObject(),location:this.location,keyType:this.keyType.toObject(),valueType:this.valueType.toObject()}}static fromObject(obj){const location=obj.location,keyType=_parameter().ParameterSchema.fromObject(obj.keyType),valueType=_schemaRegistry().SchemaRegistry.fromObject(obj.valueType);return new IndexSignatureSchema(location,keyType,valueType)}}exports.IndexSignatureSchema=IndexSignatureSchema},91553(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={ModuleSchema:!0,FunctionLikeSchema:!0,TypeRefSchema:!0,VariableLikeSchema:!0,ClassSchema:!0,ConstructorSchema:!0,TypeSchema:!0,TypeIntersectionSchema:!0,TypeUnionSchema:!0,TypeLiteralSchema:!0,IndexSignatureSchema:!0,InterfaceSchema:!0,GetAccessorSchema:!0,SetAccessorSchema:!0,TypeQuerySchema:!0,InferenceTypeSchema:!0,LiteralTypeSchema:!0,KeywordTypeSchema:!0,TypeArraySchema:!0,TypeOperatorSchema:!0,TupleTypeSchema:!0,ParameterSchema:!0,EnumSchema:!0,EnumMemberSchema:!0,ParenthesizedTypeSchema:!0,TypePredicateSchema:!0,IndexedAccessSchema:!0,TemplateLiteralTypeSchema:!0,TemplateLiteralTypeSpanSchema:!0,ThisTypeSchema:!0,UnknownSchema:!0,UnresolvedSchema:!0,ConditionalTypeSchema:!0,ExpressionWithTypeArgumentsSchema:!0,NamedTupleSchema:!0,UnImplementedSchema:!0,ObjectLiteralExpressionSchema:!0,ArrayLiteralExpressionSchema:!0,PropertyAssignmentSchema:!0,DecoratorSchema:!0,LiteralValueSchema:!0,IgnoredSchema:!0,ExportSchema:!0};Object.defineProperty(exports,"ArrayLiteralExpressionSchema",{enumerable:!0,get:function(){return _arrayLiteralExpression().ArrayLiteralExpressionSchema}}),Object.defineProperty(exports,"ClassSchema",{enumerable:!0,get:function(){return _class().ClassSchema}}),Object.defineProperty(exports,"ConditionalTypeSchema",{enumerable:!0,get:function(){return _conditionalType().ConditionalTypeSchema}}),Object.defineProperty(exports,"ConstructorSchema",{enumerable:!0,get:function(){return _constructor().ConstructorSchema}}),Object.defineProperty(exports,"DecoratorSchema",{enumerable:!0,get:function(){return _decorator().DecoratorSchema}}),Object.defineProperty(exports,"EnumMemberSchema",{enumerable:!0,get:function(){return _enumMember().EnumMemberSchema}}),Object.defineProperty(exports,"EnumSchema",{enumerable:!0,get:function(){return _enum().EnumSchema}}),Object.defineProperty(exports,"ExportSchema",{enumerable:!0,get:function(){return _export().ExportSchema}}),Object.defineProperty(exports,"ExpressionWithTypeArgumentsSchema",{enumerable:!0,get:function(){return _expressionWithArguments().ExpressionWithTypeArgumentsSchema}}),Object.defineProperty(exports,"FunctionLikeSchema",{enumerable:!0,get:function(){return _functionLike().FunctionLikeSchema}}),Object.defineProperty(exports,"GetAccessorSchema",{enumerable:!0,get:function(){return _getAccessor().GetAccessorSchema}}),Object.defineProperty(exports,"IgnoredSchema",{enumerable:!0,get:function(){return _ignored().IgnoredSchema}}),Object.defineProperty(exports,"IndexSignatureSchema",{enumerable:!0,get:function(){return _indexSignature().IndexSignatureSchema}}),Object.defineProperty(exports,"IndexedAccessSchema",{enumerable:!0,get:function(){return _indexedAccessType().IndexedAccessSchema}}),Object.defineProperty(exports,"InferenceTypeSchema",{enumerable:!0,get:function(){return _inferenceType().InferenceTypeSchema}}),Object.defineProperty(exports,"InterfaceSchema",{enumerable:!0,get:function(){return _interface().InterfaceSchema}}),Object.defineProperty(exports,"KeywordTypeSchema",{enumerable:!0,get:function(){return _keywordType().KeywordTypeSchema}}),Object.defineProperty(exports,"LiteralTypeSchema",{enumerable:!0,get:function(){return _literalType().LiteralTypeSchema}}),Object.defineProperty(exports,"LiteralValueSchema",{enumerable:!0,get:function(){return _literalValue().LiteralValueSchema}}),Object.defineProperty(exports,"ModuleSchema",{enumerable:!0,get:function(){return _module().ModuleSchema}}),Object.defineProperty(exports,"NamedTupleSchema",{enumerable:!0,get:function(){return _namedTuple().NamedTupleSchema}}),Object.defineProperty(exports,"ObjectLiteralExpressionSchema",{enumerable:!0,get:function(){return _objectLiteralExpression().ObjectLiteralExpressionSchema}}),Object.defineProperty(exports,"ParameterSchema",{enumerable:!0,get:function(){return _parameter().ParameterSchema}}),Object.defineProperty(exports,"ParenthesizedTypeSchema",{enumerable:!0,get:function(){return _parenthesizedType().ParenthesizedTypeSchema}}),Object.defineProperty(exports,"PropertyAssignmentSchema",{enumerable:!0,get:function(){return _propertyAssignment().PropertyAssignmentSchema}}),Object.defineProperty(exports,"SetAccessorSchema",{enumerable:!0,get:function(){return _setAccessor().SetAccessorSchema}}),Object.defineProperty(exports,"TemplateLiteralTypeSchema",{enumerable:!0,get:function(){return _templateLiteralType().TemplateLiteralTypeSchema}}),Object.defineProperty(exports,"TemplateLiteralTypeSpanSchema",{enumerable:!0,get:function(){return _templateLiteralTypeSpan().TemplateLiteralTypeSpanSchema}}),Object.defineProperty(exports,"ThisTypeSchema",{enumerable:!0,get:function(){return _thisType().ThisTypeSchema}}),Object.defineProperty(exports,"TupleTypeSchema",{enumerable:!0,get:function(){return _tupleType().TupleTypeSchema}}),Object.defineProperty(exports,"TypeArraySchema",{enumerable:!0,get:function(){return _typeArray().TypeArraySchema}}),Object.defineProperty(exports,"TypeIntersectionSchema",{enumerable:!0,get:function(){return _typeIntersection().TypeIntersectionSchema}}),Object.defineProperty(exports,"TypeLiteralSchema",{enumerable:!0,get:function(){return _typeLiteral().TypeLiteralSchema}}),Object.defineProperty(exports,"TypeOperatorSchema",{enumerable:!0,get:function(){return _typeOperator().TypeOperatorSchema}}),Object.defineProperty(exports,"TypePredicateSchema",{enumerable:!0,get:function(){return _typePredicate().TypePredicateSchema}}),Object.defineProperty(exports,"TypeQuerySchema",{enumerable:!0,get:function(){return _typeQuery().TypeQuerySchema}}),Object.defineProperty(exports,"TypeRefSchema",{enumerable:!0,get:function(){return _typeRef().TypeRefSchema}}),Object.defineProperty(exports,"TypeSchema",{enumerable:!0,get:function(){return _type().TypeSchema}}),Object.defineProperty(exports,"TypeUnionSchema",{enumerable:!0,get:function(){return _typeUnion().TypeUnionSchema}}),Object.defineProperty(exports,"UnImplementedSchema",{enumerable:!0,get:function(){return _unimplementedSchema().UnImplementedSchema}}),Object.defineProperty(exports,"UnknownSchema",{enumerable:!0,get:function(){return _unknownSchema().UnknownSchema}}),Object.defineProperty(exports,"UnresolvedSchema",{enumerable:!0,get:function(){return _unresolvedSchema().UnresolvedSchema}}),Object.defineProperty(exports,"VariableLikeSchema",{enumerable:!0,get:function(){return _variableLike().VariableLikeSchema}});function _module(){const data=__webpack_require__(59001);return _module=function(){return data},data}function _functionLike(){const data=__webpack_require__(20021);return _functionLike=function(){return data},data}function _typeRef(){const data=__webpack_require__(50693);return _typeRef=function(){return data},data}function _variableLike(){const data=__webpack_require__(99005);return _variableLike=function(){return data},data}function _class(){const data=__webpack_require__(53413);return _class=function(){return data},data}function _constructor(){const data=__webpack_require__(59845);return _constructor=function(){return data},data}function _type(){const data=__webpack_require__(79109);return _type=function(){return data},data}function _typeIntersection(){const data=__webpack_require__(55895);return _typeIntersection=function(){return data},data}function _typeUnion(){const data=__webpack_require__(51835);return _typeUnion=function(){return data},data}function _typeLiteral(){const data=__webpack_require__(50011);return _typeLiteral=function(){return data},data}function _indexSignature(){const data=__webpack_require__(84626);return _indexSignature=function(){return data},data}function _interface(){const data=__webpack_require__(97618);return _interface=function(){return data},data}function _getAccessor(){const data=__webpack_require__(64857);return _getAccessor=function(){return data},data}function _setAccessor(){const data=__webpack_require__(13069);return _setAccessor=function(){return data},data}function _typeQuery(){const data=__webpack_require__(87576);return _typeQuery=function(){return data},data}function _inferenceType(){const data=__webpack_require__(75659);return _inferenceType=function(){return data},data}function _literalType(){const data=__webpack_require__(5835);return _literalType=function(){return data},data}function _keywordType(){const data=__webpack_require__(13219);return _keywordType=function(){return data},data}function _typeArray(){const data=__webpack_require__(17201);return _typeArray=function(){return data},data}function _typeOperator(){const data=__webpack_require__(53254);return _typeOperator=function(){return data},data}function _tupleType(){const data=__webpack_require__(94032);return _tupleType=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}function _enum(){const data=__webpack_require__(46312);return _enum=function(){return data},data}function _enumMember(){const data=__webpack_require__(6875);return _enumMember=function(){return data},data}function _parenthesizedType(){const data=__webpack_require__(40336);return _parenthesizedType=function(){return data},data}function _typePredicate(){const data=__webpack_require__(47017);return _typePredicate=function(){return data},data}function _indexedAccessType(){const data=__webpack_require__(30668);return _indexedAccessType=function(){return data},data}function _templateLiteralType(){const data=__webpack_require__(49801);return _templateLiteralType=function(){return data},data}function _templateLiteralTypeSpan(){const data=__webpack_require__(7199);return _templateLiteralTypeSpan=function(){return data},data}function _thisType(){const data=__webpack_require__(89454);return _thisType=function(){return data},data}function _unknownSchema(){const data=__webpack_require__(23775);return _unknownSchema=function(){return data},data}function _unresolvedSchema(){const data=__webpack_require__(1580);return _unresolvedSchema=function(){return data},data}function _conditionalType(){const data=__webpack_require__(45854);return _conditionalType=function(){return data},data}function _expressionWithArguments(){const data=__webpack_require__(69446);return _expressionWithArguments=function(){return data},data}function _namedTuple(){const data=__webpack_require__(34759);return _namedTuple=function(){return data},data}function _unimplementedSchema(){const data=__webpack_require__(1734);return _unimplementedSchema=function(){return data},data}function _objectLiteralExpression(){const data=__webpack_require__(42791);return _objectLiteralExpression=function(){return data},data}function _arrayLiteralExpression(){const data=__webpack_require__(8777);return _arrayLiteralExpression=function(){return data},data}function _propertyAssignment(){const data=__webpack_require__(87352);return _propertyAssignment=function(){return data},data}function _decorator(){const data=__webpack_require__(76596);return _decorator=function(){return data},data}function _literalValue(){const data=__webpack_require__(48462);return _literalValue=function(){return data},data}function _ignored(){const data=__webpack_require__(37087);return _ignored=function(){return data},data}function _export(){const data=__webpack_require__(2855);return _export=function(){return data},data}var _docs=__webpack_require__(22813);Object.keys(_docs).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_docs[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _docs[key]}})})},30668(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IndexedAccessSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class IndexedAccessSchema extends _schemaNode().SchemaNode{constructor(location,objectType,indexType){super();this.location=location,this.objectType=objectType,this.indexType=indexType}getNodes(){return[this.objectType,this.indexType]}toString(){return`${this.objectType.toString()}[${this.indexType.toString()}]`}toFullSignature(options){const objectTypeStr=this.objectType.toFullSignature(options),indexTypeStr=this.indexType.toFullSignature(options);return`${objectTypeStr}[${indexTypeStr}]`}toObject(){return{...super.toObject(),objectType:this.objectType.toObject(),indexType:this.indexType.toObject()}}static fromObject(obj){const location=obj.location,objectType=_schemaRegistry().SchemaRegistry.fromObject(obj.objectType),indexType=_schemaRegistry().SchemaRegistry.fromObject(obj.indexType);return new IndexedAccessSchema(location,objectType,indexType)}}exports.IndexedAccessSchema=IndexedAccessSchema},75659(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InferenceTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class InferenceTypeSchema extends _schemaNode().SchemaNode{constructor(location,type,name,defaultValue,isSpread,alias){super();this.location=location,this.type=type,this.name=name,this.defaultValue=defaultValue,this.isSpread=isSpread,this.alias=alias}toString(){return this.name&&this.name!==this.type?`${this.name}: ${this.type}`:this.type}toFullSignature(){let result="";return this.name&&this.name!==this.type&&(result+=`${this.name}: `),result+=this.type,this.defaultValue!==void 0&&(result+=` = ${this.defaultValue}`),result}toObject(){return{...super.toObject(),type:this.type,defaultValue:this.defaultValue,isSpread:this.isSpread,alias:this.alias}}static fromObject(obj){const location=obj.location,type=obj.type,name=obj.name,defaultValue=obj.defaultValue,isSpread=obj.isSpread,alias=obj.alias;return new InferenceTypeSchema(location,type,name,defaultValue,isSpread,alias)}}exports.InferenceTypeSchema=InferenceTypeSchema},97618(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InterfaceSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _expressionWithArguments(){const data=__webpack_require__(69446);return _expressionWithArguments=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class InterfaceSchema extends _schemaNode().SchemaNode{constructor(location,name,signature,extendsNodes,members,doc,typeParams){super();this.location=location,this.name=name,this.signature=signature,this.extendsNodes=extendsNodes,this.typeParams=typeParams,this.members=members,this.doc=doc}getNodes(){return this.members}toString(options){const boldUnderline=options?.color?_chalk().default.bold.underline:str=>str,membersStr=this.members.map(m=>`* ${m.toString(options)}`).join(`
|
|
258
258
|
`);return`${boldUnderline(this.name)}
|
|
259
259
|
${membersStr}`}toFullSignature(options){let result="";options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
260
260
|
`);let interfaceDeclaration=`interface ${this.name}`;return this.typeParams&&this.typeParams.length>0&&(interfaceDeclaration+=`<${this.typeParams.join(", ")}>`),this.extendsNodes&&this.extendsNodes.length>0&&(interfaceDeclaration+=` extends ${this.extendsNodes.map(node=>node.toFullSignature(options)).join(", ")}`),result+=`${interfaceDeclaration} {
|
|
@@ -262,12 +262,12 @@ ${membersStr}`}toFullSignature(options){let result="";options?.showDocs&&this.do
|
|
|
262
262
|
`).map(line=>` ${line}`).join(`
|
|
263
263
|
`)).join(`
|
|
264
264
|
`)}
|
|
265
|
-
`,result+="}",result}toObject(){return{...super.toObject(),name:this.name,members:this.members.map(member=>member.toObject()),doc:this.doc?.toObject(),signature:this.signature,extendsNodes:this.extendsNodes?.map(node=>node.toObject()),typeParams:this.typeParams}}static fromObject(obj){const location=obj.location,name=obj.name,signature=obj.signature,extendsNodes=obj.extendsNodes?.map(node=>_expressionWithArguments().ExpressionWithTypeArgumentsSchema.fromObject(node)),members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,typeParams=obj.typeParams;return new InterfaceSchema(location,name,signature,extendsNodes,members,doc,typeParams)}}exports.InterfaceSchema=InterfaceSchema},13219(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KeywordTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class KeywordTypeSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toString(){return this.name}toFullSignature(){return this.toString()}toObject(){return{...super.toObject(),name:this.name}}static fromObject(obj){const location=obj.location,name=obj.name;return new KeywordTypeSchema(location,name)}}exports.KeywordTypeSchema=KeywordTypeSchema},5835(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LiteralTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class LiteralTypeSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toObject(){return{...super.toObject(),name:this.name}}toString(){return this.name}toFullSignature(){return this.toString()}static fromObject(obj){const location=obj.location,name=obj.name;return new LiteralTypeSchema(location,name)}}exports.LiteralTypeSchema=LiteralTypeSchema},48462(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LiteralValueSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class LiteralValueSchema extends _schemaNode().SchemaNode{constructor(location,value){super();this.location=location,this.value=value,this.value=this.value.replace(/^['"]|['"]$/g,"")}toString(){return this.value}toFullSignature(){return this.toString()}toObject(){return{...super.toObject(),value:this.value}}static fromObject(obj){const location=obj.location,value=obj.value;return new LiteralValueSchema(location,value)}}exports.LiteralValueSchema=LiteralValueSchema},59001(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModuleSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
265
|
+
`,result+="}",result}toObject(){return{...super.toObject(),name:this.name,members:this.members.map(member=>member.toObject()),doc:this.doc?.toObject(),signature:this.signature,extendsNodes:this.extendsNodes?.map(node=>node.toObject()),typeParams:this.typeParams}}static fromObject(obj){const location=obj.location,name=obj.name,signature=obj.signature,extendsNodes=obj.extendsNodes?.map(node=>_expressionWithArguments().ExpressionWithTypeArgumentsSchema.fromObject(node)),members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,typeParams=obj.typeParams;return new InterfaceSchema(location,name,signature,extendsNodes,members,doc,typeParams)}}exports.InterfaceSchema=InterfaceSchema},13219(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KeywordTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class KeywordTypeSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toString(){return this.name}toFullSignature(){return this.toString()}toObject(){return{...super.toObject(),name:this.name}}static fromObject(obj){const location=obj.location,name=obj.name;return new KeywordTypeSchema(location,name)}}exports.KeywordTypeSchema=KeywordTypeSchema},5835(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LiteralTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class LiteralTypeSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toObject(){return{...super.toObject(),name:this.name}}toString(){return this.name}toFullSignature(){return this.toString()}static fromObject(obj){const location=obj.location,name=obj.name;return new LiteralTypeSchema(location,name)}}exports.LiteralTypeSchema=LiteralTypeSchema},48462(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LiteralValueSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class LiteralValueSchema extends _schemaNode().SchemaNode{constructor(location,value){super();this.location=location,this.value=value,this.value=this.value.replace(/^['"]|['"]$/g,"")}toString(){return this.value}toFullSignature(){return this.toString()}toObject(){return{...super.toObject(),value:this.value}}static fromObject(obj){const location=obj.location,value=obj.value;return new LiteralValueSchema(location,value)}}exports.LiteralValueSchema=LiteralValueSchema},59001(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModuleSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ModuleSchema extends _schemaNode().SchemaNode{constructor(location,exports2,internals){super();this.location=location,this.exports=exports2,this.internals=internals}getNodes(){return[...this.exports,...this.internals]}flatExportsRecursively(){this.exports=this.exports.reduce((acc,exp)=>exp instanceof ModuleSchema?(exp.flatExportsRecursively(),exp.namespace?[...acc,exp]:[...acc,...exp.exports]):[...acc,exp],[])}toString(options){if(!this.namespace)throw new Error("toString() should not be called on a module without namespace, make sure this.flatExportsRecursively() is called");const boldUnderline=options?.color?_chalk().default.bold.underline:str=>str,exportsStr=this.exports.map(m=>`* ${m.toString(options)}`).join(`
|
|
266
266
|
`);return`${boldUnderline(this.namespace)}
|
|
267
267
|
${exportsStr}`}toFullSignature(options){if(!this.namespace)throw new Error("toFullSignature() should not be called on a module without namespace; make sure this.flatExportsRecursively() is called");const exportsSignatures=this.exports.map(m=>m.toFullSignature(options)).join(`
|
|
268
268
|
`);let signature=`${this.namespace}
|
|
269
269
|
${exportsSignatures}`;return options?.showDocs&&this.doc&&(signature=`${this.doc.toFullSignature()}
|
|
270
|
-
${signature}`),signature}toObject(){return{...super.toObject(),exports:this.exports.map(member=>member.toObject()),internals:this.internals.map(member=>member.toObject()),namespace:this.namespace}}static fromObject(obj){const location=obj.location,exportNodes=(obj.exports||[]).map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),internals=(obj.internals||[]).map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),namespace=obj.namespace,module=new ModuleSchema(location,exportNodes,internals);return module.namespace=namespace,module}static isModuleSchema(node){return"exports"in node&&"internals"in node}}exports.ModuleSchema=ModuleSchema},34759(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NamedTupleSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
270
|
+
${signature}`),signature}toObject(){return{...super.toObject(),exports:this.exports.map(member=>member.toObject()),internals:this.internals.map(member=>member.toObject()),namespace:this.namespace}}static fromObject(obj){const location=obj.location,exportNodes=(obj.exports||[]).map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),internals=(obj.internals||[]).map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),namespace=obj.namespace,module=new ModuleSchema(location,exportNodes,internals);return module.namespace=namespace,module}static isModuleSchema(node){return"exports"in node&&"internals"in node}}exports.ModuleSchema=ModuleSchema},34759(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NamedTupleSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class NamedTupleSchema extends _schemaNode().SchemaNode{constructor(location,type,name){super();this.location=location,this.type=type,this.name=name}getNodes(){return[this.type]}toString(options){return`${this.name}: ${this.type.toString(options)}`}toFullSignature(options){return`${this.name}: ${this.type.toFullSignature(options)}`}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject()}}static fromObject(obj){const location=obj.location,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),name=obj.name;return new NamedTupleSchema(location,type,name)}}exports.NamedTupleSchema=NamedTupleSchema},42791(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ObjectLiteralExpressionSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ObjectLiteralExpressionSchema extends _schemaNode().SchemaNode{constructor(members,location){super();this.members=members,this.location=location}getNodes(){return this.members}toString(options){return`{
|
|
271
271
|
${this.members.map(member=>` ${member.toString(options)}`).join(`
|
|
272
272
|
`)}
|
|
273
273
|
}`}toFullSignature(options){return`{
|
|
@@ -275,17 +275,17 @@ ${this.members.map(member=>member.toFullSignature(options)).join(`,
|
|
|
275
275
|
`).split(`
|
|
276
276
|
`).map(line=>` ${line}`).join(`
|
|
277
277
|
`)}
|
|
278
|
-
}`}toObject(){return{...super.toObject(),members:this.members.map(element=>element.toObject()),location:this.location}}static fromObject(obj){const members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),location=obj.location;return new ObjectLiteralExpressionSchema(members,location)}}exports.ObjectLiteralExpressionSchema=ObjectLiteralExpressionSchema},13166(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParameterSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
279
|
-
`),this.isSpread&&(paramStr+="...");let paramName="";if(this.objectBindingNodes&&this.objectBindingNodes.length>0?paramName+=`{ ${this.objectBindingNodes.map(node=>node.toFullSignature(options)).join(", ")} }`:paramName+=this.name,this.isOptional&&(paramName+="?"),paramStr+=`${paramName}`,this.type&&typeof this.type.toString=="function"){const typeName=this.type.toString();typeName&&(paramStr+=`: ${typeName}`)}return this.defaultValue!==void 0&&(paramStr+=` = ${this.defaultValue}`),paramStr}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject(),isOptional:this.isOptional,defaultValue:this.defaultValue,description:this.description,objectBindingNodes:this.objectBindingNodes?.map(node=>node.toObject()),isSpread:this.isSpread}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),isOptional=obj.isOptional,defaultValue=obj.defaultValue,description=obj.description,isSpread=obj.isSpread,objectBindingNodes=obj.objectBindingNodes?.map(node=>_schemaRegistry().SchemaRegistry.fromObject(node));return new ParameterSchema(location,name,type,isOptional,defaultValue,description,objectBindingNodes,isSpread)}}exports.ParameterSchema=ParameterSchema},40336(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParenthesizedTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
280
|
-
`);const valueStr=this.value.toFullSignature(options);return result+=`${this.name}: ${valueStr}`,result}toObject(){return{...super.toObject(),name:this.name,value:this.value.toObject(),doc:this.doc?.toObject(),location:this.location}}static fromObject(obj){const name=obj.name,value=_schemaRegistry().SchemaRegistry.fromObject(obj.value),location=obj.location,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new PropertyAssignmentSchema(name,value,location,doc)}}exports.PropertyAssignmentSchema=PropertyAssignmentSchema},13069(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SetAccessorSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class SetAccessorSchema extends _schemaNode().SchemaNode{constructor(location,name,param,signature){super();this.location=location,this.name=name,this.signature=signature,this.param=param}getSignature(){return this.signature}toString(){return`set ${_chalk().default.bold(this.name)}(${this.param.toString()})`}toFullSignature(options){const paramStr=this.param.toFullSignature(options);return`set ${this.name}(${paramStr})`}toObject(){return{...super.toObject(),name:this.name,param:this.param.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,param=_parameter().ParameterSchema.fromObject(obj.param),signature=obj.signature;return new SetAccessorSchema(location,name,param,signature)}}exports.SetAccessorSchema=SetAccessorSchema},7199(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TemplateLiteralTypeSpanSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
278
|
+
}`}toObject(){return{...super.toObject(),members:this.members.map(element=>element.toObject()),location:this.location}}static fromObject(obj){const members=obj.members.map(member=>_schemaRegistry().SchemaRegistry.fromObject(member)),location=obj.location;return new ObjectLiteralExpressionSchema(members,location)}}exports.ObjectLiteralExpressionSchema=ObjectLiteralExpressionSchema},13166(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParameterSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ParameterSchema extends _schemaNode().SchemaNode{getNodes(){return[this.type,...this.objectBindingNodes||[]]}constructor(location,name,type,isOptional,defaultValue,description,objectBindingNodes,isSpread=!1){super();this.location=location,this.name=name,this.isOptional=isOptional,this.defaultValue=defaultValue,this.description=description,this.isSpread=isSpread,this.type=type,this.objectBindingNodes=objectBindingNodes}toString(){return`${this.name}${this.isOptional?"?":""}: ${this.type.toString()}`}toFullSignature(options){let paramStr="";options?.showDocs&&this.description&&(paramStr+=`/** ${this.description} */
|
|
279
|
+
`),this.isSpread&&(paramStr+="...");let paramName="";if(this.objectBindingNodes&&this.objectBindingNodes.length>0?paramName+=`{ ${this.objectBindingNodes.map(node=>node.toFullSignature(options)).join(", ")} }`:paramName+=this.name,this.isOptional&&(paramName+="?"),paramStr+=`${paramName}`,this.type&&typeof this.type.toString=="function"){const typeName=this.type.toString();typeName&&(paramStr+=`: ${typeName}`)}return this.defaultValue!==void 0&&(paramStr+=` = ${this.defaultValue}`),paramStr}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject(),isOptional:this.isOptional,defaultValue:this.defaultValue,description:this.description,objectBindingNodes:this.objectBindingNodes?.map(node=>node.toObject()),isSpread:this.isSpread}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),isOptional=obj.isOptional,defaultValue=obj.defaultValue,description=obj.description,isSpread=obj.isSpread,objectBindingNodes=obj.objectBindingNodes?.map(node=>_schemaRegistry().SchemaRegistry.fromObject(node));return new ParameterSchema(location,name,type,isOptional,defaultValue,description,objectBindingNodes,isSpread)}}exports.ParameterSchema=ParameterSchema},40336(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParenthesizedTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class ParenthesizedTypeSchema extends _schemaNode().SchemaNode{constructor(location,type){super();this.location=location,this.type=type}getNodes(){return[this.type]}toString(options){return`(${this.type.toString(options)})`}toFullSignature(options){return`(${this.type.toFullSignature(options)})`}toObject(){return{...super.toObject(),type:this.type.toObject()}}static fromObject(obj){const location=obj.location,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type);return new ParenthesizedTypeSchema(location,type)}}exports.ParenthesizedTypeSchema=ParenthesizedTypeSchema},87352(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertyAssignmentSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}class PropertyAssignmentSchema extends _schemaNode().SchemaNode{constructor(name,value,location,doc){super();this.name=name,this.value=value,this.location=location,this.doc=doc}toString(options){return`${this.name}: ${this.value.toString(options)}`}toFullSignature(options){let result="";options?.showDocs&&this.doc&&(result+=`${this.doc.toFullSignature()}
|
|
280
|
+
`);const valueStr=this.value.toFullSignature(options);return result+=`${this.name}: ${valueStr}`,result}toObject(){return{...super.toObject(),name:this.name,value:this.value.toObject(),doc:this.doc?.toObject(),location:this.location}}static fromObject(obj){const name=obj.name,value=_schemaRegistry().SchemaRegistry.fromObject(obj.value),location=obj.location,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new PropertyAssignmentSchema(name,value,location,doc)}}exports.PropertyAssignmentSchema=PropertyAssignmentSchema},13069(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SetAccessorSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _parameter(){const data=__webpack_require__(13166);return _parameter=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class SetAccessorSchema extends _schemaNode().SchemaNode{constructor(location,name,param,signature){super();this.location=location,this.name=name,this.signature=signature,this.param=param}getSignature(){return this.signature}toString(){return`set ${_chalk().default.bold(this.name)}(${this.param.toString()})`}toFullSignature(options){const paramStr=this.param.toFullSignature(options);return`set ${this.name}(${paramStr})`}toObject(){return{...super.toObject(),name:this.name,param:this.param.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,param=_parameter().ParameterSchema.fromObject(obj.param),signature=obj.signature;return new SetAccessorSchema(location,name,param,signature)}}exports.SetAccessorSchema=SetAccessorSchema},7199(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TemplateLiteralTypeSpanSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TemplateLiteralTypeSpanSchema extends _schemaNode().SchemaNode{constructor(location,literal,type){super();this.location=location,this.literal=literal,this.type=type}getNodes(){return[this.type]}toString(options){return`${this.type.toString(options)} ${this.literal}`}toFullSignature(options){return`${this.type.toFullSignature(options)} ${this.literal}`}toObject(){return{...super.toObject(),literal:this.literal,type:this.type.toObject()}}static fromObject(obj){const location=obj.location,literal=obj.literal,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type);return new TemplateLiteralTypeSpanSchema(location,literal,type)}}exports.TemplateLiteralTypeSpanSchema=TemplateLiteralTypeSpanSchema},49801(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TemplateLiteralTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _templateLiteralTypeSpan(){const data=__webpack_require__(7199);return _templateLiteralTypeSpan=function(){return data},data}class TemplateLiteralTypeSchema extends _schemaNode().SchemaNode{constructor(location,head,templateSpans){super();this.location=location,this.head=head,this.templateSpans=templateSpans}toString(options){const spans=this.templateSpans.map(span=>span.toString(options)).join("");return`${this.head}${spans}`}toFullSignature(options){const spans=this.templateSpans.map(span=>span.toFullSignature(options)).join("");return`\`${this.head}${spans}\``}toObject(){return{...super.toObject(),head:this.head,templateSpans:this.templateSpans.map(span=>span.toObject())}}static fromObject(obj){const location=obj.location,head=obj.head,templateSpans=obj.templateSpans.map(span=>_templateLiteralTypeSpan().TemplateLiteralTypeSpanSchema.fromObject(span));return new TemplateLiteralTypeSchema(location,head,templateSpans)}}exports.TemplateLiteralTypeSchema=TemplateLiteralTypeSchema},89454(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThisTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class ThisTypeSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toString(){return this.name}toFullSignature(){return this.toString()}static fromObject(obj){const location=obj.location,name=obj.name;return new ThisTypeSchema(location,name)}}exports.ThisTypeSchema=ThisTypeSchema},94032(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TupleTypeSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TupleTypeSchema extends _schemaNode().SchemaNode{constructor(location,elements){super();this.location=location,this.elements=elements}toString(options){return`[${this.elements.map(elem=>elem.toString(options)).join(", ")}]`}toFullSignature(options){return`[${this.elements.map(elem=>elem.toFullSignature(options)).join(", ")}]`}toObject(){return{...super.toObject(),elements:this.elements.map(elem=>elem.toObject())}}static fromObject(obj){const location=obj.location,elements=obj.elements.map(elem=>_schemaRegistry().SchemaRegistry.fromObject(elem));return new TupleTypeSchema(location,elements)}}exports.TupleTypeSchema=TupleTypeSchema},17201(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeArraySchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypeArraySchema extends _schemaNode().SchemaNode{constructor(location,type){super();this.location=location,this.type=type}getNodes(){return[this.type]}toString(options){return`${this.type.toString(options)}[]`}toFullSignature(options){return`${this.type.toFullSignature(options)}[]`}toObject(){return{...super.toObject(),type:this.type.toObject()}}static fromObject(obj){const location=obj.location,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type);return new TypeArraySchema(location,type)}}exports.TypeArraySchema=TypeArraySchema},55895(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeIntersectionSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypeIntersectionSchema extends _schemaNode().SchemaNode{constructor(location,types){super();this.location=location,this.types=types}getNodes(){return this.types}toString(options){return`${this.types.map(type=>type.toString(options)).join(" & ")}`}toFullSignature(options){return this.types.map(type=>type.toFullSignature(options)).join(" & ")}toObject(){return{...super.toObject(),types:this.types.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,types=obj.types.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeIntersectionSchema(location,types)}}exports.TypeIntersectionSchema=TypeIntersectionSchema},50011(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeLiteralSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypeLiteralSchema extends _schemaNode().SchemaNode{constructor(location,members){super();this.location=location,this.members=members}getNodes(){return this.members}toString(){return`{ ${this.members.map(type=>type.toString()).join("; ")} }`}toFullSignature(options){const indent=level2=>" ".repeat(level2);let signature="";return signature+=`{
|
|
281
281
|
`,this.members.forEach(member=>{signature+=member.toFullSignature(options).split(`
|
|
282
282
|
`).map(line=>indent(0+1)+line).join(`
|
|
283
283
|
`)+`
|
|
284
|
-
`}),signature+=indent(0)+"}",signature}toObject(){return{...super.toObject(),members:this.members.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,members=obj.members.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeLiteralSchema(location,members)}}exports.TypeLiteralSchema=TypeLiteralSchema},53254(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeOperatorSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
285
|
-
${signature}`),signature}toObject(){return{...super.toObject(),name:this.name,type:this.type?.toObject(),hasAssertsModifier:this.hasAssertsModifier}}static fromObject(obj){const location=obj.location,name=obj.name,type=obj.type?_schemaRegistry().SchemaRegistry.fromObject(obj.type):void 0,hasAssertsModifier=obj.hasAssertsModifier;return new TypePredicateSchema(location,name,type,hasAssertsModifier)}}exports.TypePredicateSchema=TypePredicateSchema},87576(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeQuerySchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
286
|
-
${signature}`),signature}isFromThisComponent(){return!this.componentId&&!this.packageName}isInternalReference(){return!!this.internalFilePath&&this.isFromThisComponent()}isExported(){return this.isFromThisComponent()&&!this.isInternalReference()}toObject(){return{...super.toObject(),name:this.name,componentId:this.componentId?this.componentId.toObject():void 0,packageName:this.packageName,internalFilePath:this.internalFilePath,sourceFilePath:this.sourceFilePath,typeArgs:this.typeArgs?.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,name=obj.name;let componentId;try{componentId=obj.componentId?_component().ComponentID.fromObject(obj.componentId):void 0}catch{componentId=void 0}const packageName=obj.packageName,internalFilePath=obj.internalFilePath,sourceFilePath=obj.sourceFilePath,typeArgs=obj.typeArgs?.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeRefSchema(location,name,componentId,packageName,internalFilePath,sourceFilePath).withTypeArgs(typeArgs)}static isTypeRefSchema(node){return node.__schema==="TypeRefSchema"}}exports.TypeRefSchema=TypeRefSchema},51835(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeUnionSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
287
|
-
${signature}`),signature}getNodes(){return this.types}toObject(){return{...super.toObject(),types:this.types.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,types=obj.types.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeUnionSchema(location,types)}}exports.TypeUnionSchema=TypeUnionSchema},79109(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
288
|
-
${signature}`),signature}getNodes(){return[this.type]}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),signature=obj.signature,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new TypeSchema(location,name,type,signature,doc)}}exports.TypeSchema=TypeSchema},1734(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnImplementedSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class UnImplementedSchema extends _schemaNode().SchemaNode{displaySchemaName="Unimplemented Schemas";constructor(location,name,type){super();this.location=location,this.name=name,this.type=type}toString(){return`<<unimplemented schema ${this.name} of type ${this.type}>>`}toFullSignature(){return`<<unimplemented schema ${this.name} of type ${this.type}>>`}toObject(){return{...super.toObject(),type:this.type}}static fromObject(obj){const location=obj.location,name=obj.name,type=obj.type;return new UnImplementedSchema(location,name,type)}}exports.UnImplementedSchema=UnImplementedSchema},23775(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnknownSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class UnknownSchema extends _schemaNode().SchemaNode{constructor(location,name,schemaObj){super();this.location=location,this.name=name,this.schemaObj=schemaObj}toString(){return`<<unknown schema ${this.name}>>`}toFullSignature(){return this.toString()}toObject(){return{...super.toObject(),schemaObj:this.schemaObj}}static fromObject(obj){const location=obj.location,name=obj.name,schemaObj=obj.schemaObj;return new UnknownSchema(location,name,schemaObj)}}exports.UnknownSchema=UnknownSchema},1580(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnresolvedSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class UnresolvedSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toString(){return this.name}toFullSignature(){return this.toString()}toObject(){return super.toObject()}static fromObject(obj){const location=obj.location,name=obj.name;return new UnresolvedSchema(location,name)}}exports.UnresolvedSchema=UnresolvedSchema},99005(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableLikeSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(
|
|
284
|
+
`}),signature+=indent(0)+"}",signature}toObject(){return{...super.toObject(),members:this.members.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,members=obj.members.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeLiteralSchema(location,members)}}exports.TypeLiteralSchema=TypeLiteralSchema},53254(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeOperatorSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypeOperatorSchema extends _schemaNode().SchemaNode{constructor(location,name,type){super();this.location=location,this.name=name,this.type=type}getNodes(){return[this.type]}toString(options){return`${this.name} ${this.type.toString(options)}`}toFullSignature(options){return`${this.name} ${this.type.toFullSignature(options)}`}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject()}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type);return new TypeOperatorSchema(location,name,type)}}exports.TypeOperatorSchema=TypeOperatorSchema},47017(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypePredicateSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypePredicateSchema extends _schemaNode().SchemaNode{constructor(location,name,type,hasAssertsModifier=!1){super();this.location=location,this.name=name,this.hasAssertsModifier=hasAssertsModifier,this.type=type}toString(options){const assertsKeyword=this.hasAssertsModifier?"asserts ":"",typeStr=this.type?` is ${this.type.toString(options)}`:"";return assertsKeyword+this.name+typeStr}toFullSignature(options){const assertsKeyword=this.hasAssertsModifier?"asserts ":"",typeSignature=this.type?` is ${this.type.toFullSignature(options)}`:"";let signature=`${assertsKeyword}${this.name}${typeSignature}`;return options?.showDocs&&this.doc&&(signature=`${this.doc.toFullSignature()}
|
|
285
|
+
${signature}`),signature}toObject(){return{...super.toObject(),name:this.name,type:this.type?.toObject(),hasAssertsModifier:this.hasAssertsModifier}}static fromObject(obj){const location=obj.location,name=obj.name,type=obj.type?_schemaRegistry().SchemaRegistry.fromObject(obj.type):void 0,hasAssertsModifier=obj.hasAssertsModifier;return new TypePredicateSchema(location,name,type,hasAssertsModifier)}}exports.TypePredicateSchema=TypePredicateSchema},87576(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeQuerySchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypeQuerySchema extends _schemaNode().SchemaNode{constructor(location,type,signature){super();this.location=location,this.signature=signature,this.type=type}getNodes(){return[this.type]}getSignature(){return this.signature}toString(options){return`typeof ${this.type.toString(options)}`}toFullSignature(options){return`typeof ${this.type.toFullSignature(options)}`}toObject(){return{...super.toObject(),type:this.type.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),signature=obj.signature;return new TypeQuerySchema(location,type,signature)}}exports.TypeQuerySchema=TypeQuerySchema},50693(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeRefSchema=void 0;function _component(){const data=__webpack_require__(30266);return _component=function(){return data},data}function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TypeRefSchema extends _schemaNode().SchemaNode{constructor(location,name,componentId,packageName,internalFilePath,sourceFilePath){super();this.location=location,this.name=name,this.packageName=packageName,this.internalFilePath=internalFilePath,this.sourceFilePath=sourceFilePath,this.componentId=componentId}getNodes(){return this.typeArgs||[]}withTypeArgs(typeArgs){return this.typeArgs=typeArgs,this}toString(options){const name=this.nameToString(options);if(!this.typeArgs)return name;const args=this.typeArgs.map(arg=>arg.toString(options)).join(", ");return`${name}<${args}>`}nameToString(options){const dim=options?.color?_chalk().default.dim:str=>str;return this.componentId?`${dim(`(component: ${this.componentId.toStringWithoutVersion()})`)} ${this.name}`:this.packageName?`${dim(`(package: ${this.packageName})`)} ${this.name}`:this.name}toFullSignature(options){let signature=this.name;return this.typeArgs&&this.typeArgs.length>0&&(signature+=`<${this.typeArgs.map(arg=>arg.toFullSignature(options)).join(", ")}>`),options?.showDocs&&this.doc&&(signature=`${this.doc.toFullSignature()}
|
|
286
|
+
${signature}`),signature}isFromThisComponent(){return!this.componentId&&!this.packageName}isInternalReference(){return!!this.internalFilePath&&this.isFromThisComponent()}isExported(){return this.isFromThisComponent()&&!this.isInternalReference()}toObject(){return{...super.toObject(),name:this.name,componentId:this.componentId?this.componentId.toObject():void 0,packageName:this.packageName,internalFilePath:this.internalFilePath,sourceFilePath:this.sourceFilePath,typeArgs:this.typeArgs?.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,name=obj.name;let componentId;try{componentId=obj.componentId?_component().ComponentID.fromObject(obj.componentId):void 0}catch{componentId=void 0}const packageName=obj.packageName,internalFilePath=obj.internalFilePath,sourceFilePath=obj.sourceFilePath,typeArgs=obj.typeArgs?.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeRefSchema(location,name,componentId,packageName,internalFilePath,sourceFilePath).withTypeArgs(typeArgs)}static isTypeRefSchema(node){return node.__schema==="TypeRefSchema"}}exports.TypeRefSchema=TypeRefSchema},51835(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeUnionSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}class TypeUnionSchema extends _schemaNode().SchemaNode{constructor(location,types){super();this.location=location,this.types=types}toString(options){return`${this.types.map(type=>type.toString(options)).join(" | ")}`}toFullSignature(options){let signature=this.types.map(type=>type.toFullSignature(options)).join(" | ");return options?.showDocs&&this.doc&&(signature=`${this.doc.toFullSignature()}
|
|
287
|
+
${signature}`),signature}getNodes(){return this.types}toObject(){return{...super.toObject(),types:this.types.map(type=>type.toObject())}}static fromObject(obj){const location=obj.location,types=obj.types.map(type=>_schemaRegistry().SchemaRegistry.fromObject(type));return new TypeUnionSchema(location,types)}}exports.TypeUnionSchema=TypeUnionSchema},79109(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TypeSchema extends _schemaNode().SchemaNode{constructor(location,name,type,signature,doc){super();this.location=location,this.name=name,this.signature=signature,this.type=type,this.doc=doc}toString(options){return`type ${(options?.color?_chalk().default.bold:str=>str)(this.name)}: ${this.type.toString(options)}`}toFullSignature(options){const typeSignature=this.type.toFullSignature(options);let signature=`type ${this.name}: ${typeSignature}`;return options?.showDocs&&this.doc&&(signature=`${this.doc.toFullSignature()}
|
|
288
|
+
${signature}`),signature}getNodes(){return[this.type]}toObject(){return{...super.toObject(),name:this.name,type:this.type.toObject(),signature:this.signature}}static fromObject(obj){const location=obj.location,name=obj.name,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),signature=obj.signature,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0;return new TypeSchema(location,name,type,signature,doc)}}exports.TypeSchema=TypeSchema},1734(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnImplementedSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class UnImplementedSchema extends _schemaNode().SchemaNode{displaySchemaName="Unimplemented Schemas";constructor(location,name,type){super();this.location=location,this.name=name,this.type=type}toString(){return`<<unimplemented schema ${this.name} of type ${this.type}>>`}toFullSignature(){return`<<unimplemented schema ${this.name} of type ${this.type}>>`}toObject(){return{...super.toObject(),type:this.type}}static fromObject(obj){const location=obj.location,name=obj.name,type=obj.type;return new UnImplementedSchema(location,name,type)}}exports.UnImplementedSchema=UnImplementedSchema},23775(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnknownSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class UnknownSchema extends _schemaNode().SchemaNode{constructor(location,name,schemaObj){super();this.location=location,this.name=name,this.schemaObj=schemaObj}toString(){return`<<unknown schema ${this.name}>>`}toFullSignature(){return this.toString()}toObject(){return{...super.toObject(),schemaObj:this.schemaObj}}static fromObject(obj){const location=obj.location,name=obj.name,schemaObj=obj.schemaObj;return new UnknownSchema(location,name,schemaObj)}}exports.UnknownSchema=UnknownSchema},1580(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnresolvedSchema=void 0;function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}class UnresolvedSchema extends _schemaNode().SchemaNode{constructor(location,name){super();this.location=location,this.name=name}toString(){return this.name}toFullSignature(){return this.toString()}toObject(){return super.toObject()}static fromObject(obj){const location=obj.location,name=obj.name;return new UnresolvedSchema(location,name)}}exports.UnresolvedSchema=UnresolvedSchema},99005(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableLikeSchema=void 0;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _schemaNode(){const data=__webpack_require__(80700);return _schemaNode=function(){return data},data}function _docs(){const data=__webpack_require__(22813);return _docs=function(){return data},data}function _schemaRegistry(){const data=__webpack_require__(61279);return _schemaRegistry=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class VariableLikeSchema extends _schemaNode().SchemaNode{displaySchemaName="Variables";constructor(location,name,signature,type,isOptional,doc,defaultValue){super();this.location=location,this.name=name,this.signature=signature,this.isOptional=isOptional,this.defaultValue=defaultValue,this.type=type,this.doc=doc}getNodes(){return[this.type]}toString(options){return`${(options?.color?_chalk().default.bold:str=>str)(this.name)}${this.isOptional?"?":""}: ${this.type.toString(options)}`}toFullSignature(options){const namePart=`${this.name}${this.isOptional?"?":""}`,typeSignature=this.type.toFullSignature(options);let signature=`${namePart}: ${typeSignature}`;return this.defaultValue!==void 0&&(signature+=` = ${this.defaultValue}`),options?.showDocs&&this.doc&&(signature=`${this.doc.toFullSignature()}
|
|
289
289
|
${signature}`),signature}toObject(){return{...super.toObject(),name:this.name,signature:this.signature,type:this.type.toObject(),isOptional:this.isOptional,doc:this.doc?.toObject(),defaultValue:this.defaultValue}}static fromObject(obj){const location=obj.location,name=obj.name,signature=obj.signature,type=_schemaRegistry().SchemaRegistry.fromObject(obj.type),isOptional=obj.isOptional,doc=obj.doc?_docs().DocSchema.fromObject(obj.doc):void 0,defaultValue=obj.defaultValue;return new VariableLikeSchema(location,name,signature,type,isOptional,doc,defaultValue)}}exports.VariableLikeSchema=VariableLikeSchema},68717(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UnknownSchemaFactory=void 0;class UnknownSchemaFactory{static create(location,name,schemaObj){const{UnknownSchema}=__webpack_require__(23775);return new UnknownSchema(location,name,schemaObj)}}exports.UnknownSchemaFactory=UnknownSchemaFactory},78740(__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]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(76975),exports),__exportStar(__webpack_require__(46346),exports),__exportStar(__webpack_require__(15659),exports)},76975(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderContext=void 0;const react_1=__webpack_require__(12888),defaultLoaderApi={isActive:()=>!1,update:()=>!1,remove:()=>!1};exports.LoaderContext=(0,react_1.createContext)(defaultLoaderApi)},46346(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLoaderApi=void 0;const react_1=__webpack_require__(12888);function useLoaderApi(){const{current:loaders}=(0,react_1.useRef)(new Set),[isLoading,setIsLoading]=(0,react_1.useState)(!1),reevaluate=(0,react_1.useCallback)(()=>{setIsLoading(loaders.size>0)},[loaders]);return[(0,react_1.useMemo)(()=>({isActive:id=>loaders.has(id),update:(id,value)=>{const res=value?!!loaders.add(id):loaders.delete(id);return reevaluate(),res},remove:id=>{const res=loaders.delete(id);return reevaluate(),res}}),[loaders,reevaluate]),isLoading]}exports.useLoaderApi=useLoaderApi},15659(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLoader=void 0;const react_1=__webpack_require__(12888),uuid_1=__webpack_require__(18037),loader_context_1=__webpack_require__(76975);function useLoader(loading){const[id]=(0,react_1.useState)(()=>(0,uuid_1.v1)()),ctx=(0,react_1.useContext)(loader_context_1.LoaderContext);(0,react_1.useEffect)(()=>(ctx.update(id,loading),()=>{ctx.remove(id)}),[loading,ctx,id])}exports.useLoader=useLoader},73356(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.useDataQuery=void 0;var use_data_query_1=__webpack_require__(58573);Object.defineProperty(exports,"useDataQuery",{enumerable:!0,get:function(){return use_data_query_1.useDataQuery}})},58573(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDataQuery=void 0;const react_1=__webpack_require__(12888),client_1=__webpack_require__(6083),ui_foundation_ui_notifications_notification_context_1=__webpack_require__(33319),ui_foundation_ui_global_loader_1=__webpack_require__(78740);function useDataQuery(query,options){const res=(0,client_1.useQuery)(query,options),notifications=(0,react_1.useContext)(ui_foundation_ui_notifications_notification_context_1.NotificationContext),{loading,error}=res;return(0,ui_foundation_ui_global_loader_1.useLoader)(loading),error&¬ifications.error(apolloErrorToString(error)),res}exports.useDataQuery=useDataQuery;function apolloErrorToString(error){return error.toString()}},33294(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.useIsMobile=void 0;var use_is_mobile_1=__webpack_require__(49817);Object.defineProperty(exports,"useIsMobile",{enumerable:!0,get:function(){return use_is_mobile_1.useIsMobile}})},49817(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useIsMobile=useIsMobile;const ui_foundation_ui_hooks_use_user_agent_1=__webpack_require__(6750);function useIsMobile(){var _a;const deviceType=(_a=(0,ui_foundation_ui_hooks_use_user_agent_1.useUserAgent)())===null||_a===void 0?void 0:_a.getDevice().type;return deviceType==="tablet"||deviceType==="mobile"}},53663(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useIsMobile=void 0;var use_is_mobile_1=__webpack_require__(63308);Object.defineProperty(exports,"useIsMobile",{enumerable:!0,get:function(){return use_is_mobile_1.useIsMobile}})},63308(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useIsMobile=useIsMobile;const ui_foundation_ui_hooks_use_user_agent_1=__webpack_require__(65097);function useIsMobile(){var _a;const deviceType=(_a=(0,ui_foundation_ui_hooks_use_user_agent_1.useUserAgent)())===null||_a===void 0?void 0:_a.getDevice().type;return deviceType==="tablet"||deviceType==="mobile"}},6750(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.useUserAgent=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=void 0;var use_user_agent_1=__webpack_require__(40525);__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.SSRBrowserProvider}},__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.ssrBrowserContext}},__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.userAgentContext}},__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.UserAgentProvider}},Object.defineProperty(exports,"useUserAgent",{enumerable:!0,get:function(){return use_user_agent_1.useUserAgent}})},40525(__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.SSRBrowserProvider=exports.ssrBrowserContext=exports.UserAgentProvider=exports.userAgentContext=void 0,exports.useUserAgent=useUserAgent;const react_1=__webpack_require__(12888),ua_parser_js_1=__importDefault(__webpack_require__(1210));exports.userAgentContext=(0,react_1.createContext)(void 0),exports.UserAgentProvider=exports.userAgentContext.Provider,exports.ssrBrowserContext=(0,react_1.createContext)(void 0),exports.SSRBrowserProvider=exports.ssrBrowserContext.Provider;function useUserAgent(){const browser=(0,react_1.useContext)(exports.ssrBrowserContext);return browser?new ua_parser_js_1.default(browser.headers["user-agent"]):new ua_parser_js_1.default(window.navigator.userAgent)}},65097(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.useUserAgent=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=void 0;var use_user_agent_1=__webpack_require__(94636);__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.SSRBrowserProvider}},__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.ssrBrowserContext}},__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.userAgentContext}},__webpack_unused_export__={enumerable:!0,get:function(){return use_user_agent_1.UserAgentProvider}},Object.defineProperty(exports,"useUserAgent",{enumerable:!0,get:function(){return use_user_agent_1.useUserAgent}})},94636(__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.SSRBrowserProvider=exports.ssrBrowserContext=exports.UserAgentProvider=exports.userAgentContext=void 0,exports.useUserAgent=useUserAgent;const react_1=__webpack_require__(12888),ua_parser_js_1=__importDefault(__webpack_require__(1210));exports.userAgentContext=(0,react_1.createContext)(void 0),exports.UserAgentProvider=exports.userAgentContext.Provider,exports.ssrBrowserContext=(0,react_1.createContext)(void 0),exports.SSRBrowserProvider=exports.ssrBrowserContext.Provider;function useUserAgent(){const browser=(0,react_1.useContext)(exports.ssrBrowserContext);return browser?new ua_parser_js_1.default(browser.headers["user-agent"]):new ua_parser_js_1.default(window.navigator.userAgent)}},5286(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.isBrowser=void 0;var is_browser_1=__webpack_require__(86569);Object.defineProperty(exports,"isBrowser",{enumerable:!0,get:function(){return is_browser_1.isBrowser}})},86569(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBrowser=void 0;const isBrowser=typeof window<"u";exports.isBrowser=isBrowser},26390(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=exports.KeySequence=void 0;var keycap_1=__webpack_require__(97601);Object.defineProperty(exports,"KeySequence",{enumerable:!0,get:function(){return keycap_1.KeySequence}}),__webpack_unused_export__={enumerable:!0,get:function(){return keycap_1.KeyCombo}},__webpack_unused_export__={enumerable:!0,get:function(){return keycap_1.Keycap}}},870(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.prettifyKey=void 0;const ui_foundation_ui_is_browser_1=__webpack_require__(5286),macKeySymbols={shift:"\u21E7",ctrl:"\u2303",alt:"\u2325",command:"\u2318",meta:"\u2318",mod:"\u2318",backspace:"\u232B",tab:"\u21E5",enter:"\u21A9",return:"\u21A9",capslock:"\u21EA",esc:"\u238B",escape:"\u238B",space:"\u2423",pageup:"\u21DE",pagedown:"\u21DF",end:"end",home:"home",left:"\u2190",up:"\u2191",right:"\u2192",down:"\u2193",del:"\u2326",ins:"insert",plus:"+"},winKeySymbols={shift:"shift",ctrl:"ctrl",alt:"alt",meta:"win",mod:"ctrl",backspace:"backspace",tab:"tab",enter:"enter",return:"enter",capslock:"caps lock",esc:"Esc",escape:"Esc",space:"\u2423",pageup:"pgUp",pagedown:"pgDown",end:"end",home:"home",left:"\u2190",up:"\u2191",right:"\u2192",down:"\u2193",del:"del",ins:"insert",plus:"+"},macRegex=/Mac|iPod|iPhone|iPad/;function prettifyKey(key){if(typeof key!="string")return key;const lib=!ui_foundation_ui_is_browser_1.isBrowser||macRegex.test(window.navigator.platform)?macKeySymbols:winKeySymbols;return key in lib?lib[key]:key}exports.prettifyKey=prettifyKey},97601(__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.Keycap=exports.KeyCombo=exports.KeySequence=void 0;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),key_module_scss_1=__importDefault(__webpack_require__(34784)),key_characters_1=__webpack_require__(870);function KeySequence(_a){var{children,className}=_a,rest=__rest(_a,["children","className"]);if(!children)return null;const content=(0,react_1.useMemo)(()=>{const mapped=children.split(" ").map(x=>x.trim()).filter(x=>!!x).map((combo,idx)=>react_1.default.createElement(KeyCombo,{key:idx},combo));return insertBetween(mapped,idx=>react_1.default.createElement(Then,{key:`then-sep_${idx}`}))},[children]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(key_module_scss_1.default.keySequence,className)}),content)}exports.KeySequence=KeySequence;function KeyCombo(_a){var{children,className}=_a,rest=__rest(_a,["children","className"]);if(!children)return null;const split=children.split("+").map(x=>x.trim());return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(className,key_module_scss_1.default.keyCombo)}),split.map((x,idx)=>react_1.default.createElement(Keycap,{key:idx},x)))}exports.KeyCombo=KeyCombo;function Keycap(_a){var{className,children}=_a,rest=__rest(_a,["className","children"]);const prettyKey=(0,key_characters_1.prettifyKey)(children);return react_1.default.createElement("kbd",Object.assign({},rest,{className:(0,classnames_1.default)(className,key_module_scss_1.default.keycap)}),prettyKey)}exports.Keycap=Keycap;function insertBetween(arr,toInsert){const res=[];return arr.forEach((item,idx)=>{res.push(item),res.push(toInsert(idx))}),res.pop(),res}function Then(){return react_1.default.createElement("span",{className:key_module_scss_1.default.thenSep},"then")}},21081(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MainDropdown=void 0;var main_dropdown_1=__webpack_require__(21888);Object.defineProperty(exports,"MainDropdown",{enumerable:!0,get:function(){return main_dropdown_1.MainDropdown}})},21888(__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.MainDropdown=MainDropdown;const react_1=__importDefault(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),evangelist_elements_icon_1=__webpack_require__(9502),evangelist_surfaces_dropdown_1=__webpack_require__(57699),lodash_1=__webpack_require__(46746),ui_foundation_ui_keycap_1=__webpack_require__(26390),main_dropdown_module_scss_1=__importDefault(__webpack_require__(16707));function MainDropdown(_a){var{menuItems,className}=_a,rest=__rest(_a,["menuItems","className"]);return!menuItems||(0,lodash_1.isEmpty)(menuItems)?null:react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(main_dropdown_module_scss_1.default.mainDropdown,className)}),react_1.default.createElement(evangelist_surfaces_dropdown_1.Dropdown,{dropClass:main_dropdown_module_scss_1.default.menu,position:"bottom",placeholder:"",clickOutside:!0,PlaceholderComponent:()=>react_1.default.createElement("div",{className:main_dropdown_module_scss_1.default.iconAnchor},react_1.default.createElement(evangelist_elements_icon_1.Icon,{className:(0,classnames_1.default)(main_dropdown_module_scss_1.default.icon),of:"more"}))},react_1.default.createElement("div",null,Object.keys(menuItems).map((category,index)=>react_1.default.createElement(MenuBlock,{key:index,title:category},menuItems[category].map(item=>item&&react_1.default.createElement(Line,{key:item.keyChar,lineTitle:item.title,keyChar:item.keyChar,onClick:item.handler})))))))}function Line(_a){var{lineTitle,keyChar,onClick}=_a,rest=__rest(_a,["lineTitle","keyChar","onClick"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(main_dropdown_module_scss_1.default.line),onClick}),react_1.default.createElement("div",null,lineTitle),keyChar&&react_1.default.createElement("pre",null,react_1.default.createElement(ui_foundation_ui_keycap_1.KeySequence,null,keyChar)))}function MenuBlock({title,children}){return react_1.default.createElement("div",{className:(0,classnames_1.default)(main_dropdown_module_scss_1.default.menuBlock)},react_1.default.createElement("div",{className:main_dropdown_module_scss_1.default.title},title),children)}},75216(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MenuWidgetIcon=void 0;var menu_widget_icon_1=__webpack_require__(90);Object.defineProperty(exports,"MenuWidgetIcon",{enumerable:!0,get:function(){return menu_widget_icon_1.MenuWidgetIcon}})},90(__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.MenuWidgetIcon=void 0;const react_1=__importDefault(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),evangelist_elements_icon_1=__webpack_require__(9502),design_ui_tooltip_1=__webpack_require__(32207),menu_widget_icon_module_scss_1=__importDefault(__webpack_require__(71225));function MenuWidgetIcon(_a){var{tooltipContent,icon,className}=_a,rest=__rest(_a,["tooltipContent","icon","className"]);return react_1.default.createElement(design_ui_tooltip_1.Tooltip,{placement:"bottom",offset:[0,15],content:tooltipContent},react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(menu_widget_icon_module_scss_1.default.widgetMenuIcon,className)}),react_1.default.createElement(evangelist_elements_icon_1.Icon,{of:icon,className:menu_widget_icon_module_scss_1.default.icon})))}exports.MenuWidgetIcon=MenuWidgetIcon},33319(__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]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(45006),exports)},45006(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNotifications=exports.NotificationContext=void 0;const react_1=__webpack_require__(12888),DefaultNotificationApi={add:()=>"",log:()=>"",error:()=>"",dismiss:()=>{},clear:()=>{}};exports.NotificationContext=(0,react_1.createContext)(DefaultNotificationApi);const useNotifications=()=>(0,react_1.useContext)(exports.NotificationContext);exports.useNotifications=useNotifications},55786(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{useQuery:()=>useQuery});var dist=__webpack_require__(19304);function useQuery(){const{search}=(0,dist.useLocation)()||{search:"/"};return new URLSearchParams(search)}},73036(__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.linkStyles=void 0;const bottom_link_module_scss_1=__importDefault(__webpack_require__(28713));exports.linkStyles=bottom_link_module_scss_1.default.link},46431(__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(){var ownKeys=function(o){return ownKeys=Object.getOwnPropertyNames||function(o2){var ar=[];for(var k in o2)Object.prototype.hasOwnProperty.call(o2,k)&&(ar[ar.length]=k);return ar},ownKeys(o)};return function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k=ownKeys(mod),i=0;i<k.length;i++)k[i]!=="default"&&__createBinding(result,mod,k[i]);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.UseBoxDropdown=UseBoxDropdown;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(97500)),evangelist_surfaces_dropdown_1=__webpack_require__(57699),evangelist_elements_icon_1=__webpack_require__(9502),dropdown_module_scss_1=__importDefault(__webpack_require__(44566));function UseBoxDropdown(_a){var{className,placeholderClass,Menu,actionName,actionIcon,dropClass}=_a,rest=__rest(_a,["className","placeholderClass","Menu","actionName","actionIcon","dropClass"]);const[key,setKey]=(0,react_1.useState)(0),DropdownMenu=react_1.default.cloneElement(Menu,{key});return react_1.default.createElement(evangelist_surfaces_dropdown_1.Dropdown,Object.assign({className:(0,classnames_1.default)(dropdown_module_scss_1.default.dropdown,className)},rest,{onChange:(_e,open)=>open&&setKey(x=>x+1),dropClass:(0,classnames_1.default)(dropdown_module_scss_1.default.menu,dropClass),placeholder:react_1.default.createElement(Placeholder,{actionName,actionIcon,className:placeholderClass}),clickToggles:!1,clickPlaceholderToggles:!0}),DropdownMenu)}function Placeholder(_a){var{actionName="Use",className,actionIcon="package"}=_a,rest=__rest(_a,["actionName","className","actionIcon"]);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(dropdown_module_scss_1.default.placeholder,className)},rest),react_1.default.createElement(evangelist_elements_icon_1.Icon,{of:actionIcon}),react_1.default.createElement("div",{className:dropdown_module_scss_1.default.content},actionName),react_1.default.createElement(evangelist_elements_icon_1.Icon,{className:dropdown_module_scss_1.default.content,of:"fat-arrow-down"}))}},54664(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UseBoxDropdown=void 0;var dropdown_1=__webpack_require__(46431);Object.defineProperty(exports,"UseBoxDropdown",{enumerable:!0,get:function(){return dropdown_1.UseBoxDropdown}})},29720(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Import:()=>Import,Install:()=>Install,Menu:()=>Menu,Registry:()=>Registry});var jsx_runtime=__webpack_require__(11684),react=__webpack_require__(12888),classnames=__webpack_require__(14487),classnames_default=__webpack_require__.n(classnames),dist=__webpack_require__(9502),lodash_orderby=__webpack_require__(23203),lodash_orderby_default=__webpack_require__.n(lodash_orderby),lodash_flatten=__webpack_require__(47065),lodash_flatten_default=__webpack_require__.n(lodash_flatten),ui_foundation_ui_use_box_tab_dist=__webpack_require__(77210);const menu_module={navZIndex:"100",paneSplitterZIndex:"101",topBarZIndex:"102",modalZIndex:"5000",highlighterZIndex:"15500",container:"menu_container__N55jT",top:"menu_top__LWGXF",title:"menu_title__Nm1k9",drawer:"menu_drawer__EJ9Ho",tabs:"menu_tabs__GJMHi",registry:"menu_registry__d-8IT",importContent:"menu_importContent__ITxgO",bottom:"menu_bottom__0227o",disabled:"menu_disabled__X2N8-",warnIcon:"menu_warnIcon__iz5L8",copyBox:"menu_copyBox__4ALR7"};function Menu({methods,componentName,...rest}){const[activeTab,setActiveTab]=(0,react.useState)(0),OrderedMethods=(0,react.useMemo)(()=>lodash_orderby_default()(lodash_flatten_default()(methods),["order"]),[methods]),{Component}=OrderedMethods[activeTab]||{};return(0,jsx_runtime.jsxs)("div",{...rest,className:classnames_default()(rest.className,menu_module.container),children:[(0,jsx_runtime.jsx)("div",{className:menu_module.top,children:(0,jsx_runtime.jsxs)("div",{className:menu_module.title,children:[(0,jsx_runtime.jsx)(dist.Icon,{of:"terminal"}),(0,jsx_runtime.jsx)("span",{children:`Use ${componentName}`})]})}),(0,jsx_runtime.jsx)("div",{className:menu_module.tabs,children:OrderedMethods.map(({Title},index)=>(0,jsx_runtime.jsx)(ui_foundation_ui_use_box_tab_dist.Tab,{isActive:activeTab===index,onClick:()=>setActiveTab(index),children:Title},index))}),Component]})}var ui_foundation_ui_use_box_tab_content_dist=__webpack_require__(1412),documenter_content_documentation_links_dist=__webpack_require__(37191),documenter_ui_copy_box_dist=__webpack_require__(47356),base_react_navigation_link_dist=__webpack_require__(19304),ui_foundation_ui_use_box_bottom_link_dist=__webpack_require__(73036);const bit_info_module={moreInfo:"bit-info_moreInfo__ZfKuY",copyBox:"bit-info_copyBox__P7eyH"};function BitInfo({...rest}){return(0,jsx_runtime.jsx)("div",{...rest,children:(0,jsx_runtime.jsxs)(ui_foundation_ui_use_box_tab_content_dist.TabContent,{className:bit_info_module.moreInfo,bottom:(0,jsx_runtime.jsxs)(base_react_navigation_link_dist.Link,{external:!0,href:documenter_content_documentation_links_dist.yJ.installBit,className:ui_foundation_ui_use_box_bottom_link_dist.linkStyles,children:[(0,jsx_runtime.jsx)(dist.Icon,{of:"information-sign"}),(0,jsx_runtime.jsx)("span",{children:"Learn more"})]}),children:[(0,jsx_runtime.jsx)("div",{children:"Install bit"}),(0,jsx_runtime.jsx)(documenter_ui_copy_box_dist.CopyBox,{className:bit_info_module.copyBox,children:"npx @teambit/bvm install"})]})})}var design_ui_tooltip_dist=__webpack_require__(18289);function TooltipCopybox({content,...rest}){return(0,jsx_runtime.jsx)(design_ui_tooltip_dist.m_,{...rest,content,placement:"bottom",maxWidth:"",breakline:!0,children:(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(documenter_ui_copy_box_dist.CopyBox,{className:menu_module.copyBox,children:content})})})}function Import({componentId,packageName,componentName,showInstallMethod=!0,...rest}){return(0,jsx_runtime.jsx)(ui_foundation_ui_use_box_tab_content_dist.z,{...rest,content:(0,jsx_runtime.jsxs)("div",{className:menu_module.importContent,children:[(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("div",{className:classnames_default()(!showInstallMethod&&menu_module.disabled),children:[!showInstallMethod&&(0,jsx_runtime.jsx)(dist.Icon,{className:menu_module.warnIcon,of:"warn-circle"}),showInstallMethod&&`Add ${componentName} as a dependency`,!showInstallMethod&&"Installation unavailable: This component has not been built yet"]}),showInstallMethod&&(0,jsx_runtime.jsx)(TooltipCopybox,{content:`bit install ${packageName??""}`,disabled:!showInstallMethod})]}),(0,jsx_runtime.jsx)("div",{children:`Import ${componentName} to your workspace`}),(0,jsx_runtime.jsx)(TooltipCopybox,{content:`bit import ${componentId}`}),(0,jsx_runtime.jsx)("div",{children:`Fork ${componentName} to your workspace`}),(0,jsx_runtime.jsx)(TooltipCopybox,{content:`bit fork ${componentId}`})]}),drawerTitle:(0,jsx_runtime.jsxs)("div",{className:menu_module.bottom,children:[(0,jsx_runtime.jsx)(dist.Icon,{color:"yellow",of:"download"}),(0,jsx_runtime.jsx)("span",{children:"Install Bit on your computer"})]}),drawerContent:(0,jsx_runtime.jsx)(BitInfo,{})})}var documenter_ui_highlighted_text_dist=__webpack_require__(33617);function Registry({copyString,...rest}){return(0,jsx_runtime.jsx)(ui_foundation_ui_use_box_tab_content_dist.TabContent,{...rest,className:menu_module.registry,bottom:(0,jsx_runtime.jsxs)(base_react_navigation_link_dist.Link,{external:!0,href:documenter_content_documentation_links_dist.yJ.scopedRegistry,className:ui_foundation_ui_use_box_bottom_link_dist.linkStyles,children:[(0,jsx_runtime.jsx)(dist.Icon,{of:"information-sign"}),(0,jsx_runtime.jsx)("span",{children:"Learn more"})]}),children:(0,jsx_runtime.jsx)(documenter_ui_copy_box_dist.CopyBox,{className:menu_module.copyBox,children:copyString})})}function Install({componentName,copyString,registryName,packageManager,config,isInstallable,...rest}){return(0,jsx_runtime.jsx)(ui_foundation_ui_use_box_tab_content_dist.z,{...rest,content:(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("div",{className:classnames_default()(!isInstallable&&menu_module.disabled),children:[!isInstallable&&(0,jsx_runtime.jsx)(dist.Icon,{className:menu_module.warnIcon,of:"warn-circle"}),isInstallable&&`Install ${componentName} with ${packageManager}`,!isInstallable&&"Installation unavailable: This component has not been built yet"]}),isInstallable&&(0,jsx_runtime.jsx)(TooltipCopybox,{content:copyString,disabled:!isInstallable})]}),drawerTitle:registryName&&(0,jsx_runtime.jsxs)("div",{className:menu_module.bottom,children:[(0,jsx_runtime.jsx)(dist.Icon,{of:"settings"}),(0,jsx_runtime.jsxs)("span",{children:["Configure ",(0,jsx_runtime.jsx)(documenter_ui_highlighted_text_dist.HighlightedText,{children:registryName})," as Scoped Registry"]})]}),drawerContent:registryName&&(0,jsx_runtime.jsx)(Registry,{copyString:config})})}},34796(__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.ExpandableTabContent=void 0;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),react_animate_height_1=__importDefault(__webpack_require__(31842)),evangelist_elements_icon_1=__webpack_require__(9502),ui_foundation_ui_use_box_tab_content_1=__webpack_require__(1412),ui_foundation_ui_use_box_bottom_link_1=__webpack_require__(73036),tab_content_module_scss_1=__importDefault(__webpack_require__(21034));function ExpandableTabContent(_a){var{tabContent,content,drawerContent,drawerTitle}=_a,rest=__rest(_a,["tabContent","content","drawerContent","drawerTitle"]);const[open,toggle]=(0,react_1.useState)(!1),iconStyles=open?tab_content_module_scss_1.default.open:"";return react_1.default.createElement(ui_foundation_ui_use_box_tab_content_1.TabContent,Object.assign({},rest,{bottom:drawerTitle&&drawerContent&&react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("div",{className:(0,classnames_1.default)(ui_foundation_ui_use_box_bottom_link_1.linkStyles,tab_content_module_scss_1.default.drawer),onClick:()=>toggle(!open)},react_1.default.createElement("div",null,drawerTitle),react_1.default.createElement(evangelist_elements_icon_1.Icon,{of:"down-rounded-corners",className:iconStyles})),react_1.default.createElement(react_animate_height_1.default,{height:open?"auto":0},drawerContent))}),tabContent||content)}exports.ExpandableTabContent=ExpandableTabContent},1412(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.z=exports.TabContent=void 0;var tab_content_1=__webpack_require__(61935);Object.defineProperty(exports,"TabContent",{enumerable:!0,get:function(){return tab_content_1.TabContent}});var expandable_tab_content_1=__webpack_require__(34796);Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return expandable_tab_content_1.ExpandableTabContent}})},61935(__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.TabContent=void 0;const react_1=__importDefault(__webpack_require__(12888)),tab_content_module_scss_1=__importDefault(__webpack_require__(21034));function TabContent(_a){var{children,bottom}=_a,rest=__rest(_a,["children","bottom"]);return react_1.default.createElement("div",Object.assign({},rest),react_1.default.createElement("div",{className:tab_content_module_scss_1.default.middle},children),bottom&&react_1.default.createElement("div",{className:tab_content_module_scss_1.default.bottom},bottom))}exports.TabContent=TabContent},77210(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.Tab=void 0;var tab_1=__webpack_require__(47141);Object.defineProperty(exports,"Tab",{enumerable:!0,get:function(){return tab_1.Tab}})},47141(__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.Tab=void 0;const react_1=__importDefault(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(14487)),tab_module_scss_1=__importDefault(__webpack_require__(86656));function Tab(_a){var{onClick,isActive,className,children}=_a,rest=__rest(_a,["onClick","isActive","className","children"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(tab_module_scss_1.default.tab,isActive&&tab_module_scss_1.default.active,className),onClick}),children)}exports.Tab=Tab},13032(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{tippy:()=>tippy_js__WEBPACK_IMPORTED_MODULE_0__.Ay,useSingleton:()=>useSingleton});var tippy_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(16406),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12888),react_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2163);function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}var isBrowser=typeof window<"u"&&typeof document<"u";function preserveRef(ref,node){ref&&(typeof ref=="function"&&ref(node),{}.hasOwnProperty.call(ref,"current")&&(ref.current=node))}function ssrSafeCreateDiv(){return isBrowser&&document.createElement("div")}function toDataAttributes(attrs){var dataAttrs={"data-placement":attrs.placement};return attrs.referenceHidden&&(dataAttrs["data-reference-hidden"]=""),attrs.escaped&&(dataAttrs["data-escaped"]=""),dataAttrs}function deepPreserveProps(instanceProps,componentProps){var _instanceProps$popper,_componentProps$poppe;return Object.assign({},componentProps,{popperOptions:Object.assign({},instanceProps.popperOptions,componentProps.popperOptions,{modifiers:[].concat((((_instanceProps$popper=instanceProps.popperOptions)==null?void 0:_instanceProps$popper.modifiers)||[]).filter(function(modifier){return modifier.name.indexOf("tippy")>=0}),((_componentProps$poppe=componentProps.popperOptions)==null?void 0:_componentProps$poppe.modifiers)||[])})})}var useIsomorphicLayoutEffect=isBrowser?react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_1__.useEffect;function useMutableBox(initialValue){var ref=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();return ref.current||(ref.current=typeof initialValue=="function"?initialValue():initialValue),ref.current}function updateClassName(box,action,classNames){classNames.split(/\s+/).forEach(function(name){name&&box.classList[action](name)})}var classNamePlugin={name:"className",defaultValue:"",fn:function(instance){var box=instance.popper.firstElementChild,isDefaultRenderFn=function(){var _instance$props$rende;return!!((_instance$props$rende=instance.props.render)!=null&&_instance$props$rende.$$tippy)};function add(){instance.props.className&&!isDefaultRenderFn()||updateClassName(box,"add",instance.props.className)}function remove(){isDefaultRenderFn()&&updateClassName(box,"remove",instance.props.className)}return{onCreate:add,onBeforeUpdate:remove,onAfterUpdate:add}}};function TippyGenerator(tippy){function Tippy(_ref){var children=_ref.children,content=_ref.content,visible=_ref.visible,singleton=_ref.singleton,render=_ref.render,reference=_ref.reference,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?!1:_ref$disabled,_ref$ignoreAttributes=_ref.ignoreAttributes,ignoreAttributes=_ref$ignoreAttributes===void 0?!0:_ref$ignoreAttributes,__source=_ref.__source,__self=_ref.__self,restOfNativeProps=_objectWithoutPropertiesLoose(_ref,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),isControlledMode=visible!==void 0,isSingletonMode=singleton!==void 0,_useState=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),mounted=_useState[0],setMounted=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({}),attrs=_useState2[0],setAttrs=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),singletonContent=_useState3[0],setSingletonContent=_useState3[1],mutableBox=useMutableBox(function(){return{container:ssrSafeCreateDiv(),renders:1}}),props=Object.assign({ignoreAttributes},restOfNativeProps,{content:mutableBox.container});isControlledMode&&(props.trigger="manual",props.hideOnClick=!1),isSingletonMode&&(disabled=!0);var computedProps=props,plugins=props.plugins||[];render&&(computedProps=Object.assign({},props,{plugins:isSingletonMode?[].concat(plugins,[{fn:function(){return{onTrigger:function(_,event){var _singleton$data$child=singleton.data.children.find(function(_ref2){var instance=_ref2.instance;return instance.reference===event.currentTarget}),content2=_singleton$data$child.content;setSingletonContent(content2)}}}}]):plugins,render:function(){return{popper:mutableBox.container}}}));var deps=[reference].concat(children?[children.type]:[]);return useIsomorphicLayoutEffect(function(){var element=reference;reference&&reference.hasOwnProperty("current")&&(element=reference.current);var instance=tippy(element||mutableBox.ref||ssrSafeCreateDiv(),Object.assign({},computedProps,{plugins:[classNamePlugin].concat(props.plugins||[])}));return mutableBox.instance=instance,disabled&&instance.disable(),visible&&instance.show(),isSingletonMode&&singleton.hook({instance,content,props:computedProps}),setMounted(!0),function(){instance.destroy(),singleton?.cleanup(instance)}},deps),useIsomorphicLayoutEffect(function(){if(mutableBox.renders===1){mutableBox.renders++;return}var instance=mutableBox.instance;instance.setProps(deepPreserveProps(instance.props,computedProps)),disabled?instance.disable():instance.enable(),isControlledMode&&(visible?instance.show():instance.hide()),isSingletonMode&&singleton.hook({instance,content,props:computedProps})}),useIsomorphicLayoutEffect(function(){var _instance$props$poppe;if(!!render){var instance=mutableBox.instance;instance.setProps({popperOptions:Object.assign({},instance.props.popperOptions,{modifiers:[].concat(((_instance$props$poppe=instance.props.popperOptions)==null?void 0:_instance$props$poppe.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(_ref3){var _state$modifiersData,state=_ref3.state,hideData=(_state$modifiersData=state.modifiersData)==null?void 0:_state$modifiersData.hide;(attrs.placement!==state.placement||attrs.referenceHidden!==hideData?.isReferenceHidden||attrs.escaped!==hideData?.hasPopperEscaped)&&setAttrs({placement:state.placement,referenceHidden:hideData?.isReferenceHidden,escaped:hideData?.hasPopperEscaped}),state.attributes.popper={}}}])})})}},[attrs.placement,attrs.referenceHidden,attrs.escaped].concat(deps)),react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,children?(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(children,{ref:function(node){mutableBox.ref=node,preserveRef(children.ref,node)}}):null,mounted&&(0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)(render?render(toDataAttributes(attrs),singletonContent,mutableBox.instance):content,mutableBox.container))}return Tippy}function useSingletonGenerator(createSingleton){return function(_temp){var _ref=_temp===void 0?{}:_temp,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?!1:_ref$disabled,_ref$overrides=_ref.overrides,overrides=_ref$overrides===void 0?[]:_ref$overrides,_useState=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),mounted=_useState[0],setMounted=_useState[1],mutableBox=useMutableBox({children:[],renders:1});return useIsomorphicLayoutEffect(function(){if(!mounted){setMounted(!0);return}var children=mutableBox.children,sourceData=mutableBox.sourceData;if(!!sourceData){var instance=createSingleton(children.map(function(child){return child.instance}),Object.assign({},sourceData.props,{popperOptions:sourceData.instance.props.popperOptions,overrides,plugins:[classNamePlugin].concat(sourceData.props.plugins||[])}));return mutableBox.instance=instance,disabled&&instance.disable(),function(){instance.destroy(),mutableBox.children=children.filter(function(_ref2){var instance2=_ref2.instance;return!instance2.state.isDestroyed})}}},[mounted]),useIsomorphicLayoutEffect(function(){if(!!mounted){if(mutableBox.renders===1){mutableBox.renders++;return}var children=mutableBox.children,instance=mutableBox.instance,sourceData=mutableBox.sourceData;if(!!(instance&&sourceData)){var _sourceData$props=sourceData.props,content=_sourceData$props.content,props=_objectWithoutPropertiesLoose(_sourceData$props,["content"]);instance.setProps(deepPreserveProps(instance,Object.assign({},props,{overrides}))),instance.setInstances(children.map(function(child){return child.instance})),disabled?instance.disable():instance.enable()}}}),(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function(){var source={data:mutableBox,hook:function(data){mutableBox.sourceData=data},cleanup:function(){mutableBox.sourceData=null}},target={hook:function(data){mutableBox.children.find(function(_ref3){var instance=_ref3.instance;return data.instance===instance})||mutableBox.children.push(data)},cleanup:function(instance){mutableBox.children=mutableBox.children.filter(function(data){return data.instance!==instance})}};return[source,target]},[])}}var forwardRef=function(Tippy,defaultProps){return(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function(_ref,_ref2){var children=_ref.children,props=_objectWithoutPropertiesLoose(_ref,["children"]);return react__WEBPACK_IMPORTED_MODULE_1__.createElement(Tippy,Object.assign({},defaultProps,props),children?(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(children,{ref:function(node){preserveRef(_ref2,node),preserveRef(children.ref,node)}}):null)})},useSingleton=useSingletonGenerator(tippy_js__WEBPACK_IMPORTED_MODULE_0__.Uy),index=forwardRef(TippyGenerator(tippy_js__WEBPACK_IMPORTED_MODULE_0__.Ay));const __WEBPACK_DEFAULT_EXPORT__=index;__webpack_require__.d(__webpack_exports__,["default",0,__WEBPACK_DEFAULT_EXPORT__])},90705(module){"use strict";module.exports=({onlyFirst=!1}={})=>{const pattern=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(pattern,onlyFirst?void 0:"g")}},75386(module,__unused_webpack_exports,__webpack_require__){"use strict";module=__webpack_require__.nmd(module);const wrapAnsi16=(fn,offset)=>(...args)=>`\x1B[${fn(...args)+offset}m`,wrapAnsi256=(fn,offset)=>(...args)=>{const code=fn(...args);return`\x1B[${38+offset};5;${code}m`},wrapAnsi16m=(fn,offset)=>(...args)=>{const rgb=fn(...args);return`\x1B[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`},ansi2ansi=n=>n,rgb2rgb=(r,g,b)=>[r,g,b],setLazyProperty=(object,property,get)=>{Object.defineProperty(object,property,{get:()=>{const value=get();return Object.defineProperty(object,property,{value,enumerable:!0,configurable:!0}),value},enumerable:!0,configurable:!0})};let colorConvert;const makeDynamicStyles=(wrap,targetSpace,identity,isBackground)=>{colorConvert===void 0&&(colorConvert=__webpack_require__(61880));const offset=isBackground?10:0,styles={};for(const[sourceSpace,suite]of Object.entries(colorConvert)){const name=sourceSpace==="ansi16"?"ansi":sourceSpace;sourceSpace===targetSpace?styles[name]=wrap(identity,offset):typeof suite=="object"&&(styles[name]=wrap(suite[targetSpace],offset))}return styles};function assembleStyles(){const codes=new Map,styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles.color.gray=styles.color.blackBright,styles.bgColor.bgGray=styles.bgColor.bgBlackBright,styles.color.grey=styles.color.blackBright,styles.bgColor.bgGrey=styles.bgColor.bgBlackBright;for(const[groupName,group]of Object.entries(styles)){for(const[styleName,style]of Object.entries(group))styles[styleName]={open:`\x1B[${style[0]}m`,close:`\x1B[${style[1]}m`},group[styleName]=styles[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles,"codes",{value:codes,enumerable:!1}),styles.color.close="\x1B[39m",styles.bgColor.close="\x1B[49m",setLazyProperty(styles.color,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!1)),setLazyProperty(styles.color,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!1)),setLazyProperty(styles.color,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!1)),setLazyProperty(styles.bgColor,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!0)),setLazyProperty(styles.bgColor,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!0)),setLazyProperty(styles.bgColor,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!0)),styles}Object.defineProperty(module,"exports",{enumerable:!0,get:assembleStyles})},10017(module,__unused_webpack_exports,__webpack_require__){"use strict";var process=__webpack_require__(68558);function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}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,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var _require=__webpack_require__(94986),_require$codes=_require.codes,ERR_AMBIGUOUS_ARGUMENT=_require$codes.ERR_AMBIGUOUS_ARGUMENT,ERR_INVALID_ARG_TYPE=_require$codes.ERR_INVALID_ARG_TYPE,ERR_INVALID_ARG_VALUE=_require$codes.ERR_INVALID_ARG_VALUE,ERR_INVALID_RETURN_VALUE=_require$codes.ERR_INVALID_RETURN_VALUE,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,AssertionError=__webpack_require__(82725),_require2=__webpack_require__(39983),inspect=_require2.inspect,_require$types=__webpack_require__(39983).types,isPromise=_require$types.isPromise,isRegExp=_require$types.isRegExp,objectAssign=__webpack_require__(45480)(),objectIs=__webpack_require__(38284)(),RegExpPrototypeTest=__webpack_require__(69765)("RegExp.prototype.test"),errorCache=new Map,isDeepEqual,isDeepStrictEqual,parseExpressionAt,findNodeAround,decoder;function lazyLoadComparison(){var comparison=__webpack_require__(36420);isDeepEqual=comparison.isDeepEqual,isDeepStrictEqual=comparison.isDeepStrictEqual}var escapeSequencesRegExp=/[\x00-\x08\x0b\x0c\x0e-\x1f]/g,meta=null,escapeFn=function(str){return meta[str.charCodeAt(0)]},warned=!1,assert=module.exports=ok,NO_EXCEPTION_SENTINEL={};function innerFail(obj){throw obj.message instanceof Error?obj.message:new AssertionError(obj)}function fail(actual,expected,message,operator,stackStartFn){var argsLen=arguments.length,internalMessage;if(argsLen===0)internalMessage="Failed";else if(argsLen===1)message=actual,actual=void 0;else{if(warned===!1){warned=!0;var warn=process.emitWarning?process.emitWarning:console.warn.bind(console);warn("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}argsLen===2&&(operator="!=")}if(message instanceof Error)throw message;var errArgs={actual,expected,operator:operator===void 0?"fail":operator,stackStartFn:stackStartFn||fail};message!==void 0&&(errArgs.message=message);var err=new AssertionError(errArgs);throw internalMessage&&(err.message=internalMessage,err.generatedMessage=!0),err}assert.fail=fail,assert.AssertionError=AssertionError;function innerOk(fn,argLen,value,message){if(!value){var generatedMessage=!1;if(argLen===0)generatedMessage=!0,message="No value argument passed to `assert.ok()`";else if(message instanceof Error)throw message;var err=new AssertionError({actual:value,expected:!0,message,operator:"==",stackStartFn:fn});throw err.generatedMessage=generatedMessage,err}}function ok(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];innerOk.apply(void 0,[ok,args.length].concat(args))}assert.ok=ok,assert.equal=function equal(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");actual!=expected&&innerFail({actual,expected,message,operator:"==",stackStartFn:equal})},assert.notEqual=function notEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");actual==expected&&innerFail({actual,expected,message,operator:"!=",stackStartFn:notEqual})},assert.deepEqual=function deepEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");isDeepEqual===void 0&&lazyLoadComparison(),isDeepEqual(actual,expected)||innerFail({actual,expected,message,operator:"deepEqual",stackStartFn:deepEqual})},assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");isDeepEqual===void 0&&lazyLoadComparison(),isDeepEqual(actual,expected)&&innerFail({actual,expected,message,operator:"notDeepEqual",stackStartFn:notDeepEqual})},assert.deepStrictEqual=function deepStrictEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");isDeepEqual===void 0&&lazyLoadComparison(),isDeepStrictEqual(actual,expected)||innerFail({actual,expected,message,operator:"deepStrictEqual",stackStartFn:deepStrictEqual})},assert.notDeepStrictEqual=notDeepStrictEqual;function notDeepStrictEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");isDeepEqual===void 0&&lazyLoadComparison(),isDeepStrictEqual(actual,expected)&&innerFail({actual,expected,message,operator:"notDeepStrictEqual",stackStartFn:notDeepStrictEqual})}assert.strictEqual=function strictEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");objectIs(actual,expected)||innerFail({actual,expected,message,operator:"strictEqual",stackStartFn:strictEqual})},assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(arguments.length<2)throw new ERR_MISSING_ARGS("actual","expected");objectIs(actual,expected)&&innerFail({actual,expected,message,operator:"notStrictEqual",stackStartFn:notStrictEqual})};var Comparison=_createClass(function Comparison2(obj,keys,actual){var _this=this;_classCallCheck(this,Comparison2),keys.forEach(function(key){key in obj&&(actual!==void 0&&typeof actual[key]=="string"&&isRegExp(obj[key])&&RegExpPrototypeTest(obj[key],actual[key])?_this[key]=actual[key]:_this[key]=obj[key])})});function compareExceptionKey(actual,expected,key,message,keys,fn){if(!(key in actual)||!isDeepStrictEqual(actual[key],expected[key])){if(!message){var a=new Comparison(actual,keys),b=new Comparison(expected,keys,actual),err=new AssertionError({actual:a,expected:b,operator:"deepStrictEqual",stackStartFn:fn});throw err.actual=actual,err.expected=expected,err.operator=fn.name,err}innerFail({actual,expected,message,operator:fn.name,stackStartFn:fn})}}function expectedException(actual,expected,msg,fn){if(typeof expected!="function"){if(isRegExp(expected))return RegExpPrototypeTest(expected,actual);if(arguments.length===2)throw new ERR_INVALID_ARG_TYPE("expected",["Function","RegExp"],expected);if(_typeof(actual)!=="object"||actual===null){var err=new AssertionError({actual,expected,message:msg,operator:"deepStrictEqual",stackStartFn:fn});throw err.operator=fn.name,err}var keys=Object.keys(expected);if(expected instanceof Error)keys.push("name","message");else if(keys.length===0)throw new ERR_INVALID_ARG_VALUE("error",expected,"may not be an empty object");return isDeepEqual===void 0&&lazyLoadComparison(),keys.forEach(function(key){typeof actual[key]=="string"&&isRegExp(expected[key])&&RegExpPrototypeTest(expected[key],actual[key])||compareExceptionKey(actual,expected,key,msg,keys,fn)}),!0}return expected.prototype!==void 0&&actual instanceof expected?!0:Error.isPrototypeOf(expected)?!1:expected.call({},actual)===!0}function getActual(fn){if(typeof fn!="function")throw new ERR_INVALID_ARG_TYPE("fn","Function",fn);try{fn()}catch(e){return e}return NO_EXCEPTION_SENTINEL}function checkIsPromise(obj){return isPromise(obj)||obj!==null&&_typeof(obj)==="object"&&typeof obj.then=="function"&&typeof obj.catch=="function"}function waitForActual(promiseFn){return Promise.resolve().then(function(){var resultPromise;if(typeof promiseFn=="function"){if(resultPromise=promiseFn(),!checkIsPromise(resultPromise))throw new ERR_INVALID_RETURN_VALUE("instance of Promise","promiseFn",resultPromise)}else if(checkIsPromise(promiseFn))resultPromise=promiseFn;else throw new ERR_INVALID_ARG_TYPE("promiseFn",["Function","Promise"],promiseFn);return Promise.resolve().then(function(){return resultPromise}).then(function(){return NO_EXCEPTION_SENTINEL}).catch(function(e){return e})})}function expectsError(stackStartFn,actual,error,message){if(typeof error=="string"){if(arguments.length===4)throw new ERR_INVALID_ARG_TYPE("error",["Object","Error","Function","RegExp"],error);if(_typeof(actual)==="object"&&actual!==null){if(actual.message===error)throw new ERR_AMBIGUOUS_ARGUMENT("error/message",'The error message "'.concat(actual.message,'" is identical to the message.'))}else if(actual===error)throw new ERR_AMBIGUOUS_ARGUMENT("error/message",'The error "'.concat(actual,'" is identical to the message.'));message=error,error=void 0}else if(error!=null&&_typeof(error)!=="object"&&typeof error!="function")throw new ERR_INVALID_ARG_TYPE("error",["Object","Error","Function","RegExp"],error);if(actual===NO_EXCEPTION_SENTINEL){var details="";error&&error.name&&(details+=" (".concat(error.name,")")),details+=message?": ".concat(message):".";var fnType=stackStartFn.name==="rejects"?"rejection":"exception";innerFail({actual:void 0,expected:error,operator:stackStartFn.name,message:"Missing expected ".concat(fnType).concat(details),stackStartFn})}if(error&&!expectedException(actual,error,message,stackStartFn))throw actual}function expectsNoError(stackStartFn,actual,error,message){if(actual!==NO_EXCEPTION_SENTINEL){if(typeof error=="string"&&(message=error,error=void 0),!error||expectedException(actual,error)){var details=message?": ".concat(message):".",fnType=stackStartFn.name==="doesNotReject"?"rejection":"exception";innerFail({actual,expected:error,operator:stackStartFn.name,message:"Got unwanted ".concat(fnType).concat(details,`
|
|
290
290
|
`)+'Actual message: "'.concat(actual&&actual.message,'"'),stackStartFn})}throw actual}}assert.throws=function throws(promiseFn){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];expectsError.apply(void 0,[throws,getActual(promiseFn)].concat(args))},assert.rejects=function rejects(promiseFn){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return waitForActual(promiseFn).then(function(result){return expectsError.apply(void 0,[rejects,result].concat(args))})},assert.doesNotThrow=function doesNotThrow(fn){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];expectsNoError.apply(void 0,[doesNotThrow,getActual(fn)].concat(args))},assert.doesNotReject=function doesNotReject(fn){for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)args[_key5-1]=arguments[_key5];return waitForActual(fn).then(function(result){return expectsNoError.apply(void 0,[doesNotReject,result].concat(args))})},assert.ifError=function ifError(err){if(err!=null){var message="ifError got unwanted exception: ";_typeof(err)==="object"&&typeof err.message=="string"?err.message.length===0&&err.constructor?message+=err.constructor.name:message+=err.message:message+=inspect(err);var newErr=new AssertionError({actual:err,expected:null,operator:"ifError",message,stackStartFn:ifError}),origStack=err.stack;if(typeof origStack=="string"){var tmp2=origStack.split(`
|
|
291
291
|
`);tmp2.shift();for(var tmp1=newErr.stack.split(`
|
|
@@ -884,4 +884,4 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
|
|
|
884
884
|
`)),`
|
|
885
885
|
}`)}function wrap(start,maybeString){var end=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return maybeString!=null&&maybeString!==""?start+maybeString+end:""}function indent(str){return wrap(" ",str.replace(/\n/g,`
|
|
886
886
|
`))}function isMultiline(str){return str.indexOf(`
|
|
887
|
-
`)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}},23838(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{YR:()=>visit,sP:()=>BREAK});var _jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6188),_ast_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12890),QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=Object.freeze({});function visit(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent2=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent2,parent2=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent2?inArray?index:keys[index]:void 0,node=parent2?parent2[key]:newRoot,node==null)continue;parent2&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!(0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(node))throw new Error("Invalid AST Node: ".concat((0,_jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__.A)(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent2,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if((0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent2&&ancestors.push(parent2),parent2=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}},95492(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26143)},84472(module){"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},78192(module){"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},53680(module){"use strict";module.exports=JSON.parse('{"locale":"en","long":{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}},"short":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}},"narrow":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0}y ago","future":"in {0}y"},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":"{0}q ago","future":"in {0}q"},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0}mo ago","future":"in {0}mo"},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0}w ago","future":"in {0}w"},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":"{0}d ago","future":"in {0}d"},"hour":{"current":"this hour","past":"{0}h ago","future":"in {0}h"},"minute":{"current":"this minute","past":"{0}m ago","future":"in {0}m"},"second":{"current":"now","past":"{0}s ago","future":"in {0}s"}},"now":{"now":{"current":"now","future":"in a moment","past":"just now"}},"mini":{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"},"short-time":{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec."},"long-time":{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"}}}')}}]);
|
|
887
|
+
`)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}},23838(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{YR:()=>visit,sP:()=>BREAK});var _jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6188),_ast_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12890),QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=Object.freeze({});function visit(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent2=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent2,parent2=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent2?inArray?index:keys[index]:void 0,node=parent2?parent2[key]:newRoot,node==null)continue;parent2&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!(0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(node))throw new Error("Invalid AST Node: ".concat((0,_jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__.A)(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent2,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if((0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent2&&ancestors.push(parent2),parent2=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}},35109(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26143)},84472(module){"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},78192(module){"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},53680(module){"use strict";module.exports=JSON.parse('{"locale":"en","long":{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}},"short":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}},"narrow":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0}y ago","future":"in {0}y"},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":"{0}q ago","future":"in {0}q"},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0}mo ago","future":"in {0}mo"},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0}w ago","future":"in {0}w"},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":"{0}d ago","future":"in {0}d"},"hour":{"current":"this hour","past":"{0}h ago","future":"in {0}h"},"minute":{"current":"this minute","past":"{0}m ago","future":"in {0}m"},"second":{"current":"now","past":"{0}s ago","future":"in {0}s"}},"now":{"now":{"current":"now","future":"in a moment","past":"just now"}},"mini":{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"},"short-time":{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec."},"long-time":{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"}}}')}}]);
|