@nikaat-crop/es-icons 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +236 -0
  2. package/assets/buildix.svg +38 -0
  3. package/dist/index.css +1 -0
  4. package/dist/index.d.ts +8 -0
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.mjs +2 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +61 -0
  10. package/storybook-static/247.25a0be85.iframe.bundle.js +87 -0
  11. package/storybook-static/247.25a0be85.iframe.bundle.js.LICENSE.txt +9 -0
  12. package/storybook-static/247.25a0be85.iframe.bundle.js.map +1 -0
  13. package/storybook-static/254.e01ff6bb.iframe.bundle.js +409 -0
  14. package/storybook-static/254.e01ff6bb.iframe.bundle.js.LICENSE.txt +9 -0
  15. package/storybook-static/254.e01ff6bb.iframe.bundle.js.map +1 -0
  16. package/storybook-static/357.6c8d88a6.iframe.bundle.js +1 -0
  17. package/storybook-static/648.3e8aa4c4.iframe.bundle.js +1 -0
  18. package/storybook-static/735.921e2ca6.iframe.bundle.js +2 -0
  19. package/storybook-static/735.921e2ca6.iframe.bundle.js.LICENSE.txt +19 -0
  20. package/storybook-static/788.09d6734a.iframe.bundle.js +1 -0
  21. package/storybook-static/favicon-wrapper.svg +46 -0
  22. package/storybook-static/favicon.svg +1 -0
  23. package/storybook-static/iframe.html +533 -0
  24. package/storybook-static/index.html +148 -0
  25. package/storybook-static/index.json +1 -0
  26. package/storybook-static/main.99b920e4.iframe.bundle.js +1 -0
  27. package/storybook-static/mocker-runtime-injected.js +2 -0
  28. package/storybook-static/mocker-runtime-injected.js.LICENSE.txt +46 -0
  29. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  30. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  31. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  32. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  33. package/storybook-static/project.json +1 -0
  34. package/storybook-static/runtime~main.d9c16a52.iframe.bundle.js +1 -0
  35. package/storybook-static/sb-addons/docs-1/manager-bundle.js +151 -0
  36. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
  37. package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
  38. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  39. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  40. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  41. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  42. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  43. package/storybook-static/sb-manager/globals-module-info.js +797 -0
  44. package/storybook-static/sb-manager/globals-runtime.js +69653 -0
  45. package/storybook-static/sb-manager/globals.js +34 -0
  46. package/storybook-static/sb-manager/runtime.js +13181 -0
  47. package/storybook-static/sb-preview/globals.js +25 -0
  48. package/storybook-static/sb-preview/runtime.js +43265 -0
  49. package/storybook-static/stories-datePicker-stories.1a36012a.iframe.bundle.js +2 -0
  50. package/storybook-static/stories-datePicker-stories.1a36012a.iframe.bundle.js.LICENSE.txt +9 -0
@@ -0,0 +1,409 @@
1
+ /*! For license information please see 254.e01ff6bb.iframe.bundle.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_buildix_wheel_datepicker=self.webpackChunk_buildix_wheel_datepicker||[]).push([[254],{"./node_modules/@storybook/addon-docs/dist/preview.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{parameters:()=>parameters});var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await Promise.all([__webpack_require__.e(735),__webpack_require__.e(247),__webpack_require__.e(788)]).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/addon-docs/dist/DocsRenderer-PQXLIZUC.mjs"));return new DocsRenderer},stories:{filter:story=>0===(story.tags||[]).filter(tag=>excludeTags[tag]).length&&!story.parameters.docs?.disable}}}},"./node_modules/@storybook/react/dist/chunk-6BNVLEVL.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{HA:()=>reactElementToJsxString,Jz:()=>isForwardRef,Rf:()=>isMemo});var _chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),require_dist=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/@base2/pretty-print-object/dist/index.js"(exports){var __assign=exports&&exports.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)},__spreadArrays=exports&&exports.__spreadArrays||function(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;var r=Array(s),k=0;for(i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r};Object.defineProperty(exports,"__esModule",{value:!0});var seen=[];exports.prettyPrint=function prettyPrint2(input,options,pad){void 0===pad&&(pad="");var tokens,combinedOptions=__assign(__assign({},{indent:"\t",singleQuotes:!0}),options);tokens=void 0===combinedOptions.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad,indent:pad+combinedOptions.indent}:{newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var expandWhiteSpace=function(string){if(void 0===combinedOptions.inlineCharacterLimit)return string;var oneLined=string.replace(new RegExp(tokens.newLine,"g"),"").replace(new RegExp(tokens.newLineOrSpace,"g")," ").replace(new RegExp(tokens.pad+"|"+tokens.indent,"g"),"");return oneLined.length<=combinedOptions.inlineCharacterLimit?oneLined:string.replace(new RegExp(tokens.newLine+"|"+tokens.newLineOrSpace,"g"),"\n").replace(new RegExp(tokens.pad,"g"),pad).replace(new RegExp(tokens.indent,"g"),pad+combinedOptions.indent)};if(-1!==seen.indexOf(input))return'"[Circular]"';if(null==input||"number"==typeof input||"boolean"==typeof input||"function"==typeof input||"symbol"==typeof input||function isRegexp(value){return"[object RegExp]"===Object.prototype.toString.call(value)}(input))return String(input);if(input instanceof Date)return"new Date('"+input.toISOString()+"')";if(Array.isArray(input)){if(0===input.length)return"[]";seen.push(input);var ret="["+tokens.newLine+input.map(function(el,i){var eol=input.length-1===i?tokens.newLine:","+tokens.newLineOrSpace,value=prettyPrint2(el,combinedOptions,pad+combinedOptions.indent);return combinedOptions.transform&&(value=combinedOptions.transform(input,i,value)),tokens.indent+value+eol}).join("")+tokens.pad+"]";return seen.pop(),expandWhiteSpace(ret)}if(function isObj(value){var type=typeof value;return null!==value&&("object"===type||"function"===type)}(input)){var objKeys_1=__spreadArrays(Object.keys(input),function getOwnEnumPropSymbols(object){return Object.getOwnPropertySymbols(object).filter(function(keySymbol){return Object.prototype.propertyIsEnumerable.call(object,keySymbol)})}(input));if(combinedOptions.filter&&(objKeys_1=objKeys_1.filter(function(el){return combinedOptions.filter&&combinedOptions.filter(input,el)})),0===objKeys_1.length)return"{}";seen.push(input);ret="{"+tokens.newLine+objKeys_1.map(function(el,i){var eol=objKeys_1.length-1===i?tokens.newLine:","+tokens.newLineOrSpace,isSymbol="symbol"==typeof el,isClassic=!isSymbol&&/^[a-z$_][a-z$_0-9]*$/i.test(el.toString()),key=isSymbol||isClassic?el:prettyPrint2(el,combinedOptions),value=prettyPrint2(input[el],combinedOptions,pad+combinedOptions.indent);return combinedOptions.transform&&(value=combinedOptions.transform(input,el,value)),tokens.indent+String(key)+": "+value+eol}).join("")+tokens.pad+"}";return seen.pop(),expandWhiteSpace(ret)}return input=String(input).replace(/[\r\n]/g,function(x){return"\n"===x?"\\n":"\\r"}),combinedOptions.singleQuotes?"'"+(input=input.replace(/\\?'/g,"\\'"))+"'":'"'+(input=input.replace(/"/g,'\\"'))+'"'}}}),require_react_is_production_min=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports){var u,b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen");function v(a){if("object"==typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}u=Symbol.for("react.module.reference"),exports.ContextConsumer=h,exports.ContextProvider=g,exports.Element=b,exports.ForwardRef=l,exports.Fragment=d,exports.Lazy=q,exports.Memo=p,exports.Portal=c,exports.Profiler=f,exports.StrictMode=e,exports.Suspense=m,exports.SuspenseList=n,exports.isAsyncMode=function(){return!1},exports.isConcurrentMode=function(){return!1},exports.isContextConsumer=function(a){return v(a)===h},exports.isContextProvider=function(a){return v(a)===g},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===b},exports.isForwardRef=function(a){return v(a)===l},exports.isFragment=function(a){return v(a)===d},exports.isLazy=function(a){return v(a)===q},exports.isMemo=function(a){return v(a)===p},exports.isPortal=function(a){return v(a)===c},exports.isProfiler=function(a){return v(a)===f},exports.isStrictMode=function(a){return v(a)===e},exports.isSuspense=function(a){return v(a)===m},exports.isSuspenseList=function(a){return v(a)===n},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"==typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)},exports.typeOf=v}}),require_react_is=((0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.development.js"(exports){}}),(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(exports,module){module.exports=require_react_is_production_min()}})),isMemo=component=>component.$$typeof===Symbol.for("react.memo"),isForwardRef=component=>component.$$typeof===Symbol.for("react.forward_ref");function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}var import_pretty_print_object=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.f1)(require_dist()),import_react_is=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.f1)(require_react_is()),spacer=function(times,tabStop){return 0===times?"":new Array(times*tabStop).fill(" ").join("")};function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if(typeof Symbol<"u"&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2})(o)}function safeSortObject(value,seen){if(null===value||"object"!==_typeof(value)||value instanceof Date||value instanceof RegExp)return value;if(react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(value)){var copyObj=function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r2){_defineProperty(e,r2,t[r2])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r2){Object.defineProperty(e,r2,Object.getOwnPropertyDescriptor(t,r2))})}return e}({},value);return delete copyObj._owner,copyObj}return seen.add(value),Array.isArray(value)?value.map(function(v){return safeSortObject(v,seen)}):Object.keys(value).sort().reduce(function(result,key){return"current"===key||seen.has(value[key])?result[key]="[Circular]":result[key]=safeSortObject(value[key],seen),result},{})}var createStringTreeNode=function(value){return{type:"string",value}},supportFragment=!!react__WEBPACK_IMPORTED_MODULE_1__.Fragment,getFunctionTypeName=function(functionType){return functionType.name&&"_default"!==functionType.name?functionType.name:"No Display Name"},_getWrappedComponentDisplayName=function(Component){switch(!0){case!!Component.displayName:return Component.displayName;case Component.$$typeof===import_react_is.Memo:return _getWrappedComponentDisplayName(Component.type);case Component.$$typeof===import_react_is.ForwardRef:return _getWrappedComponentDisplayName(Component.render);default:return getFunctionTypeName(Component)}},getReactElementDisplayName=function(element){switch(!0){case"string"==typeof element.type:return element.type;case"function"==typeof element.type:return element.type.displayName?element.type.displayName:getFunctionTypeName(element.type);case(0,import_react_is.isForwardRef)(element):case(0,import_react_is.isMemo)(element):return _getWrappedComponentDisplayName(element.type);case(0,import_react_is.isContextConsumer)(element):return"".concat(element.type._context.displayName||"Context",".Consumer");case(0,import_react_is.isContextProvider)(element):return"".concat(element.type._context.displayName||"Context",".Provider");case(0,import_react_is.isLazy)(element):return"Lazy";case(0,import_react_is.isProfiler)(element):return"Profiler";case(0,import_react_is.isStrictMode)(element):return"StrictMode";case(0,import_react_is.isSuspense)(element):return"Suspense";default:return"UnknownElementType"}},noChildren=function(propsValue,propName){return"children"!==propName},onlyMeaningfulChildren=function(children){return!0!==children&&!1!==children&&null!==children&&""!==children},filterProps=function(originalProps,cb){var filteredProps={};return Object.keys(originalProps).filter(function(key){return cb(originalProps[key],key)}).forEach(function(key){return filteredProps[key]=originalProps[key]}),filteredProps},_parseReactElement=function(element,options){var _options$displayName=options.displayName,displayNameFn=void 0===_options$displayName?getReactElementDisplayName:_options$displayName;if("string"==typeof element)return createStringTreeNode(element);if("number"==typeof element)return{type:"number",value:element};if(!react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(element))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(_typeof(element),"`"));var displayName=displayNameFn(element),props=filterProps(element.props,noChildren);null!==element.ref&&(props.ref=element.ref);var key=element.key;"string"==typeof key&&key.search(/^\./)&&(props.key=key);var defaultProps=filterProps(element.type.defaultProps||{},noChildren),childrens=react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(element.props.children).filter(onlyMeaningfulChildren).map(function(child){return _parseReactElement(child,options)});return supportFragment&&element.type===react__WEBPACK_IMPORTED_MODULE_1__.Fragment?function(key,childrens){return{type:"ReactFragment",key,childrens}}(key,childrens):function(displayName,props,defaultProps,childrens){return{type:"ReactElement",displayName,props,defaultProps,childrens}}(displayName,props,defaultProps,childrens)};function noRefCheck(){}var defaultFunctionValue=function(fn){return fn.toString().split("\n").map(function(line){return line.trim()}).join("")},formatFunction=function(fn,options){var _options$functionValu=options.functionValue,functionValue=void 0===_options$functionValu?defaultFunctionValue:_options$functionValu;return functionValue(options.showFunctions||functionValue!==defaultFunctionValue?fn:noRefCheck)},formatComplexDataStructure=function(value,inline,lvl,options){var normalizedValue=function sortObject(value){return safeSortObject(value,new WeakSet)}(value),stringifiedValue=(0,import_pretty_print_object.prettyPrint)(normalizedValue,{transform:function(currentObj,prop,originalResult){var currentValue=currentObj[prop];return currentValue&&(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(currentValue)?formatTreeNode(_parseReactElement(currentValue,options),!0,lvl,options):"function"==typeof currentValue?formatFunction(currentValue,options):originalResult}});return inline?stringifiedValue.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):stringifiedValue.replace(/\t/g,spacer(1,options.tabStop)).replace(/\n([^$])/g,"\n".concat(spacer(lvl+1,options.tabStop),"$1"))},formatPropValue=function(propValue,inline,lvl,options){if("number"==typeof propValue)return"{".concat(String(propValue),"}");if("string"==typeof propValue)return'"'.concat(propValue.replace(/"/g,"&quot;"),'"');if("symbol"===_typeof(propValue)){var symbolDescription=propValue.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return symbolDescription?"{Symbol('".concat(symbolDescription,"')}"):"{Symbol()}"}return"function"==typeof propValue?"{".concat(formatFunction(propValue,options),"}"):(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(propValue)?"{".concat(formatTreeNode(_parseReactElement(propValue,options),!0,lvl,options),"}"):propValue instanceof Date?isNaN(propValue.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(propValue.toISOString(),'")}'):function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!(!1===isObject(prot=ctor.prototype)||!1===prot.hasOwnProperty("isPrototypeOf")))}(propValue)||Array.isArray(propValue)?"{".concat(formatComplexDataStructure(propValue,inline,lvl,options),"}"):"{".concat(String(propValue),"}")},mergeSiblingPlainStringChildrenReducer=function(previousNodes,currentNode){var nodes=previousNodes.slice(0,previousNodes.length>0?previousNodes.length-1:0),previousNode=previousNodes[previousNodes.length-1];return!previousNode||"string"!==currentNode.type&&"number"!==currentNode.type||"string"!==previousNode.type&&"number"!==previousNode.type?(previousNode&&nodes.push(previousNode),nodes.push(currentNode)):nodes.push(createStringTreeNode(String(previousNode.value)+String(currentNode.value))),nodes};var formatOneChildren=function(inline,lvl,options){return function(element){return function(element,formattedElement,inline,lvl,options){var tabStop=options.tabStop;return"string"===element.type?formattedElement.split("\n").map(function(line,offset){return 0===offset?line:"".concat(spacer(lvl,tabStop)).concat(line)}).join("\n"):formattedElement}(element,formatTreeNode(element,inline,lvl,options),0,lvl,options)}},isInlineAttributeTooLong=function(attributes,inlineAttributeString,lvl,tabStop,maxInlineAttributesLineLength){return maxInlineAttributesLineLength?spacer(lvl,tabStop).length+inlineAttributeString.length>maxInlineAttributesLineLength:attributes.length>1},formatReactElementNode=function(node,inline,lvl,options){var type=node.type,_node$displayName=node.displayName,displayName=void 0===_node$displayName?"":_node$displayName,childrens=node.childrens,_node$props=node.props,props=void 0===_node$props?{}:_node$props,_node$defaultProps=node.defaultProps,defaultProps=void 0===_node$defaultProps?{}:_node$defaultProps;if("ReactElement"!==type)throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(type));var filterProps3=options.filterProps,maxInlineAttributesLineLength=options.maxInlineAttributesLineLength,showDefaultProps=options.showDefaultProps,sortProps=options.sortProps,tabStop=options.tabStop,out="<".concat(displayName),outInlineAttr=out,outMultilineAttr=out,containsMultilineAttr=!1,visibleAttributeNames=[],propFilter=function createPropFilter(props,filter){return Array.isArray(filter)?function(key){return-1===filter.indexOf(key)}:function(key){return filter(props[key],key)}}(props,filterProps3);Object.keys(props).filter(propFilter).filter(function(defaultProps,props){return function(propName){var haveDefaultValue=Object.keys(defaultProps).includes(propName);return!haveDefaultValue||haveDefaultValue&&defaultProps[propName]!==props[propName]}}(defaultProps,props)).forEach(function(propName){return visibleAttributeNames.push(propName)}),Object.keys(defaultProps).filter(propFilter).filter(function(){return showDefaultProps}).filter(function(defaultPropName){return!visibleAttributeNames.includes(defaultPropName)}).forEach(function(defaultPropName){return visibleAttributeNames.push(defaultPropName)});var shouldSortUserProps,attributes=(shouldSortUserProps=sortProps,function(props){var haveKeyProp=props.includes("key"),haveRefProp=props.includes("ref"),userPropsOnly=props.filter(function(oneProp){return!["key","ref"].includes(oneProp)}),sortedProps=_toConsumableArray(shouldSortUserProps?userPropsOnly.sort():userPropsOnly);return haveRefProp&&sortedProps.unshift("ref"),haveKeyProp&&sortedProps.unshift("key"),sortedProps})(visibleAttributeNames);if(attributes.forEach(function(attributeName){var _formatProp=function(name,hasValue,value,hasDefaultValue,defaultValue,inline,lvl,options){if(!hasValue&&!hasDefaultValue)throw new Error('The prop "'.concat(name,'" has no value and no default: could not be formatted'));var usedValue=hasValue?value:defaultValue,useBooleanShorthandSyntax=options.useBooleanShorthandSyntax,tabStop=options.tabStop,formattedPropValue=formatPropValue(usedValue,inline,lvl,options),attributeFormattedInline=" ",attributeFormattedMultiline="\n".concat(spacer(lvl+1,tabStop)),isMultilineAttribute=formattedPropValue.includes("\n");return useBooleanShorthandSyntax&&"{false}"===formattedPropValue&&!hasDefaultValue?(attributeFormattedInline="",attributeFormattedMultiline=""):useBooleanShorthandSyntax&&"{true}"===formattedPropValue?(attributeFormattedInline+="".concat(name),attributeFormattedMultiline+="".concat(name)):(attributeFormattedInline+="".concat(name,"=").concat(formattedPropValue),attributeFormattedMultiline+="".concat(name,"=").concat(formattedPropValue)),{attributeFormattedInline,attributeFormattedMultiline,isMultilineAttribute}}(attributeName,Object.keys(props).includes(attributeName),props[attributeName],Object.keys(defaultProps).includes(attributeName),defaultProps[attributeName],inline,lvl,options),attributeFormattedInline=_formatProp.attributeFormattedInline,attributeFormattedMultiline=_formatProp.attributeFormattedMultiline;_formatProp.isMultilineAttribute&&(containsMultilineAttr=!0),outInlineAttr+=attributeFormattedInline,outMultilineAttr+=attributeFormattedMultiline}),outMultilineAttr+="\n".concat(spacer(lvl,tabStop)),out=function(attributes,inlineAttributeString,containsMultilineAttr,inline,lvl,tabStop,maxInlineAttributesLineLength){return(isInlineAttributeTooLong(attributes,inlineAttributeString,lvl,tabStop,maxInlineAttributesLineLength)||containsMultilineAttr)&&!inline}(attributes,outInlineAttr,containsMultilineAttr,inline,lvl,tabStop,maxInlineAttributesLineLength)?outMultilineAttr:outInlineAttr,childrens&&childrens.length>0){var newLvl=lvl+1;out+=">",inline||(out+="\n",out+=spacer(newLvl,tabStop)),out+=childrens.reduce(mergeSiblingPlainStringChildrenReducer,[]).map(formatOneChildren(inline,newLvl,options)).join(inline?"":"\n".concat(spacer(newLvl,tabStop))),inline||(out+="\n",out+=spacer(newLvl-1,tabStop)),out+="</".concat(displayName,">")}else isInlineAttributeTooLong(attributes,outInlineAttr,lvl,tabStop,maxInlineAttributesLineLength)||(out+=" "),out+="/>";return out},jsxStopChars=["<",">","{","}"],escape2=function(s){return function(s){return jsxStopChars.some(function(jsxStopChar){return s.includes(jsxStopChar)})}(s)?"{`".concat(s,"`}"):s},formatTreeNode=function(node,inline,lvl,options){if("number"===node.type)return String(node.value);if("string"===node.type)return node.value?"".concat((s=escape2(String(node.value)),(result=s).endsWith(" ")&&(result=result.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),result.startsWith(" ")&&(result=result.replace(/^(\s+)(.*)$/,"{'$1'}$2")),result)):"";var s,result;if("ReactElement"===node.type)return formatReactElementNode(node,inline,lvl,options);if("ReactFragment"===node.type)return function(node,inline,lvl,options){var displayName,type=node.type,key=node.key,childrens=node.childrens;if("ReactFragment"!==type)throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(type));return displayName=options.useFragmentShortSyntax?0===node.childrens.length||node.key?"React.Fragment":"":"React.Fragment",formatReactElementNode(function(displayName,key,childrens){var props={};return key&&(props={key}),{type:"ReactElement",displayName,props,defaultProps:{},childrens}}(displayName,key,childrens),inline,lvl,options)}(node,inline,lvl,options);throw new TypeError('Unknow format type "'.concat(node.type,'"'))},reactElementToJsxString=function(element){var _ref=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_ref$filterProps=_ref.filterProps,filterProps3=void 0===_ref$filterProps?[]:_ref$filterProps,_ref$showDefaultProps=_ref.showDefaultProps,showDefaultProps=void 0===_ref$showDefaultProps||_ref$showDefaultProps,_ref$showFunctions=_ref.showFunctions,showFunctions=void 0!==_ref$showFunctions&&_ref$showFunctions,functionValue=_ref.functionValue,_ref$tabStop=_ref.tabStop,tabStop=void 0===_ref$tabStop?2:_ref$tabStop,_ref$useBooleanShorth=_ref.useBooleanShorthandSyntax,useBooleanShorthandSyntax=void 0===_ref$useBooleanShorth||_ref$useBooleanShorth,_ref$useFragmentShort=_ref.useFragmentShortSyntax,useFragmentShortSyntax=void 0===_ref$useFragmentShort||_ref$useFragmentShort,_ref$sortProps=_ref.sortProps,sortProps=void 0===_ref$sortProps||_ref$sortProps,maxInlineAttributesLineLength=_ref.maxInlineAttributesLineLength,displayName=_ref.displayName;if(!element)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var options={filterProps:filterProps3,showDefaultProps,showFunctions,functionValue,tabStop,useBooleanShorthandSyntax,useFragmentShortSyntax,sortProps,maxInlineAttributesLineLength,displayName};return function(node,options){return formatTreeNode(node,!1,0,options)}(_parseReactElement(element,options),options)}},"./node_modules/@storybook/react/dist/chunk-XLZBPYSH.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{t:()=>applyDecorators});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),storybook_preview_api__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/preview-api"),applyDecorators=(storyFn,decorators)=>(0,storybook_preview_api__WEBPACK_IMPORTED_MODULE_1__.defaultDecorateStory)(context=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(storyFn,context),decorators)},"./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{E:()=>__esm,P$:()=>__commonJS,VA:()=>__export,Yp:()=>__toCommonJS,f1:()=>__toESM});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res},__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},__copyProps(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod)},"./node_modules/@storybook/react/dist/entry-preview-argtypes.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{argTypesEnhancers:()=>argTypesEnhancers,parameters:()=>parameters});var chunk_6BNVLEVL=__webpack_require__("./node_modules/@storybook/react/dist/chunk-6BNVLEVL.mjs"),chunk_XP5HYGXS=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),docs_tools=__webpack_require__("./node_modules/storybook/dist/docs-tools/index.js"),require_estraverse=(0,chunk_XP5HYGXS.P$)({"../../node_modules/estraverse/estraverse.js"(exports){!function clone(exports2){var Syntax,VisitorOption,VisitorKeys,BREAK,SKIP,REMOVE;function deepCopy(obj){var key,val,ret={};for(key in obj)obj.hasOwnProperty(key)&&(val=obj[key],ret[key]="object"==typeof val&&null!==val?deepCopy(val):val);return ret}function Reference(parent,key){this.parent=parent,this.key=key}function Element(node,path,wrap,ref2){this.node=node,this.path=path,this.wrap=wrap,this.ref=ref2}function Controller(){}function isNode(node){return null!=node&&("object"==typeof node&&"string"==typeof node.type)}function isProperty(nodeType,key){return(nodeType===Syntax.ObjectExpression||nodeType===Syntax.ObjectPattern)&&"properties"===key}function candidateExistsInLeaveList(leavelist,candidate){for(var i=leavelist.length-1;i>=0;--i)if(leavelist[i].node===candidate)return!0;return!1}function traverse(root,visitor){return(new Controller).traverse(root,visitor)}function extendCommentRange(comment,tokens){var target;return target=function upperBound(array,func){var diff,len,i,current2;for(len=array.length,i=0;len;)func(array[current2=i+(diff=len>>>1)])?len=diff:(i=current2+1,len-=diff+1);return i}(tokens,function(token){return token.range[0]>comment.range[0]}),comment.extendedRange=[comment.range[0],comment.range[1]],target!==tokens.length&&(comment.extendedRange[1]=tokens[target].range[0]),(target-=1)>=0&&(comment.extendedRange[0]=tokens[target].range[1]),comment}return Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},VisitorKeys={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},VisitorOption={Break:BREAK={},Skip:SKIP={},Remove:REMOVE={}},Reference.prototype.replace=function(node){this.parent[this.key]=node},Reference.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},Controller.prototype.path=function(){var i,iz,j,jz,result;function addToPath(result2,path2){if(Array.isArray(path2))for(j=0,jz=path2.length;j<jz;++j)result2.push(path2[j]);else result2.push(path2)}if(!this.__current.path)return null;for(result=[],i=2,iz=this.__leavelist.length;i<iz;++i)addToPath(result,this.__leavelist[i].path);return addToPath(result,this.__current.path),result},Controller.prototype.type=function(){return this.current().type||this.__current.wrap},Controller.prototype.parents=function(){var i,iz,result;for(result=[],i=1,iz=this.__leavelist.length;i<iz;++i)result.push(this.__leavelist[i].node);return result},Controller.prototype.current=function(){return this.__current.node},Controller.prototype.__execute=function(callback,element){var previous,result;return result=void 0,previous=this.__current,this.__current=element,this.__state=null,callback&&(result=callback.call(this,element.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=previous,result},Controller.prototype.notify=function(flag){this.__state=flag},Controller.prototype.skip=function(){this.notify(SKIP)},Controller.prototype.break=function(){this.notify(BREAK)},Controller.prototype.remove=function(){this.notify(REMOVE)},Controller.prototype.__initialize=function(root,visitor){this.visitor=visitor,this.root=root,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===visitor.fallback?this.__fallback=Object.keys:"function"==typeof visitor.fallback&&(this.__fallback=visitor.fallback),this.__keys=VisitorKeys,visitor.keys&&(this.__keys=Object.assign(Object.create(this.__keys),visitor.keys))},Controller.prototype.traverse=function(root,visitor){var worklist,leavelist,element,node,nodeType,ret,key,current2,current22,candidates,candidate,sentinel;for(this.__initialize(root,visitor),sentinel={},worklist=this.__worklist,leavelist=this.__leavelist,worklist.push(new Element(root,null,null,null)),leavelist.push(new Element(null,null,null,null));worklist.length;)if((element=worklist.pop())!==sentinel){if(element.node){if(ret=this.__execute(visitor.enter,element),this.__state===BREAK||ret===BREAK)return;if(worklist.push(sentinel),leavelist.push(element),this.__state===SKIP||ret===SKIP)continue;if(nodeType=(node=element.node).type||element.wrap,!(candidates=this.__keys[nodeType])){if(!this.__fallback)throw new Error("Unknown node type "+nodeType+".");candidates=this.__fallback(node)}for(current2=candidates.length;(current2-=1)>=0;)if(candidate=node[key=candidates[current2]])if(Array.isArray(candidate)){for(current22=candidate.length;(current22-=1)>=0;)if(candidate[current22]&&!candidateExistsInLeaveList(leavelist,candidate[current22])){if(isProperty(nodeType,candidates[current2]))element=new Element(candidate[current22],[key,current22],"Property",null);else{if(!isNode(candidate[current22]))continue;element=new Element(candidate[current22],[key,current22],null,null)}worklist.push(element)}}else if(isNode(candidate)){if(candidateExistsInLeaveList(leavelist,candidate))continue;worklist.push(new Element(candidate,key,null,null))}}}else if(element=leavelist.pop(),ret=this.__execute(visitor.leave,element),this.__state===BREAK||ret===BREAK)return},Controller.prototype.replace=function(root,visitor){var worklist,leavelist,node,nodeType,target,element,current2,current22,candidates,candidate,sentinel,outer,key;function removeElem(element2){var i,key2,nextElem,parent;if(element2.ref.remove())for(key2=element2.ref.key,parent=element2.ref.parent,i=worklist.length;i--;)if((nextElem=worklist[i]).ref&&nextElem.ref.parent===parent){if(nextElem.ref.key<key2)break;--nextElem.ref.key}}for(this.__initialize(root,visitor),sentinel={},worklist=this.__worklist,leavelist=this.__leavelist,element=new Element(root,null,null,new Reference(outer={root},"root")),worklist.push(element),leavelist.push(element);worklist.length;)if((element=worklist.pop())!==sentinel){if(void 0!==(target=this.__execute(visitor.enter,element))&&target!==BREAK&&target!==SKIP&&target!==REMOVE&&(element.ref.replace(target),element.node=target),(this.__state===REMOVE||target===REMOVE)&&(removeElem(element),element.node=null),this.__state===BREAK||target===BREAK)return outer.root;if((node=element.node)&&(worklist.push(sentinel),leavelist.push(element),this.__state!==SKIP&&target!==SKIP)){if(nodeType=node.type||element.wrap,!(candidates=this.__keys[nodeType])){if(!this.__fallback)throw new Error("Unknown node type "+nodeType+".");candidates=this.__fallback(node)}for(current2=candidates.length;(current2-=1)>=0;)if(candidate=node[key=candidates[current2]])if(Array.isArray(candidate)){for(current22=candidate.length;(current22-=1)>=0;)if(candidate[current22]){if(isProperty(nodeType,candidates[current2]))element=new Element(candidate[current22],[key,current22],"Property",new Reference(candidate,current22));else{if(!isNode(candidate[current22]))continue;element=new Element(candidate[current22],[key,current22],null,new Reference(candidate,current22))}worklist.push(element)}}else isNode(candidate)&&worklist.push(new Element(candidate,key,null,new Reference(node,key)))}}else if(element=leavelist.pop(),void 0!==(target=this.__execute(visitor.leave,element))&&target!==BREAK&&target!==SKIP&&target!==REMOVE&&element.ref.replace(target),(this.__state===REMOVE||target===REMOVE)&&removeElem(element),this.__state===BREAK||target===BREAK)return outer.root;return outer.root},exports2.Syntax=Syntax,exports2.traverse=traverse,exports2.replace=function replace(root,visitor){return(new Controller).replace(root,visitor)},exports2.attachComments=function attachComments(tree,providedComments,tokens){var comment,len,i,cursor,comments=[];if(!tree.range)throw new Error("attachComments needs range information");if(!tokens.length){if(providedComments.length){for(i=0,len=providedComments.length;i<len;i+=1)(comment=deepCopy(providedComments[i])).extendedRange=[0,tree.range[0]],comments.push(comment);tree.leadingComments=comments}return tree}for(i=0,len=providedComments.length;i<len;i+=1)comments.push(extendCommentRange(deepCopy(providedComments[i]),tokens));return cursor=0,traverse(tree,{enter:function(node){for(var comment2;cursor<comments.length&&!((comment2=comments[cursor]).extendedRange[1]>node.range[0]);)comment2.extendedRange[1]===node.range[0]?(node.leadingComments||(node.leadingComments=[]),node.leadingComments.push(comment2),comments.splice(cursor,1)):cursor+=1;return cursor===comments.length?VisitorOption.Break:comments[cursor].extendedRange[0]>node.range[1]?VisitorOption.Skip:void 0}}),cursor=0,traverse(tree,{leave:function(node){for(var comment2;cursor<comments.length&&(comment2=comments[cursor],!(node.range[1]<comment2.extendedRange[0]));)node.range[1]===comment2.extendedRange[0]?(node.trailingComments||(node.trailingComments=[]),node.trailingComments.push(comment2),comments.splice(cursor,1)):cursor+=1;return cursor===comments.length?VisitorOption.Break:comments[cursor].extendedRange[0]>node.range[1]?VisitorOption.Skip:void 0}}),tree},exports2.VisitorKeys=VisitorKeys,exports2.VisitorOption=VisitorOption,exports2.Controller=Controller,exports2.cloneEnvironment=function(){return clone({})},exports2}(exports)}}),require_ast=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/ast.js"(exports,module){!function(){function isStatement(node){if(null==node)return!1;switch(node.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function trailingStatement(node){switch(node.type){case"IfStatement":return null!=node.alternate?node.alternate:node.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return node.body}return null}module.exports={isExpression:function isExpression(node){if(null==node)return!1;switch(node.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement,isIterationStatement:function isIterationStatement(node){if(null==node)return!1;switch(node.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(node){return isStatement(node)||null!=node&&"FunctionDeclaration"===node.type},isProblematicIfStatement:function isProblematicIfStatement(node){var current2;if("IfStatement"!==node.type||null==node.alternate)return!1;current2=node.consequent;do{if("IfStatement"===current2.type&&null==current2.alternate)return!0;current2=trailingStatement(current2)}while(current2);return!1},trailingStatement}}()}}),require_code=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/code.js"(exports,module){!function(){var ES6Regex,ES5Regex,NON_ASCII_WHITESPACES,IDENTIFIER_START,IDENTIFIER_PART,ch;function fromCodePoint(cp){return cp<=65535?String.fromCharCode(cp):String.fromCharCode(Math.floor((cp-65536)/1024)+55296)+String.fromCharCode((cp-65536)%1024+56320)}for(ES5Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},ES6Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},NON_ASCII_WHITESPACES=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],IDENTIFIER_START=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_START[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||36===ch||95===ch;for(IDENTIFIER_PART=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_PART[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||ch>=48&&ch<=57||36===ch||95===ch;module.exports={isDecimalDigit:function isDecimalDigit2(ch2){return 48<=ch2&&ch2<=57},isHexDigit:function isHexDigit2(ch2){return 48<=ch2&&ch2<=57||97<=ch2&&ch2<=102||65<=ch2&&ch2<=70},isOctalDigit:function isOctalDigit2(ch2){return ch2>=48&&ch2<=55},isWhiteSpace:function isWhiteSpace(ch2){return 32===ch2||9===ch2||11===ch2||12===ch2||160===ch2||ch2>=5760&&NON_ASCII_WHITESPACES.indexOf(ch2)>=0},isLineTerminator:function isLineTerminator(ch2){return 10===ch2||13===ch2||8232===ch2||8233===ch2},isIdentifierStartES5:function isIdentifierStartES5(ch2){return ch2<128?IDENTIFIER_START[ch2]:ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2))},isIdentifierPartES5:function isIdentifierPartES5(ch2){return ch2<128?IDENTIFIER_PART[ch2]:ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2))},isIdentifierStartES6:function isIdentifierStartES6(ch2){return ch2<128?IDENTIFIER_START[ch2]:ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2))},isIdentifierPartES6:function isIdentifierPartES6(ch2){return ch2<128?IDENTIFIER_PART[ch2]:ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2))}}}()}}),require_keyword=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/keyword.js"(exports,module){!function(){var code=require_code();function isKeywordES5(id,strict){return!(!strict&&"yield"===id)&&isKeywordES6(id,strict)}function isKeywordES6(id,strict){if(strict&&function isStrictModeReservedWordES6(id){switch(id){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(id))return!0;switch(id.length){case 2:return"if"===id||"in"===id||"do"===id;case 3:return"var"===id||"for"===id||"new"===id||"try"===id;case 4:return"this"===id||"else"===id||"case"===id||"void"===id||"with"===id||"enum"===id;case 5:return"while"===id||"break"===id||"catch"===id||"throw"===id||"const"===id||"yield"===id||"class"===id||"super"===id;case 6:return"return"===id||"typeof"===id||"delete"===id||"switch"===id||"export"===id||"import"===id;case 7:return"default"===id||"finally"===id||"extends"===id;case 8:return"function"===id||"continue"===id||"debugger"===id;case 10:return"instanceof"===id;default:return!1}}function isReservedWordES5(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES5(id,strict)}function isReservedWordES6(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES6(id,strict)}function isIdentifierNameES5(id){var i,iz,ch;if(0===id.length||(ch=id.charCodeAt(0),!code.isIdentifierStartES5(ch)))return!1;for(i=1,iz=id.length;i<iz;++i)if(ch=id.charCodeAt(i),!code.isIdentifierPartES5(ch))return!1;return!0}function decodeUtf16(lead,trail){return 1024*(lead-55296)+(trail-56320)+65536}function isIdentifierNameES6(id){var i,iz,ch,lowCh,check;if(0===id.length)return!1;for(check=code.isIdentifierStartES6,i=0,iz=id.length;i<iz;++i){if(55296<=(ch=id.charCodeAt(i))&&ch<=56319){if(++i>=iz||!(56320<=(lowCh=id.charCodeAt(i))&&lowCh<=57343))return!1;ch=decodeUtf16(ch,lowCh)}if(!check(ch))return!1;check=code.isIdentifierPartES6}return!0}module.exports={isKeywordES5,isKeywordES6,isReservedWordES5,isReservedWordES6,isRestrictedWord:function isRestrictedWord(id){return"eval"===id||"arguments"===id},isIdentifierNameES5,isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(id,strict){return isIdentifierNameES5(id)&&!isReservedWordES5(id,strict)},isIdentifierES6:function isIdentifierES6(id,strict){return isIdentifierNameES6(id)&&!isReservedWordES6(id,strict)}}}()}}),require_utils=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/utils.js"(exports){exports.ast=require_ast(),exports.code=require_code(),exports.keyword=require_keyword()}}),require_base64=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(exports){var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number<intToCharMap.length)return intToCharMap[number];throw new TypeError("Must be between 0 and 63: "+number)},exports.decode=function(charCode){return 65<=charCode&&charCode<=90?charCode-65:97<=charCode&&charCode<=122?charCode-97+26:48<=charCode&&charCode<=57?charCode-48+52:43==charCode?62:47==charCode?63:-1}}}),require_base64_vlq=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(exports){var base64=require_base64();exports.encode=function(aValue){var digit,encoded="",vlq=function toVLQSigned(aValue){return aValue<0?1+(-aValue<<1):0+(aValue<<1)}(aValue);do{digit=31&vlq,(vlq>>>=5)>0&&(digit|=32),encoded+=base64.encode(digit)}while(vlq>0);return encoded},exports.decode=function(aStr,aIndex,aOutParam){var continuation,digit,strLen=aStr.length,result=0,shift=0;do{if(aIndex>=strLen)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(digit=base64.decode(aStr.charCodeAt(aIndex++))))throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));continuation=!!(32&digit),result+=(digit&=31)<<shift,shift+=5}while(continuation);aOutParam.value=function fromVLQSigned(aValue){var shifted=aValue>>1;return 1&~aValue?shifted:-shifted}(result),aOutParam.rest=aIndex}}}),require_util=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/util.js"(exports){exports.getArg=function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs)return aArgs[aName];if(3===arguments.length)return aDefaultValue;throw new Error('"'+aName+'" is a required argument.')};var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);return match?{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}:null}function urlGenerate(aParsedUrl){var url="";return aParsedUrl.scheme&&(url+=aParsedUrl.scheme+":"),url+="//",aParsedUrl.auth&&(url+=aParsedUrl.auth+"@"),aParsedUrl.host&&(url+=aParsedUrl.host),aParsedUrl.port&&(url+=":"+aParsedUrl.port),aParsedUrl.path&&(url+=aParsedUrl.path),url}function normalize(aPath){var path=aPath,url=urlParse(aPath);if(url){if(!url.path)return aPath;path=url.path}for(var part,isAbsolute=exports.isAbsolute(path),parts=path.split(/\/+/),up=0,i=parts.length-1;i>=0;i--)"."===(part=parts[i])?parts.splice(i,1):".."===part?up++:up>0&&(""===part?(parts.splice(i+1,up),up=0):(parts.splice(i,2),up--));return""===(path=parts.join("/"))&&(path=isAbsolute?"/":"."),url?(url.path=path,urlGenerate(url)):path}function join(aRoot,aPath){""===aRoot&&(aRoot="."),""===aPath&&(aPath=".");var aPathUrl=urlParse(aPath),aRootUrl=urlParse(aRoot);if(aRootUrl&&(aRoot=aRootUrl.path||"/"),aPathUrl&&!aPathUrl.scheme)return aRootUrl&&(aPathUrl.scheme=aRootUrl.scheme),urlGenerate(aPathUrl);if(aPathUrl||aPath.match(dataUrlRegexp))return aPath;if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path)return aRootUrl.host=aPath,urlGenerate(aRootUrl);var joined="/"===aPath.charAt(0)?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);return aRootUrl?(aRootUrl.path=joined,urlGenerate(aRootUrl)):joined}exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=join,exports.isAbsolute=function(aPath){return"/"===aPath.charAt(0)||urlRegexp.test(aPath)},exports.relative=function relative(aRoot,aPath){""===aRoot&&(aRoot="."),aRoot=aRoot.replace(/\/$/,"");for(var level=0;0!==aPath.indexOf(aRoot+"/");){var index=aRoot.lastIndexOf("/");if(index<0||(aRoot=aRoot.slice(0,index)).match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)};var supportsNullProto=!("__proto__"in Object.create(null));function identity(s){return s}function isProtoString(s){if(!s)return!1;var length=s.length;if(length<9||95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;i>=0;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:null===aStr1?1:null===aStr2?-1:aStr1>aStr2?1:-1}exports.toSetString=supportsNullProto?identity:function toSetString(aStr){return isProtoString(aStr)?"$"+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function fromSetString(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp=strcmp(mappingA.source,mappingB.source);return 0!==cmp||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||(0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)||onlyCompareOriginal)||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=mappingA.generatedLine-mappingB.generatedLine)?cmp:strcmp(mappingA.name,mappingB.name)},exports.compareByGeneratedPositionsDeflated=function compareByGeneratedPositionsDeflated(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||(0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||onlyCompareGenerated)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)},exports.compareByGeneratedPositionsInflated=function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)},exports.parseSourceMapInput=function parseSourceMapInput(str){return JSON.parse(str.replace(/^\)]}'[^\n]*\n/,""))},exports.computeSourceURL=function computeSourceURL(sourceRoot,sourceURL,sourceMapURL){if(sourceURL=sourceURL||"",sourceRoot&&("/"!==sourceRoot[sourceRoot.length-1]&&"/"!==sourceURL[0]&&(sourceRoot+="/"),sourceURL=sourceRoot+sourceURL),sourceMapURL){var parsed=urlParse(sourceMapURL);if(!parsed)throw new Error("sourceMapURL could not be parsed");if(parsed.path){var index=parsed.path.lastIndexOf("/");index>=0&&(parsed.path=parsed.path.substring(0,index+1))}sourceURL=join(urlGenerate(parsed),sourceURL)}return normalize(sourceURL)}}}),require_array_set=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(exports){var util=require_util(),has2=Object.prototype.hasOwnProperty,hasNativeMap=typeof Map<"u";function ArraySet(){this._array=[],this._set=hasNativeMap?new Map:Object.create(null)}ArraySet.fromArray=function(aArray,aAllowDuplicates){for(var set=new ArraySet,i=0,len=aArray.length;i<len;i++)set.add(aArray[i],aAllowDuplicates);return set},ArraySet.prototype.size=function(){return hasNativeMap?this._set.size:Object.getOwnPropertyNames(this._set).length},ArraySet.prototype.add=function(aStr,aAllowDuplicates){var sStr=hasNativeMap?aStr:util.toSetString(aStr),isDuplicate=hasNativeMap?this.has(aStr):has2.call(this._set,sStr),idx=this._array.length;(!isDuplicate||aAllowDuplicates)&&this._array.push(aStr),isDuplicate||(hasNativeMap?this._set.set(aStr,idx):this._set[sStr]=idx)},ArraySet.prototype.has=function(aStr){if(hasNativeMap)return this._set.has(aStr);var sStr=util.toSetString(aStr);return has2.call(this._set,sStr)},ArraySet.prototype.indexOf=function(aStr){if(hasNativeMap){var idx=this._set.get(aStr);if(idx>=0)return idx}else{var sStr=util.toSetString(aStr);if(has2.call(this._set,sStr))return this._set[sStr]}throw new Error('"'+aStr+'" is not in the set.')},ArraySet.prototype.at=function(aIdx){if(aIdx>=0&&aIdx<this._array.length)return this._array[aIdx];throw new Error("No element indexed by "+aIdx)},ArraySet.prototype.toArray=function(){return this._array.slice()},exports.ArraySet=ArraySet}}),require_mapping_list=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(exports){var util=require_util();function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function(aMapping){!function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0}(this._last,aMapping)?(this._sorted=!1,this._array.push(aMapping)):(this._last=aMapping,this._array.push(aMapping))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.MappingList=MappingList}}),require_source_map_generator=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(exports){var base64VLQ=require_base64_vlq(),util=require_util(),ArraySet=require_array_set().ArraySet,MappingList=require_mapping_list().MappingList;function SourceMapGenerator(aArgs){aArgs||(aArgs={}),this._file=util.getArg(aArgs,"file",null),this._sourceRoot=util.getArg(aArgs,"sourceRoot",null),this._skipValidation=util.getArg(aArgs,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot,generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot});return aSourceMapConsumer.eachMapping(function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};null!=mapping.source&&(newMapping.source=mapping.source,null!=sourceRoot&&(newMapping.source=util.relative(sourceRoot,newMapping.source)),newMapping.original={line:mapping.originalLine,column:mapping.originalColumn},null!=mapping.name&&(newMapping.name=mapping.name)),generator.addMapping(newMapping)}),aSourceMapConsumer.sources.forEach(function(sourceFile){var sourceRelative=sourceFile;null!==sourceRoot&&(sourceRelative=util.relative(sourceRoot,sourceFile)),generator._sources.has(sourceRelative)||generator._sources.add(sourceRelative);var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&generator.setSourceContent(sourceFile,content)}),generator},SourceMapGenerator.prototype.addMapping=function(aArgs){var generated=util.getArg(aArgs,"generated"),original=util.getArg(aArgs,"original",null),source=util.getArg(aArgs,"source",null),name=util.getArg(aArgs,"name",null);this._skipValidation||this._validateMapping(generated,original,source,name),null!=source&&(source=String(source),this._sources.has(source)||this._sources.add(source)),null!=name&&(name=String(name),this._names.has(name)||this._names.add(name)),this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:null!=original&&original.line,originalColumn:null!=original&&original.column,source,name})},SourceMapGenerator.prototype.setSourceContent=function(aSourceFile,aSourceContent){var source=aSourceFile;null!=this._sourceRoot&&(source=util.relative(this._sourceRoot,source)),null!=aSourceContent?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util.toSetString(source)]=aSourceContent):this._sourcesContents&&(delete this._sourcesContents[util.toSetString(source)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(null==aSourceFile){if(null==aSourceMapConsumer.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');sourceFile=aSourceMapConsumer.file}var sourceRoot=this._sourceRoot;null!=sourceRoot&&(sourceFile=util.relative(sourceRoot,sourceFile));var newSources=new ArraySet,newNames=new ArraySet;this._mappings.unsortedForEach(function(mapping){if(mapping.source===sourceFile&&null!=mapping.originalLine){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});null!=original.source&&(mapping.source=original.source,null!=aSourceMapPath&&(mapping.source=util.join(aSourceMapPath,mapping.source)),null!=sourceRoot&&(mapping.source=util.relative(sourceRoot,mapping.source)),mapping.originalLine=original.line,mapping.originalColumn=original.column,null!=original.name&&(mapping.name=original.name))}var source=mapping.source;null!=source&&!newSources.has(source)&&newSources.add(source);var name=mapping.name;null!=name&&!newNames.has(name)&&newNames.add(name)},this),this._sources=newSources,this._names=newNames,aSourceMapConsumer.sources.forEach(function(sourceFile2){var content=aSourceMapConsumer.sourceContentFor(sourceFile2);null!=content&&(null!=aSourceMapPath&&(sourceFile2=util.join(aSourceMapPath,sourceFile2)),null!=sourceRoot&&(sourceFile2=util.relative(sourceRoot,sourceFile2)),this.setSourceContent(sourceFile2,content))},this)},SourceMapGenerator.prototype._validateMapping=function(aGenerated,aOriginal,aSource,aName){if(aOriginal&&"number"!=typeof aOriginal.line&&"number"!=typeof aOriginal.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0)||aOriginal||aSource||aName){if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))}},SourceMapGenerator.prototype._serializeMappings=function(){for(var next,mapping,nameIdx,sourceIdx,previousGeneratedColumn=0,previousGeneratedLine=1,previousOriginalColumn=0,previousOriginalLine=0,previousName=0,previousSource=0,result="",mappings=this._mappings.toArray(),i=0,len=mappings.length;i<len;i++){if(next="",(mapping=mappings[i]).generatedLine!==previousGeneratedLine)for(previousGeneratedColumn=0;mapping.generatedLine!==previousGeneratedLine;)next+=";",previousGeneratedLine++;else if(i>0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1]))continue;next+=","}next+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn),previousGeneratedColumn=mapping.generatedColumn,null!=mapping.source&&(sourceIdx=this._sources.indexOf(mapping.source),next+=base64VLQ.encode(sourceIdx-previousSource),previousSource=sourceIdx,next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine),previousOriginalLine=mapping.originalLine-1,next+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn),previousOriginalColumn=mapping.originalColumn,null!=mapping.name&&(nameIdx=this._names.indexOf(mapping.name),next+=base64VLQ.encode(nameIdx-previousName),previousName=nameIdx)),result+=next}return result},SourceMapGenerator.prototype._generateSourcesContent=function(aSources,aSourceRoot){return aSources.map(function(source){if(!this._sourcesContents)return null;null!=aSourceRoot&&(source=util.relative(aSourceRoot,source));var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null},this)},SourceMapGenerator.prototype.toJSON=function(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(map.file=this._file),null!=this._sourceRoot&&(map.sourceRoot=this._sourceRoot),this._sourcesContents&&(map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)),map},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},exports.SourceMapGenerator=SourceMapGenerator}}),require_binary_search=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(exports){function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow,cmp=aCompare(aNeedle,aHaystack[mid],!0);return 0===cmp?mid:cmp>0?aHigh-mid>1?recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?aHigh<aHaystack.length?aHigh:-1:mid:mid-aLow>1?recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?mid:aLow<0?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0)return-1;for(;index-1>=0&&0===aCompare(aHaystack[index],aHaystack[index-1],!0);)--index;return index}}}),require_quick_sort=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(exports){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function doQuickSort(ary,comparator,p,r){if(p<r){var i=p-1;swap(ary,function randomIntInRange(low,high){return Math.round(low+Math.random()*(high-low))}(p,r),r);for(var pivot=ary[r],j=p;j<r;j++)comparator(ary[j],pivot)<=0&&swap(ary,i+=1,j);swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1),doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}}}),require_source_map_consumer=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(exports){var util=require_util(),binarySearch=require_binary_search(),ArraySet=require_array_set().ArraySet,base64VLQ=require_base64_vlq(),quickSort=require_quick_sort().quickSort;function SourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;return"string"==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap)),null!=sourceMap.sections?new IndexedSourceMapConsumer(sourceMap,aSourceMapURL):new BasicSourceMapConsumer(sourceMap,aSourceMapURL)}function BasicSourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap));var version2=util.getArg(sourceMap,"version"),sources=util.getArg(sourceMap,"sources"),names=util.getArg(sourceMap,"names",[]),sourceRoot=util.getArg(sourceMap,"sourceRoot",null),sourcesContent=util.getArg(sourceMap,"sourcesContent",null),mappings=util.getArg(sourceMap,"mappings"),file=util.getArg(sourceMap,"file",null);if(version2!=this._version)throw new Error("Unsupported version: "+version2);sourceRoot&&(sourceRoot=util.normalize(sourceRoot)),sources=sources.map(String).map(util.normalize).map(function(source){return sourceRoot&&util.isAbsolute(sourceRoot)&&util.isAbsolute(source)?util.relative(sourceRoot,source):source}),this._names=ArraySet.fromArray(names.map(String),!0),this._sources=ArraySet.fromArray(sources,!0),this._absoluteSources=this._sources.toArray().map(function(s){return util.computeSourceURL(sourceRoot,s,aSourceMapURL)}),this.sourceRoot=sourceRoot,this.sourcesContent=sourcesContent,this._mappings=mappings,this._sourceMapURL=aSourceMapURL,this.file=file}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap));var version2=util.getArg(sourceMap,"version"),sections=util.getArg(sourceMap,"sections");if(version2!=this._version)throw new Error("Unsupported version: "+version2);this._sources=new ArraySet,this._names=new ArraySet;var lastOffset={line:-1,column:0};this._sections=sections.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var offset2=util.getArg(s,"offset"),offsetLine=util.getArg(offset2,"line"),offsetColumn=util.getArg(offset2,"column");if(offsetLine<lastOffset.line||offsetLine===lastOffset.line&&offsetColumn<lastOffset.column)throw new Error("Section offsets must be ordered and non-overlapping.");return lastOffset=offset2,{generatedOffset:{generatedLine:offsetLine+1,generatedColumn:offsetColumn+1},consumer:new SourceMapConsumer(util.getArg(s,"map"),aSourceMapURL)}})}SourceMapConsumer.fromSourceMap=function(aSourceMap,aSourceMapURL){return BasicSourceMapConsumer.fromSourceMap(aSourceMap,aSourceMapURL)},SourceMapConsumer.prototype._version=3,SourceMapConsumer.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer.prototype._charIsMappingSeparator=function(aStr,index){var c=aStr.charAt(index);return";"===c||","===c},SourceMapConsumer.prototype._parseMappings=function(aStr,aSourceRoot){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer.GENERATED_ORDER=1,SourceMapConsumer.ORIGINAL_ORDER=2,SourceMapConsumer.GREATEST_LOWER_BOUND=1,SourceMapConsumer.LEAST_UPPER_BOUND=2,SourceMapConsumer.prototype.eachMapping=function(aCallback,aContext,aOrder){var mappings,context=aContext||null;switch(aOrder||SourceMapConsumer.GENERATED_ORDER){case SourceMapConsumer.GENERATED_ORDER:mappings=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:mappings=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var sourceRoot=this.sourceRoot;mappings.map(function(mapping){var source=null===mapping.source?null:this._sources.at(mapping.source);return{source:source=util.computeSourceURL(sourceRoot,source,this._sourceMapURL),generatedLine:mapping.generatedLine,generatedColumn:mapping.generatedColumn,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:null===mapping.name?null:this._names.at(mapping.name)}},this).forEach(aCallback,context)},SourceMapConsumer.prototype.allGeneratedPositionsFor=function(aArgs){var line=util.getArg(aArgs,"line"),needle={source:util.getArg(aArgs,"source"),originalLine:line,originalColumn:util.getArg(aArgs,"column",0)};if(needle.source=this._findSourceIndex(needle.source),needle.source<0)return[];var mappings=[],index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(index>=0){var mapping=this._originalMappings[index];if(void 0===aArgs.column)for(var originalLine=mapping.originalLine;mapping&&mapping.originalLine===originalLine;)mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}),mapping=this._originalMappings[++index];else for(var originalColumn=mapping.originalColumn;mapping&&mapping.originalLine===line&&mapping.originalColumn==originalColumn;)mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}),mapping=this._originalMappings[++index]}return mappings},exports.SourceMapConsumer=SourceMapConsumer,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.prototype._findSourceIndex=function(aSource){var i,relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),this._sources.has(relativeSource))return this._sources.indexOf(relativeSource);for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==aSource)return i;return-1},BasicSourceMapConsumer.fromSourceMap=function(aSourceMap,aSourceMapURL){var smc=Object.create(BasicSourceMapConsumer.prototype),names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),!0),sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),!0);smc.sourceRoot=aSourceMap._sourceRoot,smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot),smc.file=aSourceMap._file,smc._sourceMapURL=aSourceMapURL,smc._absoluteSources=smc._sources.toArray().map(function(s){return util.computeSourceURL(smc.sourceRoot,s,aSourceMapURL)});for(var generatedMappings=aSourceMap._mappings.toArray().slice(),destGeneratedMappings=smc.__generatedMappings=[],destOriginalMappings=smc.__originalMappings=[],i=0,length=generatedMappings.length;i<length;i++){var srcMapping=generatedMappings[i],destMapping=new Mapping;destMapping.generatedLine=srcMapping.generatedLine,destMapping.generatedColumn=srcMapping.generatedColumn,srcMapping.source&&(destMapping.source=sources.indexOf(srcMapping.source),destMapping.originalLine=srcMapping.originalLine,destMapping.originalColumn=srcMapping.originalColumn,srcMapping.name&&(destMapping.name=names.indexOf(srcMapping.name)),destOriginalMappings.push(destMapping)),destGeneratedMappings.push(destMapping)}return quickSort(smc.__originalMappings,util.compareByOriginalPositions),smc},BasicSourceMapConsumer.prototype._version=3,Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),BasicSourceMapConsumer.prototype._parseMappings=function(aStr,aSourceRoot){for(var mapping,str,segment,end,value,generatedLine=1,previousGeneratedColumn=0,previousOriginalLine=0,previousOriginalColumn=0,previousSource=0,previousName=0,length=aStr.length,index=0,cachedSegments={},temp={},originalMappings=[],generatedMappings=[];index<length;)if(";"===aStr.charAt(index))generatedLine++,index++,previousGeneratedColumn=0;else if(","===aStr.charAt(index))index++;else{for((mapping=new Mapping).generatedLine=generatedLine,end=index;end<length&&!this._charIsMappingSeparator(aStr,end);end++);if(segment=cachedSegments[str=aStr.slice(index,end)])index+=str.length;else{for(segment=[];index<end;)base64VLQ.decode(aStr,index,temp),value=temp.value,index=temp.rest,segment.push(value);if(2===segment.length)throw new Error("Found a source, but no line and column");if(3===segment.length)throw new Error("Found a source and line, but no column");cachedSegments[str]=segment}mapping.generatedColumn=previousGeneratedColumn+segment[0],previousGeneratedColumn=mapping.generatedColumn,segment.length>1&&(mapping.source=previousSource+segment[1],previousSource+=segment[1],mapping.originalLine=previousOriginalLine+segment[2],previousOriginalLine=mapping.originalLine,mapping.originalLine+=1,mapping.originalColumn=previousOriginalColumn+segment[3],previousOriginalColumn=mapping.originalColumn,segment.length>4&&(mapping.name=previousName+segment[4],previousName+=segment[4])),generatedMappings.push(mapping),"number"==typeof mapping.originalLine&&originalMappings.push(mapping)}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated),this.__generatedMappings=generatedMappings,quickSort(originalMappings,util.compareByOriginalPositions),this.__originalMappings=originalMappings},BasicSourceMapConsumer.prototype._findMapping=function(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){if(aNeedle[aLineName]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName]);if(aNeedle[aColumnName]<0)throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName]);return binarySearch.search(aNeedle,aMappings,aComparator,aBias)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var index=0;index<this._generatedMappings.length;++index){var mapping=this._generatedMappings[index];if(index+1<this._generatedMappings.length){var nextMapping=this._generatedMappings[index+1];if(mapping.generatedLine===nextMapping.generatedLine){mapping.lastGeneratedColumn=nextMapping.generatedColumn-1;continue}}mapping.lastGeneratedColumn=1/0}},BasicSourceMapConsumer.prototype.originalPositionFor=function(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")},index=this._findMapping(needle,this._generatedMappings,"generatedLine","generatedColumn",util.compareByGeneratedPositionsDeflated,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);null!==source&&(source=this._sources.at(source),source=util.computeSourceURL(this.sourceRoot,source,this._sourceMapURL));var name=util.getArg(mapping,"name",null);return null!==name&&(name=this._names.at(name)),{source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(sc){return null==sc}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){if(!this.sourcesContent)return null;var index=this._findSourceIndex(aSource);if(index>=0)return this.sourcesContent[index];var url,relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=relativeSource.replace(/^file:\/\//,"");if("file"==url.scheme&&this._sources.has(fileUriAbsPath))return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];if((!url.path||"/"==url.path)&&this._sources.has("/"+relativeSource))return this.sourcesContent[this._sources.indexOf("/"+relativeSource)]}if(nullOnMissing)return null;throw new Error('"'+relativeSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){var source=util.getArg(aArgs,"source");if((source=this._findSourceIndex(source))<0)return{line:null,column:null,lastColumn:null};var needle={source,originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")},index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._originalMappings[index];if(mapping.source===needle.source)return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},exports.BasicSourceMapConsumer=BasicSourceMapConsumer,IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var sources=[],i=0;i<this._sections.length;i++)for(var j=0;j<this._sections[i].consumer.sources.length;j++)sources.push(this._sections[i].consumer.sources[j]);return sources}}),IndexedSourceMapConsumer.prototype.originalPositionFor=function(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")},sectionIndex=binarySearch.search(needle,this._sections,function(needle2,section2){return needle2.generatedLine-section2.generatedOffset.generatedLine||needle2.generatedColumn-section2.generatedOffset.generatedColumn}),section=this._sections[sectionIndex];return section?section.consumer.originalPositionFor({line:needle.generatedLine-(section.generatedOffset.generatedLine-1),column:needle.generatedColumn-(section.generatedOffset.generatedLine===needle.generatedLine?section.generatedOffset.generatedColumn-1:0),bias:aArgs.bias}):{source:null,line:null,column:null,name:null}},IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(s){return s.consumer.hasContentsOfAllSources()})},IndexedSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){for(var i=0;i<this._sections.length;i++){var content=this._sections[i].consumer.sourceContentFor(aSource,!0);if(content)return content}if(nullOnMissing)return null;throw new Error('"'+aSource+'" is not in the SourceMap.')},IndexedSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];if(-1!==section.consumer._findSourceIndex(util.getArg(aArgs,"source"))){var generatedPosition=section.consumer.generatedPositionFor(aArgs);if(generatedPosition)return{line:generatedPosition.line+(section.generatedOffset.generatedLine-1),column:generatedPosition.column+(section.generatedOffset.generatedLine===generatedPosition.line?section.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},IndexedSourceMapConsumer.prototype._parseMappings=function(aStr,aSourceRoot){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var section=this._sections[i],sectionMappings=section.consumer._generatedMappings,j=0;j<sectionMappings.length;j++){var mapping=sectionMappings[j],source=section.consumer._sources.at(mapping.source);source=util.computeSourceURL(section.consumer.sourceRoot,source,this._sourceMapURL),this._sources.add(source),source=this._sources.indexOf(source);var name=null;mapping.name&&(name=section.consumer._names.at(mapping.name),this._names.add(name),name=this._names.indexOf(name));var adjustedMapping={source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.generatedColumn+(section.generatedOffset.generatedLine===mapping.generatedLine?section.generatedOffset.generatedColumn-1:0),originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name};this.__generatedMappings.push(adjustedMapping),"number"==typeof adjustedMapping.originalLine&&this.__originalMappings.push(adjustedMapping)}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated),quickSort(this.__originalMappings,util.compareByOriginalPositions)},exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer}}),require_source_node=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(exports){var SourceMapGenerator=require_source_map_generator().SourceMapGenerator,util=require_util(),REGEX_NEWLINE=/(\r?\n)/,isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[],this.sourceContents={},this.line=aLine??null,this.column=aColumn??null,this.source=aSource??null,this.name=aName??null,this[isSourceNode]=!0,null!=aChunks&&this.add(aChunks)}SourceNode.fromStringWithSourceMap=function(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode,remainingLines=aGeneratedCode.split(REGEX_NEWLINE),remainingLinesIndex=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return remainingLinesIndex<remainingLines.length?remainingLines[remainingLinesIndex++]:void 0}},lastGeneratedLine=1,lastGeneratedColumn=0,lastMapping=null;return aSourceMapConsumer.eachMapping(function(mapping){if(null!==lastMapping){if(!(lastGeneratedLine<mapping.generatedLine)){var code=(nextLine=remainingLines[remainingLinesIndex]||"").substr(0,mapping.generatedColumn-lastGeneratedColumn);return remainingLines[remainingLinesIndex]=nextLine.substr(mapping.generatedColumn-lastGeneratedColumn),lastGeneratedColumn=mapping.generatedColumn,addMappingWithCode(lastMapping,code),void(lastMapping=mapping)}addMappingWithCode(lastMapping,shiftNextLine()),lastGeneratedLine++,lastGeneratedColumn=0}for(;lastGeneratedLine<mapping.generatedLine;)node.add(shiftNextLine()),lastGeneratedLine++;if(lastGeneratedColumn<mapping.generatedColumn){var nextLine=remainingLines[remainingLinesIndex]||"";node.add(nextLine.substr(0,mapping.generatedColumn)),remainingLines[remainingLinesIndex]=nextLine.substr(mapping.generatedColumn),lastGeneratedColumn=mapping.generatedColumn}lastMapping=mapping},this),remainingLinesIndex<remainingLines.length&&(lastMapping&&addMappingWithCode(lastMapping,shiftNextLine()),node.add(remainingLines.splice(remainingLinesIndex).join(""))),aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&(null!=aRelativePath&&(sourceFile=util.join(aRelativePath,sourceFile)),node.setSourceContent(sourceFile,content))}),node;function addMappingWithCode(mapping,code){if(null===mapping||void 0===mapping.source)node.add(code);else{var source=aRelativePath?util.join(aRelativePath,mapping.source):mapping.source;node.add(new SourceNode(mapping.originalLine,mapping.originalColumn,source,code,mapping.name))}}},SourceNode.prototype.add=function(aChunk){if(Array.isArray(aChunk))aChunk.forEach(function(chunk){this.add(chunk)},this);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);aChunk&&this.children.push(aChunk)}return this},SourceNode.prototype.prepend=function(aChunk){if(Array.isArray(aChunk))for(var i=aChunk.length-1;i>=0;i--)this.prepend(aChunk[i]);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);this.children.unshift(aChunk)}return this},SourceNode.prototype.walk=function(aFn){for(var chunk,i=0,len=this.children.length;i<len;i++)(chunk=this.children[i])[isSourceNode]?chunk.walk(aFn):""!==chunk&&aFn(chunk,{source:this.source,line:this.line,column:this.column,name:this.name})},SourceNode.prototype.join=function(aSep){var newChildren,i,len=this.children.length;if(len>0){for(newChildren=[],i=0;i<len-1;i++)newChildren.push(this.children[i]),newChildren.push(aSep);newChildren.push(this.children[i]),this.children=newChildren}return this},SourceNode.prototype.replaceRight=function(aPattern,aReplacement){var lastChild=this.children[this.children.length-1];return lastChild[isSourceNode]?lastChild.replaceRight(aPattern,aReplacement):"string"==typeof lastChild?this.children[this.children.length-1]=lastChild.replace(aPattern,aReplacement):this.children.push("".replace(aPattern,aReplacement)),this},SourceNode.prototype.setSourceContent=function(aSourceFile,aSourceContent){this.sourceContents[util.toSetString(aSourceFile)]=aSourceContent},SourceNode.prototype.walkSourceContents=function(aFn){for(var i=0,len=this.children.length;i<len;i++)this.children[i][isSourceNode]&&this.children[i].walkSourceContents(aFn);var sources=Object.keys(this.sourceContents);for(i=0,len=sources.length;i<len;i++)aFn(util.fromSetString(sources[i]),this.sourceContents[sources[i]])},SourceNode.prototype.toString=function(){var str="";return this.walk(function(chunk){str+=chunk}),str},SourceNode.prototype.toStringWithSourceMap=function(aArgs){var generated={code:"",line:1,column:0},map=new SourceMapGenerator(aArgs),sourceMappingActive=!1,lastOriginalSource=null,lastOriginalLine=null,lastOriginalColumn=null,lastOriginalName=null;return this.walk(function(chunk,original){generated.code+=chunk,null!==original.source&&null!==original.line&&null!==original.column?((lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name)&&map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name}),lastOriginalSource=original.source,lastOriginalLine=original.line,lastOriginalColumn=original.column,lastOriginalName=original.name,sourceMappingActive=!0):sourceMappingActive&&(map.addMapping({generated:{line:generated.line,column:generated.column}}),lastOriginalSource=null,sourceMappingActive=!1);for(var idx=0,length=chunk.length;idx<length;idx++)10===chunk.charCodeAt(idx)?(generated.line++,generated.column=0,idx+1===length?(lastOriginalSource=null,sourceMappingActive=!1):sourceMappingActive&&map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})):generated.column++}),this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent)}),{code:generated.code,map}},exports.SourceNode=SourceNode}}),require_source_map=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/source-map.js"(exports){exports.SourceMapGenerator=require_source_map_generator().SourceMapGenerator,exports.SourceMapConsumer=require_source_map_consumer().SourceMapConsumer,exports.SourceNode=require_source_node().SourceNode}}),require_package=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/package.json"(exports,module){module.exports={name:"escodegen",description:"ECMAScript code generator",homepage:"http://github.com/estools/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],version:"2.1.0",engines:{node:">=6.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/escodegen.git"},dependencies:{estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},optionalDependencies:{"source-map":"~0.6.1"},devDependencies:{acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}}}),require_escodegen=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/escodegen.js"(exports){!function(){var Syntax,Precedence,BinaryPrecedence,SourceNode,estraverse,esutils,base2,indent,json,renumber,hexadecimal,quotes,escapeless,newline,space,parentheses,semicolons,safeConcatenation,directive,extra,parse5,sourceMap,sourceCode,preserveBlankLines,FORMAT_MINIFY,FORMAT_DEFAULTS;function isStatement(node){return CodeGenerator.Statement.hasOwnProperty(node.type)}estraverse=require_estraverse(),esutils=require_utils(),Syntax=estraverse.Syntax,BinaryPrecedence={"??":(Precedence={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22}).Coalesce,"||":Precedence.LogicalOR,"&&":Precedence.LogicalAND,"|":Precedence.BitwiseOR,"^":Precedence.BitwiseXOR,"&":Precedence.BitwiseAND,"==":Precedence.Equality,"!=":Precedence.Equality,"===":Precedence.Equality,"!==":Precedence.Equality,is:Precedence.Equality,isnt:Precedence.Equality,"<":Precedence.Relational,">":Precedence.Relational,"<=":Precedence.Relational,">=":Precedence.Relational,in:Precedence.Relational,instanceof:Precedence.Relational,"<<":Precedence.BitwiseSHIFT,">>":Precedence.BitwiseSHIFT,">>>":Precedence.BitwiseSHIFT,"+":Precedence.Additive,"-":Precedence.Additive,"*":Precedence.Multiplicative,"%":Precedence.Multiplicative,"/":Precedence.Multiplicative,"**":Precedence.Exponentiation};function stringRepeat(str,num){var result="";for(num|=0;num>0;num>>>=1,str+=str)1&num&&(result+=str);return result}function endsWithLineTerminator(str){var len=str.length;return len&&esutils.code.isLineTerminator(str.charCodeAt(len-1))}function merge(target,override){var key;for(key in override)override.hasOwnProperty(key)&&(target[key]=override[key]);return target}function updateDeeply(target,override){var key,val;function isHashObject(target2){return"object"==typeof target2&&target2 instanceof Object&&!(target2 instanceof RegExp)}for(key in override)override.hasOwnProperty(key)&&(isHashObject(val=override[key])?isHashObject(target[key])?updateDeeply(target[key],val):target[key]=updateDeeply({},val):target[key]=val);return target}function escapeRegExpCharacter(ch,previousIsBackslash){return 8232==(-2&ch)?(previousIsBackslash?"u":"\\u")+(8232===ch?"2028":"2029"):10===ch||13===ch?(previousIsBackslash?"":"\\")+(10===ch?"n":"r"):String.fromCharCode(ch)}function escapeAllowedCharacter(code,next){var hex;return 8===code?"\\b":12===code?"\\f":9===code?"\\t":(hex=code.toString(16).toUpperCase(),json||code>255?"\\u"+"0000".slice(hex.length)+hex:0!==code||esutils.code.isDecimalDigit(next)?11===code?"\\x0B":"\\x"+"00".slice(hex.length)+hex:"\\0")}function escapeDisallowedCharacter(code){if(92===code)return"\\\\";if(10===code)return"\\n";if(13===code)return"\\r";if(8232===code)return"\\u2028";if(8233===code)return"\\u2029";throw new Error("Incorrectly classified character")}function flattenToString(arr){var i,iz,elem,result="";for(i=0,iz=arr.length;i<iz;++i)elem=arr[i],result+=Array.isArray(elem)?flattenToString(elem):elem;return result}function toSourceNodeWhenNeeded(generated,node){if(!sourceMap)return Array.isArray(generated)?flattenToString(generated):generated;if(null==node){if(generated instanceof SourceNode)return generated;node={}}return null==node.loc?new SourceNode(null,null,sourceMap,generated,node.name||null):new SourceNode(node.loc.start.line,node.loc.start.column,!0===sourceMap?node.loc.source||null:sourceMap,generated,node.name||null)}function noEmptySpace(){return space||" "}function join(left,right){var leftSource,rightSource,leftCharCode,rightCharCode;return 0===(leftSource=toSourceNodeWhenNeeded(left).toString()).length?[right]:0===(rightSource=toSourceNodeWhenNeeded(right).toString()).length?[left]:(leftCharCode=leftSource.charCodeAt(leftSource.length-1),rightCharCode=rightSource.charCodeAt(0),(43===leftCharCode||45===leftCharCode)&&leftCharCode===rightCharCode||esutils.code.isIdentifierPartES5(leftCharCode)&&esutils.code.isIdentifierPartES5(rightCharCode)||47===leftCharCode&&105===rightCharCode?[left,noEmptySpace(),right]:esutils.code.isWhiteSpace(leftCharCode)||esutils.code.isLineTerminator(leftCharCode)||esutils.code.isWhiteSpace(rightCharCode)||esutils.code.isLineTerminator(rightCharCode)?[left,right]:[left,space,right])}function addIndent(stmt){return[base2,stmt]}function withIndent(fn){var previousBase;previousBase=base2,fn(base2+=indent),base2=previousBase}function generateComment(comment,specialBase){if("Line"===comment.type){if(endsWithLineTerminator(comment.value))return"//"+comment.value;var result="//"+comment.value;return preserveBlankLines||(result+="\n"),result}return extra.format.indent.adjustMultilineComment&&/[\n\r]/.test(comment.value)?function adjustMultilineComment(value,specialBase){var array,i,len,line,j,spaces,previousBase,sn;for(array=value.split(/\r\n|[\r\n]/),spaces=Number.MAX_VALUE,i=1,len=array.length;i<len;++i){for(line=array[i],j=0;j<line.length&&esutils.code.isWhiteSpace(line.charCodeAt(j));)++j;spaces>j&&(spaces=j)}for(typeof specialBase<"u"?(previousBase=base2,"*"===array[1][spaces]&&(specialBase+=" "),base2=specialBase):(1&spaces&&--spaces,previousBase=base2),i=1,len=array.length;i<len;++i)sn=toSourceNodeWhenNeeded(addIndent(array[i].slice(spaces))),array[i]=sourceMap?sn.join(""):sn;return base2=previousBase,array.join("\n")}("/*"+comment.value+"*/",specialBase):"/*"+comment.value+"*/"}function addComments(stmt,result){var i,len,comment,save,tailingToStatement,specialBase,fragment,extRange,range,prevRange,prefix,count;if(stmt.leadingComments&&stmt.leadingComments.length>0){if(save=result,preserveBlankLines){for(result=[],extRange=(comment=stmt.leadingComments[0]).extendedRange,range=comment.range,(count=((prefix=sourceCode.substring(extRange[0],range[0])).match(/\n/g)||[]).length)>0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment))),prevRange=range,i=1,len=stmt.leadingComments.length;i<len;i++)range=(comment=stmt.leadingComments[i]).range,count=(sourceCode.substring(prevRange[1],range[0]).match(/\n/g)||[]).length,result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment))),prevRange=range;count=(sourceCode.substring(range[1],extRange[1]).match(/\n/g)||[]).length,result.push(stringRepeat("\n",count))}else for(comment=stmt.leadingComments[0],result=[],safeConcatenation&&stmt.type===Syntax.Program&&0===stmt.body.length&&result.push("\n"),result.push(generateComment(comment)),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push("\n"),i=1,len=stmt.leadingComments.length;i<len;++i)endsWithLineTerminator(toSourceNodeWhenNeeded(fragment=[generateComment(comment=stmt.leadingComments[i])]).toString())||fragment.push("\n"),result.push(addIndent(fragment));result.push(addIndent(save))}if(stmt.trailingComments)if(preserveBlankLines)extRange=(comment=stmt.trailingComments[0]).extendedRange,range=comment.range,(count=((prefix=sourceCode.substring(extRange[0],range[0])).match(/\n/g)||[]).length)>0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment)));else for(tailingToStatement=!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()),specialBase=stringRepeat(" ",function calculateSpaces(str){var i;for(i=str.length-1;i>=0&&!esutils.code.isLineTerminator(str.charCodeAt(i));--i);return str.length-1-i}(toSourceNodeWhenNeeded([base2,result,indent]).toString())),i=0,len=stmt.trailingComments.length;i<len;++i)comment=stmt.trailingComments[i],tailingToStatement?(result=0===i?[result,indent]:[result,specialBase]).push(generateComment(comment,specialBase)):result=[result,addIndent(generateComment(comment))],i!==len-1&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&(result=[result,"\n"]);return result}function generateBlankLines(start,end,result){var j,newlineCount=0;for(j=start;j<end;j++)"\n"===sourceCode[j]&&newlineCount++;for(j=1;j<newlineCount;j++)result.push(newline)}function parenthesize(text,current2,should){return current2<should?["(",text,")"]:text}function generateVerbatimString(string){var i,iz,result;for(i=1,iz=(result=string.split(/\r\n|\n/)).length;i<iz;i++)result[i]=newline+base2+result[i];return result}function CodeGenerator(){}function generateIdentifier(node){return toSourceNodeWhenNeeded(node.name,node)}function generateAsyncPrefix(node,spaceRequired){return node.async?"async"+(spaceRequired?noEmptySpace():space):""}function generateStarSuffix(node){return node.generator&&!extra.moz.starlessGenerator?"*"+space:""}function generateMethodPrefix(prop){var func=prop.value,prefix="";return func.async&&(prefix+=generateAsyncPrefix(func,!prop.computed)),func.generator&&(prefix+=generateStarSuffix(func)?"*":""),prefix}function generateInternal(node){var codegen;if(codegen=new CodeGenerator,isStatement(node))return codegen.generateStatement(node,1);if(function isExpression(node){return CodeGenerator.Expression.hasOwnProperty(node.type)}(node))return codegen.generateExpression(node,Precedence.Sequence,7);throw new Error("Unknown node type: "+node.type)}CodeGenerator.prototype.maybeBlock=function(stmt,flags){var result,noLeadingComment,that=this;return noLeadingComment=!extra.comment||!stmt.leadingComments,stmt.type===Syntax.BlockStatement&&noLeadingComment?[space,this.generateStatement(stmt,flags)]:stmt.type===Syntax.EmptyStatement&&noLeadingComment?";":(withIndent(function(){result=[newline,addIndent(that.generateStatement(stmt,flags))]}),result)},CodeGenerator.prototype.maybeBlockSuffix=function(stmt,result){var ends=endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString());return stmt.type!==Syntax.BlockStatement||extra.comment&&stmt.leadingComments||ends?ends?[result,base2]:[result,newline,base2]:[result,space]},CodeGenerator.prototype.generatePattern=function(node,precedence,flags){return node.type===Syntax.Identifier?generateIdentifier(node):this.generateExpression(node,precedence,flags)},CodeGenerator.prototype.generateFunctionParams=function(node){var i,iz,result,hasDefault;if(hasDefault=!1,node.type!==Syntax.ArrowFunctionExpression||node.rest||node.defaults&&0!==node.defaults.length||1!==node.params.length||node.params[0].type!==Syntax.Identifier){for((result=node.type===Syntax.ArrowFunctionExpression?[generateAsyncPrefix(node,!1)]:[]).push("("),node.defaults&&(hasDefault=!0),i=0,iz=node.params.length;i<iz;++i)hasDefault&&node.defaults[i]?result.push(this.generateAssignment(node.params[i],node.defaults[i],"=",Precedence.Assignment,7)):result.push(this.generatePattern(node.params[i],Precedence.Assignment,7)),i+1<iz&&result.push(","+space);node.rest&&(node.params.length&&result.push(","+space),result.push("..."),result.push(generateIdentifier(node.rest))),result.push(")")}else result=[generateAsyncPrefix(node,!0),generateIdentifier(node.params[0])];return result},CodeGenerator.prototype.generateFunctionBody=function(node){var result,expr;return result=this.generateFunctionParams(node),node.type===Syntax.ArrowFunctionExpression&&(result.push(space),result.push("=>")),node.expression?(result.push(space),"{"===(expr=this.generateExpression(node.body,Precedence.Assignment,7)).toString().charAt(0)&&(expr=["(",expr,")"]),result.push(expr)):result.push(this.maybeBlock(node.body,9)),result},CodeGenerator.prototype.generateIterationForStatement=function(operator,stmt,flags){var result=["for"+(stmt.await?noEmptySpace()+"await":"")+space+"("],that=this;return withIndent(function(){stmt.left.type===Syntax.VariableDeclaration?withIndent(function(){result.push(stmt.left.kind+noEmptySpace()),result.push(that.generateStatement(stmt.left.declarations[0],0))}):result.push(that.generateExpression(stmt.left,Precedence.Call,7)),result=join(result,operator),result=[join(result,that.generateExpression(stmt.right,Precedence.Assignment,7)),")"]}),result.push(this.maybeBlock(stmt.body,flags)),result},CodeGenerator.prototype.generatePropertyKey=function(expr,computed){var result=[];return computed&&result.push("["),result.push(this.generateExpression(expr,Precedence.Assignment,7)),computed&&result.push("]"),result},CodeGenerator.prototype.generateAssignment=function(left,right,operator,precedence,flags){return Precedence.Assignment<precedence&&(flags|=1),parenthesize([this.generateExpression(left,Precedence.Call,flags),space+operator+space,this.generateExpression(right,Precedence.Assignment,flags)],Precedence.Assignment,precedence)},CodeGenerator.prototype.semicolon=function(flags){return!semicolons&&32&flags?"":";"},CodeGenerator.Statement={BlockStatement:function(stmt,flags){var range,content,result=["{",newline],that=this;return withIndent(function(){var i,iz,fragment,bodyFlags;for(0===stmt.body.length&&preserveBlankLines&&((range=stmt.range)[1]-range[0]>2&&("\n"===(content=sourceCode.substring(range[0]+1,range[1]-1))[0]&&(result=["{"]),result.push(content))),bodyFlags=1,8&flags&&(bodyFlags|=16),i=0,iz=stmt.body.length;i<iz;++i)preserveBlankLines&&(0===i&&(stmt.body[0].leadingComments&&(range=stmt.body[0].leadingComments[0].extendedRange,"\n"===(content=sourceCode.substring(range[0],range[1]))[0]&&(result=["{"])),stmt.body[0].leadingComments||generateBlankLines(stmt.range[0],stmt.body[0].range[0],result)),i>0&&!stmt.body[i-1].trailingComments&&!stmt.body[i].leadingComments&&generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result)),i===iz-1&&(bodyFlags|=32),fragment=stmt.body[i].leadingComments&&preserveBlankLines?that.generateStatement(stmt.body[i],bodyFlags):addIndent(that.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())||preserveBlankLines&&i<iz-1&&stmt.body[i+1].leadingComments||result.push(newline),preserveBlankLines&&i===iz-1&&(stmt.body[i].trailingComments||generateBlankLines(stmt.body[i].range[1],stmt.range[1],result))}),result.push(addIndent("}")),result},BreakStatement:function(stmt,flags){return stmt.label?"break "+stmt.label.name+this.semicolon(flags):"break"+this.semicolon(flags)},ContinueStatement:function(stmt,flags){return stmt.label?"continue "+stmt.label.name+this.semicolon(flags):"continue"+this.semicolon(flags)},ClassBody:function(stmt,flags){var result=["{",newline],that=this;return withIndent(function(indent2){var i,iz;for(i=0,iz=stmt.body.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(stmt.body[i],Precedence.Sequence,7)),i+1<iz&&result.push(newline)}),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2),result.push("}"),result},ClassDeclaration:function(stmt,flags){var result,fragment;return result=["class"],stmt.id&&(result=join(result,this.generateExpression(stmt.id,Precedence.Sequence,7))),stmt.superClass&&(fragment=join("extends",this.generateExpression(stmt.superClass,Precedence.Unary,7)),result=join(result,fragment)),result.push(space),result.push(this.generateStatement(stmt.body,33)),result},DirectiveStatement:function(stmt,flags){return extra.raw&&stmt.raw?stmt.raw+this.semicolon(flags):function escapeDirective(str){var i,iz,code,quote;for(quote="double"===quotes?'"':"'",i=0,iz=str.length;i<iz;++i){if(39===(code=str.charCodeAt(i))){quote='"';break}if(34===code){quote="'";break}92===code&&++i}return quote+str+quote}(stmt.directive)+this.semicolon(flags)},DoWhileStatement:function(stmt,flags){var result=join("do",this.maybeBlock(stmt.body,1));return join(result=this.maybeBlockSuffix(stmt.body,result),["while"+space+"(",this.generateExpression(stmt.test,Precedence.Sequence,7),")"+this.semicolon(flags)])},CatchClause:function(stmt,flags){var result,that=this;return withIndent(function(){var guard;stmt.param?(result=["catch"+space+"(",that.generateExpression(stmt.param,Precedence.Sequence,7),")"],stmt.guard&&(guard=that.generateExpression(stmt.guard,Precedence.Sequence,7),result.splice(2,0," if ",guard))):result=["catch"]}),result.push(this.maybeBlock(stmt.body,1)),result},DebuggerStatement:function(stmt,flags){return"debugger"+this.semicolon(flags)},EmptyStatement:function(stmt,flags){return";"},ExportDefaultDeclaration:function(stmt,flags){var bodyFlags,result=["export"];return bodyFlags=32&flags?33:1,result=join(result,"default"),result=isStatement(stmt.declaration)?join(result,this.generateStatement(stmt.declaration,bodyFlags)):join(result,this.generateExpression(stmt.declaration,Precedence.Assignment,7)+this.semicolon(flags))},ExportNamedDeclaration:function(stmt,flags){var bodyFlags,result=["export"],that=this;return bodyFlags=32&flags?33:1,stmt.declaration?join(result,this.generateStatement(stmt.declaration,bodyFlags)):(stmt.specifiers&&(0===stmt.specifiers.length?result=join(result,"{"+space+"}"):stmt.specifiers[0].type===Syntax.ExportBatchSpecifier?result=join(result,this.generateExpression(stmt.specifiers[0],Precedence.Sequence,7)):(result=join(result,"{"),withIndent(function(indent2){var i,iz;for(result.push(newline),i=0,iz=stmt.specifiers.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(stmt.specifiers[i],Precedence.Sequence,7)),i+1<iz&&result.push(","+newline)}),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2+"}")),stmt.source?result=join(result,["from"+space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]):result.push(this.semicolon(flags))),result)},ExportAllDeclaration:function(stmt,flags){return["export"+space,"*"+space,"from"+space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]},ExpressionStatement:function(stmt,flags){var result,fragment;return 123===(fragment=toSourceNodeWhenNeeded(result=[this.generateExpression(stmt.expression,Precedence.Sequence,7)]).toString()).charCodeAt(0)||function isClassPrefixed(fragment2){var code;return"class"===fragment2.slice(0,5)&&(123===(code=fragment2.charCodeAt(5))||esutils.code.isWhiteSpace(code)||esutils.code.isLineTerminator(code))}(fragment)||function isFunctionPrefixed(fragment2){var code;return"function"===fragment2.slice(0,8)&&(40===(code=fragment2.charCodeAt(8))||esutils.code.isWhiteSpace(code)||42===code||esutils.code.isLineTerminator(code))}(fragment)||function isAsyncPrefixed(fragment2){var code,i,iz;if("async"!==fragment2.slice(0,5)||!esutils.code.isWhiteSpace(fragment2.charCodeAt(5)))return!1;for(i=6,iz=fragment2.length;i<iz&&esutils.code.isWhiteSpace(fragment2.charCodeAt(i));++i);return i!==iz&&"function"===fragment2.slice(i,i+8)&&(40===(code=fragment2.charCodeAt(i+8))||esutils.code.isWhiteSpace(code)||42===code||esutils.code.isLineTerminator(code))}(fragment)||directive&&16&flags&&stmt.expression.type===Syntax.Literal&&"string"==typeof stmt.expression.value?result=["(",result,")"+this.semicolon(flags)]:result.push(this.semicolon(flags)),result},ImportDeclaration:function(stmt,flags){var result,cursor,that=this;return 0===stmt.specifiers.length?["import",space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]:(result=["import"],cursor=0,stmt.specifiers[cursor].type===Syntax.ImportDefaultSpecifier&&(result=join(result,[this.generateExpression(stmt.specifiers[cursor],Precedence.Sequence,7)]),++cursor),stmt.specifiers[cursor]&&(0!==cursor&&result.push(","),stmt.specifiers[cursor].type===Syntax.ImportNamespaceSpecifier?result=join(result,[space,this.generateExpression(stmt.specifiers[cursor],Precedence.Sequence,7)]):(result.push(space+"{"),stmt.specifiers.length-cursor===1?(result.push(space),result.push(this.generateExpression(stmt.specifiers[cursor],Precedence.Sequence,7)),result.push(space+"}"+space)):(withIndent(function(indent2){var i,iz;for(result.push(newline),i=cursor,iz=stmt.specifiers.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(stmt.specifiers[i],Precedence.Sequence,7)),i+1<iz&&result.push(","+newline)}),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2+"}"+space)))),result=join(result,["from"+space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]))},VariableDeclarator:function(stmt,flags){var itemFlags=1&flags?7:6;return stmt.init?[this.generateExpression(stmt.id,Precedence.Assignment,itemFlags),space,"=",space,this.generateExpression(stmt.init,Precedence.Assignment,itemFlags)]:this.generatePattern(stmt.id,Precedence.Assignment,itemFlags)},VariableDeclaration:function(stmt,flags){var result,i,iz,node,bodyFlags,that=this;function block(){for(node=stmt.declarations[0],extra.comment&&node.leadingComments?(result.push("\n"),result.push(addIndent(that.generateStatement(node,bodyFlags)))):(result.push(noEmptySpace()),result.push(that.generateStatement(node,bodyFlags))),i=1,iz=stmt.declarations.length;i<iz;++i)node=stmt.declarations[i],extra.comment&&node.leadingComments?(result.push(","+newline),result.push(addIndent(that.generateStatement(node,bodyFlags)))):(result.push(","+space),result.push(that.generateStatement(node,bodyFlags)))}return result=[stmt.kind],bodyFlags=1&flags?1:0,stmt.declarations.length>1?withIndent(block):block(),result.push(this.semicolon(flags)),result},ThrowStatement:function(stmt,flags){return[join("throw",this.generateExpression(stmt.argument,Precedence.Sequence,7)),this.semicolon(flags)]},TryStatement:function(stmt,flags){var result,i,iz,guardedHandlers;if(result=["try",this.maybeBlock(stmt.block,1)],result=this.maybeBlockSuffix(stmt.block,result),stmt.handlers)for(i=0,iz=stmt.handlers.length;i<iz;++i)result=join(result,this.generateStatement(stmt.handlers[i],1)),(stmt.finalizer||i+1!==iz)&&(result=this.maybeBlockSuffix(stmt.handlers[i].body,result));else{for(i=0,iz=(guardedHandlers=stmt.guardedHandlers||[]).length;i<iz;++i)result=join(result,this.generateStatement(guardedHandlers[i],1)),(stmt.finalizer||i+1!==iz)&&(result=this.maybeBlockSuffix(guardedHandlers[i].body,result));if(stmt.handler)if(Array.isArray(stmt.handler))for(i=0,iz=stmt.handler.length;i<iz;++i)result=join(result,this.generateStatement(stmt.handler[i],1)),(stmt.finalizer||i+1!==iz)&&(result=this.maybeBlockSuffix(stmt.handler[i].body,result));else result=join(result,this.generateStatement(stmt.handler,1)),stmt.finalizer&&(result=this.maybeBlockSuffix(stmt.handler.body,result))}return stmt.finalizer&&(result=join(result,["finally",this.maybeBlock(stmt.finalizer,1)])),result},SwitchStatement:function(stmt,flags){var result,fragment,i,iz,bodyFlags,that=this;if(withIndent(function(){result=["switch"+space+"(",that.generateExpression(stmt.discriminant,Precedence.Sequence,7),")"+space+"{"+newline]}),stmt.cases)for(bodyFlags=1,i=0,iz=stmt.cases.length;i<iz;++i)i===iz-1&&(bodyFlags|=32),fragment=addIndent(this.generateStatement(stmt.cases[i],bodyFlags)),result.push(fragment),endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())||result.push(newline);return result.push(addIndent("}")),result},SwitchCase:function(stmt,flags){var result,fragment,i,iz,bodyFlags,that=this;return withIndent(function(){for(result=stmt.test?[join("case",that.generateExpression(stmt.test,Precedence.Sequence,7)),":"]:["default:"],i=0,(iz=stmt.consequent.length)&&stmt.consequent[0].type===Syntax.BlockStatement&&(fragment=that.maybeBlock(stmt.consequent[0],1),result.push(fragment),i=1),i!==iz&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&result.push(newline),bodyFlags=1;i<iz;++i)i===iz-1&&32&flags&&(bodyFlags|=32),fragment=addIndent(that.generateStatement(stmt.consequent[i],bodyFlags)),result.push(fragment),i+1!==iz&&!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())&&result.push(newline)}),result},IfStatement:function(stmt,flags){var result,bodyFlags,that=this;return withIndent(function(){result=["if"+space+"(",that.generateExpression(stmt.test,Precedence.Sequence,7),")"]}),bodyFlags=1,32&flags&&(bodyFlags|=32),stmt.alternate?(result.push(this.maybeBlock(stmt.consequent,1)),result=this.maybeBlockSuffix(stmt.consequent,result),result=stmt.alternate.type===Syntax.IfStatement?join(result,["else ",this.generateStatement(stmt.alternate,bodyFlags)]):join(result,join("else",this.maybeBlock(stmt.alternate,bodyFlags)))):result.push(this.maybeBlock(stmt.consequent,bodyFlags)),result},ForStatement:function(stmt,flags){var result,that=this;return withIndent(function(){result=["for"+space+"("],stmt.init?stmt.init.type===Syntax.VariableDeclaration?result.push(that.generateStatement(stmt.init,0)):(result.push(that.generateExpression(stmt.init,Precedence.Sequence,6)),result.push(";")):result.push(";"),stmt.test&&(result.push(space),result.push(that.generateExpression(stmt.test,Precedence.Sequence,7))),result.push(";"),stmt.update&&(result.push(space),result.push(that.generateExpression(stmt.update,Precedence.Sequence,7))),result.push(")")}),result.push(this.maybeBlock(stmt.body,32&flags?33:1)),result},ForInStatement:function(stmt,flags){return this.generateIterationForStatement("in",stmt,32&flags?33:1)},ForOfStatement:function(stmt,flags){return this.generateIterationForStatement("of",stmt,32&flags?33:1)},LabeledStatement:function(stmt,flags){return[stmt.label.name+":",this.maybeBlock(stmt.body,32&flags?33:1)]},Program:function(stmt,flags){var result,fragment,i,iz,bodyFlags;for(iz=stmt.body.length,result=[safeConcatenation&&iz>0?"\n":""],bodyFlags=17,i=0;i<iz;++i)!safeConcatenation&&i===iz-1&&(bodyFlags|=32),preserveBlankLines&&(0===i&&(stmt.body[0].leadingComments||generateBlankLines(stmt.range[0],stmt.body[i].range[0],result)),i>0&&!stmt.body[i-1].trailingComments&&!stmt.body[i].leadingComments&&generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result)),fragment=addIndent(this.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),i+1<iz&&!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())&&(preserveBlankLines&&stmt.body[i+1].leadingComments||result.push(newline)),preserveBlankLines&&i===iz-1&&(stmt.body[i].trailingComments||generateBlankLines(stmt.body[i].range[1],stmt.range[1],result));return result},FunctionDeclaration:function(stmt,flags){return[generateAsyncPrefix(stmt,!0),"function",generateStarSuffix(stmt)||noEmptySpace(),stmt.id?generateIdentifier(stmt.id):"",this.generateFunctionBody(stmt)]},ReturnStatement:function(stmt,flags){return stmt.argument?[join("return",this.generateExpression(stmt.argument,Precedence.Sequence,7)),this.semicolon(flags)]:["return"+this.semicolon(flags)]},WhileStatement:function(stmt,flags){var result,that=this;return withIndent(function(){result=["while"+space+"(",that.generateExpression(stmt.test,Precedence.Sequence,7),")"]}),result.push(this.maybeBlock(stmt.body,32&flags?33:1)),result},WithStatement:function(stmt,flags){var result,that=this;return withIndent(function(){result=["with"+space+"(",that.generateExpression(stmt.object,Precedence.Sequence,7),")"]}),result.push(this.maybeBlock(stmt.body,32&flags?33:1)),result}},merge(CodeGenerator.prototype,CodeGenerator.Statement),CodeGenerator.Expression={SequenceExpression:function(expr,precedence,flags){var result,i,iz;for(Precedence.Sequence<precedence&&(flags|=1),result=[],i=0,iz=expr.expressions.length;i<iz;++i)result.push(this.generateExpression(expr.expressions[i],Precedence.Assignment,flags)),i+1<iz&&result.push(","+space);return parenthesize(result,Precedence.Sequence,precedence)},AssignmentExpression:function(expr,precedence,flags){return this.generateAssignment(expr.left,expr.right,expr.operator,precedence,flags)},ArrowFunctionExpression:function(expr,precedence,flags){return parenthesize(this.generateFunctionBody(expr),Precedence.ArrowFunction,precedence)},ConditionalExpression:function(expr,precedence,flags){return Precedence.Conditional<precedence&&(flags|=1),parenthesize([this.generateExpression(expr.test,Precedence.Coalesce,flags),space+"?"+space,this.generateExpression(expr.consequent,Precedence.Assignment,flags),space+":"+space,this.generateExpression(expr.alternate,Precedence.Assignment,flags)],Precedence.Conditional,precedence)},LogicalExpression:function(expr,precedence,flags){return"??"===expr.operator&&(flags|=64),this.BinaryExpression(expr,precedence,flags)},BinaryExpression:function(expr,precedence,flags){var result,leftPrecedence,rightPrecedence,currentPrecedence,fragment,leftSource;return currentPrecedence=BinaryPrecedence[expr.operator],leftPrecedence="**"===expr.operator?Precedence.Postfix:currentPrecedence,rightPrecedence="**"===expr.operator?currentPrecedence:currentPrecedence+1,currentPrecedence<precedence&&(flags|=1),result=47===(leftSource=(fragment=this.generateExpression(expr.left,leftPrecedence,flags)).toString()).charCodeAt(leftSource.length-1)&&esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))?[fragment,noEmptySpace(),expr.operator]:join(fragment,expr.operator),fragment=this.generateExpression(expr.right,rightPrecedence,flags),"/"===expr.operator&&"/"===fragment.toString().charAt(0)||"<"===expr.operator.slice(-1)&&"!--"===fragment.toString().slice(0,3)?(result.push(noEmptySpace()),result.push(fragment)):result=join(result,fragment),"in"!==expr.operator||1&flags?("||"===expr.operator||"&&"===expr.operator)&&64&flags?["(",result,")"]:parenthesize(result,currentPrecedence,precedence):["(",result,")"]},CallExpression:function(expr,precedence,flags){var result,i,iz;for(result=[this.generateExpression(expr.callee,Precedence.Call,3)],expr.optional&&result.push("?."),result.push("("),i=0,iz=expr.arguments.length;i<iz;++i)result.push(this.generateExpression(expr.arguments[i],Precedence.Assignment,7)),i+1<iz&&result.push(","+space);return result.push(")"),2&flags?parenthesize(result,Precedence.Call,precedence):["(",result,")"]},ChainExpression:function(expr,precedence,flags){return Precedence.OptionalChaining<precedence&&(flags|=2),parenthesize(this.generateExpression(expr.expression,Precedence.OptionalChaining,flags),Precedence.OptionalChaining,precedence)},NewExpression:function(expr,precedence,flags){var result,length,i,iz,itemFlags;if(length=expr.arguments.length,itemFlags=4&flags&&!parentheses&&0===length?5:1,result=join("new",this.generateExpression(expr.callee,Precedence.New,itemFlags)),!(4&flags)||parentheses||length>0){for(result.push("("),i=0,iz=length;i<iz;++i)result.push(this.generateExpression(expr.arguments[i],Precedence.Assignment,7)),i+1<iz&&result.push(","+space);result.push(")")}return parenthesize(result,Precedence.New,precedence)},MemberExpression:function(expr,precedence,flags){var result,fragment;return result=[this.generateExpression(expr.object,Precedence.Call,2&flags?3:1)],expr.computed?(expr.optional&&result.push("?."),result.push("["),result.push(this.generateExpression(expr.property,Precedence.Sequence,2&flags?7:5)),result.push("]")):(!expr.optional&&expr.object.type===Syntax.Literal&&"number"==typeof expr.object.value&&((fragment=toSourceNodeWhenNeeded(result).toString()).indexOf(".")<0&&!/[eExX]/.test(fragment)&&esutils.code.isDecimalDigit(fragment.charCodeAt(fragment.length-1))&&!(fragment.length>=2&&48===fragment.charCodeAt(0))&&result.push(" ")),result.push(expr.optional?"?.":"."),result.push(generateIdentifier(expr.property))),parenthesize(result,Precedence.Member,precedence)},MetaProperty:function(expr,precedence,flags){var result;return(result=[]).push("string"==typeof expr.meta?expr.meta:generateIdentifier(expr.meta)),result.push("."),result.push("string"==typeof expr.property?expr.property:generateIdentifier(expr.property)),parenthesize(result,Precedence.Member,precedence)},UnaryExpression:function(expr,precedence,flags){var result,fragment,rightCharCode,leftSource,leftCharCode;return fragment=this.generateExpression(expr.argument,Precedence.Unary,7),""===space?result=join(expr.operator,fragment):(result=[expr.operator],expr.operator.length>2?result=join(result,fragment):(leftCharCode=(leftSource=toSourceNodeWhenNeeded(result).toString()).charCodeAt(leftSource.length-1),rightCharCode=fragment.toString().charCodeAt(0),((43===leftCharCode||45===leftCharCode)&&leftCharCode===rightCharCode||esutils.code.isIdentifierPartES5(leftCharCode)&&esutils.code.isIdentifierPartES5(rightCharCode))&&result.push(noEmptySpace()),result.push(fragment))),parenthesize(result,Precedence.Unary,precedence)},YieldExpression:function(expr,precedence,flags){var result;return result=expr.delegate?"yield*":"yield",expr.argument&&(result=join(result,this.generateExpression(expr.argument,Precedence.Yield,7))),parenthesize(result,Precedence.Yield,precedence)},AwaitExpression:function(expr,precedence,flags){return parenthesize(join(expr.all?"await*":"await",this.generateExpression(expr.argument,Precedence.Await,7)),Precedence.Await,precedence)},UpdateExpression:function(expr,precedence,flags){return expr.prefix?parenthesize([expr.operator,this.generateExpression(expr.argument,Precedence.Unary,7)],Precedence.Unary,precedence):parenthesize([this.generateExpression(expr.argument,Precedence.Postfix,7),expr.operator],Precedence.Postfix,precedence)},FunctionExpression:function(expr,precedence,flags){var result=[generateAsyncPrefix(expr,!0),"function"];return expr.id?(result.push(generateStarSuffix(expr)||noEmptySpace()),result.push(generateIdentifier(expr.id))):result.push(generateStarSuffix(expr)||space),result.push(this.generateFunctionBody(expr)),result},ArrayPattern:function(expr,precedence,flags){return this.ArrayExpression(expr,precedence,flags,!0)},ArrayExpression:function(expr,precedence,flags,isPattern){var result,multiline,that=this;return expr.elements.length?(multiline=!isPattern&&expr.elements.length>1,result=["[",multiline?newline:""],withIndent(function(indent2){var i,iz;for(i=0,iz=expr.elements.length;i<iz;++i)expr.elements[i]?(result.push(multiline?indent2:""),result.push(that.generateExpression(expr.elements[i],Precedence.Assignment,7))):(multiline&&result.push(indent2),i+1===iz&&result.push(",")),i+1<iz&&result.push(","+(multiline?newline:space))}),multiline&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&result.push(newline),result.push(multiline?base2:""),result.push("]"),result):"[]"},RestElement:function(expr,precedence,flags){return"..."+this.generatePattern(expr.argument)},ClassExpression:function(expr,precedence,flags){var result,fragment;return result=["class"],expr.id&&(result=join(result,this.generateExpression(expr.id,Precedence.Sequence,7))),expr.superClass&&(fragment=join("extends",this.generateExpression(expr.superClass,Precedence.Unary,7)),result=join(result,fragment)),result.push(space),result.push(this.generateStatement(expr.body,33)),result},MethodDefinition:function(expr,precedence,flags){var result,fragment;return result=expr.static?["static"+space]:[],fragment="get"===expr.kind||"set"===expr.kind?[join(expr.kind,this.generatePropertyKey(expr.key,expr.computed)),this.generateFunctionBody(expr.value)]:[generateMethodPrefix(expr),this.generatePropertyKey(expr.key,expr.computed),this.generateFunctionBody(expr.value)],join(result,fragment)},Property:function(expr,precedence,flags){return"get"===expr.kind||"set"===expr.kind?[expr.kind,noEmptySpace(),this.generatePropertyKey(expr.key,expr.computed),this.generateFunctionBody(expr.value)]:expr.shorthand?"AssignmentPattern"===expr.value.type?this.AssignmentPattern(expr.value,Precedence.Sequence,7):this.generatePropertyKey(expr.key,expr.computed):expr.method?[generateMethodPrefix(expr),this.generatePropertyKey(expr.key,expr.computed),this.generateFunctionBody(expr.value)]:[this.generatePropertyKey(expr.key,expr.computed),":"+space,this.generateExpression(expr.value,Precedence.Assignment,7)]},ObjectExpression:function(expr,precedence,flags){var multiline,result,fragment,that=this;return expr.properties.length?(multiline=expr.properties.length>1,withIndent(function(){fragment=that.generateExpression(expr.properties[0],Precedence.Sequence,7)}),multiline||function hasLineTerminator(str){return/[\r\n]/g.test(str)}(toSourceNodeWhenNeeded(fragment).toString())?(withIndent(function(indent2){var i,iz;if(result=["{",newline,indent2,fragment],multiline)for(result.push(","+newline),i=1,iz=expr.properties.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(expr.properties[i],Precedence.Sequence,7)),i+1<iz&&result.push(","+newline)}),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2),result.push("}"),result):["{",space,fragment,space,"}"]):"{}"},AssignmentPattern:function(expr,precedence,flags){return this.generateAssignment(expr.left,expr.right,"=",precedence,flags)},ObjectPattern:function(expr,precedence,flags){var result,i,iz,multiline,property,that=this;if(!expr.properties.length)return"{}";if(multiline=!1,1===expr.properties.length)(property=expr.properties[0]).type===Syntax.Property&&property.value.type!==Syntax.Identifier&&(multiline=!0);else for(i=0,iz=expr.properties.length;i<iz;++i)if((property=expr.properties[i]).type===Syntax.Property&&!property.shorthand){multiline=!0;break}return result=["{",multiline?newline:""],withIndent(function(indent2){var i2,iz2;for(i2=0,iz2=expr.properties.length;i2<iz2;++i2)result.push(multiline?indent2:""),result.push(that.generateExpression(expr.properties[i2],Precedence.Sequence,7)),i2+1<iz2&&result.push(","+(multiline?newline:space))}),multiline&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&result.push(newline),result.push(multiline?base2:""),result.push("}"),result},ThisExpression:function(expr,precedence,flags){return"this"},Super:function(expr,precedence,flags){return"super"},Identifier:function(expr,precedence,flags){return generateIdentifier(expr)},ImportDefaultSpecifier:function(expr,precedence,flags){return generateIdentifier(expr.id||expr.local)},ImportNamespaceSpecifier:function(expr,precedence,flags){var result=["*"],id=expr.id||expr.local;return id&&result.push(space+"as"+noEmptySpace()+generateIdentifier(id)),result},ImportSpecifier:function(expr,precedence,flags){var imported=expr.imported,result=[imported.name],local=expr.local;return local&&local.name!==imported.name&&result.push(noEmptySpace()+"as"+noEmptySpace()+generateIdentifier(local)),result},ExportSpecifier:function(expr,precedence,flags){var local=expr.local,result=[local.name],exported=expr.exported;return exported&&exported.name!==local.name&&result.push(noEmptySpace()+"as"+noEmptySpace()+generateIdentifier(exported)),result},Literal:function(expr,precedence,flags){var raw;if(expr.hasOwnProperty("raw")&&parse5&&extra.raw)try{if((raw=parse5(expr.raw).body[0].expression).type===Syntax.Literal&&raw.value===expr.value)return expr.raw}catch{}return expr.regex?"/"+expr.regex.pattern+"/"+expr.regex.flags:"bigint"==typeof expr.value?expr.value.toString()+"n":expr.bigint?expr.bigint+"n":null===expr.value?"null":"string"==typeof expr.value?function escapeString(str){var i,len,code,single,quote,result="",singleQuotes=0,doubleQuotes=0;for(i=0,len=str.length;i<len;++i){if(39===(code=str.charCodeAt(i)))++singleQuotes;else if(34===code)++doubleQuotes;else if(47===code&&json)result+="\\";else{if(esutils.code.isLineTerminator(code)||92===code){result+=escapeDisallowedCharacter(code);continue}if(!esutils.code.isIdentifierPartES5(code)&&(json&&code<32||!json&&!escapeless&&(code<32||code>126))){result+=escapeAllowedCharacter(code,str.charCodeAt(i+1));continue}}result+=String.fromCharCode(code)}if(quote=(single=!("double"===quotes||"auto"===quotes&&doubleQuotes<singleQuotes))?"'":'"',!(single?singleQuotes:doubleQuotes))return quote+result+quote;for(str=result,result=quote,i=0,len=str.length;i<len;++i)(39===(code=str.charCodeAt(i))&&single||34===code&&!single)&&(result+="\\"),result+=String.fromCharCode(code);return result+quote}(expr.value):"number"==typeof expr.value?function generateNumber(value){var result,point,temp,exponent,pos;if(value!=value)throw new Error("Numeric literal whose value is NaN");if(value<0||0===value&&1/value<0)throw new Error("Numeric literal whose value is negative");if(value===1/0)return json?"null":renumber?"1e400":"1e+400";if(result=""+value,!renumber||result.length<3)return result;for(point=result.indexOf("."),!json&&48===result.charCodeAt(0)&&1===point&&(point=0,result=result.slice(1)),temp=result,result=result.replace("e+","e"),exponent=0,(pos=temp.indexOf("e"))>0&&(exponent=+temp.slice(pos+1),temp=temp.slice(0,pos)),point>=0&&(exponent-=temp.length-point-1,temp=+(temp.slice(0,point)+temp.slice(point+1))+""),pos=0;48===temp.charCodeAt(temp.length+pos-1);)--pos;return 0!==pos&&(exponent-=pos,temp=temp.slice(0,pos)),0!==exponent&&(temp+="e"+exponent),(temp.length<result.length||hexadecimal&&value>1e12&&Math.floor(value)===value&&(temp="0x"+value.toString(16)).length<result.length)&&+temp===value&&(result=temp),result}(expr.value):"boolean"==typeof expr.value?expr.value?"true":"false":function generateRegExp(reg){var match,result,flags,i,iz,ch,characterInBrack,previousIsBackslash;if(result=reg.toString(),reg.source){if(!(match=result.match(/\/([^/]*)$/)))return result;for(flags=match[1],result="",characterInBrack=!1,previousIsBackslash=!1,i=0,iz=reg.source.length;i<iz;++i)ch=reg.source.charCodeAt(i),previousIsBackslash?(result+=escapeRegExpCharacter(ch,previousIsBackslash),previousIsBackslash=!1):(characterInBrack?93===ch&&(characterInBrack=!1):47===ch?result+="\\":91===ch&&(characterInBrack=!0),result+=escapeRegExpCharacter(ch,previousIsBackslash),previousIsBackslash=92===ch);return"/"+result+"/"+flags}return result}(expr.value)},GeneratorExpression:function(expr,precedence,flags){return this.ComprehensionExpression(expr,precedence,flags)},ComprehensionExpression:function(expr,precedence,flags){var result,i,iz,fragment,that=this;return result=expr.type===Syntax.GeneratorExpression?["("]:["["],extra.moz.comprehensionExpressionStartsWithAssignment&&(fragment=this.generateExpression(expr.body,Precedence.Assignment,7),result.push(fragment)),expr.blocks&&withIndent(function(){for(i=0,iz=expr.blocks.length;i<iz;++i)fragment=that.generateExpression(expr.blocks[i],Precedence.Sequence,7),i>0||extra.moz.comprehensionExpressionStartsWithAssignment?result=join(result,fragment):result.push(fragment)}),expr.filter&&(result=join(result,"if"+space),fragment=this.generateExpression(expr.filter,Precedence.Sequence,7),result=join(result,["(",fragment,")"])),extra.moz.comprehensionExpressionStartsWithAssignment||(fragment=this.generateExpression(expr.body,Precedence.Assignment,7),result=join(result,fragment)),result.push(expr.type===Syntax.GeneratorExpression?")":"]"),result},ComprehensionBlock:function(expr,precedence,flags){var fragment;return fragment=join(fragment=expr.left.type===Syntax.VariableDeclaration?[expr.left.kind,noEmptySpace(),this.generateStatement(expr.left.declarations[0],0)]:this.generateExpression(expr.left,Precedence.Call,7),expr.of?"of":"in"),fragment=join(fragment,this.generateExpression(expr.right,Precedence.Sequence,7)),["for"+space+"(",fragment,")"]},SpreadElement:function(expr,precedence,flags){return["...",this.generateExpression(expr.argument,Precedence.Assignment,7)]},TaggedTemplateExpression:function(expr,precedence,flags){var itemFlags=3;return 2&flags||(itemFlags=1),parenthesize([this.generateExpression(expr.tag,Precedence.Call,itemFlags),this.generateExpression(expr.quasi,Precedence.Primary,4)],Precedence.TaggedTemplate,precedence)},TemplateElement:function(expr,precedence,flags){return expr.value.raw},TemplateLiteral:function(expr,precedence,flags){var result,i,iz;for(result=["`"],i=0,iz=expr.quasis.length;i<iz;++i)result.push(this.generateExpression(expr.quasis[i],Precedence.Primary,7)),i+1<iz&&(result.push("${"+space),result.push(this.generateExpression(expr.expressions[i],Precedence.Sequence,7)),result.push(space+"}"));return result.push("`"),result},ModuleSpecifier:function(expr,precedence,flags){return this.Literal(expr,precedence,flags)},ImportExpression:function(expr,precedence,flag){return parenthesize(["import(",this.generateExpression(expr.source,Precedence.Assignment,7),")"],Precedence.Call,precedence)}},merge(CodeGenerator.prototype,CodeGenerator.Expression),CodeGenerator.prototype.generateExpression=function(expr,precedence,flags){var result,type;return type=expr.type||Syntax.Property,extra.verbatim&&expr.hasOwnProperty(extra.verbatim)?function generateVerbatim(expr,precedence){var verbatim,result;return result="string"==typeof(verbatim=expr[extra.verbatim])?parenthesize(generateVerbatimString(verbatim),Precedence.Sequence,precedence):parenthesize(result=generateVerbatimString(verbatim.content),null!=verbatim.precedence?verbatim.precedence:Precedence.Sequence,precedence),toSourceNodeWhenNeeded(result,expr)}(expr,precedence):(result=this[type](expr,precedence,flags),extra.comment&&(result=addComments(expr,result)),toSourceNodeWhenNeeded(result,expr))},CodeGenerator.prototype.generateStatement=function(stmt,flags){var result,fragment;return result=this[stmt.type](stmt,flags),extra.comment&&(result=addComments(stmt,result)),fragment=toSourceNodeWhenNeeded(result).toString(),stmt.type===Syntax.Program&&!safeConcatenation&&""===newline&&"\n"===fragment.charAt(fragment.length-1)&&(result=sourceMap?toSourceNodeWhenNeeded(result).replaceRight(/\s+$/,""):fragment.replace(/\s+$/,"")),toSourceNodeWhenNeeded(result,stmt)},FORMAT_MINIFY={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},FORMAT_DEFAULTS={indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},exports.version=require_package().version,exports.generate=function generate2(node,options){var result,pair,defaultOptions2={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=options?("string"==typeof options.indent&&(defaultOptions2.format.indent.style=options.indent),"number"==typeof options.base&&(defaultOptions2.format.indent.base=options.base),options=updateDeeply(defaultOptions2,options),indent=options.format.indent.style,base2="string"==typeof options.base?options.base:stringRepeat(indent,options.format.indent.base)):(indent=(options=defaultOptions2).format.indent.style,base2=stringRepeat(indent,options.format.indent.base)),json=options.format.json,renumber=options.format.renumber,hexadecimal=!json&&options.format.hexadecimal,quotes=json?"double":options.format.quotes,escapeless=options.format.escapeless,newline=options.format.newline,space=options.format.space,options.format.compact&&(newline=space=indent=base2=""),parentheses=options.format.parentheses,semicolons=options.format.semicolons,safeConcatenation=options.format.safeConcatenation,directive=options.directive,parse5=json?null:options.parse,sourceMap=options.sourceMap,sourceCode=options.sourceCode,preserveBlankLines=options.format.preserveBlankLines&&null!==sourceCode,extra=options,sourceMap&&(SourceNode=exports.browser?__webpack_require__.g.sourceMap.SourceNode:require_source_map().SourceNode),result=generateInternal(node),sourceMap?(pair=result.toStringWithSourceMap({file:options.file,sourceRoot:options.sourceMapRoot}),options.sourceContent&&pair.map.setSourceContent(options.sourceMap,options.sourceContent),options.sourceMapWithCode?pair:pair.map.toString()):(pair={code:result.toString(),map:null},options.sourceMapWithCode?pair:pair.code)},exports.attachComments=estraverse.attachComments,exports.Precedence=updateDeeply({},Precedence),exports.browser=!1,exports.FORMAT_MINIFY=FORMAT_MINIFY,exports.FORMAT_DEFAULTS=FORMAT_DEFAULTS}()}}),acorn_exports={};function isInAstralSet(code,set){for(var pos=65536,i=0;i<set.length;i+=2){if((pos+=set[i])>code)return!1;if((pos+=set[i+1])>=code)return!0}}function isIdentifierStart(code,astral){return code<65?36===code:code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):!1!==astral&&isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code,astral){return code<48?36===code:code<58||!(code<65)&&(code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):!1!==astral&&(isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes)))))}function binop(name,prec){return new TokenType(name,{beforeExpr:!0,binop:prec})}function kw(name,options){return void 0===options&&(options={}),options.keyword=name,keywords$1[name]=new TokenType(name,options)}function isNewLine(code,ecma2019String){return 10===code||13===code||!ecma2019String&&(8232===code||8233===code)}function has(obj,propName){return chunk_JQQVJC7C_hasOwnProperty.call(obj,propName)}function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}function getLineInfo(input,offset2){for(var line=1,cur=0;;){lineBreakG.lastIndex=cur;var match=lineBreakG.exec(input);if(!(match&&match.index<offset2))return new Position(line,offset2-cur);++line,cur=match.index+match[0].length}}function getOptions(opts){var options={};for(var opt in defaultOptions)options[opt]=opts&&has(opts,opt)?opts[opt]:defaultOptions[opt];if(options.ecmaVersion>=2015&&(options.ecmaVersion-=2009),null==options.allowReserved&&(options.allowReserved=options.ecmaVersion<5),isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}return isArray(options.onComment)&&(options.onComment=function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start,end};options.locations&&(comment.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment.range=[start,end]),array.push(comment)}}(options,options.onComment)),options}function functionFlags(async,generator){return SCOPE_FUNCTION|(async?SCOPE_ASYNC:0)|(generator?SCOPE_GENERATOR:0)}function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}function finishNodeAt(node,type,pos,loc){return node.type=type,node.end=pos,this.options.locations&&(node.loc.end=loc),this.options.ranges&&(node.range[1]=pos),node}function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}function codePointToString(ch){return ch<=65535?String.fromCharCode(ch):(ch-=65536,String.fromCharCode(55296+(ch>>10),56320+(1023&ch)))}function isSyntaxCharacter(ch){return 36===ch||ch>=40&&ch<=43||46===ch||63===ch||ch>=91&&ch<=94||ch>=123&&ch<=125}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||95===ch}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?ch-65+10:ch>=97&&ch<=102?ch-97+10:ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}function stringToBigInt(str){return"function"!=typeof BigInt?null:BigInt(str.replace(/_/g,""))}function codePointToString$1(code){return code<=65535?String.fromCharCode(code):(code-=65536,String.fromCharCode(55296+(code>>10),56320+(1023&code)))}function parse3(input,options){return Parser.parse(input,options)}function parseExpressionAt2(input,pos,options){return Parser.parseExpressionAt(input,pos,options)}function tokenizer2(input,options){return Parser.tokenizer(input,options)}(0,chunk_XP5HYGXS.VA)(acorn_exports,{Node:()=>Node,Parser:()=>Parser,Position:()=>Position,SourceLocation:()=>SourceLocation,TokContext:()=>TokContext,Token:()=>Token,TokenType:()=>TokenType,defaultOptions:()=>defaultOptions,getLineInfo:()=>getLineInfo,isIdentifierChar:()=>isIdentifierChar,isIdentifierStart:()=>isIdentifierStart,isNewLine:()=>isNewLine,keywordTypes:()=>keywords$1,lineBreak:()=>lineBreak,lineBreakG:()=>lineBreakG,nonASCIIwhitespace:()=>nonASCIIwhitespace,parse:()=>parse3,parseExpressionAt:()=>parseExpressionAt2,tokContexts:()=>types$1,tokTypes:()=>types,tokenizer:()=>tokenizer2,version:()=>version});var reservedWords,ecma5AndLessKeywords,keywords,keywordRelationalOperator,nonASCIIidentifierStartChars,nonASCIIidentifierChars,nonASCIIidentifierStart,nonASCIIidentifier,astralIdentifierStartCodes,astralIdentifierCodes,TokenType,beforeExpr,startsExpr,keywords$1,types,lineBreak,lineBreakG,nonASCIIwhitespace,skipWhiteSpace,ref,chunk_JQQVJC7C_hasOwnProperty,chunk_JQQVJC7C_toString,isArray,Position,SourceLocation,defaultOptions,SCOPE_FUNCTION,SCOPE_VAR,SCOPE_ASYNC,SCOPE_GENERATOR,Parser,prototypeAccessors,pp,literal,pp$1,loopLabel,switchLabel,empty,FUNC_STATEMENT,FUNC_HANGING_STATEMENT,pp$2,pp$3,empty$1,pp$4,pp$5,Scope,Node,pp$6,TokContext,types$1,pp$7,ecma9BinaryProperties,ecma10BinaryProperties,unicodeBinaryProperties,unicodeGeneralCategoryValues,ecma9ScriptValues,ecma10ScriptValues,unicodeScriptValues,data,pp$8,RegExpValidationState,Token,pp$9,INVALID_TEMPLATE_ESCAPE_ERROR,version,init_acorn=(0,chunk_XP5HYGXS.E)({"../../node_modules/acorn/dist/acorn.mjs"(){reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},keywords={5:ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this","5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]"),nonASCIIidentifierStartChars=nonASCIIidentifierChars=null,astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239],beforeExpr={beforeExpr:!0},keywords$1={},types={num:new(TokenType=function(label,conf){void 0===conf&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null})("num",startsExpr={startsExpr:!0}),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g"),nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,chunk_JQQVJC7C_hasOwnProperty=ref.hasOwnProperty,chunk_JQQVJC7C_toString=ref.toString,isArray=Array.isArray||function(obj){return"[object Array]"===chunk_JQQVJC7C_toString.call(obj)},(Position=function(line,col){this.line=line,this.column=col}).prototype.offset=function(n){return new Position(this.line,this.column+n)},SourceLocation=function(p,start,end){this.start=start,this.end=end,null!==p.sourceFile&&(this.source=p.sourceFile)},defaultOptions={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},SCOPE_VAR=1|(SCOPE_FUNCTION=2),SCOPE_ASYNC=4,SCOPE_GENERATOR=8,prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}},(Parser=function(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords[options.ecmaVersion>=6?6:"module"===options.sourceType?"5module":5]);var reserved="";if(!0!==options.allowReserved){for(var v=options.ecmaVersion;!(reserved=reservedWords[v]);v--);"module"===options.sourceType&&(reserved+=" await")}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===options.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null}).prototype.parse=function(){var node=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0},prototypeAccessors.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},prototypeAccessors.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Parser.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&SCOPE_FUNCTION)>0},Parser.extend=function(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i<plugins.length;i++)cls=plugins[i](cls);return cls},Parser.parse=function(input,options){return new this(options,input).parse()},Parser.parseExpressionAt=function(input,pos,options){var parser=new this(options,input,pos);return parser.nextToken(),parser.parseExpression()},Parser.tokenizer=function(input,options){return new this(options,input)},Object.defineProperties(Parser.prototype,prototypeAccessors),pp=Parser.prototype,literal=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/,pp.strictDirective=function(start){for(;;){skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length;var match=literal.exec(this.input.slice(start));if(!match)return!1;if("use strict"===(match[1]||match[2])){skipWhiteSpace.lastIndex=start+match[0].length;var spaceAfter=skipWhiteSpace.exec(this.input),end=spaceAfter.index+spaceAfter[0].length,next=this.input.charAt(end);return";"===next||"}"===next||lineBreak.test(spaceAfter[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(next)||"!"===next&&"="===this.input.charAt(end+1))}start+=match[0].length,skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[start]&&start++}},pp.eat=function(type){return this.type===type&&(this.next(),!0)},pp.isContextual=function(name){return this.type===types.name&&this.value===name&&!this.containsEsc},pp.eatContextual=function(name){return!!this.isContextual(name)&&(this.next(),!0)},pp.expectContextual=function(name){this.eatContextual(name)||this.unexpected()},pp.canInsertSemicolon=function(){return this.type===types.eof||this.type===types.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp.semicolon=function(){!this.eat(types.semi)&&!this.insertSemicolon()&&this.unexpected()},pp.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0},pp.expect=function(type){this.eat(type)||this.unexpected()},pp.unexpected=function(pos){this.raise(pos??this.start,"Unexpected token")},pp.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,"Parenthesized pattern")}},pp.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return!1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")},pp.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pp.isSimpleAssignTarget=function(expr){return"ParenthesizedExpression"===expr.type?this.isSimpleAssignTarget(expr.expression):"Identifier"===expr.type||"MemberExpression"===expr.type},(pp$1=Parser.prototype).parseTopLevel=function(node){var exports={};for(node.body||(node.body=[]);this.type!==types.eof;){var stmt=this.parseStatement(null,!0,exports);node.body.push(stmt)}if(this.inModule)for(var i=0,list=Object.keys(this.undefinedExports);i<list.length;i+=1){var name=list[i];this.raiseRecoverable(this.undefinedExports[name].start,"Export '"+name+"' is not defined")}return this.adaptDirectivePrologue(node.body),this.next(),node.sourceType=this.options.sourceType,this.finishNode(node,"Program")},loopLabel={kind:"loop"},switchLabel={kind:"switch"},pp$1.isLet=function(context){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(91===nextCh)return!0;if(context)return!1;if(123===nextCh)return!0;if(isIdentifierStart(nextCh,!0)){for(var pos=next+1;isIdentifierChar(this.input.charCodeAt(pos),!0);)++pos;var ident=this.input.slice(next,pos);if(!keywordRelationalOperator.test(ident))return!0}return!1},pp$1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length;return!(lineBreak.test(this.input.slice(this.pos,next))||"function"!==this.input.slice(next,next+8)||next+8!==this.input.length&&isIdentifierChar(this.input.charAt(next+8)))},pp$1.parseStatement=function(context,topLevel,exports){var kind,starttype=this.type,node=this.startNode();switch(this.isLet(context)&&(starttype=types._var,kind="let"),starttype){case types._break:case types._continue:return this.parseBreakContinueStatement(node,starttype.keyword);case types._debugger:return this.parseDebuggerStatement(node);case types._do:return this.parseDoStatement(node);case types._for:return this.parseForStatement(node);case types._function:return context&&(this.strict||"if"!==context&&"label"!==context)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(node,!1,!context);case types._class:return context&&this.unexpected(),this.parseClass(node,!0);case types._if:return this.parseIfStatement(node);case types._return:return this.parseReturnStatement(node);case types._switch:return this.parseSwitchStatement(node);case types._throw:return this.parseThrowStatement(node);case types._try:return this.parseTryStatement(node);case types._const:case types._var:return kind=kind||this.value,context&&"var"!==kind&&this.unexpected(),this.parseVarStatement(node,kind);case types._while:return this.parseWhileStatement(node);case types._with:return this.parseWithStatement(node);case types.braceL:return this.parseBlock(!0,node);case types.semi:return this.parseEmptyStatement(node);case types._export:case types._import:if(this.options.ecmaVersion>10&&starttype===types._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(40===nextCh||46===nextCh)return this.parseExpressionStatement(node,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),starttype===types._import?this.parseImport(node):this.parseExport(node,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types.name&&"Identifier"===expr.type&&this.eat(types.colon)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}},pp$1.parseBreakContinueStatement=function(node,keyword){var isBreak="break"===keyword;this.next(),this.eat(types.semi)||this.insertSemicolon()?node.label=null:this.type!==types.name?this.unexpected():(node.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var lab=this.labels[i];if((null==node.label||lab.name===node.label.name)&&(null!=lab.kind&&(isBreak||"loop"===lab.kind)||node.label&&isBreak))break}return i===this.labels.length&&this.raise(node.start,"Unsyntactic "+keyword),this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")},pp$1.parseDebuggerStatement=function(node){return this.next(),this.semicolon(),this.finishNode(node,"DebuggerStatement")},pp$1.parseDoStatement=function(node){return this.next(),this.labels.push(loopLabel),node.body=this.parseStatement("do"),this.labels.pop(),this.expect(types._while),node.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types.semi):this.semicolon(),this.finishNode(node,"DoWhileStatement")},pp$1.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types.parenL),this.type===types.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,null);var isLet=this.isLet();if(this.type===types._var||this.type===types._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===init$1.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.parseForIn(node,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init$1))}var refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!0,refDestructuringErrors);return this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.toAssignable(init,!1,refDestructuringErrors),this.checkLVal(init),this.parseForIn(node,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init))},pp$1.parseFunctionStatement=function(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)},pp$1.parseIfStatement=function(node){return this.next(),node.test=this.parseParenExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(types._else)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")},pp$1.parseReturnStatement=function(node){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types.semi)||this.insertSemicolon()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")},pp$1.parseSwitchStatement=function(node){this.next(),node.discriminant=this.parseParenExpression(),node.cases=[],this.expect(types.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var cur,sawDefault=!1;this.type!==types.braceR;)if(this.type===types._case||this.type===types._default){var isCase=this.type===types._case;cur&&this.finishNode(cur,"SwitchCase"),node.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types.colon)}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node,"SwitchStatement")},pp$1.parseThrowStatement=function(node){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")},empty=[],pp$1.parseTryStatement=function(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.type===types._catch){var clause=this.startNode();if(this.next(),this.eat(types.parenL)){clause.param=this.parseBindingAtom();var simple2="Identifier"===clause.param.type;this.enterScope(simple2?32:0),this.checkLVal(clause.param,simple2?4:2),this.expect(types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node.handler=this.finishNode(clause,"CatchClause")}return node.finalizer=this.eat(types._finally)?this.parseBlock():null,!node.handler&&!node.finalizer&&this.raise(node.start,"Missing catch or finally clause"),this.finishNode(node,"TryStatement")},pp$1.parseVarStatement=function(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")},pp$1.parseWhileStatement=function(node){return this.next(),node.test=this.parseParenExpression(),this.labels.push(loopLabel),node.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node,"WhileStatement")},pp$1.parseWithStatement=function(node){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node.object=this.parseParenExpression(),node.body=this.parseStatement("with"),this.finishNode(node,"WithStatement")},pp$1.parseEmptyStatement=function(node){return this.next(),this.finishNode(node,"EmptyStatement")},pp$1.parseLabeledStatement=function(node,maybeName,expr,context){for(var i$1=0,list=this.labels;i$1<list.length;i$1+=1){list[i$1].name===maybeName&&this.raise(expr.start,"Label '"+maybeName+"' is already declared")}for(var kind=this.type.isLoop?"loop":this.type===types._switch?"switch":null,i=this.labels.length-1;i>=0;i--){var label$1=this.labels[i];if(label$1.statementStart!==node.start)break;label$1.statementStart=this.start,label$1.kind=kind}return this.labels.push({name:maybeName,kind,statementStart:this.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")},pp$1.parseExpressionStatement=function(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")},pp$1.parseBlock=function(createNewLexicalScope,node,exitStrict){for(void 0===createNewLexicalScope&&(createNewLexicalScope=!0),void 0===node&&(node=this.startNode()),node.body=[],this.expect(types.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt)}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node,"BlockStatement")},pp$1.parseFor=function(node,init){return node.init=init,this.expect(types.semi),node.test=this.type===types.semi?null:this.parseExpression(),this.expect(types.semi),node.update=this.type===types.parenR?null:this.parseExpression(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,"ForStatement")},pp$1.parseForIn=function(node,init){var isForIn=this.type===types._in;return this.next(),"VariableDeclaration"===init.type&&null!=init.declarations[0].init&&(!isForIn||this.options.ecmaVersion<8||this.strict||"var"!==init.kind||"Identifier"!==init.declarations[0].id.type)?this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===init.type&&this.raise(init.start,"Invalid left-hand side in for-loop"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")},pp$1.parseVar=function(node,isFor,kind){for(node.declarations=[],node.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types.eq)?decl.init=this.parseMaybeAssign(isFor):"const"!==kind||this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===decl.id.type||isFor&&(this.type===types._in||this.isContextual("of"))?decl.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),node.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types.comma))break}return node},pp$1.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,"var"===kind?1:2,!1)},FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,pp$1.parseFunction=function(node,statement,allowExpressionBody,isAsync){this.initFunction(node),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node.generator=this.eat(types.star)),this.options.ecmaVersion>=8&&(node.async=!!isAsync),statement&FUNC_STATEMENT&&(node.id=4&statement&&this.type!==types.name?null:this.parseIdent(),node.id&&!(statement&FUNC_HANGING_STATEMENT)&&this.checkLVal(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?1:2:3));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node.async,node.generator)),statement&FUNC_STATEMENT||(node.id=this.type===types.name?this.parseIdent():null),this.parseFunctionParams(node),this.parseFunctionBody(node,allowExpressionBody,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$1.parseFunctionParams=function(node){this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$1.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node,isStatement),this.parseClassSuper(node);var classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types.braceL);this.type!==types.braceR;){var element=this.parseClassElement(null!==node.superClass);element&&(classBody.body.push(element),"MethodDefinition"===element.type&&"constructor"===element.kind&&(hadConstructor&&this.raise(element.start,"Duplicate constructor in the same class"),hadConstructor=!0))}return this.strict=oldStrict,this.next(),node.body=this.finishNode(classBody,"ClassBody"),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")},pp$1.parseClassElement=function(constructorAllowsSuper){var this$1$1=this;if(this.eat(types.semi))return null;var method=this.startNode(),tryContextual=function(k,noLineBreak){void 0===noLineBreak&&(noLineBreak=!1);var start=this$1$1.start,startLoc=this$1$1.startLoc;return!!this$1$1.eatContextual(k)&&(!(this$1$1.type===types.parenL||noLineBreak&&this$1$1.canInsertSemicolon())||(method.key&&this$1$1.unexpected(),method.computed=!1,method.key=this$1$1.startNodeAt(start,startLoc),method.key.name=k,this$1$1.finishNode(method.key,"Identifier"),!1))};method.kind="method",method.static=tryContextual("static");var isGenerator=this.eat(types.star),isAsync=!1;isGenerator||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star)):tryContextual("get")?method.kind="get":tryContextual("set")&&(method.kind="set")),method.key||this.parsePropertyName(method);var key=method.key,allowsDirectSuper=!1;return method.computed||method.static||!("Identifier"===key.type&&"constructor"===key.name||"Literal"===key.type&&"constructor"===key.value)?method.static&&"Identifier"===key.type&&"prototype"===key.name&&this.raise(key.start,"Classes may not have a static property named prototype"):("method"!==method.kind&&this.raise(key.start,"Constructor can't have get/set modifier"),isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method"),method.kind="constructor",allowsDirectSuper=constructorAllowsSuper),this.parseClassMethod(method,isGenerator,isAsync,allowsDirectSuper),"get"===method.kind&&0!==method.value.params.length&&this.raiseRecoverable(method.value.start,"getter should have no params"),"set"===method.kind&&1!==method.value.params.length&&this.raiseRecoverable(method.value.start,"setter should have exactly one param"),"set"===method.kind&&"RestElement"===method.value.params[0].type&&this.raiseRecoverable(method.value.params[0].start,"Setter cannot use rest params"),method},pp$1.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){return method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper),this.finishNode(method,"MethodDefinition")},pp$1.parseClassId=function(node,isStatement){this.type===types.name?(node.id=this.parseIdent(),isStatement&&this.checkLVal(node.id,2,!1)):(!0===isStatement&&this.unexpected(),node.id=null)},pp$1.parseClassSuper=function(node){node.superClass=this.eat(types._extends)?this.parseExprSubscripts():null},pp$1.parseExport=function(node,exports){if(this.next(),this.eat(types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node.exported=this.parseIdent(!0),this.checkExport(exports,node.exported.name,this.lastTokStart)):node.exported=null),this.expectContextual("from"),this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node,"ExportAllDeclaration");if(this.eat(types._default)){var isAsync;if(this.checkExport(exports,"default",this.lastTokStart),this.type===types._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node.declaration=this.parseFunction(fNode,4|FUNC_STATEMENT,!1,isAsync)}else if(this.type===types._class){var cNode=this.startNode();node.declaration=this.parseClass(cNode,"nullableID")}else node.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node.declaration=this.parseStatement(null),"VariableDeclaration"===node.declaration.type?this.checkVariableExport(exports,node.declaration.declarations):this.checkExport(exports,node.declaration.id.name,node.declaration.id.start),node.specifiers=[],node.source=null;else{if(node.declaration=null,node.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom();else{for(var i=0,list=node.specifiers;i<list.length;i+=1){var spec=list[i];this.checkUnreserved(spec.local),this.checkLocalExport(spec.local)}node.source=null}this.semicolon()}return this.finishNode(node,"ExportNamedDeclaration")},pp$1.checkExport=function(exports,name,pos){exports&&(has(exports,name)&&this.raiseRecoverable(pos,"Duplicate export '"+name+"'"),exports[name]=!0)},pp$1.checkPatternExport=function(exports,pat){var type=pat.type;if("Identifier"===type)this.checkExport(exports,pat.name,pat.start);else if("ObjectPattern"===type)for(var i=0,list=pat.properties;i<list.length;i+=1){var prop=list[i];this.checkPatternExport(exports,prop)}else if("ArrayPattern"===type)for(var i$1=0,list$1=pat.elements;i$1<list$1.length;i$1+=1){var elt=list$1[i$1];elt&&this.checkPatternExport(exports,elt)}else"Property"===type?this.checkPatternExport(exports,pat.value):"AssignmentPattern"===type?this.checkPatternExport(exports,pat.left):"RestElement"===type?this.checkPatternExport(exports,pat.argument):"ParenthesizedExpression"===type&&this.checkPatternExport(exports,pat.expression)},pp$1.checkVariableExport=function(exports,decls){if(exports)for(var i=0,list=decls;i<list.length;i+=1){var decl=list[i];this.checkPatternExport(exports,decl.id)}},pp$1.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},pp$1.parseExportSpecifiers=function(exports){var nodes=[],first=!0;for(this.expect(types.braceL);!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.afterTrailingComma(types.braceR))break;var node=this.startNode();node.local=this.parseIdent(!0),node.exported=this.eatContextual("as")?this.parseIdent(!0):node.local,this.checkExport(exports,node.exported.name,node.exported.start),nodes.push(this.finishNode(node,"ExportSpecifier"))}return nodes},pp$1.parseImport=function(node){return this.next(),this.type===types.string?(node.specifiers=empty,node.source=this.parseExprAtom()):(node.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),node.source=this.type===types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(node,"ImportDeclaration")},pp$1.parseImportSpecifiers=function(){var nodes=[],first=!0;if(this.type===types.name){var node=this.startNode();if(node.local=this.parseIdent(),this.checkLVal(node.local,2),nodes.push(this.finishNode(node,"ImportDefaultSpecifier")),!this.eat(types.comma))return nodes}if(this.type===types.star){var node$1=this.startNode();return this.next(),this.expectContextual("as"),node$1.local=this.parseIdent(),this.checkLVal(node$1.local,2),nodes.push(this.finishNode(node$1,"ImportNamespaceSpecifier")),nodes}for(this.expect(types.braceL);!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.afterTrailingComma(types.braceR))break;var node$2=this.startNode();node$2.imported=this.parseIdent(!0),this.eatContextual("as")?node$2.local=this.parseIdent():(this.checkUnreserved(node$2.imported),node$2.local=node$2.imported),this.checkLVal(node$2.local,2),nodes.push(this.finishNode(node$2,"ImportSpecifier"))}return nodes},pp$1.adaptDirectivePrologue=function(statements){for(var i=0;i<statements.length&&this.isDirectiveCandidate(statements[i]);++i)statements[i].directive=statements[i].expression.raw.slice(1,-1)},pp$1.isDirectiveCandidate=function(statement){return"ExpressionStatement"===statement.type&&"Literal"===statement.expression.type&&"string"==typeof statement.expression.value&&('"'===this.input[statement.start]||"'"===this.input[statement.start])},(pp$2=Parser.prototype).toAssignable=function(node,isBinding,refDestructuringErrors){if(this.options.ecmaVersion>=6&&node)switch(node.type){case"Identifier":this.inAsync&&"await"===node.name&&this.raise(node.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list=node.properties;i<list.length;i+=1){var prop=list[i];this.toAssignable(prop,isBinding),"RestElement"===prop.type&&("ArrayPattern"===prop.argument.type||"ObjectPattern"===prop.argument.type)&&this.raise(prop.argument.start,"Unexpected token")}break;case"Property":"init"!==node.kind&&this.raise(node.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(node.value,isBinding);break;case"ArrayExpression":node.type="ArrayPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0),this.toAssignableList(node.elements,isBinding);break;case"SpreadElement":node.type="RestElement",this.toAssignable(node.argument,isBinding),"AssignmentPattern"===node.argument.type&&this.raise(node.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==node.operator&&this.raise(node.left.end,"Only '=' operator can be used for specifying default value."),node.type="AssignmentPattern",delete node.operator,this.toAssignable(node.left,isBinding);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(node.expression,isBinding,refDestructuringErrors);break;case"ChainExpression":this.raiseRecoverable(node.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!isBinding)break;default:this.raise(node.start,"Assigning to rvalue")}else refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);return node},pp$2.toAssignableList=function(exprList,isBinding){for(var end=exprList.length,i=0;i<end;i++){var elt=exprList[i];elt&&this.toAssignable(elt,isBinding)}if(end){var last=exprList[end-1];6===this.options.ecmaVersion&&isBinding&&last&&"RestElement"===last.type&&"Identifier"!==last.argument.type&&this.unexpected(last.argument.start)}return exprList},pp$2.parseSpread=function(refDestructuringErrors){var node=this.startNode();return this.next(),node.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.finishNode(node,"SpreadElement")},pp$2.parseRestBinding=function(){var node=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==types.name&&this.unexpected(),node.argument=this.parseBindingAtom(),this.finishNode(node,"RestElement")},pp$2.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types.bracketL:var node=this.startNode();return this.next(),node.elements=this.parseBindingList(types.bracketR,!0,!0),this.finishNode(node,"ArrayPattern");case types.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$2.parseBindingList=function(close,allowEmpty,allowTrailingComma){for(var elts=[],first=!0;!this.eat(close);)if(first?first=!1:this.expect(types.comma),allowEmpty&&this.type===types.comma)elts.push(null);else{if(allowTrailingComma&&this.afterTrailingComma(close))break;if(this.type===types.ellipsis){var rest=this.parseRestBinding();this.parseBindingListItem(rest),elts.push(rest),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(close);break}var elem=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(elem),elts.push(elem)}return elts},pp$2.parseBindingListItem=function(param){return param},pp$2.parseMaybeDefault=function(startPos,startLoc,left){if(left=left||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types.eq))return left;var node=this.startNodeAt(startPos,startLoc);return node.left=left,node.right=this.parseMaybeAssign(),this.finishNode(node,"AssignmentPattern")},pp$2.checkLVal=function(expr,bindingType,checkClashes){switch(void 0===bindingType&&(bindingType=0),expr.type){case"Identifier":2===bindingType&&"let"===expr.name&&this.raiseRecoverable(expr.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(expr.name)&&this.raiseRecoverable(expr.start,(bindingType?"Binding ":"Assigning to ")+expr.name+" in strict mode"),checkClashes&&(has(checkClashes,expr.name)&&this.raiseRecoverable(expr.start,"Argument name clash"),checkClashes[expr.name]=!0),0!==bindingType&&5!==bindingType&&this.declareName(expr.name,bindingType,expr.start);break;case"ChainExpression":this.raiseRecoverable(expr.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":bindingType&&this.raiseRecoverable(expr.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,list=expr.properties;i<list.length;i+=1){var prop=list[i];this.checkLVal(prop,bindingType,checkClashes)}break;case"Property":this.checkLVal(expr.value,bindingType,checkClashes);break;case"ArrayPattern":for(var i$1=0,list$1=expr.elements;i$1<list$1.length;i$1+=1){var elem=list$1[i$1];elem&&this.checkLVal(elem,bindingType,checkClashes)}break;case"AssignmentPattern":this.checkLVal(expr.left,bindingType,checkClashes);break;case"RestElement":this.checkLVal(expr.argument,bindingType,checkClashes);break;case"ParenthesizedExpression":this.checkLVal(expr.expression,bindingType,checkClashes);break;default:this.raise(expr.start,(bindingType?"Binding":"Assigning to")+" rvalue")}},(pp$3=Parser.prototype).checkPropClash=function(prop,propHash,refDestructuringErrors){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===prop.type||this.options.ecmaVersion>=6&&(prop.computed||prop.method||prop.shorthand))){var name,key=prop.key;switch(key.type){case"Identifier":name=key.name;break;case"Literal":name=String(key.value);break;default:return}var kind=prop.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===name&&"init"===kind&&(propHash.proto&&(refDestructuringErrors?refDestructuringErrors.doubleProto<0&&(refDestructuringErrors.doubleProto=key.start):this.raiseRecoverable(key.start,"Redefinition of __proto__ property")),propHash.proto=!0));var other=propHash[name="$"+name];if(other)("init"===kind?this.strict&&other.init||other.get||other.set:other.init||other[kind])&&this.raiseRecoverable(key.start,"Redefinition of property");else other=propHash[name]={init:!1,get:!1,set:!1};other[kind]=!0}},pp$3.parseExpression=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeAssign(noIn,refDestructuringErrors);if(this.type===types.comma){var node=this.startNodeAt(startPos,startLoc);for(node.expressions=[expr];this.eat(types.comma);)node.expressions.push(this.parseMaybeAssign(noIn,refDestructuringErrors));return this.finishNode(node,"SequenceExpression")}return expr},pp$3.parseMaybeAssign=function(noIn,refDestructuringErrors,afterLeftParse){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(noIn);this.exprAllowed=!1}var ownDestructuringErrors=!1,oldParenAssign=-1,oldTrailingComma=-1;refDestructuringErrors?(oldParenAssign=refDestructuringErrors.parenthesizedAssign,oldTrailingComma=refDestructuringErrors.trailingComma,refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=-1):(refDestructuringErrors=new DestructuringErrors,ownDestructuringErrors=!0);var startPos=this.start,startLoc=this.startLoc;(this.type===types.parenL||this.type===types.name)&&(this.potentialArrowAt=this.start);var left=this.parseMaybeConditional(noIn,refDestructuringErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),this.type.isAssign){var node=this.startNodeAt(startPos,startLoc);return node.operator=this.value,node.left=this.type===types.eq?this.toAssignable(left,!1,refDestructuringErrors):left,ownDestructuringErrors||(refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=refDestructuringErrors.doubleProto=-1),refDestructuringErrors.shorthandAssign>=node.left.start&&(refDestructuringErrors.shorthandAssign=-1),this.checkLVal(left),this.next(),node.right=this.parseMaybeAssign(noIn),this.finishNode(node,"AssignmentExpression")}return ownDestructuringErrors&&this.checkExpressionErrors(refDestructuringErrors,!0),oldParenAssign>-1&&(refDestructuringErrors.parenthesizedAssign=oldParenAssign),oldTrailingComma>-1&&(refDestructuringErrors.trailingComma=oldTrailingComma),left},pp$3.parseMaybeConditional=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprOps(noIn,refDestructuringErrors);if(this.checkExpressionErrors(refDestructuringErrors))return expr;if(this.eat(types.question)){var node=this.startNodeAt(startPos,startLoc);return node.test=expr,node.consequent=this.parseMaybeAssign(),this.expect(types.colon),node.alternate=this.parseMaybeAssign(noIn),this.finishNode(node,"ConditionalExpression")}return expr},pp$3.parseExprOps=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeUnary(refDestructuringErrors,!1);return this.checkExpressionErrors(refDestructuringErrors)||expr.start===startPos&&"ArrowFunctionExpression"===expr.type?expr:this.parseExprOp(expr,startPos,startLoc,-1,noIn)},pp$3.parseExprOp=function(left,leftStartPos,leftStartLoc,minPrec,noIn){var prec=this.type.binop;if(null!=prec&&(!noIn||this.type!==types._in)&&prec>minPrec){var logical=this.type===types.logicalOR||this.type===types.logicalAND,coalesce=this.type===types.coalesce;coalesce&&(prec=types.logicalAND.binop);var op=this.value;this.next();var startPos=this.start,startLoc=this.startLoc,right=this.parseExprOp(this.parseMaybeUnary(null,!1),startPos,startLoc,prec,noIn),node=this.buildBinary(leftStartPos,leftStartLoc,left,right,op,logical||coalesce);return(logical&&this.type===types.coalesce||coalesce&&(this.type===types.logicalOR||this.type===types.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec,noIn)}return left},pp$3.buildBinary=function(startPos,startLoc,left,right,op,logical){var node=this.startNodeAt(startPos,startLoc);return node.left=left,node.operator=op,node.right=right,this.finishNode(node,logical?"LogicalExpression":"BinaryExpression")},pp$3.parseMaybeUnary=function(refDestructuringErrors,sawUnary){var expr,startPos=this.start,startLoc=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))expr=this.parseAwait(),sawUnary=!0;else if(this.type.prefix){var node=this.startNode(),update=this.type===types.incDec;node.operator=this.value,node.prefix=!0,this.next(),node.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(refDestructuringErrors,!0),update?this.checkLVal(node.argument):this.strict&&"delete"===node.operator&&"Identifier"===node.argument.type?this.raiseRecoverable(node.start,"Deleting local variable in strict mode"):sawUnary=!0,expr=this.finishNode(node,update?"UpdateExpression":"UnaryExpression")}else{if(expr=this.parseExprSubscripts(refDestructuringErrors),this.checkExpressionErrors(refDestructuringErrors))return expr;for(;this.type.postfix&&!this.canInsertSemicolon();){var node$1=this.startNodeAt(startPos,startLoc);node$1.operator=this.value,node$1.prefix=!1,node$1.argument=expr,this.checkLVal(expr),this.next(),expr=this.finishNode(node$1,"UpdateExpression")}}return!sawUnary&&this.eat(types.starstar)?this.buildBinary(startPos,startLoc,expr,this.parseMaybeUnary(null,!1),"**",!1):expr},pp$3.parseExprSubscripts=function(refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprAtom(refDestructuringErrors);if("ArrowFunctionExpression"===expr.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return expr;var result=this.parseSubscripts(expr,startPos,startLoc);return refDestructuringErrors&&"MemberExpression"===result.type&&(refDestructuringErrors.parenthesizedAssign>=result.start&&(refDestructuringErrors.parenthesizedAssign=-1),refDestructuringErrors.parenthesizedBind>=result.start&&(refDestructuringErrors.parenthesizedBind=-1)),result},pp$3.parseSubscripts=function(base2,startPos,startLoc,noCalls){for(var maybeAsyncArrow=this.options.ecmaVersion>=8&&"Identifier"===base2.type&&"async"===base2.name&&this.lastTokEnd===base2.end&&!this.canInsertSemicolon()&&base2.end-base2.start===5&&this.potentialArrowAt===base2.start,optionalChained=!1;;){var element=this.parseSubscript(base2,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained);if(element.optional&&(optionalChained=!0),element===base2||"ArrowFunctionExpression"===element.type){if(optionalChained){var chainNode=this.startNodeAt(startPos,startLoc);chainNode.expression=element,element=this.finishNode(chainNode,"ChainExpression")}return element}base2=element}},pp$3.parseSubscript=function(base2,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained){var optionalSupported=this.options.ecmaVersion>=11,optional=optionalSupported&&this.eat(types.questionDot);noCalls&&optional&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var computed=this.eat(types.bracketL);if(computed||optional&&this.type!==types.parenL&&this.type!==types.backQuote||this.eat(types.dot)){var node=this.startNodeAt(startPos,startLoc);node.object=base2,node.property=computed?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),node.computed=!!computed,computed&&this.expect(types.bracketR),optionalSupported&&(node.optional=optional),base2=this.finishNode(node,"MemberExpression")}else if(!noCalls&&this.eat(types.parenL)){var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var exprList=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1,refDestructuringErrors);if(maybeAsyncArrow&&!optional&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,!0);this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,this.awaitIdentPos=oldAwaitIdentPos||this.awaitIdentPos;var node$1=this.startNodeAt(startPos,startLoc);node$1.callee=base2,node$1.arguments=exprList,optionalSupported&&(node$1.optional=optional),base2=this.finishNode(node$1,"CallExpression")}else if(this.type===types.backQuote){(optional||optionalChained)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var node$2=this.startNodeAt(startPos,startLoc);node$2.tag=base2,node$2.quasi=this.parseTemplate({isTagged:!0}),base2=this.finishNode(node$2,"TaggedTemplateExpression")}return base2},pp$3.parseExprAtom=function(refDestructuringErrors){this.type===types.slash&&this.readRegexp();var node,canBeArrow=this.potentialArrowAt===this.start;switch(this.type){case types._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),node=this.startNode(),this.next(),this.type===types.parenL&&!this.allowDirectSuper&&this.raise(node.start,"super() call outside constructor of a subclass"),this.type!==types.dot&&this.type!==types.bracketL&&this.type!==types.parenL&&this.unexpected(),this.finishNode(node,"Super");case types._this:return node=this.startNode(),this.next(),this.finishNode(node,"ThisExpression");case types.name:var startPos=this.start,startLoc=this.startLoc,containsEsc=this.containsEsc,id=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()&&this.eat(types._function))return this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1);if(this.options.ecmaVersion>=8&&"async"===id.name&&this.type===types.name&&!containsEsc)return id=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0)}return id;case types.regexp:var value=this.value;return(node=this.parseLiteral(value.value)).regex={pattern:value.pattern,flags:value.flags},node;case types.num:case types.string:return this.parseLiteral(this.value);case types._null:case types._true:case types._false:return(node=this.startNode()).value=this.type===types._null?null:this.type===types._true,node.raw=this.type.keyword,this.next(),this.finishNode(node,"Literal");case types.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start)),expr;case types.bracketL:return node=this.startNode(),this.next(),node.elements=this.parseExprList(types.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node,"ArrayExpression");case types.braceL:return this.parseObj(!1,refDestructuringErrors);case types._function:return node=this.startNode(),this.next(),this.parseFunction(node,0);case types._class:return this.parseClass(this.startNode(),!1);case types._new:return this.parseNew();case types.backQuote:return this.parseTemplate();case types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},pp$3.parseExprImport=function(){var node=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types.parenL:return this.parseDynamicImport(node);case types.dot:return node.meta=meta,this.parseImportMeta(node);default:this.unexpected()}},pp$3.parseDynamicImport=function(node){if(this.next(),node.source=this.parseMaybeAssign(),!this.eat(types.parenR)){var errorPos=this.start;this.eat(types.comma)&&this.eat(types.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos)}return this.finishNode(node,"ImportExpression")},pp$3.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"meta"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node,"MetaProperty")},pp$3.parseLiteral=function(value){var node=this.startNode();return node.value=value,node.raw=this.input.slice(this.start,this.end),110===node.raw.charCodeAt(node.raw.length-1)&&(node.bigint=node.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node,"Literal")},pp$3.parseParenExpression=function(){this.expect(types.parenL);var val=this.parseExpression();return this.expect(types.parenR),val},pp$3.parseParenAndDistinguishExpression=function(canBeArrow){var val,startPos=this.start,startLoc=this.startLoc,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var spreadStart,innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types.parenR;){if(first?first=!1:this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(types.parenR,!0)){lastIsComma=!0;break}if(this.type===types.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem))}var innerEndPos=this.start,innerEndLoc=this.startLoc;if(this.expect(types.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList);(!exprList.length||lastIsComma)&&this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?((val=this.startNodeAt(innerStartPos,innerStartLoc)).expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0]}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}return val},pp$3.parseParenItem=function(item){return item},pp$3.parseParenArrowList=function(startPos,startLoc,exprList){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList)},empty$1=[],pp$3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types.dot)){node.meta=meta;var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"target"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(node.start,"'new.target' can only be used in functions"),this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types._import;return node.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0),isImport&&"ImportExpression"===node.callee.type&&this.raise(startPos,"Cannot use new with import()"),this.eat(types.parenL)?node.arguments=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1):node.arguments=empty$1,this.finishNode(node,"NewExpression")},pp$3.parseTemplateElement=function(ref2){var isTagged=ref2.isTagged,elem=this.startNode();return this.type===types.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),elem.tail=this.type===types.backQuote,this.finishNode(elem,"TemplateElement")},pp$3.parseTemplate=function(ref2){void 0===ref2&&(ref2={});var isTagged=ref2.isTagged;void 0===isTagged&&(isTagged=!1);var node=this.startNode();this.next(),node.expressions=[];var curElt=this.parseTemplateElement({isTagged});for(node.quasis=[curElt];!curElt.tail;)this.type===types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types.dollarBraceL),node.expressions.push(this.parseExpression()),this.expect(types.braceR),node.quasis.push(curElt=this.parseTemplateElement({isTagged}));return this.next(),this.finishNode(node,"TemplateLiteral")},pp$3.isAsyncProp=function(prop){return!prop.computed&&"Identifier"===prop.key.type&&"async"===prop.key.name&&(this.type===types.name||this.type===types.num||this.type===types.string||this.type===types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$3.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=!0,propHash={};for(node.properties=[],this.next();!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types.braceR))break;var prop=this.parseProperty(isPattern,refDestructuringErrors);isPattern||this.checkPropClash(prop,propHash,refDestructuringErrors),node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")},pp$3.parseProperty=function(isPattern,refDestructuringErrors){var isGenerator,isAsync,startPos,startLoc,prop=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types.ellipsis))return isPattern?(prop.argument=this.parseIdent(!1),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(prop,"RestElement")):(this.type===types.parenL&&refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&(refDestructuringErrors.parenthesizedAssign=this.start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=this.start)),prop.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.type===types.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start),this.finishNode(prop,"SpreadElement"));this.options.ecmaVersion>=6&&(prop.method=!1,prop.shorthand=!1,(isPattern||refDestructuringErrors)&&(startPos=this.start,startLoc=this.startLoc),isPattern||(isGenerator=this.eat(types.star)));var containsEsc=this.containsEsc;return this.parsePropertyName(prop),!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star),this.parsePropertyName(prop,refDestructuringErrors)):isAsync=!1,this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc),this.finishNode(prop,"Property")},pp$3.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types.colon&&this.unexpected(),this.eat(types.colon))prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,refDestructuringErrors),prop.kind="init";else if(this.options.ecmaVersion>=6&&this.type===types.parenL)isPattern&&this.unexpected(),prop.kind="init",prop.method=!0,prop.value=this.parseMethod(isGenerator,isAsync);else if(isPattern||containsEsc||!(this.options.ecmaVersion>=5)||prop.computed||"Identifier"!==prop.key.type||"get"!==prop.key.name&&"set"!==prop.key.name||this.type===types.comma||this.type===types.braceR||this.type===types.eq)this.options.ecmaVersion>=6&&!prop.computed&&"Identifier"===prop.key.type?((isGenerator||isAsync)&&this.unexpected(),this.checkUnreserved(prop.key),"await"===prop.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=startPos),prop.kind="init",isPattern?prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key):this.type===types.eq&&refDestructuringErrors?(refDestructuringErrors.shorthandAssign<0&&(refDestructuringErrors.shorthandAssign=this.start),prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key)):prop.value=prop.key,prop.shorthand=!0):this.unexpected();else{(isGenerator||isAsync)&&this.unexpected(),prop.kind=prop.key.name,this.parsePropertyName(prop),prop.value=this.parseMethod(!1);var paramCount="get"===prop.kind?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;"get"===prop.kind?this.raiseRecoverable(start,"getter should have no params"):this.raiseRecoverable(start,"setter should have exactly one param")}else"set"===prop.kind&&"RestElement"===prop.value.params[0].type&&this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}},pp$3.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types.bracketL))return prop.computed=!0,prop.key=this.parseMaybeAssign(),this.expect(types.bracketR),prop.key;prop.computed=!1}return prop.key=this.type===types.num||this.type===types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$3.initFunction=function(node){node.id=null,this.options.ecmaVersion>=6&&(node.generator=node.expression=!1),this.options.ecmaVersion>=8&&(node.async=!1)},pp$3.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.initFunction(node),this.options.ecmaVersion>=6&&(node.generator=isGenerator),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(isAsync,node.generator)|(allowDirectSuper?128:0)),this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(node,!1,!0),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"FunctionExpression")},pp$3.parseArrowExpression=function(node,params,isAsync){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.enterScope(16|functionFlags(isAsync,!1)),this.initFunction(node),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,node.params=this.toAssignableList(params,!0),this.parseFunctionBody(node,!0,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"ArrowFunctionExpression")},pp$3.parseFunctionBody=function(node,isArrowFunction,isMethod){var isExpression=isArrowFunction&&this.type!==types.braceL,oldStrict=this.strict,useStrict=!1;if(isExpression)node.body=this.parseMaybeAssign(),node.expression=!0,this.checkParams(node,!1);else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);(!oldStrict||nonSimple)&&((useStrict=this.strictDirective(this.end))&&nonSimple&&this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var oldLabels=this.labels;this.labels=[],useStrict&&(this.strict=!0),this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params)),this.strict&&node.id&&this.checkLVal(node.id,5),node.body=this.parseBlock(!1,void 0,useStrict&&!oldStrict),node.expression=!1,this.adaptDirectivePrologue(node.body.body),this.labels=oldLabels}this.exitScope()},pp$3.isSimpleParamList=function(params){for(var i=0,list=params;i<list.length;i+=1){if("Identifier"!==list[i].type)return!1}return!0},pp$3.checkParams=function(node,allowDuplicates){for(var nameHash={},i=0,list=node.params;i<list.length;i+=1){var param=list[i];this.checkLVal(param,1,allowDuplicates?null:nameHash)}},pp$3.parseExprList=function(close,allowTrailingComma,allowEmpty,refDestructuringErrors){for(var elts=[],first=!0;!this.eat(close);){if(first)first=!1;else if(this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(close))break;var elt=void 0;allowEmpty&&this.type===types.comma?elt=null:this.type===types.ellipsis?(elt=this.parseSpread(refDestructuringErrors),refDestructuringErrors&&this.type===types.comma&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start)):elt=this.parseMaybeAssign(!1,refDestructuringErrors),elts.push(elt)}return elts},pp$3.checkUnreserved=function(ref2){var start=ref2.start,end=ref2.end,name=ref2.name;(this.inGenerator&&"yield"===name&&this.raiseRecoverable(start,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===name&&this.raiseRecoverable(start,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(name)&&this.raise(start,"Unexpected keyword '"+name+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(start,end).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(name)&&(!this.inAsync&&"await"===name&&this.raiseRecoverable(start,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(start,"The keyword '"+name+"' is reserved"))},pp$3.parseIdent=function(liberal,isBinding){var node=this.startNode();return this.type===types.name?node.name=this.value:this.type.keyword?(node.name=this.type.keyword,("class"===node.name||"function"===node.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop()):this.unexpected(),this.next(!!liberal),this.finishNode(node,"Identifier"),liberal||(this.checkUnreserved(node),"await"===node.name&&!this.awaitIdentPos&&(this.awaitIdentPos=node.start)),node},pp$3.parseYield=function(noIn){this.yieldPos||(this.yieldPos=this.start);var node=this.startNode();return this.next(),this.type===types.semi||this.canInsertSemicolon()||this.type!==types.star&&!this.type.startsExpr?(node.delegate=!1,node.argument=null):(node.delegate=this.eat(types.star),node.argument=this.parseMaybeAssign(noIn)),this.finishNode(node,"YieldExpression")},pp$3.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var node=this.startNode();return this.next(),node.argument=this.parseMaybeUnary(null,!1),this.finishNode(node,"AwaitExpression")},(pp$4=Parser.prototype).raise=function(pos,message){var loc=getLineInfo(this.input,pos);message+=" ("+loc.line+":"+loc.column+")";var err=new SyntaxError(message);throw err.pos=pos,err.loc=loc,err.raisedAt=this.pos,err},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)},pp$5=Parser.prototype,Scope=function(flags){this.flags=flags,this.var=[],this.lexical=[],this.functions=[]},pp$5.enterScope=function(flags){this.scopeStack.push(new Scope(flags))},pp$5.exitScope=function(){this.scopeStack.pop()},pp$5.treatFunctionsAsVarInScope=function(scope){return scope.flags&SCOPE_FUNCTION||!this.inModule&&1&scope.flags},pp$5.declareName=function(name,bindingType,pos){var redeclared=!1;if(2===bindingType){var scope=this.currentScope();redeclared=scope.lexical.indexOf(name)>-1||scope.functions.indexOf(name)>-1||scope.var.indexOf(name)>-1,scope.lexical.push(name),this.inModule&&1&scope.flags&&delete this.undefinedExports[name]}else if(4===bindingType){this.currentScope().lexical.push(name)}else if(3===bindingType){var scope$2=this.currentScope();redeclared=this.treatFunctionsAsVar?scope$2.lexical.indexOf(name)>-1:scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1,scope$2.functions.push(name)}else for(var i=this.scopeStack.length-1;i>=0;--i){var scope$3=this.scopeStack[i];if(scope$3.lexical.indexOf(name)>-1&&!(32&scope$3.flags&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=!0;break}if(scope$3.var.push(name),this.inModule&&1&scope$3.flags&&delete this.undefinedExports[name],scope$3.flags&SCOPE_VAR)break}redeclared&&this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")},pp$5.checkLocalExport=function(id){-1===this.scopeStack[0].lexical.indexOf(id.name)&&-1===this.scopeStack[0].var.indexOf(id.name)&&(this.undefinedExports[id.name]=id)},pp$5.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$5.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(scope.flags&SCOPE_VAR)return scope}},pp$5.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(scope.flags&SCOPE_VAR&&!(16&scope.flags))return scope}},Node=function(parser,pos,loc){this.type="",this.start=pos,this.end=0,parser.options.locations&&(this.loc=new SourceLocation(parser,loc)),parser.options.directSourceFile&&(this.sourceFile=parser.options.directSourceFile),parser.options.ranges&&(this.range=[pos,0])},(pp$6=Parser.prototype).startNode=function(){return new Node(this,this.start,this.startLoc)},pp$6.startNodeAt=function(pos,loc){return new Node(this,pos,loc)},pp$6.finishNode=function(node,type){return finishNodeAt.call(this,node,type,this.lastTokEnd,this.lastTokEndLoc)},pp$6.finishNodeAt=function(node,type,pos,loc){return finishNodeAt.call(this,node,type,pos,loc)},types$1={b_stat:new(TokContext=function(token,isExpr,preserveSpace,override,generator){this.token=token,this.isExpr=!!isExpr,this.preserveSpace=!!preserveSpace,this.override=override,this.generator=!!generator})("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,function(p){return p.tryReadTemplateToken()}),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},(pp$7=Parser.prototype).initialContext=function(){return[types$1.b_stat]},pp$7.braceIsBlock=function(prevType){var parent=this.curContext();return parent===types$1.f_expr||parent===types$1.f_stat||(prevType!==types.colon||parent!==types$1.b_stat&&parent!==types$1.b_expr?prevType===types._return||prevType===types.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):prevType===types._else||prevType===types.semi||prevType===types.eof||prevType===types.parenR||prevType===types.arrow||(prevType===types.braceL?parent===types$1.b_stat:prevType!==types._var&&prevType!==types._const&&prevType!==types.name&&!this.exprAllowed):!parent.isExpr)},pp$7.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var context=this.context[i];if("function"===context.token)return context.generator}return!1},pp$7.updateContext=function(prevType){var update,type=this.type;type.keyword&&prevType===types.dot?this.exprAllowed=!1:(update=type.updateContext)?update.call(this,prevType):this.exprAllowed=type.beforeExpr},types.parenR.updateContext=types.braceR.updateContext=function(){if(1!==this.context.length){var out=this.context.pop();out===types$1.b_stat&&"function"===this.curContext().token&&(out=this.context.pop()),this.exprAllowed=!out.isExpr}else this.exprAllowed=!0},types.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types$1.b_stat:types$1.b_expr),this.exprAllowed=!0},types.dollarBraceL.updateContext=function(){this.context.push(types$1.b_tmpl),this.exprAllowed=!0},types.parenL.updateContext=function(prevType){var statementParens=prevType===types._if||prevType===types._for||prevType===types._with||prevType===types._while;this.context.push(statementParens?types$1.p_stat:types$1.p_expr),this.exprAllowed=!0},types.incDec.updateContext=function(){},types._function.updateContext=types._class.updateContext=function(prevType){!prevType.beforeExpr||prevType===types.semi||prevType===types._else||prevType===types._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(prevType===types.colon||prevType===types.braceL)&&this.curContext()===types$1.b_stat?this.context.push(types$1.f_stat):this.context.push(types$1.f_expr),this.exprAllowed=!1},types.backQuote.updateContext=function(){this.curContext()===types$1.q_tmpl?this.context.pop():this.context.push(types$1.q_tmpl),this.exprAllowed=!1},types.star.updateContext=function(prevType){if(prevType===types._function){var index=this.context.length-1;this.context[index]===types$1.f_expr?this.context[index]=types$1.f_expr_gen:this.context[index]=types$1.f_gen}this.exprAllowed=!0},types.name.updateContext=function(prevType){var allowed=!1;this.options.ecmaVersion>=6&&prevType!==types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(allowed=!0),this.exprAllowed=allowed},unicodeBinaryProperties={9:ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",10:ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",11:ecma10BinaryProperties},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",unicodeScriptValues={9:ecma9ScriptValues="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",10:ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",11:ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},data={},buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11),pp$8=Parser.prototype,(RegExpValidationState=function(parser){this.parser=parser,this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":""),this.unicodeProperties=data[parser.options.ecmaVersion>=11?11:parser.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]}).prototype.reset=function(start,pattern,flags){var unicode=-1!==flags.indexOf("u");this.start=0|start,this.source=pattern+"",this.flags=flags,this.switchU=unicode&&this.parser.options.ecmaVersion>=6,this.switchN=unicode&&this.parser.options.ecmaVersion>=9},RegExpValidationState.prototype.raise=function(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)},RegExpValidationState.prototype.at=function(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return-1;var c=s.charCodeAt(i);if(!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l)return c;var next=s.charCodeAt(i+1);return next>=56320&&next<=57343?(c<<10)+next-56613888:c},RegExpValidationState.prototype.nextIndex=function(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return l;var next,c=s.charCodeAt(i);return!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l||(next=s.charCodeAt(i+1))<56320||next>57343?i+1:i+2},RegExpValidationState.prototype.current=function(forceU){return void 0===forceU&&(forceU=!1),this.at(this.pos,forceU)},RegExpValidationState.prototype.lookahead=function(forceU){return void 0===forceU&&(forceU=!1),this.at(this.nextIndex(this.pos,forceU),forceU)},RegExpValidationState.prototype.advance=function(forceU){void 0===forceU&&(forceU=!1),this.pos=this.nextIndex(this.pos,forceU)},RegExpValidationState.prototype.eat=function(ch,forceU){return void 0===forceU&&(forceU=!1),this.current(forceU)===ch&&(this.advance(forceU),!0)},pp$8.validateRegExpFlags=function(state){for(var validFlags=state.validFlags,flags=state.flags,i=0;i<flags.length;i++){var flag=flags.charAt(i);-1===validFlags.indexOf(flag)&&this.raise(state.start,"Invalid regular expression flag"),flags.indexOf(flag,i+1)>-1&&this.raise(state.start,"Duplicate regular expression flag")}},pp$8.validateRegExpPattern=function(state){this.regexp_pattern(state),!state.switchN&&this.options.ecmaVersion>=9&&state.groupNames.length>0&&(state.switchN=!0,this.regexp_pattern(state))},pp$8.regexp_pattern=function(state){state.pos=0,state.lastIntValue=0,state.lastStringValue="",state.lastAssertionIsQuantifiable=!1,state.numCapturingParens=0,state.maxBackReference=0,state.groupNames.length=0,state.backReferenceNames.length=0,this.regexp_disjunction(state),state.pos!==state.source.length&&(state.eat(41)&&state.raise("Unmatched ')'"),(state.eat(93)||state.eat(125))&&state.raise("Lone quantifier brackets")),state.maxBackReference>state.numCapturingParens&&state.raise("Invalid escape");for(var i=0,list=state.backReferenceNames;i<list.length;i+=1){var name=list[i];-1===state.groupNames.indexOf(name)&&state.raise("Invalid named capture referenced")}},pp$8.regexp_disjunction=function(state){for(this.regexp_alternative(state);state.eat(124);)this.regexp_alternative(state);this.regexp_eatQuantifier(state,!0)&&state.raise("Nothing to repeat"),state.eat(123)&&state.raise("Lone quantifier brackets")},pp$8.regexp_alternative=function(state){for(;state.pos<state.source.length&&this.regexp_eatTerm(state););},pp$8.regexp_eatTerm=function(state){return this.regexp_eatAssertion(state)?(state.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(state)&&state.switchU&&state.raise("Invalid quantifier"),!0):!!(state.switchU?this.regexp_eatAtom(state):this.regexp_eatExtendedAtom(state))&&(this.regexp_eatQuantifier(state),!0)},pp$8.regexp_eatAssertion=function(state){var start=state.pos;if(state.lastAssertionIsQuantifiable=!1,state.eat(94)||state.eat(36))return!0;if(state.eat(92)){if(state.eat(66)||state.eat(98))return!0;state.pos=start}if(state.eat(40)&&state.eat(63)){var lookbehind=!1;if(this.options.ecmaVersion>=9&&(lookbehind=state.eat(60)),state.eat(61)||state.eat(33))return this.regexp_disjunction(state),state.eat(41)||state.raise("Unterminated group"),state.lastAssertionIsQuantifiable=!lookbehind,!0}return state.pos=start,!1},pp$8.regexp_eatQuantifier=function(state,noError){return void 0===noError&&(noError=!1),!!this.regexp_eatQuantifierPrefix(state,noError)&&(state.eat(63),!0)},pp$8.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)},pp$8.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min=0,max=-1;if(this.regexp_eatDecimalDigits(state)&&(min=state.lastIntValue,state.eat(44)&&this.regexp_eatDecimalDigits(state)&&(max=state.lastIntValue),state.eat(125)))return-1!==max&&max<min&&!noError&&state.raise("numbers out of order in {} quantifier"),!0;state.switchU&&!noError&&state.raise("Incomplete quantifier"),state.pos=start}return!1},pp$8.regexp_eatAtom=function(state){return this.regexp_eatPatternCharacters(state)||state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)},pp$8.regexp_eatReverseSolidusAtomEscape=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatAtomEscape(state))return!0;state.pos=start}return!1},pp$8.regexp_eatUncapturingGroup=function(state){var start=state.pos;if(state.eat(40)){if(state.eat(63)&&state.eat(58)){if(this.regexp_disjunction(state),state.eat(41))return!0;state.raise("Unterminated group")}state.pos=start}return!1},pp$8.regexp_eatCapturingGroup=function(state){if(state.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(state):63===state.current()&&state.raise("Invalid group"),this.regexp_disjunction(state),state.eat(41))return state.numCapturingParens+=1,!0;state.raise("Unterminated group")}return!1},pp$8.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)},pp$8.regexp_eatInvalidBracedQuantifier=function(state){return this.regexp_eatBracedQuantifier(state,!0)&&state.raise("Nothing to repeat"),!1},pp$8.regexp_eatSyntaxCharacter=function(state){var ch=state.current();return!!isSyntaxCharacter(ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatPatternCharacters=function(state){for(var start=state.pos,ch=0;-1!==(ch=state.current())&&!isSyntaxCharacter(ch);)state.advance();return state.pos!==start},pp$8.regexp_eatExtendedPatternCharacter=function(state){var ch=state.current();return!(-1===ch||36===ch||ch>=40&&ch<=43||46===ch||63===ch||91===ch||94===ch||124===ch)&&(state.advance(),!0)},pp$8.regexp_groupSpecifier=function(state){if(state.eat(63)){if(this.regexp_eatGroupName(state))return-1!==state.groupNames.indexOf(state.lastStringValue)&&state.raise("Duplicate capture group name"),void state.groupNames.push(state.lastStringValue);state.raise("Invalid group")}},pp$8.regexp_eatGroupName=function(state){if(state.lastStringValue="",state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62))return!0;state.raise("Invalid capture group name")}return!1},pp$8.regexp_eatRegExpIdentifierName=function(state){if(state.lastStringValue="",this.regexp_eatRegExpIdentifierStart(state)){for(state.lastStringValue+=codePointToString(state.lastIntValue);this.regexp_eatRegExpIdentifierPart(state);)state.lastStringValue+=codePointToString(state.lastIntValue);return!0}return!1},pp$8.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierStart(ch){return isIdentifierStart(ch,!0)||36===ch||95===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierPart(ch){return isIdentifierChar(ch,!0)||36===ch||95===ch||8204===ch||8205===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatAtomEscape=function(state){return!!(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state))||(state.switchU&&(99===state.current()&&state.raise("Invalid unicode escape"),state.raise("Invalid escape")),!1)},pp$8.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n=state.lastIntValue;if(state.switchU)return n>state.maxBackReference&&(state.maxBackReference=n),!0;if(n<=state.numCapturingParens)return!0;state.pos=start}return!1},pp$8.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state))return state.backReferenceNames.push(state.lastStringValue),!0;state.raise("Invalid named reference")}return!1},pp$8.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,!1)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)},pp$8.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state))return!0;state.pos=start}return!1},pp$8.regexp_eatZero=function(state){return 48===state.current()&&!isDecimalDigit(state.lookahead())&&(state.lastIntValue=0,state.advance(),!0)},pp$8.regexp_eatControlEscape=function(state){var ch=state.current();return 116===ch?(state.lastIntValue=9,state.advance(),!0):110===ch?(state.lastIntValue=10,state.advance(),!0):118===ch?(state.lastIntValue=11,state.advance(),!0):102===ch?(state.lastIntValue=12,state.advance(),!0):114===ch&&(state.lastIntValue=13,state.advance(),!0)},pp$8.regexp_eatControlLetter=function(state){var ch=state.current();return!!isControlLetter(ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){void 0===forceU&&(forceU=!1);var start=state.pos,switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343)return state.lastIntValue=1024*(lead-55296)+(trail-56320)+65536,!0}state.pos=leadSurrogateEnd,state.lastIntValue=lead}return!0}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&function isValidUnicode(ch){return ch>=0&&ch<=1114111}(state.lastIntValue))return!0;switchU&&state.raise("Invalid unicode escape"),state.pos=start}return!1},pp$8.regexp_eatIdentityEscape=function(state){if(state.switchU)return!!this.regexp_eatSyntaxCharacter(state)||!!state.eat(47)&&(state.lastIntValue=47,!0);var ch=state.current();return!(99===ch||state.switchN&&107===ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch=state.current();if(ch>=49&&ch<=57){do{state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance()}while((ch=state.current())>=48&&ch<=57);return!0}return!1},pp$8.regexp_eatCharacterClassEscape=function(state){var ch=state.current();if(function isCharacterClassEscape(ch){return 100===ch||68===ch||115===ch||83===ch||119===ch||87===ch}(ch))return state.lastIntValue=-1,state.advance(),!0;if(state.switchU&&this.options.ecmaVersion>=9&&(80===ch||112===ch)){if(state.lastIntValue=-1,state.advance(),state.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(state)&&state.eat(125))return!0;state.raise("Invalid property name")}return!1},pp$8.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(state,name,value),!0}}if(state.pos=start,this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue),!0}return!1},pp$8.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){has(state.unicodeProperties.nonBinary,name)||state.raise("Invalid property name"),state.unicodeProperties.nonBinary[name].test(value)||state.raise("Invalid property value")},pp$8.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){state.unicodeProperties.binary.test(nameOrValue)||state.raise("Invalid property name")},pp$8.regexp_eatUnicodePropertyName=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyNameCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatUnicodePropertyValue=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyValueCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)},pp$8.regexp_eatCharacterClass=function(state){if(state.eat(91)){if(state.eat(94),this.regexp_classRanges(state),state.eat(93))return!0;state.raise("Unterminated character class")}return!1},pp$8.regexp_classRanges=function(state){for(;this.regexp_eatClassAtom(state);){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;state.switchU&&(-1===left||-1===right)&&state.raise("Invalid character class"),-1!==left&&-1!==right&&left>right&&state.raise("Range out of order in character class")}}},pp$8.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state))return!0;if(state.switchU){var ch$1=state.current();(99===ch$1||isOctalDigit(ch$1))&&state.raise("Invalid class escape"),state.raise("Invalid escape")}state.pos=start}var ch=state.current();return 93!==ch&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98))return state.lastIntValue=8,!0;if(state.switchU&&state.eat(45))return state.lastIntValue=45,!0;if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state))return!0;state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)},pp$8.regexp_eatClassControlLetter=function(state){var ch=state.current();return!(!isDecimalDigit(ch)&&95!==ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2))return!0;state.switchU&&state.raise("Invalid escape"),state.pos=start}return!1},pp$8.regexp_eatDecimalDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isDecimalDigit(ch=state.current());)state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();return state.pos!==start},pp$8.regexp_eatHexDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isHexDigit(ch=state.current());)state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();return state.pos!==start},pp$8.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n1=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n2=state.lastIntValue;n1<=3&&this.regexp_eatOctalDigit(state)?state.lastIntValue=64*n1+8*n2+state.lastIntValue:state.lastIntValue=8*n1+n2}else state.lastIntValue=n1;return!0}return!1},pp$8.regexp_eatOctalDigit=function(state){var ch=state.current();return isOctalDigit(ch)?(state.lastIntValue=ch-48,state.advance(),!0):(state.lastIntValue=0,!1)},pp$8.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i=0;i<length;++i){var ch=state.current();if(!isHexDigit(ch))return state.pos=start,!1;state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance()}return!0},Token=function(p){this.type=p.type,this.value=p.value,this.start=p.start,this.end=p.end,p.options.locations&&(this.loc=new SourceLocation(p,p.startLoc,p.endLoc)),p.options.ranges&&(this.range=[p.start,p.end])},(pp$9=Parser.prototype).next=function(ignoreEscapeSequenceInKeyword){!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp$9.getToken=function(){return this.next(),new Token(this)},typeof Symbol<"u"&&(pp$9[Symbol.iterator]=function(){var this$1$1=this;return{next:function(){var token=this$1$1.getToken();return{done:token.type===types.eof,value:token}}}}),pp$9.curContext=function(){return this.context[this.context.length-1]},pp$9.nextToken=function(){var curContext=this.curContext();return(!curContext||!curContext.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(types.eof):curContext.override?curContext.override(this):void this.readToken(this.fullCharCodeAtPos())},pp$9.readToken=function(code){return isIdentifierStart(code,this.options.ecmaVersion>=6)||92===code?this.readWord():this.getTokenFromCode(code)},pp$9.fullCharCodeAtPos=function(){var code=this.input.charCodeAt(this.pos);return code<=55295||code>=57344?code:(code<<10)+this.input.charCodeAt(this.pos+1)-56613888},pp$9.skipBlockComment=function(){var startLoc=this.options.onComment&&this.curPosition(),start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(-1===end&&this.raise(this.pos-2,"Unterminated comment"),this.pos=end+2,this.options.locations){lineBreakG.lastIndex=start;for(var match;(match=lineBreakG.exec(this.input))&&match.index<this.pos;)++this.curLine,this.lineStart=match.index+match[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(start+2,end),start,this.pos,startLoc,this.curPosition())},pp$9.skipLineComment=function(startSkip){for(var start=this.pos,startLoc=this.options.onComment&&this.curPosition(),ch=this.input.charCodeAt(this.pos+=startSkip);this.pos<this.input.length&&!isNewLine(ch);)ch=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(start+startSkip,this.pos),start,this.pos,startLoc,this.curPosition())},pp$9.skipSpace=function(){loop:for(;this.pos<this.input.length;){var ch=this.input.charCodeAt(this.pos);switch(ch){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(!(ch>8&&ch<14||ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))))break loop;++this.pos}}},pp$9.finishToken=function(type,val){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var prevType=this.type;this.type=type,this.value=val,this.updateContext(prevType)},pp$9.readToken_dot=function(){var next=this.input.charCodeAt(this.pos+1);if(next>=48&&next<=57)return this.readNumber(!0);var next2=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===next&&46===next2?(this.pos+=3,this.finishToken(types.ellipsis)):(++this.pos,this.finishToken(types.dot))},pp$9.readToken_slash=function(){var next=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===next?this.finishOp(types.assign,2):this.finishOp(types.slash,1)},pp$9.readToken_mult_modulo_exp=function(code){var next=this.input.charCodeAt(this.pos+1),size=1,tokentype=42===code?types.star:types.modulo;return this.options.ecmaVersion>=7&&42===code&&42===next&&(++size,tokentype=types.starstar,next=this.input.charCodeAt(this.pos+2)),61===next?this.finishOp(types.assign,size+1):this.finishOp(tokentype,size)},pp$9.readToken_pipe_amp=function(code){var next=this.input.charCodeAt(this.pos+1);if(next===code){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(124===code?types.logicalOR:types.logicalAND,2)}return 61===next?this.finishOp(types.assign,2):this.finishOp(124===code?types.bitwiseOR:types.bitwiseAND,1)},pp$9.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types.assign,2):this.finishOp(types.bitwiseXOR,1)},pp$9.readToken_plus_min=function(code){var next=this.input.charCodeAt(this.pos+1);return next===code?45!==next||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===next?this.finishOp(types.assign,2):this.finishOp(types.plusMin,1)},pp$9.readToken_lt_gt=function(code){var next=this.input.charCodeAt(this.pos+1),size=1;return next===code?(size=62===code&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+size)?this.finishOp(types.assign,size+1):this.finishOp(types.bitShift,size)):33!==next||60!==code||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===next&&(size=2),this.finishOp(types.relational,size)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp$9.readToken_eq_excl=function(code){var next=this.input.charCodeAt(this.pos+1);return 61===next?this.finishOp(types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===code&&62===next&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types.arrow)):this.finishOp(61===code?types.eq:types.prefix,1)},pp$9.readToken_question=function(){var ecmaVersion=this.options.ecmaVersion;if(ecmaVersion>=11){var next=this.input.charCodeAt(this.pos+1);if(46===next){var next2=this.input.charCodeAt(this.pos+2);if(next2<48||next2>57)return this.finishOp(types.questionDot,2)}if(63===next){if(ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(types.coalesce,2)}}return this.finishOp(types.question,1)},pp$9.getTokenFromCode=function(code){switch(code){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types.parenL);case 41:return++this.pos,this.finishToken(types.parenR);case 59:return++this.pos,this.finishToken(types.semi);case 44:return++this.pos,this.finishToken(types.comma);case 91:return++this.pos,this.finishToken(types.bracketL);case 93:return++this.pos,this.finishToken(types.bracketR);case 123:return++this.pos,this.finishToken(types.braceL);case 125:return++this.pos,this.finishToken(types.braceR);case 58:return++this.pos,this.finishToken(types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types.backQuote);case 48:var next=this.input.charCodeAt(this.pos+1);if(120===next||88===next)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===next||79===next)return this.readRadixNumber(8);if(98===next||66===next)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(code);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code);case 124:case 38:return this.readToken_pipe_amp(code);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code);case 60:case 62:return this.readToken_lt_gt(code);case 61:case 33:return this.readToken_eq_excl(code);case 63:return this.readToken_question();case 126:return this.finishOp(types.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(code)+"'")},pp$9.finishOp=function(type,size){var str=this.input.slice(this.pos,this.pos+size);return this.pos+=size,this.finishToken(type,str)},pp$9.readRegexp=function(){for(var escaped,inClass,start=this.pos;;){this.pos>=this.input.length&&this.raise(start,"Unterminated regular expression");var ch=this.input.charAt(this.pos);if(lineBreak.test(ch)&&this.raise(start,"Unterminated regular expression"),escaped)escaped=!1;else{if("["===ch)inClass=!0;else if("]"===ch&&inClass)inClass=!1;else if("/"===ch&&!inClass)break;escaped="\\"===ch}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos,flags=this.readWord1();this.containsEsc&&this.unexpected(flagsStart);var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags),this.validateRegExpFlags(state),this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch{}return this.finishToken(types.regexp,{pattern,flags,value})},pp$9.readInt=function(radix,len,maybeLegacyOctalNumericLiteral){for(var allowSeparators=this.options.ecmaVersion>=12&&void 0===len,isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&48===this.input.charCodeAt(this.pos),start=this.pos,total=0,lastCode=0,i=0,e=len??1/0;i<e;++i,++this.pos){var code=this.input.charCodeAt(this.pos),val=void 0;if(allowSeparators&&95===code)isLegacyOctalNumericLiteral&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===lastCode&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),lastCode=code;else{if((val=code>=97?code-97+10:code>=65?code-65+10:code>=48&&code<=57?code-48:1/0)>=radix)break;lastCode=code,total=total*radix+val}}return allowSeparators&&95===lastCode&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===start||null!=len&&this.pos-start!==len?null:total},pp$9.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);return null==val&&this.raise(this.start+2,"Expected number in radix "+radix),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(val=stringToBigInt(this.input.slice(start,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val)},pp$9.readNumber=function(startsWithDot){var start=this.pos;!startsWithDot&&null===this.readInt(10,void 0,!0)&&this.raise(start,"Invalid number");var octal=this.pos-start>=2&&48===this.input.charCodeAt(start);octal&&this.strict&&this.raise(start,"Invalid number");var next=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&110===next){var val$1=stringToBigInt(this.input.slice(start,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val$1)}octal&&/[89]/.test(this.input.slice(start,this.pos))&&(octal=!1),46===next&&!octal&&(++this.pos,this.readInt(10),next=this.input.charCodeAt(this.pos)),(69===next||101===next)&&!octal&&((43===(next=this.input.charCodeAt(++this.pos))||45===next)&&++this.pos,null===this.readInt(10)&&this.raise(start,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var val=function stringToNumber(str,isLegacyOctalNumericLiteral){return isLegacyOctalNumericLiteral?parseInt(str,8):parseFloat(str.replace(/_/g,""))}(this.input.slice(start,this.pos),octal);return this.finishToken(types.num,val)},pp$9.readCodePoint=function(){var code;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var codePos=++this.pos;code=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,code>1114111&&this.invalidStringToken(codePos,"Code point out of bounds")}else code=this.readHexChar(4);return code},pp$9.readString=function(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;92===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!1),chunkStart=this.pos):(isNewLine(ch,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(types.string,out)},INVALID_TEMPLATE_ESCAPE_ERROR={},pp$9.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(err){if(err!==INVALID_TEMPLATE_ESCAPE_ERROR)throw err;this.readInvalidTemplateToken()}this.inTemplateElement=!1},pp$9.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(position,message)},pp$9.readTmplToken=function(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var ch=this.input.charCodeAt(this.pos);if(96===ch||36===ch&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types.template&&this.type!==types.invalidTemplate?(out+=this.input.slice(chunkStart,this.pos),this.finishToken(types.template,out)):36===ch?(this.pos+=2,this.finishToken(types.dollarBraceL)):(++this.pos,this.finishToken(types.backQuote));if(92===ch)out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!0),chunkStart=this.pos;else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.pos),++this.pos,ch){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),chunkStart=this.pos}else++this.pos}},pp$9.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(types.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},pp$9.readEscapedChar=function(inTemplate){var ch=this.input.charCodeAt(++this.pos);switch(++this.pos,ch){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString$1(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(inTemplate){var codePos=this.pos-1;return this.invalidStringToken(codePos,"Invalid escape sequence in template string"),null}default:if(ch>=48&&ch<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);return octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.pos+=octalStr.length-1,ch=this.input.charCodeAt(this.pos),("0"!==octalStr||56===ch||57===ch)&&(this.strict||inTemplate)&&this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(octal)}return isNewLine(ch)?"":String.fromCharCode(ch)}},pp$9.readHexChar=function(len){var codePos=this.pos,n=this.readInt(16,len);return null===n&&this.invalidStringToken(codePos,"Bad character escape sequence"),n},pp$9.readWord1=function(){this.containsEsc=!1;for(var word="",first=!0,chunkStart=this.pos,astral=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ch=this.fullCharCodeAtPos();if(isIdentifierChar(ch,astral))this.pos+=ch<=65535?1:2;else{if(92!==ch)break;this.containsEsc=!0,word+=this.input.slice(chunkStart,this.pos);var escStart=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var esc=this.readCodePoint();(first?isIdentifierStart:isIdentifierChar)(esc,astral)||this.invalidStringToken(escStart,"Invalid Unicode escape"),word+=codePointToString$1(esc),chunkStart=this.pos}first=!1}return word+this.input.slice(chunkStart,this.pos)},pp$9.readWord=function(){var word=this.readWord1(),type=types.name;return this.keywords.test(word)&&(type=keywords$1[word]),this.finishToken(type,word)},version="7.4.1",Parser.acorn={Parser,version,defaultOptions,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types,keywordTypes:keywords$1,TokContext,tokContexts:types$1,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace}}}),require_xhtml=(0,chunk_XP5HYGXS.P$)({"../../node_modules/acorn-jsx/xhtml.js"(exports,module){module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}}}),require_acorn_jsx=(0,chunk_XP5HYGXS.P$)({"../../node_modules/acorn-jsx/index.js"(exports,module){var XHTMLEntities=require_xhtml(),hexNumber=/^[\da-fA-F]+$/,decimalNumber=/^\d+$/,acornJsxMap=new WeakMap;function getJsxTokens(acorn){acorn=acorn.Parser.acorn||acorn;let acornJsx=acornJsxMap.get(acorn);if(!acornJsx){let tt=acorn.tokTypes,TokContext3=acorn.TokContext,TokenType3=acorn.TokenType,tc_oTag=new TokContext3("<tag",!1),tc_cTag=new TokContext3("</tag",!1),tc_expr=new TokContext3("<tag>...</tag>",!0,!0),tokContexts={tc_oTag,tc_cTag,tc_expr},tokTypes={jsxName:new TokenType3("jsxName"),jsxText:new TokenType3("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType3("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType3("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){let out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts,tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser3){return function plugin(options,Parser3){let acorn=Parser3.acorn||(init_acorn(),(0,chunk_XP5HYGXS.Yp)(acorn_exports)),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine2=acorn.isNewLine,isIdentifierStart2=acorn.isIdentifierStart,isIdentifierChar2=acorn.isIdentifierChar;return class extends Parser3{static get acornJsx(){return acornJsx}jsx_readToken(){let out="",chunkStart=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine2(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}jsx_readNewLine(normalizeCRLF){let out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}jsx_readString(quote){let out="",chunkStart=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine2(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}jsx_readEntity(){let entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");let startPos=++this.pos;for(;this.pos<this.input.length&&count++<10;){if(ch=this.input[this.pos++],";"===ch){"#"===str[0]?"x"===str[1]?(str=str.substr(2),hexNumber.test(str)&&(entity=String.fromCharCode(parseInt(str,16)))):(str=str.substr(1),decimalNumber.test(str)&&(entity=String.fromCharCode(parseInt(str,10)))):entity=XHTMLEntities[str];break}str+=ch}return entity||(this.pos=startPos,"&")}jsx_readWord(){let ch,start=this.pos;do{ch=this.input.charCodeAt(++this.pos)}while(isIdentifierChar2(ch)||45===ch);return this.finishToken(tok.jsxName,this.input.slice(start,this.pos))}jsx_parseIdentifier(){let node=this.startNode();return this.type===tok.jsxName?node.name=this.value:this.type.keyword?node.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(node,"JSXIdentifier")}jsx_parseNamespacedName(){let startPos=this.start,startLoc=this.startLoc,name=this.jsx_parseIdentifier();if(!options.allowNamespaces||!this.eat(tt.colon))return name;var node=this.startNodeAt(startPos,startLoc);return node.namespace=name,node.name=this.jsx_parseIdentifier(),this.finishNode(node,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===tok.jsxTagEnd)return"";let startPos=this.start,startLoc=this.startLoc,node=this.jsx_parseNamespacedName();for(this.type===tt.dot&&"JSXNamespacedName"===node.type&&!options.allowNamespacedObjects&&this.unexpected();this.eat(tt.dot);){let newNode=this.startNodeAt(startPos,startLoc);newNode.object=node,newNode.property=this.jsx_parseIdentifier(),node=this.finishNode(newNode,"JSXMemberExpression")}return node}jsx_parseAttributeValue(){switch(this.type){case tt.braceL:let node=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===node.expression.type&&this.raise(node.start,"JSX attributes must only be assigned a non-empty expression"),node;case tok.jsxTagStart:case tt.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let node=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(node,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let node=this.startNode();return this.next(),node.expression=this.type===tt.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(tt.braceR),this.finishNode(node,"JSXExpressionContainer")}jsx_parseAttribute(){let node=this.startNode();return this.eat(tt.braceL)?(this.expect(tt.ellipsis),node.argument=this.parseMaybeAssign(),this.expect(tt.braceR),this.finishNode(node,"JSXSpreadAttribute")):(node.name=this.jsx_parseNamespacedName(),node.value=this.eat(tt.eq)?this.jsx_parseAttributeValue():null,this.finishNode(node,"JSXAttribute"))}jsx_parseOpeningElementAt(startPos,startLoc){let node=this.startNodeAt(startPos,startLoc);node.attributes=[];let nodeName=this.jsx_parseElementName();for(nodeName&&(node.name=nodeName);this.type!==tt.slash&&this.type!==tok.jsxTagEnd;)node.attributes.push(this.jsx_parseAttribute());return node.selfClosing=this.eat(tt.slash),this.expect(tok.jsxTagEnd),this.finishNode(node,nodeName?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(startPos,startLoc){let node=this.startNodeAt(startPos,startLoc),nodeName=this.jsx_parseElementName();return nodeName&&(node.name=nodeName),this.expect(tok.jsxTagEnd),this.finishNode(node,nodeName?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(startPos,startLoc){let node=this.startNodeAt(startPos,startLoc),children=[],openingElement=this.jsx_parseOpeningElementAt(startPos,startLoc),closingElement=null;if(!openingElement.selfClosing){contents:for(;;)switch(this.type){case tok.jsxTagStart:if(startPos=this.start,startLoc=this.startLoc,this.next(),this.eat(tt.slash)){closingElement=this.jsx_parseClosingElementAt(startPos,startLoc);break contents}children.push(this.jsx_parseElementAt(startPos,startLoc));break;case tok.jsxText:children.push(this.parseExprAtom());break;case tt.braceL:children.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}getQualifiedJSXName(closingElement.name)!==getQualifiedJSXName(openingElement.name)&&this.raise(closingElement.start,"Expected corresponding JSX closing tag for <"+getQualifiedJSXName(openingElement.name)+">")}let fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}jsx_parseText(){let node=this.parseLiteral(this.value);return node.type="JSXText",node}jsx_parseElement(){let startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(refShortHandDefaultPos)}readToken(code){let context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart2(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):super.readToken(code)}updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):super.updateContext(prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return super.updateContext(prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser3)}},Object.defineProperty(module.exports,"tokTypes",{get:function(){return getJsxTokens((init_acorn(),(0,chunk_XP5HYGXS.Yp)(acorn_exports))).tokTypes},configurable:!0,enumerable:!0})}}),require_html_tags=(0,chunk_XP5HYGXS.P$)({"../../node_modules/html-tags/html-tags.json"(exports,module){module.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]}}),require_html_tags2=(0,chunk_XP5HYGXS.P$)({"../../node_modules/html-tags/index.js"(exports,module){module.exports=require_html_tags()}});(0,chunk_XP5HYGXS.VA)({},{argTypesEnhancers:()=>argTypesEnhancers,parameters:()=>parameters});var import_escodegen=(0,chunk_XP5HYGXS.f1)(require_escodegen());var BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS={...BASIC_OPTIONS,format:{newline:""}},PRETTY_OPTIONS={...BASIC_OPTIONS};function generateCode(ast,compact=!1){return(0,import_escodegen.generate)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast,compact=!1){return compact?function generateCompactObjectCode(ast){let result=generateCode(ast,!0);return result.endsWith(" }")||(result=`${result.slice(0,-1)} }`),result}(ast):generateCode(ast)}function generateArrayCode(ast,compact=!1){return compact?function generateCompactArrayCode(ast){let result=generateCode(ast,!0);return result.startsWith("[ ")&&(result=result.replace("[ ","[")),result}(ast):function generateMultilineArrayCode(ast){let result=generateCode(ast);return result.endsWith(" }]")&&(result=function dedent(templ){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var strings=Array.from("string"==typeof templ?[templ]:templ);strings[strings.length-1]=strings[strings.length-1].replace(/\r?\n([\t ]*)$/,"");var indentLengths=strings.reduce(function(arr,str){var matches=str.match(/\n([\t ]+|(?!\s).)/g);return matches?arr.concat(matches.map(function(match){var _a,_b;return null!==(_b=null===(_a=match.match(/[\t ]/g))||void 0===_a?void 0:_a.length)&&void 0!==_b?_b:0})):arr},[]);if(indentLengths.length){var pattern_1=new RegExp("\n[\t ]{"+Math.min.apply(Math,indentLengths)+"}","g");strings=strings.map(function(str){return str.replace(pattern_1,"\n")})}strings[0]=strings[0].replace(/^\r?\n/,"");var string=strings[0];return values.forEach(function(value,i){var endentations=string.match(/(?:^|\n)( *)$/),endentation=endentations?endentations[1]:"",indentedValue=value;"string"==typeof value&&value.includes("\n")&&(indentedValue=String(value).split("\n").map(function(str,i2){return 0===i2?str:""+endentation+str}).join("\n")),string+=indentedValue+strings[i+1]}),string}(result)),result}(ast)}init_acorn();var import_acorn_jsx=(0,chunk_XP5HYGXS.f1)(require_acorn_jsx());function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=base),function c(node2,st,override2){var type=override2||node2.type,found=visitors[type];baseVisitor[type](node2,st,c),found&&found(node2,st)}(node,state,override)}function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var base={};base.Program=base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;i<list.length;i+=1){c(list[i],st,"Statement")}},base.Statement=skipThrough,base.EmptyStatement=ignore,base.ExpressionStatement=base.ParenthesizedExpression=base.ChainExpression=function(node,st,c){return c(node.expression,st,"Expression")},base.IfStatement=function(node,st,c){c(node.test,st,"Expression"),c(node.consequent,st,"Statement"),node.alternate&&c(node.alternate,st,"Statement")},base.LabeledStatement=function(node,st,c){return c(node.body,st,"Statement")},base.BreakStatement=base.ContinueStatement=ignore,base.WithStatement=function(node,st,c){c(node.object,st,"Expression"),c(node.body,st,"Statement")},base.SwitchStatement=function(node,st,c){c(node.discriminant,st,"Expression");for(var i$1=0,list$1=node.cases;i$1<list$1.length;i$1+=1){var cs=list$1[i$1];cs.test&&c(cs.test,st,"Expression");for(var i=0,list=cs.consequent;i<list.length;i+=1){c(list[i],st,"Statement")}}},base.SwitchCase=function(node,st,c){node.test&&c(node.test,st,"Expression");for(var i=0,list=node.consequent;i<list.length;i+=1){c(list[i],st,"Statement")}},base.ReturnStatement=base.YieldExpression=base.AwaitExpression=function(node,st,c){node.argument&&c(node.argument,st,"Expression")},base.ThrowStatement=base.SpreadElement=function(node,st,c){return c(node.argument,st,"Expression")},base.TryStatement=function(node,st,c){c(node.block,st,"Statement"),node.handler&&c(node.handler,st),node.finalizer&&c(node.finalizer,st,"Statement")},base.CatchClause=function(node,st,c){node.param&&c(node.param,st,"Pattern"),c(node.body,st,"Statement")},base.WhileStatement=base.DoWhileStatement=function(node,st,c){c(node.test,st,"Expression"),c(node.body,st,"Statement")},base.ForStatement=function(node,st,c){node.init&&c(node.init,st,"ForInit"),node.test&&c(node.test,st,"Expression"),node.update&&c(node.update,st,"Expression"),c(node.body,st,"Statement")},base.ForInStatement=base.ForOfStatement=function(node,st,c){c(node.left,st,"ForInit"),c(node.right,st,"Expression"),c(node.body,st,"Statement")},base.ForInit=function(node,st,c){"VariableDeclaration"===node.type?c(node,st):c(node,st,"Expression")},base.DebuggerStatement=ignore,base.FunctionDeclaration=function(node,st,c){return c(node,st,"Function")},base.VariableDeclaration=function(node,st,c){for(var i=0,list=node.declarations;i<list.length;i+=1){c(list[i],st)}},base.VariableDeclarator=function(node,st,c){c(node.id,st,"Pattern"),node.init&&c(node.init,st,"Expression")},base.Function=function(node,st,c){node.id&&c(node.id,st,"Pattern");for(var i=0,list=node.params;i<list.length;i+=1){c(list[i],st,"Pattern")}c(node.body,st,node.expression?"Expression":"Statement")},base.Pattern=function(node,st,c){"Identifier"===node.type?c(node,st,"VariablePattern"):"MemberExpression"===node.type?c(node,st,"MemberPattern"):c(node,st)},base.VariablePattern=ignore,base.MemberPattern=skipThrough,base.RestElement=function(node,st,c){return c(node.argument,st,"Pattern")},base.ArrayPattern=function(node,st,c){for(var i=0,list=node.elements;i<list.length;i+=1){var elt=list[i];elt&&c(elt,st,"Pattern")}},base.ObjectPattern=function(node,st,c){for(var i=0,list=node.properties;i<list.length;i+=1){var prop=list[i];"Property"===prop.type?(prop.computed&&c(prop.key,st,"Expression"),c(prop.value,st,"Pattern")):"RestElement"===prop.type&&c(prop.argument,st,"Pattern")}},base.Expression=skipThrough,base.ThisExpression=base.Super=base.MetaProperty=ignore,base.ArrayExpression=function(node,st,c){for(var i=0,list=node.elements;i<list.length;i+=1){var elt=list[i];elt&&c(elt,st,"Expression")}},base.ObjectExpression=function(node,st,c){for(var i=0,list=node.properties;i<list.length;i+=1){c(list[i],st)}},base.FunctionExpression=base.ArrowFunctionExpression=base.FunctionDeclaration,base.SequenceExpression=function(node,st,c){for(var i=0,list=node.expressions;i<list.length;i+=1){c(list[i],st,"Expression")}},base.TemplateLiteral=function(node,st,c){for(var i=0,list=node.quasis;i<list.length;i+=1){c(list[i],st)}for(var i$1=0,list$1=node.expressions;i$1<list$1.length;i$1+=1){c(list$1[i$1],st,"Expression")}},base.TemplateElement=ignore,base.UnaryExpression=base.UpdateExpression=function(node,st,c){c(node.argument,st,"Expression")},base.BinaryExpression=base.LogicalExpression=function(node,st,c){c(node.left,st,"Expression"),c(node.right,st,"Expression")},base.AssignmentExpression=base.AssignmentPattern=function(node,st,c){c(node.left,st,"Pattern"),c(node.right,st,"Expression")},base.ConditionalExpression=function(node,st,c){c(node.test,st,"Expression"),c(node.consequent,st,"Expression"),c(node.alternate,st,"Expression")},base.NewExpression=base.CallExpression=function(node,st,c){if(c(node.callee,st,"Expression"),node.arguments)for(var i=0,list=node.arguments;i<list.length;i+=1){c(list[i],st,"Expression")}},base.MemberExpression=function(node,st,c){c(node.object,st,"Expression"),node.computed&&c(node.property,st,"Expression")},base.ExportNamedDeclaration=base.ExportDefaultDeclaration=function(node,st,c){node.declaration&&c(node.declaration,st,"ExportNamedDeclaration"===node.type||node.declaration.id?"Statement":"Expression"),node.source&&c(node.source,st,"Expression")},base.ExportAllDeclaration=function(node,st,c){node.exported&&c(node.exported,st),c(node.source,st,"Expression")},base.ImportDeclaration=function(node,st,c){for(var i=0,list=node.specifiers;i<list.length;i+=1){c(list[i],st)}c(node.source,st,"Expression")},base.ImportExpression=function(node,st,c){c(node.source,st,"Expression")},base.ImportSpecifier=base.ImportDefaultSpecifier=base.ImportNamespaceSpecifier=base.Identifier=base.Literal=ignore,base.TaggedTemplateExpression=function(node,st,c){c(node.tag,st,"Expression"),c(node.quasi,st,"Expression")},base.ClassDeclaration=base.ClassExpression=function(node,st,c){return c(node,st,"Class")},base.Class=function(node,st,c){node.id&&c(node.id,st,"Pattern"),node.superClass&&c(node.superClass,st,"Expression"),c(node.body,st)},base.ClassBody=function(node,st,c){for(var i=0,list=node.body;i<list.length;i+=1){c(list[i],st)}},base.MethodDefinition=base.Property=function(node,st,c){node.computed&&c(node.key,st,"Expression"),c(node.value,st,"Expression")};var ACORN_WALK_VISITORS={...base,JSXElement:()=>{}},acornParser=Parser.extend((0,import_acorn_jsx.default)());function extractIdentifierName(identifierNode){return null!=identifierNode?identifierNode.name:null}function filterAncestors(ancestors){return ancestors.filter(x=>"ObjectExpression"===x.type||"ArrayExpression"===x.type)}function calculateNodeDepth(node){let depths=[];return function ancestor(node,visitors,baseVisitor,state,override){var ancestors=[];baseVisitor||(baseVisitor=base),function c(node2,st,override2){var type=override2||node2.type,found=visitors[type],isNew=node2!==ancestors[ancestors.length-1];isNew&&ancestors.push(node2),baseVisitor[type](node2,st,c),found&&found(node2,st||ancestors,ancestors),isNew&&ancestors.pop()}(node,state,override)}(node,{ObjectExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)},ArrayExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)}},ACORN_WALK_VISITORS),Math.max(...depths)}function parseObject(objectNode){return{inferredType:{type:"Object",depth:calculateNodeDepth(objectNode)},ast:objectNode}}function parseExpression(expression){switch(expression.type){case"Identifier":return function parseIdentifier(identifierNode){return{inferredType:{type:"Identifier",identifier:extractIdentifierName(identifierNode)},ast:identifierNode}}(expression);case"Literal":return function parseLiteral(literalNode){return{inferredType:{type:"Literal"},ast:literalNode}}(expression);case"FunctionExpression":case"ArrowFunctionExpression":return function parseFunction(funcNode){let innerJsxElementNode;simple(funcNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS);let inferredType={type:null!=innerJsxElementNode?"Element":"Function",params:funcNode.params,hasParams:0!==funcNode.params.length},identifierName=extractIdentifierName(funcNode.id);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType,ast:funcNode}}(expression);case"ClassExpression":return function parseClass(classNode){let innerJsxElementNode;return simple(classNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS),{inferredType:{type:null!=innerJsxElementNode?"Element":"Class",identifier:extractIdentifierName(classNode.id)},ast:classNode}}(expression);case"JSXElement":return function parseJsxElement(jsxElementNode){let inferredType={type:"Element"},identifierName=extractIdentifierName(jsxElementNode.openingElement.name);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType,ast:jsxElementNode}}(expression);case"CallExpression":return function parseCall(callNode){return"shape"===extractIdentifierName("MemberExpression"===callNode.callee.type?callNode.callee.property:callNode.callee)?parseObject(callNode.arguments[0]):null}(expression);case"ObjectExpression":return parseObject(expression);case"ArrayExpression":return function parseArray(arrayNode){return{inferredType:{type:"Array",depth:calculateNodeDepth(arrayNode)},ast:arrayNode}}(expression);default:return null}}function parse4(value){let ast=acornParser.parse(`(${value})`,{ecmaVersion:2020}),parsingResult={inferredType:{type:"Unknown"},ast};if(null!=ast.body[0]){let rootNode=ast.body[0];switch(rootNode.type){case"ExpressionStatement":{let expressionResult=parseExpression(rootNode.expression);null!=expressionResult&&(parsingResult=expressionResult);break}}}return parsingResult}function inspectValue(value){try{return{...parse4(value)}}catch{}return{inferredType:{type:"Unknown"}}}var import_html_tags=(0,chunk_XP5HYGXS.f1)(require_html_tags2());function isHtmlTag(tagName){return import_html_tags.default.includes(tagName.toLowerCase())}function generateArray({inferredType,ast}){let{depth}=inferredType;if(depth<=2){let compactArray=generateArrayCode(ast,!0);if(!(0,docs_tools.Sy)(compactArray))return(0,docs_tools.Ux)(compactArray)}return(0,docs_tools.Ux)("array",generateArrayCode(ast))}function generateObject({inferredType,ast}){let{depth}=inferredType;if(1===depth){let compactObject=generateObjectCode(ast,!0);if(!(0,docs_tools.Sy)(compactObject))return(0,docs_tools.Ux)(compactObject)}return(0,docs_tools.Ux)("object",generateObjectCode(ast))}function getPrettyFuncIdentifier(identifier,hasArguments){return hasArguments?`${identifier}( ... )`:`${identifier}()`}function getPrettyElementIdentifier(identifier){return`<${identifier} />`}function getPrettyIdentifier(inferredType){let{type,identifier}=inferredType;switch(type){case"Function":return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case"Element":return getPrettyElementIdentifier(identifier);default:return identifier}}function createDefaultValue(defaultValue){try{let inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case"Object":return generateObject(inspectionResult);case"Function":return function generateFunc({inferredType,ast}){let{identifier}=inferredType;if(null!=identifier)return(0,docs_tools.Ux)(getPrettyIdentifier(inferredType),generateCode(ast));let prettyCaption=generateCode(ast,!0);return(0,docs_tools.Sy)(prettyCaption)?(0,docs_tools.Ux)("func",generateCode(ast)):(0,docs_tools.Ux)(prettyCaption)}(inspectionResult);case"Element":return function generateElement(defaultValue,inspectionResult){let{inferredType}=inspectionResult,{identifier}=inferredType;if(null!=identifier&&!isHtmlTag(identifier)){let prettyIdentifier=getPrettyIdentifier(inferredType);return(0,docs_tools.Ux)(prettyIdentifier,defaultValue)}return(0,docs_tools.Sy)(defaultValue)?(0,docs_tools.Ux)("element",defaultValue):(0,docs_tools.Ux)(defaultValue)}(defaultValue,inspectionResult);case"Array":return generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}function isFunction(value){return"function"==typeof value}var reactElementToJSXString=chunk_6BNVLEVL.HA;function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){let{name}=func;return""!==name&&"anonymous"!==name&&name!==propName?name:null}function generateReactObject(rawDefaultProp){let{type}=rawDefaultProp,{displayName}=type,jsx2=reactElementToJSXString(rawDefaultProp,{});if(null!=displayName){let prettyIdentifier=getPrettyElementIdentifier(displayName);return(0,docs_tools.Ux)(prettyIdentifier,jsx2)}if(function isString(value){return"string"==typeof value||value instanceof String}(type)&&isHtmlTag(type)){let jsxSummary=reactElementToJSXString(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!(0,docs_tools.Sy)(jsxSummary))return(0,docs_tools.Ux)(jsxSummary)}return(0,docs_tools.Ux)("element",jsx2)}var DEFAULT_TYPE_RESOLVERS={string:rawDefaultProp=>(0,docs_tools.Ux)(JSON.stringify(rawDefaultProp)),object:rawDefaultProp=>{if(isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type)return generateReactObject(rawDefaultProp);if(function isPlainObject(object){if("object"!=typeof object||null==object)return!1;if(null===Object.getPrototypeOf(object))return!0;if("[object Object]"!==Object.prototype.toString.call(object)){let tag=object[Symbol.toStringTag];return!(null==tag||!Object.getOwnPropertyDescriptor(object,Symbol.toStringTag)?.writable)&&object.toString()===`[object ${tag}]`}let proto=object;for(;null!==Object.getPrototypeOf(proto);)proto=Object.getPrototypeOf(proto);return Object.getPrototypeOf(object)===proto}(rawDefaultProp)){return generateObject(inspectValue(JSON.stringify(rawDefaultProp)))}if(Array.isArray(rawDefaultProp)){return generateArray(inspectValue(JSON.stringify(rawDefaultProp)))}return(0,docs_tools.Ux)("object")},function:(rawDefaultProp,propDef)=>{let inspectionResult,isElement=!1;if(isFunction(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction(rawDefaultProp.prototype.render))isElement=!0;else{let innerElement;try{inspectionResult=inspectValue(rawDefaultProp.toString());let{hasParams,params}=inspectionResult.inferredType;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch{}}let funcName=extractFunctionName(rawDefaultProp,propDef.name);if(null!=funcName){if(isElement)return(0,docs_tools.Ux)(getPrettyElementIdentifier(funcName));null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString()));let{hasParams}=inspectionResult.inferredType;return(0,docs_tools.Ux)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,docs_tools.Ux)(isElement?"element":"func")},default:rawDefaultProp=>(0,docs_tools.Ux)(rawDefaultProp.toString())};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,typeResolvers=DEFAULT_TYPE_RESOLVERS){try{switch(typeof rawDefaultProp){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}function generateFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];if(hasParams){let funcParams=params.map(x=>{let prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?`${prettyName}: ${typeName}`:prettyName});funcParts.push(`(${funcParams.join(", ")})`)}else funcParts.push("()");return hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}function generateShortFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}function createTypeDef({name,short,compact,full,inferredType}){return{name,short,compact,full:full??short,inferredType}}function cleanPropTypes(value){return value.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function splitIntoLines(value){return value.split(/\r?\n/)}function prettyObject(ast,compact=!1){return cleanPropTypes(generateObjectCode(ast,compact))}function prettyArray(ast,compact=!1){return cleanPropTypes(generateCode(ast,compact))}function generateTypeFromString(value,originalTypeName){let short,compact,full,{inferredType,ast}=inspectValue(value),{type}=inferredType;switch(type){case"Identifier":case"Literal":short=value,compact=value;break;case"Object":{let{depth}=inferredType;short="object",compact=1===depth?prettyObject(ast,!0):null,full=prettyObject(ast);break}case"Element":{let{identifier}=inferredType;short=null==identifier||isHtmlTag(identifier)?"element":identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break}case"Array":{let{depth}=inferredType;short="array",compact=depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break}default:short=function getCaptionForInspectionType(type){switch(type){case"Object":return"object";case"Array":return"array";case"Class":return"class";case"Function":return"func";case"Element":return"element";default:return"custom"}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short,compact,full,inferredType:type})}function objectOf(of){return`objectOf(${of})`}function generateEnum(type){if(Array.isArray(type.value)){let values=type.value.reduce((acc,v)=>{let{short,compact,full}=function generateEnumValue({value,computed}){return computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc},{short:[],compact:[],full:[]});return createTypeDef({name:"enum",short:values.short.join(" | "),compact:values.compact.every(x=>null!=x)?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"enum",short:type.value,compact:type.value})}function braceAfter(of){return`${of}[]`}function braceAround(of){return`[${of}]`}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:full&&braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case"custom":return function generateCustom({raw}){return null!=raw?generateTypeFromString(raw,"custom"):createTypeDef({name:"custom",short:"custom",compact:"custom"})}(type);case"func":return function generateFunc2(extractedProp){let{jsDocTags}=extractedProp;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:"func",short:"func",compact:"func"}):createTypeDef({name:"func",short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case"shape":return function generateShape(type,extractedProp){let fields=Object.keys(type.value).map(key=>`${key}: ${generateType(type.value[key],extractedProp).full}`).join(", "),{inferredType,ast}=inspectValue(`{ ${fields} }`),{depth}=inferredType;return createTypeDef({name:"shape",short:"object",compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case"instanceOf":return createTypeDef({name:"instanceOf",short:type.value,compact:type.value});case"objectOf":return function generateObjectOf(type,extractedProp){let{short,compact,full}=generateType(type.value,extractedProp);return createTypeDef({name:"objectOf",short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:full&&objectOf(full)})}(type,extractedProp);case"union":return function generateUnion(type,extractedProp){if(Array.isArray(type.value)){let values=type.value.reduce((acc,v)=>{let{short,compact,full}=generateType(v,extractedProp);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc},{short:[],compact:[],full:[]});return createTypeDef({name:"union",short:values.short.join(" | "),compact:values.compact.every(x=>null!=x)?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"union",short:type.value,compact:null})}(type,extractedProp);case"enum":return generateEnum(type);case"arrayOf":return function generateArray2(type,extractedProp){let{name,short,compact,full,inferredType}=generateType(type.value,extractedProp);if("custom"===name){if("Object"===inferredType)return createArrayOfObjectTypeDef(short,compact,full)}else if("shape"===name)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}var rawDefaultPropTypeResolvers=function createTypeResolvers(customResolvers={}){return{...DEFAULT_TYPE_RESOLVERS,...customResolvers}}({function:(rawDefaultProp,{name,type})=>{let isElement="element"===type?.summary||"elementType"===type?.summary,funcName=extractFunctionName(rawDefaultProp,name);if(null!=funcName){if(isElement)return(0,docs_tools.Ux)(getPrettyElementIdentifier(funcName));let{hasParams}=inspectValue(rawDefaultProp.toString()).inferredType;return(0,docs_tools.Ux)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,docs_tools.Ux)(isElement?"element":"func")}});function enhancePropTypesProp(extractedProp,rawDefaultProp){let{propDef}=extractedProp,newtype=function createType(extractedProp){let{type}=extractedProp.docgenInfo;if(null==type)return null;try{switch(type.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short,compact,full}=generateType(type,extractedProp);return null==compact||(0,docs_tools.i3)(compact)?full?(0,docs_tools.Ux)(short,full):(0,docs_tools.Ux)(short):(0,docs_tools.Ux)(compact)}case"func":{let detail,{short,full}=generateType(type,extractedProp),summary=short;return full&&full.length<150?summary=full:full&&(detail=function toMultilineSignature(signature){return signature.replace(/,/g,",\r\n")}(full)),(0,docs_tools.Ux)(summary,detail)}default:return null}}catch(e){console.error(e)}return null}(extractedProp);null!=newtype&&(propDef.type=newtype);let{defaultValue}=extractedProp.docgenInfo;if(null!=defaultValue&&null!=defaultValue.value){let newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){let newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,rawDefaultPropTypeResolvers);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}return propDef}function enhancePropTypesProps(extractedProps,component){let rawDefaultProps=null!=component.defaultProps?component.defaultProps:{};return function keepOriginalDefinitionOrder(extractedProps,component){let{propTypes}=component;return null!=propTypes?Object.keys(propTypes).map(x=>extractedProps.find(y=>y.name===x)).filter(Boolean):extractedProps}(extractedProps.map(x=>enhancePropTypesProp(x,rawDefaultProps[x.propDef.name])),component)}function enhanceTypeScriptProps(extractedProps){return extractedProps.map(prop=>function enhanceTypeScriptProp(extractedProp,rawDefaultProp){let{propDef}=extractedProp,{defaultValue}=extractedProp.docgenInfo;if(null!=defaultValue&&null!=defaultValue.value){let newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){let newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}return propDef}(prop))}function getPropDefs(component,section){let processedComponent=component;!(0,docs_tools.TQ)(component)&&!component.propTypes&&(0,chunk_6BNVLEVL.Rf)(component)&&(processedComponent=component.type);let extractedProps=(0,docs_tools.p6)(processedComponent,section);if(0===extractedProps.length)return[];switch(extractedProps[0].typeSystem){case docs_tools.YF.JAVASCRIPT:return enhancePropTypesProps(extractedProps,component);case docs_tools.YF.TYPESCRIPT:return enhanceTypeScriptProps(extractedProps);default:return extractedProps.map(x=>x.propDef)}}var parameters={docs:{extractArgTypes:component=>{if(component){let{rows}=(component=>({rows:getPropDefs(component,"props")}))(component);if(rows)return rows.reduce((acc,row)=>{let{name,description,type,sbType,defaultValue:defaultSummary,jsDocTags,required}=row;return acc[name]={name,description,type:{required,...sbType},table:{type:type??void 0,jsDocTags,defaultValue:defaultSummary??void 0}},acc},{})}return null},extractComponentDescription:docs_tools.rl}},argTypesEnhancers=[docs_tools.C2]},"./node_modules/@storybook/react/dist/entry-preview-docs.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{applyDecorators:()=>applyDecorators2,decorators:()=>decorators,parameters:()=>parameters});var chunk_XLZBPYSH=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XLZBPYSH.mjs"),chunk_6BNVLEVL=__webpack_require__("./node_modules/@storybook/react/dist/chunk-6BNVLEVL.mjs"),chunk_XP5HYGXS=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),react=__webpack_require__("./node_modules/react/index.js"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),docs_tools=__webpack_require__("./node_modules/storybook/dist/docs-tools/index.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api");(0,chunk_XP5HYGXS.VA)({},{applyDecorators:()=>applyDecorators2,decorators:()=>decorators,parameters:()=>parameters});var reactElementToJSXString=chunk_6BNVLEVL.HA,toPascalCase=str=>str.charAt(0).toUpperCase()+str.slice(1);function simplifyNodeForStringify(node){if((0,react.isValidElement)(node)){let props=Object.keys(node.props).reduce((acc,cur)=>(acc[cur]=simplifyNodeForStringify(node.props[cur]),acc),{});return{...node,props,_owner:null}}return Array.isArray(node)?node.map(simplifyNodeForStringify):node}var renderJsx=(code,options)=>{if(typeof code>"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Too many skip or undefined component"),null;let displayNameDefaults,renderedJSX=code,Type=renderedJSX.type;for(let i=0;i<options?.skip;i+=1){if(typeof renderedJSX>"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Cannot skip undefined element"),null;if(react.Children.count(renderedJSX)>1)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Trying to skip an array of elements"),null;typeof renderedJSX.props.children>"u"?(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,{...renderedJSX.props}))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}displayNameDefaults="string"==typeof options?.displayName?{showFunctions:!0,displayName:()=>options.displayName}:{displayName:el=>{return el.type.displayName?el.type.displayName:(0,docs_tools.UO)(el.type,"displayName")?(0,docs_tools.UO)(el.type,"displayName"):el.type.render?.displayName?el.type.render.displayName:"symbol"==typeof el.type||el.type.$$typeof&&"symbol"==typeof el.type.$$typeof?((elementType=el.type).$$typeof||elementType).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(segment=>segment.split("_").map(toPascalCase).join("")).join("."):el.type.name&&"_default"!==el.type.name?el.type.name:"function"==typeof el.type?"No Display Name":(0,chunk_6BNVLEVL.Jz)(el.type)?el.type.render.name:(0,chunk_6BNVLEVL.Rf)(el.type)?el.type.type.name:el.type;var elementType}};let opts={...displayNameDefaults,filterProps:(value,key)=>void 0!==value,...options};return react.Children.map(code,c=>{let child="number"==typeof c?c.toString():c,string=("function"==typeof reactElementToJSXString?reactElementToJSXString:reactElementToJSXString.default)(simplifyNodeForStringify(child),opts);if(string.indexOf("&quot;")>-1){let matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach(match=>{string=string.replace(match,match.replace(/&quot;/g,"'"))})}return string}).join("\n").replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=node=>{if(!(node=>"MDXCreateElement"===node.type?.displayName&&!!node.props?.mdxType)(node))return node;let{mdxType,originalType,children,...rest}=node.props,jsxChildren=[];return children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx)),(0,react.createElement)(originalType,rest,...jsxChildren)},jsxDecorator=(storyFn,context)=>{let jsx=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useRef)(void 0),story=storyFn(),skip=(context=>{let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type!==docs_tools.Y1.DYNAMIC&&(!isArgsStory||sourceParams?.code||sourceParams?.type===docs_tools.Y1.CODE)})(context),options={...defaultOpts,...context?.parameters.jsx||{}},storyJsx=context.originalStoryFn(context.args,context);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)(()=>{if(skip)return;let sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);rendered&&jsx.current!==rendered&&((0,external_STORYBOOK_MODULE_PREVIEW_API_.emitTransformCode)(rendered,context),jsx.current=rendered)}),story},applyDecorators2=(storyFn,decorators2)=>{let jsxIndex=decorators2.findIndex(d=>d.originalFn===jsxDecorator),reorderedDecorators=-1===jsxIndex?decorators2:[...decorators2.splice(jsxIndex,1),...decorators2];return(0,chunk_XLZBPYSH.t)(storyFn,reorderedDecorators)},decorators=[jsxDecorator],parameters={docs:{story:{inline:!0}}}},"./node_modules/@storybook/react/dist/entry-preview.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{applyDecorators:()=>chunk_XLZBPYSH.t,beforeAll:()=>beforeAll,decorators:()=>decorators,mount:()=>mount,parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var chunk_XLZBPYSH=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XLZBPYSH.mjs"),chunk_XP5HYGXS=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),react=__webpack_require__("./node_modules/react/index.js"),react_namespaceObject=__webpack_require__.t(react,2),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),require_constants=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/constants.js"(exports,module){var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),require_debug=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/debug.js"(exports,module){var debug="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug}}),require_re=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/re.js"(exports,module){var{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=require_constants(),debug=require_debug(),re=(exports=module.exports={}).re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t=exports.t={},R=0,safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],["[a-zA-Z0-9-]",MAX_SAFE_BUILD_LENGTH]],createToken=(name,value,isGlobal)=>{let safe=(value=>{for(let[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value})(value),index=R++;debug(name,index,value),t[name]=index,src[index]=value,safeSrc[index]=safe,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[a-zA-Z0-9-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken("COERCE",`${src[t.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",src[t.COERCEPLAIN]+`(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("COERCERTLFULL",src[t.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),require_parse_options=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/parse-options.js"(exports,module){var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({});module.exports=options=>options?"object"!=typeof options?looseOption:options:emptyOpts}}),require_identifiers=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/identifiers.js"(exports,module){var numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1};module.exports={compareIdentifiers,rcompareIdentifiers:(a,b)=>compareIdentifiers(b,a)}}}),require_semver=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/classes/semver.js"(exports,module){var debug=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re,t}=require_re(),parseOptions=require_parse_options(),{compareIdentifiers}=require_identifiers();module.exports=class _SemVer{constructor(version2,options){if(options=parseOptions(options),version2 instanceof _SemVer){if(version2.loose===!!options.loose&&version2.includePrerelease===!!options.includePrerelease)return version2;version2=version2.version}else if("string"!=typeof version2)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);if(version2.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version2,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version2.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version2}`);if(this.raw=version2,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof _SemVer)){if("string"==typeof other&&other===this.version)return 0;other=new _SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof _SemVer||(other=new _SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof _SemVer||(other=new _SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{let a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return-1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof _SemVer||(other=new _SemVer(other,this.options));let i=0;do{let a=this.build[i],b=other.build[i];if(debug("build compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return-1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){if(release.startsWith("pre")){if(!identifier&&!1===identifierBase)throw new Error("invalid increment argument: identifier is empty");if(identifier){let match=`-${identifier}`.match(this.options.loose?re[t.PRERELEASELOOSE]:re[t.PRERELEASE]);if(!match||match[1]!==identifier)throw new Error(`invalid identifier: ${identifier}`)}}switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let base=Number(identifierBase)?1:0;if(0===this.prerelease.length)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(identifier===this.prerelease.join(".")&&!1===identifierBase)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];!1===identifierBase&&(prerelease=[identifier]),0===compareIdentifiers(this.prerelease[0],identifier)?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}}}),require_parse=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/parse.js"(exports,module){var SemVer=require_semver();module.exports=(version2,options,throwErrors=!1)=>{if(version2 instanceof SemVer)return version2;try{return new SemVer(version2,options)}catch(er){if(!throwErrors)return null;throw er}}}}),require_valid=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/valid.js"(exports,module){var parse=require_parse();module.exports=(version2,options)=>{let v=parse(version2,options);return v?v.version:null}}}),require_clean=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/clean.js"(exports,module){var parse=require_parse();module.exports=(version2,options)=>{let s=parse(version2.trim().replace(/^[=v]+/,""),options);return s?s.version:null}}}),require_inc=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/inc.js"(exports,module){var SemVer=require_semver();module.exports=(version2,release,options,identifier,identifierBase)=>{"string"==typeof options&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version2 instanceof SemVer?version2.version:version2,options).inc(release,identifier,identifierBase).version}catch{return null}}}}),require_diff=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/diff.js"(exports,module){var parse=require_parse();module.exports=(version1,version2)=>{let v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(0===comparison)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(lowVersion.prerelease.length&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return"major";if(0===lowVersion.compareMain(highVersion))return lowVersion.minor&&!lowVersion.patch?"minor":"patch"}let prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"}}}),require_major=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/major.js"(exports,module){var SemVer=require_semver();module.exports=(a,loose)=>new SemVer(a,loose).major}}),require_minor=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/minor.js"(exports,module){var SemVer=require_semver();module.exports=(a,loose)=>new SemVer(a,loose).minor}}),require_patch=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/patch.js"(exports,module){var SemVer=require_semver();module.exports=(a,loose)=>new SemVer(a,loose).patch}}),require_prerelease=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/prerelease.js"(exports,module){var parse=require_parse();module.exports=(version2,options)=>{let parsed=parse(version2,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null}}}),require_compare=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/compare.js"(exports,module){var SemVer=require_semver();module.exports=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose))}}),require_rcompare=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/rcompare.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(b,a,loose)}}),require_compare_loose=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/compare-loose.js"(exports,module){var compare=require_compare();module.exports=(a,b)=>compare(a,b,!0)}}),require_compare_build=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/compare-build.js"(exports,module){var SemVer=require_semver();module.exports=(a,b,loose)=>{let versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)}}}),require_sort=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/sort.js"(exports,module){var compareBuild=require_compare_build();module.exports=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose))}}),require_rsort=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/rsort.js"(exports,module){var compareBuild=require_compare_build();module.exports=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose))}}),require_gt=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/gt.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)>0}}),require_lt=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/lt.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)<0}}),require_eq=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/eq.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>0===compare(a,b,loose)}}),require_neq=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/neq.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>0!==compare(a,b,loose)}}),require_gte=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/gte.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)>=0}}),require_lte=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/lte.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)<=0}}),require_cmp=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/cmp.js"(exports,module){var eq=require_eq(),neq=require_neq(),gt=require_gt(),gte=require_gte(),lt=require_lt(),lte=require_lte();module.exports=(a,op,b,loose)=>{switch(op){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}}}}),require_coerce=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/coerce.js"(exports,module){var SemVer=require_semver(),parse=require_parse(),{safeRe:re,t}=require_re();module.exports=(version2,options)=>{if(version2 instanceof SemVer)return version2;if("number"==typeof version2&&(version2=String(version2)),"string"!=typeof version2)return null;let match=null;if((options=options||{}).rtl){let next,coerceRtlRegex=options.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];for(;(next=coerceRtlRegex.exec(version2))&&(!match||match.index+match[0].length!==version2.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}else match=version2.match(options.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);if(null===match)return null;let major=match[2],minor=match[3]||"0",patch=match[4]||"0",prerelease=options.includePrerelease&&match[5]?`-${match[5]}`:"",build=options.includePrerelease&&match[6]?`+${match[6]}`:"";return parse(`${major}.${minor}.${patch}${prerelease}${build}`,options)}}}),require_lrucache=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/lrucache.js"(exports,module){module.exports=class{constructor(){this.max=1e3,this.map=new Map}get(key){let value=this.map.get(key);if(void 0!==value)return this.map.delete(key),this.map.set(key,value),value}delete(key){return this.map.delete(key)}set(key,value){if(!this.delete(key)&&void 0!==value){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}}}}),require_range=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/classes/range.js"(exports,module){var SPACE_CHARACTERS=/\s+/g;module.exports=class _Range{constructor(range,options){if(options=parseOptions(options),range instanceof _Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new _Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),0===this.set.length)this.set=[first];else if(this.set.length>1)for(let c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let i=0;i<this.set.length;i++){i>0&&(this.formatted+="||");let comps=this.set[i];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=" "),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){let memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof _Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version2){if(!version2)return!1;if("string"==typeof version2)try{version2=new SemVer(version2,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version2,this.options))return!0;return!1}};var cache=new(require_lrucache()),parseOptions=require_parse_options(),Comparator=require_comparator(),debug=require_debug(),SemVer=require_semver(),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),isNullSet=c=>"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{let r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{let ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);let r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{let ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);let xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return"="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version2,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version2))return!1;if(version2.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){let allowed=set[i].semver;if(allowed.major===version2.major&&allowed.minor===version2.minor&&allowed.patch===version2.patch)return!0}return!1}return!0}}}),require_comparator=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/classes/comparator.js"(exports,module){var ANY=Symbol("SemVer ANY");module.exports=class _Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof _Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version2){if(debug("Comparator.test",version2,this.options.loose),this.semver===ANY||version2===ANY)return!0;if("string"==typeof version2)try{version2=new SemVer(version2,this.options)}catch{return!1}return cmp(version2,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof _Comparator))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new Range(comp.value,options).test(this.value):""===comp.operator?""===comp.value||new Range(this.value,options).test(comp.semver):!((options=parseOptions(options)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===comp.value)||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">"))}};var parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp=require_cmp(),debug=require_debug(),SemVer=require_semver(),Range=require_range()}}),require_satisfies=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/satisfies.js"(exports,module){var Range=require_range();module.exports=(version2,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version2)}}}),require_to_comparators=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/to-comparators.js"(exports,module){var Range=require_range();module.exports=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "))}}),require_max_satisfying=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/max-satisfying.js"(exports,module){var SemVer=require_semver(),Range=require_range();module.exports=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||-1===maxSV.compare(v))&&(max=v,maxSV=new SemVer(max,options))}),max}}}),require_min_satisfying=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/min-satisfying.js"(exports,module){var SemVer=require_semver(),Range=require_range();module.exports=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||1===minSV.compare(v))&&(min=v,minSV=new SemVer(min,options))}),min}}}),require_min_version=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/min-version.js"(exports,module){var SemVer=require_semver(),Range=require_range(),gt=require_gt();module.exports=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null}}}),require_valid2=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/valid.js"(exports,module){var Range=require_range();module.exports=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}}}}),require_outside=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/outside.js"(exports,module){var SemVer=require_semver(),Comparator=require_comparator(),{ANY}=Comparator,Range=require_range(),satisfies=require_satisfies(),gt=require_gt(),lt=require_lt(),lte=require_lte(),gte=require_gte();module.exports=(version2,range,hilo,options)=>{let gtfn,ltefn,ltfn,comp,ecomp;switch(version2=new SemVer(version2,options),range=new Range(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version2,range,options))return!1;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&&ltefn(version2,low.semver))return!1;if(low.operator===ecomp&&ltfn(version2,low.semver))return!1}return!0}}}),require_gtr=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/gtr.js"(exports,module){var outside=require_outside();module.exports=(version2,range,options)=>outside(version2,range,">",options)}}),require_ltr=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/ltr.js"(exports,module){var outside=require_outside();module.exports=(version2,range,options)=>outside(version2,range,"<",options)}}),require_intersects=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/intersects.js"(exports,module){var Range=require_range();module.exports=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options))}}),require_simplify=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/simplify.js"(exports,module){var satisfies=require_satisfies(),compare=require_compare();module.exports=(versions,range,options)=>{let set=[],first=null,prev=null,v=versions.sort((a,b)=>compare(a,b,options));for(let version2 of v)satisfies(version2,range,options)?(prev=version2,first||(first=version2)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);let ranges=[];for(let[min,max]of set)min===max?ranges.push(min):max||min!==v[0]?max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`):ranges.push("*");let simplified=ranges.join(" || "),original="string"==typeof range.raw?range.raw:String(range);return simplified.length<original.length?simplified:range}}}),require_subset=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/subset.js"(exports,module){var Range=require_range(),Comparator=require_comparator(),{ANY}=Comparator,satisfies=require_satisfies(),compare=require_compare(),minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(1===sub.length&&sub[0].semver===ANY){if(1===dom.length&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(1===dom.length&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let gt,lt,gtltComp,eqSet=new Set;for(let c of sub)">"===c.operator||">="===c.operator?gt=higherGT(gt,c,options):"<"===c.operator||"<="===c.operator?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;if(gt&&lt){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(0===gtltComp&&(">="!==gt.operator||"<="!==lt.operator))return null}for(let eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(let c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=!(!lt||options.includePrerelease||!lt.semver.prerelease.length)&&lt.semver,needDomGTPre=!(!gt||options.includePrerelease||!gt.semver.prerelease.length)&&gt.semver;needDomLTPre&&1===needDomLTPre.prerelease.length&&"<"===lt.operator&&0===needDomLTPre.prerelease[0]&&(needDomLTPre=!1);for(let c of dom){if(hasDomGT=hasDomGT||">"===c.operator||">="===c.operator,hasDomLT=hasDomLT||"<"===c.operator||"<="===c.operator,gt)if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),">"===c.operator||">="===c.operator){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(">="===gt.operator&&!satisfies(gt.semver,String(c),options))return!1;if(lt)if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),"<"===c.operator||"<="===c.operator){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if("<="===lt.operator&&!satisfies(lt.semver,String(c),options))return!1;if(!c.operator&&(lt||gt)&&0!==gtltComp)return!1}return!(gt&&hasDomLT&&!lt&&0!==gtltComp||lt&&hasDomGT&&!gt&&0!==gtltComp||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||">"===b.operator&&">="===a.operator?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||"<"===b.operator&&"<="===a.operator?b:a};module.exports=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||null!==isSub,isSub)continue OUTER}if(sawNonNull)return!1}return!0}}}),require_semver2=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/index.js"(exports,module){var internalRe=require_re(),constants=require_constants(),SemVer=require_semver(),identifiers=require_identifiers(),parse=require_parse(),valid=require_valid(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid2(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}});(0,chunk_XP5HYGXS.VA)({},{applyDecorators:()=>chunk_XLZBPYSH.t,beforeAll:()=>beforeAll,decorators:()=>decorators,mount:()=>mount,parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var import_semver=(0,chunk_XP5HYGXS.f1)(require_semver2());function setReactActEnvironment(isReactActEnvironment){globalThis.IS_REACT_ACT_ENVIRONMENT=isReactActEnvironment}function getReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var getAct=async({disableAct=!1}={})=>cb=>cb(),render=(args,context)=>{let{id,component:Component}=context;if(!Component)throw new Error(`Unable to render story ${id} as the component annotation is missing from the default export`);return react.createElement(Component,{...args})},{FRAMEWORK_OPTIONS}=external_STORYBOOK_MODULE_GLOBAL_.global,ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError}=this.state,{showMain}=this.props;hasError||showMain()}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},Wrapper=FRAMEWORK_OPTIONS?.strictMode?react.StrictMode:react.Fragment,actQueue=[],isActing=!1,processActQueue=async()=>{if(isActing||0===actQueue.length)return;isActing=!0;let actTask=actQueue.shift();actTask&&await actTask(),isActing=!1,processActQueue()};async function renderToCanvas({storyContext,unboundStoryFn,showMain,showException,forceRemount},canvasElement){let{renderElement,unmountElement}=await __webpack_require__.e(735).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/react-dom-shim/dist/react-18.mjs")),Story=unboundStoryFn,content=storyContext.parameters.__isPortableStory?react.createElement(Story,{...storyContext}):react.createElement(ErrorBoundary,{key:storyContext.id,showMain,showException},react.createElement(Story,{...storyContext})),element=Wrapper?react.createElement(Wrapper,null,content):content;forceRemount&&unmountElement(canvasElement);let act=await getAct({disableAct:"docs"===storyContext.viewMode});return await new Promise(async(resolve,reject)=>{actQueue.push(async()=>{try{await act(async()=>{await renderElement(element,canvasElement,storyContext?.parameters?.react?.rootOptions)}),resolve()}catch(e){reject(e)}}),processActQueue()}),async()=>{await act(()=>{unmountElement(canvasElement)})}}var mount=context=>async ui=>(null!=ui&&(context.originalStoryFn=()=>ui),await context.renderToCanvas(),context.canvas),decorators=[(story,context)=>{if(!context.parameters?.react?.rsc)return story();let major=import_semver.default.major(react.version),minor=import_semver.default.minor(react.version);if(major<18||18===major&&minor<3)throw new Error("React Server Components require React >= 18.3");return react.createElement(react.Suspense,null,story())}],parameters={renderer:"react"},beforeAll=async()=>{try{let{configure}=await Promise.resolve().then(__webpack_require__.t.bind(__webpack_require__,"storybook/test",23)),act=await getAct();configure({unstable_advanceTimersWrapper:cb=>act(cb),asyncWrapper:async cb=>{let previousActEnvironment=getReactActEnvironment();setReactActEnvironment(!1);try{let result=await cb();return await new Promise(resolve=>{setTimeout(()=>{resolve()},0),function jestFakeTimersAreEnabled(){return typeof jest<"u"&&null!==jest&&(!0===setTimeout._isMockFunction||Object.prototype.hasOwnProperty.call(setTimeout,"clock"))}()&&jest.advanceTimersByTime(0)}),result}finally{setReactActEnvironment(previousActEnvironment)}},eventWrapper:cb=>{let result;return act(()=>(result=cb(),result)),result}})}catch{}}},"./node_modules/react/cjs/react.production.min.js":(__unused_webpack_module,exports)=>{var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a,this.context=b,this.refs=D,this.updater=e||B}function F(){}function G(a,b,e){this.props=a,this.context=b,this.refs=D,this.updater=e||B}E.prototype.isReactComponent={},E.prototype.setState=function(a,b){if("object"!=typeof a&&"function"!=typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")},E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F;H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}function O(a){return"object"==typeof a&&null!==a&&a.$$typeof===l}var P=/\/+/g;function Q(a,b){return"object"==typeof a&&null!==a&&null!=a.key?function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}(""+a.key):b.toString(36)}function R(a,b,e,d,c){var k=typeof a;"undefined"!==k&&"boolean"!==k||(a=null);var h=!1;if(null===a)h=!0;else switch(k){case"string":case"number":h=!0;break;case"object":switch(a.$$typeof){case l:case n:h=!0}}if(h)return c=c(h=a),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=function N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;if(h=0,d=""===d?".":d+":",I(a))for(var g=0;g<a.length;g++){var f=d+Q(k=a[g],g);h+=R(k,b,e,f,c)}else if(f=function A(a){return null===a||"object"!=typeof a?null:"function"==typeof(a=z&&a[z]||a["@@iterator"])?a:null}(a),"function"==typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)h+=R(k=k.value,b,e,f=d+Q(k,g++),c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}function S(a,b,e){if(null==a)return a;var d=[],c=0;return R(a,d,"","",function(a){return b.call(e,a,c++)}),d}function T(a){if(-1===a._status){var b=a._result;(b=b()).then(function(b){0!==a._status&&-1!==a._status||(a._status=1,a._result=b)},function(b){0!==a._status&&-1!==a._status||(a._status=2,a._result=b)}),-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result}var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error("act(...) is not supported in production builds of React.")}exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;return S(a,function(){b++}),b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}},exports.Component=E,exports.Fragment=p,exports.Profiler=r,exports.PureComponent=G,exports.StrictMode=q,exports.Suspense=w,exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,exports.act=X,exports.cloneElement=function(a,b,e){if(null==a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){if(void 0!==b.ref&&(k=b.ref,h=K.current),void 0!==b.key&&(c=""+b.key),a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}},exports.createContext=function(a){return(a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:a},a.Consumer=a},exports.createElement=M,exports.createFactory=function(a){var b=M.bind(null,a);return b.type=a,b},exports.createRef=function(){return{current:null}},exports.forwardRef=function(a){return{$$typeof:v,render:a}},exports.isValidElement=O,exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}},exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}},exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}},exports.unstable_act=X,exports.useCallback=function(a,b){return U.current.useCallback(a,b)},exports.useContext=function(a){return U.current.useContext(a)},exports.useDebugValue=function(){},exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)},exports.useEffect=function(a,b){return U.current.useEffect(a,b)},exports.useId=function(){return U.current.useId()},exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)},exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)},exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)},exports.useMemo=function(a,b){return U.current.useMemo(a,b)},exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)},exports.useRef=function(a){return U.current.useRef(a)},exports.useState=function(a){return U.current.useState(a)},exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)},exports.useTransition=function(){return U.current.useTransition()},exports.version="18.3.1"},"./node_modules/react/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/react/cjs/react.production.min.js")},"./node_modules/storybook/dist/csf/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{F3:()=>uc,K_:()=>rc,hX:()=>csf_Xr,bU:()=>oc,aj:()=>csf_jn,bE:()=>cc,Lr:()=>lc});var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),external_STORYBOOK_MODULE_CORE_EVENTS_=__webpack_require__("storybook/internal/core-events"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("storybook/internal/preview-errors"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api"),external_STORYBOOK_MODULE_TEST_=__webpack_require__("storybook/test"),lr=Object.defineProperty,i=(e,t)=>lr(e,"name",{value:t,configurable:!0}),mr=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function Ge(e){return String(e)}function Ft(e=!1){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===t?.platform||e&&"dumb"!==n.TERM||"CI"in n)||typeof window<"u"&&!!window.chrome}function jt(e=!1){let t=Ft(e),n=i((c,a,u,m)=>{let p="",l=0;do{p+=c.substring(l,m)+u,l=m+a.length,m=c.indexOf(a,l)}while(~m);return p+c.substring(l)},"i"),r=i((c,a,u=c)=>{let m=i(p=>{let l=String(p),b=l.indexOf(a,c.length);return~b?c+n(l,a,u,b)+a:c+l+a},"o");return m.open=c,m.close=a,m},"g"),o={isColorSupported:t},s=i(c=>`[${c}m`,"d");for(let[c,a]of mr)o[c]=t?r(s(a[0]),s(a[1]),a[2]):Ge;return o}i(Ge,"a"),Ge.open="",Ge.close="",i(Ft,"C"),i(jt,"p");var v=jt();function Xt(e,t){return t.forEach(function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if("default"!==r&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:i(function(){return n[r]},"get")})}})}),Object.freeze(e)}function pr(e,t){let n=Object.keys(e),r=null===t?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}function Ee(e,t,n,r,o,s,c=": "){let a="",u=0,m=e.next();if(!m.done){a+=t.spacingOuter;let p=n+t.indent;for(;!m.done;){if(a+=p,u++===t.maxWidth){a+="…";break}a+=s(m.value[0],t,p,r,o)+c+s(m.value[1],t,p,r,o),m=e.next(),m.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+n}return a}function Qe(e,t,n,r,o,s){let c="",a=0,u=e.next();if(!u.done){c+=t.spacingOuter;let m=n+t.indent;for(;!u.done;){if(c+=m,a++===t.maxWidth){c+="…";break}c+=s(u.value,t,m,r,o),u=e.next(),u.done?t.min||(c+=","):c+=`,${t.spacingInner}`}c+=t.spacingOuter+n}return c}function Ae(e,t,n,r,o,s){let c="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=i(m=>m instanceof DataView,"isDataView"),u=a(e)?e.byteLength:e.length;if(u>0){c+=t.spacingOuter;let m=n+t.indent;for(let p=0;p<u;p++){if(c+=m,p===t.maxWidth){c+="…";break}(a(e)||p in e)&&(c+=s(a(e)?e.getInt8(p):e[p],t,m,r,o)),p<u-1?c+=`,${t.spacingInner}`:t.min||(c+=",")}c+=t.spacingOuter+n}return c}function ve(e,t,n,r,o,s){let c="",a=pr(e,t.compareKeys);if(a.length>0){c+=t.spacingOuter;let u=n+t.indent;for(let m=0;m<a.length;m++){let p=a[m];c+=`${u+s(p,t,u,r,o)}: ${s(e[p],t,u,r,o)}`,m<a.length-1?c+=`,${t.spacingInner}`:t.min||(c+=",")}c+=t.spacingOuter+n}return c}i(Xt,"_mergeNamespaces"),i(pr,"getKeysOfEnumerableProperties"),i(Ee,"printIteratorEntries"),i(Qe,"printIteratorValues"),i(Ae,"printListItems"),i(ve,"printObjectProperties");var gr="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,hr=i((e,t,n,r,o,s)=>{let c=e.toString();if("ArrayContaining"===c||"ArrayNotContaining"===c)return++r>t.maxDepth?`[${c}]`:`${c+" "}[${Ae(e.sample,t,n,r,o,s)}]`;if("ObjectContaining"===c||"ObjectNotContaining"===c)return++r>t.maxDepth?`[${c}]`:`${c+" "}{${ve(e.sample,t,n,r,o,s)}}`;if("StringMatching"===c||"StringNotMatching"===c||"StringContaining"===c||"StringNotContaining"===c)return c+" "+s(e.sample,t,n,r,o);if("function"!=typeof e.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),dr=i(e=>e&&e.$$typeof===gr,"test$5"),yr={serialize:hr,test:dr},Zt=new Set(["DOMStringMap","NamedNodeMap"]),Sr=/^(?:HTML\w*Collection|NodeList)$/;function Er(e){return Zt.has(e)||Sr.test(e)}i(Er,"testName");var _r=i(e=>e&&e.constructor&&!!e.constructor.name&&Er(e.constructor.name),"test$4");function Tr(e){return"NamedNodeMap"===e.constructor.name}i(Tr,"isNamedNodeMap");var Cr=i((e,t,n,r,o,s)=>{let c=e.constructor.name;return++r>t.maxDepth?`[${c}]`:(t.min?"":c+" ")+(Zt.has(c)?`{${ve(Tr(e)?[...e].reduce((a,u)=>(a[u.name]=u.value,a),{}):{...e},t,n,r,o,s)}}`:`[${Ae([...e],t,n,r,o,s)}]`)},"serialize$4"),Or={serialize:Cr,test:_r};function Qt(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function et(e,t,n,r,o,s,c){let a=r+n.indent,u=n.colors;return e.map(m=>{let p=t[m],l=c(p,n,a,o,s);return"string"!=typeof p&&(l.includes("\n")&&(l=n.spacingOuter+a+l+n.spacingOuter+r),l=`{${l}}`),`${n.spacingInner+r+u.prop.open+m+u.prop.close}=${u.value.open}${l}${u.value.close}`}).join("")}function tt(e,t,n,r,o,s){return e.map(c=>t.spacingOuter+n+("string"==typeof c?vt(c,t):s(c,t,n,r,o))).join("")}function vt(e,t){let n=t.colors.content;return n.open+Qt(e)+n.close}function $r(e,t){let n=t.colors.comment;return`${n.open}\x3c!--${Qt(e)}--\x3e${n.close}`}function nt(e,t,n,r,o){let s=r.colors.tag;return`${s.open}<${e}${t&&s.close+t+r.spacingOuter+o+s.open}${n?`>${s.close}${n}${r.spacingOuter}${o}${s.open}</${e}`:(t&&!r.min?"":" ")+"/"}>${s.close}`}function rt(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}i(Qt,"escapeHTML"),i(et,"printProps"),i(tt,"printChildren"),i(vt,"printText"),i($r,"printComment"),i(nt,"printElement"),i(rt,"printElementAsLeaf");var Rr=/^(?:(?:HTML|SVG)\w*)?Element$/;function Ar(e){try{return"function"==typeof e.hasAttribute&&e.hasAttribute("is")}catch{return!1}}function Pr(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o="string"==typeof r&&r.includes("-")||Ar(e);return 1===n&&(Rr.test(t)||o)||3===n&&"Text"===t||8===n&&"Comment"===t||11===n&&"DocumentFragment"===t}i(Ar,"testHasAttribute"),i(Pr,"testNode");var Nr=i(e=>{var t;return(null==e||null===(t=e.constructor)||void 0===t?void 0:t.name)&&Pr(e)},"test$3");function Ir(e){return 3===e.nodeType}function Mr(e){return 8===e.nodeType}function He(e){return 11===e.nodeType}i(Ir,"nodeIsText"),i(Mr,"nodeIsComment"),i(He,"nodeIsFragment");var Lr=i((e,t,n,r,o,s)=>{if(Ir(e))return vt(e.data,t);if(Mr(e))return $r(e.data,t);let c=He(e)?"DocumentFragment":e.tagName.toLowerCase();return++r>t.maxDepth?rt(c,t):nt(c,et(He(e)?[]:Array.from(e.attributes,a=>a.name).sort(),He(e)?{}:[...e.attributes].reduce((a,u)=>(a[u.name]=u.value,a),{}),t,n+t.indent,r,o,s),tt(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,s),t,n)},"serialize$3"),xr={serialize:Lr,test:Nr},kt="@@__IMMUTABLE_ORDERED__@@",de=i(e=>`Immutable.${e}`,"getImmutableName"),Ne=i(e=>`[${e}]`,"printAsLeaf");function Wr(e,t,n,r,o,s,c){return++r>t.maxDepth?Ne(de(c)):`${de(c)+" "}{${Ee(e.entries(),t,n,r,o,s)}}`}function Vr(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function qr(e,t,n,r,o,s){let c=de(e._name||"Record");return++r>t.maxDepth?Ne(c):`${c+" "}{${Ee(Vr(e),t,n,r,o,s)}}`}function Kr(e,t,n,r,o,s){let c=de("Seq");return++r>t.maxDepth?Ne(c):e["@@__IMMUTABLE_KEYED__@@"]?`${c+" "}{${e._iter||e._object?Ee(e.entries(),t,n,r,o,s):"…"}}`:`${c+" "}[${e._iter||e._array||e._collection||e._iterable?Qe(e.values(),t,n,r,o,s):"…"}]`}function Je(e,t,n,r,o,s,c){return++r>t.maxDepth?Ne(de(c)):`${de(c)+" "}[${Qe(e.values(),t,n,r,o,s)}]`}i(Wr,"printImmutableEntries"),i(Vr,"getRecordEntries"),i(qr,"printImmutableRecord"),i(Kr,"printImmutableSeq"),i(Je,"printImmutableValues");var Gr=i((e,t,n,r,o,s)=>e["@@__IMMUTABLE_MAP__@@"]?Wr(e,t,n,r,o,s,e[kt]?"OrderedMap":"Map"):e["@@__IMMUTABLE_LIST__@@"]?Je(e,t,n,r,o,s,"List"):e["@@__IMMUTABLE_SET__@@"]?Je(e,t,n,r,o,s,e[kt]?"OrderedSet":"Set"):e["@@__IMMUTABLE_STACK__@@"]?Je(e,t,n,r,o,s,"Stack"):e["@@__IMMUTABLE_SEQ__@@"]?Kr(e,t,n,r,o,s):qr(e,t,n,r,o,s),"serialize$2"),Hr=i(e=>e&&(!0===e["@@__IMMUTABLE_ITERABLE__@@"]||!0===e["@@__IMMUTABLE_RECORD__@@"]),"test$2"),Jr={serialize:Gr,test:Hr};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(rn,"getDefaultExportFromCjs");var zt,Yt,Xe={exports:{}},A={};function Xr(){return zt||(zt=1,function(){function e(f){if("object"==typeof f&&null!==f){var d=f.$$typeof;switch(d){case t:switch(f=f.type){case r:case s:case o:case m:case p:case g:return f;default:switch(f=f&&f.$$typeof){case a:case u:case b:case l:case c:return f;default:return d}}case n:return d}}}i(e,"typeOf");var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");A.ContextConsumer=c,A.ContextProvider=a,A.Element=t,A.ForwardRef=u,A.Fragment=r,A.Lazy=b,A.Memo=l,A.Portal=n,A.Profiler=s,A.StrictMode=o,A.Suspense=m,A.SuspenseList=p,A.isContextConsumer=function(f){return e(f)===c},A.isContextProvider=function(f){return e(f)===a},A.isElement=function(f){return"object"==typeof f&&null!==f&&f.$$typeof===t},A.isForwardRef=function(f){return e(f)===u},A.isFragment=function(f){return e(f)===r},A.isLazy=function(f){return e(f)===b},A.isMemo=function(f){return e(f)===l},A.isPortal=function(f){return e(f)===n},A.isProfiler=function(f){return e(f)===s},A.isStrictMode=function(f){return e(f)===o},A.isSuspense=function(f){return e(f)===m},A.isSuspenseList=function(f){return e(f)===p},A.isValidElementType=function(f){return"string"==typeof f||"function"==typeof f||f===r||f===s||f===o||f===m||f===p||"object"==typeof f&&null!==f&&(f.$$typeof===b||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===u||f.$$typeof===h||void 0!==f.getModuleId)},A.typeOf=e}()),A}function Zr(){return Yt||(Yt=1,Xe.exports=Xr()),Xe.exports}i(Xr,"requireReactIs_development$1"),i(Zr,"requireReactIs$1");var Ut,Wt,on=Zr(),vr=Xt({__proto__:null,default:rn(on)},[on]),Ze={exports:{}},w={};function eo(){return Ut||(Ut=1,function(){var O,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(C){return!("string"!=typeof C&&"function"!=typeof C&&C!==n&&C!==o&&C!==r&&C!==m&&C!==p&&C!==g&&("object"!=typeof C||null===C||C.$$typeof!==b&&C.$$typeof!==l&&C.$$typeof!==s&&C.$$typeof!==c&&C.$$typeof!==u&&C.$$typeof!==O&&void 0===C.getModuleId))}function E(C){if("object"==typeof C&&null!==C){var Ke=C.$$typeof;switch(Ke){case e:var $e=C.type;switch($e){case n:case o:case r:case m:case p:return $e;default:var Dt=$e&&$e.$$typeof;switch(Dt){case a:case c:case u:case b:case l:case s:return Dt;default:return Ke}}case t:return Ke}}}O=Symbol.for("react.module.reference"),i(y,"isValidElementType"),i(E,"typeOf");var $=c,T=s,R=e,K=u,Q=n,I=b,k=l,G=t,Y=o,N=r,L=m,x=p,H=!1,F=!1;function W(C){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function re(C){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(C){return E(C)===c}function q(C){return E(C)===s}function se(C){return"object"==typeof C&&null!==C&&C.$$typeof===e}function J(C){return E(C)===u}function U(C){return E(C)===n}function oe(C){return E(C)===b}function he(C){return E(C)===l}function ue(C){return E(C)===t}function be(C){return E(C)===o}function Ce(C){return E(C)===r}function Oe(C){return E(C)===m}function ar(C){return E(C)===p}i(W,"isAsyncMode"),i(re,"isConcurrentMode"),i(V,"isContextConsumer"),i(q,"isContextProvider"),i(se,"isElement"),i(J,"isForwardRef"),i(U,"isFragment"),i(oe,"isLazy"),i(he,"isMemo"),i(ue,"isPortal"),i(be,"isProfiler"),i(Ce,"isStrictMode"),i(Oe,"isSuspense"),i(ar,"isSuspenseList"),w.ContextConsumer=$,w.ContextProvider=T,w.Element=R,w.ForwardRef=K,w.Fragment=Q,w.Lazy=I,w.Memo=k,w.Portal=G,w.Profiler=Y,w.StrictMode=N,w.Suspense=L,w.SuspenseList=x,w.isAsyncMode=W,w.isConcurrentMode=re,w.isContextConsumer=V,w.isContextProvider=q,w.isElement=se,w.isForwardRef=J,w.isFragment=U,w.isLazy=oe,w.isMemo=he,w.isPortal=ue,w.isProfiler=be,w.isStrictMode=Ce,w.isSuspense=Oe,w.isSuspenseList=ar,w.isValidElementType=y,w.typeOf=E}()),w}function to(){return Wt||(Wt=1,Ze.exports=eo()),Ze.exports}i(eo,"requireReactIs_development"),i(to,"requireReactIs");var sn=to(),ro=Xt({__proto__:null,default:rn(sn)},[sn]),fe=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map(e=>[e,t=>ro[e](t)||vr[e](t)]));function cn(e,t=[]){if(Array.isArray(e))for(let n of e)cn(n,t);else null!=e&&!1!==e&&""!==e&&t.push(e);return t}function Vt(e){let t=e.type;if("string"==typeof t)return t;if("function"==typeof t)return t.displayName||t.name||"Unknown";if(fe.isFragment(e))return"React.Fragment";if(fe.isSuspense(e))return"React.Suspense";if("object"==typeof t&&null!==t){if(fe.isContextProvider(e))return"Context.Provider";if(fe.isContextConsumer(e))return"Context.Consumer";if(fe.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return""===n?"ForwardRef":`ForwardRef(${n})`}if(fe.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return""===n?"Memo":`Memo(${n})`}}return"UNDEFINED"}function so(e){let{props:t}=e;return Object.keys(t).filter(n=>"children"!==n&&void 0!==t[n]).sort()}i(cn,"getChildren"),i(Vt,"getType"),i(so,"getPropKeys$1");var io=i((e,t,n,r,o,s)=>++r>t.maxDepth?rt(Vt(e),t):nt(Vt(e),et(so(e),e.props,t,n+t.indent,r,o,s),tt(cn(e.props.children),t,n+t.indent,r,o,s),t,n),"serialize$1"),co=i(e=>null!=e&&fe.isElement(e),"test$1"),uo={serialize:io,test:co},ao="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;function lo(e){let{props:t}=e;return t?Object.keys(t).filter(n=>void 0!==t[n]).sort():[]}i(lo,"getPropKeys");var fo=i((e,t,n,r,o,s)=>++r>t.maxDepth?rt(e.type,t):nt(e.type,e.props?et(lo(e),e.props,t,n+t.indent,r,o,s):"",e.children?tt(e.children,t,n+t.indent,r,o,s):"",t,n),"serialize"),mo=i(e=>e&&e.$$typeof===ao,"test"),po={serialize:fo,test:mo},un=Object.prototype.toString,go=Date.prototype.toISOString,ho=Error.prototype.toString,qt=RegExp.prototype.toString;function Re(e){return"function"==typeof e.constructor&&e.constructor.name||"Object"}function yo(e){return typeof window<"u"&&e===window}i(Re,"getConstructorName"),i(yo,"isWindow");var bo=/^Symbol\((.*)\)(.*)$/,So=/\n/g,st=class st extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}};i(st,"PrettyFormatPluginError");var Pe=st;function Eo(e){return"[object Array]"===e||"[object ArrayBuffer]"===e||"[object DataView]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object Int8Array]"===e||"[object Int16Array]"===e||"[object Int32Array]"===e||"[object Uint8Array]"===e||"[object Uint8ClampedArray]"===e||"[object Uint16Array]"===e||"[object Uint32Array]"===e}function _o(e){return Object.is(e,-0)?"-0":String(e)}function To(e){return`${e}n`}function Kt(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Gt(e){return String(e).replace(bo,"Symbol($1)")}function Ht(e){return`[${ho.call(e)}]`}function an(e,t,n,r){if(!0===e||!1===e)return`${e}`;if(void 0===e)return"undefined";if(null===e)return"null";let o=typeof e;if("number"===o)return _o(e);if("bigint"===o)return To(e);if("string"===o)return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if("function"===o)return Kt(e,t);if("symbol"===o)return Gt(e);let s=un.call(e);return"[object WeakMap]"===s?"WeakMap {}":"[object WeakSet]"===s?"WeakSet {}":"[object Function]"===s||"[object GeneratorFunction]"===s?Kt(e,t):"[object Symbol]"===s?Gt(e):"[object Date]"===s?Number.isNaN(+e)?"Date { NaN }":go.call(e):"[object Error]"===s?Ht(e):"[object RegExp]"===s?n?qt.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):qt.call(e):e instanceof Error?Ht(e):null}function ln(e,t,n,r,o,s){if(o.includes(e))return"[Circular]";(o=[...o]).push(e);let c=++r>t.maxDepth,a=t.min;if(t.callToJSON&&!c&&e.toJSON&&"function"==typeof e.toJSON&&!s)return ae(e.toJSON(),t,n,r,o,!0);let u=un.call(e);return"[object Arguments]"===u?c?"[Arguments]":`${a?"":"Arguments "}[${Ae(e,t,n,r,o,ae)}]`:Eo(u)?c?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&"Array"===e.constructor.name?"":`${e.constructor.name} `}[${Ae(e,t,n,r,o,ae)}]`:"[object Map]"===u?c?"[Map]":`Map {${Ee(e.entries(),t,n,r,o,ae," => ")}}`:"[object Set]"===u?c?"[Set]":`Set {${Qe(e.values(),t,n,r,o,ae)}}`:c||yo(e)?`[${Re(e)}]`:`${a||!t.printBasicPrototype&&"Object"===Re(e)?"":`${Re(e)} `}{${ve(e,t,n,r,o,ae)}}`}i(Eo,"isToStringedArrayType"),i(_o,"printNumber"),i(To,"printBigInt"),i(Kt,"printFunction"),i(Gt,"printSymbol"),i(Ht,"printError"),i(an,"printBasicValue"),i(ln,"printComplexValue");var Co={test:i(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,o,s){if(o.includes(e))return"[Circular]";o=[...o,e];let c=++r>t.maxDepth,{message:a,cause:u,...m}=e,p={message:a,...typeof u<"u"?{cause:u}:{},...e instanceof AggregateError?{errors:e.errors}:{},...m},l="Error"!==e.name?e.name:Re(e);return c?`[${l}]`:`${l} {${Ee(Object.entries(p).values(),t,n,r,o,s)}}`}};function Oo(e){return null!=e.serialize}function fn(e,t,n,r,o,s){let c;try{c=Oo(e)?e.serialize(t,n,r,o,s,ae):e.print(t,a=>ae(a,n,r,o,s),a=>{let u=r+n.indent;return u+a.replaceAll(So,`\n${u}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(a){throw new Pe(a.message,a.stack)}if("string"!=typeof c)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);return c}function mn(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Pe(r.message,r.stack)}return null}function ae(e,t,n,r,o,s){let c=mn(t.plugins,e);if(null!==c)return fn(c,e,t,n,r,o);let a=an(e,t.printFunctionName,t.escapeRegex,t.escapeString);return null!==a?a:ln(e,t,n,r,o,s)}i(Oo,"isNewPlugin"),i(fn,"printPlugin"),i(mn,"findPlugin"),i(ae,"printer");var ot={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},pn=Object.keys(ot),ee={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ot};function $o(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(ee,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&void 0!==e.indent&&0!==e.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function wo(){return pn.reduce((e,t)=>{let n=ot[t],r=n&&v[n];if(!r||"string"!=typeof r.close||"string"!=typeof r.open)throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e[t]=r,e},Object.create(null))}function Ro(){return pn.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function gn(e){return e?.printFunctionName??ee.printFunctionName}function hn(e){return e?.escapeRegex??ee.escapeRegex}function dn(e){return e?.escapeString??ee.escapeString}function Jt(e){return{callToJSON:e?.callToJSON??ee.callToJSON,colors:e?.highlight?wo():Ro(),compareKeys:"function"==typeof e?.compareKeys||null===e?.compareKeys?e.compareKeys:ee.compareKeys,escapeRegex:hn(e),escapeString:dn(e),indent:e?.min?"":Ao(e?.indent??ee.indent),maxDepth:e?.maxDepth??ee.maxDepth,maxWidth:e?.maxWidth??ee.maxWidth,min:e?.min??ee.min,plugins:e?.plugins??ee.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:gn(e),spacingInner:e?.min?" ":"\n",spacingOuter:e?.min?"":"\n"}}function Ao(e){return Array.from({length:e+1}).join(" ")}function X(e,t){if(t&&($o(t),t.plugins)){let r=mn(t.plugins,e);if(null!==r)return fn(r,e,Jt(t),"",0,[])}let n=an(e,gn(t),hn(t),dn(t));return null!==n?n:ln(e,Jt(t),"",0,[])}i($o,"validateOptions"),i(wo,"getColorsHighlight"),i(Ro,"getColorsEmpty"),i(gn,"getPrintFunctionName"),i(hn,"getEscapeRegex"),i(dn,"getEscapeString"),i(Jt,"getConfig"),i(Ao,"createIndent"),i(X,"format");var _e={AsymmetricMatcher:yr,DOMCollection:Or,DOMElement:xr,Immutable:Jr,ReactElement:uo,ReactTestComponent:po,Error:Co},yn={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Po={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"};function No(e,t){let n=yn[Po[t]]||yn[t]||"";return n?`[${n[0]}m${String(e)}[${n[1]}m`:String(e)}function bn({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:s=1/0,breakLength:c=1/0,seen:a=[],truncate:u=1/0,stylize:m=String}={},p){let l={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(s),breakLength:Number(c),truncate:Number(u),seen:a,inspect:p,stylize:m};return l.colors&&(l.stylize=No),l}function Io(e){return e>="\ud800"&&e<="\udbff"}function B(e,t,n="…"){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let s=t-r;return s>0&&Io(e[s-1])&&(s-=1),`${e.slice(0,s)}${n}`}return e}function D(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(0===o)return"";let s=t.truncate,c="",a="",u="";for(let m=0;m<o;m+=1){let p=m+1===e.length,l=m+2===e.length;u=`…(${e.length-m})`;let b=e[m];t.truncate=s-c.length-(p?0:r.length);let g=a||n(b,t)+(p?"":r),h=c.length+g.length,f=h+u.length;if(p&&h>s&&c.length+u.length<=s||!p&&!l&&f>s||(a=p?"":n(e[m+1],t)+(l?"":r),!p&&l&&f>s&&h+a.length>s))break;if(c+=g,!p&&!l&&h+a.length>=s){u=`…(${e.length-m-1})`;break}u=""}return`${c}${u}`}function Mo(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ce([e,t],n){return n.truncate-=2,"string"==typeof e?e=Mo(e):"number"!=typeof e&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,`${e}: ${t=n.inspect(t,n)}`}function it(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;let r=D(e,t);t.truncate-=r.length;let o="";return n.length&&(o=D(n.map(s=>[s,e[s]]),t,ce)),`[ ${r}${o?`, ${o}`:""} ]`}i(No,"colorise"),i(bn,"normaliseOptions"),i(Io,"isHighSurrogate"),i(B,"truncate"),i(D,"inspectList"),i(Mo,"quoteComplexKey"),i(ce,"inspectProperty"),i(it,"inspectArray");var Lo=i(e=>"function"==typeof Buffer&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function te(e,t){let n=Lo(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let o="";for(let c=0;c<e.length;c++){let a=`${t.stylize(B(e[c],t.truncate),"number")}${c===e.length-1?"":", "}`;if(t.truncate-=a.length,e[c]!==e.length&&t.truncate<=3){o+=`…(${e.length-e[c]+1})`;break}o+=a}let s="";return r.length&&(s=D(r.map(c=>[c,e[c]]),t,ce)),`${n}[ ${o}${s?`, ${s}`:""} ]`}function ct(e,t){let n=e.toJSON();if(null===n)return"Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${B(r[1],t.truncate-o.length-1)}`,"date")}function Ie(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${B(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function xo([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,`${e} => ${t=n.inspect(t,n)}`}function Do(e){let t=[];return e.forEach((n,r)=>{t.push([r,n])}),t}function ut(e,t){return 0===e.size?"Map{}":(t.truncate-=7,`Map{ ${D(Do(e),t,xo)} }`)}i(te,"inspectTypedArray"),i(ct,"inspectDate"),i(Ie,"inspectFunction"),i(xo,"inspectMapEntry"),i(Do,"mapToEntries"),i(ut,"inspectMap");var Fo=Number.isNaN||(e=>e!=e);function Me(e,t){return Fo(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(B(String(e),t.truncate),"number")}function Le(e,t){let n=B(e.toString(),t.truncate-1);return"…"!==n&&(n+="n"),t.stylize(n,"bigint")}function at(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${B(o,r)}/${n}`,"regexp")}function jo(e){let t=[];return e.forEach(n=>{t.push(n)}),t}function lt(e,t){return 0===e.size?"Set{}":(t.truncate-=7,`Set{ ${D(jo(e),t)} }`)}i(Me,"inspectNumber"),i(Le,"inspectBigInt"),i(at,"inspectRegExp"),i(jo,"arrayFromSet"),i(lt,"inspectSet");var Sn=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ko={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function Yo(e){return ko[e]||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}function xe(e,t){return Sn.test(e)&&(e=e.replace(Sn,Yo)),t.stylize(`'${B(e,t.truncate-2)}'`,"string")}function De(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(Yo,"escape"),i(xe,"inspectString"),i(De,"inspectSymbol");var En=i(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(En=i((r,o)=>{let[s,c]=e(r);return s===t?"Promise{<pending>}":`Promise${s===n?"!":""}{${o.inspect(c,o)}}`},"getPromiseValue"))}catch{}var _n=En;function me(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===r.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=D(n.map(a=>[a,e[a]]),t,ce),s=D(r.map(a=>[a,e[a]]),t,ce);t.seen.pop();let c="";return o&&s&&(c=", "),`{ ${o}${c}${s} }`}i(me,"inspectObject");var ft=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;function mt(e,t){let n="";return ft&&ft in e&&(n=e[ft]),n=n||e.constructor.name,(!n||"_class"===n)&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${me(e,t)}`}function pt(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,`Arguments[ ${D(e,t)} ]`)}i(mt,"inspectClass"),i(pt,"inspectArguments");var Uo=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function gt(e,t){let n=Object.getOwnPropertyNames(e).filter(c=>-1===Uo.indexOf(c)),r=e.name;t.truncate-=r.length;let o="";if("string"==typeof e.message?o=B(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let s=D(n.map(c=>[c,e[c]]),t,ce);return`${r}${o}${s?` { ${s} }`:""}`}function Wo([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Fe(e,t){return D(e,t,Vo,"\n")}function Vo(e,t){switch(e.nodeType){case 1:return je(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function je(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),s=t.stylize(">","special"),c=t.stylize(`</${r}>`,"special");t.truncate-=2*r.length+5;let a="";n.length>0&&(a+=" ",a+=D(n.map(p=>[p,e.getAttribute(p)]),t,Wo," ")),t.truncate-=a.length;let u=t.truncate,m=Fe(e.children,t);return m&&m.length>u&&(m=`…(${e.children.length})`),`${o}${a}${s}${m}${c}`}i(gt,"inspectObject"),i(Wo,"inspectAttribute"),i(Fe,"inspectNodeCollection"),i(Vo,"inspectNode"),i(je,"inspectHTML");var ht="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",dt=Symbol.for("nodejs.util.inspect.custom"),Tn=new WeakMap,Cn={},On={undefined:i((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:i((e,t)=>t.stylize("null","null"),"null"),boolean:i((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:i((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Me,Number:Me,bigint:Le,BigInt:Le,string:xe,String:xe,function:Ie,Function:Ie,symbol:De,Symbol:De,Array:it,Date:ct,Map:ut,Set:lt,RegExp:at,Promise:_n,WeakSet:i((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:i((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:pt,Int8Array:te,Uint8Array:te,Uint8ClampedArray:te,Int16Array:te,Uint16Array:te,Int32Array:te,Uint32Array:te,Float32Array:te,Float64Array:te,Generator:i(()=>"","Generator"),DataView:i(()=>"","DataView"),ArrayBuffer:i(()=>"","ArrayBuffer"),Error:gt,HTMLCollection:Fe,NodeList:Fe},Ko=i((e,t,n)=>ht in e&&"function"==typeof e[ht]?e[ht](t):dt in e&&"function"==typeof e[dt]?e[dt](t.depth,t):"inspect"in e&&"function"==typeof e.inspect?e.inspect(t.depth,t):"constructor"in e&&Tn.has(e.constructor)?Tn.get(e.constructor)(e,t):Cn[n]?Cn[n](e,t):"","inspectCustom"),Go=Object.prototype.toString;function ke(e,t={}){let n=bn(t,ke),{customInspect:r}=n,o=null===e?"null":typeof e;if("object"===o&&(o=Go.call(e).slice(8,-1)),o in On)return On[o](e,n);if(r&&e){let c=Ko(e,n,o);if(c)return"string"==typeof c?c:ke(c,n)}let s=!!e&&Object.getPrototypeOf(e);return s===Object.prototype||null===s?me(e,n):e&&"function"==typeof HTMLElement&&e instanceof HTMLElement?je(e,n):"constructor"in e?e.constructor!==Object?mt(e,n):me(e,n):e===Object(e)?me(e,n):n.stylize(String(e),o)}i(ke,"inspect");var{AsymmetricMatcher:Jo,DOMCollection:Xo,DOMElement:Zo,Immutable:Qo,ReactElement:vo,ReactTestComponent:es}=_e,$n=[es,vo,Zo,Xo,Qo,Jo];function pe(e,t=10,{maxLength:n,...r}={}){let s,o=n??1e4;try{s=X(e,{maxDepth:t,escapeString:!1,plugins:$n,...r})}catch{s=X(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:$n,...r})}return s.length>=o&&t>1?pe(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):s}i(pe,"stringify");var ts=/%[sdjifoOc%]/g;function wn(...e){if("string"!=typeof e[0]){let s=[];for(let c=0;c<e.length;c++)s.push(Te(e[c],{depth:0,colors:!1}));return s.join(" ")}let t=e.length,n=1,r=e[0],o=String(r).replace(ts,s=>{if("%%"===s)return"%";if(n>=t)return s;switch(s){case"%s":{let c=e[n++];return"bigint"==typeof c?`${c.toString()}n`:"number"==typeof c&&0===c&&1/c<0?"-0":"object"==typeof c&&null!==c?"function"==typeof c.toString&&c.toString!==Object.prototype.toString?c.toString():Te(c,{depth:0,colors:!1}):String(c)}case"%d":{let c=e[n++];return"bigint"==typeof c?`${c.toString()}n`:Number(c).toString()}case"%i":{let c=e[n++];return"bigint"==typeof c?`${c.toString()}n`:Number.parseInt(String(c)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return Te(e[n++],{showHidden:!0,showProxy:!0});case"%O":return Te(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(c){let a=c.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return"[Circular]";throw c}default:return s}});for(let s=e[n];n<t;s=e[++n])o+=null===s||"object"!=typeof s?` ${s}`:` ${Te(s)}`;return o}function Te(e,t={}){return 0===t.truncate&&(t.truncate=Number.POSITIVE_INFINITY),ke(e,t)}function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ns(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Be(e){return Object.prototype.toString.apply(e).slice(8,-1)}function rs(e,t){let n="function"==typeof t?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function bt(e){let t=new Set;return ns(e)?[]:(rs(e,t),Array.from(t))}i(wn,"format"),i(Te,"inspect"),i(Rn,"getDefaultExportFromCjs"),i(ns,"isFinalObj"),i(Be,"getType"),i(rs,"collectOwnProperties"),i(bt,"getOwnProperties");var An={forceWritable:!1};function St(e,t=An){return yt(e,new WeakMap,t)}function yt(e,t,n=An){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=yt(e[r],t,n);return o}if("[object Object]"===Object.prototype.toString.call(e)){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let s=bt(e);for(let c of s){let a=Object.getOwnPropertyDescriptor(e,c);if(!a)continue;let u=yt(e[c],t,n);n.forceWritable?Object.defineProperty(o,c,{enumerable:a.enumerable,configurable:!0,writable:!0,value:u}):"get"in a?Object.defineProperty(o,c,{...a,get:()=>u}):Object.defineProperty(o,c,{...a,value:u})}return o}return e}i(St,"deepClone"),i(yt,"clone");var z=-1,At=class At{0;1;constructor(t,n){this[0]=t,this[1]=n}};i(At,"Diff");var P=At;function os(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,s=0;for(;n<o;)e.substring(s,o)===t.substring(s,o)?(n=o,s=n):r=o,o=Math.floor((r-n)/2+n);return o}function Vn(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),o=r,s=0;for(;n<o;)e.substring(e.length-o,e.length-s)===t.substring(t.length-o,t.length-s)?(n=o,s=n):r=o,o=Math.floor((r-n)/2+n);return o}function Pn(e,t){let n=e.length,r=t.length;if(0===n||0===r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let o=Math.min(n,r);if(e===t)return o;let s=0,c=1;for(;;){let a=e.substring(o-c),u=t.indexOf(a);if(-1===u)return s;c+=u,(0===u||e.substring(o-c)===t.substring(0,c))&&(s=c,c++)}}function ss(e){let t=!1,n=[],r=0,o=null,s=0,c=0,a=0,u=0,m=0;for(;s<e.length;)0===e[s][0]?(n[r++]=s,c=u,a=m,u=0,m=0,o=e[s][1]):(1===e[s][0]?u+=e[s][1].length:m+=e[s][1].length,o&&o.length<=Math.max(c,a)&&o.length<=Math.max(u,m)&&(e.splice(n[r-1],0,new P(z,o)),e[n[r-1]+1][0]=1,r--,r--,s=r>0?n[r-1]:-1,c=0,a=0,u=0,m=0,o=null,t=!0)),s++;for(t&&qn(e),us(e),s=1;s<e.length;){if(e[s-1][0]===z&&1===e[s][0]){let p=e[s-1][1],l=e[s][1],b=Pn(p,l),g=Pn(l,p);b>=g?(b>=p.length/2||b>=l.length/2)&&(e.splice(s,0,new P(0,l.substring(0,b))),e[s-1][1]=p.substring(0,p.length-b),e[s+1][1]=l.substring(b),s++):(g>=p.length/2||g>=l.length/2)&&(e.splice(s,0,new P(0,p.substring(0,g))),e[s-1][0]=1,e[s-1][1]=l.substring(0,l.length-g),e[s+1][0]=z,e[s+1][1]=p.substring(g),s++),s++}s++}}i(os,"diff_commonPrefix"),i(Vn,"diff_commonSuffix"),i(Pn,"diff_commonOverlap_"),i(ss,"diff_cleanupSemantic");var Nn=/[^a-z0-9]/i,In=/\s/,Mn=/[\r\n]/,is=/\n\r?\n$/,cs=/^\r?\n\r?\n/;function us(e){let t=1;for(;t<e.length-1;){if(0===e[t-1][0]&&0===e[t+1][0]){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],s=Vn(n,r);if(s){let p=r.substring(r.length-s);n=n.substring(0,n.length-s),r=p+r.substring(0,r.length-s),o=p+o}let c=n,a=r,u=o,m=ze(n,r)+ze(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let p=ze(n,r)+ze(r,o);p>=m&&(m=p,c=n,a=r,u=o)}e[t-1][1]!==c&&(c?e[t-1][1]=c:(e.splice(t-1,1),t--),e[t][1]=a,u?e[t+1][1]=u:(e.splice(t+1,1),t--))}t++}}function qn(e){e.push(new P(0,""));let c,t=0,n=0,r=0,o="",s="";for(;t<e.length;)switch(e[t][0]){case 1:r++,s+=e[t][1],t++;break;case z:n++,o+=e[t][1],t++;break;case 0:n+r>1?(0!==n&&0!==r&&(c=os(s,o),0!==c&&(t-n-r>0&&0===e[t-n-r-1][0]?e[t-n-r-1][1]+=s.substring(0,c):(e.splice(0,0,new P(0,s.substring(0,c))),t++),s=s.substring(c),o=o.substring(c)),c=Vn(s,o),0!==c&&(e[t][1]=s.substring(s.length-c)+e[t][1],s=s.substring(0,s.length-c),o=o.substring(0,o.length-c))),t-=n+r,e.splice(t,n+r),o.length&&(e.splice(t,0,new P(z,o)),t++),s.length&&(e.splice(t,0,new P(1,s)),t++),t++):0!==t&&0===e[t-1][0]?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",s=""}""===e[e.length-1][1]&&e.pop();let a=!1;for(t=1;t<e.length-1;)0===e[t-1][0]&&0===e[t+1][0]&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&qn(e)}function ze(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(Nn),s=r.match(Nn),c=o&&n.match(In),a=s&&r.match(In),u=c&&n.match(Mn),m=a&&r.match(Mn),p=u&&e.match(is),l=m&&t.match(cs);return p||l?5:u||m?4:o&&!c&&a?3:c||a?2:o||s?1:0}i(us,"diff_cleanupSemanticLossless"),i(qn,"diff_cleanupMerge"),i(ze,"diff_cleanupSemanticScore_");var Ln,Kn="Compared values have no visual difference.",Ye={};function ls(){if(Ln)return Ye;Ln=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.default=b;let e="diff-sequences",t=0,n=i((g,h,f,d,S)=>{let _=0;for(;g<h&&f<d&&S(g,f);)g+=1,f+=1,_+=1;return _},"countCommonItemsF"),r=i((g,h,f,d,S)=>{let _=0;for(;g<=h&&f<=d&&S(h,d);)h-=1,d-=1,_+=1;return _},"countCommonItemsR"),o=i((g,h,f,d,S,_,O)=>{let y=0,E=-g,$=_[y],T=$;_[y]+=n($+1,h,d+$-E+1,f,S);let R=g<O?g:O;for(y+=1,E+=2;y<=R;y+=1,E+=2){if(y!==g&&T<_[y])$=_[y];else if($=T+1,h<=$)return y-1;T=_[y],_[y]=$+n($+1,h,d+$-E+1,f,S)}return O},"extendPathsF"),s=i((g,h,f,d,S,_,O)=>{let y=0,E=g,$=_[y],T=$;_[y]-=r(h,$-1,f,d+$-E-1,S);let R=g<O?g:O;for(y+=1,E-=2;y<=R;y+=1,E-=2){if(y!==g&&_[y]<T)$=_[y];else if($=T-1,$<h)return y-1;T=_[y],_[y]=$-r(h,$-1,f,d+$-E-1,S)}return O},"extendPathsR"),c=i((g,h,f,d,S,_,O,y,E,$,T)=>{let R=d-h,I=S-d-(f-h),k=-I-(g-1),G=g-1-I,Y=t,N=g<y?g:y;for(let L=0,x=-g;L<=N;L+=1,x+=2){let H=0===L||L!==g&&Y<O[L],F=H?O[L]:Y,W=H?F:F+1,re=R+W-x,V=n(W+1,f,re+1,S,_),q=W+V;if(Y=O[L],O[L]=q,k<=x&&x<=G){let se=(g-1-(x+I))/2;if(se<=$&&E[se]-1<=q){let J=R+F-(H?x+1:x-1),U=r(h,F,d,J,_),ue=F-U+1,be=J-U+1;T.nChangePreceding=g-1,g-1===ue+be-h-d?(T.aEndPreceding=h,T.bEndPreceding=d):(T.aEndPreceding=ue,T.bEndPreceding=be),T.nCommonPreceding=U,0!==U&&(T.aCommonPreceding=ue,T.bCommonPreceding=be),T.nCommonFollowing=V,0!==V&&(T.aCommonFollowing=W+1,T.bCommonFollowing=re+1);let Ce=q+1,Oe=re+V+1;return T.nChangeFollowing=g-1,g-1===f+S-Ce-Oe?(T.aStartFollowing=f,T.bStartFollowing=S):(T.aStartFollowing=Ce,T.bStartFollowing=Oe),!0}}}return!1},"extendOverlappablePathsF"),a=i((g,h,f,d,S,_,O,y,E,$,T)=>{let R=S-f,I=S-d-(f-h),k=I-g,G=I+g,Y=t,N=g<$?g:$;for(let L=0,x=g;L<=N;L+=1,x-=2){let H=0===L||L!==g&&E[L]<Y,F=H?E[L]:Y,W=H?F:F-1,re=R+W-x,V=r(h,W-1,d,re-1,_),q=W-V;if(Y=E[L],E[L]=q,k<=x&&x<=G){let se=(g+(x-I))/2;if(se<=y&&q-1<=O[se]){let J=re-V;if(T.nChangePreceding=g,g===q+J-h-d?(T.aEndPreceding=h,T.bEndPreceding=d):(T.aEndPreceding=q,T.bEndPreceding=J),T.nCommonPreceding=V,0!==V&&(T.aCommonPreceding=q,T.bCommonPreceding=J),T.nChangeFollowing=g-1,1===g)T.nCommonFollowing=0,T.aStartFollowing=f,T.bStartFollowing=S;else{let U=R+F-(H?x-1:x+1),oe=n(F,f,U,S,_);T.nCommonFollowing=oe,0!==oe&&(T.aCommonFollowing=F,T.bCommonFollowing=U);let he=F+oe,ue=U+oe;g-1===f+S-he-ue?(T.aStartFollowing=f,T.bStartFollowing=S):(T.aStartFollowing=he,T.bStartFollowing=ue)}return!0}}}return!1},"extendOverlappablePathsR"),u=i((g,h,f,d,S,_,O,y,E)=>{let $=d-h,T=S-f,R=f-h,K=S-d,Q=K-R,I=R,k=R;if(O[0]=h-1,y[0]=f,Q%2==0){let G=(g||Q)/2,Y=(R+K)/2;for(let N=1;N<=Y;N+=1)if(I=o(N,f,S,$,_,O,I),N<G)k=s(N,h,d,T,_,y,k);else if(a(N,h,f,d,S,_,O,I,y,k,E))return}else{let G=((g||Q)+1)/2,Y=(R+K+1)/2,N=1;for(I=o(N,f,S,$,_,O,I),N+=1;N<=Y;N+=1)if(k=s(N-1,h,d,T,_,y,k),N<G)I=o(N,f,S,$,_,O,I);else if(c(N,h,f,d,S,_,O,I,y,k,E))return}throw new Error(`${e}: no overlap aStart=${h} aEnd=${f} bStart=${d} bEnd=${S}`)},"divide"),m=i((g,h,f,d,S,_,O,y,E,$)=>{if(S-d<f-h){if((_=!_)&&1===O.length){let{foundSubsequence:q,isCommon:se}=O[0];O[1]={foundSubsequence:i((J,U,oe)=>{q(J,oe,U)},"foundSubsequence"),isCommon:i((J,U)=>se(U,J),"isCommon")}}let re=h,V=f;h=d,f=S,d=re,S=V}let{foundSubsequence:T,isCommon:R}=O[_?1:0];u(g,h,f,d,S,R,y,E,$);let{nChangePreceding:K,aEndPreceding:Q,bEndPreceding:I,nCommonPreceding:k,aCommonPreceding:G,bCommonPreceding:Y,nCommonFollowing:N,aCommonFollowing:L,bCommonFollowing:x,nChangeFollowing:H,aStartFollowing:F,bStartFollowing:W}=$;h<Q&&d<I&&m(K,h,Q,d,I,_,O,y,E,$),0!==k&&T(k,G,Y),0!==N&&T(N,L,x),F<f&&W<S&&m(H,F,f,W,S,_,O,y,E,$)},"findSubsequences"),p=i((g,h)=>{if("number"!=typeof h)throw new TypeError(`${e}: ${g} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${e}: ${g} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${e}: ${g} value ${h} is a negative integer`)},"validateLength"),l=i((g,h)=>{let f=typeof h;if("function"!==f)throw new TypeError(`${e}: ${g} typeof ${f} is not a function`)},"validateCallback");function b(g,h,f,d){p("aLength",g),p("bLength",h),l("isCommon",f),l("foundSubsequence",d);let S=n(0,g,0,h,f);if(0!==S&&d(S,0,0),g!==S||h!==S){let _=S,O=S,y=r(_,g-1,O,h-1,f),E=g-y,$=h-y,T=S+y;g!==T&&h!==T&&m(0,_,E,O,$,!1,[{foundSubsequence:d,isCommon:f}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),0!==y&&d(y,E,$)}}return i(b,"diffSequence"),Ye}i(ls,"requireBuild");var Gn=Rn(ls());function ms(e,t){return e.replace(/\s+$/,n=>t(n))}function wt(e,t,n,r,o,s){return 0!==e.length?n(`${r} ${ms(e,o)}`):" "!==r?n(r):t&&0!==s.length?n(`${r} ${s}`):""}function Hn(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return wt(e,t,n,r,o,s)}function Jn(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return wt(e,t,n,r,o,s)}function Xn(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return wt(e,t,n,r,o,s)}function xn(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function ps(e,t){let n=e.length,r=t.contextLines,o=r+r,s=n,c=!1,a=0,u=0;for(;u!==n;){let y=u;for(;u!==n&&0===e[u][0];)u+=1;if(y!==u)if(0===y)u>r&&(s-=u-r,c=!0);else if(u===n){let E=u-y;E>r&&(s-=E-r,c=!0)}else{let E=u-y;E>o&&(s-=E-o,a+=1)}for(;u!==n&&0!==e[u][0];)u+=1}let m=0!==a||c;0!==a?s+=a+1:c&&(s+=1);let p=s-1,l=[],b=0;m&&l.push("");let g=0,h=0,f=0,d=0,S=i(y=>{let E=l.length;l.push(Xn(y,0===E||E===p,t)),f+=1,d+=1},"pushCommonLine"),_=i(y=>{let E=l.length;l.push(Hn(y,0===E||E===p,t)),f+=1},"pushDeleteLine"),O=i(y=>{let E=l.length;l.push(Jn(y,0===E||E===p,t)),d+=1},"pushInsertLine");for(u=0;u!==n;){let y=u;for(;u!==n&&0===e[u][0];)u+=1;if(y!==u)if(0===y){u>r&&(y=u-r,g=y,h=y,f=g,d=h);for(let E=y;E!==u;E+=1)S(e[E][1])}else if(u===n){let E=u-y>r?y+r:u;for(let $=y;$!==E;$+=1)S(e[$][1])}else{let E=u-y;if(E>o){let $=y+r;for(let R=y;R!==$;R+=1)S(e[R][1]);l[b]=xn(g,f,h,d,t),b=l.length,l.push("");let T=E-o;g=f+T,h=d+T,f=g,d=h;for(let R=u-r;R!==u;R+=1)S(e[R][1])}else for(let $=y;$!==u;$+=1)S(e[$][1])}for(;u!==n&&e[u][0]===z;)_(e[u][1]),u+=1;for(;u!==n&&1===e[u][0];)O(e[u][1]),u+=1}return m&&(l[b]=xn(g,f,h,d,t)),l.join("\n")}function gs(e,t){return e.map((n,r,o)=>{let s=n[1],c=0===r||r===o.length-1;switch(n[0]){case z:return Hn(s,c,t);case 1:return Jn(s,c,t);default:return Xn(s,c,t)}}).join("\n")}i(ms,"formatTrailingSpaces"),i(wt,"printDiffLine"),i(Hn,"printDeleteLine"),i(Jn,"printInsertLine"),i(Xn,"printCommonLine"),i(xn,"createPatchMark"),i(ps,"joinAlignedDiffsNoExpand"),i(gs,"joinAlignedDiffsExpand");var Et=i(e=>e,"noColor");function ds(){return{aAnnotation:"Expected",aColor:v.green,aIndicator:"-",bAnnotation:"Received",bColor:v.red,bIndicator:"+",changeColor:v.inverse,changeLineTrailingSpaceColor:Et,commonColor:v.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Et,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:v.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Et}}function ys(e){return e&&"function"==typeof e?e:void 0}function bs(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0?e:5}function ge(e={}){return{...ds(),...e,compareKeys:ys(e.compareKeys),contextLines:bs(e.contextLines)}}function ye(e){return 1===e.length&&0===e[0].length}function Ss(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case z:t+=1;break;case 1:n+=1}}),{a:t,b:n}}function Es({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:s,includeChangeCounts:c,omitAnnotationLines:a},u){if(a)return"";let m="",p="";if(c){let g=String(u.a),h=String(u.b),f=r.length-e.length,d=" ".repeat(Math.max(0,f)),S=" ".repeat(Math.max(0,-f)),_=h.length-g.length;m=`${d} ${n} ${" ".repeat(Math.max(0,_))}${g}`,p=`${S} ${s} ${" ".repeat(Math.max(0,-_))}${h}`}let b=`${s} ${r}${p}`;return`${t(`${n} ${e}${m}`)}\n${o(b)}\n\n`}function Rt(e,t,n){return Es(n,Ss(e))+(n.expand?gs(e,n):ps(e,n))+(t?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):"")}function We(e,t,n){let r=ge(n),[o,s]=Qn(ye(e)?[]:e,ye(t)?[]:t,r);return Rt(o,s,r)}function _s(e,t,n,r,o){if(ye(e)&&ye(n)&&(e=[],n=[]),ye(t)&&ye(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return We(e,t,o);let[s,c]=Qn(n,r,o),a=0,u=0;return s.forEach(m=>{switch(m[0]){case z:m[1]=e[a],a+=1;break;case 1:m[1]=t[u],u+=1;break;default:m[1]=t[u],a+=1,u+=1}}),Rt(s,c,ge(o))}function Qn(e,t,n){let r=n?.truncateThreshold??!1,o=Math.max(Math.floor(n?.truncateThreshold??0),0),s=r?Math.min(e.length,o):e.length,c=r?Math.min(t.length,o):t.length,a=s!==e.length||c!==t.length,m=[],p=0,l=0;for(Gn(s,c,i((g,h)=>e[g]===t[h],"isCommon"),i((g,h,f)=>{for(;p!==h;p+=1)m.push(new P(z,e[p]));for(;l!==f;l+=1)m.push(new P(1,t[l]));for(;0!==g;g-=1,p+=1,l+=1)m.push(new P(0,t[l]))},"foundSubsequence"));p!==s;p+=1)m.push(new P(z,e[p]));for(;l!==c;l+=1)m.push(new P(1,t[l]));return[m,a]}function Dn(e){if(void 0===e)return"undefined";if(null===e)return"null";if(Array.isArray(e))return"array";if("boolean"==typeof e)return"boolean";if("function"==typeof e)return"function";if("number"==typeof e)return"number";if("string"==typeof e)return"string";if("bigint"==typeof e)return"bigint";if("object"==typeof e){if(null!=e){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}if("symbol"==typeof e)return"symbol";throw new Error(`value of unknown type: ${e}`)}function Fn(e){return e.includes("\r\n")?"\r\n":"\n"}function Ts(e,t,n){let r=n?.truncateThreshold??!1,o=Math.max(Math.floor(n?.truncateThreshold??0),0),s=e.length,c=t.length;if(r){let g=e.includes("\n"),h=t.includes("\n"),f=Fn(e),d=Fn(t),S=g?`${e.split(f,o).join(f)}\n`:e,_=h?`${t.split(d,o).join(d)}\n`:t;s=S.length,c=_.length}let a=s!==e.length||c!==t.length,m=0,p=0,l=[];return Gn(s,c,i((g,h)=>e[g]===t[h],"isCommon"),i((g,h,f)=>{m!==h&&l.push(new P(z,e.slice(m,h))),p!==f&&l.push(new P(1,t.slice(p,f))),m=h+g,p=f+g,l.push(new P(0,t.slice(f,p)))},"foundSubsequence")),m!==s&&l.push(new P(z,e.slice(m))),p!==c&&l.push(new P(1,t.slice(p))),[l,a]}function Cs(e,t,n){return t.reduce((r,o)=>r+(0===o[0]?o[1]:o[0]===e&&0!==o[1].length?n(o[1]):""),"")}i(ds,"getDefaultOptions"),i(ys,"getCompareKeys"),i(bs,"getContextLines"),i(ge,"normalizeDiffOptions"),i(ye,"isEmptyString"),i(Ss,"countChanges"),i(Es,"printAnnotation"),i(Rt,"printDiffLines"),i(We,"diffLinesUnified"),i(_s,"diffLinesUnified2"),i(Qn,"diffLinesRaw"),i(Dn,"getType"),i(Fn,"getNewLineSymbol"),i(Ts,"diffStrings"),i(Cs,"concatenateRelevantDiffs");var Pt=class Pt{op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(t){this.pushDiff(new P(this.op,t))}pushLine(){this.lines.push(1!==this.line.length?new P(this.op,Cs(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new P(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(t){this.line.push(t)}align(t){let n=t[1];if(n.includes("\n")){let r=n.split("\n"),o=r.length-1;r.forEach((s,c)=>{c<o?(this.pushSubstring(s),this.pushLine()):0!==s.length&&this.pushSubstring(s)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};i(Pt,"ChangeBuffer");var Ue=Pt,Nt=class Nt{deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let n=0===t[1].length;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let n=t[0],r=t[1];if(r.includes("\n")){let o=r.split("\n"),s=o.length-1;o.forEach((c,a)=>{if(0===a){let u=new P(n,c);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else a<s?this.pushDiffCommonLine(new P(n,c)):0!==c.length&&this.pushDiffChangeLines(new P(n,c))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};i(Nt,"CommonBuffer");var Tt=Nt;function Os(e,t){let n=new Ue(z,t),r=new Ue(1,t),o=new Tt(n,r);return e.forEach(s=>{switch(s[0]){case z:n.align(s);break;case 1:r.align(s);break;default:o.align(s)}}),o.getLines()}function $s(e,t){if(t){let n=e.length-1;return e.some((r,o)=>0===r[0]&&(o!==n||"\n"!==r[1]))}return e.some(n=>0===n[0])}function ws(e,t,n){if(e!==t&&0!==e.length&&0!==t.length){let r=e.includes("\n")||t.includes("\n"),[o,s]=vn(r?`${e}\n`:e,r?`${t}\n`:t,!0,n);if($s(o,r)){let c=ge(n);return Rt(Os(o,c.changeColor),s,c)}}return We(e.split("\n"),t.split("\n"),n)}function vn(e,t,n,r){let[o,s]=Ts(e,t,r);return n&&ss(o),[o,s]}function Ct(e,t){let{commonColor:n}=ge(t);return n(e)}i(Os,"getAlignedDiffs"),i($s,"hasCommonDiff"),i(ws,"diffStringsUnified"),i(vn,"diffStringsRaw"),i(Ct,"getCommonMessage");var{AsymmetricMatcher:Rs,DOMCollection:As,DOMElement:Ps,Immutable:Ns,ReactElement:Is,ReactTestComponent:Ms}=_e,er=[Ms,Is,Ps,As,Ns,Rs,_e.Error],Ot={maxDepth:20,plugins:er},tr={callToJSON:!1,maxDepth:8,plugins:er};function Ls(e,t,n){if(Object.is(e,t))return"";let r=Dn(e),o=r,s=!1;if("object"===r&&"function"==typeof e.asymmetricMatch){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof e.getExpectedType)return;o=e.getExpectedType(),s="string"===o}if(o!==Dn(t)){let d=function(O){return O.length<=f?O:`${O.slice(0,f)}...`};i(d,"truncate");let{aAnnotation:c,aColor:a,aIndicator:u,bAnnotation:m,bColor:p,bIndicator:l}=ge(n),b=$t(tr,n),g=X(e,b),h=X(t,b),f=1e5;return g=d(g),h=d(h),`${`${a(`${u} ${c}:`)} \n${g}`}\n\n${`${p(`${l} ${m}:`)} \n${h}`}`}if(!s)switch(r){case"string":return We(e.split("\n"),t.split("\n"),n);case"boolean":case"number":return xs(e,t,n);case"map":return _t(jn(e),jn(t),n);case"set":return _t(kn(e),kn(t),n);default:return _t(e,t,n)}}function xs(e,t,n){let r=X(e,Ot),o=X(t,Ot);return r===o?"":We(r.split("\n"),o.split("\n"),n)}function jn(e){return new Map(Array.from(e.entries()).sort())}function kn(e){return new Set(Array.from(e.values()).sort())}function _t(e,t,n){let r,o=!1;try{r=Bn(e,t,$t(Ot,n),n)}catch{o=!0}let s=Ct(Kn,n);if(void 0===r||r===s){r=Bn(e,t,$t(tr,n),n),r!==s&&!o&&(r=`${Ct("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)}return r}function $t(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=ge(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}function Bn(e,t,n,r){let o={...n,indent:0},s=X(e,o),c=X(t,o);if(s===c)return Ct(Kn,r);{let a=X(e,n),u=X(t,n);return _s(a.split("\n"),u.split("\n"),s.split("\n"),c.split("\n"),r)}}i(Ls,"diff"),i(xs,"comparePrimitive"),i(jn,"sortMap"),i(kn,"sortSet"),i(_t,"compareObjects"),i($t,"getFormatOptions"),i(Bn,"getObjectsDifference");function Yn(e){return"Object"===Be(e)&&"function"==typeof e.asymmetricMatch}function Un(e,t){let n=Be(e);return n===Be(t)&&("Object"===n||"Array"===n)}function nr(e,t,n){let{aAnnotation:r,bAnnotation:o}=ge(n);if("string"==typeof t&&"string"==typeof e&&t.length>0&&e.length>0&&t.length<=2e4&&e.length<=2e4&&t!==e){if(t.includes("\n")||e.includes("\n"))return ws(t,e,n);let[p]=vn(t,e,!0),l=p.some(f=>0===f[0]),b=Ds(r,o);return`${b(r)+ks(Wn(p,z,l))}\n${b(o)+js(Wn(p,1,l))}`}let s=St(t,{forceWritable:!0}),c=St(e,{forceWritable:!0}),{replacedExpected:a,replacedActual:u}=rr(c,s);return Ls(a,u,n)}function rr(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Un(e,t)?(n.has(e)||r.has(t)||(n.add(e),r.add(t),bt(t).forEach(o=>{let s=t[o],c=e[o];if(Yn(s))s.asymmetricMatch(c)&&(e[o]=s);else if(Yn(c))c.asymmetricMatch(s)&&(t[o]=c);else if(Un(c,s)){let a=rr(c,s,n,r);e[o]=a.replacedActual,t[o]=a.replacedExpected}})),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Ds(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}i(Yn,"isAsymmetricMatcher"),i(Un,"isReplaceable"),i(nr,"printDiffOrStringify"),i(rr,"replaceAsymmetricMatcher"),i(Ds,"getLabelPrinter");var Fs="·";function or(e){return e.replace(/\s+$/gm,t=>Fs.repeat(t.length))}function js(e){return v.red(or(pe(e)))}function ks(e){return v.green(or(pe(e)))}function Wn(e,t,n){return e.reduce((r,o)=>r+(0===o[0]?o[1]:o[0]===t?n?v.inverse(o[1]):o[1]:""),"")}i(or,"replaceTrailingSpaces"),i(js,"printReceived"),i(ks,"printExpected"),i(Wn,"getCommonAndChangedSubstrings");function Ys(e){return e&&(e["@@__IMMUTABLE_ITERABLE__@@"]||e["@@__IMMUTABLE_RECORD__@@"])}i(Ys,"isImmutable");var Us=Object.getPrototypeOf({});function sr(e){return e instanceof Error?`<unserializable>: ${e.message}`:"string"==typeof e?`<unserializable>: ${e}`:"<unserializable>"}function le(e,t=new WeakMap){if(!e||"string"==typeof e)return e;if(e instanceof Error&&"toJSON"in e&&"function"==typeof e.toJSON){let n=e.toJSON();return n&&n!==e&&"object"==typeof n&&("string"==typeof e.message&&Ve(()=>n.message??(n.message=e.message)),"string"==typeof e.stack&&Ve(()=>n.stack??(n.stack=e.stack)),"string"==typeof e.name&&Ve(()=>n.name??(n.name=e.name)),null!=e.cause&&Ve(()=>n.cause??(n.cause=le(e.cause,t)))),le(n,t)}if("function"==typeof e)return`Function<${e.name||"anonymous"}>`;if("symbol"==typeof e)return e.toString();if("object"!=typeof e)return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Ys(e))return le(e.toJSON(),t);if(e instanceof Promise||e.constructor&&"AsyncFunction"===e.constructor.prototype)return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if("function"==typeof e.asymmetricMatch)return`${e.toString()} ${wn(e.sample)}`;if("function"==typeof e.toJSON)return le(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=le(r,t)}catch(s){n[o]=sr(s)}}),n}{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Us;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=le(e[o],t)}catch(s){delete n[o],n[o]=sr(s)}}),r=Object.getPrototypeOf(r);return n}}function Ve(e){try{return e()}catch{}}function Ws(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function It(e,t,n=new WeakSet){if(!e||"object"!=typeof e)return{message:String(e)};let r=e;(r.showDiff||void 0===r.showDiff&&void 0!==r.expected&&void 0!==r.actual)&&(r.diff=nr(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&"string"!=typeof r.expected&&(r.expected=pe(r.expected,10)),"actual"in r&&"string"!=typeof r.actual&&(r.actual=pe(r.actual,10));try{"string"==typeof r.message&&(r.message=Ws(r.message))}catch{}try{!n.has(r)&&"object"==typeof r.cause&&(n.add(r),r.cause=It(r.cause,t,n))}catch{}try{return le(r)}catch(o){return le(new Error(`Failed to fully serialize error: ${o?.message}\nInner error message: ${r?.message}`))}}i(sr,"getUnserializableMessage"),i(le,"serializeValue"),i(Ve,"safe"),i(Ws,"normalizeErrorMessage"),i(It,"processError");var ne_CALL="storybook/instrumenter/call",ne_SYNC="storybook/instrumenter/sync",ne_START="storybook/instrumenter/start",ne_BACK="storybook/instrumenter/back",ne_GOTO="storybook/instrumenter/goto",ne_NEXT="storybook/instrumenter/next",ne_END="storybook/instrumenter/end",qe=globalThis.__STORYBOOK_ADDONS_PREVIEW,Hs=new Error("This function ran after the play function completed. Did you forget to `await` it?"),cr=i(e=>"[object Object]"===Object.prototype.toString.call(e),"isObject"),Js=i(e=>"[object Module]"===Object.prototype.toString.call(e),"isModule"),Xs=i(e=>{if(!cr(e)&&!Js(e))return!1;if(void 0===e.constructor)return!0;let t=e.constructor.prototype;return!!cr(t)},"isInstrumentable"),Zs=i(e=>{try{return new e.constructor}catch{return{}}},"construct"),Mt=i(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),ur=i((e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},"getRetainedState"),xt=class xt{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=i(()=>{try{this.state=external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=i(()=>{try{external_STORYBOOK_MODULE_GLOBAL_.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=i(({storyId:u,renderPhase:m,isPlaying:p=!0,isDebugging:l=!1})=>{let b=this.getState(u);this.setState(u,{...Mt(),...ur(b,l),renderPhase:m||b.renderPhase,shadowCalls:l?b.shadowCalls:[],chainedCallIds:l?b.chainedCallIds:new Set,playUntil:l?b.playUntil:void 0,isPlaying:p,isDebugging:l}),this.sync(u)},"resetState"),n=i(u=>({storyId:m,playUntil:p})=>{this.getState(m).isDebugging||this.setState(m,({calls:b})=>({calls:[],shadowCalls:b.map(g=>({...g,status:"waiting"})),isDebugging:!0}));let l=this.getLog(m);this.setState(m,({shadowCalls:b})=>{if(p||!l.length)return{playUntil:p};let g=b.findIndex(h=>h.id===l[0].callId);return{playUntil:b.slice(0,g).filter(h=>h.interceptable&&!h.ancestors?.length).slice(-1)[0]?.id}}),u.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.FORCE_REMOUNT,{storyId:m,isDebugging:!0})},"start"),r=i(u=>({storyId:m})=>{let p=this.getLog(m).filter(b=>!b.ancestors?.length),l=p.reduceRight((b,g,h)=>b>=0||"waiting"===g.status?b:h,-1);n(u)({storyId:m,playUntil:p[l-1]?.callId})},"back"),o=i(u=>({storyId:m,callId:p})=>{let{calls:l,shadowCalls:b,resolvers:g}=this.getState(m),h=l.find(({id:d})=>d===p),f=b.find(({id:d})=>d===p);if(!h&&f&&Object.values(g).length>0){let d=this.getLog(m).find(S=>"waiting"===S.status)?.callId;f.id!==d&&this.setState(m,{playUntil:f.id}),Object.values(g).forEach(S=>S())}else n(u)({storyId:m,playUntil:p})},"goto"),s=i(u=>({storyId:m})=>{let{resolvers:p}=this.getState(m);if(Object.values(p).length>0)Object.values(p).forEach(l=>l());else{let l=this.getLog(m).find(b=>"waiting"===b.status)?.callId;l?n(u)({storyId:m,playUntil:l}):c({storyId:m})}},"next"),c=i(({storyId:u})=>{this.setState(u,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(u).resolvers).forEach(m=>m())},"end"),a=i(({storyId:u,newPhase:m})=>{let{isDebugging:p}=this.getState(u);return"preparing"===m&&p?t({storyId:u,renderPhase:m}):"playing"===m?t({storyId:u,renderPhase:m,isDebugging:p}):("played"===m?this.setState(u,{renderPhase:m,isLocked:!1,isPlaying:!1,isDebugging:!1}):"errored"===m?this.setState(u,{renderPhase:m,isLocked:!1,isPlaying:!1}):"aborted"===m?this.setState(u,{renderPhase:m,isLocked:!0,isPlaying:!1}):this.setState(u,{renderPhase:m}),void this.sync(u))},"renderPhaseChanged");qe&&qe.ready().then(()=>{this.channel=qe.getChannel(),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.FORCE_REMOUNT,t),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDER_PHASE_CHANGED,a),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.SET_CURRENT_STORY,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(ne_START,n(this.channel)),this.channel.on(ne_BACK,r(this.channel)),this.channel.on(ne_GOTO,o(this.channel)),this.channel.on(ne_NEXT,s(this.channel)),this.channel.on(ne_END,c)})}getState(t){return this.state[t]||Mt()}setState(t,n){if(t){let r=this.getState(t),o="function"==typeof n?n(r):n;this.state={...this.state,[t]:{...r,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((r,[o,s])=>{let c=ur(s);return c&&(r[o]=Object.assign(Mt(),c)),r},{});let n={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(ne_SYNC,n),this.updateParentWindowState()}getLog(t){let{calls:n,shadowCalls:r}=this.getState(t),o=[...r];n.forEach((c,a)=>{o[a]=c});let s=new Set;return o.reduceRight((c,a)=>(a.args.forEach(u=>{u?.__callId__&&s.add(u.__callId__)}),a.path.forEach(u=>{u.__callId__&&s.add(u.__callId__)}),(a.interceptable||a.exception)&&!s.has(a.id)&&(c.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),s.add(a.id)),c),[])}instrument(t,n,r=0){if(!Xs(t))return t;let{mutate:o=!1,path:s=[]}=n,c=n.getKeys?n.getKeys(t,r):Object.keys(t);return r+=1,c.reduce((a,u)=>{let m=vs(t,u);if("function"==typeof m?.get){if(m.configurable){let l=i(()=>m?.get?.bind(t)?.(),"getter");Object.defineProperty(a,u,{get:i(()=>this.instrument(l(),{...n,path:s.concat(u)},r),"get")})}return a}let p=t[u];return"function"!=typeof p?(a[u]=this.instrument(p,{...n,path:s.concat(u)},r),a):"__originalFn__"in p&&"function"==typeof p.__originalFn__?(a[u]=p,a):(a[u]=(...l)=>this.track(u,p,t,l,n),a[u].__originalFn__=p,Object.defineProperty(a[u],"name",{value:u,writable:!1}),Object.keys(p).length>0&&Object.assign(a[u],this.instrument({...p},{...n,path:s.concat(u)},r)),a)},o?t:Zs(t))}track(t,n,r,o,s){let c=o?.[0]?.__storyId__||external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:u}=this.getState(c);this.setState(c,{cursor:a+1});let m=`${u.slice(-1)[0]||c} [${a}] ${t}`,{path:p=[],intercept:l=!1,retain:b=!1}=s,g="function"==typeof l?l(t,p):l,h={id:m,cursor:a,storyId:c,ancestors:u,path:p,method:t,args:o,interceptable:g,retain:b},d=(g&&!u.length?this.intercept:this.invoke).call(this,n,r,h,s);return this.instrument(d,{...s,mutate:!0,path:[{__callId__:h.id}]})}intercept(t,n,r,o){let{chainedCallIds:s,isDebugging:c,playUntil:a}=this.getState(r.storyId),u=s.has(r.id);return!c||u||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(t,n,r,o)):new Promise(m=>{this.setState(r.storyId,({resolvers:p})=>({isLocked:!1,resolvers:{...p,[r.id]:m}}))}).then(()=>(this.setState(r.storyId,m=>{let{[r.id]:p,...l}=m.resolvers;return{isLocked:!0,resolvers:l}}),this.invoke(t,n,r,o)))}invoke(t,n,r,o){let{callRefsByResult:s,renderPhase:c}=this.getState(r.storyId),u=i((l,b,g)=>{if(g.includes(l))return"[Circular]";if(g=[...g,l],b>25)return"...";if(s.has(l))return s.get(l);if(l instanceof Array)return l.map(h=>u(h,++b,g));if(l instanceof Date)return{__date__:{value:l.toISOString()}};if(l instanceof Error){let{name:h,message:f,stack:d}=l;return{__error__:{name:h,message:f,stack:d}}}if(l instanceof RegExp){let{flags:h,source:f}=l;return{__regexp__:{flags:h,source:f}}}if(l instanceof external_STORYBOOK_MODULE_GLOBAL_.global.window?.HTMLElement){let{prefix:h,localName:f,id:d,classList:S,innerText:_}=l;return{__element__:{prefix:h,localName:f,id:d,classNames:Array.from(S),innerText:_}}}return"function"==typeof l?{__function__:{name:"getMockName"in l?l.getMockName():l.name}}:"symbol"==typeof l?{__symbol__:{description:l.description}}:"object"==typeof l&&l?.constructor?.name&&"Object"!==l?.constructor?.name?{__class__:{name:l.constructor.name}}:"[object Object]"===Object.prototype.toString.call(l)?Object.fromEntries(Object.entries(l).map(([h,f])=>[h,u(f,++b,g)])):l},"serializeValues"),m={...r,args:r.args.map(l=>u(l,0,[]))};r.path.forEach(l=>{l?.__callId__&&this.setState(r.storyId,({chainedCallIds:b})=>({chainedCallIds:new Set(Array.from(b).concat(l.__callId__))}))});let p=i(l=>{if(l instanceof Error){let{name:b,message:g,stack:h,callId:f=r.id}=l,{showDiff:d,diff:S,actual:_,expected:O}="AssertionError"===l.name?It(l):l,y={name:b,message:g,stack:h,callId:f,showDiff:d,diff:S,actual:_,expected:O};if(this.update({...m,status:"error",exception:y}),this.setState(r.storyId,E=>({callRefsByResult:new Map([...Array.from(E.callRefsByResult.entries()),[l,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(l,"callId")||Object.defineProperty(l,"callId",{value:r.id}),l}throw l},"handleException");try{if("played"===c&&!r.retain)throw Hs;let b=(o.getArgs?o.getArgs(r,this.getState(r.storyId)):r.args).map(h=>"function"!=typeof h||ei(h)||Object.keys(h).length?h:(...f)=>{let{cursor:d,ancestors:S}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...S,r.id]});let _=i(()=>this.setState(r.storyId,{cursor:d,ancestors:S}),"restore"),O=!1;try{let y=h(...f);return y instanceof Promise?(O=!0,y.finally(_)):y}finally{O||_()}}),g=t.apply(n,b);return g&&["object","function","symbol"].includes(typeof g)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[g,{__callId__:r.id,retain:r.retain}]])})),this.update({...m,status:g instanceof Promise?"active":"done"}),g instanceof Promise?g.then(h=>(this.update({...m,status:"done"}),h),p):g}catch(l){return p(l)}}update(t){this.channel?.emit(ne_CALL,t),this.setState(t.storyId,({calls:n})=>{let r=n.concat(t).reduce((o,s)=>Object.assign(o,{[s.id]:s}),{});return{calls:Object.values(r).sort((o,s)=>o.id.localeCompare(s.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let n=i(()=>{let{isLocked:r,isPlaying:o}=this.getState(t),s=this.getLog(t),c=s.filter(({ancestors:l})=>!l.length).find(l=>"waiting"===l.status)?.callId,a=s.some(l=>"active"===l.status);if(this.detached||r||a||0===s.length){let b={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:s};return void this.channel?.emit(ne_SYNC,b)}let u=s.some(l=>"done"===l.status||"error"===l.status),p={controlStates:{detached:this.detached,start:u,back:u,goto:!0,next:o,end:o},logItems:s,pausedAt:c};this.channel?.emit(ne_SYNC,p)},"synchronize");this.setState(t,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(n,0)}))}};i(xt,"Instrumenter");var Lt=xt;function Qs(e,t={}){try{let n=!1,r=!1;return external_STORYBOOK_MODULE_GLOBAL_.global.window?.location?.search?.includes("instrument=true")?n=!0:external_STORYBOOK_MODULE_GLOBAL_.global.window?.location?.search?.includes("instrument=false")&&(r=!0),external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent===external_STORYBOOK_MODULE_GLOBAL_.global.window&&!n||r?e:(external_STORYBOOK_MODULE_GLOBAL_.global.window&&!external_STORYBOOK_MODULE_GLOBAL_.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(external_STORYBOOK_MODULE_GLOBAL_.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Lt),(external_STORYBOOK_MODULE_GLOBAL_.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(n){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(n),e}}function vs(e,t){let n=e;for(;null!=n;){let r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ei(e){if("function"!=typeof e)return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return!!t&&!t.writable}i(Qs,"instrument"),i(vs,"getPropertyDescriptor"),i(ei,"isClass");var e,t,csf_Br=Object.create,csf_ce=Object.defineProperty,csf_zr=Object.getOwnPropertyDescriptor,csf_Ur=Object.getOwnPropertyNames,csf_Gr=Object.getPrototypeOf,csf_Wr=Object.prototype.hasOwnProperty,n=(e,t)=>csf_ce(e,"name",{value:t,configurable:!0}),csf_xt=(e,t)=>{for(var r in t)csf_ce(e,r,{get:t[r],enumerable:!0})},csf_Tt=(e=Ee=>{Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isEqual=function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,r=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return n(function s(a,p,c){var l,y,u,h=e.call(a),T=e.call(p);if(a===p)return!0;if(null==a||null==p)return!1;if(c.indexOf(a)>-1&&c.indexOf(p)>-1)return!0;if(c.push(a,p),h!=T||(l=r(a),y=r(p),l.length!=y.length||l.some(function(R){return!s(a[R],p[R],c)})))return!1;switch(h.slice(8,-1)){case"Symbol":return a.valueOf()==p.valueOf();case"Date":case"Number":return+a==+p||+a!=+a&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+a==""+p;case"Set":case"Map":l=a.entries(),y=p.entries();do{if(!s((u=l.next()).value,y.next().value,c))return!1}while(!u.done);return!0;case"ArrayBuffer":a=new Uint8Array(a),p=new Uint8Array(p);case"DataView":a=new Uint8Array(a.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(a.length!=p.length)return!1;for(u=0;u<a.length;u++)if((u in a||u in p)&&(u in a!=u in p||!s(a[u],p[u],c)))return!1;return!0;case"Object":return s(t(a),t(p),c);default:return!1}},"n")(o,i,[])}}()},()=>(t||e((t={exports:{}}).exports,t),t.exports));function csf_bt(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,o,i)=>`${r} ${o}${i}`).replace(/([a-z])([A-Z])/g,(t,r,o)=>`${r} ${o}`).replace(/([a-z])([0-9])/gi,(t,r,o)=>`${r} ${o}`).replace(/([0-9])([a-z])/gi,(t,r,o)=>`${r} ${o}`).replace(/(\s|^)(\w)/g,(t,r,o)=>`${r}${o.toUpperCase()}`).replace(/ +/g," ").trim()}n(csf_bt,"toStartCaseStr");var Ce=((e,t,r)=>(r=null!=e?csf_Br(csf_Gr(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of csf_Ur(t))!csf_Wr.call(e,i)&&i!==r&&csf_ce(e,i,{get:()=>t[i],enumerable:!(o=csf_zr(t,i))||o.enumerable});return e})(!t&&e&&e.__esModule?r:csf_ce(r,"default",{value:e,enumerable:!0}),e)))(csf_Tt(),1),csf_St=n(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),csf_qr=n((e,t)=>{let{exists:r,eq:o,neq:i,truthy:s}=e;if(csf_St([r,o,i,s])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:o,neq:i})}`);if(typeof o<"u")return(0,Ce.isEqual)(t,o);if(typeof i<"u")return!(0,Ce.isEqual)(t,i);if(typeof r<"u"){let p=typeof t<"u";return r?p:!p}return typeof s>"u"||s?!!t:!t},"testValue"),csf_Xr=n((e,t,r)=>{if(!e.if)return!0;let{arg:o,global:i}=e.if;if(1!==csf_St([o,i]))throw new Error(`Invalid conditional value ${JSON.stringify({arg:o,global:i})}`);let s=o?t[o]:r[i];return csf_qr(e.if,s)},"includeConditionalArg");function csf_At(){let e={setHandler:n(()=>{},"setHandler"),send:n(()=>{},"send")};return new external_STORYBOOK_MODULE_CHANNELS_.Channel({transport:e})}n(csf_At,"mockChannel");var csf_Me=class Me{constructor(){this.getChannel=n(()=>{if(!this.channel){let t=csf_At();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=n(()=>this.promise,"ready"),this.hasChannel=n(()=>!!this.channel,"hasChannel"),this.setChannel=n(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};n(csf_Me,"AddonStore");var csf_Pe=csf_Me,csf_ke="__STORYBOOK_ADDONS_PREVIEW";function csf_Jr(){return external_STORYBOOK_MODULE_GLOBAL_.global[csf_ke]||(external_STORYBOOK_MODULE_GLOBAL_.global[csf_ke]=new csf_Pe),external_STORYBOOK_MODULE_GLOBAL_.global[csf_ke]}n(csf_Jr,"getAddonsStore");var Oe=csf_Jr(),csf_Ie=class Ie{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=n(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Oe.getChannel().on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDERED,this.renderListener)}removeRenderListeners(){Oe.getChannel().removeListener(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDERED,this.renderListener)}};n(csf_Ie,"HooksContext");var csf_de=csf_Ie;function csf_wt(e){let t=n((...r)=>{let{hooks:o}="function"==typeof r[0]?r[1]:r[0],i=o.currentPhase,s=o.currentHooks,a=o.nextHookIndex,p=o.currentDecoratorName;o.currentDecoratorName=e.name,o.prevMountedDecorators.has(e)?(o.currentPhase="UPDATE",o.currentHooks=o.hookListsMap.get(e)||[]):(o.currentPhase="MOUNT",o.currentHooks=[],o.hookListsMap.set(e,o.currentHooks),o.prevMountedDecorators.add(e)),o.nextHookIndex=0;let c=external_STORYBOOK_MODULE_GLOBAL_.global.STORYBOOK_HOOKS_CONTEXT;external_STORYBOOK_MODULE_GLOBAL_.global.STORYBOOK_HOOKS_CONTEXT=o;let l=e(...r);if(external_STORYBOOK_MODULE_GLOBAL_.global.STORYBOOK_HOOKS_CONTEXT=c,"UPDATE"===o.currentPhase&&null!=o.getNextHook())throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o.currentPhase=i,o.currentHooks=s,o.nextHookIndex=a,o.currentDecoratorName=p,l},"hookified");return t.originalFn=e,t}n(csf_wt,"hookify");var csf_Fe=0,csf_Et=n(e=>(t,r)=>{let o=e(csf_wt(t),r.map(i=>csf_wt(i)));return i=>{let{hooks:s}=i;s.prevMountedDecorators??=new Set,s.mountedDecorators=new Set([t,...r]),s.currentContext=i,s.hasUpdates=!1;let a=o(i);for(csf_Fe=1;s.hasUpdates;)if(s.hasUpdates=!1,s.currentEffects=[],a=o(i),(csf_Fe+=1)>25)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return s.addRenderListeners(),a}},"applyHooks");function csf_ee(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function U(e,t){let r={},o=Object.keys(e);for(let i=0;i<o.length;i++){let s=o[i],a=e[s];r[s]=t(a,s,e)}return r}function csf_Le(e,t){let r={},o=Object.keys(e);for(let i=0;i<o.length;i++){let s=o[i],a=e[s];t(a,s)&&(r[s]=a)}return r}function W(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Array.from("string"==typeof e?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var i=o.reduce(function(p,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?p.concat(l.map(function(y){var u,h;return null!==(h=null===(u=y.match(/[\t ]/g))||void 0===u?void 0:u.length)&&void 0!==h?h:0})):p},[]);if(i.length){var s=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");o=o.map(function(p){return p.replace(s,"\n")})}o[0]=o[0].replace(/^\r?\n/,"");var a=o[0];return t.forEach(function(p,c){var l=a.match(/(?:^|\n)( *)$/),y=l?l[1]:"",u=p;"string"==typeof p&&p.includes("\n")&&(u=String(p).split("\n").map(function(h,T){return 0===T?h:""+y+h}).join("\n")),a+=u+o[c+1]}),a}n(csf_ee,"isPlainObject"),n(U,"mapValues"),n(csf_Le,"pickBy"),n(W,"dedent");Symbol("incompatible"),Symbol("Deeply equal");var csf_De="UNTARGETED";function csf_Ct({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([o,i])=>{let{target:s=csf_De}=t[o]||{};r[s]=r[s]||{},r[s][o]=i}),r}n(csf_Ct,"groupArgsByTarget");var csf_vt=n((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:o}])=>(typeof o<"u"&&(t[r]=o),t),{}),"getValuesFromArgTypes"),csf_eo=n(e=>"string"==typeof e?{name:e}:e,"normalizeType"),csf_to=n(e=>"string"==typeof e?{type:e}:e,"normalizeControl"),csf_ro=n((e,t)=>{let{type:r,control:o,...i}=e,s={name:t,...i};return r&&(s.type=csf_eo(r)),o?s.control=csf_to(o):!1===o&&(s.control={disable:!0}),s},"normalizeInputType"),K=n(e=>U(e,csf_ro),"normalizeInputTypes"),b=n(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),csf_ao=W`
3
+ CSF .story annotations deprecated; annotate story functions directly:
4
+ - StoryFn.story.name => StoryFn.storyName
5
+ - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
6
+ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
7
+ `;function csf_e(e,t,r){let o=t,i="function"==typeof t?t:null,{story:s}=o;s&&(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.debug("deprecated story",s),(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(csf_ao));let a=cc(e),p="function"!=typeof o&&o.name||o.storyName||s?.name||a,c=[...b(o.decorators),...b(s?.decorators)],l={...s?.parameters,...o.parameters},y={...s?.args,...o.args},u={...s?.argTypes,...o.argTypes},h=[...b(o.loaders),...b(s?.loaders)],T=[...b(o.beforeEach),...b(s?.beforeEach)],R=[...b(o.afterEach),...b(s?.afterEach)],{render:P,play:L,tags:O=[],globals:F={}}=o;return{moduleExport:t,id:l.__id||lc(r.id,a),name:p,tags:O,decorators:c,parameters:l,args:y,argTypes:K(u),loaders:h,beforeEach:T,afterEach:R,globals:F,...P&&{render:P},...i&&{userStoryFn:i},...L&&{play:L}}}function csf_kt(e,t=e.title,r){let{id:o,argTypes:i}=e;return{id:csf_jn(o||t),...e,title:t,...i&&{argTypes:K(i)},parameters:{fileName:r,...e.parameters}}}function csf_Ot(e){return null!=e&&csf_lo(e).includes("mount")}function csf_lo(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=csf_Pt(t[1]);if(!r.length)return[];let o=r[0];return o.startsWith("{")&&o.endsWith("}")?csf_Pt(o.slice(1,-1).replace(/\s/g,"")).map(s=>s.replace(/:.*|=.*/g,"")):[]}function csf_Pt(e){let t=[],r=[],o=0;for(let s=0;s<e.length;s++)if("{"===e[s]||"["===e[s])r.push("{"===e[s]?"}":"]");else if(e[s]===r[r.length-1])r.pop();else if(!r.length&&","===e[s]){let a=e.substring(o,s).trim();a&&t.push(a),o=s+1}let i=e.substring(o).trim();return i&&t.push(i),t}function csf_Mt(e,t,r){let o=r(e);return i=>t(o,i)}function csf_$t({componentId:e,title:t,kind:r,id:o,name:i,story:s,parameters:a,initialArgs:p,argTypes:c,...l}={}){return l}function csf_He(e,t){let r={},o=n(s=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...csf_$t(a)},s(r.value)},"bindWithContext"),i=t.reduce((s,a)=>csf_Mt(s,a,o),e);return s=>(r.value=s,i(s))}n(csf_e,"normalizeStory"),n(csf_kt,"normalizeComponentAnnotations"),n(csf_Ot,"mountDestructured"),n(csf_lo,"getUsedProps"),n(csf_Pt,"splitByComma"),n(csf_Mt,"decorateStory"),n(csf_$t,"sanitizeStoryContextUpdate"),n(csf_He,"defaultDecorateStory");var csf_D=n((...e)=>{let t={},r=e.filter(Boolean),o=r.reduce((i,s)=>(Object.entries(s).forEach(([a,p])=>{let c=i[a];Array.isArray(p)||typeof c>"u"?i[a]=p:csf_ee(p)&&csf_ee(c)?t[a]=!0:typeof p<"u"&&(i[a]=p)}),i),{});return Object.keys(t).forEach(i=>{let s=r.filter(Boolean).map(a=>a[i]).filter(a=>typeof a<"u");s.every(a=>csf_ee(a))?o[i]=csf_D(...s):o[i]=s[s.length-1]}),o},"combineParameters");function csf_Ne(e,t,r){let{moduleExport:o,id:i,name:s}=e||{},a=csf_go(e,t,r),p=n(async w=>{let d={};for(let m of[b(r.loaders),b(t.loaders),b(e.loaders)]){if(w.abortSignal.aborted)return d;let f=await Promise.all(m.map(x=>x(w)));Object.assign(d,...f)}return d},"applyLoaders"),c=n(async w=>{let d=new Array;for(let m of[...b(r.beforeEach),...b(t.beforeEach),...b(e.beforeEach)]){if(w.abortSignal.aborted)return d;let f=await m(w);f&&d.push(f)}return d},"applyBeforeEach"),l=n(async w=>{let d=[...b(r.afterEach),...b(t.afterEach),...b(e.afterEach)].reverse();for(let m of d){if(w.abortSignal.aborted)return;await m(w)}},"applyAfterEach"),y=n(w=>w.originalStoryFn(w.args,w),"undecoratedStoryFn"),{applyDecorators:u=csf_He,runStep:h}=r,T=[...b(e?.decorators),...b(t?.decorators),...b(r?.decorators)],R=e?.userStoryFn||e?.render||t.render||r.render,P=csf_Et(u)(y,T),L=n(w=>P(w),"unboundStoryFn"),O=e?.play??t?.play,F=csf_Ot(O);if(!R&&!F)throw new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.NoRenderFunctionError({id:i});let A=n(w=>async()=>(await w.renderToCanvas(),w.canvas),"defaultMount");return{storyGlobals:{},...a,moduleExport:o,id:i,name:s,story:s,originalStoryFn:R,undecoratedStoryFn:y,unboundStoryFn:L,applyLoaders:p,applyBeforeEach:c,applyAfterEach:l,playFunction:O,runStep:h,mount:e.mount??t.mount??r.mount??A,testingLibraryRender:r.testingLibraryRender,renderToCanvas:r.renderToCanvas,usesMount:F}}function csf_go(e,t,r){let i=!0===external_STORYBOOK_MODULE_GLOBAL_.global.DOCS_OPTIONS?.autodocs?["autodocs"]:[],s=uc("dev","test",...i,...r.tags??[],...t.tags??[],...e?.tags??[]),a=csf_D(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:p=[],argsEnhancers:c=[]}=r,l=csf_D(r.argTypes,t.argTypes,e?.argTypes);if(e){let O=e?.userStoryFn||e?.render||t.render||r.render;a.__isArgsStory=O&&O.length>0}let y={...r.args,...t.args,...e?.args},u={...t.globals,...e?.globals},h={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:s,parameters:a,initialArgs:y,argTypes:l,storyGlobals:u};h.argTypes=p.reduce((O,F)=>F({...h,argTypes:O}),h.argTypes);let T={...y};h.initialArgs=[...c].reduce((O,F)=>({...O,...F({...h,initialArgs:O})}),T);let{name:R,story:P,...L}=h;return L}function csf_Ft(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(external_STORYBOOK_MODULE_GLOBAL_.global.FEATURES?.argTypeTargetsV7){let s=csf_Ct(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[csf_De]||{}}}let o=Object.entries(r.args).reduce((s,[a,p])=>{if(!r.argTypes[a]?.mapping)return s[a]=p,s;let c=n(l=>{let y=r.argTypes[a].mapping;return y&&l in y?y[l]:l},"mappingFn");return s[a]=Array.isArray(p)?p.map(c):c(p),s},{}),i=Object.entries(o).reduce((s,[a,p])=>{let c=r.argTypes[a]||{};return csf_Xr(c,o,r.globals)&&(s[a]=p),s},{});return{...r,unmappedArgs:t,args:i}}n(csf_Ne,"prepareStory"),n(csf_go,"preparePartialAnnotations"),n(csf_Ft,"prepareContext");var csf_je=n((e,t,r)=>{let o=typeof e;switch(o){case"boolean":case"string":case"number":case"function":case"symbol":return{name:o}}return e?r.has(e)?(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(W`
8
+ We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
9
+
10
+ Consider using the mapping feature or fully custom args:
11
+ - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
12
+ - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
13
+ `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?csf_je(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:U(e,s=>csf_je(s,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),csf_Be=n(e=>{let{id:t,argTypes:r={},initialArgs:o={}}=e,i=U(o,(a,p)=>({name:p,type:csf_je(a,`${t}.${p}`,new Set)})),s=U(r,(a,p)=>({name:p}));return csf_D(i,s,r)},"inferArgTypes");csf_Be.secondPass=!0;var csf_It=n((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),csf_ze=n((e,t,r)=>t||r?e&&csf_Le(e,(o,i)=>{let s=o.name||i.toString();return!(t&&!csf_It(s,t)||r&&csf_It(s,r))}):e,"filterArgTypes"),csf_bo=n((e,t,r)=>{let{type:o,options:i}=e;if(o){if(r.color&&r.color.test(t)){let s=o.name;if("string"===s)return{control:{type:"color"}};"enum"!==s&&external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Addon controls: Control of type color only supports string, received "${s}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(o.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:s}=o;return{control:{type:s?.length<=5?"radio":"select"},options:s}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}},"inferControl"),csf_me=n(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:o=null,exclude:i=null,matchers:s={}}={}}}=e;if(!r)return t;let a=csf_ze(t,o,i),p=U(a,(c,l)=>c?.type&&csf_bo(c,l.toString(),s));return csf_D(p,a)},"inferControls");function csf_te({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:o,loaders:i,beforeEach:s,afterEach:a,initialGlobals:p,...c}){return{...e&&{argTypes:K(e)},...t&&{globalTypes:K(t)},decorators:b(o),loaders:b(i),beforeEach:b(s),afterEach:b(a),argTypesEnhancers:[...r||[],csf_Be,csf_me],initialGlobals:p,...c}}csf_me.secondPass=!0,n(csf_te,"normalizeProjectAnnotations");var csf_Lt=n(e=>async()=>{let t=[];for(let r of e){let o=await r();o&&t.unshift(o)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function csf_Ue(e){return async(t,r,o)=>{await e.reduceRight((s,a)=>async()=>a(t,s,o),async()=>r(o))()}}function oe(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function Y(e,t,r={}){return oe(e,t).reduce((o,i)=>{let s=b(i);return r.reverseFileOrder?[...s,...o]:[...o,...s]},[])}function ue(e,t){return Object.assign({},...oe(e,t))}function re(e,t){return oe(e,t).pop()}function csf_ne(e){let t=Y(e,"argTypesEnhancers"),r=oe(e,"runStep"),o=Y(e,"beforeAll");return{parameters:csf_D(...oe(e,"parameters")),decorators:Y(e,"decorators",{reverseFileOrder:!external_STORYBOOK_MODULE_GLOBAL_.global.FEATURES?.legacyDecoratorFileOrder}),args:ue(e,"args"),argsEnhancers:Y(e,"argsEnhancers"),argTypes:ue(e,"argTypes"),argTypesEnhancers:[...t.filter(i=>!i.secondPass),...t.filter(i=>i.secondPass)],initialGlobals:ue(e,"initialGlobals"),globalTypes:ue(e,"globalTypes"),loaders:Y(e,"loaders"),beforeAll:csf_Lt(o),beforeEach:Y(e,"beforeEach"),afterEach:Y(e,"afterEach"),render:re(e,"render"),renderToCanvas:re(e,"renderToCanvas"),applyDecorators:re(e,"applyDecorators"),runStep:csf_Ue(r),tags:Y(e,"tags"),mount:re(e,"mount"),testingLibraryRender:re(e,"testingLibraryRender")}}function Dt(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function csf_t(e=!0){if(!("document"in globalThis)||!("createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent="*, *:before, *:after {\n animation: none !important;\n }",document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {\n animation-delay: 0s !important;\n animation-direction: ${e?"reverse":"normal"} !important;\n animation-play-state: paused !important;\n transition: none !important;\n }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function csf_Ht(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let o=[globalThis.document,...csf_Nt(globalThis.document)],i=n(async()=>{if(t||e?.aborted)return;let s=o.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>"running"===a.playState&&!csf_So(a));s.length>0&&(await Promise.all(s.map(a=>a.finished)),await i())},"checkAnimationsFinished");i().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function csf_Nt(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...csf_Nt(r.shadowRoot)),t),[])}function csf_So(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return"infinite"===t.animationIterationCount.split(", ")[r]}return!1}n(csf_Ue,"composeStepRunners"),n(oe,"getField"),n(Y,"getArrayField"),n(ue,"getObjectField"),n(re,"getSingletonField"),n(csf_ne,"composeConfigs"),n(Dt,"isTestEnvironment"),n(csf_t,"pauseAnimations"),n(csf_Ht,"waitForAnimations"),n(csf_Nt,"getShadowRoots"),n(csf_So,"isInfiniteAnimation");var csf_Ge=class Ge{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};n(csf_Ge,"ReporterAPI");var csf_fe=csf_Ge,V=[];function csf_We(e,t,r,o,i){if(void 0===e)throw new Error("Expected a story but received undefined.");t.title=t.title??"ComposedStory";let R,s=csf_kt(t),a=i||e.storyName||e.story?.name||e.name||"Unnamed Story",p=csf_e(a,e,s),c=csf_te(csf_ne([o??globalThis.globalProjectAnnotations??{},r??{}])),l=csf_Ne(p,s,c),u={...csf_vt(c.globalTypes),...c.initialGlobals,...l.storyGlobals},h=new csf_fe,T=n(()=>{let A=csf_Ft({hooks:new csf_de,globals:u,args:{...l.initialArgs},viewMode:"story",reporting:h,loaded:{},abortSignal:(new AbortController).signal,step:n((S,v)=>l.runStep(S,v,A),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return A.parameters.__isPortableStory=!0,A.context=A,l.renderToCanvas&&(A.renderToCanvas=async()=>{let S=await(l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:n(()=>{},"showMain"),showError:n(v=>{throw new Error(`${v.title}\n${v.description}`)},"showError"),showException:n(v=>{throw v},"showException"),forceRemount:!0,storyContext:A,storyFn:n(()=>l.unboundStoryFn(A),"storyFn"),unboundStoryFn:l.unboundStoryFn},A.canvasElement));S&&V.push(S)}),A.mount=l.mount(A),A},"initializeContext"),P=n(async A=>{let S=T();return S.canvasElement??=globalThis?.document?.body,R&&(S.loaded=R.loaded),Object.assign(S,A),l.playFunction(S)},"play"),L=n(A=>{let S=T();return Object.assign(S,A),csf_Eo(l,S)},"run"),O=l.playFunction?P:void 0;return Object.assign(n(function(S){let v=T();return R&&(v.loaded=R.loaded),v.args={...v.initialArgs,...S},l.unboundStoryFn(v)},"storyFn"),{id:l.id,storyName:a,load:n(async()=>{for(let S of[...V].reverse())await S();V.length=0;let A=T();A.loaded=await l.applyLoaders(A),V.push(...(await l.applyBeforeEach(A)).filter(Boolean)),R=A},"load"),globals:u,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:O,run:L,reporting:h,tags:l.tags})}async function csf_Eo(e,t){for(let s of[...V].reverse())await s();if(V.length=0,!t.canvasElement){let s=document.createElement("div");globalThis?.document?.body?.appendChild(s),t.canvasElement=s,V.push(()=>{globalThis?.document?.body?.contains(s)&&globalThis?.document?.body?.removeChild(s)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;V.push(...(await e.applyBeforeEach(t)).filter(Boolean));let i,r=e.playFunction,o=e.usesMount;o||await t.mount(),t.abortSignal.aborted||(r&&(o||(t.mount=async()=>{throw new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.MountMustBeDestructuredError({playFunction:r.toString()})}),await r(t)),Dt()?i=csf_t():await csf_Ht(t.abortSignal),await e.applyAfterEach(t),await(i?.()))}n(csf_We,"composeStory"),n(csf_Eo,"runStory");var csf_Ye="Invariant failed";function csf_ye(e,t){if(!e){false;var r="function"==typeof t?t():t,o=r?"".concat(csf_Ye,": ").concat(r):csf_Ye;throw new Error(o)}}n(csf_ye,"invariant");var Ke={};csf_xt(Ke,{argsEnhancers:()=>csf_Mo});var csf_Ve="storybook/actions",csf_jt=`${csf_Ve}/action-event`,csf_Bt={depth:10,clearOnStoryChange:!0,limit:50},csf_Ut=n((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:csf_Ut(r,t)},"findProto"),csf_Po=n(e=>!("object"!=typeof e||!e||!csf_Ut(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))||"function"!=typeof e.persist),"isReactSyntheticEvent"),csf_Oo=n(e=>{if(csf_Po(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),o=r?.value;return"object"==typeof o&&"Window"===o?.constructor.name&&Object.defineProperty(t,"view",{...r,value:Object.create(o.constructor.prototype)}),t}return e},"serializeArg");function csf_ie(e,t={}){let r={...csf_Bt,...t},o=n(function(...s){if(t.implicit){let T=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(R=>"playing"===R.phase||"rendering"===R.phase);if(T){let R=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,P=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:T.phase,name:e,deprecated:R});if(!R)throw P;console.warn(P)}}let a=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),p=Date.now().toString(36)+Math.random().toString(36).substring(2),l=s.map(csf_Oo),y=s.length>1?l:l[0],u={id:p,count:0,data:{name:e,args:y},options:{...r,maxDepth:5+(r.depth||3)}};a.emit(csf_jt,u)},"actionHandler");return o.isAction=!0,o.implicit=t.implicit,o}n(csf_ie,"action");var csf_Gt=n((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),csf_Wt=n(e=>{let{initialArgs:t,argTypes:r,id:o,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let s=new RegExp(i.argTypesRegex);return Object.entries(r).filter(([p])=>!!s.test(p)).reduce((p,[c,l])=>(csf_Gt(c,t)&&(p[c]=csf_ie(c,{implicit:!0,id:o})),p),{})},"inferActionsFromArgTypesRegex"),csf_Yt=n(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:o}}=e;return o?.disable||!r?{}:Object.entries(r).filter(([s,a])=>!!a.action).reduce((s,[a,p])=>(csf_Gt(a,t)&&(s[a]=csf_ie("string"==typeof p.action?p.action:a)),s),{})},"addActionsFromArgTypes"),csf_Mo=[csf_Yt,csf_Wt],csf_qe={};csf_xt(csf_qe,{loaders:()=>csf_Io});var csf_Vt=!1,csf_Fo=n(e=>{let{parameters:t}=e;t?.actions?.disable||csf_Vt||((0,external_STORYBOOK_MODULE_TEST_.onMockCall)((r,o)=>{let i=r.getMockName();"spy"!==i&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>i.startsWith(s)))&&csf_ie(i)(o)}),csf_Vt=!0)},"logActionsWhenMockCalled"),csf_Io=[csf_Fo],csf_Xe=n(()=>({...Ke,...csf_qe}),"default"),Z="backgrounds",csf_Kt={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:N}=globalThis,csf_qt=n(()=>!!globalThis?.matchMedia&&!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches,"isReduceMotionEnabled"),csf_Ze=n(e=>{(Array.isArray(e)?e:[e]).forEach(csf_o)},"clearStyles"),csf_o=n(e=>{if(!N)return;let t=N.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),csf_Xt=n((e,t)=>{if(!N)return;let r=N.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let o=N.createElement("style");o.setAttribute("id",e),o.innerHTML=t,N.head.appendChild(o)}},"addGridStyle"),csf_Zt=n((e,t,r)=>{if(!N)return;let o=N.getElementById(e);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let i=N.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let s="addon-backgrounds-grid"+(r?`-docs-${r}`:""),a=N.getElementById(s);a?a.parentElement?.insertBefore(i,a):N.head.appendChild(i)}},"addBackgroundStyle"),Ho={cellSize:100,cellAmount:10,opacity:.8},csf_er="addon-backgrounds-grid",csf_No=csf_qt()?"":"transition: background-color 0.3s;",csf_tr=n((e,t)=>{let{globals:r={},parameters:o={},viewMode:i,id:s}=t,{options:a=csf_Kt,disable:p,grid:c=Ho}=o[Z]||{},l=r[Z]||{},y="string"==typeof l?l:l?.value,u=y?a[y]:void 0,h="string"==typeof u?u:u?.value||"transparent",T="string"!=typeof l&&(l.grid||!1),R=!!u&&!p,P="docs"===i?`#anchor--${s} .docs-story`:".sb-show-main",L="docs"===i?`#anchor--${s} .docs-story`:".sb-show-main",O=void 0===o.layout||"padded"===o.layout,F="docs"===i?20:O?16:0,{cellAmount:A,cellSize:S,opacity:v,offsetX:w=F,offsetY:d=F}=c,m="docs"===i?`addon-backgrounds-docs-${s}`:"addon-backgrounds-color",f="docs"===i?s:null;(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)(()=>{R?csf_Zt(m,`\n ${P} {\n background: ${h} !important;\n ${csf_No}\n }`,f):csf_Ze(m)},[P,m,f,R,h]);let x="docs"===i?`${csf_er}-docs-${s}`:`${csf_er}`;return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)(()=>{if(!T)return void csf_Ze(x);let g=[`${S*A}px ${S*A}px`,`${S*A}px ${S*A}px`,`${S}px ${S}px`,`${S}px ${S}px`].join(", ");csf_Xt(x,`\n ${L} {\n background-size: ${g} !important;\n background-position: ${w}px ${d}px, ${w}px ${d}px, ${w}px ${d}px, ${w}px ${d}px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ${v}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${v}) 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ${v/2}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${v/2}) 1px, transparent 1px) !important;\n }\n `)},[A,S,L,x,T,w,d,v]),e()},"withBackgroundAndGrid"),csf_Bo=globalThis.FEATURES?.backgrounds?[csf_tr]:[],csf_zo={[Z]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},csf_Uo={[Z]:{value:void 0,grid:!1}},csf_Je=n(()=>({decorators:csf_Bo,parameters:csf_zo,initialGlobals:csf_Uo}),"default"),{step:csf_Yo}=Qs({step:n(async(e,t,r)=>t(r),"step")},{intercept:!0}),csf_Qe=n(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:csf_Yo}),"default"),csf_ge="storybook/highlight",csf_rr=`${csf_ge}/add`,csf_or=`${csf_ge}/remove`,csf_nr=`${csf_ge}/reset`,ir=`${csf_ge}/scroll-into-view`,csf_tt={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},csf_Vo="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),csf_M=n((e,t={},r)=>{let o=csf_Vo.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([i,s])=>{/[A-Z]/.test(i)?("onClick"===i&&(o.addEventListener("click",s),o.addEventListener("keydown",a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),s())})),"onMouseEnter"===i&&o.addEventListener("mouseenter",s),"onMouseLeave"===i&&o.addEventListener("mouseleave",s)):o.setAttribute(i,s)}),r?.forEach(i=>{if(null!=i&&!1!==i)try{o.appendChild(i)}catch{o.appendChild(document.createTextNode(String(i)))}}),o},"createElement"),csf_ae=n(e=>csf_tt[e]&&csf_M("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},csf_tt[e].map(t=>csf_M("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),csf_sr=n(e=>{if("elements"in e){let{elements:o,color:i,style:s}=e;return{id:void 0,priority:0,selectors:o,styles:{outline:`2px ${s} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),csf_Ko=n(e=>e instanceof Function,"isFunction"),se=new Map,q=new Map,he=new Map,csf_z=n(e=>{let t=Symbol();return q.set(t,[]),se.set(t,e),{get:n(()=>se.get(t),"get"),set:n(a=>{let p=se.get(t),c=csf_Ko(a)?a(p):a;c!==p&&(se.set(t,c),q.get(t)?.forEach(l=>{he.get(l)?.(),he.set(l,l(c))}))},"set"),subscribe:n(a=>(q.get(t)?.push(a),()=>{let p=q.get(t);p&&q.set(t,p.filter(c=>c!==a))}),"subscribe"),teardown:n(()=>{q.get(t)?.forEach(a=>{he.get(a)?.(),he.delete(a)}),q.delete(t),se.delete(t)},"teardown")}},"useStore"),csf_rt=n(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let o of e){let{priority:i=0}=o;for(let s of o.selectors){let a=[...document.querySelectorAll(`:is(${s}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(s)||[]];for(let p of a){let c=r.get(p);(!c||c.priority<=i)&&r.set(p,{...o,priority:i,selectors:Array.from(new Set((c?.selectors||[]).concat(s)))})}}}return r},"mapElements"),ar=n(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:o,hoverStyles:i,focusStyles:s,menu:a}])=>{let{top:p,left:c,width:l,height:y}=t.getBoundingClientRect(),{position:u}=getComputedStyle(t);return{element:t,selectors:r,styles:o,hoverStyles:i,focusStyles:s,menu:a,top:"fixed"===u?p:p+window.scrollY,left:"fixed"===u?c:c+window.scrollX,width:l,height:y}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),csf_ot=n((e,t)=>{let r=e.getBoundingClientRect(),{x:o,y:i}=t;return r?.top&&r?.left&&o>=r.left&&o<=r.left+r.width&&i>=r.top&&i<=r.top+r.height},"isOverMenu"),csf_nt=n((e,t,r)=>{if(!t||!r)return!1;let{left:o,top:i,width:s,height:a}=e;a<28&&(i-=Math.round((28-a)/2),a=28),s<28&&(o-=Math.round((28-s)/2),s=28),"fixed"===t.style.position&&(o+=window.scrollX,i+=window.scrollY);let{x:p,y:c}=r;return p>=o&&p<=o+s&&c>=i&&c<=i+a},"isTargeted"),csf_pr=n((e,t,r={})=>{let{x:o,y:i}=t,{margin:s=5,topOffset:a=0,centered:p=!1}=r,{scrollX:c,scrollY:l,innerHeight:y,innerWidth:u}=window,h=Math.min("fixed"===e.style.position?i-l:i,y-e.clientHeight-s-a+l),T=p?e.clientWidth/2:0,R="fixed"===e.style.position?Math.max(Math.min(o-c,u-T-s),T+s):Math.max(Math.min(o,u-T-s+c),T+s+c);Object.assign(e.style,{...R!==o&&{left:`${R}px`},...h!==i&&{top:`${h}px`}})},"keepInViewport"),csf_it=n(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),csf_lr=n(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),csf_cr=n(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),C="storybook-highlights-menu",csf_dr="storybook-highlights-root",csf_mr=n(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=csf_z([]),o=csf_z(new Map),i=csf_z([]),s=csf_z(),a=csf_z(),p=csf_z([]),c=csf_z([]),l=csf_z(),y=csf_z(),u=t.getElementById(csf_dr);r.subscribe(()=>{u||(u=csf_M("div",{id:csf_dr}),t.body.appendChild(u))}),r.subscribe(d=>{let m=t.getElementById("storybook-root");if(!m)return;o.set(csf_rt(d));let f=new MutationObserver(()=>o.set(csf_rt(d)));return f.observe(m,{subtree:!0,childList:!0}),()=>{f.disconnect()}}),o.subscribe(d=>{let m=n(()=>requestAnimationFrame(()=>i.set(ar(d))),"updateBoxes"),f=new ResizeObserver(m);f.observe(t.body),Array.from(d.keys()).forEach(g=>f.observe(g));let x=Array.from(t.body.querySelectorAll("*")).filter(g=>{let{overflow:E,overflowX:I,overflowY:k}=window.getComputedStyle(g);return["auto","scroll"].some(H=>[E,I,k].includes(H))});return x.forEach(g=>g.addEventListener("scroll",m)),()=>{f.disconnect(),x.forEach(g=>g.removeEventListener("scroll",m))}}),o.subscribe(d=>{let m=Array.from(d.keys()).filter(({style:x})=>"sticky"===x.position),f=n(()=>requestAnimationFrame(()=>{i.set(x=>x.map(g=>{if(m.includes(g.element)){let{top:E,left:I}=g.element.getBoundingClientRect();return{...g,top:E+window.scrollY,left:I+window.scrollX}}return g}))}),"updateBoxes");return t.addEventListener("scroll",f),()=>t.removeEventListener("scroll",f)}),o.subscribe(d=>{p.set(m=>m.filter(({element:f})=>d.has(f)))}),p.subscribe(d=>{d.length?(y.set(m=>d.some(f=>f.element===m?.element)?m:void 0),l.set(m=>d.some(f=>f.element===m?.element)?m:void 0)):(y.set(void 0),l.set(void 0),s.set(void 0))});let h=new Map(new Map);r.subscribe(d=>{d.forEach(({keyframes:m})=>{if(m){let f=h.get(m);f||(f=t.createElement("style"),f.setAttribute("data-highlight","keyframes"),h.set(m,f),t.head.appendChild(f)),f.innerHTML=m}}),h.forEach((m,f)=>{d.some(x=>x.keyframes===f)||(m.remove(),h.delete(f))})});let T=new Map(new Map);i.subscribe(d=>{d.forEach(m=>{let f=T.get(m.element);if(u&&!f){let x={popover:"manual","data-highlight-dimensions":`w${m.width.toFixed(0)}h${m.height.toFixed(0)}`,"data-highlight-coordinates":`x${m.left.toFixed(0)}y${m.top.toFixed(0)}`};f=u.appendChild(csf_M("div",x,[csf_M("div")])),T.set(m.element,f)}}),T.forEach((m,f)=>{d.some(({element:x})=>x===f)||(m.remove(),T.delete(f))})}),i.subscribe(d=>{let m=d.filter(x=>x.menu);if(!m.length)return;let f=n(x=>{requestAnimationFrame(()=>{let g=t.getElementById(C),E={x:x.pageX,y:x.pageY};if(g&&!csf_ot(g,E)){let I=m.filter(k=>{let H=T.get(k.element);return csf_nt(k,H,E)});s.set(I.length?E:void 0),p.set(I)}})},"onClick");return t.addEventListener("click",f),()=>t.removeEventListener("click",f)});let R=n(()=>{let d=t.getElementById(C),m=a.get();!m||d&&csf_ot(d,m)||c.set(f=>{let x=i.get().filter(k=>{let H=T.get(k.element);return csf_nt(k,H,m)}),g=f.filter(k=>x.includes(k)),E=x.filter(k=>!f.includes(k)),I=f.length-g.length;return E.length||I?[...g,...E]:f})},"updateHovered");a.subscribe(R),i.subscribe(R);let P=n(()=>{let d=y.get(),m=d?[d]:p.get(),f=1===m.length?m[0]:l.get(),x=void 0!==s.get();i.get().forEach(g=>{let E=T.get(g.element);if(E){let I=f===g,k=x?f?I:m.includes(g):c.get()?.includes(g);Object.assign(E.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...g.styles,...k?g.hoverStyles:{},...I?g.focusStyles:{},position:"fixed"===getComputedStyle(g.element).position?"fixed":"absolute",zIndex:2147483637,top:`${g.top}px`,left:`${g.left}px`,width:`${g.width}px`,height:`${g.height}px`,margin:0,padding:0,cursor:g.menu&&k?"pointer":"default",pointerEvents:g.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(E.children[0].style,{width:"100%",height:"100%",minHeight:"28px",minWidth:"28px",boxSizing:"content-box",padding:E.style.outlineWidth||"0px"}),csf_it(E)}})},"updateBoxStyles");i.subscribe(P),p.subscribe(P),c.subscribe(P),l.subscribe(P),y.subscribe(P);let L=n(()=>{if(!u)return;let d=t.getElementById(C);if(d)d.innerHTML="";else{let g={id:C,popover:"manual"};d=u.appendChild(csf_M("div",g)),u.appendChild(csf_M("style",{},[`\n #${C} {\n position: absolute;\n z-index: 2147483647;\n width: 300px;\n padding: 0px;\n margin: 15px 0 0 0;\n transform: translateX(-50%);\n font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 12px;\n background: white;\n border: none;\n border-radius: 6px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);\n color: #2E3438;\n }\n #${C} ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n #${C} > ul {\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n }\n #${C} li {\n padding: 0 4px;\n margin: 0;\n }\n #${C} li > :not(ul) {\n display: flex;\n padding: 8px;\n margin: 0;\n align-items: center;\n gap: 8px;\n border-radius: 4px;\n }\n #${C} button {\n width: 100%;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n font-family: inherit;\n font-size: inherit;\n }\n #${C} button:focus-visible {\n outline-color: #029CFD;\n }\n #${C} button:hover {\n background: rgba(2, 156, 253, 0.07);\n color: #029CFD;\n cursor: pointer;\n }\n #${C} li code {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: 16px;\n font-size: 11px;\n }\n #${C} li svg {\n flex-shrink: 0;\n margin: 1px;\n color: #73828C;\n }\n #${C} li > button:hover svg, #${C} li > button:focus-visible svg {\n color: #029CFD;\n }\n #${C} .element-list li svg {\n display: none;\n }\n #${C} li.selectable svg, #${C} li.selected svg {\n display: block;\n }\n #${C} .menu-list {\n border-top: 1px solid rgba(38, 85, 115, 0.15);\n }\n #${C} .menu-list > li:not(:last-child) {\n padding-bottom: 4px;\n margin-bottom: 4px;\n border-bottom: 1px solid rgba(38, 85, 115, 0.15);\n }\n #${C} .menu-items, #${C} .menu-items li {\n padding: 0;\n }\n #${C} .menu-item {\n display: flex;\n }\n #${C} .menu-item-content {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n }\n `]))}let m=y.get(),f=m?[m]:p.get();if(f.length&&(d.style.position="fixed"===getComputedStyle(f[0].element).position?"fixed":"absolute",d.appendChild(csf_M("ul",{class:"element-list"},f.map(g=>{let E=f.length>1&&!!g.menu?.some(H=>H.some(X=>!X.selectors||X.selectors.some(le=>g.selectors.includes(le)))),k=E||m;return csf_M("li",E?{class:"selectable",onClick:n(()=>y.set(g),"onClick"),onMouseEnter:n(()=>l.set(g),"onMouseEnter"),onMouseLeave:n(()=>l.set(void 0),"onMouseLeave")}:m?{class:"selected",onClick:n(()=>y.set(void 0),"onClick")}:{},[csf_M(k?"button":"div",k?{type:"button"}:{},[m?csf_ae("chevronLeft"):null,csf_M("code",{},[g.element.outerHTML]),E?csf_ae("chevronRight"):null])])})))),y.get()||1===p.get().length){let g=y.get()||p.get()[0],E=g.menu?.filter(I=>I.some(k=>!k.selectors||k.selectors.some(H=>g.selectors.includes(H))));E?.length&&d.appendChild(csf_M("ul",{class:"menu-list"},E.map(I=>csf_M("li",{},[csf_M("ul",{class:"menu-items"},I.map(({id:k,title:H,description:X,iconLeft:le,iconRight:gt,clickEvent:ht})=>{let we=ht&&(()=>e.emit(ht,k,csf_cr(g)));return csf_M("li",{},[csf_M(we?"button":"div",we?{class:"menu-item",type:"button",onClick:we}:{class:"menu-item"},[le?csf_ae(le):null,csf_M("div",{class:"menu-item-content"},[csf_M(X?"strong":"span",{},[H]),X&&csf_M("span",{},[X])]),gt?csf_ae(gt):null])])}))]))))}let x=s.get();x?(Object.assign(d.style,{display:"block",left:`${"fixed"===d.style.position?x.x-window.scrollX:x.x}px`,top:`${"fixed"===d.style.position?x.y-window.scrollY:x.y}px`}),csf_it(d),requestAnimationFrame(()=>csf_pr(d,x,{topOffset:15,centered:!0}))):(csf_lr(d),Object.assign(d.style,{display:"none"}))},"renderMenu");p.subscribe(L),y.subscribe(L);let S,O=n(d=>{let m=csf_sr(d);r.set(f=>{let x=m.id?f.filter(g=>g.id!==m.id):f;return m.selectors?.length?[...x,m]:x})},"addHighlight"),F=n(d=>{d&&r.set(m=>m.filter(f=>f.id!==d))},"removeHighlight"),A=n(()=>{r.set([]),o.set(new Map),i.set([]),s.set(void 0),a.set(void 0),p.set([]),c.set([]),l.set(void 0),y.set(void 0)},"resetState"),v=n((d,m)=>{let f="scrollIntoView-highlight";clearTimeout(S),F(f);let x=t.querySelector(d);if(!x)return void console.warn(`Cannot scroll into view: ${d} not found`);x.scrollIntoView({behavior:"smooth",block:"center",...m});let g=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(E=>[...E,{id:f,priority:1e3,selectors:[d],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${g} 3s linear forwards`},keyframes:`@keyframes ${g} {\n 0% { outline: 2px solid #1EA7FD; }\n 20% { outline: 2px solid #1EA7FD00; }\n 40% { outline: 2px solid #1EA7FD; }\n 60% { outline: 2px solid #1EA7FD00; }\n 80% { outline: 2px solid #1EA7FD; }\n 100% { outline: 2px solid #1EA7FD00; }\n }`}]),S=setTimeout(()=>F(f),3500)},"scrollIntoView"),w=n(d=>{requestAnimationFrame(()=>a.set({x:d.pageX,y:d.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",w),e.on(csf_rr,O),e.on(csf_or,F),e.on(csf_nr,A),e.on(ir,v),e.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDER_PHASE_CHANGED,({newPhase:d})=>{"loading"===d&&A()})},"useHighlights");globalThis?.FEATURES?.highlight&&external_STORYBOOK_MODULE_PREVIEW_API_.addons?.ready&&external_STORYBOOK_MODULE_PREVIEW_API_.addons.ready().then(csf_mr);var csf_st=n(()=>({}),"default"),csf_fr="measureEnabled";function csf_yr(){let e=external_STORYBOOK_MODULE_GLOBAL_.global.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function csf_Jo(){let e=external_STORYBOOK_MODULE_GLOBAL_.global.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");csf_ye(null!=t);let{width:r,height:o}=csf_yr();return csf_at(e,t,{width:r,height:o}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",external_STORYBOOK_MODULE_GLOBAL_.global.document.body.appendChild(e),{canvas:e,context:t,width:r,height:o}}function csf_at(e,t,{width:r,height:o}){e.style.width=`${r}px`,e.style.height=`${o}px`;let i=external_STORYBOOK_MODULE_GLOBAL_.global.window.devicePixelRatio;e.width=Math.floor(r*i),e.height=Math.floor(o*i),t.scale(i,i)}n(csf_yr,"getDocumentWidthAndHeight"),n(csf_Jo,"createCanvas"),n(csf_at,"setCanvasWidthAndHeight");var $={};function csf_gr(){$.canvas||($=csf_Jo())}function csf_hr(){$.context&&$.context.clearRect(0,0,$.width??0,$.height??0)}function csf_xr(e){csf_hr(),e($.context)}function csf_br(){csf_ye($.canvas,"Canvas should exist in the state."),csf_ye($.context,"Context should exist in the state."),csf_at($.canvas,$.context,{width:0,height:0});let{width:e,height:t}=csf_yr();csf_at($.canvas,$.context,{width:e,height:t}),$.width=e,$.height=t}function csf_Tr(){$.canvas&&(csf_hr(),$.canvas.parentNode?.removeChild($.canvas),$={})}n(csf_gr,"init"),n(csf_hr,"clear"),n(csf_xr,"draw"),n(csf_br,"rescale"),n(csf_Tr,"destroy");var J={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"};function csf_Sr(e,{x:t,y:r,w:o,h:i,r:s}){t-=o/2,r-=i/2,o<2*s&&(s=o/2),i<2*s&&(s=i/2),e.beginPath(),e.moveTo(t+s,r),e.arcTo(t+o,r,t+o,r+i,s),e.arcTo(t+o,r+i,t,r+i,s),e.arcTo(t,r+i,t,r,s),e.arcTo(t,r,t+o,r,s),e.closePath()}function csf_Qo(e,{padding:t,border:r,width:o,height:i,top:s,left:a}){let p=o-r.left-r.right-t.left-t.right,c=i-t.top-t.bottom-r.top-r.bottom,l=a+r.left+t.left,y=s+r.top+t.top;return"top"===e?l+=p/2:"right"===e?(l+=p,y+=c/2):"bottom"===e?(l+=p/2,y+=c):"left"===e?y+=c/2:"center"===e&&(l+=p/2,y+=c/2),{x:l,y}}function csf_en(e,t,{margin:r,border:o,padding:i},s,a){let p=n(h=>0,"shift"),c=0,l=0,y=a?1:.5,u=a?2*s:0;return"padding"===e?p=n(h=>i[h]*y+u,"shift"):"border"===e?p=n(h=>i[h]+o[h]*y+u,"shift"):"margin"===e&&(p=n(h=>i[h]+o[h]+r[h]*y+u,"shift")),"top"===t?l=-p("top"):"right"===t?c=p("right"):"bottom"===t?l=p("bottom"):"left"===t&&(c=-p("left")),{offsetX:c,offsetY:l}}function csf_tn(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function csf_rn(e,t,r){return"top"===e?t.y=r.y-r.h-6:"right"===e?t.x=r.x+r.w/2+6+t.w/2:"bottom"===e?t.y=r.y+r.h+6:"left"===e&&(t.x=r.x-r.w/2-6-t.w/2),{x:t.x,y:t.y}}function csf_Ar(e,t,{x:r,y:o,w:i,h:s},a){return csf_Sr(e,{x:r,y:o,w:i,h:s,r:3}),e.fillStyle=`${J[t]}dd`,e.fill(),e.strokeStyle=J[t],e.stroke(),e.fillStyle=J.text,e.fillText(a,r,o),csf_Sr(e,{x:r,y:o,w:i,h:s,r:3}),e.fillStyle=`${J[t]}dd`,e.fill(),e.strokeStyle=J[t],e.stroke(),e.fillStyle=J.text,e.fillText(a,r,o),{x:r,y:o,w:i,h:s}}function csf_Rr(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),o=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent;return{w:r.width+12,h:o+12}}function csf_on(e,t,{type:r,position:o="center",text:i},s,a=!1){let{x:p,y:c}=csf_Qo(o,t),{offsetX:l,offsetY:y}=csf_en(r,o,t,7,a);p+=l,c+=y;let{w:u,h}=csf_Rr(e,i);if(s&&csf_tn({x:p,y:c,w:u,h},s)){let T=csf_rn(o,{x:p,y:c,w:u,h},s);p=T.x,c=T.y}return csf_Ar(e,r,{x:p,y:c,w:u,h},i)}function csf_nn(e,{w:t,h:r}){let o=.5*t+6,i=.5*r+6;return{offsetX:("left"===e.x?-1:1)*o,offsetY:("top"===e.y?-1:1)*i}}function csf_sn(e,t,{type:r,text:o}){let{floatingAlignment:i,extremities:s}=t,a=s[i.x],p=s[i.y],{w:c,h:l}=csf_Rr(e,o),{offsetX:y,offsetY:u}=csf_nn(i,{w:c,h:l});return a+=y,p+=u,csf_Ar(e,r,{x:a,y:p,w:c,h:l},o)}function csf_pe(e,t,r,o){let i=[];r.forEach((s,a)=>{let p=o&&"center"===s.position?csf_sn(e,t,s):csf_on(e,t,s,i[a-1],o);i[a]=p})}function csf_wr(e,t,r,o){let i=r.reduce((s,a)=>(Object.prototype.hasOwnProperty.call(s,a.position)||(s[a.position]=[]),s[a.position]?.push(a),s),{});i.top&&csf_pe(e,t,i.top,o),i.right&&csf_pe(e,t,i.right,o),i.bottom&&csf_pe(e,t,i.bottom,o),i.left&&csf_pe(e,t,i.left,o),i.center&&csf_pe(e,t,i.center,o)}n(csf_Sr,"roundedRect"),n(csf_Qo,"positionCoordinate"),n(csf_en,"offset"),n(csf_tn,"collide"),n(csf_rn,"overlapAdjustment"),n(csf_Ar,"textWithRect"),n(csf_Rr,"configureText"),n(csf_on,"drawLabel"),n(csf_nn,"floatingOffset"),n(csf_sn,"drawFloatingLabel"),n(csf_pe,"drawStack"),n(csf_wr,"labelStacks");var csf_Te_margin="#f6b26ba8",csf_Te_border="#ffe599a8",csf_Te_padding="#93c47d8c",csf_Te_content="#6fa8dca8";function _(e){return parseInt(e.replace("px",""),10)}function Q(e){return Number.isInteger(e)?e:e.toFixed(2)}function csf_pt(e){return e.filter(t=>0!==t.text&&"0"!==t.text)}function csf_an(e){let t_top=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,t_bottom=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY+external_STORYBOOK_MODULE_GLOBAL_.global.window.innerHeight,t_left=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX,t_right=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX+external_STORYBOOK_MODULE_GLOBAL_.global.window.innerWidth,r_top=Math.abs(t_top-e.top),r_bottom=Math.abs(t_bottom-e.bottom);return{x:Math.abs(t_left-e.left)>Math.abs(t_right-e.right)?"left":"right",y:r_top>r_bottom?"top":"bottom"}}function csf_pn(e){let t=external_STORYBOOK_MODULE_GLOBAL_.global.getComputedStyle(e),{top:r,left:o,right:i,bottom:s,width:a,height:p}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:y,marginRight:u,paddingTop:h,paddingBottom:T,paddingLeft:R,paddingRight:P,borderBottomWidth:L,borderTopWidth:O,borderLeftWidth:F,borderRightWidth:A}=t;r+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,o+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX,s+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,i+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX;let S={top:_(c),bottom:_(l),left:_(y),right:_(u)},v={top:_(h),bottom:_(T),left:_(R),right:_(P)},w={top:_(O),bottom:_(L),left:_(F),right:_(A)},d={top:r-S.top,bottom:s+S.bottom,left:o-S.left,right:i+S.right};return{margin:S,padding:v,border:w,top:r,left:o,bottom:s,right:i,width:a,height:p,extremities:d,floatingAlignment:csf_an(d)}}function csf_ln(e,{margin:t,width:r,height:o,top:i,left:s,bottom:a,right:p}){let c=o+t.bottom+t.top;return e.fillStyle=csf_Te_margin,e.fillRect(s,i-t.top,r,t.top),e.fillRect(p,i-t.top,t.right,c),e.fillRect(s,a,r,t.bottom),e.fillRect(s-t.left,i-t.top,t.left,c),csf_pt([{type:"margin",text:Q(t.top),position:"top"},{type:"margin",text:Q(t.right),position:"right"},{type:"margin",text:Q(t.bottom),position:"bottom"},{type:"margin",text:Q(t.left),position:"left"}])}function csf_cn(e,{padding:t,border:r,width:o,height:i,top:s,left:a,bottom:p,right:c}){let l=o-r.left-r.right,y=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=csf_Te_padding,e.fillRect(a+r.left,s+r.top,l,t.top),e.fillRect(c-t.right-r.right,s+t.top+r.top,t.right,y),e.fillRect(a+r.left,p-t.bottom-r.bottom,l,t.bottom),e.fillRect(a+r.left,s+t.top+r.top,t.left,y),csf_pt([{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}])}function csf_dn(e,{border:t,width:r,height:o,top:i,left:s,bottom:a,right:p}){let c=o-t.top-t.bottom;return e.fillStyle=csf_Te_border,e.fillRect(s,i,r,t.top),e.fillRect(s,a-t.bottom,r,t.bottom),e.fillRect(s,i+t.top,t.left,c),e.fillRect(p-t.right,i+t.top,t.right,c),csf_pt([{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}])}function csf_mn(e,{padding:t,border:r,width:o,height:i,top:s,left:a}){let p=o-r.left-r.right-t.left-t.right,c=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=csf_Te_content,e.fillRect(a+r.left+t.left,s+r.top+t.top,p,c),[{type:"content",position:"center",text:`${Q(p)} x ${Q(c)}`}]}function csf_un(e){return t=>{if(e&&t){let r=csf_pn(e),o=csf_ln(t,r),i=csf_cn(t,r),s=csf_dn(t,r);csf_wr(t,r,[...csf_mn(t,r),...i,...s,...o],r.width<=90||r.height<=30)}}}function csf_Cr(e){csf_xr(csf_un(e))}n(_,"pxToNumber"),n(Q,"round"),n(csf_pt,"filterZeroValues"),n(csf_an,"floatingAlignment"),n(csf_pn,"measureElement"),n(csf_ln,"drawMargin"),n(csf_cn,"drawPadding"),n(csf_dn,"drawBorder"),n(csf_mn,"drawContent"),n(csf_un,"drawBoxModel"),n(csf_Cr,"drawSelectedElement");var csf_vr=n((e,t)=>{let r=external_STORYBOOK_MODULE_GLOBAL_.global.document.elementFromPoint(e,t),o=n(s=>{if(s&&s.shadowRoot){let a=s.shadowRoot.elementFromPoint(e,t);return s.isEqualNode(a)?s:a.shadowRoot?o(a):a}return s},"crawlShadows");return o(r)||r},"deepElementFromPoint"),csf_Se={x:0,y:0};function csf_Or(e,t){csf_Cr(csf_vr(e,t))}n(csf_Or,"findAndDrawElement");var csf_Mr=n((e,t)=>{let{measureEnabled:r}=t.globals||{};return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)(()=>{if(typeof globalThis.document>"u")return;let o=n(i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),csf_Se.x=i.clientX,csf_Se.y=i.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",o),()=>{globalThis.document.removeEventListener("pointermove",o)}},[]),(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)(()=>{let o=n(s=>{window.requestAnimationFrame(()=>{s.stopPropagation(),csf_Or(s.clientX,s.clientY)})},"onPointerOver"),i=n(()=>{window.requestAnimationFrame(()=>{csf_br()})},"onResize");return"story"===t.viewMode&&r&&(globalThis.document.addEventListener("pointerover",o),csf_gr(),globalThis.window.addEventListener("resize",i),csf_Or(csf_Se.x,csf_Se.y)),()=>{globalThis.window.removeEventListener("resize",i),csf_Tr()}},[r,t.viewMode]),e()},"withMeasure"),csf_gn=globalThis.FEATURES?.measure?[csf_Mr]:[],csf_hn={[csf_fr]:!1},csf_lt=n(()=>({decorators:csf_gn,initialGlobals:csf_hn}),"default"),csf_Ae="outline",csf_ct=n(e=>{(Array.isArray(e)?e:[e]).forEach(csf_xn)},"clearStyles"),csf_xn=n(e=>{let t="string"==typeof e?e:e.join(""),r=external_STORYBOOK_MODULE_GLOBAL_.global.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),csf_$r=n((e,t)=>{let r=external_STORYBOOK_MODULE_GLOBAL_.global.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let o=external_STORYBOOK_MODULE_GLOBAL_.global.document.createElement("style");o.setAttribute("id",e),o.innerHTML=t,external_STORYBOOK_MODULE_GLOBAL_.global.document.head.appendChild(o)}},"addOutlineStyles");function csf_dt(e){return W`
14
+ ${e} body {
15
+ outline: 1px solid #2980b9 !important;
16
+ }
17
+
18
+ ${e} article {
19
+ outline: 1px solid #3498db !important;
20
+ }
21
+
22
+ ${e} nav {
23
+ outline: 1px solid #0088c3 !important;
24
+ }
25
+
26
+ ${e} aside {
27
+ outline: 1px solid #33a0ce !important;
28
+ }
29
+
30
+ ${e} section {
31
+ outline: 1px solid #66b8da !important;
32
+ }
33
+
34
+ ${e} header {
35
+ outline: 1px solid #99cfe7 !important;
36
+ }
37
+
38
+ ${e} footer {
39
+ outline: 1px solid #cce7f3 !important;
40
+ }
41
+
42
+ ${e} h1 {
43
+ outline: 1px solid #162544 !important;
44
+ }
45
+
46
+ ${e} h2 {
47
+ outline: 1px solid #314e6e !important;
48
+ }
49
+
50
+ ${e} h3 {
51
+ outline: 1px solid #3e5e85 !important;
52
+ }
53
+
54
+ ${e} h4 {
55
+ outline: 1px solid #449baf !important;
56
+ }
57
+
58
+ ${e} h5 {
59
+ outline: 1px solid #c7d1cb !important;
60
+ }
61
+
62
+ ${e} h6 {
63
+ outline: 1px solid #4371d0 !important;
64
+ }
65
+
66
+ ${e} main {
67
+ outline: 1px solid #2f4f90 !important;
68
+ }
69
+
70
+ ${e} address {
71
+ outline: 1px solid #1a2c51 !important;
72
+ }
73
+
74
+ ${e} div {
75
+ outline: 1px solid #036cdb !important;
76
+ }
77
+
78
+ ${e} p {
79
+ outline: 1px solid #ac050b !important;
80
+ }
81
+
82
+ ${e} hr {
83
+ outline: 1px solid #ff063f !important;
84
+ }
85
+
86
+ ${e} pre {
87
+ outline: 1px solid #850440 !important;
88
+ }
89
+
90
+ ${e} blockquote {
91
+ outline: 1px solid #f1b8e7 !important;
92
+ }
93
+
94
+ ${e} ol {
95
+ outline: 1px solid #ff050c !important;
96
+ }
97
+
98
+ ${e} ul {
99
+ outline: 1px solid #d90416 !important;
100
+ }
101
+
102
+ ${e} li {
103
+ outline: 1px solid #d90416 !important;
104
+ }
105
+
106
+ ${e} dl {
107
+ outline: 1px solid #fd3427 !important;
108
+ }
109
+
110
+ ${e} dt {
111
+ outline: 1px solid #ff0043 !important;
112
+ }
113
+
114
+ ${e} dd {
115
+ outline: 1px solid #e80174 !important;
116
+ }
117
+
118
+ ${e} figure {
119
+ outline: 1px solid #ff00bb !important;
120
+ }
121
+
122
+ ${e} figcaption {
123
+ outline: 1px solid #bf0032 !important;
124
+ }
125
+
126
+ ${e} table {
127
+ outline: 1px solid #00cc99 !important;
128
+ }
129
+
130
+ ${e} caption {
131
+ outline: 1px solid #37ffc4 !important;
132
+ }
133
+
134
+ ${e} thead {
135
+ outline: 1px solid #98daca !important;
136
+ }
137
+
138
+ ${e} tbody {
139
+ outline: 1px solid #64a7a0 !important;
140
+ }
141
+
142
+ ${e} tfoot {
143
+ outline: 1px solid #22746b !important;
144
+ }
145
+
146
+ ${e} tr {
147
+ outline: 1px solid #86c0b2 !important;
148
+ }
149
+
150
+ ${e} th {
151
+ outline: 1px solid #a1e7d6 !important;
152
+ }
153
+
154
+ ${e} td {
155
+ outline: 1px solid #3f5a54 !important;
156
+ }
157
+
158
+ ${e} col {
159
+ outline: 1px solid #6c9a8f !important;
160
+ }
161
+
162
+ ${e} colgroup {
163
+ outline: 1px solid #6c9a9d !important;
164
+ }
165
+
166
+ ${e} button {
167
+ outline: 1px solid #da8301 !important;
168
+ }
169
+
170
+ ${e} datalist {
171
+ outline: 1px solid #c06000 !important;
172
+ }
173
+
174
+ ${e} fieldset {
175
+ outline: 1px solid #d95100 !important;
176
+ }
177
+
178
+ ${e} form {
179
+ outline: 1px solid #d23600 !important;
180
+ }
181
+
182
+ ${e} input {
183
+ outline: 1px solid #fca600 !important;
184
+ }
185
+
186
+ ${e} keygen {
187
+ outline: 1px solid #b31e00 !important;
188
+ }
189
+
190
+ ${e} label {
191
+ outline: 1px solid #ee8900 !important;
192
+ }
193
+
194
+ ${e} legend {
195
+ outline: 1px solid #de6d00 !important;
196
+ }
197
+
198
+ ${e} meter {
199
+ outline: 1px solid #e8630c !important;
200
+ }
201
+
202
+ ${e} optgroup {
203
+ outline: 1px solid #b33600 !important;
204
+ }
205
+
206
+ ${e} option {
207
+ outline: 1px solid #ff8a00 !important;
208
+ }
209
+
210
+ ${e} output {
211
+ outline: 1px solid #ff9619 !important;
212
+ }
213
+
214
+ ${e} progress {
215
+ outline: 1px solid #e57c00 !important;
216
+ }
217
+
218
+ ${e} select {
219
+ outline: 1px solid #e26e0f !important;
220
+ }
221
+
222
+ ${e} textarea {
223
+ outline: 1px solid #cc5400 !important;
224
+ }
225
+
226
+ ${e} details {
227
+ outline: 1px solid #33848f !important;
228
+ }
229
+
230
+ ${e} summary {
231
+ outline: 1px solid #60a1a6 !important;
232
+ }
233
+
234
+ ${e} command {
235
+ outline: 1px solid #438da1 !important;
236
+ }
237
+
238
+ ${e} menu {
239
+ outline: 1px solid #449da6 !important;
240
+ }
241
+
242
+ ${e} del {
243
+ outline: 1px solid #bf0000 !important;
244
+ }
245
+
246
+ ${e} ins {
247
+ outline: 1px solid #400000 !important;
248
+ }
249
+
250
+ ${e} img {
251
+ outline: 1px solid #22746b !important;
252
+ }
253
+
254
+ ${e} iframe {
255
+ outline: 1px solid #64a7a0 !important;
256
+ }
257
+
258
+ ${e} embed {
259
+ outline: 1px solid #98daca !important;
260
+ }
261
+
262
+ ${e} object {
263
+ outline: 1px solid #00cc99 !important;
264
+ }
265
+
266
+ ${e} param {
267
+ outline: 1px solid #37ffc4 !important;
268
+ }
269
+
270
+ ${e} video {
271
+ outline: 1px solid #6ee866 !important;
272
+ }
273
+
274
+ ${e} audio {
275
+ outline: 1px solid #027353 !important;
276
+ }
277
+
278
+ ${e} source {
279
+ outline: 1px solid #012426 !important;
280
+ }
281
+
282
+ ${e} canvas {
283
+ outline: 1px solid #a2f570 !important;
284
+ }
285
+
286
+ ${e} track {
287
+ outline: 1px solid #59a600 !important;
288
+ }
289
+
290
+ ${e} map {
291
+ outline: 1px solid #7be500 !important;
292
+ }
293
+
294
+ ${e} area {
295
+ outline: 1px solid #305900 !important;
296
+ }
297
+
298
+ ${e} a {
299
+ outline: 1px solid #ff62ab !important;
300
+ }
301
+
302
+ ${e} em {
303
+ outline: 1px solid #800b41 !important;
304
+ }
305
+
306
+ ${e} strong {
307
+ outline: 1px solid #ff1583 !important;
308
+ }
309
+
310
+ ${e} i {
311
+ outline: 1px solid #803156 !important;
312
+ }
313
+
314
+ ${e} b {
315
+ outline: 1px solid #cc1169 !important;
316
+ }
317
+
318
+ ${e} u {
319
+ outline: 1px solid #ff0430 !important;
320
+ }
321
+
322
+ ${e} s {
323
+ outline: 1px solid #f805e3 !important;
324
+ }
325
+
326
+ ${e} small {
327
+ outline: 1px solid #d107b2 !important;
328
+ }
329
+
330
+ ${e} abbr {
331
+ outline: 1px solid #4a0263 !important;
332
+ }
333
+
334
+ ${e} q {
335
+ outline: 1px solid #240018 !important;
336
+ }
337
+
338
+ ${e} cite {
339
+ outline: 1px solid #64003c !important;
340
+ }
341
+
342
+ ${e} dfn {
343
+ outline: 1px solid #b4005a !important;
344
+ }
345
+
346
+ ${e} sub {
347
+ outline: 1px solid #dba0c8 !important;
348
+ }
349
+
350
+ ${e} sup {
351
+ outline: 1px solid #cc0256 !important;
352
+ }
353
+
354
+ ${e} time {
355
+ outline: 1px solid #d6606d !important;
356
+ }
357
+
358
+ ${e} code {
359
+ outline: 1px solid #e04251 !important;
360
+ }
361
+
362
+ ${e} kbd {
363
+ outline: 1px solid #5e001f !important;
364
+ }
365
+
366
+ ${e} samp {
367
+ outline: 1px solid #9c0033 !important;
368
+ }
369
+
370
+ ${e} var {
371
+ outline: 1px solid #d90047 !important;
372
+ }
373
+
374
+ ${e} mark {
375
+ outline: 1px solid #ff0053 !important;
376
+ }
377
+
378
+ ${e} bdi {
379
+ outline: 1px solid #bf3668 !important;
380
+ }
381
+
382
+ ${e} bdo {
383
+ outline: 1px solid #6f1400 !important;
384
+ }
385
+
386
+ ${e} ruby {
387
+ outline: 1px solid #ff7b93 !important;
388
+ }
389
+
390
+ ${e} rt {
391
+ outline: 1px solid #ff2f54 !important;
392
+ }
393
+
394
+ ${e} rp {
395
+ outline: 1px solid #803e49 !important;
396
+ }
397
+
398
+ ${e} span {
399
+ outline: 1px solid #cc2643 !important;
400
+ }
401
+
402
+ ${e} br {
403
+ outline: 1px solid #db687d !important;
404
+ }
405
+
406
+ ${e} wbr {
407
+ outline: 1px solid #db175b !important;
408
+ }`}n(csf_dt,"outlineCSS");var csf_Fr=n((e,t)=>{let r=t.globals||{},o=[!0,"true"].includes(r.outline),i="docs"===t.viewMode,s=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)(()=>csf_dt(i?'[data-story-block="true"]':".sb-show-main"),[t]);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)(()=>{let a=i?`addon-outline-docs-${t.id}`:"addon-outline";return o?csf_$r(a,s):csf_ct(a),()=>{csf_ct(a)}},[o,s,t]),e()},"withOutline"),csf_An=globalThis.FEATURES?.outline?[csf_Fr]:[],csf_Rn={[csf_Ae]:!1},csf_mt=n(()=>({decorators:csf_An,initialGlobals:csf_Rn}),"default"),csf_Fn=n(({parameters:e})=>{!0===e?.test?.mockReset?(0,external_STORYBOOK_MODULE_TEST_.resetAllMocks)():!0===e?.test?.clearMocks?(0,external_STORYBOOK_MODULE_TEST_.clearAllMocks)():!1!==e?.test?.restoreMocks&&(0,external_STORYBOOK_MODULE_TEST_.restoreAllMocks)()},"resetAllMocksLoader"),csf_ut=n((e,t=0,r)=>{if(t>5||null==e)return e;if((0,external_STORYBOOK_MODULE_TEST_.isMockFunction)(e))return r&&e.mockName(r),e;if("function"==typeof e&&"isAction"in e&&e.isAction&&(!("implicit"in e)||!e.implicit)){let o=(0,external_STORYBOOK_MODULE_TEST_.fn)(e);return r&&o.mockName(r),o}if(Array.isArray(e)){t++;for(let o=0;o<e.length;o++)Object.getOwnPropertyDescriptor(e,o)?.writable&&(e[o]=csf_ut(e[o],t));return e}if("object"==typeof e&&e.constructor===Object){t++;for(let[o,i]of Object.entries(e))Object.getOwnPropertyDescriptor(e,o)?.writable&&(e[o]=csf_ut(i,t,o));return e}return e},"traverseArgs"),csf_In=n(({initialArgs:e})=>{csf_ut(e)},"nameSpiesAndWrapActionsInSpies"),csf_Ir=!1,csf_Ln=n(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=(0,external_STORYBOOK_MODULE_TEST_.within)(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=Qs({userEvent:external_STORYBOOK_MODULE_TEST_.uninstrumentedUserEvent.setup()},{intercept:!0}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:n(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;csf_Ir||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:n(o=>{r=o,csf_Ir=!0},"set"),get:n(()=>r,"get")}})}},"enhanceContext"),csf_ft=n(()=>({loaders:[csf_Fn,csf_In,csf_Ln]}),"default"),csf_Dr="viewport",csf_n={[csf_Dr]:{value:void 0,isRotated:!1}},csf_yt=n(()=>({initialGlobals:csf_n}),"default");function csf_r(){return[(csf_lt.default??csf_lt)(),(csf_Je.default??csf_Je)(),(csf_st.default??csf_st)(),(csf_mt.default??csf_mt)(),(csf_yt.default??csf_yt)(),(csf_Xe.default??csf_Xe)(),(csf_Qe.default??csf_Qe)(),(csf_ft.default??csf_ft)()]}function rc(e){return e}function oc(e){return null!=e&&"object"==typeof e&&"_tag"in e&&"Preview"===e?._tag}function csf_Nn(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r={}){return csf_Hr("function"==typeof r?{render:r}:r,this)}}}function csf_Hr(e,t){let r,o=n(()=>(r||(r=csf_We(e,t.input,void 0,t.preview.composed)),r),"compose");return{_tag:"Story",input:e,meta:t,__compose:o,get composed(){let i=o(),{args:s,argTypes:a,parameters:p,id:c,tags:l,globals:y,storyName:u}=i;return{args:s,argTypes:a,parameters:p,id:c,tags:l,name:u,globals:y}},get play(){return e.play??t.input?.play??(async()=>{})},get run(){return o().run??(async()=>{})},extend(i){return csf_Hr({...this.input,...i,args:{...this.input.args,...i.args},argTypes:csf_D(this.input.argTypes,i.argTypes),afterEach:[...b(this.input?.afterEach??[]),...b(i.afterEach??[])],beforeEach:[...b(this.input?.beforeEach??[]),...b(i.beforeEach??[])],decorators:[...b(this.input?.decorators??[]),...b(i.decorators??[])],globals:{...this.input.globals,...i.globals},loaders:[...b(this.input?.loaders??[]),...b(i.loaders??[])],parameters:csf_D(this.input.parameters,i.parameters),tags:uc(...this.input.tags??[],...i.tags??[])},this.meta)}}}n(csf_r,"getCoreAnnotations"),n(function tc(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:o,...i}=e;return t=csf_te(csf_ne([...csf_r(),...o??[],i])),t},meta(o){return csf_Nn(o,this)}};return globalThis.globalProjectAnnotations=r.composed,r},"definePreview"),n(rc,"definePreviewAddon"),n(oc,"isPreview"),n(function nc(e){return null!=e&&"object"==typeof e&&"_tag"in e&&"Meta"===e?._tag},"isMeta"),n(csf_Nn,"defineMeta"),n(function ic(e){return null!=e&&"object"==typeof e&&"_tag"in e&&"Story"===e?._tag},"isStory"),n(csf_Hr,"defineStory");var csf_jn=n(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),csf_Nr=n((e,t)=>{let r=csf_jn(e);if(""===r)throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),lc=n((e,t)=>`${csf_Nr(e,"kind")}${t?`--${csf_Nr(t,"name")}`:""}`,"toId"),cc=n(e=>csf_bt(e),"storyNameFromExport");function csf_jr(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}n(csf_jr,"matches"),n(function dc(e,{includeStories:t,excludeStories:r}){return"__esModule"!==e&&(!t||csf_jr(e,t))&&(!r||!csf_jr(e,r))},"isExportStory");var uc=n((...e)=>{let t=e.reduce((r,o)=>(o.startsWith("!")?r.delete(o.slice(1)):r.add(o),r),new Set);return Array.from(t)},"combineTags")},"./node_modules/storybook/dist/docs-tools/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C2:()=>ya,Op:()=>ha,Sy:()=>wt,TQ:()=>at,UO:()=>pt,Ux:()=>w,Y1:()=>Tn,YF:()=>Ir,i3:()=>Ke,p6:()=>aa,rl:()=>ia});var n,s,storybook_internal_preview_errors__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("storybook/internal/preview-errors"),dr=Object.create,Ie=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyNames,xr=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty,r=(n,s)=>Ie(n,"name",{value:s,configurable:!0}),dt=(n=(fe,yt)=>{var n,s;n=fe,s=function(n){function s(e){return void 0!==e.text&&""!==e.text?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}r(s,"tokenToString");let ne=class ne extends Error{constructor(t){super(`No parslet found for token: ${s(t)}`),this.token=t,Object.setPrototypeOf(this,ne.prototype)}getToken(){return this.token}};r(ne,"NoParsletFoundError");let a=ne,oe=class oe extends Error{constructor(t){super(`The parsing ended early. The next token was: ${s(t)}`),this.token=t,Object.setPrototypeOf(this,oe.prototype)}getToken(){return this.token}};r(oe,"EarlyEndOfParseError");let p=oe,se=class se extends Error{constructor(t,o){let i=`Unexpected type: '${t.type}'.`;void 0!==o&&(i+=` Message: ${o}`),super(i),Object.setPrototypeOf(this,se.prototype)}};r(se,"UnexpectedTypeError");let c=se;function u(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function m(e){let o,t=0,i=e[0],l=!1;if("'"!==i&&'"'!==i)return null;for(;t<e.length;){if(t++,o=e[t],!l&&o===i){t++;break}l=!l&&"\\"===o}if(o!==i)throw new Error("Unterminated String");return e.slice(0,t)}r(u,"makePunctuationRule"),r(m,"getQuoted");let T=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),g=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function P(e){let t=e[0];if(!T.test(t))return null;let o=1;do{if(t=e[o],!g.test(t))break;o++}while(o<e.length);return e.slice(0,o)}r(P,"getIdentifier");let b=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function de(e){var t,o;return null!==(o=null===(t=b.exec(e))||void 0===t?void 0:t[0])&&void 0!==o?o:null}r(de,"getNumber");let q=r(e=>{let t=P(e);return null==t?null:{type:"Identifier",text:t}},"identifierRule");function S(e){return t=>{if(!t.startsWith(e))return null;let o=t[e.length];return void 0!==o&&g.test(o)?null:{type:e,text:e}}}r(S,"makeKeyWordRule");let z=r(e=>{let t=m(e);return null==t?null:{type:"StringValue",text:t}},"stringValueRule"),Te=r(e=>e.length>0?null:{type:"EOF",text:""},"eofRule"),ge=r(e=>{let t=de(e);return null===t?null:{type:"Number",text:t}},"numberRule"),Rt=[Te,u("=>"),u("("),u(")"),u("{"),u("}"),u("["),u("]"),u("|"),u("&"),u("<"),u(">"),u(","),u(";"),u("*"),u("?"),u("!"),u("="),u(":"),u("..."),u("."),u("#"),u("~"),u("/"),u("@"),S("undefined"),S("null"),S("function"),S("this"),S("new"),S("module"),S("event"),S("external"),S("typeof"),S("keyof"),S("readonly"),S("import"),S("is"),S("in"),S("asserts"),ge,q,z],jt=/^\s*\n\s*/,U=class U{static create(t){let o=this.read(t);t=o.text;let i=this.read(t);return t=i.text,new U(t,void 0,o.token,i.token)}constructor(t,o,i,l){this.text="",this.text=t,this.previous=o,this.current=i,this.next=l}static read(t,o=!1){o=o||jt.test(t),t=t.trim();for(let i of Rt){let l=i(t);if(null!==l){let f=Object.assign(Object.assign({},l),{startOfLine:o});return{text:t=t.slice(f.text.length),token:f}}}throw new Error("Unexpected Token "+t)}advance(){let t=U.read(this.text);return new U(t.text,this.current,this.next,t.token)}};r(U,"Lexer");let xe=U;function J(e){if(void 0===e)throw new Error("Unexpected undefined");if("JsdocTypeKeyValue"===e.type||"JsdocTypeParameterList"===e.type||"JsdocTypeProperty"===e.type||"JsdocTypeReadonlyProperty"===e.type||"JsdocTypeObjectField"===e.type||"JsdocTypeJsdocObjectField"===e.type||"JsdocTypeIndexSignature"===e.type||"JsdocTypeMappedType"===e.type)throw new c(e);return e}function he(e){return"JsdocTypeKeyValue"===e.type?H(e):J(e)}function Ft(e){return"JsdocTypeName"===e.type?e:H(e)}function H(e){if("JsdocTypeKeyValue"!==e.type)throw new c(e);return e}function _t(e){var t;if("JsdocTypeVariadic"===e.type){if("JsdocTypeName"===(null===(t=e.element)||void 0===t?void 0:t.type))return e;throw new c(e)}if("JsdocTypeNumber"!==e.type&&"JsdocTypeName"!==e.type)throw new c(e);return e}function Je(e){return"JsdocTypeIndexSignature"===e.type||"JsdocTypeMappedType"===e.type}var y,e;r(J,"assertRootResult"),r(he,"assertPlainKeyValueOrRootResult"),r(Ft,"assertPlainKeyValueOrNameResult"),r(H,"assertPlainKeyValueResult"),r(_t,"assertNumberOrVariadicNameResult"),r(Je,"isSquaredProperty"),(e=y||(y={}))[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.INDEX_BRACKETS=4]="INDEX_BRACKETS",e[e.UNION=5]="UNION",e[e.INTERSECTION=6]="INTERSECTION",e[e.PREFIX=7]="PREFIX",e[e.INFIX=8]="INFIX",e[e.TUPLE=9]="TUPLE",e[e.SYMBOL=10]="SYMBOL",e[e.OPTIONAL=11]="OPTIONAL",e[e.NULLABLE=12]="NULLABLE",e[e.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",e[e.FUNCTION=14]="FUNCTION",e[e.ARROW=15]="ARROW",e[e.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",e[e.GENERIC=17]="GENERIC",e[e.NAME_PATH=18]="NAME_PATH",e[e.PARENTHESIS=19]="PARENTHESIS",e[e.SPECIAL_TYPES=20]="SPECIAL_TYPES";let Ae=class Ae{constructor(t,o,i){this.grammar=t,this._lexer="string"==typeof o?xe.create(o):o,this.baseParser=i}get lexer(){return this._lexer}parse(){let t=this.parseType(y.ALL);if("EOF"!==this.lexer.current.type)throw new p(this.lexer.current);return t}parseType(t){return J(this.parseIntermediateType(t))}parseIntermediateType(t){let o=this.tryParslets(null,t);if(null===o)throw new a(this.lexer.current);return this.parseInfixIntermediateType(o,t)}parseInfixIntermediateType(t,o){let i=this.tryParslets(t,o);for(;null!==i;)t=i,i=this.tryParslets(t,o);return t}tryParslets(t,o){for(let i of this.grammar){let l=i(this,o,t);if(null!==l)return l}return null}consume(t){return Array.isArray(t)||(t=[t]),!!t.includes(this.lexer.current.type)&&(this._lexer=this.lexer.advance(),!0)}acceptLexerState(t){this._lexer=t.lexer}};r(Ae,"Parser");let I=Ae;function Ye(e){return"EOF"===e||"|"===e||","===e||")"===e||">"===e}r(Ye,"isQuestionMarkUnknownType");let we=r((e,t,o)=>{let i=e.lexer.current.type,l=e.lexer.next.type;return null==o&&"?"===i&&!Ye(l)||null!=o&&"?"===i?(e.consume("?"),null==o?{type:"JsdocTypeNullable",element:e.parseType(y.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:J(o),meta:{position:"suffix"}}):null},"nullableParslet");function x(e){let t=r((o,i,l)=>{let f=o.lexer.current.type,d=o.lexer.next.type;if(null===l){if("parsePrefix"in e&&e.accept(f,d))return e.parsePrefix(o)}else if("parseInfix"in e&&e.precedence>i&&e.accept(f,d))return e.parseInfix(o,l);return null},"parslet");return Object.defineProperty(t,"name",{value:e.name}),t}r(x,"composeParslet");let Q=x({name:"optionalParslet",accept:r(e=>"="===e,"accept"),precedence:y.OPTIONAL,parsePrefix:r(e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(y.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:r((e,t)=>(e.consume("="),{type:"JsdocTypeOptional",element:J(t),meta:{position:"suffix"}}),"parseInfix")}),Z=x({name:"numberParslet",accept:r(e=>"Number"===e,"accept"),parsePrefix:r(e=>{let t=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:t}},"parsePrefix")}),Vt=x({name:"parenthesisParslet",accept:r(e=>"("===e,"accept"),parsePrefix:r(e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let t=e.parseIntermediateType(y.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return"JsdocTypeParameterList"===t.type?t:"JsdocTypeKeyValue"===t.type?{type:"JsdocTypeParameterList",elements:[t]}:{type:"JsdocTypeParenthesis",element:J(t)}},"parsePrefix")}),Lt=x({name:"specialTypesParslet",accept:r((e,t)=>"?"===e&&Ye(t)||"null"===e||"undefined"===e||"*"===e,"accept"),parsePrefix:r(e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)},"parsePrefix")}),Ut=x({name:"notNullableParslet",accept:r(e=>"!"===e,"accept"),precedence:y.NULLABLE,parsePrefix:r(e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(y.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:r((e,t)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:J(t),meta:{position:"suffix"}}),"parseInfix")});function Bt({allowTrailingComma:e}){return x({name:"parameterListParslet",accept:r(t=>","===t,"accept"),precedence:y.PARAMETER_LIST,parseInfix:r((t,o)=>{let i=[he(o)];t.consume(",");do{try{let l=t.parseIntermediateType(y.PARAMETER_LIST);i.push(he(l))}catch(l){if(e&&l instanceof a)break;throw l}}while(t.consume(","));if(i.length>0&&i.slice(0,-1).some(l=>"JsdocTypeVariadic"===l.type))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:i}},"parseInfix")})}r(Bt,"createParameterListParslet");let Ct=x({name:"genericParslet",accept:r((e,t)=>"<"===e||"."===e&&"<"===t,"accept"),precedence:y.GENERIC,parseInfix:r((e,t)=>{let o=e.consume(".");e.consume("<");let i=[];do{i.push(e.parseType(y.PARAMETER_LIST))}while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:J(t),elements:i,meta:{brackets:"angle",dot:o}}},"parseInfix")}),Mt=x({name:"unionParslet",accept:r(e=>"|"===e,"accept"),precedence:y.UNION,parseInfix:r((e,t)=>{e.consume("|");let o=[];do{o.push(e.parseType(y.UNION))}while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[J(t),...o]}},"parseInfix")}),Pe=[we,Q,Z,Vt,Lt,Ut,Bt({allowTrailingComma:!0}),Ct,Mt,Q];function ee({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:o}){return r(function(l,f,d){if(null==d||f>=y.NAME_PATH)return null;let h=l.lexer.current.type,D=l.lexer.next.type;if(!("."===h&&"<"!==D||"["===h&&(e||"JsdocTypeName"===d.type)||t&&("~"===h||"#"===h)))return null;let O,ae=!1;l.consume(".")?O="property":l.consume("[")?(O="property-brackets",ae=!0):l.consume("~")?O="inner":(l.consume("#"),O="instance");let G,rt=null!==o?new I(o,l.lexer,l):l,k=rt.parseIntermediateType(y.NAME_PATH);switch(l.acceptLexerState(rt),k.type){case"JsdocTypeName":G={type:"JsdocTypeProperty",value:k.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":G={type:"JsdocTypeProperty",value:k.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":G={type:"JsdocTypeProperty",value:k.value,meta:{quote:k.meta.quote}};break;case"JsdocTypeSpecialNamePath":if("event"!==k.specialType)throw new c(k,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");G=k;break;default:throw new c(k,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ae&&!l.consume("]")){let nt=l.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${nt.type}' with text '${nt.text}'`)}return{type:"JsdocTypeNamePath",left:J(d),right:G,pathType:O}},"namePathParslet")}function R({allowedAdditionalTokens:e}){return x({name:"nameParslet",accept:r(t=>"Identifier"===t||"this"===t||"new"===t||e.includes(t),"accept"),parsePrefix:r(t=>{let{type:o,text:i}=t.lexer.current;return t.consume(o),{type:"JsdocTypeName",value:i}},"parsePrefix")})}r(ee,"createNamePathParslet"),r(R,"createNameParslet");let Y=x({name:"stringValueParslet",accept:r(e=>"StringValue"===e,"accept"),parsePrefix:r(e=>{let t=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:t.slice(1,-1),meta:{quote:"'"===t[0]?"single":"double"}}},"parsePrefix")});function te({pathGrammar:e,allowedTypes:t}){return x({name:"specialNamePathParslet",accept:r(o=>t.includes(o),"accept"),parsePrefix:r(o=>{let i=o.lexer.current.type;if(o.consume(i),!o.consume(":"))return{type:"JsdocTypeName",value:i};let l,f=o.lexer.current;if(o.consume("StringValue"))l={type:"JsdocTypeSpecialNamePath",value:f.text.slice(1,-1),specialType:i,meta:{quote:"'"===f.text[0]?"single":"double"}};else{let D="",E=["Identifier","@","/"];for(;E.some(O=>o.consume(O));)D+=f.text,f=o.lexer.current;l={type:"JsdocTypeSpecialNamePath",value:D,specialType:i,meta:{quote:void 0}}}let d=new I(e,o.lexer,o),h=d.parseInfixIntermediateType(l,y.ALL);return o.acceptLexerState(d),J(h)},"parsePrefix")})}r(te,"createSpecialNamePathParslet");let We=[R({allowedAdditionalTokens:["external","module"]}),Y,Z,ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],L=[...We,te({allowedTypes:["event"],pathGrammar:We})];function be(e){let t;if("JsdocTypeParameterList"===e.type)t=e.elements;else{if("JsdocTypeParenthesis"!==e.type)throw new c(e);t=[e.element]}return t.map(o=>he(o))}function Kt(e){let t=be(e);if(t.some(o=>"JsdocTypeKeyValue"===o.type))throw new Error("No parameter should be named");return t}function Se({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:o,allowNewAsFunctionKeyword:i}){return x({name:"functionParslet",accept:r((l,f)=>"function"===l||i&&"new"===l&&"("===f,"accept"),parsePrefix:r(l=>{let f=l.consume("new");l.consume("function");let d="("===l.lexer.current.type;if(!d){if(!o)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let h={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:f,parenthesis:d},D=l.parseIntermediateType(y.FUNCTION);if(void 0===e)h.parameters=Kt(D);else{if(f&&"JsdocTypeFunction"===D.type&&D.arrow)return h=D,h.constructor=!0,h;h.parameters=be(D);for(let E of h.parameters)if("JsdocTypeKeyValue"===E.type&&!e.includes(E.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${E.type}`)}if(l.consume(":"))h.returnType=l.parseType(y.PREFIX);else if(!t)throw new Error("function is missing return type");return h},"parsePrefix")})}function Ee({allowPostfix:e,allowEnclosingBrackets:t}){return x({name:"variadicParslet",accept:r(o=>"..."===o,"accept"),precedence:y.PREFIX,parsePrefix:r(o=>{o.consume("...");let i=t&&o.consume("[");try{let l=o.parseType(y.PREFIX);if(i&&!o.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:J(l),meta:{position:"prefix",squareBrackets:i}}}catch(l){if(l instanceof a){if(i)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}throw l}},"parsePrefix"),parseInfix:e?(o,i)=>(o.consume("..."),{type:"JsdocTypeVariadic",element:J(i),meta:{position:"suffix",squareBrackets:!1}}):void 0})}r(be,"getParameters"),r(Kt,"getUnnamedParameters"),r(Se,"createFunctionParslet"),r(Ee,"createVariadicParslet");let Ge=x({name:"symbolParslet",accept:r(e=>"("===e,"accept"),precedence:y.SYMBOL,parseInfix:r((e,t)=>{if("JsdocTypeName"!==t.type)throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let o={type:"JsdocTypeSymbol",value:t.value};if(!e.consume(")")){let i=e.parseIntermediateType(y.SYMBOL);if(o.element=_t(i),!e.consume(")"))throw new Error("Symbol does not end after value")}return o},"parseInfix")}),Xe=x({name:"arrayBracketsParslet",precedence:y.ARRAY_BRACKETS,accept:r((e,t)=>"["===e&&"]"===t,"accept"),parseInfix:r((e,t)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[J(t)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function Ne({objectFieldGrammar:e,allowKeyTypes:t}){return x({name:"objectParslet",accept:r(o=>"{"===o,"accept"),parsePrefix:r(o=>{o.consume("{");let i={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!o.consume("}")){let l,f=new I(e,o.lexer,o);for(;;){f.acceptLexerState(o);let d=f.parseIntermediateType(y.OBJECT);o.acceptLexerState(f),void 0===d&&t&&(d=o.parseIntermediateType(y.OBJECT));let h=!1;if("JsdocTypeNullable"===d.type&&(h=!0,d=d.element),"JsdocTypeNumber"===d.type||"JsdocTypeName"===d.type||"JsdocTypeStringValue"===d.type){let E;"JsdocTypeStringValue"===d.type&&(E=d.meta.quote),i.elements.push({type:"JsdocTypeObjectField",key:d.value.toString(),right:void 0,optional:h,readonly:!1,meta:{quote:E}})}else{if("JsdocTypeObjectField"!==d.type&&"JsdocTypeJsdocObjectField"!==d.type)throw new c(d);i.elements.push(d)}if(o.lexer.current.startOfLine)l="linebreak";else if(o.consume(","))l="comma";else{if(!o.consume(";"))break;l="semicolon"}if("}"===o.lexer.current.type)break}if(i.meta.separator=l??"comma",!o.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return i},"parsePrefix")})}function De({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:o,allowOptional:i}){return x({name:"objectFieldParslet",precedence:y.KEY_VALUE,accept:r(l=>":"===l,"accept"),parseInfix:r((l,f)=>{var d;let h=!1,D=!1;i&&"JsdocTypeNullable"===f.type&&(h=!0,f=f.element),o&&"JsdocTypeReadonlyProperty"===f.type&&(D=!0,f=f.element);let E=null!==(d=l.baseParser)&&void 0!==d?d:l;if(E.acceptLexerState(l),"JsdocTypeNumber"===f.type||"JsdocTypeName"===f.type||"JsdocTypeStringValue"===f.type||Je(f)){if(Je(f)&&!e)throw new c(f);let O;E.consume(":"),"JsdocTypeStringValue"===f.type&&(O=f.meta.quote);let ae=E.parseType(y.KEY_VALUE);return l.acceptLexerState(E),{type:"JsdocTypeObjectField",key:Je(f)?f:f.value.toString(),right:ae,optional:h,readonly:D,meta:{quote:O}}}{if(!t)throw new c(f);E.consume(":");let O=E.parseType(y.KEY_VALUE);return l.acceptLexerState(E),{type:"JsdocTypeJsdocObjectField",left:J(f),right:O}}},"parseInfix")})}function Oe({allowOptional:e,allowVariadic:t}){return x({name:"keyValueParslet",precedence:y.KEY_VALUE,accept:r(o=>":"===o,"accept"),parseInfix:r((o,i)=>{let l=!1,f=!1;if(e&&"JsdocTypeNullable"===i.type&&(l=!0,i=i.element),t&&"JsdocTypeVariadic"===i.type&&void 0!==i.element&&(f=!0,i=i.element),"JsdocTypeName"!==i.type)throw new c(i);o.consume(":");let d=o.parseType(y.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:i.value,right:d,optional:l,variadic:f}},"parseInfix")})}r(Ne,"createObjectParslet"),r(De,"createObjectFieldParslet"),r(Oe,"createKeyValueParslet");let ze=[...Pe,Se({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Y,te({allowedTypes:["module","external","event"],pathGrammar:L}),Ee({allowEnclosingBrackets:!0,allowPostfix:!0}),R({allowedAdditionalTokens:["keyof"]}),Ge,Xe,ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:L})],$t=[...ze,Ne({objectFieldGrammar:[R({allowedAdditionalTokens:["module","in"]}),De({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ze],allowKeyTypes:!0}),Oe({allowOptional:!0,allowVariadic:!0})],He=x({name:"typeOfParslet",accept:r(e=>"typeof"===e,"accept"),parsePrefix:r(e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:J(e.parseType(y.KEY_OF_TYPE_OF))}),"parsePrefix")}),qt=[R({allowedAdditionalTokens:["module","keyof","event","external","in"]}),we,Q,Y,Z,De({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Yt=[...Pe,Ne({allowKeyTypes:!1,objectFieldGrammar:qt}),R({allowedAdditionalTokens:["event","external","in"]}),He,Se({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ee({allowEnclosingBrackets:!1,allowPostfix:!1}),R({allowedAdditionalTokens:["keyof"]}),te({allowedTypes:["module"],pathGrammar:L}),ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:L}),Oe({allowOptional:!1,allowVariadic:!1}),Ge],Wt=x({name:"assertsParslet",accept:r(e=>"asserts"===e,"accept"),parsePrefix:r(e=>{e.consume("asserts");let t=e.parseIntermediateType(y.SYMBOL);if("JsdocTypeName"!==t.type)throw new c(t,"A typescript asserts always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypeAsserts",left:t,right:J(e.parseIntermediateType(y.INFIX))}},"parsePrefix")});function Gt({allowQuestionMark:e}){return x({name:"tupleParslet",accept:r(t=>"["===t,"accept"),parsePrefix:r(t=>{t.consume("[");let o={type:"JsdocTypeTuple",elements:[]};if(t.consume("]"))return o;let i=t.parseIntermediateType(y.ALL);if("JsdocTypeParameterList"===i.type?"JsdocTypeKeyValue"===i.elements[0].type?o.elements=i.elements.map(H):o.elements=i.elements.map(J):"JsdocTypeKeyValue"===i.type?o.elements=[H(i)]:o.elements=[J(i)],!t.consume("]"))throw new Error("Unterminated '['");if(!e&&o.elements.some(l=>"JsdocTypeUnknown"===l.type))throw new Error("Question mark in tuple not allowed");return o},"parsePrefix")})}r(Gt,"createTupleParslet");let Xt=x({name:"keyOfParslet",accept:r(e=>"keyof"===e,"accept"),parsePrefix:r(e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:J(e.parseType(y.KEY_OF_TYPE_OF))}),"parsePrefix")}),zt=x({name:"importParslet",accept:r(e=>"import"===e,"accept"),parsePrefix:r(e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let t=e.parseType(y.PREFIX);if("JsdocTypeStringValue"!==t.type)throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:t}},"parsePrefix")}),Ht=x({name:"readonlyPropertyParslet",accept:r(e=>"readonly"===e,"accept"),parsePrefix:r(e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(y.KEY_VALUE)}),"parsePrefix")}),Qt=x({name:"arrowFunctionParslet",precedence:y.ARROW,accept:r(e=>"=>"===e,"accept"),parseInfix:r((e,t)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:be(t).map(Ft),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(y.OBJECT)}),"parseInfix")}),Zt=x({name:"intersectionParslet",accept:r(e=>"&"===e,"accept"),precedence:y.INTERSECTION,parseInfix:r((e,t)=>{e.consume("&");let o=[];do{o.push(e.parseType(y.INTERSECTION))}while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[J(t),...o]}},"parseInfix")}),er=x({name:"predicateParslet",precedence:y.INFIX,accept:r(e=>"is"===e,"accept"),parseInfix:r((e,t)=>{if("JsdocTypeName"!==t.type)throw new c(t,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:t,right:J(e.parseIntermediateType(y.INFIX))}},"parseInfix")}),tr=x({name:"objectSquareBracketPropertyParslet",accept:r(e=>"["===e,"accept"),parsePrefix:r(e=>{if(void 0===e.baseParser)throw new Error("Only allowed inside object grammar");e.consume("[");let o,t=e.lexer.current.text;if(e.consume("Identifier"),e.consume(":")){let i=e.baseParser;i.acceptLexerState(e),o={type:"JsdocTypeIndexSignature",key:t,right:i.parseType(y.INDEX_BRACKETS)},e.acceptLexerState(i)}else{if(!e.consume("in"))throw new Error("Missing ':' or 'in' inside square bracketed property.");{let i=e.baseParser;i.acceptLexerState(e),o={type:"JsdocTypeMappedType",key:t,right:i.parseType(y.ARRAY_BRACKETS)},e.acceptLexerState(i)}}if(!e.consume("]"))throw new Error("Unterminated square brackets");return o},"parsePrefix")}),rr=[Ht,R({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),we,Q,Y,Z,De({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),tr],nr=[...Pe,Ne({allowKeyTypes:!1,objectFieldGrammar:rr}),He,Xt,zt,Y,Se({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Gt({allowQuestionMark:!1}),Ee({allowEnclosingBrackets:!1,allowPostfix:!1}),Wt,R({allowedAdditionalTokens:["event","external","in"]}),te({allowedTypes:["module"],pathGrammar:L}),Xe,Qt,ee({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:L}),Zt,er,Oe({allowVariadic:!0,allowOptional:!0})];function Qe(e,t){switch(t){case"closure":return new I(Yt,e).parse();case"jsdoc":return new I($t,e).parse();case"typescript":return new I(nr,e).parse()}}function or(e,t=["typescript","closure","jsdoc"]){let o;for(let i of t)try{return Qe(e,i)}catch(l){o=l}throw o}function W(e,t){let o=e[t.type];if(void 0===o)throw new Error(`In this set of transform rules exists no rule for type ${t.type}.`);return o(t,i=>W(e,i))}function N(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Ze(e){let t={params:[]};for(let o of e.parameters)"JsdocTypeKeyValue"===o.type?"this"===o.key?t.this=o.right:"new"===o.key?t.new=o.right:t.params.push(o):t.params.push(o);return t}function re(e,t,o){return"prefix"===e?o+t:t+o}function j(e,t){switch(t){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}function et(){return{JsdocTypeParenthesis:r((e,t)=>`(${void 0!==e.element?t(e.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:r((e,t)=>`keyof ${t(e.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:r((e,t)=>{if(e.arrow){if(void 0===e.returnType)throw new Error("Arrow function needs a return type.");let o=`(${e.parameters.map(t).join(", ")}) => ${t(e.returnType)}`;return e.constructor&&(o="new "+o),o}{let o=e.constructor?"new":"function";return e.parenthesis&&(o+=`(${e.parameters.map(t).join(", ")})`,void 0!==e.returnType&&(o+=`: ${t(e.returnType)}`)),o}},"JsdocTypeFunction"),JsdocTypeName:r(e=>e.value,"JsdocTypeName"),JsdocTypeTuple:r((e,t)=>`[${e.elements.map(t).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:r((e,t)=>void 0===e.meta.position?"...":re(e.meta.position,t(e.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:r((e,t)=>{let o=t(e.left),i=t(e.right);switch(e.pathType){case"inner":return`${o}~${i}`;case"instance":return`${o}#${i}`;case"property":return`${o}.${i}`;case"property-brackets":return`${o}[${i}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:r(e=>j(e.value,e.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:r(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:r((e,t)=>{if("square"===e.meta.brackets){let o=e.elements[0],i=t(o);return"JsdocTypeUnion"===o.type||"JsdocTypeIntersection"===o.type?`(${i})[]`:`${i}[]`}return`${t(e.left)}${e.meta.dot?".":""}<${e.elements.map(t).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:r((e,t)=>`import(${t(e.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:r((e,t)=>{let o="";return e.readonly&&(o+="readonly "),"string"==typeof e.key?o+=j(e.key,e.meta.quote):o+=t(e.key),e.optional&&(o+="?"),void 0===e.right?o:o+`: ${t(e.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r((e,t)=>`${t(e.left)}: ${t(e.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:r((e,t)=>{let o=e.key;return e.optional&&(o+="?"),e.variadic&&(o="..."+o),void 0===e.right?o:o+`: ${t(e.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:r(e=>`${e.specialType}:${j(e.value,e.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:r((e,t)=>re(e.meta.position,t(e.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:r(()=>"null","JsdocTypeNull"),JsdocTypeNullable:r((e,t)=>re(e.meta.position,t(e.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:r(e=>e.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:r((e,t)=>`{${e.elements.map(t).join(("comma"===e.meta.separator?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:r((e,t)=>re(e.meta.position,t(e.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:r((e,t)=>`${e.value}(${void 0!==e.element?t(e.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:r((e,t)=>`typeof ${t(e.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:r(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:r((e,t)=>e.elements.map(t).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:r(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:r((e,t)=>e.elements.map(t).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:r(e=>j(e.value,e.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:r((e,t)=>`${t(e.left)} is ${t(e.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:r((e,t)=>`[${e.key}: ${t(e.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:r((e,t)=>`[${e.key} in ${t(e.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:r((e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,"JsdocTypeAsserts")}}r(Qe,"parse"),r(or,"tryParse"),r(W,"transform"),r(N,"notAvailableTransform"),r(Ze,"extractSpecialParams"),r(re,"applyPosition"),r(j,"quote"),r(et,"stringifyRules");let sr=et();function ar(e){return W(sr,e)}r(ar,"stringify");let ir=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function F(e){let t={type:"NameExpression",name:e};return ir.includes(e)&&(t.reservedWord=!0),t}r(F,"makeName");let pr={JsdocTypeOptional:r((e,t)=>{let o=t(e.element);return o.optional=!0,o},"JsdocTypeOptional"),JsdocTypeNullable:r((e,t)=>{let o=t(e.element);return o.nullable=!0,o},"JsdocTypeNullable"),JsdocTypeNotNullable:r((e,t)=>{let o=t(e.element);return o.nullable=!1,o},"JsdocTypeNotNullable"),JsdocTypeVariadic:r((e,t)=>{if(void 0===e.element)throw new Error("dots without value are not allowed in catharsis mode");let o=t(e.element);return o.repeatable=!0,o},"JsdocTypeVariadic"),JsdocTypeAny:r(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:r(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:r(e=>F(j(e.value,e.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:r(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:r(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:r((e,t)=>{let o=Ze(e),i={type:"FunctionType",params:o.params.map(t)};return void 0!==o.this&&(i.this=t(o.this)),void 0!==o.new&&(i.new=t(o.new)),void 0!==e.returnType&&(i.result=t(e.returnType)),i},"JsdocTypeFunction"),JsdocTypeGeneric:r((e,t)=>({type:"TypeApplication",applications:e.elements.map(o=>t(o)),expression:t(e.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:r(e=>F(e.specialType+":"+j(e.value,e.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:r(e=>"function"!==e.value?F(e.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:r(e=>F(e.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:r((e,t)=>{let o={type:"RecordType",fields:[]};for(let i of e.elements)"JsdocTypeObjectField"!==i.type&&"JsdocTypeJsdocObjectField"!==i.type?o.fields.push({type:"FieldType",key:t(i),value:void 0}):o.fields.push(t(i));return o},"JsdocTypeObject"),JsdocTypeObjectField:r((e,t)=>{if("string"!=typeof e.key)throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:F(j(e.key,e.meta.quote)),value:void 0===e.right?void 0:t(e.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r((e,t)=>({type:"FieldType",key:t(e.left),value:t(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:r((e,t)=>({type:"TypeUnion",elements:e.elements.map(o=>t(o))}),"JsdocTypeUnion"),JsdocTypeKeyValue:r((e,t)=>({type:"FieldType",key:F(e.key),value:void 0===e.right?void 0:t(e.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:r((e,t)=>{let i,o=t(e.left);i="JsdocTypeSpecialNamePath"===e.right.type?t(e.right).name:j(e.right.value,e.right.meta.quote);let l="inner"===e.pathType?"~":"instance"===e.pathType?"#":".";return F(`${o.name}${l}${i}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:r(e=>{let t="",o=e.element,i=!1;return"JsdocTypeVariadic"===o?.type&&("prefix"===o.meta.position?t="...":i=!0,o=o.element),"JsdocTypeName"===o?.type?t+=o.value:"JsdocTypeNumber"===o?.type&&(t+=o.value.toString()),i&&(t+="..."),F(`${e.value}(${t})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:r((e,t)=>t(J(e.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:N,JsdocTypeIndexSignature:N,JsdocTypeImport:N,JsdocTypeKeyof:N,JsdocTypeTuple:N,JsdocTypeTypeof:N,JsdocTypeIntersection:N,JsdocTypeProperty:N,JsdocTypePredicate:N,JsdocTypeAsserts:N};function cr(e){return W(pr,e)}function V(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}function lr(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":case"property-brackets":return"MEMBER"}}function ve(e,t){return 2===t.length?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:ve(e,t.slice(1))}}r(cr,"catharsisTransform"),r(V,"getQuoteStyle"),r(lr,"getMemberType"),r(ve,"nestResults");let ur={JsdocTypeOptional:r((e,t)=>({type:"OPTIONAL",value:t(e.element),meta:{syntax:"prefix"===e.meta.position?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:r((e,t)=>({type:"NULLABLE",value:t(e.element),meta:{syntax:"prefix"===e.meta.position?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:r((e,t)=>({type:"NOT_NULLABLE",value:t(e.element),meta:{syntax:"prefix"===e.meta.position?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:r((e,t)=>{let o={type:"VARIADIC",meta:{syntax:"prefix"===e.meta.position?"PREFIX_DOTS":"suffix"===e.meta.position?"SUFFIX_DOTS":"ONLY_DOTS"}};return void 0!==e.element&&(o.value=t(e.element)),o},"JsdocTypeVariadic"),JsdocTypeName:r(e=>({type:"NAME",name:e.value}),"JsdocTypeName"),JsdocTypeTypeof:r((e,t)=>({type:"TYPE_QUERY",name:t(e.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:r((e,t)=>({type:"TUPLE",entries:e.elements.map(t)}),"JsdocTypeTuple"),JsdocTypeKeyof:r((e,t)=>({type:"KEY_QUERY",value:t(e.element)}),"JsdocTypeKeyof"),JsdocTypeImport:r(e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:V(e.element.meta.quote),string:e.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:r(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:r(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:r((e,t)=>{let o=Ze(e),i={type:e.arrow?"ARROW":"FUNCTION",params:o.params.map(l=>{if("JsdocTypeKeyValue"===l.type){if(void 0===l.right)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:l.key,typeName:t(l.right)}}return t(l)}),new:null,returns:null};return void 0!==o.this?i.this=t(o.this):e.arrow||(i.this=null),void 0!==o.new&&(i.new=t(o.new)),void 0!==e.returnType&&(i.returns=t(e.returnType)),i},"JsdocTypeFunction"),JsdocTypeGeneric:r((e,t)=>{let o={type:"GENERIC",subject:t(e.left),objects:e.elements.map(t),meta:{syntax:"square"===e.meta.brackets?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return"square"===e.meta.brackets&&"JsdocTypeFunction"===e.elements[0].type&&!e.elements[0].parenthesis&&(o.objects[0]={type:"NAME",name:"function"}),o},"JsdocTypeGeneric"),JsdocTypeObjectField:r((e,t)=>{if("string"!=typeof e.key)throw new Error("Index signatures and mapped types are not supported");if(void 0===e.right)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:V(e.meta.quote),value:null,readonly:!1};let o=t(e.right);return e.optional&&(o={type:"OPTIONAL",value:o,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:V(e.meta.quote),value:o,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:r((e,t)=>{if(void 0===e.right)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let o=t(e.right);return e.optional&&(o={type:"OPTIONAL",value:o,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:o,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:r((e,t)=>{let o=[];for(let i of e.elements)("JsdocTypeObjectField"===i.type||"JsdocTypeJsdocObjectField"===i.type)&&o.push(t(i));return{type:"RECORD",entries:o}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:r(e=>{if("module"!==e.specialType)throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:V(e.meta.quote),path:e.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:r((e,t)=>{let i,l,o=!1;"JsdocTypeSpecialNamePath"===e.right.type&&"event"===e.right.specialType?(o=!0,i=e.right.value,l=V(e.right.meta.quote)):(i=e.right.value,l=V(e.right.meta.quote));let f={type:lr(e.pathType),owner:t(e.left),name:i,quoteStyle:l,hasEventPrefix:o};if("MODULE"===f.owner.type){let d=f.owner;return f.owner=f.owner.value,d.value=f,d}return f},"JsdocTypeNamePath"),JsdocTypeUnion:r((e,t)=>ve("UNION",e.elements.map(t)),"JsdocTypeUnion"),JsdocTypeParenthesis:r((e,t)=>({type:"PARENTHESIS",value:t(J(e.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:r(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:r(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:r(e=>({type:"STRING_VALUE",quoteStyle:V(e.meta.quote),string:e.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:r((e,t)=>ve("INTERSECTION",e.elements.map(t)),"JsdocTypeIntersection"),JsdocTypeNumber:r(e=>({type:"NUMBER_VALUE",number:e.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:N,JsdocTypeProperty:N,JsdocTypePredicate:N,JsdocTypeMappedType:N,JsdocTypeIndexSignature:N,JsdocTypeAsserts:N};function mr(e){return W(ur,e)}function fr(){return{JsdocTypeIntersection:r((e,t)=>({type:"JsdocTypeIntersection",elements:e.elements.map(t)}),"JsdocTypeIntersection"),JsdocTypeGeneric:r((e,t)=>({type:"JsdocTypeGeneric",left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:r(e=>e,"JsdocTypeNullable"),JsdocTypeUnion:r((e,t)=>({type:"JsdocTypeUnion",elements:e.elements.map(t)}),"JsdocTypeUnion"),JsdocTypeUnknown:r(e=>e,"JsdocTypeUnknown"),JsdocTypeUndefined:r(e=>e,"JsdocTypeUndefined"),JsdocTypeTypeof:r((e,t)=>({type:"JsdocTypeTypeof",element:t(e.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:r((e,t)=>{let o={type:"JsdocTypeSymbol",value:e.value};return void 0!==e.element&&(o.element=t(e.element)),o},"JsdocTypeSymbol"),JsdocTypeOptional:r((e,t)=>({type:"JsdocTypeOptional",element:t(e.element),meta:{position:e.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:r((e,t)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(t)}),"JsdocTypeObject"),JsdocTypeNumber:r(e=>e,"JsdocTypeNumber"),JsdocTypeNull:r(e=>e,"JsdocTypeNull"),JsdocTypeNotNullable:r((e,t)=>({type:"JsdocTypeNotNullable",element:t(e.element),meta:{position:e.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:r(e=>e,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:r((e,t)=>({type:"JsdocTypeObjectField",key:e.key,right:void 0===e.right?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r((e,t)=>({type:"JsdocTypeJsdocObjectField",left:t(e.left),right:t(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:r((e,t)=>({type:"JsdocTypeKeyValue",key:e.key,right:void 0===e.right?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:r((e,t)=>({type:"JsdocTypeImport",element:t(e.element)}),"JsdocTypeImport"),JsdocTypeAny:r(e=>e,"JsdocTypeAny"),JsdocTypeStringValue:r(e=>e,"JsdocTypeStringValue"),JsdocTypeNamePath:r(e=>e,"JsdocTypeNamePath"),JsdocTypeVariadic:r((e,t)=>{let o={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return void 0!==e.element&&(o.element=t(e.element)),o},"JsdocTypeVariadic"),JsdocTypeTuple:r((e,t)=>({type:"JsdocTypeTuple",elements:e.elements.map(t)}),"JsdocTypeTuple"),JsdocTypeName:r(e=>e,"JsdocTypeName"),JsdocTypeFunction:r((e,t)=>{let o={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return void 0!==e.returnType&&(o.returnType=t(e.returnType)),o},"JsdocTypeFunction"),JsdocTypeKeyof:r((e,t)=>({type:"JsdocTypeKeyof",element:t(e.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:r((e,t)=>({type:"JsdocTypeParenthesis",element:t(e.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:r(e=>e,"JsdocTypeProperty"),JsdocTypePredicate:r((e,t)=>({type:"JsdocTypePredicate",left:t(e.left),right:t(e.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:r((e,t)=>({type:"JsdocTypeIndexSignature",key:e.key,right:t(e.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:r((e,t)=>({type:"JsdocTypeMappedType",key:e.key,right:t(e.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:r((e,t)=>({type:"JsdocTypeAsserts",left:t(e.left),right:t(e.right)}),"JsdocTypeAsserts")}}r(mr,"jtpTransform"),r(fr,"identityTransformRules");let tt={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function ke(e,t,o,i,l){i?.(e,t,o);let f=tt[e.type];for(let d of f){let h=e[d];if(void 0!==h)if(Array.isArray(h))for(let D of h)ke(D,e,d,i,l);else ke(h,e,d,i,l)}l?.(e,t,o)}function yr(e,t,o){ke(e,void 0,void 0,t,o)}r(ke,"_traverse"),r(yr,"traverse"),n.catharsisTransform=cr,n.identityTransformRules=fr,n.jtpTransform=mr,n.parse=Qe,n.stringify=ar,n.stringifyRules=et,n.transform=W,n.traverse=yr,n.tryParse=or,n.visitorKeys=tt},"object"==typeof fe&&typeof yt<"u"?s(fe):"function"==typeof define&&__webpack_require__.amdO?define(["exports"],s):s((n=typeof globalThis<"u"?globalThis:n||self).jtpp={})},()=>(s||n((s={exports:{}}).exports,s),s.exports)),Sr=r(n=>"literal"===n.name,"isLiteral"),Er=r(n=>n.value.replace(/['|"]/g,""),"toEnumOption"),Nr=r(n=>{switch(n.type){case"function":return{name:"function"};case"object":let s={};return n.signature.properties.forEach(a=>{s[a.key]=B(a.value)}),{name:"object",value:s};default:throw new storybook_internal_preview_errors__WEBPACK_IMPORTED_MODULE_0__.UnknownArgTypesError({type:n,language:"Flow"})}},"convertSig"),B=r(n=>{let{name:s,raw:a}=n,p={};switch(typeof a<"u"&&(p.raw=a),n.name){case"literal":return{...p,name:"other",value:n.value};case"string":case"number":case"symbol":case"boolean":return{...p,name:s};case"Array":return{...p,name:"array",value:n.elements.map(B)};case"signature":return{...p,...Nr(n)};case"union":return n.elements?.every(Sr)?{...p,name:"enum",value:n.elements?.map(Er)}:{...p,name:s,value:n.elements?.map(B)};case"intersection":return{...p,name:s,value:n.elements?.map(B)};default:return{...p,name:"other",value:s}}},"convert");function X(n){if(!n||"object"!=typeof n)return!1;let s=Object.getPrototypeOf(n);return(null===s||s===Object.prototype||null===Object.getPrototypeOf(s))&&"[object Object]"===Object.prototype.toString.call(n)}function Re(n,s){let a={},p=Object.keys(n);for(let c=0;c<p.length;c++){let u=p[c],m=n[u];a[u]=s(m,u,n)}return a}r(X,"isPlainObject"),r(Re,"mapValues");var ot=/^['"]|['"]$/g,Dr=r(n=>n.replace(ot,""),"trimQuotes"),Or=r(n=>ot.test(n),"includesQuotes"),ie=r(n=>{let s=Dr(n);return Or(n)||Number.isNaN(Number(s))?s:Number(s)},"parseLiteral"),vr=/^\(.*\) => /,C=r(n=>{let{name:s,raw:a,computed:p,value:c}=n,u={};switch(typeof a<"u"&&(u.raw=a),s){case"enum":{let T=p?c:c.map(g=>ie(g.value));return{...u,name:s,value:T}}case"string":case"number":case"symbol":case"object":return{...u,name:s};case"func":return{...u,name:"function"};case"bool":case"boolean":return{...u,name:"boolean"};case"arrayOf":case"array":return{...u,name:"array",value:c&&C(c)};case"objectOf":return{...u,name:s,value:C(c)};case"shape":case"exact":let m=Re(c,T=>C(T));return{...u,name:"object",value:m};case"union":return{...u,name:"union",value:c.map(T=>C(T))};default:{if(s?.indexOf("|")>0)try{let P=s.split("|").map(b=>JSON.parse(b));return{...u,name:"enum",value:P}}catch{}let T=c?`${s}(${c})`:s,g=vr.test(s)?"function":"other";return{...u,name:g,value:T}}}},"convert"),Ar=r(n=>{switch(n.type){case"function":return{name:"function"};case"object":let s={};return n.signature.properties.forEach(a=>{s[a.key]=M(a.value)}),{name:"object",value:s};default:throw new storybook_internal_preview_errors__WEBPACK_IMPORTED_MODULE_0__.UnknownArgTypesError({type:n,language:"Typescript"})}},"convertSig"),M=r(n=>{let{name:s,raw:a}=n,p={};switch(typeof a<"u"&&(p.raw=a),n.name){case"string":case"number":case"symbol":case"boolean":return{...p,name:s};case"Array":return{...p,name:"array",value:n.elements.map(M)};case"signature":return{...p,...Ar(n)};case"union":let c;return c=n.elements?.every(u=>"literal"===u.name)?{...p,name:"enum",value:n.elements?.map(u=>ie(u.value))}:{...p,name:s,value:n.elements?.map(M)},c;case"intersection":return{...p,name:s,value:n.elements?.map(M)};default:return{...p,name:"other",value:s}}},"convert"),pe=r(n=>{let{type:s,tsType:a,flowType:p}=n;try{if(null!=s)return C(s);if(null!=a)return M(a);if(null!=p)return B(p)}catch(c){console.error(c)}return null},"convert"),Ir=(c=>(c.JAVASCRIPT="JavaScript",c.FLOW="Flow",c.TYPESCRIPT="TypeScript",c.UNKNOWN="Unknown",c))(Ir||{}),Rr=["null","undefined"];function K(n){return Rr.some(s=>s===n)}r(K,"isDefaultValueBlacklisted");var v,st=r(n=>{if(!n)return"";if("string"==typeof n)return n;throw new Error(`Description: expected string, got: ${JSON.stringify(n)}`)},"str");function at(n){return!!n.__docgenInfo}function it(n){return null!=n&&Object.keys(n).length>0}function pt(n,s){return at(n)?n.__docgenInfo[s]:null}function ct(n){return at(n)?st(n.__docgenInfo.description):""}function je(n){return/^\s+$/.test(n)}function lt(n){let s=n.match(/\r+$/);return null==s?["",n]:[n.slice(-s[0].length),n.slice(0,-s[0].length)]}function A(n){let s=n.match(/^\s+/);return null==s?["",n]:[n.slice(0,s[0].length),n.slice(s[0].length)]}function ut(n){return n.split(/\n/)}function mt(n={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},n)}function Fe(n={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},n)}r(at,"hasDocgen"),r(it,"isValidDocgenSection"),r(pt,"getDocgenSection"),r(ct,"getDocgenDescription"),function(n){n.start="/**",n.nostart="/***",n.delim="*",n.end="*/"}(v=v||(v={})),r(je,"isSpace"),r(lt,"splitCR"),r(A,"splitSpace"),r(ut,"splitLines"),r(mt,"seedSpec"),r(Fe,"seedTokens");var jr=/^@\S+/;function _e({fence:n="```"}={}){let s=Fr(n),a=r((p,c)=>s(p)?!c:c,"toggleFence");return r(function(c){let u=[[]],m=!1;for(let T of c)jr.test(T.tokens.description)&&!m?u.push([T]):u[u.length-1].push(T),m=a(T.tokens.description,m);return u},"parseBlock")}function Fr(n){return"string"==typeof n?s=>s.split(n).length%2==0:n}function Ve({startLine:n=0,markers:s=v}={}){let a=null,p=n;return r(function(u){let m=u,T=Fe();if([T.lineEnd,m]=lt(m),[T.start,m]=A(m),null===a&&m.startsWith(s.start)&&!m.startsWith(s.nostart)&&(a=[],T.delimiter=m.slice(0,s.start.length),m=m.slice(s.start.length),[T.postDelimiter,m]=A(m)),null===a)return p++,null;let g=m.trimRight().endsWith(s.end);if(""===T.delimiter&&m.startsWith(s.delim)&&!m.startsWith(s.end)&&(T.delimiter=s.delim,m=m.slice(s.delim.length),[T.postDelimiter,m]=A(m)),g){let P=m.trimRight();T.end=m.slice(P.length-s.end.length),m=P.slice(0,-s.end.length)}if(T.description=m,a.push({number:p,source:u,tokens:T}),p++,g){let P=a.slice();return a=null,P}return null},"parseSource")}function Le({tokenizers:n}){return r(function(a){var p;let c=mt({source:a});for(let u of n)if(c=u(c),null!==(p=c.problems[c.problems.length-1])&&void 0!==p&&p.critical)break;return c},"parseSpec")}function ce(){return n=>{let{tokens:s}=n.source[0],a=s.description.match(/\s*(@(\S+))(\s*)/);return null===a?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(s.tag=a[1],s.postTag=a[3],s.description=s.description.slice(a[0].length),n.tag=a[2],n)}}function le(n="compact"){let s=Vr(n);return a=>{let p=0,c=[];for(let[T,{tokens:g}]of a.source.entries()){let P="";if(0===T&&"{"!==g.description[0])return a;for(let b of g.description)if("{"===b&&p++,"}"===b&&p--,P+=b,0===p)break;if(c.push([g,P]),0===p)break}if(0!==p)return a.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:a.source[0].number,critical:!0}),a;let u=[],m=c[0][0].postDelimiter.length;for(let[T,[g,P]]of c.entries())g.type=P,T>0&&(g.type=g.postDelimiter.slice(m)+P,g.postDelimiter=g.postDelimiter.slice(0,m)),[g.postType,g.description]=A(g.description.slice(P.length)),u.push(g.type);return u[0]=u[0].slice(1),u[u.length-1]=u[u.length-1].slice(0,-1),a.type=s(u),a}}r(_e,"getParser"),r(Fr,"getFencer"),r(Ve,"getParser"),r(Le,"getParser"),r(ce,"tagTokenizer"),r(le,"typeTokenizer");var _r=r(n=>n.trim(),"trim");function Vr(n){return"compact"===n?s=>s.map(_r).join(""):"preserve"===n?s=>s.join("\n"):n}r(Vr,"getJoiner");var Lr=r(n=>n&&n.startsWith('"')&&n.endsWith('"'),"isQuoted");function ue(){let n=r((s,{tokens:a},p)=>""===a.type?s:p,"typeEnd");return s=>{let{tokens:a}=s.source[s.source.reduce(n,0)],p=a.description.trimLeft(),c=p.split('"');if(c.length>1&&""===c[0]&&c.length%2==1)return s.name=c[1],a.name=`"${c[1]}"`,[a.postName,a.description]=A(p.slice(a.name.length)),s;let g,u=0,m="",T=!1;for(let b of p){if(0===u&&je(b))break;"["===b&&u++,"]"===b&&u--,m+=b}if(0!==u)return s.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:s.source[0].number,critical:!0}),s;let P=m;if("["===m[0]&&"]"===m[m.length-1]){T=!0,m=m.slice(1,-1);let b=m.split("=");if(m=b[0].trim(),void 0!==b[1]&&(g=b.slice(1).join("=").trim()),""===m)return s.problems.push({code:"spec:name:empty-name",message:"empty name",line:s.source[0].number,critical:!0}),s;if(""===g)return s.problems.push({code:"spec:name:empty-default",message:"empty default value",line:s.source[0].number,critical:!0}),s;if(!Lr(g)&&/=(?!>)/.test(g))return s.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:s.source[0].number,critical:!0}),s}return s.optional=T,s.name=m,a.name=P,void 0!==g&&(s.default=g),[a.postName,a.description]=A(p.slice(a.name.length)),s}}function me(n="compact",s=v){let a=Ue(n);return p=>(p.description=a(p.source,s),p)}function Ue(n){return"compact"===n?Ur:"preserve"===n?Mr:n}function Ur(n,s=v){return n.map(({tokens:{description:a}})=>a.trim()).filter(a=>""!==a).join(" ")}r(ue,"nameTokenizer"),r(me,"descriptionTokenizer"),r(Ue,"getJoiner"),r(Ur,"compactJoiner");var Br=r((n,{tokens:s},a)=>""===s.type?n:a,"lineNo"),Cr=r(({tokens:n})=>(""===n.delimiter?n.start:n.postDelimiter.slice(1))+n.description,"getDescription");function Mr(n,s=v){if(0===n.length)return"";""===n[0].tokens.description&&n[0].tokens.delimiter===s.start&&(n=n.slice(1));let a=n[n.length-1];return void 0!==a&&""===a.tokens.description&&a.tokens.end.endsWith(s.end)&&(n=n.slice(0,-1)),(n=n.slice(n.reduce(Br,0))).map(Cr).join("\n")}function Be({startLine:n=0,fence:s="```",spacing:a="compact",markers:p=v,tokenizers:c=[n=>{let{tokens:s}=n.source[0],a=s.description.match(/\s*(@(\S+))(\s*)/);return null===a?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(s.tag=a[1],s.postTag=a[3],s.description=s.description.slice(a[0].length),n.tag=a[2],n)},le(a),ue(),me(a)]}={}){if(n<0||n%1>0)throw new Error("Invalid startLine");let u=Ve({startLine:n,markers:p}),m=_e({fence:s}),T=Le({tokenizers:c}),g=Ue(a);return function(P){let b=[];for(let de of ut(P)){let q=u(de);if(null===q)continue;let S=m(q),z=S.slice(1).map(T);b.push({description:g(S[0],p),tags:z,source:q,problems:z.reduce((Te,ge)=>Te.concat(ge.problems),[])})}return b}}function Kr(n){return n.start+n.delimiter+n.postDelimiter+n.tag+n.postTag+n.type+n.postType+n.name+n.postName+n.description+n.end+n.lineEnd}function Ce(){return n=>n.source.map(({tokens:s})=>Kr(s)).join("\n")}r(Mr,"preserveJoiner"),r(Be,"getParser"),r(Kr,"join"),r(Ce,"getStringifier");Object.keys({line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0});function ft(n,s={}){return Be(s)(n)}r(ft,"parse");Ce();var $=((n,s,a)=>(a=null!=n?dr(xr(n)):{},((n,s,a,p)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let c of gr(s))!hr.call(n,c)&&c!==a&&Ie(n,c,{get:()=>s[c],enumerable:!(p=Tr(s,c))||p.enumerable});return n})(!s&&n&&n.__esModule?a:Ie(a,"default",{value:n,enumerable:!0}),n)))(dt(),1);function qr(n){return null!=n&&n.includes("@")}function Yr(n){let c=ft("/**\n"+(n??"").split("\n").map(u=>` * ${u}`).join("\n")+"\n*/",{spacing:"preserve"});if(!c||0===c.length)throw new Error("Cannot parse JSDoc tags.");return c[0]}r(qr,"containsJsDoc"),r(Yr,"parse");var Wr={tags:["param","arg","argument","returns","ignore","deprecated"]},Tt=r((n,s=Wr)=>{if(!qr(n))return{includesJsDoc:!1,ignore:!1};let a=Yr(n),p=Gr(a,s.tags);return p.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:a.description.trim(),extractedTags:p}},"parseJsDoc");function Gr(n,s){let a={params:null,deprecated:null,returns:null,ignore:!1};for(let p of n.tags)if(void 0===s||s.includes(p.tag)){if("ignore"===p.tag){a.ignore=!0;break}switch(p.tag){case"param":case"arg":case"argument":{let c=zr(p);null!=c&&(null==a.params&&(a.params=[]),a.params.push(c));break}case"deprecated":{let c=Hr(p);null!=c&&(a.deprecated=c);break}case"returns":{let c=Qr(p);null!=c&&(a.returns=c);break}}}return a}function Xr(n){return n.replace(/[\.-]$/,"")}function zr(n){if(!n.name||"-"===n.name)return null;let s=ht(n.type);return{name:n.name,type:s,description:xt(n.description),getPrettyName:r(()=>Xr(n.name),"getPrettyName"),getTypeName:r(()=>s?Jt(s):null,"getTypeName")}}function Hr(n){return n.name?gt(n.name,n.description):null}function gt(n,s){return xt(""===n?s:`${n} ${s}`)}function xt(n){let s=n.replace(/^- /g,"").trim();return""===s?null:s}function Qr(n){let s=ht(n.type);return s?{type:s,description:gt(n.name,n.description),getTypeName:r(()=>Jt(s),"getTypeName")}:null}r(Gr,"extractJsDocTags"),r(Xr,"normaliseParamName"),r(zr,"extractParam"),r(Hr,"extractDeprecated"),r(gt,"joinNameAndDescription"),r(xt,"normaliseDescription"),r(Qr,"extractReturns");var _=(0,$.stringifyRules)(),Zr=_.JsdocTypeObject;function ht(n){try{return(0,$.parse)(n,"typescript")}catch{return null}}function Jt(n){return(0,$.transform)(_,n)}_.JsdocTypeAny=()=>"any",_.JsdocTypeObject=(n,s)=>`(${Zr(n,s)})`,_.JsdocTypeOptional=(n,s)=>s(n.element),_.JsdocTypeNullable=(n,s)=>s(n.element),_.JsdocTypeNotNullable=(n,s)=>s(n.element),_.JsdocTypeUnion=(n,s)=>n.elements.map(s).join("|"),r(ht,"extractType"),r(Jt,"extractTypeName");function Ke(n){return n.length>90}function wt(n){return n.length>50}function w(n,s){return n===s?{summary:n}:{summary:n,detail:s}}r(Ke,"isTooLongForTypeSummary"),r(wt,"isTooLongForDefaultValueSummary"),r(w,"createSummaryValue");function Pt(n,s){if(null!=n){let{value:a}=n;if(!K(a))return wt(a)?w(s?.name,a):w(a)}return null}function bt({name:n,value:s,elements:a,raw:p}){return s??(null!=a?a.map(bt).join(" | "):p??n)}function en({name:n,raw:s,elements:a}){return w(null!=a?a.map(bt).join(" | "):null!=s?s.replace(/^\|\s*/,""):n)}function tn({type:n,raw:s}){return w(null!=s?s:n)}function rn({type:n,raw:s}){return null!=s?Ke(s)?w(n,s):w(s):w(n)}function nn(n){let{type:s}=n;return"object"===s?rn(n):tn(n)}function on({name:n,raw:s}){return null!=s?Ke(s)?w(n,s):w(s):w(n)}function St(n){if(null==n)return null;switch(n.name){case"union":return en(n);case"signature":return nn(n);default:return on(n)}}r(Pt,"createDefaultValue"),r(bt,"generateUnionElement"),r(en,"generateUnion"),r(tn,"generateFuncSignature"),r(rn,"generateObjectSignature"),r(nn,"generateSignature"),r(on,"generateDefault"),r(St,"createType");var Et=r((n,s)=>{let{flowType:a,description:p,required:c,defaultValue:u}=s;return{name:n,type:St(a),required:c,description:p,defaultValue:Pt(u??null,a??null)}},"createFlowPropDef");function Nt({defaultValue:n}){if(null!=n){let{value:s}=n;if(!K(s))return w(s)}return null}function Dt({tsType:n,required:s}){if(null==n)return null;let a=n.name;return s||(a=a.replace(" | undefined","")),w(["Array","Record","signature"].includes(n.name)?n.raw:a)}r(Nt,"createDefaultValue"),r(Dt,"createType");var Ot=r((n,s)=>{let{description:a,required:p}=s;return{name:n,type:Dt(s),required:p,description:a,defaultValue:Nt(s)}},"createTsPropDef");function sn(n){return null!=n?w(n.name):null}function an(n){let{computed:s,func:a}=n;return typeof s>"u"&&typeof a>"u"}function pn(n){return!!n&&("string"===n.name||"enum"===n.name&&(Array.isArray(n.value)&&n.value.every(({value:s})=>"string"==typeof s&&'"'===s[0]&&'"'===s[s.length-1])))}function cn(n,s){if(null!=n){let{value:a}=n;if(!K(a))return an(n)&&pn(s)?w(JSON.stringify(a)):w(a)}return null}function vt(n,s,a){let{description:p,required:c,defaultValue:u}=a;return{name:n,type:sn(s),required:c,description:p,defaultValue:cn(u,s)}}function ye(n,s){if(s?.includesJsDoc){let{description:a,extractedTags:p}=s;null!=a&&(n.description=s.description);let c={...p,params:p?.params?.map(u=>({name:u.getPrettyName(),description:u.description}))};Object.values(c).filter(Boolean).length>0&&(n.jsDocTags=c)}return n}r(sn,"createType"),r(an,"isReactDocgenTypescript"),r(pn,"isStringValued"),r(cn,"createDefaultValue"),r(vt,"createBasicPropDef"),r(ye,"applyJsDocResult");var ln=r((n,s,a)=>{let p=vt(n,s.type,s);return p.sbType=pe(s),ye(p,a)},"javaScriptFactory"),un=r((n,s,a)=>{let p=Ot(n,s);return p.sbType=pe(s),ye(p,a)},"tsFactory"),mn=r((n,s,a)=>{let p=Et(n,s);return p.sbType=pe(s),ye(p,a)},"flowFactory"),fn=r((n,s,a)=>ye(vt(n,{name:"unknown"},s),a),"unknownFactory"),$e=r(n=>{switch(n){case"JavaScript":return ln;case"TypeScript":return un;case"Flow":return mn;default:return fn}},"getPropDefFactory"),kt=r(n=>null!=n.type?"JavaScript":null!=n.flowType?"Flow":null!=n.tsType?"TypeScript":"Unknown","getTypeSystem"),yn=r(n=>{let s=kt(n[0]),a=$e(s);return n.map(p=>{let c=p;return p.type?.elements&&(c={...p,type:{...p.type,value:p.type.elements}}),At(c.name,c,s,a)})},"extractComponentSectionArray"),dn=r(n=>{let s=Object.keys(n),a=kt(n[s[0]]),p=$e(a);return s.map(c=>{let u=n[c];return null!=u?At(c,u,a,p):null}).filter(Boolean)},"extractComponentSectionObject"),aa=r((n,s)=>{let a=pt(n,s);return it(a)?Array.isArray(a)?yn(a):dn(a):[]},"extractComponentProps");function At(n,s,a,p){let c=Tt(s.description);return c.includesJsDoc&&c.ignore?null:{propDef:p(n,s,c),jsDocTags:c.extractedTags,docgenInfo:s,typeSystem:a}}function ia(n){return null!=n?ct(n):""}r(At,"extractProp"),r(ia,"extractComponentDescription");var qe=r((...n)=>{let s={},a=n.filter(Boolean),p=a.reduce((c,u)=>(Object.entries(u).forEach(([m,T])=>{let g=c[m];Array.isArray(T)||typeof g>"u"?c[m]=T:X(T)&&X(g)?s[m]=!0:typeof T<"u"&&(c[m]=T)}),c),{});return Object.keys(s).forEach(c=>{let u=a.filter(Boolean).map(m=>m[c]).filter(m=>typeof m<"u");u.every(m=>X(m))?p[c]=qe(...u):p[c]=u[u.length-1]}),p},"combineParameters"),ya=r(n=>{let{component:s,argTypes:a,parameters:{docs:p={}}}=n,{extractArgTypes:c}=p;if(!c||!s)return a;let u=c(s);return u?qe(u,a):a},"enhanceArgTypes"),It="storybook/docs",ha=`${It}/snippet-rendered`,Tn=(p=>(p.AUTO="auto",p.CODE="code",p.DYNAMIC="dynamic",p))(Tn||{})}}]);
409
+ //# sourceMappingURL=254.e01ff6bb.iframe.bundle.js.map