Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/404.html b/404.html new file mode 100644 index 000000000..47b75d0ca --- /dev/null +++ b/404.html @@ -0,0 +1,22 @@ + + +
+ + +We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
changedMap
",id:"changedmap",level:3},{value:"error
",id:"error",level:3},{value:"formRef
",id:"formref",level:3},{value:"model
",id:"model",level:3},{value:"name
",id:"name",level:3},{value:"onChange
",id:"onchange",level:3},{value:"onSubmit
",id:"onsubmit",level:3},{value:"randomId
",id:"randomid",level:3},{value:"schema
",id:"schema",level:3},{value:"state
",id:"state",level:3},{value:"submitted
",id:"submitted",level:3},{value:"submitting
",id:"submitting",level:3},{value:"validating
",id:"validating",level:3}],s={toc:c};function p(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"Some components might need to know a current form state, which is passed as ",(0,r.kt)("a",{parentName:"p",href:"https://reactjs.org/docs/context.html"},"React context"),".\nProperties stored in the context relates either to the form values or the form instance itself.\nThat means, besides current form state, you can access form methods or encounter some metadata, e.g. about the used schema.\nSome of them were designed for internal use, but you can still take advantage of them."),(0,r.kt)("h2",{id:"accessing-context-data"},"Accessing context data"),(0,r.kt)("p",null,"A direct way of accessing the context data is to use the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-helpers/#useform"},(0,r.kt)("inlineCode",{parentName:"a"},"useForm"))," hook:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useForm } from 'uniforms';\n\nfunction Example() {\n const context = useForm();\n}\n")),(0,r.kt)("p",null,"For convenience, it's also accessible through the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-helpers/#usefield"},(0,r.kt)("inlineCode",{parentName:"a"},"useField"))," hook:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useField } from 'uniforms';\n\nfunction Example(rawProps) {\n const [props, context] = useField(rawProps.name, rawProps);\n}\n")),(0,r.kt)("h2",{id:"available-context-data"},"Available context data"),(0,r.kt)("h3",{id:"changed"},(0,r.kt)("inlineCode",{parentName:"h3"},"changed")),(0,r.kt)("p",null,"Indicates whether there was a change on form."),(0,r.kt)("h3",{id:"changedmap"},(0,r.kt)("inlineCode",{parentName:"h3"},"changedMap")),(0,r.kt)("p",null,"A map of changed fields. Rather internal one, used for checking if ",(0,r.kt)("em",{parentName:"p"},"other")," fields has changed."),(0,r.kt)("h3",{id:"error"},(0,r.kt)("inlineCode",{parentName:"h3"},"error")),(0,r.kt)("p",null,"An object with a ",(0,r.kt)("inlineCode",{parentName:"p"},"details")," field, which is an array of any validation errors."),(0,r.kt)("h3",{id:"formref"},(0,r.kt)("inlineCode",{parentName:"h3"},"formRef")),(0,r.kt)("p",null,"Contains reference to the form component that gives access to ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-forms#methods"},"the form methods"),"."),(0,r.kt)("h3",{id:"model"},(0,r.kt)("inlineCode",{parentName:"h3"},"model")),(0,r.kt)("p",null,"An object with current form fields values structured ",(0,r.kt)("inlineCode",{parentName:"p"},"{field: value}"),"."),(0,r.kt)("h3",{id:"name"},(0,r.kt)("inlineCode",{parentName:"h3"},"name")),(0,r.kt)("p",null,"It is an array of the parent fields names:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"r.createElement("span",(0,o.Z)({key:t},i({token:e,key:t})))));return r.createElement("span",s,a?r.createElement(r.Fragment,null,r.createElement("span",{className:D}),r.createElement("span",{className:M},u)):r.createElement(r.Fragment,null,u,r.createElement("br",null)))}var R=n(99213),V={copyButtonCopied:"copyButtonCopied_TYdd",copyButtonIcons:"copyButtonIcons_z5j7",copyButtonIcon:"copyButtonIcon_FoOz",copyButtonSuccessIcon:"copyButtonSuccessIcon_L0B6"};function $(e){let{code:t,className:n}=e;const[o,a]=(0,r.useState)(!1),l=(0,r.useRef)(void 0),i=(0,r.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;const o=document.createElement("textarea"),r=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const a=document.getSelection();let l=!1;a.rangeCount>0&&(l=a.getRangeAt(0)),n.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let c=!1;try{c=document.execCommand("copy")}catch{}o.remove(),l&&(a.removeAllRanges(),a.addRange(l)),r&&r.focus()}(t),a(!0),l.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,r.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),r.createElement("button",{type:"button","aria-label":o?(0,R.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,R.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,R.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.Z)("clean-btn",n,V.copyButton,o&&V.copyButtonCopied),onClick:i},r.createElement("span",{className:V.copyButtonIcons,"aria-hidden":"true"},r.createElement("svg",{className:V.copyButtonIcon,viewBox:"0 0 24 24"},r.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})),r.createElement("svg",{className:V.copyButtonSuccessIcon,viewBox:"0 0 24 24"},r.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}var F="wordWrapButtonIcon_HV9T",W="wordWrapButtonEnabled_XzR1";function Q(e){let{className:t,onClick:n,isEnabled:o}=e;const a=(0,R.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return r.createElement("button",{type:"button",onClick:n,className:(0,c.Z)("clean-btn",t,o&&W),"aria-label":a,title:a},r.createElement("svg",{className:F,viewBox:"0 0 24 24","aria-hidden":"true"},r.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})))}function q(e){let{children:t,className:n="",metastring:a,title:l,showLineNumbers:i,language:m}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,s.L)(),h=m??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return null==t?void 0:t.replace(/language-/,"")}(n)??d,g=u(),y=function(){const[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),a=(0,r.useRef)(null),l=(0,r.useCallback)((()=>{const n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[a,e]),c=(0,r.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=a.current,n=e>t||a.current.querySelector("code").hasAttribute("style");o(n)}),[a]);return B(a,c),(0,r.useEffect)((()=>{c()}),[e,c]),(0,r.useEffect)((()=>(window.addEventListener("resize",c,{passive:!0}),()=>{window.removeEventListener("resize",c)})),[c]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:l}}(),b=function(e){var t;return(null==e||null==(t=e.match(f))?void 0:t.groups.title)??""}(a)||l,{lineClassNames:N,code:C}=v(t,{metastring:a,language:h,magicComments:p}),w=i??function(e){return Boolean(null==e?void 0:e.includes("showLineNumbers"))}(a);return r.createElement(E,{as:"div",className:(0,c.Z)(n,h&&!n.includes(`language-${h}`)&&`language-${h}`)},b&&r.createElement("div",{className:k.codeBlockTitle},b),r.createElement("div",{className:k.codeBlockContent},r.createElement(A,(0,o.Z)({},j,{theme:g,code:C,language:h??"text"}),(e=>{let{className:t,tokens:n,getLineProps:o,getTokenProps:a}=e;return r.createElement("pre",{tabIndex:0,ref:y.codeBlockRef,className:(0,c.Z)(t,k.codeBlock,"thin-scrollbar")},r.createElement("code",{className:(0,c.Z)(k.codeBlockLines,w&&k.codeBlockLinesWithNumbering)},n.map(((e,t)=>r.createElement(H,{key:t,line:e,getLineProps:o,getTokenProps:a,classNames:N[t],showLineNumbers:w})))))})),r.createElement("div",{className:k.buttonGroup},(y.isEnabled||y.isCodeScrollable)&&r.createElement(Q,{className:k.codeButton,onClick:()=>y.toggle(),isEnabled:y.isEnabled}),r.createElement($,{className:k.codeButton,code:C}))))}function G(e){let{children:t,...n}=e;const a=(0,l.Z)(),c=function(e){return r.Children.toArray(e).some((e=>(0,r.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof c?q:N;return r.createElement(i,(0,o.Z)({key:String(a)},n),c)}var X=n(81884);var U=n(80376),Y="details_IpIu",J="isBrowser_QD4r",K="collapsibleContent_Fd2D";function ee(e){return!!e&&("SUMMARY"===e.tagName||ee(e.parentElement))}function te(e,t){return!!e&&(e===t||te(e.parentElement,t))}function ne(e){let{summary:t,children:n,...a}=e;const i=(0,l.Z)(),s=(0,r.useRef)(null),{collapsed:u,setCollapsed:m}=(0,U.u)({initialState:!a.open}),[d,p]=(0,r.useState)(a.open);return r.createElement("details",(0,o.Z)({},a,{ref:s,open:d,"data-collapsed":u,className:(0,c.Z)(Y,i&&J,a.className),onMouseDown:e=>{ee(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;ee(t)&&te(t,s.current)&&(e.preventDefault(),u?(m(!1),p(!0)):m(!0))}}),t??r.createElement("summary",null,"Details"),r.createElement(U.z,{lazy:!1,collapsed:u,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),p(!e)}},r.createElement("div",{className:K},n)))}var oe="details_jERq";function re(e){let{...t}=e;return r.createElement(ne,(0,o.Z)({},t,{className:(0,c.Z)("alert alert--info",oe,t.className)}))}var ae=n(1999);function le(e){return r.createElement(ae.Z,e)}var ce="containsTaskList_QWGu";var ie="img_SS3x";var se="admonition_uH4V",ue="admonitionHeading_P5_N",me="admonitionIcon_MF44",de="admonitionContent_yySL";const pe={note:{infimaClassName:"secondary",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:r.createElement(R.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 12 16"},r.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:r.createElement(R.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 12 16"},r.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:r.createElement(R.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:r.createElement(R.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:r.createElement(R.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},fe={secondary:"note",important:"info",success:"tip",warning:"danger"};function he(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=r.Children.toArray(e),n=t.find((e=>{var t;return r.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),o=r.createElement(r.Fragment,null,t.filter((e=>e!==n)));return{mdxAdmonitionTitle:n,rest:o}}(e.children);return{...e,title:e.title??t,children:n}}var ge={head:function(e){const t=r.Children.map(e.children,(e=>r.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){const{mdxType:t,originalType:n,...o}=e.props;return r.createElement(e.props.originalType,o)}return e}(e):e));return r.createElement(a.Z,e,t)},code:function(e){const t=["a","b","big","i","span","em","strong","sup","sub","small"];return r.Children.toArray(e.children).every((e=>{var n;return"string"==typeof e&&!e.includes("\n")||(0,r.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?r.createElement("code",e):r.createElement(G,e)},a:function(e){return r.createElement(X.Z,e)},pre:function(e){var t;return r.createElement(G,(0,r.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:{...e})},details:function(e){const t=r.Children.toArray(e.children),n=t.find((e=>{var t;return r.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),a=r.createElement(r.Fragment,null,t.filter((e=>e!==n)));return r.createElement(re,(0,o.Z)({},e,{summary:n}),a)},ul:function(e){return r.createElement("ul",(0,o.Z)({},e,{className:(t=e.className,(0,c.Z)(t,(null==t?void 0:t.includes("contains-task-list"))&&ce))}));var t},img:function(e){return r.createElement("img",(0,o.Z)({loading:"lazy"},e,{className:(t=e.className,(0,c.Z)(t,ie))}));var t},h1:e=>r.createElement(le,(0,o.Z)({as:"h1"},e)),h2:e=>r.createElement(le,(0,o.Z)({as:"h2"},e)),h3:e=>r.createElement(le,(0,o.Z)({as:"h3"},e)),h4:e=>r.createElement(le,(0,o.Z)({as:"h4"},e)),h5:e=>r.createElement(le,(0,o.Z)({as:"h5"},e)),h6:e=>r.createElement(le,(0,o.Z)({as:"h6"},e)),admonition:function(e){const{children:t,type:n,title:o,icon:a}=he(e),l=function(e){const t=fe[e]??e;return pe[t]||(console.warn(`No admonition config found for admonition type "${t}". Using Info as fallback.`),pe.info)}(n),i=o??l.label,{iconComponent:s}=l,u=a??r.createElement(s,null);return r.createElement("div",{className:(0,c.Z)(m.k.common.admonition,m.k.common.admonitionType(e.type),"alert",`alert--${l.infimaClassName}`,se)},r.createElement("div",{className:ue},r.createElement("span",{className:me},u),i),r.createElement("div",{className:de},t))}}},6324:function(e,t){function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a 0&&a(c)?n>1?e(c,n-1,a,i,s):r(s,c):i||(s[s.length]=c)}return s}},49819:function(e,t,n){var r=n(18911)();e.exports=r},26194:function(e,t,n){var r=n(49819),o=n(50098);e.exports=function(e,t){return e&&r(e,t,o)}},79867:function(e,t,n){var r=n(76747),o=n(37948);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&no?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r >=1}0==--d&&(d=Math.pow(2,p),p++),delete s[c]}else for(o=i[c],r=0;r >=1;0==--d&&(d=Math.pow(2,p),p++),i[l]=f++,c=String(u)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r >=1}else{for(o=1,r=0;r >=1}0==--d&&(d=Math.pow(2,p),p++),delete s[c]}else for(o=i[c],r=0;r >=1;0==--d&&(d=Math.pow(2,p),p++)}for(o=2,r=0;r >=1;for(;;){if(h<<=1,v==t-1){m.push(n(h));break}v++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var o,a,i,s,u,l,c,d=[],f=4,p=4,m=3,h="",v=[],y={val:r(0),position:n,index:1};for(o=0;o<3;o+=1)d[o]=o;for(i=0,u=Math.pow(2,2),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;switch(i){case 0:for(i=0,u=Math.pow(2,8),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;c=e(i);break;case 1:for(i=0,u=Math.pow(2,16),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;c=e(i);break;case 2:return""}for(d[3]=c,a=c,v.push(c);;){if(y.index>t)return"";for(i=0,u=Math.pow(2,m),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;switch(c=i){case 0:for(i=0,u=Math.pow(2,8),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;d[p++]=e(i),c=p-1,f--;break;case 1:for(i=0,u=Math.pow(2,16),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;d[p++]=e(i),c=p-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,m),m++),d[c])h=d[c];else{if(c!==p)return null;h=a+a.charAt(0)}v.push(h),d[p++]=a+h.charAt(0),a=h,0==--f&&(f=Math.pow(2,m),m++)}}};return a}();void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)},28622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUGGESTED_EVALUATE=t.DEFAULT_ESCAPE=t.DEFAULT_INTERPOLATE=void 0;var r=a(n(66169)),o=a(n(13651));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7354:function(e,t,n){var r=n(36301);e.exports=function(){this.__data__=new r,this.size=0}},5863:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},12367:function(e){e.exports=function(e){return this.__data__.get(e)}},90748:function(e){e.exports=function(e){return this.__data__.has(e)}},97569:function(e,t,n){var r=n(36301),o=n(44538),a=n(74554);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r1?n-1:0),a=1;a=x&&void 0===t&&(t=u,n=o),f>x+a&&void 0===r&&(r=u),o=f}return void 0===t&&(t=0,n=0),void 0===r&&(r=P.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,P.length),offset:n}}),[M,b,x,P,ce,a]),fe=de.scrollHeight,pe=de.start,me=de.end,he=de.offset;z.current.start=pe,z.current.end=me;var ve=fe-a,ye=(0,u.useRef)(ve);ye.current=ve;var ge=x<=0,_e=x>=ve,be=J(ge,_e);var we=function(e,t,n,r){var o=(0,u.useRef)(0),a=(0,u.useRef)(null),i=(0,u.useRef)(null),s=(0,u.useRef)(!1),l=J(t,n);return[function(t){if(e){L.Z.cancel(a.current);var n=t.deltaY;o.current+=n,i.current=n,l(n)||(q||t.preventDefault(),a.current=(0,L.Z)((function(){var e=s.current?10:1;r(o.current*e),o.current=0})))}},function(t){e&&(s.current=t.detail===i.current)}]}(b,ge,_e,(function(e){H((function(t){return t+e}))})),Me=re(we,2),ke=Me[0],xe=Me[1];!function(e,t,n){var r,o=(0,u.useRef)(!1),a=(0,u.useRef)(0),i=(0,u.useRef)(null),s=(0,u.useRef)(null),l=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},c=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,a.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c))};r=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c))},u.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",d),function(){t.current.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}(b,Y,(function(e,t){return!be(e,t)&&(ke({preventDefault:function(){},deltaY:e}),!0)})),(0,u.useLayoutEffect)((function(){function e(e){b&&e.preventDefault()}return Y.current.addEventListener("wheel",ke),Y.current.addEventListener("DOMMouseScroll",xe),Y.current.addEventListener("MozMousePixelScroll",e),function(){Y.current.removeEventListener("wheel",ke),Y.current.removeEventListener("DOMMouseScroll",xe),Y.current.removeEventListener("MozMousePixelScroll",e)}}),[b]);var Se=function(e,t,n,r,o,a,i,s){var l=u.useRef();return function(u){if(null!=u){if(L.Z.cancel(l.current),"number"==typeof u)i(u);else if(u&&"object"===W(u)){var c,d=u.align;c="index"in u?u.index:t.findIndex((function(e){return o(e)===u.key}));var f=u.offset,p=void 0===f?0:f;!function s(u,f){if(!(u<0)&&e.current){var m=e.current.clientHeight,h=!1,v=f;if(m){for(var y=f||d,g=0,_=0,b=0,w=Math.min(t.length,c),M=0;M<=w;M+=1){var k=o(t[M]);_=g;var x=n.get(k);g=b=_+(void 0===x?r:x),M===c&&void 0===x&&(h=!0)}var S=null;switch(y){case"top":S=_-p;break;case"bottom":S=b-m+p;break;default:var E=e.current.scrollTop;_s)return 1;++n,++r}}return e.length-t.length}n.d(t,{Z:function(){return r}});var o=48;function a(e){return!isNaN(e)&&o<=e&&e<=57}},63526:function(e,t){"use strict";var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},7483:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(81403);function o(e,t){for(var n=Object.create(null),o=new a(e),i=Math.floor(.4*e.length)+1,s=0;s9999999)throw new TypeError("Near-infinite iteration.");return i}var u=e.length;if("number"==typeof u&&u>=0&&u%1==0){for(var l=[],c=0;c0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(S,o,u,d)}}function Pe(e,t){return(0,_.HG)(e)?!(0,_.HG)(t)||Pe(e.ofType,t.ofType):!!(0,_.HG)(t)||((0,_.zM)(e)?!(0,_.zM)(t)||Pe(e.ofType,t.ofType):!!(0,_.zM)(t)||!(!(0,_.UT)(e)&&!(0,_.UT)(t))&&e!==t)}function Ye(e,t,n,r){var o=t.get(r);if(!o){var a=Object.create(null),i=Object.create(null);je(e,n,r,a,i),o=[a,Object.keys(i)],t.set(r,o)}return o}function Ne(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var o=K(e.getSchema(),n.typeCondition);return Ye(e,t,o,n.selectionSet)}function je(e,t,n,r,a){for(var i=0,s=n.selections;i