-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy path1871.7fed383.js
2 lines (2 loc) · 73 KB
/
1871.7fed383.js
1
2
(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[1871,7634,9531,8701],{40018:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>Rr});var n=r(24246),i=r(52850),a=r(24885),s=r(99729),o=r.n(s),l=r(90104),c=r.n(l),d=r(14648),u=r.n(d),h=r(40110),m=r.n(h),p=r(30454),g=r.n(p),f=r(11611),y=r.n(f),S=r(47215),v=r.n(S);let x=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function b(){return x()}function C(e){return Array.isArray(e)?e.map((e=>({key:b(),item:e}))):[]}function k(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class F extends i.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return(0,a.isFixedItems)(e)&&(0,a.allowAdditionalItems)(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:i}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?v()(a,[r],n[t]):r>e&&v()(a,[r+1],n[t])}}const s={key:b(),item:g()(i[e].item)},o=[...i];void 0!==e?o.splice(e+1,0,s):o.push(s),this.setState({keyedFormData:o,updatedKeyedFormData:!0},(()=>r(k(o),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:i}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?v()(a,[r],n[t]):r>e&&v()(a,[r-1],n[t])}}const s=i.filter(((t,r)=>r!==e));this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(k(s),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:i}=this.props;let a;if(i){a={};for(const r in i){const n=parseInt(r);n==e?v()(a,[t],i[e]):n==t?v()(a,[e],i[t]):v()(a,[r],i[n])}}const{keyedFormData:s}=this.state,o=function(){const r=s.slice();return r.splice(e,1),r.splice(t,0,s[e]),r}();this.setState({keyedFormData:o},(()=>n(k(o),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:i,onChange:a,errorSchema:s}=this.props,o=(Array.isArray(i)?i:[]).map(((r,n)=>e===n?void 0===t?null:t:r));a(o,s&&s&&{...s,[e]:r},n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=C(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):C(r)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return o()(e,[a.ITEMS_KEY,"title"],o()(e,[a.ITEMS_KEY,"description"],r(a.TranslatableString.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:i}=(0,a.getUiOptions)(r,n.globalUiOptions);return!1!==i&&(i=void 0===t.maxItems||e.length<t.maxItems),i}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:i}=this.state;let a;if(n){a={};for(const e in n){const r=parseInt(e);void 0===t||r<t?v()(a,[r],n[e]):r>=t&&v()(a,[r+1],n[e])}}const s={key:b(),item:this._getNewFormDataRow()},o=[...i];void 0!==t?o.splice(t,0,s):o.push(s),this.setState({keyedFormData:o,updatedKeyedFormData:!0},(()=>r(k(o),a)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:i}=this.props,{schemaUtils:s,translateString:o}=i;if(!(a.ITEMS_KEY in e)){const s=(0,a.getUiOptions)(t),l=(0,a.getTemplate)("UnsupportedFieldTemplate",i,s);return(0,n.jsx)(l,{schema:e,idSchema:r,reason:o(a.TranslatableString.MissingItems),registry:i})}return s.isMultiSelect(e)?this.renderMultiSelect():(0,a.isCustomWidget)(t)?this.renderCustomWidget():(0,a.isFixedItems)(e)?this.renderFixedArray():s.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:i,name:s,disabled:o=!1,readonly:l=!1,autofocus:c=!1,required:d=!1,registry:u,onBlur:h,onFocus:m,idPrefix:p,idSeparator:g="_",rawErrors:f}=this.props,{keyedFormData:S}=this.state,v=void 0===e.title?s:e.title,{schemaUtils:x,formContext:b}=u,C=(0,a.getUiOptions)(t),F=y()(e.items)?e.items:{},j=x.retrieveSchema(F),O=k(this.state.keyedFormData),T=this.canAddItem(O),D={canAdd:T,items:S.map(((e,n)=>{const{key:a,item:o}=e,l=o,d=x.retrieveSchema(F,l),u=r?r[n]:void 0,y=i.$id+g+n,v=x.toIdSchema(d,y,l,p,g);return this.renderArrayFieldItem({key:a,index:n,name:s&&`${s}-${n}`,canAdd:T,canMoveUp:n>0,canMoveDown:n<O.length-1,itemSchema:d,itemIdSchema:v,itemErrorSchema:u,itemData:l,itemUiSchema:t.items,autofocus:c&&0===n,onBlur:h,onFocus:m,rawErrors:f,totalItems:S.length})})),className:`field field-array field-array-of-${j.type}`,disabled:o,idSchema:i,uiSchema:t,onAddClick:this.onAddClick,readonly:l,required:d,schema:e,title:v,formContext:b,formData:O,rawErrors:f,registry:u},I=(0,a.getTemplate)("ArrayFieldTemplate",u,C);return(0,n.jsx)(I,{...D})}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:i,disabled:s=!1,readonly:o=!1,autofocus:l=!1,required:c=!1,hideError:d,placeholder:u,onBlur:h,onFocus:m,formData:p=[],registry:g,rawErrors:f,name:y}=this.props,{widgets:S,formContext:v,globalUiOptions:x,schemaUtils:b}=g,{widget:C,title:k,...F}=(0,a.getUiOptions)(i,x),j=(0,a.getWidget)(t,C,S),O=null!==(e=null!=k?k:t.title)&&void 0!==e?e:y,T=b.getDisplayLabel(t,i,x);return(0,n.jsx)(j,{id:r.$id,name:y,multiple:!0,onChange:this.onSelectChange,onBlur:h,onFocus:m,options:F,schema:t,uiSchema:i,registry:g,value:p,disabled:s,readonly:o,hideError:d,required:c,label:O,hideLabel:!T,placeholder:u,formContext:v,autofocus:l,rawErrors:f})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:i,formData:s=[],disabled:o=!1,readonly:l=!1,autofocus:c=!1,required:d=!1,placeholder:u,onBlur:h,onFocus:m,registry:p,rawErrors:g,name:f}=this.props,{widgets:y,schemaUtils:S,formContext:v,globalUiOptions:x}=p,b=S.retrieveSchema(t.items,s),C=(0,a.optionsList)(b),{widget:k="select",title:F,...j}=(0,a.getUiOptions)(i,x),O=(0,a.getWidget)(t,k,y),T=null!==(e=null!=F?F:t.title)&&void 0!==e?e:f,D=S.getDisplayLabel(t,i,x);return(0,n.jsx)(O,{id:r.$id,name:f,multiple:!0,onChange:this.onSelectChange,onBlur:h,onFocus:m,options:{...j,enumOptions:C},schema:t,uiSchema:i,registry:p,value:s,disabled:o,readonly:l,required:d,label:T,hideLabel:!D,placeholder:u,formContext:v,autofocus:c,rawErrors:g})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:i,name:s,disabled:o=!1,readonly:l=!1,autofocus:c=!1,required:d=!1,onBlur:u,onFocus:h,registry:m,formData:p=[],rawErrors:g}=this.props,{widgets:f,formContext:y,globalUiOptions:S,schemaUtils:v}=m,{widget:x="files",title:b,...C}=(0,a.getUiOptions)(r,S),k=(0,a.getWidget)(t,x,f),F=null!==(e=null!=b?b:t.title)&&void 0!==e?e:s,j=v.getDisplayLabel(t,r,S);return(0,n.jsx)(k,{options:C,id:i.$id,name:s,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:h,schema:t,uiSchema:r,value:p,disabled:o,readonly:l,required:d,registry:m,formContext:y,autofocus:c,rawErrors:g,label:F,hideLabel:!j})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:i,idPrefix:s,idSeparator:o="_",idSchema:l,name:c,disabled:d=!1,readonly:u=!1,autofocus:h=!1,required:m=!1,registry:p,onBlur:g,onFocus:f,rawErrors:S}=this.props,{keyedFormData:v}=this.state;let{formData:x=[]}=this.props;const b=e.title||c,C=(0,a.getUiOptions)(t),{schemaUtils:k,formContext:F}=p,j=(y()(e.items)?e.items:[]).map(((e,t)=>k.retrieveSchema(e,r[t]))),O=y()(e.additionalItems)?k.retrieveSchema(e.additionalItems,r):null;(!x||x.length<j.length)&&(x=x||[],x=x.concat(new Array(j.length-x.length)));const T=this.canAddItem(x)&&!!O,D={canAdd:T,className:"field field-array field-array-fixed-items",disabled:d,idSchema:l,formData:r,items:v.map(((r,n)=>{const{key:a,item:d}=r,u=d,m=n>=j.length,p=(m&&y()(e.additionalItems)?k.retrieveSchema(e.additionalItems,u):j[n])||{},b=l.$id+o+n,C=k.toIdSchema(p,b,u,s,o),F=m?t.additionalItems||{}:Array.isArray(t.items)?t.items[n]:t.items||{},O=i?i[n]:void 0;return this.renderArrayFieldItem({key:a,index:n,name:c&&`${c}-${n}`,canAdd:T,canRemove:m,canMoveUp:n>=j.length+1,canMoveDown:m&&n<x.length-1,itemSchema:p,itemData:u,itemUiSchema:F,itemIdSchema:C,itemErrorSchema:O,autofocus:h&&0===n,onBlur:g,onFocus:f,rawErrors:S,totalItems:v.length})})),onAddClick:this.onAddClick,readonly:u,required:m,registry:p,schema:e,uiSchema:t,title:b,formContext:F,rawErrors:S},I=(0,a.getTemplate)("ArrayFieldTemplate",p,C);return(0,n.jsx)(I,{...D})}renderArrayFieldItem(e){const{key:t,index:r,name:i,canAdd:s,canRemove:o=!0,canMoveUp:l,canMoveDown:c,itemSchema:d,itemData:u,itemUiSchema:h,itemIdSchema:m,itemErrorSchema:p,autofocus:g,onBlur:f,onFocus:y,rawErrors:S,totalItems:v}=e,{disabled:x,hideError:b,idPrefix:C,idSeparator:k,readonly:F,uiSchema:j,registry:O,formContext:T}=this.props,{fields:{ArraySchemaField:D,SchemaField:I},globalUiOptions:_}=O,E=D||I,{orderable:w=!0,removable:A=!0,copyable:N=!1}=(0,a.getUiOptions)(j,_),U={moveUp:w&&l,moveDown:w&&c,copy:N&&s,remove:A&&o,toolbar:!1};return U.toolbar=Object.keys(U).some((e=>U[e])),{children:(0,n.jsx)(E,{name:i,index:r,schema:d,uiSchema:h,formData:u,formContext:T,errorSchema:p,idPrefix:C,idSeparator:k,idSchema:m,required:this.isItemRequired(d),onChange:this.onChangeForIndex(r),onBlur:f,onFocus:y,registry:O,disabled:x,readonly:F,hideError:b,autofocus:g,rawErrors:S}),className:"array-item",disabled:x,canAdd:s,hasCopy:U.copy,hasToolbar:U.toolbar,hasMoveUp:U.moveUp,hasMoveDown:U.moveDown,hasRemove:U.remove,index:r,totalItems:v,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:F,registry:O,schema:d,uiSchema:h}}}const j=F,O=function(e){var t,r;const{schema:i,name:s,uiSchema:o,idSchema:l,formData:c,registry:d,required:u,disabled:h,readonly:m,hideError:p,autofocus:g,onChange:f,onFocus:S,onBlur:v,rawErrors:x}=e,{title:b}=i,{widgets:C,formContext:k,translateString:F,globalUiOptions:j}=d,{widget:O="checkbox",title:T,label:D=!0,...I}=(0,a.getUiOptions)(o,j),_=(0,a.getWidget)(i,O,C),E=F(a.TranslatableString.YesLabel),w=F(a.TranslatableString.NoLabel);let A;const N=null!==(t=null!=T?T:b)&&void 0!==t?t:s;if(Array.isArray(i.oneOf))A=(0,a.optionsList)({oneOf:i.oneOf.map((e=>{if(y()(e))return{...e,title:e.title||(!0===e.const?E:w)}})).filter((e=>e))});else{const e=i,t=null!==(r=i.enum)&&void 0!==r?r:[!0,!1];A=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?E:w},{value:t[1],label:t[1]?E:w}]:(0,a.optionsList)({enum:t,enumNames:e.enumNames})}return(0,n.jsx)(_,{options:{...I,enumOptions:A},schema:i,uiSchema:o,id:l.$id,name:s,onChange:f,onFocus:S,onBlur:v,label:N,hideLabel:!D,value:c,required:u,disabled:h,readonly:m,hideError:p,registry:d,formContext:k,autofocus:g,rawErrors:x})};var T=r(48159),D=r.n(T);class I extends i.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:i,registry:a}=this.props,{schemaUtils:s}=a,o=void 0!==e?parseInt(e,10):-1;if(o===t)return;const l=o>=0?r[o]:void 0,c=t>=0?r[t]:void 0;let d=s.sanitizeDataForNewSchema(l,c,n);d&&l&&(d=s.getDefaultFormState(l,d,"excludeObjectChildren")),i(d,void 0,this.getFieldId()),this.setState({selectedOption:o})};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,i=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:i,selectedOption:this.getMatchingOption(0,t,i)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:i}=this.props,{selectedOption:s}=this.state;let o=this.state;if(!(0,a.deepEquals)(e.options,n)){const{registry:{schemaUtils:e}}=this.props;o={selectedOption:s,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!(0,a.deepEquals)(r,e.formData)&&i.$id===e.idSchema.$id){const{retrievedOptions:e}=o,n=this.getMatchingOption(s,r,e);t&&n!==s&&(o={selectedOption:n,retrievedOptions:e})}o!==this.state&&this.setState(o)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:i}}=this.props,s=(0,a.getDiscriminatorFieldFromSchema)(n);return i.getClosestMatchingOption(t,r,e,s)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:i,onBlur:s,onFocus:l,registry:d,schema:u,uiSchema:h}=this.props,{widgets:m,fields:p,translateString:g,globalUiOptions:f,schemaUtils:y}=d,{SchemaField:S}=p,{selectedOption:v,retrievedOptions:x}=this.state,{widget:b="select",placeholder:C,autofocus:k,autocomplete:F,title:j=u.title,...O}=(0,a.getUiOptions)(h,f),T=(0,a.getWidget)({type:"number"},b,m),I=o()(r,a.ERRORS_KEY,[]),_=D()(r,[a.ERRORS_KEY]),E=y.getDisplayLabel(u,h,f),w=v>=0&&x[v]||null;let A;if(w){const{required:e}=u;A=e?(0,a.mergeSchemas)({required:e},w):w}const N=j?a.TranslatableString.TitleOptionPrefix:a.TranslatableString.OptionPrefix,U=j?[j]:[],B=x.map(((e,t)=>({label:e.title||g(N,U.concat(String(t+1))),value:t})));return(0,n.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,n.jsx)("div",{className:"form-group",children:(0,n.jsx)(T,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:l,disabled:t||c()(B),multiple:!1,rawErrors:I,errorSchema:_,value:v>=0?v:void 0,options:{enumOptions:B,...O},registry:d,formContext:i,placeholder:C,autocomplete:F,autofocus:k,label:null!=j?j:e,hideLabel:!E})}),null!==w&&(0,n.jsx)(S,{...this.props,schema:A})]})}}const _=I,E=/\.([0-9]*0)*$/,w=/[0.]0*$/,A=function(e){const{registry:t,onChange:r,formData:s,value:o}=e,[l,c]=(0,i.useState)(o),{StringField:d}=t.fields;let u=s;const h=(0,i.useCallback)((e=>{c(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const t="string"==typeof e&&e.match(E)?(0,a.asNumber)(e.replace(w,"")):(0,a.asNumber)(e);r(t)}),[r]);if("string"==typeof l&&"number"==typeof u){const e=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");l.match(e)&&(u=l)}return(0,n.jsx)(d,{...e,formData:u,onChange:h})};function N(){return N=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},N.apply(this,arguments)}const U=["children","options"],B=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),$={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},R=["style","script"],P=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,L=/mailto:/i,q=/\n{2,}$/,M=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,W=/^ *> ?/gm,V=/^ {2,}\n/,H=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,K=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,G=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,z=/^(?:\n *)*\n/,X=/\r\n?/g,Z=/^\[\^([^\]]+)](:.*)\n/,J=/^\[\^([^\]]+)]/,Q=/\f/g,ee=/^\s*?\[(x|\s)\]/,te=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,re=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ne=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ie=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,ae=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,se=/^<!--[\s\S]*?(?:-->)/,oe=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,le=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ce=/^\{.*\}$/,de=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ue=/^<([^ >]+@[^ >]+)>/,he=/^<([^ >]+:\/[^ >]+)>/,me=/-([a-z])?/gi,pe=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,ge=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,fe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ye=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Se=/(\[|\])/g,ve=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,xe=/\t/g,be=/^ *\| */,Ce=/(^ *\||\| *$)/g,ke=/ *$/,Fe=/^ *:-+: *$/,je=/^ *:-+ *$/,Oe=/^ *-+: *$/,Te=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,De=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Ie=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,_e=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Ee=/^\\([^0-9A-Za-z\s])/,we=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Ae=/^\n+/,Ne=/^([ \t]*)/,Ue=/\\([^\\])/g,Be=/ *\n+$/,$e=/(?:^|\n)( *)$/,Re="(?:\\d+\\.)",Pe="(?:[*+-])";function Le(e){return"( *)("+(1===e?Re:Pe)+") +"}const qe=Le(1),Me=Le(2);function We(e){return new RegExp("^"+(1===e?qe:Me))}const Ve=We(1),He=We(2);function Ke(e){return new RegExp("^"+(1===e?qe:Me)+"[^\\n]*(?:\\n(?!\\1"+(1===e?Re:Pe)+" )[^\\n]*)*(\\n|$)","gm")}const Ye=Ke(1),Ge=Ke(2);function ze(e){const t=1===e?Re:Pe;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Xe=ze(1),Ze=ze(2);function Je(e,t){const r=1===t,n=r?Xe:Ze,i=r?Ye:Ge,a=r?Ve:He;return{t(e,t,r){const i=$e.exec(r);return i&&(t.o||!t._&&!t.u)?n.exec(e=i[1]+e):null},i:kt.HIGH,l(e,t,n){const s=r?+e[2]:void 0,o=e[0].replace(q,"\n").match(i);let l=!1;return{p:o.map((function(e,r){const i=a.exec(e)[0].length,s=new RegExp("^ {1,"+i+"}","gm"),c=e.replace(s,"").replace(a,""),d=r===o.length-1,u=-1!==c.indexOf("\n\n")||d&&l;l=u;const h=n._,m=n.o;let p;n.o=!0,u?(n._=!1,p=c.replace(Be,"\n\n")):(n._=!0,p=c.replace(Be,""));const g=t(p,n);return n._=h,n.o=m,g})),m:r,g:s}},h:(t,r,n)=>e(t.m?"ol":"ul",{key:n.k,start:t.g},t.p.map((function(t,i){return e("li",{key:i},r(t,n))})))}}const Qe=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,et=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,tt=[M,K,Y,te,ne,re,se,pe,Ye,Xe,Ge,Ze],rt=[...tt,/^[^\n]+(?: \n|\n{2,})/,ie,le];function nt(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function it(e){return Oe.test(e)?"right":Fe.test(e)?"center":je.test(e)?"left":null}function at(e,t,r){const n=r.$;r.$=!0;const i=t(e.trim(),r);r.$=n;let a=[[]];return i.forEach((function(e,t){"tableSeparator"===e.type?0!==t&&t!==i.length-1&&a.push([]):("text"!==e.type||null!=i[t+1]&&"tableSeparator"!==i[t+1].type||(e.v=e.v.replace(ke,"")),a[a.length-1].push(e))})),a}function st(e,t,r){r._=!0;const n=at(e[1],t,r),i=e[2].replace(Ce,"").split("|").map(it),a=function(e,t,r){return e.trim().split("\n").map((function(e){return at(e,t,r)}))}(e[3],t,r);return r._=!1,{S:i,A:a,L:n,type:"table"}}function ot(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function lt(e){return function(t,r){return r._?e.exec(t):null}}function ct(e){return function(t,r){return r._||r.u?e.exec(t):null}}function dt(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function ut(e){return function(t){return e.exec(t)}}function ht(e,t,r){if(t._||t.u)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!tt.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const i=n.trimEnd();return""==i?null:[n,i]}function mt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function pt(e){return e.replace(Ue,"$1")}function gt(e,t,r){const n=r._||!1,i=r.u||!1;r._=!0,r.u=!0;const a=e(t,r);return r._=n,r.u=i,a}function ft(e,t,r){const n=r._||!1,i=r.u||!1;r._=!1,r.u=!0;const a=e(t,r);return r._=n,r.u=i,a}function yt(e,t,r){return r._=!1,e(t,r)}const St=(e,t,r)=>({v:gt(t,e[1],r)});function vt(){return{}}function xt(){return null}function bt(...e){return e.filter(Boolean).join(" ")}function Ct(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],void 0!==n);)i.shift();return n||r}var kt,Ft;function jt(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||nt,t.namedCodesToUnicode=t.namedCodesToUnicode?N({},$,t.namedCodesToUnicode):$;const r=t.createElement||i.createElement;function n(e,n,...i){const a=Ct(t.overrides,`${e}.props`,{});return r(function(e,t){const r=Ct(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Ct(t,`${e}.component`,e):e}(e,t.overrides),N({},n,a,{className:bt(null==n?void 0:n.className,a.className)||void 0}),...i)}function a(e){let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===ve.test(e));const a=u(d(r?e:`${e.trimEnd().replace(Ae,"")}\n\n`,{_:r}));for(;"string"==typeof a[a.length-1]&&!a[a.length-1].trim();)a.pop();if(null===t.wrapper)return a;const s=t.wrapper||(r?"span":"div");let o;if(a.length>1||t.forceWrapper)o=a;else{if(1===a.length)return o=a[0],"string"==typeof o?n("span",{key:"outer"},o):o;o=null}return i.createElement(s,{key:"outer"},o)}function s(e){const t=e.match(P);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const o=(s=t.slice(0,n),-1!==s.indexOf("-")&&null===s.match(oe)&&(s=s.replace(me,(function(e,t){return t.toUpperCase()}))),s).trim(),l=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),c=B[o]||o,d=e[c]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e?mt(t):(t.match(ce)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(o,l);"string"==typeof d&&(ie.test(d)||le.test(d))&&(e[c]=i.cloneElement(a(d.trim()),{key:r}))}else"style"!==t&&(e[B[t]||t]=!0);var s;return e}),{}):null}const o=[],l={},c={blockQuote:{t:dt(M),i:kt.HIGH,l:(e,t,r)=>({v:t(e[0].replace(W,""),r)}),h:(e,t,r)=>n("blockquote",{key:r.k},t(e.v,r))},breakLine:{t:ut(V),i:kt.HIGH,l:vt,h:(e,t,r)=>n("br",{key:r.k})},breakThematic:{t:dt(H),i:kt.HIGH,l:vt,h:(e,t,r)=>n("hr",{key:r.k})},codeBlock:{t:dt(Y),i:kt.MAX,l:e=>({v:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,r)=>n("pre",{key:r.k},n("code",N({},e.O,{className:e.M?`lang-${e.M}`:""}),e.v))},codeFenced:{t:dt(K),i:kt.MAX,l:e=>({O:s(e[3]||""),v:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:ct(G),i:kt.LOW,l:e=>({v:e[2]}),h:(e,t,r)=>n("code",{key:r.k},e.v)},footnote:{t:dt(Z),i:kt.MAX,l:e=>(o.push({I:e[2],j:e[1]}),{}),h:xt},footnoteReference:{t:lt(J),i:kt.HIGH,l:e=>({v:e[1],B:`#${t.slugify(e[1])}`}),h:(e,t,r)=>n("a",{key:r.k,href:mt(e.B)},n("sup",{key:r.k},e.v))},gfmTask:{t:lt(ee),i:kt.HIGH,l:e=>({R:"x"===e[1].toLowerCase()}),h:(e,t,r)=>n("input",{checked:e.R,key:r.k,readOnly:!0,type:"checkbox"})},heading:{t:dt(t.enforceAtxHeadings?re:te),i:kt.HIGH,l:(e,r,n)=>({v:gt(r,e[2],n),T:t.slugify(e[2]),C:e[1].length}),h:(e,t,r)=>n(`h${e.C}`,{id:e.T,key:r.k},t(e.v,r))},headingSetext:{t:dt(ne),i:kt.MAX,l:(e,t,r)=>({v:gt(t,e[1],r),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:ut(se),i:kt.HIGH,l:()=>({}),h:xt},image:{t:ct(et),i:kt.HIGH,l:e=>({D:e[1],B:pt(e[2]),F:e[3]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D||void 0,title:e.F||void 0,src:mt(e.B)})},link:{t:lt(Qe),i:kt.LOW,l:(e,t,r)=>({v:ft(t,e[1],r),B:pt(e[2]),F:e[3]}),h:(e,t,r)=>n("a",{key:r.k,href:mt(e.B),title:e.F},t(e.v,r))},linkAngleBraceStyleDetector:{t:lt(he),i:kt.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.N?null:lt(de)(e,t),i:kt.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],F:void 0,type:"link"})},linkMailtoDetector:{t:lt(ue),i:kt.MAX,l(e){let t=e[1],r=e[1];return L.test(r)||(r="mailto:"+r),{v:[{v:t.replace("mailto:",""),type:"text"}],B:r,type:"link"}}},orderedList:Je(n,1),unorderedList:Je(n,2),newlineCoalescer:{t:dt(z),i:kt.LOW,l:vt,h:()=>"\n"},paragraph:{t:ht,i:kt.LOW,l:St,h:(e,t,r)=>n("p",{key:r.k},t(e.v,r))},ref:{t:lt(ge),i:kt.MAX,l:e=>(l[e[1]]={B:e[2],F:e[4]},{}),h:xt},refImage:{t:ct(fe),i:kt.MAX,l:e=>({D:e[1]||void 0,P:e[2]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D,src:mt(l[e.P].B),title:l[e.P].F})},refLink:{t:lt(ye),i:kt.MAX,l:(e,t,r)=>({v:t(e[1],r),Z:t(e[0].replace(Se,"\\$1"),r),P:e[2]}),h:(e,t,r)=>l[e.P]?n("a",{key:r.k,href:mt(l[e.P].B),title:l[e.P].F},t(e.v,r)):n("span",{key:r.k},t(e.Z,r))},table:{t:dt(pe),i:kt.HIGH,l:st,h:(e,t,r)=>n("table",{key:r.k},n("thead",null,n("tr",null,e.L.map((function(i,a){return n("th",{key:a,style:ot(e,a)},t(i,r))})))),n("tbody",null,e.A.map((function(i,a){return n("tr",{key:a},i.map((function(i,a){return n("td",{key:a,style:ot(e,a)},t(i,r))})))}))))},tableSeparator:{t:function(e,t){return t.$?(t._=!0,be.exec(e)):null},i:kt.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:ut(we),i:kt.MIN,l:e=>({v:e[0].replace(ae,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),h:e=>e.v},textBolded:{t:ct(Te),i:kt.MED,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("strong",{key:r.k},t(e.v,r))},textEmphasized:{t:ct(De),i:kt.LOW,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("em",{key:r.k},t(e.v,r))},textEscaped:{t:ct(Ee),i:kt.HIGH,l:e=>({v:e[1],type:"text"})},textMarked:{t:ct(Ie),i:kt.LOW,l:St,h:(e,t,r)=>n("mark",{key:r.k},t(e.v,r))},textStrikethroughed:{t:ct(_e),i:kt.LOW,l:St,h:(e,t,r)=>n("del",{key:r.k},t(e.v,r))}};!0!==t.disableParsingRawHTML&&(c.htmlBlock={t:ut(ie),i:kt.HIGH,l(e,t,r){const[,n]=e[3].match(Ne),i=new RegExp(`^${n}`,"gm"),a=e[3].replace(i,""),o=(l=a,rt.some((e=>e.test(l)))?yt:gt);var l;const c=e[1].toLowerCase(),d=-1!==R.indexOf(c);r.N=r.N||"a"===c;const u=d?e[3]:o(t,a,r);return r.N=!1,{O:s(e[2]),v:u,G:d,H:d?c:e[1]}},h:(e,t,r)=>n(e.H,N({key:r.k},e.O),e.G?e.v:t(e.v,r))},c.htmlSelfClosing={t:ut(le),i:kt.HIGH,l:e=>({O:s(e[2]||""),H:e[1]}),h:(e,t,r)=>n(e.H,N({},e.O,{key:r.k}))});const d=function(e){let t=Object.keys(e);function r(n,i){let a=[],s="";for(;n;){let o=0;for(;o<t.length;){const l=t[o],c=e[l],d=c.t(n,i,s);if(d){const e=d[0];n=n.substring(e.length);const t=c.l(d,r,i);null==t.type&&(t.type=l),a.push(t),s=e;break}o++}}return a}return t.sort((function(t,r){let n=e[t].i,i=e[r].i;return n!==i?n-i:t<r?-1:1})),function(e,t){return r(function(e){return e.replace(X,"\n").replace(Q,"").replace(xe," ")}(e),t)}}(c),u=(h=c,m=function(e,t,r){return h[e.type].h(e,t,r)},function e(t,r={}){if(Array.isArray(t)){const n=r.k,i=[];let a=!1;for(let n=0;n<t.length;n++){r.k=n;const s=e(t[n],r),o="string"==typeof s;o&&a?i[i.length-1]+=s:null!==s&&i.push(s),a=o}return r.k=n,i}return m(t,e,r)});var h,m;const p=a(e);return o.length?n("div",null,p,n("footer",{key:"footer"},o.map((function(e){return n("div",{id:t.slugify(e.j),key:e.j},e.j,u(d(e.I,{_:!0})))})))):p}(Ft=kt||(kt={}))[Ft.MAX=0]="MAX",Ft[Ft.HIGH=1]="HIGH",Ft[Ft.MED=2]="MED",Ft[Ft.LOW=3]="LOW",Ft[Ft.MIN=4]="MIN";const Ot=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}(e,U);return i.cloneElement(jt(t,r),n)};var Tt=r(73915),Dt=r.n(Tt),It=r(43551),_t=r.n(It);class Et extends i.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,i)=>{const{formData:a,onChange:s,errorSchema:o}=this.props;void 0===r&&t&&(r=""),s({...a,[e]:r},o&&o&&{...o,[e]:n},i)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,i={...n};_t()(i,e),r(i)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:i="-"}=(0,a.getUiOptions)(r,n.globalUiOptions);let s=0,o=e;for(;Dt()(t,o);)o=`${e}${i}${++s}`;return o},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:i,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const s={...n},o={[e]:t},l=Object.keys(s).map((e=>({[o[e]||e]:s[e]}))),c=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),i(c,a&&a&&{...a,[t]:r})},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,i={...t};let s;if(y()(e.additionalProperties)){s=e.additionalProperties.type;let r=e.additionalProperties;if(a.REF_KEY in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[a.REF_KEY]},t),s=r.type}s||!(a.ANY_OF_KEY in r)&&!(a.ONE_OF_KEY in r)||(s="object")}const o=this.getAvailableKey("newKey",i);v()(i,o,this.getDefaultValue(s)),r(i)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(a.TranslatableString.NewStringDefault)}}render(){var e,t,r;const{schema:i,uiSchema:s={},formData:l,errorSchema:c,idSchema:d,name:u,required:h=!1,disabled:m=!1,readonly:p=!1,hideError:g,idPrefix:f,idSeparator:y,onBlur:S,onFocus:v,registry:x}=this.props,{fields:b,formContext:C,schemaUtils:k,translateString:F,globalUiOptions:j}=x,{SchemaField:O}=b,T=k.retrieveSchema(i,l),D=(0,a.getUiOptions)(s,j),{properties:I={}}=T,_=null!==(t=null!==(e=D.title)&&void 0!==e?e:T.title)&&void 0!==t?t:u,E=null!==(r=D.description)&&void 0!==r?r:T.description;let w;try{const e=Object.keys(I);w=(0,a.orderProperties)(e,D.order)}catch(e){return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"config-error",style:{color:"red"},children:(0,n.jsx)(Ot,{children:F(a.TranslatableString.InvalidObjectField,[u||"root",e.message])})}),(0,n.jsx)("pre",{children:JSON.stringify(T)})]})}const A=(0,a.getTemplate)("ObjectFieldTemplate",x,D),N={title:!1===D.label?"":_,description:!1===D.label?void 0:E,properties:w.map((e=>{const t=Dt()(T,[a.PROPERTIES_KEY,e,a.ADDITIONAL_PROPERTY_FLAG]),r=t?s.additionalProperties:s[e],i="hidden"===(0,a.getUiOptions)(r).widget,u=o()(d,[e],{});return{content:(0,n.jsx)(O,{name:e,required:this.isRequired(e),schema:o()(T,[a.PROPERTIES_KEY,e],{}),uiSchema:r,errorSchema:o()(c,e),idSchema:u,idPrefix:f,idSeparator:y,formData:o()(l,e),formContext:C,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:S,onFocus:v,registry:x,disabled:m,readonly:p,hideError:g,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:p,disabled:m,required:h,hidden:i}})),readonly:p,disabled:m,required:h,idSchema:d,uiSchema:s,errorSchema:c,schema:T,formData:l,formContext:C,registry:x};return(0,n.jsx)(A,{...N,onAddClick:this.handleAddClick})}}const wt=Et,At={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Nt(e){const{schema:t,idSchema:r,uiSchema:s,formData:o,errorSchema:l,idPrefix:c,idSeparator:d,name:u,onChange:h,onKeyChange:m,onDropPropertyClick:p,required:g,registry:f,wasPropertyKeyModified:S=!1}=e,{formContext:v,schemaUtils:x,globalUiOptions:b}=f,C=(0,a.getUiOptions)(s,b),k=(0,a.getTemplate)("FieldTemplate",f,C),F=(0,a.getTemplate)("DescriptionFieldTemplate",f,C),j=(0,a.getTemplate)("FieldHelpTemplate",f,C),O=(0,a.getTemplate)("FieldErrorTemplate",f,C),T=x.retrieveSchema(t,o),I=r[a.ID_KEY],_=(0,a.mergeObjects)(x.toIdSchema(T,I,o,c,d),r),E=(0,i.useCallback)(((e,t,r)=>h(e,t,r||I)),[I,h]),w=function(e,t,r,i){const s=t.field,{fields:o,translateString:l}=i;if("function"==typeof s)return s;if("string"==typeof s&&s in o)return o[s];const c=(0,a.getSchemaType)(e),d=Array.isArray(c)?c[0]:c||"",u=e.$id;let h=At[d];return u&&u in o&&(h=u),h||!e.anyOf&&!e.oneOf?h in o?o[h]:()=>{const s=(0,a.getTemplate)("UnsupportedFieldTemplate",i,t);return(0,n.jsx)(s,{schema:e,idSchema:r,reason:l(a.TranslatableString.UnknownFieldType,[String(e.type)]),registry:i})}:()=>null}(T,C,_,f),A=Boolean(e.disabled||C.disabled),N=Boolean(e.readonly||C.readonly||e.schema.readOnly||T.readOnly),U=C.hideError,B=void 0===U?e.hideError:Boolean(U),$=Boolean(e.autofocus||C.autofocus);if(0===Object.keys(T).length)return null;const R=x.getDisplayLabel(T,s,b),{__errors:P,...L}=l||{},q=D()(s,["ui:classNames","classNames","ui:style"]);a.UI_OPTIONS_KEY in q&&(q[a.UI_OPTIONS_KEY]=D()(q[a.UI_OPTIONS_KEY],["classNames","style"]));const M=(0,n.jsx)(w,{...e,onChange:E,idSchema:_,schema:T,uiSchema:q,disabled:A,readonly:N,hideError:B,autofocus:$,errorSchema:L,formContext:v,rawErrors:P}),W=_[a.ID_KEY];let V;V=S||a.ADDITIONAL_PROPERTY_FLAG in T?u:C.title||e.schema.title||T.title||u;const H=C.description||e.schema.description||T.description||"",K=C.enableMarkdownInDescription?(0,n.jsx)(Ot,{children:H}):H,Y=C.help,G="hidden"===C.widget,z=["form-group","field",`field-${(0,a.getSchemaType)(T)}`];!B&&P&&P.length>0&&z.push("field-error has-error has-danger"),(null==s?void 0:s.classNames)&&z.push(s.classNames),C.classNames&&z.push(C.classNames);const X=(0,n.jsx)(j,{help:Y,idSchema:_,schema:T,uiSchema:s,hasErrors:!B&&P&&P.length>0,registry:f}),Z=B||(T.anyOf||T.oneOf)&&!x.isSelect(T)?void 0:(0,n.jsx)(O,{errors:P,errorSchema:l,idSchema:_,schema:T,uiSchema:s,registry:f}),J={description:(0,n.jsx)(F,{id:(0,a.descriptionId)(W),description:K,schema:T,uiSchema:s,registry:f}),rawDescription:H,help:X,rawHelp:"string"==typeof Y?Y:void 0,errors:Z,rawErrors:B?void 0:P,id:W,label:V,hidden:G,onChange:h,onKeyChange:m,onDropPropertyClick:p,required:g,disabled:A,readonly:N,hideError:B,displayLabel:R,classNames:z.join(" ").trim(),style:C.style,formContext:v,formData:o,schema:T,uiSchema:s,registry:f},Q=f.fields.AnyOfField,ee=f.fields.OneOfField,te=(null==s?void 0:s["ui:field"])&&!0===(null==s?void 0:s["ui:fieldReplacesAnyOrOneOf"]);return(0,n.jsx)(k,{...J,children:(0,n.jsxs)(n.Fragment,{children:[M,T.anyOf&&!te&&!x.isSelect(T)&&(0,n.jsx)(Q,{name:u,disabled:A,readonly:N,hideError:B,errorSchema:l,formData:o,formContext:v,idPrefix:c,idSchema:_,idSeparator:d,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:T.anyOf.map((e=>x.retrieveSchema(y()(e)?e:{},o))),registry:f,schema:T,uiSchema:s}),T.oneOf&&!te&&!x.isSelect(T)&&(0,n.jsx)(ee,{name:u,disabled:A,readonly:N,hideError:B,errorSchema:l,formData:o,formContext:v,idPrefix:c,idSchema:_,idSeparator:d,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:T.oneOf.map((e=>x.retrieveSchema(y()(e)?e:{},o))),registry:f,schema:T,uiSchema:s})]})})}class Ut extends i.Component{shouldComponentUpdate(e){return!(0,a.deepEquals)(this.props,e)}render(){return(0,n.jsx)(Nt,{...this.props})}}const Bt=Ut,$t=function(e){var t;const{schema:r,name:i,uiSchema:s,idSchema:o,formData:l,required:c,disabled:d=!1,readonly:u=!1,autofocus:h=!1,onChange:m,onBlur:p,onFocus:g,registry:f,rawErrors:y,hideError:S}=e,{title:v,format:x}=r,{widgets:b,formContext:C,schemaUtils:k,globalUiOptions:F}=f,j=k.isSelect(r)?(0,a.optionsList)(r):void 0;let O=j?"select":"text";x&&(0,a.hasWidget)(r,x,b)&&(O=x);const{widget:T=O,placeholder:D="",title:I,..._}=(0,a.getUiOptions)(s),E=k.getDisplayLabel(r,s,F),w=null!==(t=null!=I?I:v)&&void 0!==t?t:i,A=(0,a.getWidget)(r,T,b);return(0,n.jsx)(A,{options:{..._,enumOptions:j},schema:r,uiSchema:s,id:o.$id,name:i,label:w,hideLabel:!E,hideError:S,value:l,onChange:m,onBlur:p,onFocus:g,required:c,disabled:d,readonly:u,formContext:C,autofocus:h,registry:f,placeholder:D,rawErrors:y})},Rt=function(e){const{formData:t,onChange:r}=e;return(0,i.useEffect)((()=>{void 0===t&&r(null)}),[t,r]),null};function Pt(e){const{idSchema:t,description:r,registry:i,schema:s,uiSchema:o}=e,l=(0,a.getUiOptions)(o,i.globalUiOptions),{label:c=!0}=l;if(!r||!c)return null;const d=(0,a.getTemplate)("DescriptionFieldTemplate",i,l);return(0,n.jsx)(d,{id:(0,a.descriptionId)(t),description:r,schema:s,uiSchema:o,registry:i})}function Lt(e){const{children:t,className:r,disabled:i,hasToolbar:a,hasMoveDown:s,hasMoveUp:o,hasRemove:l,hasCopy:c,index:d,onCopyIndexClick:u,onDropIndexClick:h,onReorderClick:m,readonly:p,registry:g,uiSchema:f}=e,{CopyButton:y,MoveDownButton:S,MoveUpButton:v,RemoveButton:x}=g.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return(0,n.jsxs)("div",{className:r,children:[(0,n.jsx)("div",{className:a?"col-xs-9":"col-xs-12",children:t}),a&&(0,n.jsx)("div",{className:"col-xs-3 array-item-toolbox",children:(0,n.jsxs)("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||s)&&(0,n.jsx)(v,{style:b,disabled:i||p||!o,onClick:m(d,d-1),uiSchema:f,registry:g}),(o||s)&&(0,n.jsx)(S,{style:b,disabled:i||p||!s,onClick:m(d,d+1),uiSchema:f,registry:g}),c&&(0,n.jsx)(y,{style:b,disabled:i||p,onClick:u(d),uiSchema:f,registry:g}),l&&(0,n.jsx)(x,{style:b,disabled:i||p,onClick:h(d),uiSchema:f,registry:g})]})})]})}function qt(e){const{canAdd:t,className:r,disabled:i,idSchema:s,uiSchema:o,items:l,onAddClick:c,readonly:d,registry:u,required:h,schema:m,title:p}=e,g=(0,a.getUiOptions)(o),f=(0,a.getTemplate)("ArrayFieldDescriptionTemplate",u,g),y=(0,a.getTemplate)("ArrayFieldItemTemplate",u,g),S=(0,a.getTemplate)("ArrayFieldTitleTemplate",u,g),{ButtonTemplates:{AddButton:v}}=u.templates;return(0,n.jsxs)("fieldset",{className:r,id:s.$id,children:[(0,n.jsx)(S,{idSchema:s,title:g.title||p,required:h,schema:m,uiSchema:o,registry:u}),(0,n.jsx)(f,{idSchema:s,description:g.description||m.description,schema:m,uiSchema:o,registry:u}),(0,n.jsx)("div",{className:"row array-item-list",children:l&&l.map((({key:e,...t})=>(0,n.jsx)(y,{...t},e)))}),t&&(0,n.jsx)(v,{className:"array-item-add",onClick:c,disabled:i||d,uiSchema:o,registry:u})]})}function Mt(e){const{idSchema:t,title:r,schema:i,uiSchema:s,required:o,registry:l}=e,c=(0,a.getUiOptions)(s,l.globalUiOptions),{label:d=!0}=c;if(!r||!d)return null;const u=(0,a.getTemplate)("TitleFieldTemplate",l,c);return(0,n.jsx)(u,{id:(0,a.titleId)(t),title:r,required:o,schema:i,uiSchema:s,registry:l})}function Wt(e){const{id:t,name:r,value:s,readonly:o,disabled:l,autofocus:c,onBlur:d,onFocus:u,onChange:h,onChangeOverride:m,options:p,schema:g,uiSchema:f,formContext:y,registry:S,rawErrors:v,type:x,hideLabel:b,hideError:C,...k}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const F={...k,...(0,a.getInputProps)(g,x,p)};let j;j="number"===F.type||"integer"===F.type?s||0===s?s:"":null==s?"":s;const O=(0,i.useCallback)((({target:{value:e}})=>h(""===e?p.emptyValue:e)),[h,p]),T=(0,i.useCallback)((({target:{value:e}})=>d(t,e)),[d,t]),D=(0,i.useCallback)((({target:{value:e}})=>u(t,e)),[u,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:l,autoFocus:c,value:j,...F,list:g.examples?(0,a.examplesId)(t):void 0,onChange:m||O,onBlur:T,onFocus:D,"aria-describedby":(0,a.ariaDescribedByIds)(t,!!g.examples)}),Array.isArray(g.examples)&&(0,n.jsx)("datalist",{id:(0,a.examplesId)(t),children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>(0,n.jsx)("option",{value:e},e)))},`datalist_${t}`)]})}function Vt({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=(0,a.getSubmitButtonOptions)(e);return r?null:(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function Ht(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:s,...o}=e;return(0,n.jsx)("button",{type:"button",className:`btn btn-${t} ${i}`,...o,children:(0,n.jsx)("i",{className:`glyphicon glyphicon-${r}`})})}function Kt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Ht,{title:t(a.TranslatableString.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function Yt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Ht,{title:t(a.TranslatableString.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function Gt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Ht,{title:t(a.TranslatableString.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function zt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Ht,{title:t(a.TranslatableString.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function Xt({className:e,onClick:t,disabled:r,registry:i}){const{translateString:s}=i;return(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:(0,n.jsx)(Ht,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(a.TranslatableString.AddButton),onClick:t,disabled:r,registry:i})})})}function Zt(e){const{id:t,description:r}=e;return r?"string"==typeof r?(0,n.jsx)("p",{id:t,className:"field-description",children:r}):(0,n.jsx)("div",{id:t,className:"field-description",children:r}):null}function Jt({errors:e,registry:t}){const{translateString:r}=t;return(0,n.jsxs)("div",{className:"panel panel-danger errors",children:[(0,n.jsx)("div",{className:"panel-heading",children:(0,n.jsx)("h3",{className:"panel-title",children:r(a.TranslatableString.ErrorsLabel)})}),(0,n.jsx)("ul",{className:"list-group",children:e.map(((e,t)=>(0,n.jsx)("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const Qt="*";function er(e){const{label:t,required:r,id:i}=e;return t?(0,n.jsxs)("label",{className:"control-label",htmlFor:i,children:[t,r&&(0,n.jsx)("span",{className:"required",children:Qt})]}):null}const tr=function(e){const{id:t,label:r,children:i,errors:s,help:o,description:l,hidden:c,required:d,displayLabel:u,registry:h,uiSchema:m}=e,p=(0,a.getUiOptions)(m),g=(0,a.getTemplate)("WrapIfAdditionalTemplate",h,p);return c?(0,n.jsx)("div",{className:"hidden",children:i}):(0,n.jsxs)(g,{...e,children:[u&&(0,n.jsx)(er,{label:r,required:d,id:t}),u&&l?l:null,i,s,o]})};function rr(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const i=(0,a.errorId)(r);return(0,n.jsx)("div",{children:(0,n.jsx)("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>(0,n.jsx)("li",{className:"text-danger",children:e},t)))})})}function nr(e){const{idSchema:t,help:r}=e;if(!r)return null;const i=(0,a.helpId)(t);return"string"==typeof r?(0,n.jsx)("p",{id:i,className:"help-block",children:r}):(0,n.jsx)("div",{id:i,className:"help-block",children:r})}function ir(e){const{description:t,disabled:r,formData:i,idSchema:s,onAddClick:o,properties:l,readonly:c,registry:d,required:u,schema:h,title:m,uiSchema:p}=e,g=(0,a.getUiOptions)(p),f=(0,a.getTemplate)("TitleFieldTemplate",d,g),y=(0,a.getTemplate)("DescriptionFieldTemplate",d,g),{ButtonTemplates:{AddButton:S}}=d.templates;return(0,n.jsxs)("fieldset",{id:s.$id,children:[m&&(0,n.jsx)(f,{id:(0,a.titleId)(s),title:m,required:u,schema:h,uiSchema:p,registry:d}),t&&(0,n.jsx)(y,{id:(0,a.descriptionId)(s),description:t,schema:h,uiSchema:p,registry:d}),l.map((e=>e.content)),(0,a.canExpand)(h,p,i)&&(0,n.jsx)(S,{className:"object-property-expand",onClick:o(h),disabled:r||c,uiSchema:p,registry:d})]})}function ar(e){const{id:t,title:r,required:i}=e;return(0,n.jsxs)("legend",{id:t,children:[r,i&&(0,n.jsx)("span",{className:"required",children:"*"})]})}const sr=function(e){const{schema:t,idSchema:r,reason:i,registry:s}=e,{translateString:o}=s;let l=a.TranslatableString.UnsupportedField;const c=[];return r&&r.$id&&(l=a.TranslatableString.UnsupportedFieldWithId,c.push(r.$id)),i&&(l=l===a.TranslatableString.UnsupportedField?a.TranslatableString.UnsupportedFieldWithReason:a.TranslatableString.UnsupportedFieldWithIdAndReason,c.push(i)),(0,n.jsxs)("div",{className:"unsupported-field",children:[(0,n.jsx)("p",{children:(0,n.jsx)(Ot,{children:o(l,c)})}),t&&(0,n.jsx)("pre",{children:JSON.stringify(t,null,2)})]})};function or(e){const{id:t,classNames:r,style:i,disabled:s,label:o,onKeyChange:l,onDropPropertyClick:c,readonly:d,required:u,schema:h,children:m,uiSchema:p,registry:g}=e,{templates:f,translateString:y}=g,{RemoveButton:S}=f.ButtonTemplates,v=y(a.TranslatableString.KeyLabel,[o]);return a.ADDITIONAL_PROPERTY_FLAG in h?(0,n.jsx)("div",{className:r,style:i,children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-xs-5 form-additional",children:(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)(er,{label:v,required:u,id:`${t}-key`}),(0,n.jsx)("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>l(e.target.value),defaultValue:o})]})}),(0,n.jsx)("div",{className:"form-additional form-group col-xs-5",children:m}),(0,n.jsx)("div",{className:"col-xs-2",children:(0,n.jsx)(S,{className:"array-item-remove btn-block",style:{border:"0"},disabled:s||d,onClick:c(o),uiSchema:p,registry:g})})]})}):(0,n.jsx)("div",{className:r,style:i,children:m})}function lr(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:(0,a.pad)(n,2)});return r}function cr(e,t,r=[1900,(new Date).getFullYear()+2]){const{year:n,month:i,day:a,hour:s,minute:o,second:l}=e,c=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:i},{type:"day",range:[1,31],value:a}];return t&&c.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:o},{type:"second",range:[0,59],value:l}),c}function dr({type:e,range:t,value:r,select:i,rootId:s,name:o,disabled:l,readonly:c,autofocus:d,registry:u,onBlur:h,onFocus:m}){const p=s+"_"+e,{SelectWidget:g}=u.widgets;return(0,n.jsx)(g,{schema:{type:"integer"},id:p,name:o,className:"form-control",options:{enumOptions:lr(t[0],t[1])},placeholder:e,value:r,disabled:l,readonly:c,autofocus:d,onChange:t=>i(e,t),onBlur:h,onFocus:m,registry:u,label:"","aria-describedby":(0,a.ariaDescribedByIds)(s)})}const ur=function({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:s=!1,options:o,id:l,name:c,registry:d,onBlur:u,onFocus:h,onChange:m,value:p}){const{translateString:g}=d,[f,y]=(0,i.useState)(p),[S,v]=(0,i.useReducer)(((e,t)=>({...e,...t})),(0,a.parseDateString)(p,e));(0,i.useEffect)((()=>{const t=(0,a.toDateString)(S,e);!function(e){return Object.values(e).every((e=>-1!==e))}(S)||t===p?f!==p&&(y(p),v((0,a.parseDateString)(p,e))):m(t)}),[e,p,m,S,f]);const x=(0,i.useCallback)(((e,t)=>{v({[e]:t})}),[]),b=(0,i.useCallback)((n=>{if(n.preventDefault(),t||r)return;const i=(0,a.parseDateString)((new Date).toJSON(),e);m((0,a.toDateString)(i,e))}),[t,r,e]),C=(0,i.useCallback)((e=>{e.preventDefault(),t||r||m(void 0)}),[t,r,m]);return(0,n.jsxs)("ul",{className:"list-inline",children:[cr(S,e,o.yearsRange).map(((e,i)=>(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)(dr,{rootId:l,name:c,select:x,...e,disabled:t,readonly:r,registry:d,onBlur:u,onFocus:h,autofocus:s&&0===i})},i))),("undefined"===o.hideNowButton||!o.hideNowButton)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:b,children:g(a.TranslatableString.NowLabel)})}),("undefined"===o.hideClearButton||!o.hideClearButton)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:C,children:g(a.TranslatableString.ClearLabel)})})]})},hr=function({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return(0,n.jsx)(r,{time:e,...t})},mr=function({schema:e,uiSchema:t,options:r,id:s,value:o,disabled:l,readonly:c,label:d,hideLabel:u,autofocus:h=!1,onBlur:m,onFocus:p,onChange:g,registry:f}){var y;const S=(0,a.getTemplate)("DescriptionFieldTemplate",f,r),v=(0,a.schemaRequiresTrueValue)(e),x=(0,i.useCallback)((e=>g(e.target.checked)),[g]),b=(0,i.useCallback)((e=>m(s,e.target.checked)),[m,s]),C=(0,i.useCallback)((e=>p(s,e.target.checked)),[p,s]),k=null!==(y=r.description)&&void 0!==y?y:e.description;return(0,n.jsxs)("div",{className:"checkbox "+(l||c?"disabled":""),children:[!u&&!!k&&(0,n.jsx)(S,{id:(0,a.descriptionId)(s),description:k,schema:e,uiSchema:t,registry:f}),(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",id:s,name:s,checked:void 0!==o&&o,required:v,disabled:l||c,autoFocus:h,onChange:x,onBlur:b,onFocus:C,"aria-describedby":(0,a.ariaDescribedByIds)(s)}),(0,a.labelValue)((0,n.jsx)("span",{children:d}),u)]})]})},pr=function({id:e,disabled:t,options:{inline:r=!1,enumOptions:s,enumDisabled:o,emptyValue:l},value:c,autofocus:d=!1,readonly:u,onChange:h,onBlur:m,onFocus:p}){const g=Array.isArray(c)?c:[c],f=(0,i.useCallback)((({target:{value:t}})=>m(e,(0,a.enumOptionsValueForIndex)(t,s,l))),[m,e]),y=(0,i.useCallback)((({target:{value:t}})=>p(e,(0,a.enumOptionsValueForIndex)(t,s,l))),[p,e]);return(0,n.jsx)("div",{className:"checkboxes",id:e,children:Array.isArray(s)&&s.map(((i,l)=>{const c=(0,a.enumOptionsIsSelected)(i.value,g),m=Array.isArray(o)&&-1!==o.indexOf(i.value),p=t||m||u?"disabled":"",S=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"checkbox",id:(0,a.optionId)(e,l),name:e,checked:c,value:String(l),disabled:t||m||u,autoFocus:d&&0===l,onChange:e=>{e.target.checked?h((0,a.enumOptionsSelectValue)(l,g,s)):h((0,a.enumOptionsDeselectValue)(l,g,s))},onBlur:f,onFocus:y,"aria-describedby":(0,a.ariaDescribedByIds)(e)}),(0,n.jsx)("span",{children:i.label})]});return r?(0,n.jsx)("label",{className:`checkbox-inline ${p}`,children:S},l):(0,n.jsx)("div",{className:`checkbox ${p}`,children:(0,n.jsx)("label",{children:S})},l)}))})};function gr(e){const{disabled:t,readonly:r,options:i,registry:s}=e,o=(0,a.getTemplate)("BaseInputTemplate",s,i);return(0,n.jsx)(o,{type:"color",...e,disabled:t||r})}function fr(e){const{onChange:t,options:r,registry:s}=e,o=(0,a.getTemplate)("BaseInputTemplate",s,r),l=(0,i.useCallback)((e=>t(e||void 0)),[t]);return(0,n.jsx)(o,{type:"date",...e,onChange:l})}function yr(e){const{onChange:t,value:r,options:i,registry:s}=e,o=(0,a.getTemplate)("BaseInputTemplate",s,i);return(0,n.jsx)(o,{type:"datetime-local",...e,value:(0,a.utcToLocal)(r),onChange:e=>t((0,a.localToUTC)(e))})}function Sr(e){const{options:t,registry:r}=e,i=(0,a.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(i,{type:"email",...e})}function vr(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function xr(e){const{name:t,size:r,type:n}=e;return new Promise(((i,a)=>{const s=new window.FileReader;s.onerror=a,s.onload=e=>{var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?i({dataURL:vr(e.target.result,t),name:t,size:r,type:n}):i({dataURL:null,name:t,size:r,type:n})},s.readAsDataURL(e)}))}function br({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:s,name:o}=e;return i?-1!==s.indexOf("image")?(0,n.jsx)("img",{src:i,style:{maxWidth:"100%"},className:"file-preview"}):(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("a",{download:`preview-${o}`,href:i,className:"file-download",children:r(a.TranslatableString.PreviewLabel)})]}):null}function Cr({filesInfo:e,registry:t,preview:r}){if(0===e.length)return null;const{translateString:i}=t;return(0,n.jsx)("ul",{className:"file-info",children:e.map(((e,s)=>{const{name:o,size:l,type:c}=e;return(0,n.jsxs)("li",{children:[(0,n.jsx)(Ot,{children:i(a.TranslatableString.FilesInfo,[o,c,String(l)])}),r&&(0,n.jsx)(br,{fileInfo:e,registry:t})]},s)}))})}function kr(e){return e.filter((e=>e)).map((e=>{const{blob:t,name:r}=(0,a.dataURItoBlob)(e);return{dataURL:e,name:r,size:t.size,type:t.type}}))}const Fr=function(e){const{disabled:t,readonly:r,required:s,multiple:o,onChange:l,value:c,options:d,registry:u}=e,h=(0,a.getTemplate)("BaseInputTemplate",u,d),[m,p]=(0,i.useState)(Array.isArray(c)?kr(c):kr([c])),g=(0,i.useCallback)((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(xr))).then((e=>{const t=e.map((e=>e.dataURL));o?(p(m.concat(e[0])),l(c.concat(t[0]))):(p(e),l(t[0]))}))}),[o,c,m,l]);return(0,n.jsxs)("div",{children:[(0,n.jsx)(h,{...e,disabled:t||r,type:"file",required:!c&&s,onChangeOverride:g,value:"",accept:d.accept?String(d.accept):void 0}),(0,n.jsx)(Cr,{filesInfo:m,registry:u,preview:d.filePreview})]})},jr=function({id:e,value:t}){return(0,n.jsx)("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})};function Or(e){const{options:t,registry:r}=e,i=(0,a.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(i,{type:"password",...e})}const Tr=function({options:e,value:t,required:r,disabled:s,readonly:o,autofocus:l=!1,onBlur:c,onFocus:d,onChange:u,id:h}){const{enumOptions:m,enumDisabled:p,inline:g,emptyValue:f}=e,y=(0,i.useCallback)((({target:{value:e}})=>c(h,(0,a.enumOptionsValueForIndex)(e,m,f))),[c,h]),S=(0,i.useCallback)((({target:{value:e}})=>d(h,(0,a.enumOptionsValueForIndex)(e,m,f))),[d,h]);return(0,n.jsx)("div",{className:"field-radio-group",id:h,children:Array.isArray(m)&&m.map(((e,i)=>{const c=(0,a.enumOptionsIsSelected)(e.value,t),d=Array.isArray(p)&&-1!==p.indexOf(e.value),m=s||d||o?"disabled":"",f=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"radio",id:(0,a.optionId)(h,i),checked:c,name:h,required:r,value:String(i),disabled:s||d||o,autoFocus:l&&0===i,onChange:()=>u(e.value),onBlur:y,onFocus:S,"aria-describedby":(0,a.ariaDescribedByIds)(h)}),(0,n.jsx)("span",{children:e.label})]});return g?(0,n.jsx)("label",{className:`radio-inline ${m}`,children:f},i):(0,n.jsx)("div",{className:`radio ${m}`,children:(0,n.jsx)("label",{children:f})},i)}))})};function Dr(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return(0,n.jsxs)("div",{className:"field-range-wrapper",children:[(0,n.jsx)(r,{type:"range",...e}),(0,n.jsx)("span",{className:"range-view",children:t})]})}function Ir(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}const _r=function({schema:e,id:t,options:r,value:s,required:o,disabled:l,readonly:c,multiple:d=!1,autofocus:u=!1,onChange:h,onBlur:m,onFocus:p,placeholder:g}){const{enumOptions:f,enumDisabled:y,emptyValue:S}=r,v=d?[]:"",x=(0,i.useCallback)((e=>{const r=Ir(e,d);return p(t,(0,a.enumOptionsValueForIndex)(r,f,S))}),[p,t,e,d,r]),b=(0,i.useCallback)((e=>{const r=Ir(e,d);return m(t,(0,a.enumOptionsValueForIndex)(r,f,S))}),[m,t,e,d,r]),C=(0,i.useCallback)((e=>{const t=Ir(e,d);return h((0,a.enumOptionsValueForIndex)(t,f,S))}),[h,e,d,r]),k=(0,a.enumOptionsIndexForValue)(s,f,d);return(0,n.jsxs)("select",{id:t,name:t,multiple:d,className:"form-control",value:void 0===k?v:k,required:o,disabled:l||c,autoFocus:u,onBlur:b,onFocus:x,onChange:C,"aria-describedby":(0,a.ariaDescribedByIds)(t),children:[!d&&void 0===e.default&&(0,n.jsx)("option",{value:"",children:g}),Array.isArray(f)&&f.map((({value:e,label:t},r)=>{const i=y&&-1!==y.indexOf(e);return(0,n.jsx)("option",{value:String(r),disabled:i,children:t},r)}))]})};function Er({id:e,options:t={},placeholder:r,value:s,required:o,disabled:l,readonly:c,autofocus:d=!1,onChange:u,onBlur:h,onFocus:m}){const p=(0,i.useCallback)((({target:{value:e}})=>u(""===e?t.emptyValue:e)),[u,t.emptyValue]),g=(0,i.useCallback)((({target:{value:t}})=>h(e,t)),[h,e]),f=(0,i.useCallback)((({target:{value:t}})=>m(e,t)),[e,m]);return(0,n.jsx)("textarea",{id:e,name:e,className:"form-control",value:s||"",placeholder:r,required:o,disabled:l,readOnly:c,autoFocus:d,rows:t.rows,onBlur:g,onFocus:f,onChange:p,"aria-describedby":(0,a.ariaDescribedByIds)(e)})}Er.defaultProps={autofocus:!1,options:{}};const wr=Er;function Ar(e){const{options:t,registry:r}=e,i=(0,a.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(i,{...e})}function Nr(e){const{onChange:t,options:r,registry:s}=e,o=(0,a.getTemplate)("BaseInputTemplate",s,r),l=(0,i.useCallback)((e=>t(e?`${e}:00`:void 0)),[t]);return(0,n.jsx)(o,{type:"time",...e,onChange:l})}function Ur(e){const{options:t,registry:r}=e,i=(0,a.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(i,{type:"url",...e})}function Br(e){const{options:t,registry:r}=e,i=(0,a.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(i,{type:"number",...e})}class $r extends i.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=u()(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],i=[[]])=>(Object.keys(e).forEach((s=>{if("object"==typeof e[s]){const t=i.map((e=>[...e,s]));e[s][a.RJSF_ADDITONAL_PROPERTIES_FLAG]&&""!==e[s][a.NAME_KEY]?n.push(e[s][a.NAME_KEY]):r(e[s],n,t)}else s===a.NAME_KEY&&""!==e[s]&&i.forEach((e=>{const r=o()(t,e);("object"!=typeof r||c()(r)||Array.isArray(r)&&r.every((e=>"object"!=typeof e)))&&n.push(e)}))})),n);return r(e)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:i,liveOmit:s,noValidate:o,liveValidate:l,onChange:c}=this.props,{schemaUtils:d,schema:u,retrievedSchema:h}=this.state;((0,a.isObject)(e)||Array.isArray(e))&&(e=this.getStateFromProps(this.props,e,h).formData);const m=!o&&l;let p,g={formData:e,schema:u},f=e;if(!0===i&&!0===s){p=d.retrieveSchema(u,e);const t=d.toPathSchema(p,"",e),r=this.getFieldNames(t,e);f=this.getUsedFormData(e,r),g={formData:f}}if(m){const e=this.validate(f,u,d,h);let t=e.errors,r=e.errorSchema;const i=t,s=r;if(n){const i=(0,a.validationDataMerge)(e,n);r=i.errorSchema,t=i.errors}g={formData:f,errors:t,errorSchema:r,schemaValidationErrors:i,schemaValidationErrorSchema:s}}else if(!o&&t){const e=n?(0,a.mergeObjects)(t,n,"preventDuplicates"):t;g={formData:f,errorSchema:e,errors:(0,a.toErrorList)(e)}}p&&(g.retrievedSchema=p),this.setState(g,(()=>c&&c({...this.state,...g},r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e({...this.state,...t})))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:i}=this.props;let{formData:s}=this.state;const{schema:o,schemaUtils:l}=this.state;if(!0===t){const e=l.retrieveSchema(o,s),t=l.toPathSchema(e,"",s),r=this.getFieldNames(t,s);s=this.getUsedFormData(s,r)}if(n||this.validateForm()){const t=r||{},n=r?(0,a.toErrorList)(r):[];this.setState({formData:s,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{i&&i({...this.state,formData:s,status:"submitted"},e)}))}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!(0,a.deepEquals)(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=(0,i.createRef)()}getSnapshotBeforeUpdate(e,t){if(!(0,a.deepEquals)(this.props,e)){const r=this.getStateFromProps(this.props,this.props.formData,e.schema!==this.props.schema?void 0:this.state.retrievedSchema);return{nextState:r,shouldUpdate:!(0,a.deepEquals)(r,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;(0,a.deepEquals)(e.formData,this.props.formData)||(0,a.deepEquals)(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,r){const n=this.state||{},i="schema"in e?e.schema:this.props.schema,s=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},o=void 0!==t,l="liveValidate"in e?e.liveValidate:this.props.liveValidate,c=o&&!e.noValidate&&l,d=i,u="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let h=n.schemaUtils;h&&!h.doesSchemaUtilsDiffer(e.validator,d,u)||(h=(0,a.createSchemaUtils)(e.validator,d,u));const m=h.getDefaultFormState(i,t),p=null!=r?r:h.retrieveSchema(i,m);let g,f,y=n.schemaValidationErrors,S=n.schemaValidationErrorSchema;if(c){const e=this.validate(m,i,h,p);g=e.errors,f=e.errorSchema,y=g,S=f}else{const t=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:n.errors||[],errorSchema:n.errorSchema||{}}:{errors:n.schemaValidationErrors||[],errorSchema:n.schemaValidationErrorSchema||{}};g=t.errors,f=t.errorSchema}if(e.extraErrors){const t=(0,a.validationDataMerge)({errorSchema:f,errors:g},e.extraErrors);f=t.errorSchema,g=t.errors}const v=h.toIdSchema(p,s["ui:rootFieldId"],m,e.idPrefix,e.idSeparator);return{schemaUtils:h,schema:i,uiSchema:s,idSchema:v,formData:m,edit:o,errors:g,errorSchema:f,schemaValidationErrors:y,schemaValidationErrorSchema:S,retrievedSchema:p}}shouldComponentUpdate(e,t){return(0,a.shouldRender)(this,e,t)}validate(e,t=this.props.schema,r,n){const i=r||this.state.schemaUtils,{customValidate:a,transformErrors:s,uiSchema:o}=this.props,l=null!=n?n:i.retrieveSchema(t,e);return i.getValidator().validateFormData(e,l,a,s,o)}renderErrors(e){const{errors:t,errorSchema:r,schema:i,uiSchema:s}=this.state,{formContext:o}=this.props,l=(0,a.getUiOptions)(s),c=(0,a.getTemplate)("ErrorListTemplate",e,l);return t&&t.length?(0,n.jsx)(c,{errors:t,errorSchema:r||{},schema:i,uiSchema:s,formContext:o,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:i,templates:s,widgets:o,formContext:l,translateString:c}={fields:{AnyOfField:_,ArrayField:j,BooleanField:O,NumberField:A,ObjectField:wt,OneOfField:_,SchemaField:Bt,StringField:$t,NullField:Rt},templates:{ArrayFieldDescriptionTemplate:Pt,ArrayFieldItemTemplate:Lt,ArrayFieldTemplate:qt,ArrayFieldTitleTemplate:Mt,ButtonTemplates:{SubmitButton:Vt,AddButton:Xt,CopyButton:Kt,MoveDownButton:Yt,MoveUpButton:Gt,RemoveButton:zt},BaseInputTemplate:Wt,DescriptionFieldTemplate:Zt,ErrorListTemplate:Jt,FieldTemplate:tr,FieldErrorTemplate:rr,FieldHelpTemplate:nr,ObjectFieldTemplate:ir,TitleFieldTemplate:ar,UnsupportedFieldTemplate:sr,WrapIfAdditionalTemplate:or},widgets:{AltDateWidget:ur,AltDateTimeWidget:hr,CheckboxWidget:mr,CheckboxesWidget:pr,ColorWidget:gr,DateWidget:fr,DateTimeWidget:yr,EmailWidget:Sr,FileWidget:Fr,HiddenWidget:jr,PasswordWidget:Or,RadioWidget:Tr,RangeWidget:Dr,SelectWidget:_r,TextWidget:Ar,TextareaWidget:wr,TimeWidget:Nr,UpDownWidget:Br,URLWidget:Ur},rootSchema:{},formContext:{},translateString:a.englishStringTranslator};return{fields:{...i,...this.props.fields},templates:{...s,...this.props.templates,ButtonTemplates:{...s.ButtonTemplates,...null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates}},widgets:{...o,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||l,schemaUtils:n,translateString:t||c,globalUiOptions:r[a.UI_GLOBAL_OPTIONS_KEY]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,i=m()(n);""===i[0]?i[0]=t:i.unshift(t);const a=i.join(r);let s=this.formElement.current.elements[a];s||(s=this.formElement.current.querySelector(`input[id^=${a}`)),s&&s.length&&(s=s[0]),s&&s.focus()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props,{formData:i,errors:s}=this.state,o=this.validate(i);let l=o.errors,c=o.errorSchema;const d=l,u=c,h=l.length>0||e&&t;if(h){if(e){const t=(0,a.validationDataMerge)(o,e);c=t.errorSchema,l=t.errors}r&&("function"==typeof r?r(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:c,schemaValidationErrors:d,schemaValidationErrorSchema:u},(()=>{n?n(l):console.error("Form validation failed",l)}))}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!h}render(){const{children:e,id:t,idPrefix:r,idSeparator:i,className:s="",tagName:o,name:l,method:c,target:d,action:u,autoComplete:h,enctype:m,acceptcharset:p,noHtml5Validate:g=!1,disabled:f=!1,readonly:y=!1,formContext:S,showErrorList:v="top",_internalFormWrapper:x}=this.props,{schema:b,uiSchema:C,formData:k,errorSchema:F,idSchema:j}=this.state,O=this.getRegistry(),{SchemaField:T}=O.fields,{SubmitButton:D}=O.templates.ButtonTemplates,I=x?o:void 0,_=x||o||"form";let{[a.SUBMIT_BTN_OPTIONS_KEY]:E={}}=(0,a.getUiOptions)(C);f&&(E={...E,props:{...E.props,disabled:!0}});const w={[a.UI_OPTIONS_KEY]:{[a.SUBMIT_BTN_OPTIONS_KEY]:E}};return(0,n.jsxs)(_,{className:s||"rjsf",id:t,name:l,method:c,target:d,action:u,autoComplete:h,encType:m,acceptCharset:p,noValidate:g,onSubmit:this.onSubmit,as:I,ref:this.formElement,children:["top"===v&&this.renderErrors(O),(0,n.jsx)(T,{name:"",schema:b,uiSchema:C,errorSchema:F,idSchema:j,idPrefix:r,idSeparator:i,formContext:S,formData:k,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:O,disabled:f,readonly:y}),e||(0,n.jsx)(D,{uiSchema:w,registry:O}),"bottom"===v&&this.renderErrors(O)]})}}const Rr=$r},8843:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Cache:()=>p,FreeStyle:()=>v,Rule:()=>y,Selector:()=>g,Style:()=>f,create:()=>x});let n=0;const i=Object.create(null),a=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(const e of a)for(const t of["-webkit-","-ms-","-moz-","-o-",""])i[t+e]=!0;function s(e,t){return t&&"number"==typeof t&&!i[e]?`${e}:${t}px`:`${e}:${t}`}function o(e){return e.sort(((e,t)=>e[0]>t[0]?1:-1))}function l(e){return e.map((([e,t])=>Array.isArray(t)?t.map((t=>s(e,t))).join(";"):s(e,t))).join(";")}function c(e,t){return-1===e.indexOf("&")?`${t} ${e}`:e.replace(/&/g,t)}function d(e,t,r,n,i){const{style:a,nested:s,isUnique:u}=function(e,t){const r=[],n=[];for(const t of Object.keys(e)){const a=t.trim(),s=e[t];36!==a.charCodeAt(0)&&null!=s&&("object"!=typeof s||Array.isArray(s)?r.push([(i=a,i.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace(/^ms-/,"-ms-")),s]):n.push([a,s]))}var i;return{style:l(o(r)),nested:t?n:o(n),isUnique:!!e.$unique}}(t,""!==e);let h=a;if(64===e.charCodeAt(0)){const t={selector:e,styles:[],rules:[],style:i?"":a};r.push(t),a&&i&&t.styles.push({selector:i,style:a,isUnique:u});for(const[e,r]of s)h+=e+d(e,r,t.rules,t.styles,i)}else{const t=i?c(e,i):e;a&&n.push({selector:t,style:a,isUnique:u});for(const[e,i]of s)h+=e+d(e,i,r,n,t)}return h}function u(e,t,r,i,a,s){for(const{selector:r,style:o,isUnique:l}of i){const i=s?c(r,a):r,d=l?`u\0${(++n).toString(36)}`:`s\0${t}\0${o}`,u=new f(o,d);u.add(new g(i,`k\0${t}\0${i}`)),e.add(u)}for(const{selector:n,style:i,rules:o,styles:l}of r){const r=new y(n,i,`r\0${t}\0${n}\0${i}`);u(r,t,o,l,a,s),e.add(r)}}function h(e){let t="";for(let r=0;r<e.length;r++)t+=e[r];return t}const m={add:()=>{},change:()=>{},remove:()=>{}};class p{constructor(e=m){this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(e){const t=this._counters[e.id]||0,r=this._children[e.id]||e.clone();if(this._counters[e.id]=t+1,0===t)this._children[r.id]=r,this._keys.push(r.id),this.sheet.push(r.getStyles()),this.changeId++,this.changes.add(r,this._keys.length-1);else if(r instanceof p&&e instanceof p){const t=this._keys.indexOf(e.id),n=r.changeId;r.merge(e),r.changeId!==n&&(this.sheet.splice(t,1,r.getStyles()),this.changeId++,this.changes.change(r,t,t))}}remove(e){const t=this._counters[e.id];if(t){this._counters[e.id]=t-1;const r=this._children[e.id],n=this._keys.indexOf(r.id);if(1===t)delete this._counters[e.id],delete this._children[e.id],this._keys.splice(n,1),this.sheet.splice(n,1),this.changeId++,this.changes.remove(r,n);else if(r instanceof p&&e instanceof p){const t=r.changeId;r.unmerge(e),r.changeId!==t&&(this.sheet.splice(n,1,r.getStyles()),this.changeId++,this.changes.change(r,n,n))}}}values(){return this._keys.map((e=>this._children[e]))}merge(e){for(const t of e.values())this.add(t);return this}unmerge(e){for(const t of e.values())this.remove(t);return this}clone(){return(new p).merge(this)}}class g{constructor(e,t){this.selector=e,this.id=t}getStyles(){return this.selector}clone(){return this}}class f extends p{constructor(e,t){super(),this.style=e,this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new f(this.style,this.id).merge(this)}}class y extends p{constructor(e,t,r){super(),this.rule=e,this.style=t,this.id=r}getStyles(){return`${this.rule}{${this.style}${h(this.sheet)}}`}clone(){return new y(this.rule,this.style,this.id).merge(this)}}function S(e,t){return`f${function(e){let t=5381,r=e.length;for(;r--;)t=33*t^e.charCodeAt(r);return(t>>>0).toString(36)}(e)}`}class v extends p{constructor(e,t){super(t),this.id=e}registerStyle(e){const t=[],r=[],n=d("&",e,t,r),i=S(n);return u(this,n,t,r,`.${i}`,!0),i}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){const r=[],n=[],i=d("",t,r,n),a=S(i),s=new y(`${e} ${a}`,"",`h\0${i}\0${e}`);return u(s,i,r,n,"",!1),this.add(s),a}registerRule(e,t){const r=[],n=[];u(this,d(e,t,r,n),r,n,"",!1)}registerCss(e){return this.registerRule("",e)}getStyles(){return h(this.sheet)}clone(){return new v(this.id,this.changes).merge(this)}}function x(e){return new v(`f${(++n).toString(36)}`,e)}},63005:(e,t,r)=>{var n=r(10228),i=r(79749);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},10228:(e,t,r)=>{var n=r(79867),i=r(78859),a=r(76747);e.exports=function(e,t,r){for(var s=-1,o=t.length,l={};++s<o;){var c=t[s],d=n(e,c);r(d,c)&&i(l,a(c,e),d)}return l}},14648:(e,t,r)=>{var n=r(63005),i=r(24288)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},43551:(e,t,r)=>{var n=r(70830);e.exports=function(e,t){return null==e||n(e,t)}},37634:(e,t,r)=>{"use strict";var n=r(40510);t.s=n.createRoot,n.hydrateRoot},73062:(e,t,r)=>{"use strict";var n=r(53861);n.TypeStyle,r(66720);var i=r(51833);i.extend,i.classes,i.media;var a=new n.TypeStyle({autoGenerateTag:!0});a.setStylesTarget,a.cssRaw,a.cssRule,a.forceRenderStyles,a.fontFace,a.getStyles,a.keyframes,a.reinit,t.oB=a.style,a.stylesheet},62034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToStyles=function e(t){var r={};for(var n in t){var i=t[n];if("$nest"===n){var a=i;for(var s in a){var o=a[s];r[s]=e(o)}}else"$debugName"===n?r.$displayName=i:r[n]=i}return r},t.convertToKeyframes=function(e){var t={};for(var r in e)"$debugName"!==r&&(t[r]=e[r]);return e.$debugName&&(t.$displayName=e.$debugName),t}},53861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8843),i=r(62034),a=r(51833),s=function(){return n.create()},o=function(){function e(e){var t=this,r=e.autoGenerateTag;this.cssRaw=function(e){e&&(t._raw+=e||"",t._pendingRawChange=!0,t._styleUpdated())},this.cssRule=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var s=i.convertToStyles(a.extend.apply(void 0,r));t._freeStyle.registerRule(e,s),t._styleUpdated()},this.forceRenderStyles=function(){var e=t._getTag();e&&(e.textContent=t.getStyles())},this.fontFace=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var n=t._freeStyle,i=0,a=e;i<a.length;i++){var s=a[i];n.registerRule("@font-face",s)}t._styleUpdated()},this.getStyles=function(){return(t._raw||"")+t._freeStyle.getStyles()},this.keyframes=function(e){var r=i.convertToKeyframes(e),n=t._freeStyle.registerKeyframes(r);return t._styleUpdated(),n},this.reinit=function(){var e=s();t._freeStyle=e,t._lastFreeStyleChangeId=e.changeId,t._raw="",t._pendingRawChange=!1;var r=t._getTag();r&&(r.textContent="")},this.setStylesTarget=function(e){t._tag&&(t._tag.textContent=""),t._tag=e,t.forceRenderStyles()},this.stylesheet=function(e){for(var r={},n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++){var a=i[n],s=e[a];s&&(s.$debugName=a,r[a]=t.style(s))}return r};var n=s();this._autoGenerateTag=r,this._freeStyle=n,this._lastFreeStyleChangeId=n.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0,this.style=this.style.bind(this)}return e.prototype._afterAllSync=function(e){var t=this;this._pending++;var r=this._pending;a.raf((function(){r===t._pending&&e()}))},e.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var e="undefined"==typeof window?{textContent:""}:document.createElement("style");return"undefined"!=typeof document&&document.head.appendChild(e),this._tag=e,e}},e.prototype._styleUpdated=function(){var e=this,t=this._freeStyle.changeId,r=this._lastFreeStyleChangeId;(this._pendingRawChange||t!==r)&&(this._lastFreeStyleChangeId=t,this._pendingRawChange=!1,this._afterAllSync((function(){return e.forceRenderStyles()})))},e.prototype.style=function(){var e=this._freeStyle.registerStyle(i.convertToStyles(a.extend.apply(void 0,arguments)));return this._styleUpdated(),e},e}();t.TypeStyle=o},51833:(e,t)=>{"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},i=0,a=e;i<a.length;i++){var s=a[i];if(null!=s&&!1!==s)for(var o in s){var l=s[o];(l||0===l)&&("$nest"===o&&l?n[o]=n.$nest?r(n.$nest,l):l:-1!==o.indexOf("&")||0===o.indexOf("@media")?n[o]=n[o]?r(n[o],l):l:n[o]=l)}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.raf="undefined"==typeof requestAnimationFrame?function(e){return setTimeout(e)}:"undefined"==typeof window?requestAnimationFrame:requestAnimationFrame.bind(window),t.classes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.map((function(e){return e&&"object"==typeof e?Object.keys(e).map((function(t){return!!e[t]&&t})):[e]})).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return!!e})).join(" ")},t.extend=r,t.media=function(e){for(var t,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var s=[];return e.type&&s.push(e.type),e.orientation&&s.push("(orientation: "+e.orientation+")"),e.minWidth&&s.push("(min-width: "+n(e.minWidth)+")"),e.maxWidth&&s.push("(max-width: "+n(e.maxWidth)+")"),e.minHeight&&s.push("(min-height: "+n(e.minHeight)+")"),e.maxHeight&&s.push("(max-height: "+n(e.maxHeight)+")"),e.prefersColorScheme&&s.push("(prefers-color-scheme: "+e.prefersColorScheme+")"),{$nest:(t={},t["@media "+s.join(" and ")]=r.apply(void 0,i),t)}};var n=function(e){return"string"==typeof e?e:e+"px"}},66720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}}]);
//# sourceMappingURL=1871.7fed383.js.map