create-idia-app 0.2.0 → 0.2.2

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 (72) hide show
  1. package/README.md +47 -53
  2. package/dist/index.js +6 -4
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/template/package.json +2 -11
  6. package/template/src/providers/AppProviders.tsx +33 -3
  7. package/template/.cursor/rules/idia-ui-ds-brain.mdc +0 -32
  8. package/template/.cursor/rules/idia-ui-forms.mdc +0 -34
  9. package/template/.cursor/rules/idia-ui-overlays.mdc +0 -23
  10. package/template/.idia/brain/AGENTS.md +0 -37
  11. package/template/.idia/brain/ai/agents/retrieval-cheatsheet.md +0 -209
  12. package/template/.idia/brain/ai/skills/components/button/SKILL.md +0 -32
  13. package/template/.idia/brain/ai/skills/ds-brain-action-hierarchy/SKILL.md +0 -46
  14. package/template/.idia/brain/ai/skills/ds-brain-forms/SKILL.md +0 -67
  15. package/template/.idia/brain/ai/skills/ds-brain-index/SKILL.md +0 -76
  16. package/template/.idia/brain/ai/skills/ds-brain-overlays/SKILL.md +0 -30
  17. package/template/.idia/brain/ai/skills/ds-brain-retrieval/SKILL.md +0 -54
  18. package/template/.idia/brain/registry/ai-index.generated.json +0 -833
  19. package/template/.idia/brain/registry/component-registry.generated.json +0 -2947
  20. package/template/.idia/manifest.json +0 -17
  21. package/template/.storybook/main.ts +0 -9
  22. package/template/.storybook/preview.tsx +0 -20
  23. package/template/AGENTS.md +0 -11
  24. package/template/src/stories/Button.stories.tsx +0 -31
  25. package/template/storybook-static/assets/Button.stories-CfapbH7U.js +0 -196
  26. package/template/storybook-static/assets/Color-F6OSRLHC-CFwL-RM_.js +0 -1
  27. package/template/storybook-static/assets/DocsRenderer-CFRXHY34-AADCayzw.js +0 -729
  28. package/template/storybook-static/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
  29. package/template/storybook-static/assets/axe-d-K7rF9D.js +0 -30
  30. package/template/storybook-static/assets/chunk-XP5HYGXS-BHXC9YeQ.js +0 -1
  31. package/template/storybook-static/assets/client-DGEjZp2f.js +0 -25
  32. package/template/storybook-static/assets/entry-preview-Dc5wkB2s.js +0 -2
  33. package/template/storybook-static/assets/entry-preview-docs-BaxqCxyK.js +0 -46
  34. package/template/storybook-static/assets/iframe-Bl15XKnQ.js +0 -211
  35. package/template/storybook-static/assets/index-Bhelpi4i.js +0 -11
  36. package/template/storybook-static/assets/index-C_pJYAGD.js +0 -1
  37. package/template/storybook-static/assets/index-D5Inswos.js +0 -1
  38. package/template/storybook-static/assets/index-NGyRR_en.js +0 -9
  39. package/template/storybook-static/assets/index-zmTGQa7e.js +0 -9
  40. package/template/storybook-static/assets/jsx-runtime-BjG_zV1W.js +0 -9
  41. package/template/storybook-static/assets/preview-BNUqaTig.js +0 -1
  42. package/template/storybook-static/assets/preview-Cfo7ZnTc.js +0 -2
  43. package/template/storybook-static/assets/preview-CrKLV1aL.css +0 -1
  44. package/template/storybook-static/assets/preview-DkVJIpDn.js +0 -2
  45. package/template/storybook-static/assets/preview-DrRsTNnS.js +0 -17
  46. package/template/storybook-static/assets/react-18-Bfhi6ooJ.js +0 -1
  47. package/template/storybook-static/assets/react-FmFgRqLi.js +0 -1
  48. package/template/storybook-static/assets/react-native-gesture-handler-BzS7UzhZ.js +0 -52
  49. package/template/storybook-static/assets/test-utils-X4YdDMST.js +0 -9
  50. package/template/storybook-static/favicon.svg +0 -1
  51. package/template/storybook-static/fonts/Inter.ttf +0 -0
  52. package/template/storybook-static/fonts/NunitoSans.woff2 +0 -0
  53. package/template/storybook-static/iframe.html +0 -668
  54. package/template/storybook-static/index.html +0 -145
  55. package/template/storybook-static/index.json +0 -1
  56. package/template/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  57. package/template/storybook-static/nunito-sans-bold.woff2 +0 -0
  58. package/template/storybook-static/nunito-sans-italic.woff2 +0 -0
  59. package/template/storybook-static/nunito-sans-regular.woff2 +0 -0
  60. package/template/storybook-static/project.json +0 -1
  61. package/template/storybook-static/sb-addons/a11y-2/manager-bundle.js +0 -3
  62. package/template/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
  63. package/template/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  64. package/template/storybook-static/sb-common-assets/favicon.svg +0 -1
  65. package/template/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  66. package/template/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  67. package/template/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  68. package/template/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  69. package/template/storybook-static/sb-manager/globals-module-info.js +0 -1052
  70. package/template/storybook-static/sb-manager/globals-runtime.js +0 -41775
  71. package/template/storybook-static/sb-manager/globals.js +0 -48
  72. package/template/storybook-static/sb-manager/runtime.js +0 -12048
@@ -1,11 +0,0 @@
1
- import{c as kn}from"./_commonjsHelpers-Cpj98o6Y.js";var Je={exports:{}};(function(n,a){(function(o,i){i(a)})(kn,function(o){function i(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class p extends Error{constructor(t){super(`No parslet found for token: ${i(t)}`),this.token=t,Object.setPrototypeOf(this,p.prototype)}getToken(){return this.token}}class u extends Error{constructor(t){super(`The parsing ended early. The next token was: ${i(t)}`),this.token=t,Object.setPrototypeOf(this,u.prototype)}getToken(){return this.token}}class d extends Error{constructor(t,r){let s=`Unexpected type: '${t.type}'.`;r!==void 0&&(s+=` Message: ${r}`),super(s),Object.setPrototypeOf(this,d.prototype)}}function f(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function h(e){let t=0,r;const s=e[0];let c=!1;if(s!=="'"&&s!=='"')return null;for(;t<e.length;){if(t++,r=e[t],!c&&r===s){t++;break}c=!c&&r==="\\"}if(r!==s)throw new Error("Unterminated String");return e.slice(0,t)}const v=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),N=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 ae(e){let t=e[0];if(!v.test(t))return null;let r=1;do{if(t=e[r],!N.test(t))break;r++}while(r<e.length);return e.slice(0,r)}const $=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function W(e){var t,r;return(r=(t=$.exec(e))===null||t===void 0?void 0:t[0])!==null&&r!==void 0?r:null}const X=e=>{const t=ae(e);return t==null?null:{type:"Identifier",text:t}};function b(e){return t=>{if(!t.startsWith(e))return null;const r=t[e.length];return r!==void 0&&N.test(r)?null:{type:e,text:e}}}const oe=e=>{const t=h(e);return t==null?null:{type:"StringValue",text:t}},Vt=e=>e.length>0?null:{type:"EOF",text:""},Ut=e=>{const t=W(e);return t===null?null:{type:"Number",text:t}},$t=[Vt,f("=>"),f("("),f(")"),f("{"),f("}"),f("["),f("]"),f("|"),f("&"),f("<"),f(">"),f(","),f(";"),f("*"),f("?"),f("!"),f("="),f(":"),f("..."),f("."),f("#"),f("~"),f("/"),f("@"),b("undefined"),b("null"),b("function"),b("this"),b("new"),b("module"),b("event"),b("extends"),b("external"),b("infer"),b("typeof"),b("keyof"),b("readonly"),b("import"),b("is"),b("in"),b("asserts"),Ut,X,oe],Kt=/^\s*\n\s*/;class K{static create(t){const r=this.read(t);t=r.text;const s=this.read(t);return t=s.text,new K(t,void 0,r.token,s.token)}constructor(t,r,s,c){this.text="",this.text=t,this.previous=r,this.current=s,this.next=c}static read(t,r=!1){r=r||Kt.test(t),t=t.trim();for(const s of $t){const c=s(t);if(c!==null){const y=Object.assign(Object.assign({},c),{startOfLine:r});return t=t.slice(y.text.length),{text:t,token:y}}}throw new Error("Unexpected Token "+t)}advance(){const t=K.read(this.text);return new K(t.text,this.current,this.next,t.token)}}function P(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"||e.type==="JsdocTypeTypeParameter")throw new d(e);return e}function se(e){return e.type==="JsdocTypeKeyValue"?Q(e):P(e)}function Dt(e){return e.type==="JsdocTypeName"?e:Q(e)}function Q(e){if(e.type!=="JsdocTypeKeyValue")throw new d(e);return e}function qt(e){var t;if(e.type==="JsdocTypeVariadic"){if(((t=e.element)===null||t===void 0?void 0:t.type)==="JsdocTypeName")return e;throw new d(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new d(e);return e}function Bt(e){if(e.type==="JsdocTypeTuple"||e.type==="JsdocTypeGeneric"&&e.meta.brackets==="square")return e;throw new d(e)}function ie(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}var m;(function(e){e[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"})(m||(m={}));class V{constructor(t,r,s){this.grammar=t,typeof r=="string"?this._lexer=K.create(r):this._lexer=r,this.baseParser=s}get lexer(){return this._lexer}parse(){const t=this.parseType(m.ALL);if(this.lexer.current.type!=="EOF")throw new u(this.lexer.current);return t}parseType(t){return P(this.parseIntermediateType(t))}parseIntermediateType(t){const r=this.tryParslets(null,t);if(r===null)throw new p(this.lexer.current);return this.parseInfixIntermediateType(r,t)}parseInfixIntermediateType(t,r){let s=this.tryParslets(t,r);for(;s!==null;)t=s,s=this.tryParslets(t,r);return t}tryParslets(t,r){for(const s of this.grammar){const c=s(this,r,t);if(c!==null)return c}return null}consume(t){return Array.isArray(t)||(t=[t]),t.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(t){this._lexer=t.lexer}}function Ie(e){return e==="}"||e==="EOF"||e==="|"||e===","||e===")"||e===">"}const ce=(e,t,r)=>{const s=e.lexer.current.type,c=e.lexer.next.type;return r==null&&s==="?"&&!Ie(c)||r!=null&&s==="?"?(e.consume("?"),r==null?{type:"JsdocTypeNullable",element:e.parseType(m.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:P(r),meta:{position:"suffix"}}):null};function J(e){const t=(r,s,c)=>{const y=r.lexer.current.type,T=r.lexer.next.type;if(c===null){if("parsePrefix"in e&&e.accept(y,T))return e.parsePrefix(r)}else if("parseInfix"in e&&e.precedence>s&&e.accept(y,T))return e.parseInfix(r,c);return null};return Object.defineProperty(t,"name",{value:e.name}),t}const H=J({name:"optionalParslet",accept:e=>e==="=",precedence:m.OPTIONAL,parsePrefix:e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(m.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(e,t)=>(e.consume("="),{type:"JsdocTypeOptional",element:P(t),meta:{position:"suffix"}})}),z=J({name:"numberParslet",accept:e=>e==="Number",parsePrefix:e=>{const t=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:t}}}),Mt=J({name:"parenthesisParslet",accept:e=>e==="(",parsePrefix:e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const t=e.parseIntermediateType(m.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return t.type==="JsdocTypeParameterList"?t:t.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[t]}:{type:"JsdocTypeParenthesis",element:P(t)}}}),Ct=J({name:"specialTypesParslet",accept:(e,t)=>e==="?"&&Ie(t)||e==="null"||e==="undefined"||e==="*",parsePrefix: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)}}),Yt=J({name:"notNullableParslet",accept:e=>e==="!",precedence:m.NULLABLE,parsePrefix:e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(m.NULLABLE),meta:{position:"prefix"}}),parseInfix:(e,t)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:P(t),meta:{position:"suffix"}})});function Gt({allowTrailingComma:e}){return J({name:"parameterListParslet",accept:t=>t===",",precedence:m.PARAMETER_LIST,parseInfix:(t,r)=>{const s=[se(r)];t.consume(",");do try{const c=t.parseIntermediateType(m.PARAMETER_LIST);s.push(se(c))}catch(c){if(c instanceof p)break;throw c}while(t.consume(","));if(s.length>0&&s.slice(0,-1).some(c=>c.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:s}}})}const Wt=J({name:"genericParslet",accept:(e,t)=>e==="<"||e==="."&&t==="<",precedence:m.GENERIC,parseInfix:(e,t)=>{const r=e.consume(".");e.consume("<");const s=[];let c=!1;if(e.consume("infer")){c=!0;const y=e.parseIntermediateType(m.SYMBOL);if(y.type!=="JsdocTypeName")throw new d(y,"A typescript asserts always has to have a name on the left side.");s.push(y)}else do s.push(e.parseType(m.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:P(t),elements:s},c?{infer:!0}:{}),{meta:{brackets:"angle",dot:r}})}}),Xt=J({name:"unionParslet",accept:e=>e==="|",precedence:m.UNION,parseInfix:(e,t)=>{e.consume("|");const r=[];do r.push(e.parseType(m.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[P(t),...r]}}}),le=[ce,H,z,Mt,Ct,Yt,Gt({allowTrailingComma:!0}),Wt,Xt,H];function Z({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:r}){return function(c,y,T){if(T==null||y>=m.NAME_PATH)return null;const g=c.lexer.current.type,x=c.lexer.next.type;if(!(g==="."&&x!=="<"||g==="["&&(e||T.type==="JsdocTypeName")||t&&(g==="~"||g==="#")))return null;let S,ne=!1;c.consume(".")?S="property":c.consume("[")?(S="property-brackets",ne=!0):c.consume("~")?S="inner":(c.consume("#"),S="instance");const De=r!==null?new V(r,c.lexer,c):c,O=De.parseIntermediateType(m.NAME_PATH);c.acceptLexerState(De);let B;switch(O.type){case"JsdocTypeName":B={type:"JsdocTypeProperty",value:O.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":B={type:"JsdocTypeProperty",value:O.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":B={type:"JsdocTypeProperty",value:O.value,meta:{quote:O.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(O.specialType==="event")B=O;else throw new d(O,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new d(O,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ne&&!c.consume("]")){const qe=c.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${qe.type}' with text '${qe.text}'`)}return{type:"JsdocTypeNamePath",left:P(T),right:B,pathType:S}}}function A({allowedAdditionalTokens:e}){return J({name:"nameParslet",accept:t=>t==="Identifier"||t==="this"||t==="new"||e.includes(t),parsePrefix:t=>{const{type:r,text:s}=t.lexer.current;return t.consume(r),{type:"JsdocTypeName",value:s}}})}const D=J({name:"stringValueParslet",accept:e=>e==="StringValue",parsePrefix:e=>{const t=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:t.slice(1,-1),meta:{quote:t[0]==="'"?"single":"double"}}}});function ee({pathGrammar:e,allowedTypes:t}){return J({name:"specialNamePathParslet",accept:r=>t.includes(r),parsePrefix:r=>{const s=r.lexer.current.type;if(r.consume(s),!r.consume(":"))return{type:"JsdocTypeName",value:s};let c,y=r.lexer.current;if(r.consume("StringValue"))c={type:"JsdocTypeSpecialNamePath",value:y.text.slice(1,-1),specialType:s,meta:{quote:y.text[0]==="'"?"single":"double"}};else{let x="";const k=["Identifier","@","/"];for(;k.some(S=>r.consume(S));)x+=y.text,y=r.lexer.current;c={type:"JsdocTypeSpecialNamePath",value:x,specialType:s,meta:{quote:void 0}}}const T=new V(e,r.lexer,r),g=T.parseInfixIntermediateType(c,m.ALL);return r.acceptLexerState(T),P(g)}})}const Re=[A({allowedAdditionalTokens:["external","module"]}),D,z,Z({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],U=[...Re,ee({allowedTypes:["event"],pathGrammar:Re})];function pe(e){let t;if(e.type==="JsdocTypeParameterList")t=e.elements;else if(e.type==="JsdocTypeParenthesis")t=[e.element];else throw new d(e);return t.map(r=>se(r))}function Qt(e){const t=pe(e);if(t.some(r=>r.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return t}function ue({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:r,allowNewAsFunctionKeyword:s}){return J({name:"functionParslet",accept:(c,y)=>c==="function"||s&&c==="new"&&y==="(",parsePrefix:c=>{const y=c.consume("new");c.consume("function");const T=c.lexer.current.type==="(";if(!T){if(!r)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let g={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:y,parenthesis:T};const x=c.parseIntermediateType(m.FUNCTION);if(e===void 0)g.parameters=Qt(x);else{if(y&&x.type==="JsdocTypeFunction"&&x.arrow)return g=x,g.constructor=!0,g;g.parameters=pe(x);for(const k of g.parameters)if(k.type==="JsdocTypeKeyValue"&&!e.includes(k.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${k.type}`)}if(c.consume(":"))g.returnType=c.parseType(m.PREFIX);else if(!t)throw new Error("function is missing return type");return g}})}function ye({allowPostfix:e,allowEnclosingBrackets:t}){return J({name:"variadicParslet",accept:r=>r==="...",precedence:m.PREFIX,parsePrefix:r=>{r.consume("...");const s=t&&r.consume("[");try{const c=r.parseType(m.PREFIX);if(s&&!r.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:P(c),meta:{position:"prefix",squareBrackets:s}}}catch(c){if(c instanceof p){if(s)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw c}},parseInfix:e?(r,s)=>(r.consume("..."),{type:"JsdocTypeVariadic",element:P(s),meta:{position:"suffix",squareBrackets:!1}}):void 0})}const _e=J({name:"symbolParslet",accept:e=>e==="(",precedence:m.SYMBOL,parseInfix:(e,t)=>{if(t.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");const r={type:"JsdocTypeSymbol",value:t.value};if(!e.consume(")")){const s=e.parseIntermediateType(m.SYMBOL);if(r.element=qt(s),!e.consume(")"))throw new Error("Symbol does not end after value")}return r}}),Fe=J({name:"arrayBracketsParslet",precedence:m.ARRAY_BRACKETS,accept:(e,t)=>e==="["&&t==="]",parseInfix:(e,t)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[P(t)],meta:{brackets:"square",dot:!1}})});function de({objectFieldGrammar:e,allowKeyTypes:t}){return J({name:"objectParslet",accept:r=>r==="{",parsePrefix:r=>{r.consume("{");const s={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!r.consume("}")){let c;const y=new V(e,r.lexer,r);for(;;){y.acceptLexerState(r);let T=y.parseIntermediateType(m.OBJECT);r.acceptLexerState(y),T===void 0&&t&&(T=r.parseIntermediateType(m.OBJECT));let g=!1;if(T.type==="JsdocTypeNullable"&&(g=!0,T=T.element),T.type==="JsdocTypeNumber"||T.type==="JsdocTypeName"||T.type==="JsdocTypeStringValue"){let k;T.type==="JsdocTypeStringValue"&&(k=T.meta.quote),s.elements.push({type:"JsdocTypeObjectField",key:T.value.toString(),right:void 0,optional:g,readonly:!1,meta:{quote:k}})}else if(T.type==="JsdocTypeObjectField"||T.type==="JsdocTypeJsdocObjectField")s.elements.push(T);else throw new d(T);if(r.lexer.current.startOfLine)c="linebreak",r.consume(",")||r.consume(";");else if(r.consume(","))c="comma";else if(r.consume(";"))c="semicolon";else break;if(r.lexer.current.type==="}")break}if(s.meta.separator=c??"comma",c==="linebreak"&&(s.meta.propertyIndent=" "),!r.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return s}})}function me({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:r,allowOptional:s}){return J({name:"objectFieldParslet",precedence:m.KEY_VALUE,accept:c=>c===":",parseInfix:(c,y)=>{var T;let g=!1,x=!1;s&&y.type==="JsdocTypeNullable"&&(g=!0,y=y.element),r&&y.type==="JsdocTypeReadonlyProperty"&&(x=!0,y=y.element);const k=(T=c.baseParser)!==null&&T!==void 0?T:c;if(k.acceptLexerState(c),y.type==="JsdocTypeNumber"||y.type==="JsdocTypeName"||y.type==="JsdocTypeStringValue"||ie(y)){if(ie(y)&&!e)throw new d(y);k.consume(":");let S;y.type==="JsdocTypeStringValue"&&(S=y.meta.quote);const ne=k.parseType(m.KEY_VALUE);return c.acceptLexerState(k),{type:"JsdocTypeObjectField",key:ie(y)?y:y.value.toString(),right:ne,optional:g,readonly:x,meta:{quote:S}}}else{if(!t)throw new d(y);k.consume(":");const S=k.parseType(m.KEY_VALUE);return c.acceptLexerState(k),{type:"JsdocTypeJsdocObjectField",left:P(y),right:S}}}})}function fe({allowOptional:e,allowVariadic:t}){return J({name:"keyValueParslet",precedence:m.KEY_VALUE,accept:r=>r===":",parseInfix:(r,s)=>{let c=!1,y=!1;if(e&&s.type==="JsdocTypeNullable"&&(c=!0,s=s.element),t&&s.type==="JsdocTypeVariadic"&&s.element!==void 0&&(y=!0,s=s.element),s.type!=="JsdocTypeName")throw new d(s);r.consume(":");const T=r.parseType(m.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:s.value,right:T,optional:c,variadic:y}}})}const Le=[...le,ue({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),D,ee({allowedTypes:["module","external","event"],pathGrammar:U}),ye({allowEnclosingBrackets:!0,allowPostfix:!0}),A({allowedAdditionalTokens:["keyof"]}),_e,Fe,Z({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:U})],Ht=[...Le,de({objectFieldGrammar:[A({allowedAdditionalTokens:["typeof","module","in"]}),me({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Le],allowKeyTypes:!0}),fe({allowOptional:!0,allowVariadic:!0})],je=J({name:"typeOfParslet",accept:e=>e==="typeof",parsePrefix:e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:e.parseType(m.KEY_OF_TYPE_OF)})}),zt=[A({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),ce,H,D,z,me({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Zt=[...le,de({allowKeyTypes:!1,objectFieldGrammar:zt}),A({allowedAdditionalTokens:["event","external","in"]}),je,ue({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),A({allowedAdditionalTokens:["keyof"]}),ee({allowedTypes:["module"],pathGrammar:U}),Z({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:U}),fe({allowOptional:!1,allowVariadic:!1}),_e],en=J({name:"assertsParslet",accept:e=>e==="asserts",parsePrefix:e=>{e.consume("asserts");const t=e.parseIntermediateType(m.SYMBOL);if(t.type!=="JsdocTypeName")throw new d(t,"A typescript asserts always has to have a name on the left side.");return e.consume("is")?{type:"JsdocTypeAsserts",left:t,right:P(e.parseIntermediateType(m.INFIX))}:{type:"JsdocTypeAssertsPlain",element:t}}});function tn({allowQuestionMark:e}){return J({name:"tupleParslet",accept:t=>t==="[",parsePrefix:t=>{t.consume("[");const r={type:"JsdocTypeTuple",elements:[]};if(t.consume("]"))return r;const s=t.parseIntermediateType(m.ALL);if(s.type==="JsdocTypeParameterList"?s.elements[0].type==="JsdocTypeKeyValue"?r.elements=s.elements.map(Q):r.elements=s.elements.map(P):s.type==="JsdocTypeKeyValue"?r.elements=[Q(s)]:r.elements=[P(s)],!t.consume("]"))throw new Error("Unterminated '['");if(r.elements.some(c=>c.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return r}})}const nn=J({name:"keyOfParslet",accept:e=>e==="keyof",parsePrefix:e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:P(e.parseType(m.KEY_OF_TYPE_OF))})}),rn=J({name:"importParslet",accept:e=>e==="import",parsePrefix:e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");const t=e.parseType(m.PREFIX);if(t.type!=="JsdocTypeStringValue")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}}}),an=J({name:"readonlyPropertyParslet",accept:e=>e==="readonly",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseIntermediateType(m.KEY_VALUE)})}),on=J({name:"arrowFunctionParslet",precedence:m.ARROW,accept:e=>e==="=>",parseInfix:(e,t)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:pe(t).map(Dt),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(m.OBJECT)})}),sn=J({name:"genericArrowFunctionParslet",accept:e=>e==="<",parsePrefix:e=>{const t=[];e.consume("<");do{let s,c=e.parseIntermediateType(m.SYMBOL);if(c.type==="JsdocTypeOptional"&&(c=c.element,s=e.parseType(m.SYMBOL)),c.type!=="JsdocTypeName")throw new d(c);let y;e.consume("extends")&&(y=e.parseType(m.SYMBOL),y.type==="JsdocTypeOptional"&&(y=y.element,s=e.parseType(m.SYMBOL)));const T={type:"JsdocTypeTypeParameter",name:c};if(y!==void 0&&(T.constraint=y),s!==void 0&&(T.defaultValue=s),t.push(T),e.consume(">"))break}while(e.consume(","));const r=e.parseIntermediateType(m.SYMBOL);return r.typeParameters=t,r}}),cn=J({name:"intersectionParslet",accept:e=>e==="&",precedence:m.INTERSECTION,parseInfix:(e,t)=>{e.consume("&");const r=[];do r.push(e.parseType(m.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[P(t),...r]}}}),ln=J({name:"predicateParslet",precedence:m.INFIX,accept:e=>e==="is",parseInfix:(e,t)=>{if(t.type!=="JsdocTypeName")throw new d(t,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:t,right:P(e.parseIntermediateType(m.INFIX))}}}),pn=J({name:"objectSquareBracketPropertyParslet",accept:e=>e==="[",parsePrefix:e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");const t=e.lexer.current.text;e.consume("Identifier");let r;if(e.consume(":")){const s=e.baseParser;s.acceptLexerState(e),r={type:"JsdocTypeIndexSignature",key:t,right:s.parseType(m.INDEX_BRACKETS)},e.acceptLexerState(s)}else if(e.consume("in")){const s=e.baseParser;s.acceptLexerState(e),r={type:"JsdocTypeMappedType",key:t,right:s.parseType(m.ARRAY_BRACKETS)},e.acceptLexerState(s)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return r}}),un=J({name:"readonlyArrayParslet",accept:e=>e==="readonly",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:Bt(e.parseIntermediateType(m.ALL))})}),yn=J({name:"conditionalParslet",precedence:m.INFIX,accept:e=>e==="extends",parseInfix:(e,t)=>{e.consume("extends");const r=e.parseType(m.KEY_OF_TYPE_OF).element,s=e.parseType(m.INFIX);return e.consume(":"),{type:"JsdocTypeConditional",checksType:P(t),extendsType:r,trueType:s,falseType:e.parseType(m.INFIX)}}}),dn=[an,A({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),ce,H,D,z,me({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),pn],mn=[...le,de({allowKeyTypes:!1,objectFieldGrammar:dn}),un,je,nn,rn,D,ue({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),tn({allowQuestionMark:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),en,yn,A({allowedAdditionalTokens:["event","external","in"]}),ee({allowedTypes:["module"],pathGrammar:U}),Fe,on,sn,Z({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:U}),cn,ln,fe({allowVariadic:!0,allowOptional:!0})];function Ve(e,t){switch(t){case"closure":return new V(Zt,e).parse();case"jsdoc":return new V(Ht,e).parse();case"typescript":return new V(mn,e).parse()}}function fn(e,t=["typescript","closure","jsdoc"]){let r;for(const s of t)try{return Ve(e,s)}catch(c){r=c}throw r}function q(e,t){const r=e[t.type];if(r===void 0)throw new Error(`In this set of transform rules exists no rule for type ${t.type}.`);return r(t,s=>q(e,s))}function w(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Ue(e){const t={params:[]};for(const r of e.parameters)r.type==="JsdocTypeKeyValue"?r.key==="this"?t.this=r.right:r.key==="new"?t.new=r.right:t.params.push(r):t.params.push(r);return t}function te(e,t,r){return e==="prefix"?r+t:t+r}function I(e,t){switch(t){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}function $e(){return{JsdocTypeParenthesis:(e,t)=>`(${e.element!==void 0?t(e.element):""})`,JsdocTypeKeyof:(e,t)=>`keyof ${t(e.element)}`,JsdocTypeFunction:(e,t)=>{var r;if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let s=`${e.typeParameters!==void 0?`<${(r=e.typeParameters.map(t).join(", "))!==null&&r!==void 0?r:""}>`:""}(${e.parameters.map(t).join(", ")}) => ${t(e.returnType)}`;return e.constructor&&(s="new "+s),s}else{let s=e.constructor?"new":"function";return e.parenthesis&&(s+=`(${e.parameters.map(t).join(", ")})`,e.returnType!==void 0&&(s+=`: ${t(e.returnType)}`)),s}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,t)=>`[${e.elements.map(t).join(", ")}]`,JsdocTypeVariadic:(e,t)=>e.meta.position===void 0?"...":te(e.meta.position,t(e.element),"..."),JsdocTypeNamePath:(e,t)=>{const r=t(e.left),s=t(e.right);switch(e.pathType){case"inner":return`${r}~${s}`;case"instance":return`${r}#${s}`;case"property":return`${r}.${s}`;case"property-brackets":return`${r}[${s}]`}},JsdocTypeStringValue:e=>I(e.value,e.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(e,t)=>{if(e.meta.brackets==="square"){const r=e.elements[0],s=t(r);return r.type==="JsdocTypeUnion"||r.type==="JsdocTypeIntersection"?`(${s})[]`:`${s}[]`}else return`${t(e.left)}${e.meta.dot?".":""}<${e.infer===!0?"infer ":""}${e.elements.map(t).join(", ")}>`},JsdocTypeImport:(e,t)=>`import(${t(e.element)})`,JsdocTypeObjectField:(e,t)=>{let r="";return e.readonly&&(r+="readonly "),typeof e.key=="string"?r+=I(e.key,e.meta.quote):r+=t(e.key),e.optional&&(r+="?"),e.right===void 0?r:r+`: ${t(e.right)}`},JsdocTypeJsdocObjectField:(e,t)=>`${t(e.left)}: ${t(e.right)}`,JsdocTypeKeyValue:(e,t)=>{let r=e.key;return e.optional&&(r+="?"),e.variadic&&(r="..."+r),e.right===void 0?r:r+`: ${t(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${I(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,t)=>te(e.meta.position,t(e.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(e,t)=>te(e.meta.position,t(e.element),"?"),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,t)=>{var r,s;return`{${(e.meta.separator==="linebreak"&&e.elements.length>1?`
2
- `+((r=e.meta.propertyIndent)!==null&&r!==void 0?r:""):"")+e.elements.map(t).join(e.meta.separator==="comma"?", ":e.meta.separator==="linebreak"?`
3
- `+((s=e.meta.propertyIndent)!==null&&s!==void 0?s:""):"; ")+(e.meta.separator==="linebreak"&&e.elements.length>1?`
4
- `:"")}}`},JsdocTypeOptional:(e,t)=>te(e.meta.position,t(e.element),"="),JsdocTypeSymbol:(e,t)=>`${e.value}(${e.element!==void 0?t(e.element):""})`,JsdocTypeTypeof:(e,t)=>`typeof ${t(e.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(e,t)=>e.elements.map(t).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(e,t)=>e.elements.map(t).join(" & "),JsdocTypeProperty:e=>I(e.value,e.meta.quote),JsdocTypePredicate:(e,t)=>`${t(e.left)} is ${t(e.right)}`,JsdocTypeIndexSignature:(e,t)=>`[${e.key}: ${t(e.right)}]`,JsdocTypeMappedType:(e,t)=>`[${e.key} in ${t(e.right)}]`,JsdocTypeAsserts:(e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,JsdocTypeReadonlyArray:(e,t)=>`readonly ${t(e.element)}`,JsdocTypeAssertsPlain:(e,t)=>`asserts ${t(e.element)}`,JsdocTypeConditional:(e,t)=>`${t(e.checksType)} extends ${t(e.extendsType)} ? ${t(e.trueType)} : ${t(e.falseType)}`,JsdocTypeTypeParameter:(e,t)=>`${t(e.name)}${e.constraint!==void 0?` extends ${t(e.constraint)}`:""}${e.defaultValue!==void 0?` = ${t(e.defaultValue)}`:""}`}}const Tn=$e();function hn(e){return q(Tn,e)}const Jn=["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 R(e){const t={type:"NameExpression",name:e};return Jn.includes(e)&&(t.reservedWord=!0),t}const gn={JsdocTypeOptional:(e,t)=>{const r=t(e.element);return r.optional=!0,r},JsdocTypeNullable:(e,t)=>{const r=t(e.element);return r.nullable=!0,r},JsdocTypeNotNullable:(e,t)=>{const r=t(e.element);return r.nullable=!1,r},JsdocTypeVariadic:(e,t)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const r=t(e.element);return r.repeatable=!0,r},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:e=>R(I(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(e,t)=>{const r=Ue(e),s={type:"FunctionType",params:r.params.map(t)};return r.this!==void 0&&(s.this=t(r.this)),r.new!==void 0&&(s.new=t(r.new)),e.returnType!==void 0&&(s.result=t(e.returnType)),s},JsdocTypeGeneric:(e,t)=>({type:"TypeApplication",applications:e.elements.map(r=>t(r)),expression:t(e.left)}),JsdocTypeSpecialNamePath:e=>R(e.specialType+":"+I(e.value,e.meta.quote)),JsdocTypeName:e=>e.value!=="function"?R(e.value):{type:"FunctionType",params:[]},JsdocTypeNumber:e=>R(e.value.toString()),JsdocTypeObject:(e,t)=>{const r={type:"RecordType",fields:[]};for(const s of e.elements)s.type!=="JsdocTypeObjectField"&&s.type!=="JsdocTypeJsdocObjectField"?r.fields.push({type:"FieldType",key:t(s),value:void 0}):r.fields.push(t(s));return r},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:R(I(e.key,e.meta.quote)),value:e.right===void 0?void 0:t(e.right)}},JsdocTypeJsdocObjectField:(e,t)=>({type:"FieldType",key:t(e.left),value:t(e.right)}),JsdocTypeUnion:(e,t)=>({type:"TypeUnion",elements:e.elements.map(r=>t(r))}),JsdocTypeKeyValue:(e,t)=>({type:"FieldType",key:R(e.key),value:e.right===void 0?void 0:t(e.right)}),JsdocTypeNamePath:(e,t)=>{const r=t(e.left);let s;e.right.type==="JsdocTypeSpecialNamePath"?s=t(e.right).name:s=I(e.right.value,e.right.meta.quote);const c=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return R(`${r.name}${c}${s}`)},JsdocTypeSymbol:e=>{let t="",r=e.element,s=!1;return(r==null?void 0:r.type)==="JsdocTypeVariadic"&&(r.meta.position==="prefix"?t="...":s=!0,r=r.element),(r==null?void 0:r.type)==="JsdocTypeName"?t+=r.value:(r==null?void 0:r.type)==="JsdocTypeNumber"&&(t+=r.value.toString()),s&&(t+="..."),R(`${e.value}(${t})`)},JsdocTypeParenthesis:(e,t)=>t(P(e.element)),JsdocTypeMappedType:w,JsdocTypeIndexSignature:w,JsdocTypeImport:w,JsdocTypeKeyof:w,JsdocTypeTuple:w,JsdocTypeTypeof:w,JsdocTypeIntersection:w,JsdocTypeProperty:w,JsdocTypePredicate:w,JsdocTypeAsserts:w,JsdocTypeReadonlyArray:w,JsdocTypeAssertsPlain:w,JsdocTypeConditional:w,JsdocTypeTypeParameter:w};function wn(e){return q(gn,e)}function L(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Pn(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Te(e,t){return t.length===2?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:Te(e,t.slice(1))}}const Nn={JsdocTypeOptional:(e,t)=>({type:"OPTIONAL",value:t(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(e,t)=>({type:"NULLABLE",value:t(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(e,t)=>({type:"NOT_NULLABLE",value:t(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(e,t)=>{const r={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(r.value=t(e.element)),r},JsdocTypeName:e=>({type:"NAME",name:e.value}),JsdocTypeTypeof:(e,t)=>({type:"TYPE_QUERY",name:t(e.element)}),JsdocTypeTuple:(e,t)=>({type:"TUPLE",entries:e.elements.map(t)}),JsdocTypeKeyof:(e,t)=>({type:"KEY_QUERY",value:t(e.element)}),JsdocTypeImport:e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:L(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(e,t)=>{const r=Ue(e),s={type:e.arrow?"ARROW":"FUNCTION",params:r.params.map(c=>{if(c.type==="JsdocTypeKeyValue"){if(c.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:c.key,typeName:t(c.right)}}else return t(c)}),new:null,returns:null};return r.this!==void 0?s.this=t(r.this):e.arrow||(s.this=null),r.new!==void 0&&(s.new=t(r.new)),e.returnType!==void 0&&(s.returns=t(e.returnType)),s},JsdocTypeGeneric:(e,t)=>{const r={type:"GENERIC",subject:t(e.left),objects:e.elements.map(t),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(r.objects[0]={type:"NAME",name:"function"}),r},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:L(e.meta.quote),value:null,readonly:!1};let r=t(e.right);return e.optional&&(r={type:"OPTIONAL",value:r,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:L(e.meta.quote),value:r,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(e,t)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let r=t(e.right);return e.optional&&(r={type:"OPTIONAL",value:r,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:r,readonly:!1}},JsdocTypeObject:(e,t)=>{const r=[];for(const s of e.elements)(s.type==="JsdocTypeObjectField"||s.type==="JsdocTypeJsdocObjectField")&&r.push(t(s));return{type:"RECORD",entries:r}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:L(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,t)=>{let r=!1,s,c;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(r=!0,s=e.right.value,c=L(e.right.meta.quote)):(s=e.right.value,c=L(e.right.meta.quote));const y={type:Pn(e.pathType),owner:t(e.left),name:s,quoteStyle:c,hasEventPrefix:r};if(y.owner.type==="MODULE"){const T=y.owner;return y.owner=y.owner.value,T.value=y,T}else return y},JsdocTypeUnion:(e,t)=>Te("UNION",e.elements.map(t)),JsdocTypeParenthesis:(e,t)=>({type:"PARENTHESIS",value:t(P(e.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:e=>({type:"STRING_VALUE",quoteStyle:L(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,t)=>Te("INTERSECTION",e.elements.map(t)),JsdocTypeNumber:e=>({type:"NUMBER_VALUE",number:e.value.toString()}),JsdocTypeSymbol:w,JsdocTypeProperty:w,JsdocTypePredicate:w,JsdocTypeMappedType:w,JsdocTypeIndexSignature:w,JsdocTypeAsserts:w,JsdocTypeReadonlyArray:w,JsdocTypeAssertsPlain:w,JsdocTypeConditional:w,JsdocTypeTypeParameter:w};function bn(e){return q(Nn,e)}function En(){return{JsdocTypeIntersection:(e,t)=>({type:"JsdocTypeIntersection",elements:e.elements.map(t)}),JsdocTypeGeneric:(e,t)=>({type:"JsdocTypeGeneric",left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,t)=>({type:"JsdocTypeUnion",elements:e.elements.map(t)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,t)=>({type:"JsdocTypeTypeof",element:t(e.element)}),JsdocTypeSymbol:(e,t)=>{const r={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(r.element=t(e.element)),r},JsdocTypeOptional:(e,t)=>({type:"JsdocTypeOptional",element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,t)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(t)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,t)=>({type:"JsdocTypeNotNullable",element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,t)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,t)=>({type:"JsdocTypeJsdocObjectField",left:t(e.left),right:t(e.right)}),JsdocTypeKeyValue:(e,t)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,t)=>({type:"JsdocTypeImport",element:t(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,t)=>{const r={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(r.element=t(e.element)),r},JsdocTypeTuple:(e,t)=>({type:"JsdocTypeTuple",elements:e.elements.map(t)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,t)=>{const r={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(r.returnType=t(e.returnType)),r},JsdocTypeKeyof:(e,t)=>({type:"JsdocTypeKeyof",element:t(e.element)}),JsdocTypeParenthesis:(e,t)=>({type:"JsdocTypeParenthesis",element:t(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,t)=>({type:"JsdocTypePredicate",left:t(e.left),right:t(e.right)}),JsdocTypeIndexSignature:(e,t)=>({type:"JsdocTypeIndexSignature",key:e.key,right:t(e.right)}),JsdocTypeMappedType:(e,t)=>({type:"JsdocTypeMappedType",key:e.key,right:t(e.right)}),JsdocTypeAsserts:(e,t)=>({type:"JsdocTypeAsserts",left:t(e.left),right:t(e.right)}),JsdocTypeReadonlyArray:(e,t)=>({type:"JsdocTypeReadonlyArray",element:t(e.element)}),JsdocTypeAssertsPlain:(e,t)=>({type:"JsdocTypeAssertsPlain",element:t(e.element)}),JsdocTypeConditional:(e,t)=>({type:"JsdocTypeConditional",checksType:t(e.checksType),extendsType:t(e.extendsType),trueType:t(e.trueType),falseType:t(e.falseType)}),JsdocTypeTypeParameter:(e,t)=>({type:"JsdocTypeTypeParameter",name:t(e.name),constraint:e.constraint!==void 0?t(e.constraint):void 0,defaultValue:e.defaultValue!==void 0?t(e.defaultValue):void 0})}}const Ke={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"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function he(e,t,r,s,c){s==null||s(e,t,r);const y=Ke[e.type];for(const T of y){const g=e[T];if(g!==void 0)if(Array.isArray(g))for(const x of g)he(x,e,T,s,c);else he(g,e,T,s,c)}c==null||c(e,t,r)}function vn(e,t,r){he(e,void 0,void 0,t,r)}o.catharsisTransform=wn,o.identityTransformRules=En,o.jtpTransform=bn,o.parse=Ve,o.stringify=hn,o.stringifyRules=$e,o.transform=q,o.traverse=vn,o.tryParse=fn,o.visitorKeys=Ke})})(Je,Je.exports);var ge=Je.exports,xn=Object.defineProperty,l=(n,a)=>xn(n,"name",{value:a,configurable:!0});const{UnknownArgTypesError:Sn}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var On=l(n=>n.name==="literal","isLiteral"),An=l(n=>n.value.replace(/['|"]/g,""),"toEnumOption"),In=l(n=>{switch(n.type){case"function":return{name:"function"};case"object":let a={};return n.signature.properties.forEach(o=>{a[o.key]=C(o.value)}),{name:"object",value:a};default:throw new Sn({type:n,language:"Flow"})}},"convertSig"),C=l(n=>{var p,u,d,f;let{name:a,raw:o}=n,i={};switch(typeof o<"u"&&(i.raw=o),n.name){case"literal":return{...i,name:"other",value:n.value};case"string":case"number":case"symbol":case"boolean":return{...i,name:a};case"Array":return{...i,name:"array",value:n.elements.map(C)};case"signature":return{...i,...In(n)};case"union":return(p=n.elements)!=null&&p.every(On)?{...i,name:"enum",value:(u=n.elements)==null?void 0:u.map(An)}:{...i,name:a,value:(d=n.elements)==null?void 0:d.map(C)};case"intersection":return{...i,name:a,value:(f=n.elements)==null?void 0:f.map(C)};default:return{...i,name:"other",value:a}}},"convert");function Be(n,a){let o={},i=Object.keys(n);for(let p=0;p<i.length;p++){let u=i[p],d=n[u];o[u]=a(d,u,n)}return o}l(Be,"mapValues");var Me=/^['"]|['"]$/g,Rn=l(n=>n.replace(Me,""),"trimQuotes"),_n=l(n=>Me.test(n),"includesQuotes"),Ce=l(n=>{let a=Rn(n);return _n(n)||Number.isNaN(Number(a))?a:Number(a)},"parseLiteral"),Fn=/^\(.*\) => /,M=l(n=>{let{name:a,raw:o,computed:i,value:p}=n,u={};switch(typeof o<"u"&&(u.raw=o),a){case"enum":{let f=i?p:p.map(h=>Ce(h.value));return{...u,name:a,value:f}}case"string":case"number":case"symbol":return{...u,name:a};case"func":return{...u,name:"function"};case"bool":case"boolean":return{...u,name:"boolean"};case"arrayOf":case"array":return{...u,name:"array",value:p&&M(p)};case"object":return{...u,name:a};case"objectOf":return{...u,name:a,value:M(p)};case"shape":case"exact":let d=Be(p,f=>M(f));return{...u,name:"object",value:d};case"union":return{...u,name:"union",value:p.map(f=>M(f))};case"instanceOf":case"element":case"elementType":default:{if((a==null?void 0:a.indexOf("|"))>0)try{let v=a.split("|").map(N=>JSON.parse(N));return{...u,name:"enum",value:v}}catch{}let f=p?`${a}(${p})`:a,h=Fn.test(a)?"function":"other";return{...u,name:h,value:f}}}},"convert");const{UnknownArgTypesError:Ln}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var jn=l(n=>{switch(n.type){case"function":return{name:"function"};case"object":let a={};return n.signature.properties.forEach(o=>{a[o.key]=Y(o.value)}),{name:"object",value:a};default:throw new Ln({type:n,language:"Typescript"})}},"convertSig"),Y=l(n=>{var p,u,d,f;let{name:a,raw:o}=n,i={};switch(typeof o<"u"&&(i.raw=o),n.name){case"string":case"number":case"symbol":case"boolean":return{...i,name:a};case"Array":return{...i,name:"array",value:n.elements.map(Y)};case"signature":return{...i,...jn(n)};case"union":let h;return(p=n.elements)!=null&&p.every(v=>v.name==="literal")?h={...i,name:"enum",value:(u=n.elements)==null?void 0:u.map(v=>Ce(v.value))}:h={...i,name:a,value:(d=n.elements)==null?void 0:d.map(Y)},h;case"intersection":return{...i,name:a,value:(f=n.elements)==null?void 0:f.map(Y)};default:return{...i,name:"other",value:a}}},"convert"),we=l(n=>{let{type:a,tsType:o,flowType:i}=n;try{if(a!=null)return M(a);if(o!=null)return Y(o);if(i!=null)return C(i)}catch(p){console.error(p)}return null},"convert"),Vn=(n=>(n.JAVASCRIPT="JavaScript",n.FLOW="Flow",n.TYPESCRIPT="TypeScript",n.UNKNOWN="Unknown",n))(Vn||{}),Un=["null","undefined"];function re(n){return Un.some(a=>a===n)}l(re,"isDefaultValueBlacklisted");var $n=l(n=>{if(!n)return"";if(typeof n=="string")return n;throw new Error(`Description: expected string, got: ${JSON.stringify(n)}`)},"str");function Pe(n){return!!n.__docgenInfo}l(Pe,"hasDocgen");function Ye(n){return n!=null&&Object.keys(n).length>0}l(Ye,"isValidDocgenSection");function Ge(n,a){return Pe(n)?n.__docgenInfo[a]:null}l(Ge,"getDocgenSection");function We(n){return Pe(n)?$n(n.__docgenInfo.description):""}l(We,"getDocgenDescription");var _;(function(n){n.start="/**",n.nostart="/***",n.delim="*",n.end="*/"})(_=_||(_={}));function Xe(n){return/^\s+$/.test(n)}l(Xe,"isSpace");function Qe(n){let a=n.match(/\r+$/);return a==null?["",n]:[n.slice(-a[0].length),n.slice(0,-a[0].length)]}l(Qe,"splitCR");function j(n){let a=n.match(/^\s+/);return a==null?["",n]:[n.slice(0,a[0].length),n.slice(a[0].length)]}l(j,"splitSpace");function He(n){return n.split(/\n/)}l(He,"splitLines");function ze(n={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},n)}l(ze,"seedSpec");function Ze(n={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},n)}l(Ze,"seedTokens");var Kn=/^@\S+/;function et({fence:n="```"}={}){let a=tt(n),o=l((i,p)=>a(i)?!p:p,"toggleFence");return l(function(i){let p=[[]],u=!1;for(let d of i)Kn.test(d.tokens.description)&&!u?p.push([d]):p[p.length-1].push(d),u=o(d.tokens.description,u);return p},"parseBlock")}l(et,"getParser");function tt(n){return typeof n=="string"?a=>a.split(n).length%2===0:n}l(tt,"getFencer");function nt({startLine:n=0,markers:a=_}={}){let o=null,i=n;return l(function(p){let u=p,d=Ze();if([d.lineEnd,u]=Qe(u),[d.start,u]=j(u),o===null&&u.startsWith(a.start)&&!u.startsWith(a.nostart)&&(o=[],d.delimiter=u.slice(0,a.start.length),u=u.slice(a.start.length),[d.postDelimiter,u]=j(u)),o===null)return i++,null;let f=u.trimRight().endsWith(a.end);if(d.delimiter===""&&u.startsWith(a.delim)&&!u.startsWith(a.end)&&(d.delimiter=a.delim,u=u.slice(a.delim.length),[d.postDelimiter,u]=j(u)),f){let h=u.trimRight();d.end=u.slice(h.length-a.end.length),u=h.slice(0,-a.end.length)}if(d.description=u,o.push({number:i,source:p,tokens:d}),i++,f){let h=o.slice();return o=null,h}return null},"parseSource")}l(nt,"getParser");function rt({tokenizers:n}){return l(function(a){var o;let i=ze({source:a});for(let p of n)if(i=p(i),!((o=i.problems[i.problems.length-1])===null||o===void 0)&&o.critical)break;return i},"parseSpec")}l(rt,"getParser");function at(){return n=>{let{tokens:a}=n.source[0],o=a.description.match(/\s*(@(\S+))(\s*)/);return o===null?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(a.tag=o[1],a.postTag=o[3],a.description=a.description.slice(o[0].length),n.tag=o[2],n)}}l(at,"tagTokenizer");function ot(n="compact"){let a=st(n);return o=>{let i=0,p=[];for(let[f,{tokens:h}]of o.source.entries()){let v="";if(f===0&&h.description[0]!=="{")return o;for(let N of h.description)if(N==="{"&&i++,N==="}"&&i--,v+=N,i===0)break;if(p.push([h,v]),i===0)break}if(i!==0)return o.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:o.source[0].number,critical:!0}),o;let u=[],d=p[0][0].postDelimiter.length;for(let[f,[h,v]]of p.entries())h.type=v,f>0&&(h.type=h.postDelimiter.slice(d)+v,h.postDelimiter=h.postDelimiter.slice(0,d)),[h.postType,h.description]=j(h.description.slice(v.length)),u.push(h.type);return u[0]=u[0].slice(1),u[u.length-1]=u[u.length-1].slice(0,-1),o.type=a(u),o}}l(ot,"typeTokenizer");var Dn=l(n=>n.trim(),"trim");function st(n){return n==="compact"?a=>a.map(Dn).join(""):n==="preserve"?a=>a.join(`
5
- `):n}l(st,"getJoiner");var qn=l(n=>n&&n.startsWith('"')&&n.endsWith('"'),"isQuoted");function it(){let n=l((a,{tokens:o},i)=>o.type===""?a:i,"typeEnd");return a=>{let{tokens:o}=a.source[a.source.reduce(n,0)],i=o.description.trimLeft(),p=i.split('"');if(p.length>1&&p[0]===""&&p.length%2===1)return a.name=p[1],o.name=`"${p[1]}"`,[o.postName,o.description]=j(i.slice(o.name.length)),a;let u=0,d="",f=!1,h;for(let N of i){if(u===0&&Xe(N))break;N==="["&&u++,N==="]"&&u--,d+=N}if(u!==0)return a.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:a.source[0].number,critical:!0}),a;let v=d;if(d[0]==="["&&d[d.length-1]==="]"){f=!0,d=d.slice(1,-1);let N=d.split("=");if(d=N[0].trim(),N[1]!==void 0&&(h=N.slice(1).join("=").trim()),d==="")return a.problems.push({code:"spec:name:empty-name",message:"empty name",line:a.source[0].number,critical:!0}),a;if(h==="")return a.problems.push({code:"spec:name:empty-default",message:"empty default value",line:a.source[0].number,critical:!0}),a;if(!qn(h)&&/=(?!>)/.test(h))return a.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:a.source[0].number,critical:!0}),a}return a.optional=f,a.name=d,o.name=v,h!==void 0&&(a.default=h),[o.postName,o.description]=j(i.slice(o.name.length)),a}}l(it,"nameTokenizer");function ct(n="compact",a=_){let o=Ne(n);return i=>(i.description=o(i.source,a),i)}l(ct,"descriptionTokenizer");function Ne(n){return n==="compact"?lt:n==="preserve"?pt:n}l(Ne,"getJoiner");function lt(n,a=_){return n.map(({tokens:{description:o}})=>o.trim()).filter(o=>o!=="").join(" ")}l(lt,"compactJoiner");var Bn=l((n,{tokens:a},o)=>a.type===""?n:o,"lineNo"),Mn=l(({tokens:n})=>(n.delimiter===""?n.start:n.postDelimiter.slice(1))+n.description,"getDescription");function pt(n,a=_){if(n.length===0)return"";n[0].tokens.description===""&&n[0].tokens.delimiter===a.start&&(n=n.slice(1));let o=n[n.length-1];return o!==void 0&&o.tokens.description===""&&o.tokens.end.endsWith(a.end)&&(n=n.slice(0,-1)),n=n.slice(n.reduce(Bn,0)),n.map(Mn).join(`
6
- `)}l(pt,"preserveJoiner");function ut({startLine:n=0,fence:a="```",spacing:o="compact",markers:i=_,tokenizers:p=[at(),ot(o),it(),ct(o)]}={}){if(n<0||n%1>0)throw new Error("Invalid startLine");let u=nt({startLine:n,markers:i}),d=et({fence:a}),f=rt({tokenizers:p}),h=Ne(o);return function(v){let N=[];for(let ae of He(v)){let $=u(ae);if($===null)continue;let W=d($),X=W.slice(1).map(f);N.push({description:h(W[0],i),tags:X,source:$,problems:X.reduce((b,oe)=>b.concat(oe.problems),[])})}return N}}l(ut,"getParser");function yt(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}l(yt,"join");function Cn(){return n=>n.source.map(({tokens:a})=>yt(a)).join(`
7
- `)}l(Cn,"getStringifier");function dt(n,a={}){return ut(a)(n)}l(dt,"parse");function mt(n){return n!=null&&n.includes("@")}l(mt,"containsJsDoc");function ft(n){let a=`/**
8
- `+(n??"").split(`
9
- `).map(i=>` * ${i}`).join(`
10
- `)+`
11
- */`,o=dt(a,{spacing:"preserve"});if(!o||o.length===0)throw new Error("Cannot parse JSDoc tags.");return o[0]}l(ft,"parse");var Yn={tags:["param","arg","argument","returns","ignore","deprecated"]},Gn=l((n,a=Yn)=>{if(!mt(n))return{includesJsDoc:!1,ignore:!1};let o=ft(n),i=Tt(o,a.tags);return i.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:o.description.trim(),extractedTags:i}},"parseJsDoc");function Tt(n,a){let o={params:null,deprecated:null,returns:null,ignore:!1};for(let i of n.tags)if(!(a!==void 0&&!a.includes(i.tag)))if(i.tag==="ignore"){o.ignore=!0;break}else switch(i.tag){case"param":case"arg":case"argument":{let p=Jt(i);p!=null&&(o.params==null&&(o.params=[]),o.params.push(p));break}case"deprecated":{let p=gt(i);p!=null&&(o.deprecated=p);break}case"returns":{let p=wt(i);p!=null&&(o.returns=p);break}}return o}l(Tt,"extractJsDocTags");function ht(n){return n.replace(/[\.-]$/,"")}l(ht,"normaliseParamName");function Jt(n){if(!n.name||n.name==="-")return null;let a=ve(n.type);return{name:n.name,type:a,description:Ee(n.description),getPrettyName:l(()=>ht(n.name),"getPrettyName"),getTypeName:l(()=>a?ke(a):null,"getTypeName")}}l(Jt,"extractParam");function gt(n){return n.name?be(n.name,n.description):null}l(gt,"extractDeprecated");function be(n,a){let o=n===""?a:`${n} ${a}`;return Ee(o)}l(be,"joinNameAndDescription");function Ee(n){let a=n.replace(/^- /g,"").trim();return a===""?null:a}l(Ee,"normaliseDescription");function wt(n){let a=ve(n.type);return a?{type:a,description:be(n.name,n.description),getTypeName:l(()=>ke(a),"getTypeName")}:null}l(wt,"extractReturns");var F=ge.stringifyRules(),Wn=F.JsdocTypeObject;F.JsdocTypeAny=()=>"any";F.JsdocTypeObject=(n,a)=>`(${Wn(n,a)})`;F.JsdocTypeOptional=(n,a)=>a(n.element);F.JsdocTypeNullable=(n,a)=>a(n.element);F.JsdocTypeNotNullable=(n,a)=>a(n.element);F.JsdocTypeUnion=(n,a)=>n.elements.map(a).join("|");function ve(n){try{return ge.parse(n,"typescript")}catch{return null}}l(ve,"extractType");function ke(n){return ge.transform(F,n)}l(ke,"extractTypeName");function xe(n){return n.length>90}l(xe,"isTooLongForTypeSummary");function Pt(n){return n.length>50}l(Pt,"isTooLongForDefaultValueSummary");function E(n,a){return n===a?{summary:n}:{summary:n,detail:a}}l(E,"createSummaryValue");function Nt(n,a){if(n!=null){let{value:o}=n;if(!re(o))return Pt(o)?E(a==null?void 0:a.name,o):E(o)}return null}l(Nt,"createDefaultValue");function Se({name:n,value:a,elements:o,raw:i}){return a??(o!=null?o.map(Se).join(" | "):i??n)}l(Se,"generateUnionElement");function bt({name:n,raw:a,elements:o}){return o!=null?E(o.map(Se).join(" | ")):a!=null?E(a.replace(/^\|\s*/,"")):E(n)}l(bt,"generateUnion");function Et({type:n,raw:a}){return a!=null?E(a):E(n)}l(Et,"generateFuncSignature");function vt({type:n,raw:a}){return a!=null?xe(a)?E(n,a):E(a):E(n)}l(vt,"generateObjectSignature");function kt(n){let{type:a}=n;return a==="object"?vt(n):Et(n)}l(kt,"generateSignature");function xt({name:n,raw:a}){return a!=null?xe(a)?E(n,a):E(a):E(n)}l(xt,"generateDefault");function St(n){if(n==null)return null;switch(n.name){case"union":return bt(n);case"signature":return kt(n);default:return xt(n)}}l(St,"createType");var Xn=l((n,a)=>{let{flowType:o,description:i,required:p,defaultValue:u}=a;return{name:n,type:St(o),required:p,description:i,defaultValue:Nt(u??null,o??null)}},"createFlowPropDef");function Ot({defaultValue:n}){if(n!=null){let{value:a}=n;if(!re(a))return E(a)}return null}l(Ot,"createDefaultValue");function At({tsType:n,required:a}){if(n==null)return null;let o=n.name;return a||(o=o.replace(" | undefined","")),E(["Array","Record","signature"].includes(n.name)?n.raw:o)}l(At,"createType");var Qn=l((n,a)=>{let{description:o,required:i}=a;return{name:n,type:At(a),required:i,description:o,defaultValue:Ot(a)}},"createTsPropDef");function It(n){return n!=null?E(n.name):null}l(It,"createType");function Rt(n){let{computed:a,func:o}=n;return typeof a>"u"&&typeof o>"u"}l(Rt,"isReactDocgenTypescript");function _t(n){return n?n.name==="string"?!0:n.name==="enum"?Array.isArray(n.value)&&n.value.every(({value:a})=>typeof a=="string"&&a[0]==='"'&&a[a.length-1]==='"'):!1:!1}l(_t,"isStringValued");function Ft(n,a){if(n!=null){let{value:o}=n;if(!re(o))return Rt(n)&&_t(a)?E(JSON.stringify(o)):E(o)}return null}l(Ft,"createDefaultValue");function Oe(n,a,o){let{description:i,required:p,defaultValue:u}=o;return{name:n,type:It(a),required:p,description:i,defaultValue:Ft(u,a)}}l(Oe,"createBasicPropDef");function G(n,a){var o;if(a!=null&&a.includesJsDoc){let{description:i,extractedTags:p}=a;i!=null&&(n.description=a.description);let u={...p,params:(o=p==null?void 0:p.params)==null?void 0:o.map(d=>({name:d.getPrettyName(),description:d.description}))};Object.values(u).filter(Boolean).length>0&&(n.jsDocTags=u)}return n}l(G,"applyJsDocResult");var Hn=l((n,a,o)=>{let i=Oe(n,a.type,a);return i.sbType=we(a),G(i,o)},"javaScriptFactory"),zn=l((n,a,o)=>{let i=Qn(n,a);return i.sbType=we(a),G(i,o)},"tsFactory"),Zn=l((n,a,o)=>{let i=Xn(n,a);return i.sbType=we(a),G(i,o)},"flowFactory"),er=l((n,a,o)=>{let i=Oe(n,{name:"unknown"},a);return G(i,o)},"unknownFactory"),Lt=l(n=>{switch(n){case"JavaScript":return Hn;case"TypeScript":return zn;case"Flow":return Zn;default:return er}},"getPropDefFactory"),jt=l(n=>n.type!=null?"JavaScript":n.flowType!=null?"Flow":n.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),tr=l(n=>{let a=jt(n[0]),o=Lt(a);return n.map(i=>{var u;let p=i;return(u=i.type)!=null&&u.elements&&(p={...i,type:{...i.type,value:i.type.elements}}),Ae(p.name,p,a,o)})},"extractComponentSectionArray"),nr=l(n=>{let a=Object.keys(n),o=jt(n[a[0]]),i=Lt(o);return a.map(p=>{let u=n[p];return u!=null?Ae(p,u,o,i):null}).filter(Boolean)},"extractComponentSectionObject"),cr=l((n,a)=>{let o=Ge(n,a);return Ye(o)?Array.isArray(o)?tr(o):nr(o):[]},"extractComponentProps");function Ae(n,a,o,i){let p=Gn(a.description);return p.includesJsDoc&&p.ignore?null:{propDef:i(n,a,p),jsDocTags:p.extractedTags,docgenInfo:a,typeSystem:o}}l(Ae,"extractProp");function rr(n){return n!=null?We(n):""}l(rr,"extractComponentDescription");const{combineParameters:ar}=__STORYBOOK_MODULE_PREVIEW_API__;var lr=l(n=>{let{component:a,argTypes:o,parameters:{docs:i={}}}=n,{extractArgTypes:p}=i,u=p&&a?p(a):{};return u?ar(u,o):o},"enhanceArgTypes"),or="storybook/docs",pr=`${or}/snippet-rendered`,sr=(n=>(n.AUTO="auto",n.CODE="code",n.DYNAMIC="dynamic",n))(sr||{});export{xe as B,Ge as Y,Pt as a,lr as c,sr as g,Vn as j,E as l,rr as n,cr as o,pr as y,Pe as z};
@@ -1 +0,0 @@
1
- var d=Object.create,g=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,x=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),P=(r,e,u,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!m.call(r,a)&&a!==u&&g(r,a,{get:()=>e[a],enumerable:!(i=j(e,a))||i.enumerable});return r},S=(r,e,u)=>(u=r!=null?d(h(r)):{},P(!r||!r.__esModule?g(u,"default",{value:r,enumerable:!0}):u,r)),U=x(r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isEqual=function(){var e=Object.prototype.toString,u=Object.getPrototypeOf,i=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,f){return function c(t,n,o){var y,s,l,b=e.call(t),w=e.call(n);if(t===n)return!0;if(t==null||n==null)return!1;if(o.indexOf(t)>-1&&o.indexOf(n)>-1)return!0;if(o.push(t,n),b!=w||(y=i(t),s=i(n),y.length!=s.length||y.some(function(O){return!c(t[O],n[O],o)})))return!1;switch(b.slice(8,-1)){case"Symbol":return t.valueOf()==n.valueOf();case"Date":case"Number":return+t==+n||+t!=+t&&+n!=+n;case"RegExp":case"Function":case"String":case"Boolean":return""+t==""+n;case"Set":case"Map":y=t.entries(),s=n.entries();do if(!c((l=y.next()).value,s.next().value,o))return!1;while(!l.done);return!0;case"ArrayBuffer":t=new Uint8Array(t),n=new Uint8Array(n);case"DataView":t=new Uint8Array(t.buffer),n=new Uint8Array(n.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(t.length!=n.length)return!1;for(l=0;l<t.length;l++)if((l in t||l in n)&&(l in t!=l in n||!c(t[l],n[l],o)))return!1;return!0;case"Object":return c(u(t),u(n),o);default:return!1}}(a,f,[])}}()}),p=S(U()),v=r=>r.map(e=>typeof e<"u").filter(Boolean).length,q=(r,e)=>{let{exists:u,eq:i,neq:a,truthy:f}=r;if(v([u,i,a,f])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:u,eq:i,neq:a})}`);if(typeof i<"u")return(0,p.isEqual)(e,i);if(typeof a<"u")return!(0,p.isEqual)(e,a);if(typeof u<"u"){let c=typeof e<"u";return u?c:!c}return typeof f>"u"||f?!!e:!e},E=(r,e,u)=>{if(!r.if)return!0;let{arg:i,global:a}=r.if;if(v([i,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:i,global:a})}`);let f=i?e[i]:u[a];return q(r.if,f)};export{E as P};
@@ -1 +0,0 @@
1
- import{R as e}from"./index-NGyRR_en.js";import"./_commonjsHelpers-Cpj98o6Y.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function r(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{r as MDXProvider,u as useMDXComponents};
@@ -1,9 +0,0 @@
1
- import{g as M}from"./_commonjsHelpers-Cpj98o6Y.js";function I(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const u in n)if(u!=="default"&&!(u in t)){const s=Object.getOwnPropertyDescriptor(n,u);s&&Object.defineProperty(t,u,s.get?s:{enumerable:!0,get:()=>n[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}},o={};/**
2
- * @license React
3
- * react.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),D=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),g=Symbol.iterator;function B(t){return t===null||typeof t!="object"?null:(t=g&&t[g]||t["@@iterator"],typeof t=="function"?t:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,P={};function l(t,e,r){this.props=t,this.context=e,this.refs=P,this.updater=r||h}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function H(){}H.prototype=l.prototype;function R(t,e,r){this.props=t,this.context=e,this.refs=P,this.updater=r||h}var T=R.prototype=new H;T.constructor=R;j(T,l.prototype);T.isPureReactComponent=!0;var A=Array.isArray;function E(){}var i={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function m(t,e,r){var n=r.ref;return{$$typeof:v,type:t,key:e,ref:n!==void 0?n:null,props:r}}function W(t,e){return m(t.type,e,t.props)}function C(t){return typeof t=="object"&&t!==null&&t.$$typeof===v}function Q(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var d=/\/+/g;function y(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Q(""+t.key):e.toString(36)}function X(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function a(t,e,r,n,u){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var f=!1;if(t===null)f=!0;else switch(s){case"bigint":case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case v:case b:f=!0;break;case O:return f=t._init,a(f(t._payload),e,r,n,u)}}if(f)return u=u(t),f=n===""?"."+y(t,0):n,A(u)?(r="",f!=null&&(r=f.replace(d,"$&/")+"/"),a(u,e,r,"",function(Y){return Y})):u!=null&&(C(u)&&(u=W(u,r+(u.key==null||t&&t.key===u.key?"":(""+u.key).replace(d,"$&/")+"/")+f)),e.push(u)),1;f=0;var p=n===""?".":n+":";if(A(t))for(var c=0;c<t.length;c++)n=t[c],s=p+y(n,c),f+=a(n,e,r,s,u);else if(c=B(t),typeof c=="function")for(t=c.call(t),c=0;!(n=t.next()).done;)n=n.value,s=p+y(n,c++),f+=a(n,e,r,s,u);else if(s==="object"){if(typeof t.then=="function")return a(X(t),e,r,n,u);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return f}function _(t,e,r){if(t==null)return t;var n=[],u=0;return a(t,n,"","",function(s){return e.call(r,s,u++)}),n}function Z(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var S=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},J={map:_,forEach:function(t,e,r){_(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!C(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};o.Activity=K;o.Children=J;o.Component=l;o.Fragment=x;o.Profiler=L;o.PureComponent=R;o.StrictMode=k;o.Suspense=z;o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i;o.__COMPILER_RUNTIME={__proto__:null,c:function(t){return i.H.useMemoCache(t)}};o.cache=function(t){return function(){return t.apply(null,arguments)}};o.cacheSignal=function(){return null};o.cloneElement=function(t,e,r){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=j({},t.props),u=t.key;if(e!=null)for(s in e.key!==void 0&&(u=""+e.key),e)!$.call(e,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&e.ref===void 0||(n[s]=e[s]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var f=Array(s),p=0;p<s;p++)f[p]=arguments[p+2];n.children=f}return m(t.type,u,n)};o.createContext=function(t){return t={$$typeof:D,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:U,_context:t},t};o.createElement=function(t,e,r){var n,u={},s=null;if(e!=null)for(n in e.key!==void 0&&(s=""+e.key),e)$.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(u[n]=e[n]);var f=arguments.length-2;if(f===1)u.children=r;else if(1<f){for(var p=Array(f),c=0;c<f;c++)p[c]=arguments[c+2];u.children=p}if(t&&t.defaultProps)for(n in f=t.defaultProps,f)u[n]===void 0&&(u[n]=f[n]);return m(t,s,u)};o.createRef=function(){return{current:null}};o.forwardRef=function(t){return{$$typeof:q,render:t}};o.isValidElement=C;o.lazy=function(t){return{$$typeof:O,_payload:{_status:-1,_result:t},_init:Z}};o.memo=function(t,e){return{$$typeof:G,type:t,compare:e===void 0?null:e}};o.startTransition=function(t){var e=i.T,r={};i.T=r;try{var n=t(),u=i.S;u!==null&&u(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(E,S)}catch(s){S(s)}finally{e!==null&&r.types!==null&&(e.types=r.types),i.T=e}};o.unstable_useCacheRefresh=function(){return i.H.useCacheRefresh()};o.use=function(t){return i.H.use(t)};o.useActionState=function(t,e,r){return i.H.useActionState(t,e,r)};o.useCallback=function(t,e){return i.H.useCallback(t,e)};o.useContext=function(t){return i.H.useContext(t)};o.useDebugValue=function(){};o.useDeferredValue=function(t,e){return i.H.useDeferredValue(t,e)};o.useEffect=function(t,e){return i.H.useEffect(t,e)};o.useEffectEvent=function(t){return i.H.useEffectEvent(t)};o.useId=function(){return i.H.useId()};o.useImperativeHandle=function(t,e,r){return i.H.useImperativeHandle(t,e,r)};o.useInsertionEffect=function(t,e){return i.H.useInsertionEffect(t,e)};o.useLayoutEffect=function(t,e){return i.H.useLayoutEffect(t,e)};o.useMemo=function(t,e){return i.H.useMemo(t,e)};o.useOptimistic=function(t,e){return i.H.useOptimistic(t,e)};o.useReducer=function(t,e,r){return i.H.useReducer(t,e,r)};o.useRef=function(t){return i.H.useRef(t)};o.useState=function(t){return i.H.useState(t)};o.useSyncExternalStore=function(t,e,r){return i.H.useSyncExternalStore(t,e,r)};o.useTransition=function(){return i.H.useTransition()};o.version="19.2.7";w.exports=o;var N=w.exports;const V=M(N),tt=I({__proto__:null,default:V},[N]);export{V as R,tt as o,N as r};
@@ -1,9 +0,0 @@
1
- import{g as o}from"./_commonjsHelpers-Cpj98o6Y.js";import{r as _}from"./index-NGyRR_en.js";var s={exports:{}},i={};/**
2
- * @license React
3
- * react-dom.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var m=_;function d(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var n={d:{f:a,r:function(){throw Error(d(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},v=Symbol.for("react.portal");function O(e,r,t){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:c==null?null:""+c,children:e,containerInfo:r,implementation:t}}var f=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(e,r){if(e==="font")return"";if(typeof r=="string")return r==="use-credentials"?r:""}i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n;i.createPortal=function(e,r){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(d(299));return O(e,r,null,t)};i.flushSync=function(e){var r=f.T,t=n.p;try{if(f.T=null,n.p=2,e)return e()}finally{f.T=r,n.p=t,n.d.f()}};i.preconnect=function(e,r){typeof e=="string"&&(r?(r=r.crossOrigin,r=typeof r=="string"?r==="use-credentials"?r:"":void 0):r=null,n.d.C(e,r))};i.prefetchDNS=function(e){typeof e=="string"&&n.d.D(e)};i.preinit=function(e,r){if(typeof e=="string"&&r&&typeof r.as=="string"){var t=r.as,c=g(t,r.crossOrigin),u=typeof r.integrity=="string"?r.integrity:void 0,y=typeof r.fetchPriority=="string"?r.fetchPriority:void 0;t==="style"?n.d.S(e,typeof r.precedence=="string"?r.precedence:void 0,{crossOrigin:c,integrity:u,fetchPriority:y}):t==="script"&&n.d.X(e,{crossOrigin:c,integrity:u,fetchPriority:y,nonce:typeof r.nonce=="string"?r.nonce:void 0})}};i.preinitModule=function(e,r){if(typeof e=="string")if(typeof r=="object"&&r!==null){if(r.as==null||r.as==="script"){var t=g(r.as,r.crossOrigin);n.d.M(e,{crossOrigin:t,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0})}}else r==null&&n.d.M(e)};i.preload=function(e,r){if(typeof e=="string"&&typeof r=="object"&&r!==null&&typeof r.as=="string"){var t=r.as,c=g(t,r.crossOrigin);n.d.L(e,t,{crossOrigin:c,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0,type:typeof r.type=="string"?r.type:void 0,fetchPriority:typeof r.fetchPriority=="string"?r.fetchPriority:void 0,referrerPolicy:typeof r.referrerPolicy=="string"?r.referrerPolicy:void 0,imageSrcSet:typeof r.imageSrcSet=="string"?r.imageSrcSet:void 0,imageSizes:typeof r.imageSizes=="string"?r.imageSizes:void 0,media:typeof r.media=="string"?r.media:void 0})}};i.preloadModule=function(e,r){if(typeof e=="string")if(r){var t=g(r.as,r.crossOrigin);n.d.m(e,{as:typeof r.as=="string"&&r.as!=="script"?r.as:void 0,crossOrigin:t,integrity:typeof r.integrity=="string"?r.integrity:void 0})}else n.d.m(e)};i.requestFormReset=function(e){n.d.r(e)};i.unstable_batchedUpdates=function(e,r){return e(r)};i.useFormState=function(e,r,t){return f.H.useFormState(e,r,t)};i.useFormStatus=function(){return f.H.useHostTransitionStatus()};i.version="19.2.7";function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(e){console.error(e)}}l(),s.exports=i;var S=s.exports;const R=o(S);export{R as O,S as r};
@@ -1,9 +0,0 @@
1
- var o={exports:{}},s={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var E=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(v,r,t){var e=null;if(t!==void 0&&(e=""+t),r.key!==void 0&&(e=""+r.key),"key"in r){t={};for(var x in r)x!=="key"&&(t[x]=r[x])}else t=r;return r=t.ref,{$$typeof:E,type:v,key:e,ref:r!==void 0?r:null,props:t}}s.Fragment=n;s.jsx=l;s.jsxs=l;o.exports=s;var u=o.exports;export{u as j};
@@ -1 +0,0 @@
1
- import"./index-C_pJYAGD.js";const{STORY_CHANGED:O,SELECT_STORY:l}=__STORYBOOK_MODULE_CORE_EVENTS__,{makeDecorator:E,addons:_}=__STORYBOOK_MODULE_PREVIEW_API__,{global:L}=__STORYBOOK_MODULE_GLOBAL__;var c="links",{document:s,HTMLElement:m}=L,v=e=>_.getChannel().emit(l,e),i=e=>{let{target:t}=e;if(!(t instanceof m))return;let o=t,{sbKind:a,sbStory:r}=o.dataset;(a||r)&&(e.preventDefault(),v({kind:a,story:r}))},n=!1,d=()=>{n||(n=!0,s.addEventListener("click",i))},k=()=>{n&&(n=!1,s.removeEventListener("click",i))},R=E({name:"withLinks",parameterName:c,wrapper:(e,t)=>(d(),_.getChannel().once(O,k),e(t))}),T=[R];export{T as decorators};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./axe-d-K7rF9D.js","./_commonjsHelpers-Cpj98o6Y.js"])))=>i.map(i=>d[i]);
2
- import{_ as N}from"./iframe-Bl15XKnQ.js";const{addons:S}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,a={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,r=S.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await s(n,e??R)},s=async(n,e=R)=>{_=n;try{if(!l){l=!0,r.emit(a.RUNNING);let{default:t}=await N(()=>import("./axe-d-K7rF9D.js").then(f=>f.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:i,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),i&&t.configure(i);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?r.emit(a.RESULT,u):(l=!1,s(_))}}catch(t){r.emit(a.ERROR,t)}finally{l=!1}};r.on(a.REQUEST,v);r.on(a.MANUAL,s);
@@ -1 +0,0 @@
1
- html,body,#root,[data-rn-root]{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:var(--backgroundNeutralSubtle400, #f5f5f5);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:Inter;src:url(../fonts/Inter.ttf) format("truetype");font-weight:100 900;font-style:normal;font-display:swap}@font-face{font-family:NunitoSans;src:url(../fonts/NunitoSans.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}:focus:not(:focus-visible){box-shadow:none!important}
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-AADCayzw.js","./iframe-Bl15XKnQ.js","./index-NGyRR_en.js","./_commonjsHelpers-Cpj98o6Y.js","./jsx-runtime-BjG_zV1W.js","./index-zmTGQa7e.js","./index-C_pJYAGD.js","./index-Bhelpi4i.js","./client-DGEjZp2f.js"])))=>i.map(i=>d[i]);
2
- import{_ as a}from"./iframe-Bl15XKnQ.js";var s=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),l={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-AADCayzw.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>s[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{l as parameters};
@@ -1,17 +0,0 @@
1
- import{r as c,R as T}from"./index-NGyRR_en.js";import{c as rt,a as ot,T as at,Z as it,P as st,b as ct,w as ut,G as lt,d as dt,S as ft,s as mt,u as gt,e as ht}from"./react-native-gesture-handler-BzS7UzhZ.js";import{j as re}from"./jsx-runtime-BjG_zV1W.js";import{g as Ie}from"./_commonjsHelpers-Cpj98o6Y.js";var pt={};function vt(e){return rt(e,pt.TAMAGUI_TOKEN_PREFIX??"t")}const yt=ot,St=({children:e,...t})=>re.jsx(at,{...t,children:re.jsx(it.Provider,{value:1,children:re.jsx(st,{shouldAddRootHost:!0,children:e})})});function bt(){return{type:"GO_BACK"}}function wt(){if(typeof(arguments.length<=0?void 0:arguments[0])=="string")return{type:"NAVIGATE",payload:{name:arguments.length<=0?void 0:arguments[0],params:arguments.length<=1?void 0:arguments[1]}};{const e=(arguments.length<=0?void 0:arguments[0])||{};if(!e.hasOwnProperty("key")&&!e.hasOwnProperty("name"))throw new Error("You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.");return{type:"NAVIGATE",payload:e}}}function Ae(e){return{type:"RESET",payload:e}}function xt(e){return{type:"SET_PARAMS",payload:{params:e}}}const ye=Object.freeze(Object.defineProperty({__proto__:null,goBack:bt,navigate:wt,reset:Ae,setParams:xt},Symbol.toStringTag,{value:"Module"}));let Rt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Se=(e=21)=>{let t="",r=e|0;for(;r--;)t+=Rt[Math.random()*64|0];return t};const be="The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.",Ct='Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.',Et=c.createContext(void 0);function Ot(e){let{children:t}=e;const r=c.useRef(),n=c.useMemo(()=>({register(i){const a=r.current;if(a!==void 0&&i!==a)throw new Error(Ct);r.current=i},unregister(i){const a=r.current;i===a&&(r.current=void 0)}}),[]);return c.createElement(Et.Provider,{value:n},t)}function G(e){var t,r;let n=e;for(;((i=n)===null||i===void 0?void 0:i.routes[n.index??0].state)!=null;){var i;n=n.routes[n.index??0].state}return(t=n)===null||t===void 0?void 0:t.routes[((r=n)===null||r===void 0?void 0:r.index)??0]}const Te=c.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}}),Ft=c.createContext(void 0),jt=c.createContext(void 0),Pt=c.createContext(void 0),D="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",ae=c.createContext({isDefault:!0,get getKey(){throw new Error(D)},get setKey(){throw new Error(D)},get getState(){throw new Error(D)},get setState(){throw new Error(D)},get getIsInitial(){throw new Error(D)}}),Nt=c.createContext(void 0);function kt(){const{current:e}=c.useRef({action:[],focus:[]}),t=c.useCallback((r,n)=>{e[r].push(n);let i=!1;return()=>{const a=e[r].indexOf(n);!i&&a>-1&&(i=!0,e[r].splice(a,1))}},[e]);return{listeners:e,addListener:t}}function $t(e){const t=c.useRef(e);c.useEffect(()=>{t.current=e});const r=c.useRef(Object.create(null)),n=c.useCallback(a=>{const l=(g,p)=>{const u=r.current[g]?r.current[g][a]:void 0;if(!u)return;const v=u.indexOf(p);v>-1&&u.splice(v,1)};return{addListener:(g,p)=>{r.current[g]=r.current[g]||{},r.current[g][a]=r.current[g][a]||[],r.current[g][a].push(p);let u=!1;return()=>{u||(u=!0,l(g,p))}},removeListener:l}},[]),i=c.useCallback(a=>{var l,h;let{type:g,data:p,target:u,canPreventDefault:v}=a;const w=r.current[g]||{},y=u!==void 0?(l=w[u])===null||l===void 0?void 0:l.slice():[].concat(...Object.keys(w).map(R=>w[R])).filter((R,x,F)=>F.lastIndexOf(R)===x),b={get type(){return g}};if(u!==void 0&&Object.defineProperty(b,"target",{enumerable:!0,get(){return u}}),p!==void 0&&Object.defineProperty(b,"data",{enumerable:!0,get(){return p}}),v){let R=!1;Object.defineProperties(b,{defaultPrevented:{enumerable:!0,get(){return R}},preventDefault:{enumerable:!0,value(){R=!0}}})}return(h=t.current)===null||h===void 0||h.call(t,b),y==null||y.forEach(R=>R(b)),b},[]);return c.useMemo(()=>({create:n,emit:i}),[n,i])}function It(){const{current:e}=c.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),t=c.useCallback((r,n,i)=>(e[r][n]=i,()=>{e[r][n]=void 0}),[e]);return{keyedListeners:e,addKeyedListener:t}}function At(e){let{key:t,options:r,navigation:n}=e;const i=c.useRef(r),a=c.useRef({}),{onOptionsChange:l}=c.useContext(Te),{addOptionsGetter:h}=c.useContext(ae),g=c.useCallback(()=>{const w=(n==null?void 0:n.isFocused())??!0,y=Object.keys(a.current).length;w&&!y&&l(i.current??{})},[n,l]);c.useEffect(()=>(i.current=r,g(),n==null?void 0:n.addListener("focus",g)),[n,r,g]);const p=c.useCallback(()=>{for(let b in a.current)if(a.current.hasOwnProperty(b)){var w,y;const R=(w=(y=a.current)[b])===null||w===void 0?void 0:w.call(y);if(R!==null)return R}return null},[]),u=c.useCallback(()=>{if(!((n==null?void 0:n.isFocused())??!0))return null;const y=p();return y!==null?y:i.current},[n,p]);return c.useEffect(()=>h==null?void 0:h(t,u),[u,h,t]),{addOptionsGetter:c.useCallback((w,y)=>(a.current[w]=y,g(),()=>{delete a.current[w],g()}),[g]),getCurrentOptions:u}}const we="Couldn't find a schedule context.",Tt=c.createContext({scheduleUpdate(){throw new Error(we)},flushUpdates(){throw new Error(we)}}),xe={};function Lt(e){const t=c.useRef(xe),r=c.useRef(!1),n=c.useRef(!0);c.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),t.current===xe&&(t.current=typeof e=="function"?e():e);const[i,a]=c.useState(t.current),l=c.useCallback(()=>t.current,[]),h=c.useCallback(v=>{v===t.current||!n.current||(t.current=v,r.current||a(v))},[]),g=c.useCallback(v=>{r.current=!0;try{v()}finally{r.current=!1}},[]),p=c.useCallback(()=>{n.current&&a(t.current)},[]);i!==t.current&&a(t.current);const u=t.current;return c.useDebugValue(u),[u,l,h,g,p]}const Le=e=>{if(e===void 0)return;const{key:t,routeNames:r,...n}=e;return{...n,stale:!0,routes:e.routes.map(i=>i.state===void 0?i:{...i,state:Le(i.state)})}},Mt=c.forwardRef(function(t,r){let{initialState:n,onStateChange:i,onUnhandledAction:a,independent:l,children:h}=t;if(!c.useContext(ae).isDefault&&!l)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[p,u,v,w,y]=Lt(()=>Le(n??void 0)),b=c.useRef(!0),R=c.useRef(),x=c.useCallback(()=>R.current,[]),F=c.useCallback(O=>{R.current=O},[]),{listeners:o,addListener:s}=kt(),{keyedListeners:f,addKeyedListener:d}=It(),m=c.useCallback(O=>{o.focus[0]==null?console.error(be):o.focus[0](k=>k.dispatch(O))},[o.focus]),C=c.useCallback(()=>{if(o.focus[0]==null)return!1;const{result:O,handled:k}=o.focus[0](W=>W.canGoBack());return k?O:!1},[o.focus]),S=c.useCallback(O=>{var k,W;const ve=(O==null?void 0:O.key)??((k=(W=f.getState).root)===null||k===void 0?void 0:k.call(W).key);ve==null?console.error(be):o.focus[0](nt=>nt.dispatch({...Ae(O),target:ve}))},[f.getState,o.focus]),E=c.useCallback(()=>{var O,k;return(O=(k=f.getState).root)===null||O===void 0?void 0:O.call(k)},[f.getState]),A=c.useCallback(()=>{const O=E();return O==null?void 0:G(O)},[E]),P=$t(),{addOptionsGetter:$,getCurrentOptions:L}=At({}),M=c.useMemo(()=>({...Object.keys(ye).reduce((O,k)=>(O[k]=function(){return m(ye[k](...arguments))},O),{}),...P.create("root"),dispatch:m,resetRoot:S,isFocused:()=>!0,canGoBack:C,getParent:()=>{},getState:()=>pe.current,getRootState:E,getCurrentRoute:A,getCurrentOptions:L,isReady:()=>o.focus[0]!=null,setOptions:()=>{throw new Error("Cannot call setOptions outside a screen")}}),[C,m,P,L,A,E,o.focus,S]);c.useImperativeHandle(r,()=>M,[M]);const U=c.useCallback((O,k)=>{P.emit({type:"__unsafe_action__",data:{action:O,noop:k,stack:me.current}})},[P]),_=c.useRef(),ee=c.useCallback(O=>{_.current!==O&&(_.current=O,P.emit({type:"options",data:{options:O}}))},[P]),me=c.useRef(),Qe=c.useMemo(()=>({addListener:s,addKeyedListener:d,onDispatchAction:U,onOptionsChange:ee,stackRef:me}),[s,d,U,ee]),Je=c.useMemo(()=>({scheduleUpdate:w,flushUpdates:y}),[w,y]),ge=c.useRef(!0),he=c.useCallback(()=>ge.current,[]),et=c.useMemo(()=>({state:p,getState:u,setState:v,getKey:x,setKey:F,getIsInitial:he,addOptionsGetter:$}),[p,u,v,x,F,he,$]),te=c.useRef(i),pe=c.useRef(p);c.useEffect(()=>{ge.current=!1,te.current=i,pe.current=p}),c.useEffect(()=>{const O=E();P.emit({type:"state",data:{state:p}}),!b.current&&te.current&&te.current(O),b.current=!1},[E,P,p]);const tt=c.useCallback(O=>{},[]);let ne=c.createElement(Ft.Provider,{value:M},c.createElement(Tt.Provider,{value:Je},c.createElement(Te.Provider,{value:Qe},c.createElement(ae.Provider,{value:et},c.createElement(Nt.Provider,{value:a??tt},c.createElement(Ot,null,h))))));return l&&(ne=c.createElement(Pt.Provider,{value:void 0},c.createElement(jt.Provider,{value:void 0},ne))),ne});function Me(e,t){var r;const n=t?Ue(t):{},i=e.index!=null?e.routes.slice(0,e.index+1):e.routes;if(i.length===0)return;if(!(i.length===1&&i[0].key===void 0||i.length===2&&i[0].key===void 0&&i[0].name===(n==null?void 0:n.initialRouteName)&&i[1].key===void 0))return{type:"RESET",payload:e};const a=e.routes[e.index??e.routes.length-1];let l=a==null?void 0:a.state,h=n==null||(r=n.screens)===null||r===void 0?void 0:r[a==null?void 0:a.name],g={...a.params},p=a?{name:a.name,path:a.path,params:g}:void 0;for(;l;){var u,v,w;if(l.routes.length===0)return;const y=l.index!=null?l.routes.slice(0,l.index+1):l.routes,b=y[y.length-1];if(Object.assign(g,{initial:void 0,screen:void 0,params:void 0,state:void 0}),y.length===1&&y[0].key===void 0)g.initial=!0,g.screen=b.name;else if(y.length===2&&y[0].key===void 0&&y[0].name===((u=h)===null||u===void 0?void 0:u.initialRouteName)&&y[1].key===void 0)g.initial=!1,g.screen=b.name;else{g.state=l;break}b.state?(g.params={...b.params},g=g.params):(g.path=b.path,g.params=b.params),l=b.state,h=(v=h)===null||v===void 0||(w=v.screens)===null||w===void 0?void 0:w[b.name]}if(p)return{type:"NAVIGATE",payload:p}}const Ue=e=>typeof e=="object"&&e!=null?{initialRouteName:e.initialRouteName,screens:e.screens!=null?Ut(e.screens):void 0}:{},Ut=e=>Object.entries(e).reduce((t,r)=>{let[n,i]=r;return t[n]=Ue(i),t},{});var ue={},_t=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),_e="%[a-f0-9]{2}",Re=new RegExp("("+_e+")|([^%]+?)","gi"),Ce=new RegExp("("+_e+")+","gi");function ie(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ie(r),ie(n))}function Dt(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Re)||[],r=1;r<t.length;r++)e=ie(t,r).join(""),t=e.match(Re)||[];return e}}function Gt(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Ce.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=Dt(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Ce.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),a=0;a<i.length;a++){var l=i[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}var Wt=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Gt(e)}},Bt=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},Vt=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),a=0;a<n.length;a++){var l=n[a],h=e[l];(i?t.indexOf(l)!==-1:t(l,h,e))&&(r[l]=h)}return r};(function(e){const t=_t,r=Wt,n=Bt,i=Vt,a=o=>o==null,l=Symbol("encodeFragmentIdentifier");function h(o){switch(o.arrayFormat){case"index":return s=>(f,d)=>{const m=f.length;return d===void 0||o.skipNull&&d===null||o.skipEmptyString&&d===""?f:d===null?[...f,[u(s,o),"[",m,"]"].join("")]:[...f,[u(s,o),"[",u(m,o),"]=",u(d,o)].join("")]};case"bracket":return s=>(f,d)=>d===void 0||o.skipNull&&d===null||o.skipEmptyString&&d===""?f:d===null?[...f,[u(s,o),"[]"].join("")]:[...f,[u(s,o),"[]=",u(d,o)].join("")];case"colon-list-separator":return s=>(f,d)=>d===void 0||o.skipNull&&d===null||o.skipEmptyString&&d===""?f:d===null?[...f,[u(s,o),":list="].join("")]:[...f,[u(s,o),":list=",u(d,o)].join("")];case"comma":case"separator":case"bracket-separator":{const s=o.arrayFormat==="bracket-separator"?"[]=":"=";return f=>(d,m)=>m===void 0||o.skipNull&&m===null||o.skipEmptyString&&m===""?d:(m=m===null?"":m,d.length===0?[[u(f,o),s,u(m,o)].join("")]:[[d,u(m,o)].join(o.arrayFormatSeparator)])}default:return s=>(f,d)=>d===void 0||o.skipNull&&d===null||o.skipEmptyString&&d===""?f:d===null?[...f,u(s,o)]:[...f,[u(s,o),"=",u(d,o)].join("")]}}function g(o){let s;switch(o.arrayFormat){case"index":return(f,d,m)=>{if(s=/\[(\d*)\]$/.exec(f),f=f.replace(/\[\d*\]$/,""),!s){m[f]=d;return}m[f]===void 0&&(m[f]={}),m[f][s[1]]=d};case"bracket":return(f,d,m)=>{if(s=/(\[\])$/.exec(f),f=f.replace(/\[\]$/,""),!s){m[f]=d;return}if(m[f]===void 0){m[f]=[d];return}m[f]=[].concat(m[f],d)};case"colon-list-separator":return(f,d,m)=>{if(s=/(:list)$/.exec(f),f=f.replace(/:list$/,""),!s){m[f]=d;return}if(m[f]===void 0){m[f]=[d];return}m[f]=[].concat(m[f],d)};case"comma":case"separator":return(f,d,m)=>{const C=typeof d=="string"&&d.includes(o.arrayFormatSeparator),S=typeof d=="string"&&!C&&v(d,o).includes(o.arrayFormatSeparator);d=S?v(d,o):d;const E=C||S?d.split(o.arrayFormatSeparator).map(A=>v(A,o)):d===null?d:v(d,o);m[f]=E};case"bracket-separator":return(f,d,m)=>{const C=/(\[\])$/.test(f);if(f=f.replace(/\[\]$/,""),!C){m[f]=d&&v(d,o);return}const S=d===null?[]:d.split(o.arrayFormatSeparator).map(E=>v(E,o));if(m[f]===void 0){m[f]=S;return}m[f]=[].concat(m[f],S)};default:return(f,d,m)=>{if(m[f]===void 0){m[f]=d;return}m[f]=[].concat(m[f],d)}}}function p(o){if(typeof o!="string"||o.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(o,s){return s.encode?s.strict?t(o):encodeURIComponent(o):o}function v(o,s){return s.decode?r(o):o}function w(o){return Array.isArray(o)?o.sort():typeof o=="object"?w(Object.keys(o)).sort((s,f)=>Number(s)-Number(f)).map(s=>o[s]):o}function y(o){const s=o.indexOf("#");return s!==-1&&(o=o.slice(0,s)),o}function b(o){let s="";const f=o.indexOf("#");return f!==-1&&(s=o.slice(f)),s}function R(o){o=y(o);const s=o.indexOf("?");return s===-1?"":o.slice(s+1)}function x(o,s){return s.parseNumbers&&!Number.isNaN(Number(o))&&typeof o=="string"&&o.trim()!==""?o=Number(o):s.parseBooleans&&o!==null&&(o.toLowerCase()==="true"||o.toLowerCase()==="false")&&(o=o.toLowerCase()==="true"),o}function F(o,s){s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s),p(s.arrayFormatSeparator);const f=g(s),d=Object.create(null);if(typeof o!="string"||(o=o.trim().replace(/^[?#&]/,""),!o))return d;for(const m of o.split("&")){if(m==="")continue;let[C,S]=n(s.decode?m.replace(/\+/g," "):m,"=");S=S===void 0?null:["comma","separator","bracket-separator"].includes(s.arrayFormat)?S:v(S,s),f(v(C,s),S,d)}for(const m of Object.keys(d)){const C=d[m];if(typeof C=="object"&&C!==null)for(const S of Object.keys(C))C[S]=x(C[S],s);else d[m]=x(C,s)}return s.sort===!1?d:(s.sort===!0?Object.keys(d).sort():Object.keys(d).sort(s.sort)).reduce((m,C)=>{const S=d[C];return S&&typeof S=="object"&&!Array.isArray(S)?m[C]=w(S):m[C]=S,m},Object.create(null))}e.extract=R,e.parse=F,e.stringify=(o,s)=>{if(!o)return"";s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s),p(s.arrayFormatSeparator);const f=S=>s.skipNull&&a(o[S])||s.skipEmptyString&&o[S]==="",d=h(s),m={};for(const S of Object.keys(o))f(S)||(m[S]=o[S]);const C=Object.keys(m);return s.sort!==!1&&C.sort(s.sort),C.map(S=>{const E=o[S];return E===void 0?"":E===null?u(S,s):Array.isArray(E)?E.length===0&&s.arrayFormat==="bracket-separator"?u(S,s)+"[]":E.reduce(d(S),[]).join("&"):u(S,s)+"="+u(E,s)}).filter(S=>S.length>0).join("&")},e.parseUrl=(o,s)=>{s=Object.assign({decode:!0},s);const[f,d]=n(o,"#");return Object.assign({url:f.split("?")[0]||"",query:F(R(o),s)},s&&s.parseFragmentIdentifier&&d?{fragmentIdentifier:v(d,s)}:{})},e.stringifyUrl=(o,s)=>{s=Object.assign({encode:!0,strict:!0,[l]:!0},s);const f=y(o.url).split("?")[0]||"",d=e.extract(o.url),m=e.parse(d,{sort:!1}),C=Object.assign(m,o.query);let S=e.stringify(C,s);S&&(S=`?${S}`);let E=b(o.url);return o.fragmentIdentifier&&(E=`#${s[l]?u(o.fragmentIdentifier,s):o.fragmentIdentifier}`),`${f}${S}${E}`},e.pick=(o,s,f)=>{f=Object.assign({parseFragmentIdentifier:!0,[l]:!1},f);const{url:d,query:m,fragmentIdentifier:C}=e.parseUrl(o,f);return e.stringifyUrl({url:d,query:i(m,s),fragmentIdentifier:C},f)},e.exclude=(o,s,f)=>{const d=Array.isArray(s)?m=>!s.includes(m):(m,C)=>!s(m,C);return e.pick(o,d,f)}})(ue);function De(e){return e.reduce((t,r)=>{let[n,i]=r;if(t.hasOwnProperty(n))throw new Error(`A value for key '${n}' already exists in the object.`);return t[n]=i,t},{})}const Ee=e=>e.map(t=>`- ${t}`).join(`
2
- `);function B(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=["initialRouteName","screens"];t||r.push("path","exact","stringify","parse");const n=Object.keys(e).filter(i=>!r.includes(i));if(n.length)throw new Error(`Found invalid properties in the configuration:
3
- ${Ee(n)}
4
-
5
- Did you forget to specify them under a 'screens' property?
6
-
7
- You can only specify the following properties:
8
- ${Ee(r)}
9
-
10
- See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);e.screens&&Object.entries(e.screens).forEach(i=>{let[a,l]=i;typeof l!="string"&&B(l,!1)})}const Ge=e=>{const t=typeof e.index=="number"?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?Ge(t.state):t};function We(e,t){if(e==null)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");t&&B(t);const r=t!=null&&t.screens?Be(t==null?void 0:t.screens):{};let n="/",i=e;const a={};for(;i;){let g=typeof i.index=="number"?i.index:0,p=i.routes[g],u,v,w=Ge(e),y=r,b=[],R=!0;for(;p.name in y&&R;){if(u=y[p.name].pattern,b.push(p.name),p.params){var l;const x=(l=y[p.name])===null||l===void 0?void 0:l.stringify,F=De(Object.entries(p.params).map(o=>{let[s,f]=o;return[s,x!=null&&x[s]?x[s](f):String(f)]}));if(u&&Object.assign(a,F),w===p){var h;v={...F},(h=u)===null||h===void 0||h.split("/").filter(o=>o.startsWith(":")).forEach(o=>{const s=Oe(o);v&&delete v[s]})}}if(!y[p.name].screens||p.state===void 0)R=!1;else{g=typeof p.state.index=="number"?p.state.index:p.state.routes.length-1;const x=p.state.routes[g],F=y[p.name].screens;F&&x.name in F?(p=x,y=F):R=!1}}if(u===void 0&&(u=b.join("/")),y[p.name]!==void 0?n+=u.split("/").map(x=>{const F=Oe(x);if(x==="*")return p.name;if(x.startsWith(":")){const o=a[F];return o===void 0&&x.endsWith("?")?"":encodeURIComponent(o)}return encodeURIComponent(x)}).join("/"):n+=encodeURIComponent(p.name),v||(v=w.params),p.state)n+="/";else if(v){for(let F in v)v[F]==="undefined"&&delete v[F];const x=ue.stringify(v,{sort:!1});x&&(n+=`?${x}`)}i=p.state}return n=n.replace(/\/+/g,"/"),n=n.length>1?n.replace(/\/$/,""):n,n}const Oe=e=>e.replace(/^:/,"").replace(/\?$/,""),Fe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(...t.map(n=>n.split("/"))).filter(Boolean).join("/")},Kt=(e,t)=>{var r;if(typeof e=="string")return{pattern:t?Fe(t,e):e};let n;if(e.exact&&e.path===void 0)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");n=e.exact!==!0?Fe(t||"",e.path||""):e.path||"";const i=e.screens?Be(e.screens,n):void 0;return{pattern:(r=n)===null||r===void 0?void 0:r.split("/").filter(Boolean).join("/"),stringify:e.stringify,screens:i}},Be=(e,t)=>De(Object.entries(e).map(r=>{let[n,i]=r;const a=Kt(i,t);return[n,a]}));var zt=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const Ve=Ie(zt);function Ke(e,t){t&&B(t);let r=[];t!=null&&t.initialRouteName&&r.push({initialRouteName:t.initialRouteName,parentScreens:[]});const n=t==null?void 0:t.screens;let i=e.replace(/\/+/g,"/").replace(/^\//,"").replace(/\?.*$/,"");if(i=i.endsWith("/")?i:`${i}/`,n===void 0){const u=i.split("/").filter(Boolean).map(v=>({name:decodeURIComponent(v)}));return u.length?oe(e,u,r):void 0}const a=[].concat(...Object.keys(n).map(u=>ze(u,n,[],r,[]))).sort((u,v)=>{if(u.pattern===v.pattern)return v.routeNames.join(">").localeCompare(u.routeNames.join(">"));if(u.pattern.startsWith(v.pattern))return-1;if(v.pattern.startsWith(u.pattern))return 1;const w=u.pattern.split("/"),y=v.pattern.split("/");for(let b=0;b<Math.max(w.length,y.length);b++){if(w[b]==null)return 1;if(y[b]==null)return-1;const R=w[b]==="*"||w[b].startsWith(":"),x=y[b]==="*"||y[b].startsWith(":");if(!(R&&x)){if(R)return 1;if(x)return-1}}return y.length-w.length});if(a.reduce((u,v)=>{if(u[v.pattern]){const w=u[v.pattern].routeNames,y=v.routeNames;if(!(w.length>y.length?y.every((R,x)=>w[x]===R):w.every((R,x)=>y[x]===R)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${v.pattern}' resolves to both '${w.join(" > ")}' and '${y.join(" > ")}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(u,{[v.pattern]:v})},{}),i==="/"){const u=a.find(v=>v.path===""&&v.routeNames.every(w=>{var y;return!((y=a.find(b=>b.screen===w))!==null&&y!==void 0&&y.path)}));return u?oe(e,u.routeNames.map(v=>({name:v})),r,a):void 0}let l,h;const{routes:g,remainingPath:p}=qt(i,a.map(u=>({...u,regex:u.regex?new RegExp(u.regex.source+"$"):void 0})));if(g!==void 0&&(h=oe(e,g,r,a),i=p,l=h),!(h==null||l==null))return l}const je=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(...t.map(n=>n.split("/"))).filter(Boolean).join("/")},qt=(e,t)=>{let r,n=e;for(const a of t){if(!a.regex)continue;const l=n.match(a.regex);if(l){var i;const g=((i=a.pattern)===null||i===void 0?void 0:i.split("/").reduce((p,u,v)=>{if(!u.startsWith(":"))return p;p.pos+=1;const w=decodeURIComponent(l[(p.pos+1)*2].replace(/\/$/,""));return Object.assign(p.matchedParams,{[u]:Object.assign(p.matchedParams[u]||{},{[v]:w})}),p},{pos:-1,matchedParams:{}})).matchedParams||{};r=a.routeNames.map(p=>{var u;const v=t.find(R=>R.screen===p&&a.pattern.startsWith(R.pattern)),w=v==null?void 0:v.path.split("/").filter(Boolean).join("/"),y=v==null||(u=v.pattern.replace(new RegExp(`${Ve(w)}$`),""))===null||u===void 0?void 0:u.split("/").length,b=w==null?void 0:w.split("/").reduce((R,x,F)=>{var o;if(!x.startsWith(":"))return R;const s=y?y-1:0,f=(o=g[x])===null||o===void 0?void 0:o[F+s];if(f){var d;const m=x.replace(/^:/,"").replace(/\?$/,"");R[m]=v!=null&&(d=v.parse)!==null&&d!==void 0&&d[m]?v.parse[m](f):f}return R},{});return b&&Object.keys(b).length?{name:p,params:b}:{name:p}}),n=n.replace(l[1],"");break}}return{routes:r,remainingPath:n}},ze=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;const l=[];r.push(e),i.push(e);const h=t[e];if(typeof h=="string"){const g=a?je(a,h):h;l.push(Pe(e,r,g,h))}else if(typeof h=="object"){let g;if(typeof h.path=="string"){if(h.exact&&h.path===void 0)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");g=h.exact!==!0?je(a||"",h.path||""):h.path||"",l.push(Pe(e,r,g,h.path,h.parse))}h.screens&&(h.initialRouteName&&n.push({initialRouteName:h.initialRouteName,parentScreens:i}),Object.keys(h.screens).forEach(p=>{const u=ze(p,h.screens,r,n,[...i],g??a);l.push(...u)}))}return r.pop(),l},Pe=(e,t,r,n,i)=>{r=r.split("/").filter(Boolean).join("/");const a=r?new RegExp(`^(${r.split("/").map(l=>l.startsWith(":")?`(([^/]+\\/)${l.endsWith("?")?"?":""})`:`${l==="*"?".*":Ve(l)}\\/`).join("")})`):void 0;return{screen:e,regex:a,pattern:r,path:n,routeNames:[...t],parse:i}},Ht=(e,t)=>{for(const r of t)if(e===r.routeNames[r.routeNames.length-1])return r.parse},Ne=(e,t,r)=>{for(const n of r)if(t.length===n.parentScreens.length){let i=!0;for(let a=0;a<t.length;a++)if(t[a].localeCompare(n.parentScreens[a])!==0){i=!1;break}if(i)return e!==n.initialRouteName?n.initialRouteName:void 0}},ke=(e,t,r)=>r?e?{index:1,routes:[{name:e},t]}:{routes:[t]}:e?{index:1,routes:[{name:e},{...t,state:{routes:[]}}]}:{routes:[{...t,state:{routes:[]}}]},oe=(e,t,r,n)=>{let i,a=t.shift();const l=[];let h=Ne(a.name,l,r);if(l.push(a.name),i=ke(h,a,t.length===0),t.length>0){let p=i;for(;a=t.shift();){h=Ne(a.name,l,r);const u=p.index||p.routes.length-1;p.routes[u].state=ke(h,a,t.length===0),t.length>0&&(p=p.routes[u].state),l.push(a.name)}}a=G(i),a.path=e;const g=Yt(e,n?Ht(a.name,n):void 0);return g&&(a.params={...a.params,...g}),i},Yt=(e,t)=>{const r=e.split("?")[1],n=ue.parse(r);return t&&Object.keys(n).forEach(i=>{Object.hasOwnProperty.call(t,i)&&typeof n[i]=="string"&&(n[i]=t[i](n[i]))}),Object.keys(n).length?n:void 0};var $e=c;typeof document<"u"||typeof navigator<"u"&&navigator.product==="ReactNative"?$e.useLayoutEffect:$e.useEffect;var j={};/** @license React v16.13.1
11
- * react-is.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var N=typeof Symbol=="function"&&Symbol.for,le=N?Symbol.for("react.element"):60103,de=N?Symbol.for("react.portal"):60106,V=N?Symbol.for("react.fragment"):60107,K=N?Symbol.for("react.strict_mode"):60108,z=N?Symbol.for("react.profiler"):60114,q=N?Symbol.for("react.provider"):60109,H=N?Symbol.for("react.context"):60110,fe=N?Symbol.for("react.async_mode"):60111,Y=N?Symbol.for("react.concurrent_mode"):60111,Z=N?Symbol.for("react.forward_ref"):60112,X=N?Symbol.for("react.suspense"):60113,Zt=N?Symbol.for("react.suspense_list"):60120,Q=N?Symbol.for("react.memo"):60115,J=N?Symbol.for("react.lazy"):60116,Xt=N?Symbol.for("react.block"):60121,Qt=N?Symbol.for("react.fundamental"):60117,Jt=N?Symbol.for("react.responder"):60118,en=N?Symbol.for("react.scope"):60119;function I(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case le:switch(e=e.type,e){case fe:case Y:case V:case z:case K:case X:return e;default:switch(e=e&&e.$$typeof,e){case H:case Z:case J:case Q:case q:return e;default:return t}}case de:return t}}}function qe(e){return I(e)===Y}j.AsyncMode=fe;j.ConcurrentMode=Y;j.ContextConsumer=H;j.ContextProvider=q;j.Element=le;j.ForwardRef=Z;j.Fragment=V;j.Lazy=J;j.Memo=Q;j.Portal=de;j.Profiler=z;j.StrictMode=K;j.Suspense=X;j.isAsyncMode=function(e){return qe(e)||I(e)===fe};j.isConcurrentMode=qe;j.isContextConsumer=function(e){return I(e)===H};j.isContextProvider=function(e){return I(e)===q};j.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===le};j.isForwardRef=function(e){return I(e)===Z};j.isFragment=function(e){return I(e)===V};j.isLazy=function(e){return I(e)===J};j.isMemo=function(e){return I(e)===Q};j.isPortal=function(e){return I(e)===de};j.isProfiler=function(e){return I(e)===z};j.isStrictMode=function(e){return I(e)===K};j.isSuspense=function(e){return I(e)===X};j.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===V||e===Y||e===z||e===K||e===X||e===Zt||typeof e=="object"&&e!==null&&(e.$$typeof===J||e.$$typeof===Q||e.$$typeof===q||e.$$typeof===H||e.$$typeof===Z||e.$$typeof===Qt||e.$$typeof===Jt||e.$$typeof===en||e.$$typeof===Xt)};j.typeOf=I;const He=c.createContext({options:void 0});He.displayName="LinkingContext";const Ye={dark:!1,colors:{primary:"rgb(0, 122, 255)",background:"rgb(242, 242, 242)",card:"rgb(255, 255, 255)",text:"rgb(28, 28, 30)",border:"rgb(216, 216, 216)",notification:"rgb(255, 59, 48)"}},Ze=c.createContext(Ye);Ze.displayName="ThemeContext";function tn(e){let{value:t,children:r}=e;return c.createElement(Ze.Provider,{value:t},r)}function nn(e){let{enabled:t=!0,formatter:r=(n,i)=>(n==null?void 0:n.title)??(i==null?void 0:i.name)}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c.useEffect(()=>{if(!t)return;const n=e.current;if(n){const i=r(n.getCurrentOptions(),n.getCurrentRoute());document.title=i}return n==null?void 0:n.addListener("options",i=>{const a=r(i.data.options,n==null?void 0:n.getCurrentRoute());document.title=a})})}var rn=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var l=a[i];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};const on=Ie(rn);function an(){let e=0,t=[];const r=[],n=()=>{r.forEach(a=>{const l=a.cb;a.cb=()=>l(!0)})};return{get index(){var a;const l=(a=window.history.state)===null||a===void 0?void 0:a.id;if(l){const h=t.findIndex(g=>g.id===l);return h>-1?h:0}return 0},get(a){return t[a]},backIndex(a){let{path:l}=a;for(let h=e-1;h>=0;h--)if(t[h].path===l)return h;return-1},push(a){let{path:l,state:h}=a;n();const g=Se();t=t.slice(0,e+1),t.push({path:l,state:h,id:g}),e=t.length-1,window.history.pushState({id:g},"",l)},replace(a){var l;let{path:h,state:g}=a;n();const p=((l=window.history.state)===null||l===void 0?void 0:l.id)??Se();let u=h;!t.length||t.findIndex(v=>v.id===p)<0?(u=u+location.hash,t=[{path:u,state:g,id:p}],e=0):(t[e].path===h&&(u=u+location.hash),t[e]={path:h,state:g,id:p}),window.history.replaceState({id:p},"",u)},go(a){n();const l=e+a,h=t.length-1;if(a<0&&!t[l]?(a=-e,e=0):a>0&&l>h?(a=h-e,e=h):e=l,a!==0)return new Promise((g,p)=>{const u=y=>{if(clearTimeout(v),y){p(new Error("History was changed during navigation."));return}const{title:b}=window.document;window.document.title="",window.document.title=b,g()};r.push({ref:u,cb:u});const v=setTimeout(()=>{const y=r.findIndex(b=>b.ref===u);y>-1&&(r[y].cb(),r.splice(y,1))},100),w=()=>{var y;const b=(y=window.history.state)===null||y===void 0?void 0:y.id,R=t.findIndex(F=>F.id===b);e=Math.max(R,0);const x=r.pop();window.removeEventListener("popstate",w),x==null||x.cb()};window.addEventListener("popstate",w),window.history.go(a)})},listen(a){const l=()=>{r.length||a()};return window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)}}}const sn=c.createContext(void 0),Xe=(e,t)=>{if(e===void 0||t===void 0||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,i=e.routes[e.index],a=t.routes[t.index],l=i.state,h=a.state;return r!==n||i.key!==a.key||l===void 0||h===void 0||l.key!==h.key?[e,t]:Xe(l,h)},cn=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}};function un(e,t){let{independent:r,enabled:n=!0,config:i,getStateFromPath:a=Ke,getPathFromState:l=We,getActionFromState:h=Me}=t;c.useEffect(()=>{},[n,r]);const[g]=c.useState(an),p=c.useRef(n),u=c.useRef(i),v=c.useRef(a),w=c.useRef(l),y=c.useRef(h);c.useEffect(()=>{p.current=n,u.current=i,v.current=a,w.current=l,y.current=h});const b=c.useContext(sn),R=c.useCallback(()=>{let s;if(p.current){const d=(b==null?void 0:b.location)??(typeof window<"u"?window.location:void 0),m=d?d.pathname+d.search:void 0;m&&(s=v.current(m,u.current))}const f={then(d){return Promise.resolve(d?d(s):s)},catch(){return f}};return f},[]),x=c.useRef(void 0),F=c.useRef(void 0),o=c.useRef(void 0);return c.useEffect(()=>(x.current=g.index,g.listen(()=>{const s=e.current;if(!s||!n)return;const{location:f}=window,d=f.pathname+f.search,m=g.index,C=x.current??0;x.current=m,o.current=d;const S=g.get(m);if((S==null?void 0:S.path)===d&&S!==null&&S!==void 0&&S.state){s.resetRoot(S.state);return}const E=v.current(d,u.current);if(E){const A=s.getRootState();if(E.routes.some(P=>!(A!=null&&A.routeNames.includes(P.name)))){console.warn("The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuration doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.");return}if(m>C){const P=y.current(E,u.current);if(P!==void 0)try{s.dispatch(P)}catch($){console.warn(`An error occurred when trying to handle the link '${d}': ${typeof $=="object"&&$!=null&&"message"in $?$.message:$}`)}else s.resetRoot(E)}else s.resetRoot(E)}else s.resetRoot(E)})),[n,g,e]),c.useEffect(()=>{var s;if(!n)return;const f=(m,C)=>{if(m!=null&&m.path){const S=v.current(m.path,u.current);if(S){const E=G(S);if(E&&E.name===m.name&&on(E.params,m.params))return m.path}}return w.current(C,u.current)};if(e.current){const m=e.current.getRootState();if(m){const C=G(m),S=f(C,m);F.current===void 0&&(F.current=m),g.replace({path:S,state:m})}}const d=async()=>{const m=e.current;if(!m||!n)return;const C=F.current,S=m.getRootState();if(!S)return;const E=o.current,A=G(S),P=f(A,S);F.current=S,o.current=void 0;const[$,L]=Xe(C,S);if($&&L&&P!==E){const M=(L.history?L.history.length:L.routes.length)-($.history?$.history.length:$.routes.length);if(M>0)g.push({path:P,state:S});else if(M<0){const U=g.backIndex({path:P}),_=g.index;try{U!==-1&&U<_&&g.get(U-_)?await g.go(U-_):await g.go(M),g.replace({path:P,state:S})}catch{}}else g.replace({path:P,state:S})}else g.replace({path:P,state:S})};return(s=e.current)===null||s===void 0?void 0:s.addListener("state",cn(d))},[n,g,e]),{getInitialState:R}}function ln(e){const[t]=c.useState(e);let r=[!1,void 0];t.then(l=>{r=[!0,l]});const[n,i]=c.useState(r),[a]=n;return c.useEffect(()=>{let l=!1;return a||(async()=>{let g;try{g=await t}finally{l||i([!0,g])}})(),()=>{l=!0}},[t,a]),n}function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}global.REACT_NAVIGATION_DEVTOOLS=new WeakMap;function dn(e,t){let{theme:r=Ye,linking:n,fallback:i=null,documentTitle:a,onReady:l,...h}=e;const g=n?n.enabled!==!1:!1;n!=null&&n.config&&B(n.config);const p=c.useRef(null);nn(p,a);const{getInitialState:u}=un(p,{independent:h.independent,enabled:g,...n});c.useEffect(()=>{p.current&&REACT_NAVIGATION_DEVTOOLS.set(p.current,{get linking(){return{...n,enabled:g,prefixes:(n==null?void 0:n.prefixes)??[],getStateFromPath:(n==null?void 0:n.getStateFromPath)??Ke,getPathFromState:(n==null?void 0:n.getPathFromState)??We,getActionFromState:(n==null?void 0:n.getActionFromState)??Me}}})});const[v,w]=ln(u);c.useImperativeHandle(t,()=>p.current);const y=c.useMemo(()=>({options:n}),[n]),b=h.initialState!=null||!g||v,R=c.useRef(l);return c.useEffect(()=>{R.current=l}),c.useEffect(()=>{if(b){var x;(x=R.current)===null||x===void 0||x.call(R)}},[b]),b?c.createElement(He.Provider,{value:y},c.createElement(tn,{value:r},c.createElement(Mt,se({},h,{initialState:h.initialState==null?w:h.initialState,ref:p})))):i}const fn=c.forwardRef(dn),mn={prefixes:["consumer-sandbox://","https://consumer-sandbox.local"],config:{screens:{Welcome:"",Home:"home"}}},gn=ct({createTamagui:yt,createTokens:vt,defaultTheme:"light",extendTokens:{color:{brandAccent:"#3366FF"}},extendThemes:{light:{brandAccent:"#3366FF"},dark:{brandAccent:"#6699FF"}}});function hn({children:e}){const{colorMode:t}=gt();return T.createElement(ht,{name:t},e)}function ce({children:e}){const[t,r]=c.useState(!1);return c.useEffect(()=>{ut().then(()=>r(!0))},[]),t?T.createElement(lt,{style:pn.root},T.createElement(St,{config:gn,defaultTheme:"light"},T.createElement(dt,{defaultColorMode:"system"},T.createElement(hn,null,T.createElement(ft,null,T.createElement(fn,{linking:mn},e)))))):null}const pn=mt.create({root:{flex:1}});try{ce.displayName="AppProviders",ce.__docgenInfo={description:"",displayName:"AppProviders",props:{}}}catch{}const wn={decorators:[e=>T.createElement(ce,null,T.createElement(e,null))],parameters:{layout:"centered",controls:{expanded:!0}}};export{wn as default};
@@ -1 +0,0 @@
1
- import{r as s}from"./index-NGyRR_en.js";import{c as l}from"./client-DGEjZp2f.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-zmTGQa7e.js";var n=new Map;function m(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var a=({callback:e,children:r})=>{let t=s.useRef();return s.useLayoutEffect(()=>{t.current!==e&&(t.current=e,e())},[e]),r};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,r=null;return{promise:new Promise((t,o)=>{e=t,r=o}),resolve:e,reject:r}});var f=async(e,r,t)=>{let o=await c(r,t);if(m()){o.render(e);return}let{promise:i,resolve:u}=Promise.withResolvers();return o.render(s.createElement(a,{callback:u},e)),i},w=(e,r)=>{let t=n.get(e);t&&(t.unmount(),n.delete(e))},c=async(e,r)=>{let t=n.get(e);return t||(t=l.createRoot(e,r),n.set(e,t)),t};export{f as renderElement,w as unmountElement};
@@ -1 +0,0 @@
1
- const t={};export{t as default};