geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/checkout-blocks/order-summary-frontend.js
2024-02-01 11:54:18 +00:00

12 lines
No EOL
59 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5915],{8184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(9196),r=n(444);const a=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},5202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(9196),r=n(444);const a=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.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"}))},5430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(9196),r=n(444);const a=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},5045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(9196),r=n(444);const a=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}))},4877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(9196),r=n(9685),a=n(4184),s=n.n(a),i=(n(5482),n(4705));const l=({className:e,showSpinner:t=!1,children:n,variant:a="contained",...l})=>{const c=s()("wc-block-components-button","wp-element-button",e,a,{"wc-block-components-button--loading":t});return(0,o.createElement)(r.Z,{className:c,...l},t&&(0,o.createElement)(i.Z,null),(0,o.createElement)("span",{className:"wc-block-components-button__text"},n))}},8082:(e,t,n)=>{"use strict";n.d(t,{k:()=>Q});var o=n(9196),r=n(3554),a=n(711),s=n(9307),i=n(5736),l=n(2629),c=n(4184),u=n.n(c),p=n(4333),d=n(2819),m=n(9630),f=n(5158),g=n(444);const h=(0,s.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(g.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"}));var b=n(7462);class v extends s.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:r,...a}=this.props,i=e?e.length+1:0;return(0,s.createElement)("input",(0,b.Z)({ref:this.bindInput,id:`components-form-token-input-${n}`,type:"text"},a,{value:e||"",onChange:this.onChange,size:i,className:u()(r,"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 w=n(4979),E=n.n(w);class _ extends s.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,E()(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,s.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${this.props.instanceId}`,role:"listbox"},(0,d.map)(this.props.suggestions,((e,t)=>{const n=this.computeSuggestionMatch(e),o=u()("components-form-token-field__suggestion",{"is-selected":t===this.props.selectedIndex});return(0,s.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,s.createElement)("span",{"aria-label":this.props.displayTransform(e)},n.suggestionBeforeMatch,(0,s.createElement)("strong",{className:"components-form-token-field__suggestion-match"},n.suggestionMatch),n.suggestionAfterMatch):this.props.displayTransform(e))})))}}_.defaultProps={match:"",onHover:()=>{},onSelect:()=>{},suggestions:Object.freeze([])};const k=(0,p.withSafeTimeout)(_);var C=n(4662),N=n(9685),T=n(2875),S=n(1092),x=n(9179),A=n(2506);const L=(0,S.L)({as:"div",useHook:function(e){const t=(0,x.y)(e,"FlexBlock");return(0,A.i)({isBlock:!0,...t})},name:"FlexBlock"});var O=n(1685);const R=(0,p.createHigherOrderComponent)((e=>t=>{const[n,o]=(0,s.useState)(),r=(0,s.useCallback)((e=>o((()=>null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,s.createElement)("div",(0,p.__experimentalUseFocusOutside)(n),(0,s.createElement)(e,(0,b.Z)({ref:r},t)))}),"withFocusOutside")(class extends s.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),I=function e({value:t,label:n,options:o,onChange:r,onFilterValueChange:a=d.noop,hideLabelFromVision:l,help:c,allowReset:g=!0,className:b,messages:v={selected:(0,i.__)("Item selected.")}}){var w;const E=(0,p.useInstanceId)(e),[_,S]=(0,s.useState)(null),[x,A]=(0,s.useState)(!1),[I,D]=(0,s.useState)(!1),[M,F]=(0,s.useState)(""),U=(0,s.useRef)(),P=o.find((e=>e.value===t)),H=null!==(w=null==P?void 0:P.label)&&void 0!==w?w:"",z=(0,s.useMemo)((()=>{const e=[],t=[],n=(0,d.deburr)(M.toLocaleLowerCase());return o.forEach((o=>{const r=(0,d.deburr)(o.label).toLocaleLowerCase().indexOf(n);0===r?e.push(o):r>0&&t.push(o)})),e.concat(t)}),[M,o,t]),V=e=>{r(e.value),(0,f.speak)(v.selected,"assertive"),S(e),F(""),A(!1)},B=(e=1)=>{let t=z.indexOf(_)+e;t<0?t=z.length-1:t>=z.length&&(t=0),S(z[t]),A(!0)};return(0,s.useEffect)((()=>{const e=z.length>0;if(x){const t=e?(0,i.sprintf)(
/* translators: %d: number of results. */
(0,i._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",z.length),z.length):(0,i.__)("No results.");(0,f.speak)(t,"polite")}}),[z,x]),(0,s.createElement)(R,{onFocusOutside:()=>{A(!1)}},(0,s.createElement)(C.Z,{className:u()(b,"components-combobox-control"),tabIndex:"-1",label:n,id:`components-form-token-input-${E}`,hideLabelFromVision:l,help:c},(0,s.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:e=>{let t=!1;switch(e.keyCode){case m.ENTER:_&&(V(_),t=!0);break;case m.UP:B(-1),t=!0;break;case m.DOWN:B(1),t=!0;break;case m.ESCAPE:A(!1),S(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},(0,s.createElement)(T.Z,null,(0,s.createElement)(L,null,(0,s.createElement)(y,{className:"components-combobox-control__input",instanceId:E,ref:U,value:x?M:H,"aria-label":H?`${H}, ${n}`:null,onFocus:()=>{D(!0),A(!0),a(""),F("")},onBlur:()=>{D(!1)},isExpanded:x,selectedSuggestionIndex:z.indexOf(_),onChange:e=>{const t=e.value;F(t),a(t),I&&A(!0)}})),g&&(0,s.createElement)(O.Z,null,(0,s.createElement)(N.Z,{className:"components-combobox-control__reset",icon:h,disabled:!t,onClick:()=>{r(null),U.current.input.focus()},label:(0,i.__)("Reset")}))),x&&(0,s.createElement)(k,{instanceId:E,match:{label:M},displayTransform:e=>e.label,suggestions:z,selectedIndex:z.indexOf(_),onHover:S,onSelect:V,scrollIntoView:!0}))))};var D=n(7884),M=n(9818),F=n(4801);n(5821);const U=(0,p.withInstanceId)((({id:e,className:t,label:n,onChange:r,options:l,value:c,required:p=!1,errorMessage:d=(0,i.__)("Please select a value.","woocommerce"),errorId:m,instanceId:f="0",autoComplete:g="off"})=>{const h=(0,s.useRef)(null),b=e||"control-"+f,v=m||b,{setValidationErrors:y,clearValidationError:w}=(0,M.useDispatch)(F.VALIDATION_STORE_KEY),E=(0,M.useSelect)((e=>e(F.VALIDATION_STORE_KEY).getValidationError(v)));return(0,s.useEffect)((()=>(!p||c?w(v):y({[v]:{message:d,hidden:!0}}),()=>{w(v)})),[w,c,v,d,p,y]),(0,o.createElement)("div",{id:b,className:u()("wc-block-components-combobox",t,{"is-active":c,"has-error":(null==E?void 0:E.message)&&!(null!=E&&E.hidden)}),ref:h},(0,o.createElement)(I,{className:"wc-block-components-combobox-control",label:n,onChange:r,onFilterValueChange:e=>{if(e.length){const t=(0,D.Kn)(h.current)?h.current.ownerDocument.activeElement:void 0;if(t&&(0,D.Kn)(h.current)&&h.current.contains(t))return;const n=e.toLocaleUpperCase(),o=l.find((e=>e.value.toLocaleUpperCase()===n));if(o)return void r(o.value);const a=l.find((e=>e.label.toLocaleUpperCase().startsWith(n)));a&&r(a.value)}},options:l,value:c||"",allowReset:!1,autoComplete:g,"aria-invalid":(null==E?void 0:E.message)&&!(null!=E&&E.hidden)}),(0,o.createElement)(a.ValidationInputError,{propertyName:v}))}));n(7775);const P=({className:e,countries:t,id:n,label:r,onChange:a,value:c="",autoComplete:p="off",required:d=!1,errorId:m,errorMessage:f=(0,i.__)("Please select a country","woocommerce")})=>{const g=(0,s.useMemo)((()=>Object.entries(t).map((([e,t])=>({value:e,label:(0,l.decodeEntities)(t)})))),[t]);return(0,o.createElement)("div",{className:u()(e,"wc-block-components-country-input")},(0,o.createElement)(U,{id:n,label:r,onChange:a,options:g,value:c,errorId:m,errorMessage:f,required:d,autoComplete:p}))};var H=n(5271);const z=e=>(0,o.createElement)(P,{countries:H.DK,...e}),V=e=>(0,o.createElement)(P,{countries:H.mO,...e});n(8410);const B=(e,t)=>{const n=t.find((t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase()));return n?n.value:""},W=({className:e,id:t,states:n,country:r,label:c,onChange:p,autoComplete:d="off",value:m="",required:f=!1,errorId:g=""})=>{const h=n[r],b=(0,s.useMemo)((()=>h?Object.keys(h).map((e=>({value:e,label:(0,l.decodeEntities)(h[e])}))):[]),[h]),v=(0,s.useCallback)((e=>{const t=b.length>0?B(e,b):e;t!==m&&p(t)}),[p,b,m]),y=(0,s.useRef)(m);return(0,s.useEffect)((()=>{y.current!==m&&(y.current=m)}),[m]),(0,s.useEffect)((()=>{if(b.length>0&&y.current){const e=B(y.current,b);e!==y.current&&v(e)}}),[b,v]),b.length>0?(0,o.createElement)(U,{className:u()(e,"wc-block-components-state-input"),id:t,label:c,onChange:v,options:b,value:m,errorMessage:(0,i.__)("Please select a state.","woocommerce"),errorId:g,required:f,autoComplete:d}):(0,o.createElement)(a.ValidatedTextInput,{className:e,id:t,label:c,onChange:v,autoComplete:d,value:m,required:f})},j=e=>(0,o.createElement)(W,{states:H.JJ,...e}),Z=e=>(0,o.createElement)(W,{states:H.nm,...e});var $=n(9075),K=n(4617),G=n(9127),q=n.n(G),Y=n(3340);const J=Object.keys(K.defaultAddressFields),X=({id:e="",fields:t=J,fieldConfig:n={},onChange:l,type:c="shipping",values:u})=>{const d=(0,p.useInstanceId)(X),m=(0,$.s)(t),f=(0,$.s)(n),g=(0,$.s)(u.country),h=(0,s.useMemo)((()=>{const e=(0,Y.Z)(m,f,g);return{fields:e,type:c,required:e.filter((e=>e.required)),hidden:e.filter((e=>e.hidden))}}),[m,f,g,c]),b=(0,s.useRef)({});return(0,s.useEffect)((()=>{const e={...u,...Object.fromEntries(h.hidden.map((e=>[e.key,""])))};q()(u,e)||l(e)}),[l,h,u]),(0,s.useEffect)((()=>{"shipping"===c&&(e=>{const t="shipping_country",n=(0,M.select)(F.VALIDATION_STORE_KEY).getValidationError(t);!e.country&&(e.city||e.state||e.postcode)&&(n?(0,M.dispatch)(F.VALIDATION_STORE_KEY).showValidationError(t):(0,M.dispatch)(F.VALIDATION_STORE_KEY).setValidationErrors({[t]:{message:(0,i.__)("Please select your country","woocommerce"),hidden:!1}})),n&&e.country&&(0,M.dispatch)(F.VALIDATION_STORE_KEY).clearValidationError(t)})(u)}),[u,c]),(0,s.useEffect)((()=>{var e,t;null===(e=b.current)||void 0===e||null===(t=e.postcode)||void 0===t||t.revalidate()}),[g]),e=e||`${d}`,(0,o.createElement)("div",{id:e,className:"wc-block-components-address-form"},h.fields.map((t=>{if(t.hidden)return null;const n={id:`${e}-${t.key}`,errorId:`${c}_${t.key}`,label:t.required?t.label:t.optionalLabel,autoCapitalize:t.autocapitalize,autoComplete:t.autocomplete,errorMessage:t.errorMessage,required:t.required,className:`wc-block-components-address-form__${t.key}`};if("country"===t.key){const e="shipping"===c?V:z;return(0,o.createElement)(e,{key:t.key,...n,value:u.country,onChange:e=>{const t={...u,country:e,state:""};u.postcode&&!(0,r.isPostcode)({postcode:u.postcode,country:e})&&(t.postcode=""),l(t)}})}if("state"===t.key){const e="shipping"===c?Z:j;return(0,o.createElement)(e,{key:t.key,...n,country:u.country,value:u.state,onChange:e=>l({...u,state:e})})}return(0,o.createElement)(a.ValidatedTextInput,{key:t.key,ref:e=>b.current[t.key]=e,...n,type:t.type,value:u[t.key],onChange:e=>l({...u,[t.key]:e}),customFormatter:e=>"postcode"===t.key?e.trimStart().toUpperCase():e,customValidation:e=>((e,t,n)=>!((e.required||e.value)&&"postcode"===t&&n.country&&!(0,r.isPostcode)({postcode:e.value,country:n.country})&&(e.setCustomValidity((0,i.__)("Please enter a valid postcode","woocommerce")),1)))(e,t.key,u)})})))},Q=X},4427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o=n(9196),r=n(4184),a=n.n(r),s=n(5736),i=n(2629),l=n(711),c=n(9307),u=n(5027),p=n(7856),d=n.n(p);const m=["a","b","em","i","strong","p","br"],f=["target","href","rel","name","download"],g=(e,t)=>{const n=(null==t?void 0:t.tags)||m,o=(null==t?void 0:t.attr)||f;return d().sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:o})};var h=n(9097),b=n(4293),v=n(4617);const y=e=>{const t=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:(0,i.decodeEntities)(e.name),value:e.rate_id,description:(0,o.createElement)(o.Fragment,null,Number.isFinite(t)&&(0,o.createElement)(l.FormattedMonetaryAmount,{currency:(0,b.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,(0,i.decodeEntities)(e.delivery_time))}},w=({className:e="",noResultsMessage:t,onSelectRate:n,rates:r,renderOption:a=y,selectedRate:s,disabled:i=!1})=>{const u=(null==s?void 0:s.rate_id)||"",p=(0,h.D)(u),[d,m]=(0,c.useState)((()=>{var e;return u||(null===(e=r[0])||void 0===e?void 0:e.rate_id)}));if((0,c.useEffect)((()=>{u&&u!==p&&u!==d&&m(u)}),[u,d,p]),(0,c.useEffect)((()=>{d&&n(d)}),[n,d]),0===r.length)return t;if(r.length>1)return(0,o.createElement)(l.RadioControl,{className:e,onChange:e=>{m(e),n(e)},disabled:i,selected:d,options:r.map(a)});const{label:f,secondaryLabel:g,description:b,secondaryDescription:v}=a(r[0]);return(0,o.createElement)(l.RadioControlOptionLayout,{label:f,secondaryLabel:g,description:b,secondaryDescription:v})};n(6125);const E=({packageId:e,className:t="",noResultsMessage:n,renderOption:r,packageData:p,collapsible:d,showItems:m})=>{const{selectShippingRate:f,isSelectingRate:h}=(0,u.V)(),b=document.querySelectorAll(".wc-block-components-shipping-rates-control__package").length>1,v=null!=m?m:b,y=null!=d?d:b,E=(0,o.createElement)(o.Fragment,null,(y||v)&&(0,o.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:g(p.name)}}),v&&(0,o.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(p.items).map((e=>{const t=(0,i.decodeEntities)(e.name),n=e.quantity;return(0,o.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},(0,o.createElement)(l.Label,{label:n>1?`${t} × ${n}`:`${t}`,screenReaderLabel:(0,s.sprintf)(/* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
(0,s._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woocommerce"),t,n)}))})))),_=(0,c.useCallback)((t=>{f(t,e)}),[e,f]),k={className:t,noResultsMessage:n,rates:p.shipping_rates,onSelectRate:_,selectedRate:p.shipping_rates.find((e=>e.selected)),renderOption:r,disabled:h};return y?(0,o.createElement)(l.Panel,{className:a()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":h}),initialOpen:!1,title:E},(0,o.createElement)(w,{...k})):(0,o.createElement)("div",{className:a()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":h})},E,(0,o.createElement)(w,{...k}))}},4017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(9196),r=n(5736),a=n(9307),s=n(1193),i=n(3554),l=n(602),c=n(4055),u=n(8832),p=n(5027),d=n(6131),m=n(7884),f=n(4427),g=n(5158);const h=({packages:e,showItems:t,collapsible:n,noResultsMessage:r,renderOption:a})=>e.length?(0,o.createElement)(o.Fragment,null,e.map((({package_id:e,...s})=>(0,o.createElement)(f.Z,{key:e,packageId:e,packageData:s,collapsible:n,showItems:t,noResultsMessage:r,renderOption:a})))):null,b=({shippingRates:e,isLoadingRates:t,className:n,collapsible:b,showItems:v,noResultsMessage:y,renderOption:w,context:E})=>{(0,a.useEffect)((()=>{var n,o;t||(n=(0,l.wH)(e),o=(0,l.Q_)(e),1===n?(0,g.speak)((0,r.sprintf)(/* translators: %d number of shipping options found. */
(0,r._n)("%d shipping option was found.","%d shipping options were found.",o,"woocommerce"),o)):(0,g.speak)((0,r.sprintf)(/* translators: %d number of shipping packages packages. */
(0,r._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",n,"woocommerce"),n)+" "+(0,r.sprintf)(/* translators: %d number of shipping options available. */
(0,r._n)("%d shipping option was found","%d shipping options were found",o,"woocommerce"),o)))}),[t,e]);const{extensions:_,receiveCart:k,...C}=(0,c.b)(),N={className:n,collapsible:b,showItems:v,noResultsMessage:y,renderOption:w,extensions:_,cart:C,components:{ShippingRatesControlPackage:f.Z},context:E},{isEditor:T}=(0,u._)(),{hasSelectedLocalPickup:S,selectedRates:x}=(0,p.V)(),A=(0,m.Kn)(x)?Object.values(x):[],L=A.every((e=>e===A[0]));return(0,o.createElement)(s.Z,{isLoading:t,screenReaderLabel:(0,r.__)("Loading shipping rates…","woocommerce"),showSpinner:!0},S&&"woocommerce/cart"===E&&e.length>1&&!L&&!T&&(0,o.createElement)(d.Z,{className:"wc-block-components-notice",isDismissible:!1,status:"warning"},(0,r.__)("Multiple shipments must have the same pickup location","woocommerce")),(0,o.createElement)(i.ExperimentalOrderShippingPackages.Slot,{...N}),(0,o.createElement)(i.ExperimentalOrderShippingPackages,null,(0,o.createElement)(h,{packages:e,noResultsMessage:y,renderOption:w})))}},27:(e,t,n)=>{"use strict";n.d(t,{RK:()=>f,X$:()=>v,Br:()=>E,Tm:()=>j});var o=n(9196),r=n(5736),a=n(9307),s=n(4877),i=n(1193),l=n(4333),c=n(711),u=n(9818),p=n(4801),d=n(4184),m=n.n(d);n(5454);const f=(0,l.withInstanceId)((({instanceId:e,isLoading:t=!1,onSubmit:n,displayCouponForm:l=!1})=>{const[d,f]=(0,a.useState)(""),[g,h]=(0,a.useState)(!l),b=`wc-block-components-totals-coupon__input-${e}`,v=m()("wc-block-components-totals-coupon__content",{"screen-reader-text":g}),{validationErrorId:y}=(0,u.useSelect)((e=>({validationErrorId:e(p.VALIDATION_STORE_KEY).getValidationErrorId(b)})));return(0,o.createElement)("div",{className:"wc-block-components-totals-coupon"},g?(0,o.createElement)("a",{role:"button",href:"#wc-block-components-totals-coupon__form",className:"wc-block-components-totals-coupon-link","aria-label":(0,r.__)("Add a coupon","woocommerce"),onClick:e=>{e.preventDefault(),h(!1)}},(0,r.__)("Add a coupon","woocommerce")):(0,o.createElement)(i.Z,{screenReaderLabel:(0,r.__)("Applying coupon…","woocommerce"),isLoading:t,showSpinner:!1},(0,o.createElement)("div",{className:v},(0,o.createElement)("form",{className:"wc-block-components-totals-coupon__form",id:"wc-block-components-totals-coupon__form"},(0,o.createElement)(c.ValidatedTextInput,{id:b,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:(0,r.__)("Enter code","woocommerce"),value:d,ariaDescribedBy:y,onChange:e=>{f(e)},focusOnMount:!0,validateOnMount:!1,showError:!1}),(0,o.createElement)(s.Z,{className:"wc-block-components-totals-coupon__button",disabled:t||!d,showSpinner:t,onClick:e=>{var t;e.preventDefault(),void 0!==n?null===(t=n(d))||void 0===t||t.then((e=>{e&&(f(""),h(!0))})):(f(""),h(!0))},type:"submit"},(0,r.__)("Apply","woocommerce"))),(0,o.createElement)(c.ValidationInputError,{propertyName:"coupon",elementId:b}))))}));var g=n(3554),h=n(4617);n(5154);const b={context:"summary"},v=({cartCoupons:e=[],currency:t,isRemovingCoupon:n,removeCoupon:a,values:s})=>{const{total_discount:l,total_discount_tax:u}=s,p=parseInt(l,10);if(!p&&0===e.length)return null;const d=parseInt(u,10),m=(0,h.getSetting)("displayCartPricesIncludingTax",!1)?p+d:p,f=(0,g.applyCheckoutFilter)({arg:b,filterName:"coupons",defaultValue:e});return(0,o.createElement)(c.TotalsItem,{className:"wc-block-components-totals-discount",currency:t,description:0!==f.length&&(0,o.createElement)(i.Z,{screenReaderLabel:(0,r.__)("Removing coupon…","woocommerce"),isLoading:n,showSpinner:!1},(0,o.createElement)("ul",{className:"wc-block-components-totals-discount__coupon-list"},f.map((e=>(0,o.createElement)(c.RemovableChip,{key:"coupon-"+e.code,className:"wc-block-components-totals-discount__coupon-list-item",text:e.label,screenReaderText:(0,r.sprintf)(/* translators: %s Coupon code. */
(0,r.__)("Coupon: %s","woocommerce"),e.label),disabled:n,onRemove:()=>{a(e.code)},radius:"large",ariaLabel:(0,r.sprintf)(/* translators: %s is a coupon code. */
(0,r.__)('Remove coupon "%s"',"woocommerce"),e.label)}))))),label:m?(0,r.__)("Discount","woocommerce"):(0,r.__)("Coupons","woocommerce"),value:m?-1*m:"-"})};var y=n(4055),w=n(4293);n(6305);const E=({currency:e,values:t,className:n})=>{const s=(0,h.getSetting)("taxesEnabled",!0)&&(0,h.getSetting)("displayCartPricesIncludingTax",!1),{total_price:i,total_tax:l,tax_lines:u}=t,{receiveCart:p,...d}=(0,y.b)(),f=(0,g.applyCheckoutFilter)({filterName:"totalLabel",defaultValue:(0,r.__)("Total","woocommerce"),extensions:d.extensions,arg:{cart:d}}),b=parseInt(l,10),v=u&&u.length>0?(0,r.sprintf)(/* translators: %s is a list of tax rates */
(0,r.__)("Including %s","woocommerce"),u.map((({name:t,price:n})=>`${(0,w.formatPrice)(n,e)} ${t}`)).join(", ")):(0,r.__)("Including <TaxAmount/> in taxes","woocommerce");return(0,o.createElement)(c.TotalsItem,{className:m()("wc-block-components-totals-footer-item",n),currency:e,label:f,value:parseInt(i,10),description:s&&0!==b&&(0,o.createElement)("p",{className:"wc-block-components-totals-footer-item-tax"},(0,a.createInterpolateElement)(v,{TaxAmount:(0,o.createElement)(c.FormattedMonetaryAmount,{className:"wc-block-components-totals-footer-item-tax-value",currency:e,value:b})}))})};var _=n(2629);const k=({selectedShippingRates:e})=>(0,o.createElement)("div",{className:"wc-block-components-totals-item__description wc-block-components-totals-shipping__via"},(0,_.decodeEntities)(e.filter(((t,n)=>e.indexOf(t)===n)).join(", ")));var C=n(602),N=n(3881),T=n(7844),S=n(4076),x=n(9127),A=n.n(x),L=(n(7866),n(8082));const O=({address:e,onUpdate:t,onCancel:n,addressFields:i})=>{const[l,c]=(0,a.useState)(e),{showAllValidationErrors:d}=(0,u.useDispatch)(p.VALIDATION_STORE_KEY),{hasValidationErrors:m,isCustomerDataUpdating:f}=(0,u.useSelect)((e=>({hasValidationErrors:e(p.VALIDATION_STORE_KEY).hasValidationErrors,isCustomerDataUpdating:e(p.CART_STORE_KEY).isCustomerDataUpdating()})));return(0,o.createElement)("form",{className:"wc-block-components-shipping-calculator-address"},(0,o.createElement)(L.k,{fields:i,onChange:c,values:l}),(0,o.createElement)(s.Z,{className:"wc-block-components-shipping-calculator-address__button",disabled:f,onClick:o=>(o.preventDefault(),A()(l,e)?n():(d(),m()?void 0:t(l))),type:"submit"},(0,r.__)("Update","woocommerce")))},R=({onUpdate:e=(()=>{}),onCancel:t=(()=>{}),addressFields:n=["country","state","city","postcode"]})=>{const{shippingAddress:r}=(0,T.L)(),a="wc/cart/shipping-calculator";return(0,o.createElement)("div",{className:"wc-block-components-shipping-calculator"},(0,o.createElement)(c.StoreNoticesContainer,{context:a}),(0,o.createElement)(O,{address:r,addressFields:n,onCancel:t,onUpdate:t=>{(0,u.dispatch)(p.CART_STORE_KEY).updateCustomerData({shipping_address:t},!1).then((()=>{(0,S.Zt)(a),e(t)})).catch((e=>{(0,p.processErrorResponse)(e,a)}))}}))};var I=n(467);const D=({label:e=(0,r.__)("Calculate","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:n})=>(0,o.createElement)("a",{role:"button",href:"#wc-block-components-shipping-calculator-address__link",className:"wc-block-components-totals-shipping__change-address__link",id:"wc-block-components-totals-shipping__change-address__link",onClick:e=>{e.preventDefault(),n(!t)},"aria-label":e,"aria-expanded":t},e),M=({showCalculator:e,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:n,isCheckout:a=!1})=>e?(0,o.createElement)(D,{label:(0,r.__)("Add an address for shipping options","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:n}):(0,o.createElement)("em",null,a?(0,r.__)("No shipping options available","woocommerce"):(0,r.__)("Calculated during checkout","woocommerce"));var F=n(8832),U=n(7884);const P=()=>{const{pickupAddress:e}=(0,u.useSelect)((e=>{const t=e("wc/store/cart").getShippingRates().flatMap((e=>e.shipping_rates)).find((e=>e.selected&&(0,C.J3)(e)));if((0,U.Kn)(t)&&(0,U.$n)(t,"meta_data")){const e=t.meta_data.find((e=>"pickup_address"===e.key));if((0,U.Kn)(e)&&(0,U.$n)(e,"value")&&e.value)return{pickupAddress:e.value}}return(0,U.Kn)(t),{pickupAddress:void 0}}));return void 0===e?null:(0,o.createElement)("span",{className:"wc-block-components-shipping-address"},(0,r.sprintf)(/* translators: %s: shipping method name, e.g. "Amazon Locker" */
(0,r.__)("Collection from %s","woocommerce"),e)+" ")},H=({formattedLocation:e})=>e?(0,o.createElement)("span",{className:"wc-block-components-shipping-address"},(0,r.sprintf)(/* translators: %s location. */
(0,r.__)("Shipping to %s","woocommerce"),e)+" "):null,z=({showCalculator:e,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:n,shippingAddress:a})=>{const{isEditor:s}=(0,F._)(),i=(0,u.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).prefersCollection()));if(!(0,N.ET)(a)&&!s)return null;const l=(0,N.ET)(a);return(0,o.createElement)(o.Fragment,null,i?(0,o.createElement)(P,null):(0,o.createElement)(H,{formattedLocation:l}),e&&(0,o.createElement)(D,{label:(0,r.__)("Change address","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:n}))};var V=n(6131),B=n(4017);const W=({hasRates:e,shippingRates:t,isLoadingRates:n,isAddressComplete:a})=>{const s=e?(0,r.__)("Shipping options","woocommerce"):(0,r.__)("Choose a shipping option","woocommerce");return(0,o.createElement)("fieldset",{className:"wc-block-components-totals-shipping__fieldset"},(0,o.createElement)("legend",{className:"screen-reader-text"},s),(0,o.createElement)(B.Z,{className:"wc-block-components-totals-shipping__options",noResultsMessage:(0,o.createElement)(o.Fragment,null,a&&(0,o.createElement)(V.Z,{isDismissible:!1,className:"wc-block-components-shipping-rates-control__no-results-notice",status:"warning"},(0,r.__)("There are no shipping options available. Please check your shipping address.","woocommerce"))),shippingRates:t,isLoadingRates:n,context:"woocommerce/cart"}))};n(5092);const j=({currency:e,values:t,showCalculator:n=!0,showRateSelector:s=!0,isCheckout:i=!1,className:l})=>{const[d,f]=(0,a.useState)(!1),{shippingAddress:g,cartHasCalculatedShipping:h,shippingRates:b,isLoadingRates:v}=(0,y.b)(),w=(0,I.KR)(t),E=(0,I.CN)(b)||w>0,_=n&&d,T=(0,u.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).prefersCollection())),S=b.flatMap((e=>e.shipping_rates.filter((e=>T&&(0,C.J3)(e)&&e.selected||!T&&e.selected)).flatMap((e=>e.name)))),x=(0,N.K5)(g),A=(0,I.iG)(E,T,b);return(0,o.createElement)("div",{className:m()("wc-block-components-totals-shipping",l)},(0,o.createElement)(c.TotalsItem,{label:(0,r.__)("Shipping","woocommerce"),value:!A&&h?w:(!x||i)&&(0,o.createElement)(M,{showCalculator:n,isCheckout:i,isShippingCalculatorOpen:d,setIsShippingCalculatorOpen:f}),description:!A&&h||x&&!i?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(k,{selectedShippingRates:S}),(0,o.createElement)(z,{shippingAddress:g,showCalculator:n,isShippingCalculatorOpen:d,setIsShippingCalculatorOpen:f})):null,currency:e}),_&&(0,o.createElement)(R,{onUpdate:()=>{f(!1)},onCancel:()=>{f(!1)}}),s&&h&&!_&&(0,o.createElement)(W,{hasRates:E,shippingRates:b,isLoadingRates:v,isAddressComplete:x}))}},1193:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(9196),r=n(5736),a=n(4184),s=n.n(a),i=n(711);n(6575);const l=({children:e,className:t,screenReaderLabel:n,showSpinner:a=!1,isLoading:l=!0})=>(0,o.createElement)("div",{className:s()(t,{"wc-block-components-loading-mask":l})},l&&a&&(0,o.createElement)(i.Spinner,null),(0,o.createElement)("div",{className:s()({"wc-block-components-loading-mask__children":l}),"aria-hidden":l},e),l&&(0,o.createElement)("span",{className:"screen-reader-text"},n||(0,r.__)("Loading…","woocommerce")))},6131:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(9196),r=n(4184),a=n.n(r),s=n(5736),i=n(1984),l=n(5202),c=(n(1365),n(395)),u=n(4877),p=n(2023);const d=({className:e,status:t="default",children:n,spokenMessage:r=n,onRemove:d=(()=>{}),isDismissible:m=!0,politeness:f=(0,c.x)(t),summary:g})=>((0,p.o)(r,f),(0,o.createElement)("div",{className:a()(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":m})},(0,o.createElement)(i.Z,{icon:(0,c.X)(t)}),(0,o.createElement)("div",{className:"wc-block-components-notice-banner__content"},g&&(0,o.createElement)("p",{className:"wc-block-components-notice-banner__summary"},g),n),!!m&&(0,o.createElement)(u.Z,{className:"wc-block-components-notice-banner__dismiss",icon:l.Z,label:(0,s.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),d()},showTooltip:!1})))},395:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,x:()=>s});var o=n(8184),r=n(5430),a=n(5045);const s=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},i=e=>{switch(e){case"success":return o.Z;case"warning":case"info":case"error":return r.Z;default:return a.Z}}},7844:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var o=n(9818),r=n(4801);const a=()=>{const{customerData:e,isInitialized:t}=(0,o.useSelect)((e=>{const t=e(r.CART_STORE_KEY);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}})),{setShippingAddress:n,setBillingAddress:a}=(0,o.useDispatch)(r.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:a,setShippingAddress:n}}},9075:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var o=n(9307),r=n(9127),a=n.n(r);function s(e){const t=(0,o.useRef)(e);return a()(e,t.current)||(t.current=e),t.current}},2023:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var o=n(9307),r=n(5158);const a=(e,t)=>{const n="string"==typeof e?e:(0,o.renderToString)(e);(0,o.useEffect)((()=>{n&&(0,r.speak)(n,t)}),[n,t])}},6136:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var o=n(9196),r=n(27),a=n(4293),s=n(4055),i=n(3554);const l=()=>{const{extensions:e,receiveCart:t,...n}=(0,s.b)(),r={extensions:e,cart:n,context:"woocommerce/checkout"};return(0,o.createElement)(i.ExperimentalOrderMeta.Slot,{...r})},c=({children:e,className:t=""})=>{const{cartTotals:n}=(0,s.b)(),i=(0,a.getCurrencyFromPriceResponse)(n);return(0,o.createElement)("div",{className:t},e,(0,o.createElement)("div",{className:"wc-block-components-totals-wrapper"},(0,o.createElement)(r.Br,{currency:i,values:n})),(0,o.createElement)(l,null))}},4705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(9196);n(129);const r=()=>(0,o.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},9010:(e,t,n)=>{"use strict";var o=n(4657);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,s=n.alignWithTop,i=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,p=n.offsetRight||0;r=void 0===r||r;var d=o.isWindow(t),m=o.offset(e),f=o.outerHeight(e),g=o.outerWidth(e),h=void 0,b=void 0,v=void 0,y=void 0,w=void 0,E=void 0,_=void 0,k=void 0,C=void 0,N=void 0;d?(_=t,N=o.height(_),C=o.width(_),k={left:o.scrollLeft(_),top:o.scrollTop(_)},w={left:m.left-k.left-c,top:m.top-k.top-l},E={left:m.left+g-(k.left+C)+p,top:m.top+f-(k.top+N)+u},y=k):(h=o.offset(t),b=t.clientHeight,v=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},w={left:m.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:m.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-l},E={left:m.left+g-(h.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+p,top:m.top+f-(h.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),w.top<0||E.top>0?!0===s?o.scrollTop(t,y.top+w.top):!1===s?o.scrollTop(t,y.top+E.top):w.top<0?o.scrollTop(t,y.top+w.top):o.scrollTop(t,y.top+E.top):a||((s=void 0===s||!!s)?o.scrollTop(t,y.top+w.top):o.scrollTop(t,y.top+E.top)),r&&(w.left<0||E.left>0?!0===i?o.scrollLeft(t,y.left+w.left):!1===i?o.scrollLeft(t,y.left+E.left):w.left<0?o.scrollLeft(t,y.left+w.left):o.scrollLeft(t,y.left+E.left):a||((i=void 0===i||!!i)?o.scrollLeft(t,y.left+w.left):o.scrollLeft(t,y.left+E.left)))}},4979:(e,t,n)=>{"use strict";e.exports=n(9010)},4657:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function r(e){return o(e)}function a(e){return o(e,!0)}function s(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,a=r.body,s=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=s.clientLeft||a.clientLeft||0,top:o-=s.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=r(o),t.top+=a(o),t}var i=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",p="left",d=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function f(e){return"border-box"===d(e,"boxSizing")}"undefined"!=typeof window&&(d=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,a=n||r.defaultView.getComputedStyle(e,null);return a&&(o=a.getPropertyValue(t)||a[t]),o}:function(e,t){var n=e[c]&&e[c][t];if(i.test(n)&&!l.test(t)){var o=e.style,r=o[p],a=e[u][p];e[u][p]=e[c][p],o[p]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[p]=r,e[u][p]=a}return""===n?"auto":n});var g=["margin","border","padding"],h=-1,b=2,v=1;function y(e,t,n){var o=0,r=void 0,a=void 0,s=void 0;for(a=0;a<t.length;a++)if(r=t[a])for(s=0;s<n.length;s++){var i;i="border"===r?r+n[s]+"Width":r+n[s],o+=parseFloat(d(e,i))||0}return o}function w(e){return null!=e&&e==e.window}var E={};function _(e,t,n){if(w(e))return"width"===t?E.viewportWidth(e):E.viewportHeight(e);if(9===e.nodeType)return"width"===t?E.docWidth(e):E.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,a=(d(e),f(e)),s=0;(null==r||r<=0)&&(r=void 0,(null==(s=d(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===n&&(n=a?v:h);var i=void 0!==r||a,l=r||s;if(n===h)return i?l-y(e,["border","padding"],o):s;if(i){var c=n===b?-y(e,["border"],o):y(e,["margin"],o);return l+(n===v?0:c)}return s+y(e,g.slice(n),o)}m(["Width","Height"],(function(e){E["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],E["viewport"+e](n))},E["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,a=o.documentElement[n];return"CSS1Compat"===o.compatMode&&a||r&&r[n]||a}}));var k={position:"absolute",visibility:"hidden",display:"block"};function C(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=_.apply(void 0,n):function(e,o,r){var a={},s=e.style,i=void 0;for(i in o)o.hasOwnProperty(i)&&(a[i]=s[i],s[i]=o[i]);for(i in function(){t=_.apply(void 0,n)}.call(e),o)o.hasOwnProperty(i)&&(s[i]=a[i])}(e,k),t}function N(e,t,o){var r=o;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):d(e,t);for(var a in t)t.hasOwnProperty(a)&&N(e,a,t[a])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);E["outer"+t]=function(t,n){return t&&C(t,e,n?0:v)};var n="width"===e?["Left","Right"]:["Top","Bottom"];E[e]=function(t,o){return void 0===o?t&&C(t,e,h):t?(d(t),f(t)&&(o+=y(t,["padding","border"],n)),N(t,e,o)):void 0}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return s(e);!function(e,t){"static"===N(e,"position")&&(e.style.position="relative");var n=s(e),o={},r=void 0,a=void 0;for(a in t)t.hasOwnProperty(a)&&(r=parseFloat(N(e,a))||0,o[a]=r+t[a]-n[a]);N(e,o)}(e,t)},isWindow:w,each:m,css:N,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(w(e)){if(void 0===t)return r(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(w(e)){if(void 0===t)return a(e);window.scrollTo(r(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},E)},7856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,o,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,o){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return o&&t(a,o.prototype),a},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,i=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,p=Object.seal,d=Object.create,m="undefined"!=typeof Reflect&&Reflect,f=m.apply,g=m.construct;f||(f=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),p||(p=function(e){return e}),g||(g=function(e,t){return n(e,o(t))});var h,b=x(Array.prototype.forEach),v=x(Array.prototype.pop),y=x(Array.prototype.push),w=x(String.prototype.toLowerCase),E=x(String.prototype.toString),_=x(String.prototype.match),k=x(String.prototype.replace),C=x(String.prototype.indexOf),N=x(String.prototype.trim),T=x(RegExp.prototype.test),S=(h=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(h,t)});function x(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return f(e,t,o)}}function A(e,t,n){var o;n=null!==(o=n)&&void 0!==o?o:w,s&&s(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var l=n(a);l!==a&&(i(t)||(t[r]=l),a=l)}e[a]=!0}return e}function L(e){var t,n=d(null);for(t in e)!0===f(a,e,[t])&&(n[t]=e[t]);return n}function O(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var R=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=u(["#text"]),H=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=p(/<%[\w\W]*|[\w\W]*%>/gm),Z=p(/\${[\w\W]*}/gm),$=p(/^data-[\-\w.\u00B7-\uFFFF]/),K=p(/^aria-[\-\w]+$/),G=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=p(/^(?:\w+script|data):/i),Y=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=p(/^html$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,s=n.document,i=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,p=n.Element,d=n.NodeFilter,m=n.NamedNodeMap,f=void 0===m?n.NamedNodeMap||n.MozNamedAttrMap:m,g=n.HTMLFormElement,h=n.DOMParser,x=n.trustedTypes,Q=p.prototype,ee=O(Q,"cloneNode"),te=O(Q,"nextSibling"),ne=O(Q,"childNodes"),oe=O(Q,"parentNode");if("function"==typeof l){var re=s.createElement("template");re.content&&re.content.ownerDocument&&(s=re.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(o=n.currentScript.getAttribute(r));var a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(x,a),se=ae?ae.createHTML(""):"",ie=s,le=ie.implementation,ce=ie.createNodeIterator,ue=ie.createDocumentFragment,pe=ie.getElementsByTagName,de=a.importNode,me={};try{me=L(s).documentMode?s.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof oe&&le&&void 0!==le.createHTMLDocument&&9!==me;var ge,he,be=W,ve=j,ye=Z,we=$,Ee=K,_e=q,ke=Y,Ce=G,Ne=null,Te=A({},[].concat(o(R),o(I),o(D),o(F),o(P))),Se=null,xe=A({},[].concat(o(H),o(z),o(V),o(B))),Ae=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,Oe=null,Re=!0,Ie=!0,De=!1,Me=!0,Fe=!1,Ue=!1,Pe=!1,He=!1,ze=!1,Ve=!1,Be=!1,We=!0,je=!1,Ze=!0,$e=!1,Ke={},Ge=null,qe=A({},["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"]),Ye=null,Je=A({},["audio","video","img","source","image","track"]),Xe=null,Qe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",ot=nt,rt=!1,at=null,st=A({},[et,tt,nt],E),it=["application/xhtml+xml","text/html"],lt=null,ct=s.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=L(t),ge=ge=-1===it.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===ge?E:w,Ne="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS,he):Te,Se="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR,he):xe,at="ALLOWED_NAMESPACES"in t?A({},t.ALLOWED_NAMESPACES,E):st,Xe="ADD_URI_SAFE_ATTR"in t?A(L(Qe),t.ADD_URI_SAFE_ATTR,he):Qe,Ye="ADD_DATA_URI_TAGS"in t?A(L(Je),t.ADD_DATA_URI_TAGS,he):Je,Ge="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS,he):qe,Le="FORBID_TAGS"in t?A({},t.FORBID_TAGS,he):{},Oe="FORBID_ATTR"in t?A({},t.FORBID_ATTR,he):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Re=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,Ue=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,je=t.SANITIZE_NAMED_PROPS||!1,Ze=!1!==t.KEEP_CONTENT,$e=t.IN_PLACE||!1,Ce=t.ALLOWED_URI_REGEXP||Ce,ot=t.NAMESPACE||nt,Ae=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Ie=!1),Ve&&(ze=!0),Ke&&(Ne=A({},o(P)),Se=[],!0===Ke.html&&(A(Ne,R),A(Se,H)),!0===Ke.svg&&(A(Ne,I),A(Se,z),A(Se,B)),!0===Ke.svgFilters&&(A(Ne,D),A(Se,z),A(Se,B)),!0===Ke.mathMl&&(A(Ne,F),A(Se,V),A(Se,B))),t.ADD_TAGS&&(Ne===Te&&(Ne=L(Ne)),A(Ne,t.ADD_TAGS,he)),t.ADD_ATTR&&(Se===xe&&(Se=L(Se)),A(Se,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&A(Xe,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(Ge===qe&&(Ge=L(Ge)),A(Ge,t.FORBID_CONTENTS,he)),Ze&&(Ne["#text"]=!0),Ue&&A(Ne,["html","head","body"]),Ne.table&&(A(Ne,["tbody"]),delete Le.tbody),u&&u(t),lt=t)},dt=A({},["mi","mo","mn","ms","mtext"]),mt=A({},["foreignobject","desc","title","annotation-xml"]),ft=A({},["title","style","font","a","script"]),gt=A({},I);A(gt,D),A(gt,M);var ht=A({},F);A(ht,U);var bt=function(e){y(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},vt=function(e,t){try{y(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(ze||Ve)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var o=_(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===ge&&ot===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=ae?ae.createHTML(e):e;if(ot===nt)try{t=(new h).parseFromString(r,ge)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(ot,"template",null);try{t.documentElement.innerHTML=rt?se:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(s.createTextNode(n),a.childNodes[0]||null),ot===nt?pe.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:a},wt=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},Et=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){fe[e]&&b(fe[e],(function(e){e.call(r,t,n,lt)}))},kt=function(e){var t,n;if(_t("beforeSanitizeElements",e,null),(n=e)instanceof g&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return bt(e),!0;if(T(/[\u0080-\uFFFF]/,e.nodeName))return bt(e),!0;var o=he(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:o,allowedTags:Ne}),e.hasChildNodes()&&!Et(e.firstElementChild)&&(!Et(e.content)||!Et(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return bt(e),!0;if("select"===o&&T(/<template/i,e.innerHTML))return bt(e),!0;if(!Ne[o]||Le[o]){if(!Le[o]&&Nt(o)){if(Ae.tagNameCheck instanceof RegExp&&T(Ae.tagNameCheck,o))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(o))return!1}if(Ze&&!Ge[o]){var a=oe(e)||e.parentNode,s=ne(e)||e.childNodes;if(s&&a)for(var i=s.length-1;i>=0;--i)a.insertBefore(ee(s[i],!0),te(e))}return bt(e),!0}return e instanceof p&&!function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=w(e.tagName),o=w(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===o||dt[o]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&mt[o]:Boolean(ht[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!mt[o])&&!(t.namespaceURI===et&&!dt[o])&&!ht[n]&&(ft[n]||!gt[n]):!("application/xhtml+xml"!==ge||!at[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=k(t,be," "),t=k(t,ve," "),t=k(t,ye," "),e.textContent!==t&&(y(r.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(bt(e),!0)},Ct=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in s||n in ct))return!1;if(Ie&&!Oe[t]&&T(we,t));else if(Re&&T(Ee,t));else if(!Se[t]||Oe[t]){if(!(Nt(e)&&(Ae.tagNameCheck instanceof RegExp&&T(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&T(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&T(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Xe[t]);else if(T(Ce,k(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!Ye[e])if(De&&!T(_e,k(n,ke,"")));else if(n)return!1;return!0},Nt=function(e){return e.indexOf("-")>0},Tt=function(t){var n,o,a,s;_t("beforeSanitizeAttributes",t,null);var i=t.attributes;if(i){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(s=i.length;s--;){var c=n=i[s],u=c.name,p=c.namespaceURI;if(o="value"===u?n.value:N(n.value),a=he(u),l.attrName=a,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(vt(u,t),l.keepAttr))if(Me||!T(/\/>/i,o)){Fe&&(o=k(o,be," "),o=k(o,ve," "),o=k(o,ye," "));var d=he(t.nodeName);if(Ct(d,a,o)){if(!je||"id"!==a&&"name"!==a||(vt(u,t),o="user-content-"+o),ae&&"object"===e(x)&&"function"==typeof x.getAttributeType)if(p);else switch(x.getAttributeType(d,a)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{p?t.setAttributeNS(p,u,o):t.setAttribute(u,o),v(r.removed)}catch(e){}}}else vt(u,t)}_t("afterSanitizeAttributes",t,null)}},St=function e(t){var n,o=wt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)_t("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof i&&e(n.content),Tt(n));_t("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,s,l,u,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Et(t)){if("function"!=typeof t.toString)throw S("toString is not a function");if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Et(t))return n.toStaticHTML(t.outerHTML)}return t}if(Pe||pt(d),r.removed=[],"string"==typeof t&&($e=!1),$e){if(t.nodeName){var m=he(t.nodeName);if(!Ne[m]||Le[m])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(s=(o=yt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!ze&&!Fe&&!Ue&&-1===t.indexOf("<"))return ae&&Be?ae.createHTML(t):t;if(!(o=yt(t)))return ze?null:Be?se:""}o&&He&&bt(o.firstChild);for(var f=wt($e?t:o);l=f.nextNode();)3===l.nodeType&&l===u||kt(l)||(l.content instanceof i&&St(l.content),Tt(l),u=l);if(u=null,$e)return t;if(ze){if(Ve)for(p=ue.call(o.ownerDocument);o.firstChild;)p.appendChild(o.firstChild);else p=o;return(Se.shadowroot||Se.shadowrootmod)&&(p=de.call(a,p,!0)),p}var g=Ue?o.outerHTML:o.innerHTML;return Ue&&Ne["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&T(J,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),Fe&&(g=k(g,be," "),g=k(g,ve," "),g=k(g,ye," ")),ae&&Be?ae.createHTML(g):g},r.setConfig=function(e){pt(e),Pe=!0},r.clearConfig=function(){lt=null,Pe=!1},r.isValidAttribute=function(e,t,n){lt||pt({});var o=he(e),r=he(t);return Ct(o,r,n)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],y(fe[e],t))},r.removeHook=function(e){if(fe[e])return v(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},5482:()=>{},7866:()=>{},6125:()=>{},5454:()=>{},5154:()=>{},6305:()=>{},5092:()=>{},5821:()=>{},7775:()=>{},6575:()=>{},1365:()=>{},8410:()=>{},129:()=>{},3019:(e,t,n)=>{"use strict";n.d(t,{Iq:()=>i});var o=n(2819),r=n(9307),a=(n(2560),n(1765)),s=n(1282);function i(e,t,n={}){const{memo:i=!1}=n;let l=(0,r.forwardRef)(e);i&&(l=(0,r.memo)(l)),void 0===t&&"undefined"!=typeof process&&process.env;let c=l[a.rE]||[t];return Array.isArray(t)&&(c=[...c,...t]),"string"==typeof t&&(c=[...c,t]),l.displayName=t,l[a.rE]=(0,o.uniq)(c),l.selector=`.${(0,s.l)(t)}`,l}}}]);