(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[763],{2302:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(7731),o=n(6087),i=n(9019),s=n.n(i),a=n(8468),l=n(4040),c=n.n(l),u=n(9491),p=n(674),d=n(9910);const f=(0,o.createElement)("div",{className:"event-catcher"}),m=({eventHandlers:e,child:t,childrenWithPopover:n})=>(0,o.cloneElement)((0,o.createElement)("span",{className:"disabled-element-wrapper"},(0,o.cloneElement)(f,e),(0,o.cloneElement)(t,{children:n}),","),e),h=({child:e,eventHandlers:t,childrenWithPopover:n})=>(0,o.cloneElement)(e,{...t,children:n}),g=(e,t,n)=>{if(1!==o.Children.count(e))return;const r=o.Children.only(e);"function"==typeof r.props[t]&&r.props[t](n)},v=function({children:e,position:t,text:n,shortcut:r}){const[i,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1),f=(0,u.useDebounce)(c,700),v=t=>{g(e,"onMouseDown",t),document.addEventListener("mouseup",w),s(!0)},y=t=>{g(e,"onMouseUp",t),document.removeEventListener("mouseup",w),s(!1)},b=e=>"mouseUp"===e?y:"mouseDown"===e?v:void 0,w=b("mouseUp"),E=(t,n)=>r=>{if(g(e,t,r),r.currentTarget.disabled)return;if("focus"===r.type&&i)return;f.cancel();const o=(0,a.includes)(["focus","mouseenter"],r.type);o!==l&&(n?f(o):c(o))},x=()=>{f.cancel(),document.removeEventListener("mouseup",w)};if((0,o.useEffect)((()=>x),[]),1!==o.Children.count(e))return e;const k={onMouseEnter:E("onMouseEnter",!0),onMouseLeave:E("onMouseLeave"),onClick:E("onClick"),onFocus:E("onFocus"),onBlur:E("onBlur"),onMouseDown:b("mouseDown")},T=o.Children.only(e),{children:S,disabled:A}=T.props,C=A?m:h,O=(({grandchildren:e,isOver:t,position:n,text:r,shortcut:i})=>(0,o.concatChildren)(e,t&&(0,o.createElement)(p.A,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,(0,o.createElement)(d.A,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:S,isOver:l,position:t,text:n,shortcut:r});return C({child:T,eventHandlers:k,childrenWithPopover:O})};var y=n(5573),b=n(6589);const w=function({icon:e=null,size:t=24,...n}){if("string"==typeof e)return(0,o.createElement)(b.A,(0,r.A)({icon:e},n));if((0,o.isValidElement)(e)&&b.A===e.type)return(0,o.cloneElement)(e,{...n});if("function"==typeof e)return e.prototype instanceof o.Component?(0,o.createElement)(e,{size:t,...n}):e({size:t,...n});if(e&&("svg"===e.type||e.type===y.SVG)){const r={width:t,height:t,...e.props,...n};return(0,o.createElement)(y.SVG,r)}return(0,o.isValidElement)(e)?(0,o.cloneElement)(e,{size:t,...n}):e};var E=n(8608);const x=["onMouseDown","onClick"],k=(0,o.forwardRef)((function(e,t){const{href:n,target:i,isSmall:l,isPressed:u,isBusy:p,isDestructive:d,className:f,disabled:m,icon:h,iconPosition:g="left",iconSize:y,showTooltip:b,tooltipPosition:k,shortcut:T,label:S,children:A,text:C,variant:O,__experimentalIsFocusable:N,describedBy:_,...I}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,variant:i,...s}){let a=i;var l,u,p,d,f;return t&&(null!==(l=a)&&void 0!==l||(a="primary")),r&&(null!==(u=a)&&void 0!==u||(a="tertiary")),n&&(null!==(p=a)&&void 0!==p||(a="secondary")),e&&(c()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(d=a)&&void 0!==d||(a="secondary")),o&&(null!==(f=a)&&void 0!==f||(a="link")),{...s,variant:a}}(e),L=s()("components-button",f,{"is-secondary":"secondary"===O,"is-primary":"primary"===O,"is-small":l,"is-tertiary":"tertiary"===O,"is-pressed":u,"is-busy":p,"is-link":"link"===O,"is-destructive":d,"has-text":!!h&&!!A,"has-icon":!!h}),D=m&&!N,M=void 0===n||D?"button":"a",R="a"===M?{href:n,target:i}:{type:"button",disabled:D,"aria-pressed":u};if(m&&N){R["aria-disabled"]=!0;for(const e of x)I[e]=e=>{e.stopPropagation(),e.preventDefault()}}const P=!D&&(b&&S||T||!!S&&(!A||(0,a.isArray)(A)&&!A.length)&&!1!==b),F=_?(0,a.uniqueId)():null,j=I["aria-describedby"]||F,B=(0,o.createElement)(M,(0,r.A)({},R,I,{className:L,"aria-label":I["aria-label"]||S,"aria-describedby":j,ref:t}),h&&"left"===g&&(0,o.createElement)(w,{icon:h,size:y}),C&&(0,o.createElement)(o.Fragment,null,C),h&&"right"===g&&(0,o.createElement)(w,{icon:h,size:y}),A);return P?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(v,{text:_||S,shortcut:T,position:k},B),_&&(0,o.createElement)(E.A,null,(0,o.createElement)("span",{id:F},_))):(0,o.createElement)(o.Fragment,null,B,_&&(0,o.createElement)(E.A,null,(0,o.createElement)("span",{id:F},_)))}))},6589:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(432|454|819|915)$/.test(n.j))var r=n(7731);var o=n(6087);const i=/^(432|454|819|915)$/.test(n.j)?function({icon:e,className:t,...n}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return(0,o.createElement)("span",(0,r.A)({className:i},n))}:null},4180:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(6087),o=n(8468),i=n(9019),s=n.n(i),a=n(7723),l=n(9491),c=n(8558),u=n(923),p=n.n(u),d=n(3931),f=n(2302),m=n(8608);function h({value:e,status:t,title:n,displayTransform:i,isBorderless:c=!1,disabled:u=!1,onClickRemove:p=o.noop,onMouseEnter:g,onMouseLeave:v,messages:y,termPosition:b,termsCount:w}){const E=(0,l.useInstanceId)(h),x=s()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":c,"is-disabled":u}),k=i(e),T=(0,a.sprintf)( /* translators: 1: term name, 2: term position in a set of terms, 3: total term set count. */ /* translators: 1: term name, 2: term position in a set of terms, 3: total term set count. */ (0,a.__)("%1$s (%2$s of %3$s)"),k,b,w);return(0,r.createElement)("span",{className:x,onMouseEnter:g,onMouseLeave:v,title:n},(0,r.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${E}`},(0,r.createElement)(m.A,{as:"span"},T),(0,r.createElement)("span",{"aria-hidden":"true"},k)),(0,r.createElement)(f.A,{className:"components-form-token-field__remove-token",icon:d.A,onClick:!u&&(()=>p({value:e})),label:y.remove,"aria-describedby":`components-form-token-field__token-text-${E}`}))}var g=n(7731);class v extends r.Component{constructor(){super(...arguments),this.onChange=this.onChange.bind(this),this.bindInput=this.bindInput.bind(this)}focus(){this.input.focus()}hasFocus(){return this.input===this.input.ownerDocument.activeElement}bindInput(e){this.input=e}onChange(e){this.props.onChange({value:e.target.value})}render(){const{value:e,isExpanded:t,instanceId:n,selectedSuggestionIndex:o,className:i,...a}=this.props,l=e?e.length+1:0;return(0,r.createElement)("input",(0,g.A)({ref:this.bindInput,id:`components-form-token-input-${n}`,type:"text"},a,{value:e||"",onChange:this.onChange,size:l,className:s()(i,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":t,"aria-autocomplete":"list","aria-owns":t?`components-form-token-suggestions-${n}`:void 0,"aria-activedescendant":-1!==o?`components-form-token-suggestions-${n}-${o}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${n}`}))}}const y=v;var b=n(4648),w=n.n(b);class E extends r.Component{constructor(){super(...arguments),this.handleMouseDown=this.handleMouseDown.bind(this),this.bindList=this.bindList.bind(this)}componentDidUpdate(){this.props.selectedIndex>-1&&this.props.scrollIntoView&&this.list.children[this.props.selectedIndex]&&(this.scrollingIntoView=!0,w()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100))}bindList(e){this.list=e}handleHover(e){return()=>{this.scrollingIntoView||this.props.onHover(e)}}handleClick(e){return()=>{this.props.onSelect(e)}}handleMouseDown(e){e.preventDefault()}computeSuggestionMatch(e){const t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;const n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}render(){return(0,r.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${this.props.instanceId}`,role:"listbox"},(0,o.map)(this.props.suggestions,((e,t)=>{const n=this.computeSuggestionMatch(e),o=s()("components-form-token-field__suggestion",{"is-selected":t===this.props.selectedIndex});return(0,r.createElement)("li",{id:`components-form-token-suggestions-${this.props.instanceId}-${t}`,role:"option",className:o,key:null!=e&&e.value?e.value:this.props.displayTransform(e),onMouseDown:this.handleMouseDown,onClick:this.handleClick(e),onMouseEnter:this.handleHover(e),"aria-selected":t===this.props.selectedIndex},n?(0,r.createElement)("span",{"aria-label":this.props.displayTransform(e)},n.suggestionBeforeMatch,(0,r.createElement)("strong",{className:"components-form-token-field__suggestion-match"},n.suggestionMatch),n.suggestionAfterMatch):this.props.displayTransform(e))})))}}E.defaultProps={match:"",onHover:()=>{},onSelect:()=>{},suggestions:Object.freeze([])};const x=(0,l.withSafeTimeout)(E);var k=n(195);const T=(0,l.createHigherOrderComponent)((e=>t=>(0,r.createElement)(e,(0,g.A)({},t,{speak:k.speak,debouncedSpeak:(0,l.useDebounce)(k.speak,500)}))),"withSpokenMessages"),S={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1};class A extends r.Component{constructor(){super(...arguments),this.state=S,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.deleteTokenBeforeInput=this.deleteTokenBeforeInput.bind(this),this.deleteTokenAfterInput=this.deleteTokenAfterInput.bind(this),this.addCurrentToken=this.addCurrentToken.bind(this),this.onContainerTouched=this.onContainerTouched.bind(this),this.renderToken=this.renderToken.bind(this),this.onTokenClickRemove=this.onTokenClickRemove.bind(this),this.onSuggestionHovered=this.onSuggestionHovered.bind(this),this.onSuggestionSelected=this.onSuggestionSelected.bind(this),this.onInputChange=this.onInputChange.bind(this),this.bindInput=this.bindInput.bind(this),this.bindTokensAndInput=this.bindTokensAndInput.bind(this),this.updateSuggestions=this.updateSuggestions.bind(this)}componentDidUpdate(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();const{suggestions:t,value:n}=this.props,r=!p()(t,e.suggestions);(r||n!==e.value)&&this.updateSuggestions(r)}static getDerivedStateFromProps(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}bindInput(e){this.input=e}bindTokensAndInput(e){this.tokensAndInput=e}onFocus(e){const{__experimentalExpandOnFocus:t}=this.props;this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0,isExpanded:!!t||this.state.isExpanded}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}onBlur(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(S)}onKeyDown(e){let t=!1;switch(e.keyCode){case c.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case c.ENTER:t=this.addCurrentToken();break;case c.LEFT:t=this.handleLeftArrowKey();break;case c.UP:t=this.handleUpArrowKey();break;case c.RIGHT:t=this.handleRightArrowKey();break;case c.DOWN:t=this.handleDownArrowKey();break;case c.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case c.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case c.ESCAPE:t=this.handleEscapeKey(e),e.stopPropagation()}t&&e.preventDefault()}onKeyPress(e){let t=!1;44===e.charCode&&(t=this.handleCommaKey()),t&&e.preventDefault()}onContainerTouched(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}onTokenClickRemove(e){this.deleteToken(e.value),this.input.focus()}onSuggestionHovered(e){const t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}onSuggestionSelected(e){this.addNewToken(e)}onInputChange(e){const t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),i=(0,o.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:i},this.updateSuggestions),this.props.onInputChange(i)}handleDeleteKey(e){let t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}handleLeftArrowKey(){let e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}handleRightArrowKey(){let e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}handleUpArrowKey(){return this.setState(((e,t)=>({selectedSuggestionIndex:(0===e.selectedSuggestionIndex?this.getMatchingSuggestions(e.incompleteTokenValue,t.suggestions,t.value,t.maxSuggestions,t.saveTransform).length:e.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}))),!0}handleDownArrowKey(){return this.setState(((e,t)=>({selectedSuggestionIndex:(e.selectedSuggestionIndex+1)%this.getMatchingSuggestions(e.incompleteTokenValue,t.suggestions,t.value,t.maxSuggestions,t.saveTransform).length,selectedSuggestionScroll:!0}))),!0}handleEscapeKey(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}handleCommaKey(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}moveInputToIndex(e){this.setState(((t,n)=>({inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1})))}moveInputBeforePreviousToken(){this.setState(((e,t)=>({inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)})))}moveInputAfterNextToken(){this.setState((e=>({inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)})))}deleteTokenBeforeInput(){const e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}deleteTokenAfterInput(){const e=this.getIndexOfInput();e!this.valueContainsToken(e))));if(t.length>0){const e=(0,o.clone)(this.props.value);e.splice.apply(e,[this.getIndexOfInput(),0].concat(t)),this.props.onChange(e)}}addNewToken(e){const{__experimentalExpandOnFocus:t,__experimentalValidateInput:n}=this.props;n(e)?(this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!t}),this.state.isActive&&this.input.focus()):this.props.speak(this.props.messages.__experimentalInvalid,"assertive")}deleteToken(e){const t=this.props.value.filter((t=>this.getTokenValue(t)!==this.getTokenValue(e)));this.props.onChange(t),this.props.speak(this.props.messages.removed,"assertive")}getTokenValue(e){return"object"==typeof e?e.value:e}getMatchingSuggestions(e=this.state.incompleteTokenValue,t=this.props.suggestions,n=this.props.value,r=this.props.maxSuggestions,i=this.props.saveTransform){let s=i(e);const a=[],l=[];return 0===s.length?t=(0,o.difference)(t,n):(s=s.toLocaleLowerCase(),(0,o.each)(t,(e=>{const t=e.toLocaleLowerCase().indexOf(s);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&l.push(e))})),t=a.concat(l)),(0,o.take)(t,r)}getSelectedSuggestion(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}valueContainsToken(e){return(0,o.some)(this.props.value,(t=>this.getTokenValue(e)===this.getTokenValue(t)))}getIndexOfInput(){return this.props.value.length-this.state.inputOffsetFromEnd}isInputEmpty(){return 0===this.state.incompleteTokenValue.length}inputHasValidValue(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}updateSuggestions(e=!0){const{__experimentalExpandOnFocus:t}=this.props,{incompleteTokenValue:n}=this.state,r=n.trim().length>1,o=this.getMatchingSuggestions(n),i=o.length>0,s={isExpanded:t||r&&i};if(e&&(s.selectedSuggestionIndex=-1,s.selectedSuggestionScroll=!1),this.setState(s),r){const{debouncedSpeak:e}=this.props;e(i?(0,a.sprintf)( /* translators: %d: number of results. */ /* translators: %d: number of results. */ (0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",o.length),o.length):(0,a.__)("No results."),"assertive")}}renderTokensAndInput(){const e=(0,o.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}renderToken(e,t,n){const o=this.getTokenValue(e),i=e.status?e.status:void 0,s=t+1,a=n.length;return(0,r.createElement)(h,{key:"token-"+o,value:o,status:i,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==i&&this.props.disabled,messages:this.props.messages,termsCount:a,termPosition:s})}renderInput(){const{autoCapitalize:e,autoComplete:t,maxLength:n,placeholder:o,value:i,instanceId:s}=this.props;let a={instanceId:s,autoCapitalize:e,autoComplete:t,placeholder:0===i.length?o:"",ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return n&&i.length>=n||(a={...a,onChange:this.onInputChange}),(0,r.createElement)(y,a)}render(){const{disabled:e,label:t=(0,a.__)("Add item"),instanceId:n,className:o,__experimentalShowHowTo:i}=this.props,{isExpanded:l}=this.state,c=s()(o,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":e});let u={className:"components-form-token-field",tabIndex:"-1"};const p=this.getMatchingSuggestions();return e||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),(0,r.createElement)("div",u,(0,r.createElement)("label",{htmlFor:`components-form-token-input-${n}`,className:"components-form-token-field__label"},t),(0,r.createElement)("div",{ref:this.bindTokensAndInput,className:c,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),l&&(0,r.createElement)(x,{instanceId:n,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:p,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),i&&(0,r.createElement)("p",{id:`components-form-token-suggestions-howto-${n}`,className:"components-form-token-field__help"},this.props.tokenizeOnSpace?(0,a.__)("Separate with commas, spaces, or the Enter key."):(0,a.__)("Separate with commas or the Enter key.")))}}A.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:o.identity,saveTransform:e=>e.trim(),onChange:()=>{},onInputChange:()=>{},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:(0,a.__)("Item added."),removed:(0,a.__)("Item removed."),remove:(0,a.__)("Remove item"),__experimentalInvalid:(0,a.__)("Invalid item")},__experimentalExpandOnFocus:!1,__experimentalValidateInput:()=>!0,__experimentalShowHowTo:!0};const C=T((0,l.withInstanceId)(A))},674:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(7731),o=n(6087),i=n(9019),s=n.n(i),a=n(8107),l=n(4040),c=n.n(l),u=n(9491),p=n(5573);const d=(0,o.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(p.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var f=n(7723);function m(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const i=o.getBoundingClientRect();return new r.DOMRect(e.left+i.left,e.top+i.top,e.width,e.height)}var h=n(2302);let g=0;function v(e){const t=document.scrollingElement||document.body;e&&(g=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=g)}let y=0;function b(){return(0,o.useEffect)((()=>(0===y&&v(!0),++y,()=>{1===y&&v(!1),--y})),[]),null}var w=n(389),E=n(4169),x=n(8468),k=n(5553);class T extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:r}=this.props,i=(0,x.map)(r(t,this),(e=>{const t=(0,x.isFunction)(e.children)?e.children(n):e.children;return o.Children.map(t,((e,t)=>{if(!e||(0,x.isString)(e))return e;const n=e.key||t;return(0,o.cloneElement)(e,{key:n})}))})).filter((0,x.negate)(o.isEmptyElement));return(0,o.createElement)(o.Fragment,null,(0,x.isFunction)(e)?e(i):i)}}const S=e=>(0,o.createElement)(k.A.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:i})=>(0,o.createElement)(T,(0,r.A)({},e,{registerSlot:t,unregisterSlot:n,getFills:i}))));var A=n(1766),C=n(7975);const O=(0,o.forwardRef)((function({name:e,fillProps:t={},as:n="div",...i},s){const a=(0,o.useContext)(C.A),l=(0,o.useRef)();return(0,o.useLayoutEffect)((()=>(a.registerSlot(e,l,t),()=>{a.unregisterSlot(e,l)})),[a.registerSlot,a.unregisterSlot,e]),(0,o.useLayoutEffect)((()=>{a.updateSlot(e,t)})),(0,o.createElement)(n,(0,r.A)({ref:(0,u.useMergeRefs)([s,l])},i))}));function N(e){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(E.A,e),(0,o.createElement)(A.A,e))}const _=(0,o.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,o.createElement)(O,(0,r.A)({},t,{ref:n})):(0,o.createElement)(S,t)));function I(e){return"appear"===e?"top":"left"}const L="Popover";function D(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:i}=(s=t).ownerDocument.defaultView.getComputedStyle(s);var s;const a=n?parseInt(n,10):0,l=r?parseInt(r,10):0,c=o?parseInt(o,10):0,u=i?parseInt(i,10):0;return{x:e.left+c,y:e.top+a,width:e.width-c-u,height:e.height-a-l,left:e.left+c,right:e.right-u,top:e.top+a,bottom:e.bottom-l}}function M(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function R(e,t,n=""){e.style[t]!==n&&(e.style[t]=n)}function P(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const F=(0,o.forwardRef)((({headerTitle:e,onClose:t,children:n,className:i,noArrow:l=!0,isAlternate:p,position:g="bottom right",range:v,focusOnMount:y="firstElement",anchorRef:E,shouldAnchorIncludePadding:x,anchorRect:k,getAnchorRect:T,expandOnMobile:S,animate:A=!0,onClickOutside:C,onFocusOutside:O,__unstableStickyBoundaryElement:_,__unstableSlotName:F=L,__unstableObserveElement:j,__unstableBoundaryParent:B,__unstableForcePosition:H,__unstableForceXAlignment:z,...V},W)=>{const U=(0,o.useRef)(null),$=(0,o.useRef)(null),q=(0,o.useRef)(),G=(0,u.useViewportMatch)("medium","<"),[K,Y]=(0,o.useState)(),X=(0,w.A)(F),Z=S&&G,[J,Q]=(0,u.useResizeObserver)();l=Z||l,(0,o.useLayoutEffect)((()=>{if(Z)return P(q.current,"is-without-arrow",l),P(q.current,"is-alternate",p),M(q.current,"data-x-axis"),M(q.current,"data-y-axis"),R(q.current,"top"),R(q.current,"left"),R($.current,"maxHeight"),void R($.current,"maxWidth");const e=()=>{if(!q.current||!$.current)return;let e=function(e,t,n,r=!1,o,i){if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return m(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return m((0,a.getRectangleFromRange)(r),r.endContainer.ownerDocument,i);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=m(r.getBoundingClientRect(),r.ownerDocument,i);return o?e:D(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),l=m(new window.DOMRect(n.left,n.top,n.width,s.bottom-n.top),e.ownerDocument,i);return o?l:D(l,r)}if(!e.current)return;const{parentNode:s}=e.current,l=s.getBoundingClientRect();return o?l:D(l,s)}(U,k,T,E,x,q.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=q.current;let r,o=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();o=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}var i;B&&(r=null===(i=q.current.closest(".popover-slot"))||void 0===i?void 0:i.parentNode);const s=Q.height?Q:$.current.getBoundingClientRect(),{popoverTop:c,popoverLeft:u,xAxis:d,yAxis:h,contentHeight:v,contentWidth:y}=function(e,t,n="top",r,o,i,s,a,l){const[c,u="center",p]=n.split(" "),d=function(e,t,n,r,o,i,s,a){const{height:l}=t;if(o){const t=o.getBoundingClientRect().top+l-s;if(e.top<=t)return{yAxis:n,popoverTop:Math.min(e.bottom,t)}}let c=e.top+e.height/2;"bottom"===r?c=e.bottom:"top"===r&&(c=e.top);const u={popoverTop:c,contentHeight:(c-l/2>0?l/2:c)+(c+l/2>window.innerHeight?window.innerHeight-c:l/2)},p={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},d={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let f,m=n,h=null;if(!o&&!a)if("middle"===n&&u.contentHeight===l)m="middle";else if("top"===n&&p.contentHeight===l)m="top";else if("bottom"===n&&d.contentHeight===l)m="bottom";else{m=p.contentHeight>d.contentHeight?"top":"bottom";const e="top"===m?p.contentHeight:d.contentHeight;h=e!==l?e:null}return f="middle"===m?u.popoverTop:"top"===m?p.popoverTop:d.popoverTop,{yAxis:m,popoverTop:f,contentHeight:h}}(e,t,c,p,r,0,i,a),m=function(e,t,n,r,o,i,s,a,l){const{width:c}=t;"left"===n&&(0,f.isRTL)()?n="right":"right"===n&&(0,f.isRTL)()&&(n="left"),"left"===r&&(0,f.isRTL)()?r="right":"right"===r&&(0,f.isRTL)()&&(r="left");const u=Math.round(e.left+e.width/2),p={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)};let d=e.left;"right"===r?d=e.right:"middle"===i||l||(d=u);let m=e.right;"left"===r?m=e.left:"middle"===i||l||(m=u);const h={popoverLeft:d,contentWidth:d-c>0?c:d},g={popoverLeft:m,contentWidth:m+c>window.innerWidth?window.innerWidth-m:c};let v,y=n,b=null;if(!o&&!a)if("center"===n&&p.contentWidth===c)y="center";else if("left"===n&&h.contentWidth===c)y="left";else if("right"===n&&g.contentWidth===c)y="right";else{y=h.contentWidth>g.contentWidth?"left":"right";const e="left"===y?h.contentWidth:g.contentWidth;c>window.innerWidth&&(b=window.innerWidth),e!==c&&(y="center",p.popoverLeft=window.innerWidth/2)}if(v="center"===y?p.popoverLeft:"left"===y?h.popoverLeft:g.popoverLeft,s){const e=s.getBoundingClientRect();v=Math.min(v,e.right-c),(0,f.isRTL)()||(v=Math.max(v,0))}return{xAxis:y,popoverLeft:v,contentWidth:b}}(e,t,u,p,r,d.yAxis,s,a,l);return{...m,...d}}(e,s,g,_,q.current,o,r,H,z);"number"==typeof c&&"number"==typeof u&&(R(q.current,"top",c+"px"),R(q.current,"left",u+"px")),P(q.current,"is-without-arrow",l||"center"===d&&"middle"===h),P(q.current,"is-alternate",p),M(q.current,"data-x-axis",d),M(q.current,"data-y-axis",h),R($.current,"maxHeight","number"==typeof v?v+"px":""),R($.current,"maxWidth","number"==typeof y?y+"px":""),Y(({left:"right",right:"left"}[d]||"center")+" "+({top:"bottom",bottom:"top"}[h]||"middle"))};e();const{ownerDocument:t}=q.current,{defaultView:n}=t,r=n.setInterval(e,500);let o;const i=()=>{n.cancelAnimationFrame(o),o=n.requestAnimationFrame(e)};n.addEventListener("click",i),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(E);let c;return s&&s!==t&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),j&&(c=new n.MutationObserver(e),c.observe(j,{attributes:!0})),()=>{n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",i),n.cancelAnimationFrame(o),s&&s!==t&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),c&&c.disconnect()}}),[Z,k,T,E,x,g,Q,_,j,B]);const ee=(e,n)=>{if("focus-outside"===e&&O)O(n);else if("focus-outside"===e&&C){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>n.relatedTarget}),c()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),C(e)}else t&&t()},[te,ne]=(0,u.__experimentalUseDialog)({focusOnMount:y,__unstableOnClose:ee,onClose:ee}),re=(0,u.useMergeRefs)([q,te,W]),oe=Boolean(A&&K)&&function(e){if("loading"===e.type)return s()("components-animate__loading");const{type:t,origin:n=I(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return s()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?s()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:K});let ie=(0,o.createElement)("div",(0,r.A)({className:s()("components-popover",i,oe,{"is-expanded":Z,"is-without-arrow":l,"is-alternate":p})},V,{ref:re},ne,{tabIndex:"-1"}),Z&&(0,o.createElement)(b,null),Z&&(0,o.createElement)("div",{className:"components-popover__header"},(0,o.createElement)("span",{className:"components-popover__header-title"},e),(0,o.createElement)(h.A,{className:"components-popover__close",icon:d,onClick:t})),(0,o.createElement)("div",{ref:$,className:"components-popover__content"},(0,o.createElement)("div",{style:{position:"relative"}},J,n)));return X.ref&&(ie=(0,o.createElement)(N,{name:F},ie)),E||k?ie:(0,o.createElement)("span",{ref:U},ie)}));F.Slot=(0,o.forwardRef)((function({name:e=L},t){return(0,o.createElement)(_,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));const j=F},9910:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6087),o=n(8468);const i=/^(432|454|819|915)$/.test(n.j)?function({shortcut:e,className:t}){if(!e)return null;let n,i;return(0,o.isString)(e)&&(n=e),(0,o.isObject)(e)&&(n=e.display,i=e.ariaLabel),(0,r.createElement)("span",{className:t,"aria-label":i},n)}:null},1766:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6087);if(/^(432|454|819|915)$/.test(n.j))var o=n(389);function i(){const[,e]=(0,r.useState)({}),t=(0,r.useRef)(!0);return(0,r.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function s({name:e,children:t}){const n=(0,o.A)(e),s=(0,r.useRef)({rerender:i()});return(0,r.useEffect)((()=>(n.registerFill(s),()=>{n.unregisterFill(s)})),[n.registerFill,n.unregisterFill]),n.ref&&n.ref.current?("function"==typeof t&&(t=t(n.fillProps)),(0,r.createPortal)(t,n.ref.current)):null}},7975:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6087);n(979);const o=(0,r.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}}),i=/^(432|454|819|915)$/.test(n.j)?o:null},389:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6087);if(/^(432|454|819|915)$/.test(n.j))var o=n(7975);function i(e){const t=(0,r.useContext)(o.A),n=t.slots[e]||{},i=t.fills[e],s=(0,r.useMemo)((()=>i||[]),[i]);return{...n,updateSlot:(0,r.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,r.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:s,registerFill:(0,r.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,r.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}},5553:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=(0,n(6087).createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}}),o=/^(432|454|819|915)$/.test(n.j)?r:null},4169:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>c}),/^(432|454|819|915)$/.test(n.j))var r=n(7731);var o=n(6087),i=n(8468);if(/^(432|454|819|915)$/.test(n.j))var s=n(5553);if(/^(432|454|819|915)$/.test(n.j))var a=n(1510);function l({name:e,children:t,registerFill:n,unregisterFill:r}){const s=(0,a.A)(e),l=(0,o.useRef)({name:e,children:t});return(0,o.useLayoutEffect)((()=>(n(e,l.current),()=>r(e,l.current))),[]),(0,o.useLayoutEffect)((()=>{l.current.children=t,s&&s.forceUpdate()}),[t]),(0,o.useLayoutEffect)((()=>{e!==l.current.name&&(r(l.current.name,l.current),l.current.name=e,n(e,l.current))}),[e]),s&&s.node?((0,i.isFunction)(t)&&(t=t(s.props.fillProps)),(0,o.createPortal)(t,s.node)):null}const c=/^(432|454|819|915)$/.test(n.j)?e=>(0,o.createElement)(s.A.Consumer,null,(({registerFill:t,unregisterFill:n})=>(0,o.createElement)(l,(0,r.A)({},e,{registerFill:t,unregisterFill:n})))):null},1510:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6087);if(/^(432|454|819|915)$/.test(n.j))var o=n(5553);const i=/^(432|454|819|915)$/.test(n.j)?e=>{const{getSlot:t,subscribe:n}=(0,r.useContext)(o.A),[i,s]=(0,r.useState)(t(e));return(0,r.useEffect)((()=>(s(t(e)),n((()=>{s(t(e))})))),[e]),i}:null},8608:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(9019),o=n.n(r),i=n(6087);const s=(0,i.forwardRef)((function({as:e="div",className:t,...n},r){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):(0,i.createElement)(e,t)}({as:e,className:o()("components-visually-hidden",t),...n,ref:r})}))},3931:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6087),o=n(5573);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),s=/^(432|454|819|915)$/.test(n.j)?i:null},7104:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6087);const o=(0,r.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o})}))},224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),o=n(5573);const i=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),s=/^(432|454|819|915)$/.test(n.j)?i:null},8098:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),o=n(5573);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),s=/^(507|819)$/.test(n.j)?i:null},7850:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),o=n(5573);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),s=1==n.j?i:null},3588:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),o=n(5573);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,r.createElement)(o.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})),s=1==n.j?i:null},9019:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var r=n(5618);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,s=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,p=n.offsetRight||0;o=void 0===o||o;var d=r.isWindow(t),f=r.offset(e),m=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,y=void 0,b=void 0,w=void 0,E=void 0,x=void 0,k=void 0,T=void 0,S=void 0;d?(x=t,S=r.height(x),T=r.width(x),k={left:r.scrollLeft(x),top:r.scrollTop(x)},w={left:f.left-k.left-c,top:f.top-k.top-l},E={left:f.left+h-(k.left+T)+p,top:f.top+m-(k.top+S)+u},b=k):(g=r.offset(t),v=t.clientHeight,y=t.clientWidth,b={left:t.scrollLeft,top:t.scrollTop},w={left:f.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:f.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},E={left:f.left+h-(g.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+p,top:f.top+m-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),w.top<0||E.top>0?!0===s?r.scrollTop(t,b.top+w.top):!1===s?r.scrollTop(t,b.top+E.top):w.top<0?r.scrollTop(t,b.top+w.top):r.scrollTop(t,b.top+E.top):i||((s=void 0===s||!!s)?r.scrollTop(t,b.top+w.top):r.scrollTop(t,b.top+E.top)),o&&(w.left<0||E.left>0?!0===a?r.scrollLeft(t,b.left+w.left):!1===a?r.scrollLeft(t,b.left+E.left):w.left<0?r.scrollLeft(t,b.left+w.left):r.scrollLeft(t,b.left+E.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,b.left+w.left):r.scrollLeft(t,b.left+E.left)))}},4648:(e,t,n)=>{"use strict";e.exports=n(2881)},5618:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},4772:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(7333),s=n(3010);o(n(3010),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},3010:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,s.isTag)(e)}function v(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function E(e){return e.type===s.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?k(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?k(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),n=s}else if(E(e)){r=t?k(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new p(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o/gm),$=p(/\${[\w\W]*}/gm),q=p(/^data-[\-\w.\u00B7-\uFFFF]/),G=p(/^aria-[\-\w]+$/),K=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),X=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=p(/^html$/i),J=p(/^[a-z][.\w]*(-[.\w]+)+$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),o=function(e){return t(e)};if(o.version="2.5.7",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,s=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,p=n.Element,d=n.NodeFilter,f=n.NamedNodeMap,m=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,h=n.HTMLFormElement,g=n.DOMParser,O=n.trustedTypes,ee=p.prototype,te=I(ee,"cloneNode"),ne=I(ee,"nextSibling"),re=I(ee,"childNodes"),oe=I(ee,"parentNode");if("function"==typeof l){var ie=s.createElement("template");ie.content&&ie.content.ownerDocument&&(s=ie.content.ownerDocument)}var se=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(O,i),ae=se?se.createHTML(""):"",le=s,ce=le.implementation,ue=le.createNodeIterator,pe=le.createDocumentFragment,de=le.getElementsByTagName,fe=i.importNode,me={};try{me=_(s).documentMode?s.documentMode:{}}catch(e){}var he={};o.isSupported="function"==typeof oe&&ce&&void 0!==ce.createHTMLDocument&&9!==me;var ge,ve,ye=W,be=U,we=$,Ee=q,xe=G,ke=Y,Te=X,Se=J,Ae=K,Ce=null,Oe=N({},[].concat(r(L),r(D),r(M),r(P),r(j))),Ne=null,_e=N({},[].concat(r(B),r(H),r(z),r(V))),Ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,De=null,Me=!0,Re=!0,Pe=!1,Fe=!0,je=!1,Be=!0,He=!1,ze=!1,Ve=!1,We=!1,Ue=!1,$e=!1,qe=!0,Ge=!1,Ke=!0,Ye=!1,Xe={},Ze=null,Je=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,et=N({},["audio","video","img","source","image","track"]),tt=null,nt=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",st=it,at=!1,lt=null,ct=N({},[rt,ot,it],E),ut=["application/xhtml+xml","text/html"],pt=null,dt=s.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},mt=function(t){pt&&pt===t||(t&&"object"===e(t)||(t={}),t=_(t),ge=ge=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?E:w,Ce="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,ve):Oe,Ne="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,ve):_e,lt="ALLOWED_NAMESPACES"in t?N({},t.ALLOWED_NAMESPACES,E):ct,tt="ADD_URI_SAFE_ATTR"in t?N(_(nt),t.ADD_URI_SAFE_ATTR,ve):nt,Qe="ADD_DATA_URI_TAGS"in t?N(_(et),t.ADD_DATA_URI_TAGS,ve):et,Ze="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,ve):Je,Le="FORBID_TAGS"in t?N({},t.FORBID_TAGS,ve):{},De="FORBID_ATTR"in t?N({},t.FORBID_ATTR,ve):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Pe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,je=t.SAFE_FOR_TEMPLATES||!1,Be=!1!==t.SAFE_FOR_XML,He=t.WHOLE_DOCUMENT||!1,We=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,Ve=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,Ae=t.ALLOWED_URI_REGEXP||Ae,st=t.NAMESPACE||it,Ie=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(Re=!1),Ue&&(We=!0),Xe&&(Ce=N({},r(j)),Ne=[],!0===Xe.html&&(N(Ce,L),N(Ne,B)),!0===Xe.svg&&(N(Ce,D),N(Ne,H),N(Ne,V)),!0===Xe.svgFilters&&(N(Ce,M),N(Ne,H),N(Ne,V)),!0===Xe.mathMl&&(N(Ce,P),N(Ne,z),N(Ne,V))),t.ADD_TAGS&&(Ce===Oe&&(Ce=_(Ce)),N(Ce,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Ne===_e&&(Ne=_(Ne)),N(Ne,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&N(tt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ze===Je&&(Ze=_(Ze)),N(Ze,t.FORBID_CONTENTS,ve)),Ke&&(Ce["#text"]=!0),He&&N(Ce,["html","head","body"]),Ce.table&&(N(Ce,["tbody"]),delete Le.tbody),u&&u(t),pt=t)},ht=N({},["mi","mo","mn","ms","mtext"]),gt=N({},["annotation-xml"]),vt=N({},["title","style","font","a","script"]),yt=N({},D);N(yt,M),N(yt,R);var bt=N({},P);N(bt,F);var wt=function(e){b(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},Et=function(e,t){try{b(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(We||Ue)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,n;if(Ve)e=""+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&st===it&&(e=''+e+"");var o=se?se.createHTML(e):e;if(st===it)try{t=(new g).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(st,"template",null);try{t.documentElement.innerHTML=at?ae:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(s.createTextNode(n),i.childNodes[0]||null),st===it?de.call(t,He?"html":"body")[0]:He?t.documentElement:i},kt=function(e){return ue.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null,!1)},Tt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof m)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},At=function(e,t,n){he[e]&&v(he[e],(function(e){e.call(o,t,n,pt)}))},Ct=function(e){var t;if(At("beforeSanitizeElements",e,null),Tt(e))return wt(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var n=ve(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===n&&A(/