OwlCyberSecurity - MANAGER
Edit File: amp-onboarding-wizard.js
(()=>{var e,t,n={576:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return x}});var r=n(279),o=n.n(r),i=n(370),a=n.n(i),l=n(817),s=n.n(l);function u(e){try{return document.execCommand(e)}catch(e){return!1}}var c=function(e){var t=s()(e);return u("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=s()(n);return u("copy"),n.remove(),r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=s()(e),u("copy")),n};function p(e){return p="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},p(e)}function h(e){return h="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},h(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,r,o,i,l=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t,n=v(o);if(i){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return!(t=e)||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this):t});function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=l.call(this)).resolveOptions(t),n.listenClick(e),n}return t=s,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,i=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?f(i,{container:r}):o?"cut"===n?c(o):f(o,{container:r}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&m(t.prototype,n),r&&m(t,r),s}(o()),x=b},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var a=i.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?s.arrayMerge(e,n,s):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,s):r(n,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var s=l;e.exports=s},252:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},146:(e,t,n)=>{"use strict";var r=n(404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},72:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case s:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},404:(e,t,n)=>{"use strict";e.exports=n(72)},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,n)=>{"use strict";var r=n(540),o=n(982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),E=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var F,z=Object.assign;function I(e){if(void 0===F)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function D(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function B(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return D(e.type,!1);case 11:return D(e.type.render,!1);case 1:return D(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case k:return"Portal";case _:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ce=null,Se=null;function _e(e){if(e=wo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),ke(e.stateNode,e.type,t))}}function je(e){Ce?Se?Se.push(e):Se=[e]:Ce=e}function Ee(){if(Ce){var e=Ce,t=Se;if(Se=Ce=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Le(e,t){return e(t)}function Me(){}var Pe=!1;function Te(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Le(e,t,n)}finally{Pe=!1,(null!==Ce||null!==Se)&&(Me(),Ee())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ae=!1;if(c)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ce){Ae=!1}function Re(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Fe=!1,ze=null,Ie=!1,He=null,De={onError:function(e){Fe=!0,ze=e}};function Be(e,t,n,r,o,i,a,l,s){Fe=!1,ze=null,Re.apply(De,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if($e(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ue(o),e;if(a===r)return Ue(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!=(i&=a)&&(r=dt(i))}else 0!=(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,Ct,St,_t,jt=!1,Et=[],Lt=null,Mt=null,Pt=null,Tt=new Map,Nt=new Map,At=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Lt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Ft(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=xo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void _t(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ht(e,t,n){It(e)&&n.delete(t)}function Dt(){jt=!1,null!==Lt&&It(Lt)&&(Lt=null),null!==Mt&&It(Mt)&&(Mt=null),null!==Pt&&It(Pt)&&(Pt=null),Tt.forEach(Ht),Nt.forEach(Ht)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,jt||(jt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function $t(e){function t(t){return Bt(t,e)}if(0<Et.length){Bt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lt&&Bt(Lt,e),null!==Mt&&Bt(Mt,e),null!==Pt&&Bt(Pt,e),Tt.forEach(t),Nt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)zt(n),null===n.blockedOn&&At.shift()}var Wt=x.ReactCurrentBatchConfig,Ut=!0;function Vt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Zt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Qt(e,t,n,r){if(Ut){var o=Gt(e,t,n,r);if(null===o)Vr(e,t,r,qt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Lt=Ft(Lt,e,t,n,r,o),!0;case"dragenter":return Mt=Ft(Mt,e,t,n,r,o),!0;case"mouseover":return Pt=Ft(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,Ft(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,Ft(Nt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&wt(i),null===(i=Gt(e,t,n,r))&&Vr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var qt=null;function Gt(e,t,n,r){if(qt=null,null!==(e=xo(e=we(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=z({},un,{view:0,detail:0}),fn=on(dn),pn=z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(z({},pn,{dataTransfer:0})),gn=on(z({},dn,{relatedTarget:0})),vn=on(z({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=z({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(z({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function jn(){return Sn}var En=z({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=on(En),Mn=on(z({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),Tn=on(z({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=z({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=on(Nn),On=[9,13,27,32],Rn=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var zn=c&&"TextEvent"in window&&!Fn,In=c&&(!Rn||Fn&&8<Fn&&11>=Fn),Hn=String.fromCharCode(32),Dn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Zn(e,t,n,r){je(r),0<(t=Qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Gn(e){Hr(e,0)}function Kn(e){if(Q(ko(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Qn&&(Qn.detachEvent("onpropertychange",rr),qn=Qn=null)}function rr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Zn(t,qn,e,we(e)),Te(Gn,t)}}function or(e,t,n){"focusin"===e?(nr(),qn=n,(Qn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function ar(e,t){if("click"===e)return Kn(t)}function lr(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dr(n,i);var a=dr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==vr||vr!==q(r)||(r="selectionStart"in(r=vr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=Qr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Sr={},_r={};function jr(e){if(Sr[e])return Sr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}c&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Er=jr("animationend"),Lr=jr("animationiteration"),Mr=jr("animationstart"),Pr=jr("transitionend"),Tr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Tr.set(e,t),s(t,[e])}for(var Or=0;Or<Nr.length;Or++){var Rr=Nr[Or];Ar(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Ar(Er,"onAnimationEnd"),Ar(Lr,"onAnimationIteration"),Ar(Mr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Pr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,u){if(Be.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=ze;Fe=!1,ze=null,Ie||(Ie=!0,He=c)}}(r,t,void 0,e),e.currentTarget=null}function Hr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Ir(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Ir(o,l,u),i=s}}}if(Ie)throw e=He,Ie=!1,He=null,e}function Dr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[$r]){e[$r]=!0,a.forEach((function(t){"selectionchange"!==t&&(zr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Kt(t)){case 1:var o=Vt;break;case 4:o=Zt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=xo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Te((function(){var r=i,o=we(n),a=[];e:{var l=Tr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Ln;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Er:case Lr:case Mr:s=vn;break;case Pr:s=Tn;break;case"scroll":s=fn;break;case"wheel":s=An;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Mn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ne(h,f))&&c.push(Zr(h,m,p))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!xo(u)&&!u[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?xo(u):null)&&(u!==(d=$e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Mn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:ko(s),p=null==u?l:ko(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,xo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=qr(p))h++;for(p=0,m=f;m;m=qr(m))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)f=qr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==s&&Gr(a,l,s,c,!1),null!==u&&null!==d&&Gr(a,d,u,c,!0)}if("select"===(s=(l=r?ko(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Yn;else if(Vn(l))if(Xn)g=lr;else{g=ir;var v=or}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Zn(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?ko(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(vr=v,yr=r,br=null);break;case"focusout":br=yr=vr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Wn=!0)),0<(v=Qr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),(y||null!==(y=$n(n)))&&(b.data=y))),(y=zn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Dn=!0,Hn);case"textInput":return(e=t.data)===Hn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Rn&&Bn(e,t)?(e=en(),Jt=Xt=Yt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Hr(a,t)}))}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ne(e,n))&&r.unshift(Zr(e,i,o)),null!=(i=Ne(e,t))&&r.push(Zr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ne(n,i))&&a.unshift(Zr(n,s,l)):o||null!=(s=Ne(n,i))&&a.push(Zr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function eo(){}var to=null,no=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oo="function"==typeof setTimeout?setTimeout:void 0,io="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,lo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:oo;function so(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function fo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,mo="__reactProps$"+po,go="__reactContainer$"+po,vo="__reactEvents$"+po,yo="__reactListeners$"+po,bo="__reactHandles$"+po;function xo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=fo(e);null!==e;){if(n=e[ho])return n;e=fo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[mo]||null}var So=[],_o=-1;function jo(e){return{current:e}}function Eo(e){0>_o||(e.current=So[_o],So[_o]=null,_o--)}function Lo(e,t){_o++,So[_o]=e.current,e.current=t}var Mo={},Po=jo(Mo),To=jo(!1),No=Mo;function Ao(e,t){var n=e.type.contextTypes;if(!n)return Mo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=e.childContextTypes}function Ro(){Eo(To),Eo(Po)}function Fo(e,t,n){if(Po.current!==Mo)throw Error(i(168));Lo(Po,t),Lo(To,n)}function zo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return z({},n,r)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mo,No=Po.current,Lo(Po,e),Lo(To,To.current),!0}function Ho(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=zo(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,Eo(To),Eo(Po),Lo(Po,e)):Eo(To),Lo(To,n)}var Do=null,Bo=!1,$o=!1;function Wo(e){null===Do?Do=[e]:Do.push(e)}function Uo(){if(!$o&&null!==Do){$o=!0;var e=0,t=bt;try{var n=Do;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,Bo=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Qe(Je,Uo),t}finally{bt=t,$o=!1}}return null}var Vo=[],Zo=0,Qo=null,qo=0,Go=[],Ko=0,Yo=null,Xo=1,Jo="";function ei(e,t){Vo[Zo++]=qo,Vo[Zo++]=Qo,Qo=e,qo=t}function ti(e,t,n){Go[Ko++]=Xo,Go[Ko++]=Jo,Go[Ko++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Qo;)Qo=Vo[--Zo],Vo[Zo]=null,qo=Vo[--Zo],Vo[Zo]=null;for(;e===Yo;)Yo=Go[--Ko],Go[Ko]=null,Jo=Go[--Ko],Go[Ko]=null,Xo=Go[--Ko],Go[Ko]=null}var oi=null,ii=null,ai=!1,li=null;function si(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ii=null,!0);default:return!1}}function ci(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(ai){var t=ii;if(t){var n=t;if(!ui(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=oi;t&&ui(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ai=!1,oi=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ai=!1,oi=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function pi(e){if(e!==oi)return!1;if(!ai)return fi(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=ii)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ii=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ii=null}}else ii=oi?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ii;e;)e=co(e.nextSibling)}function mi(){ii=oi=null,ai=!1}function gi(e){null===li?li=[e]:li.push(e)}var vi=x.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Iu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===N&&xi(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Iu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case k:return(t=Hu(t,e.mode,n)).return=e,t;case N:return f(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Fu(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case N:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case N:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(o,i,l,s){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return n(o,d),ai&&ei(o,m),u;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],s))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ai&&ei(o,m),u}for(d=r(o,d);m<l.length;m++)null!==(g=h(d,o,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),ai&&ei(o,m),u}function g(o,l,s,u){var c=R(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var d=c=null,m=l,g=l=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ai&&ei(o,g),c;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=f(o,y.value,u))&&(l=a(y,l,g),null===d?c=y:d.sibling=y,d=y);return ai&&ei(o,g),c}for(m=r(o,m);!y.done;g++,y=s.next())null!==(y=h(m,o,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=a(y,l,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),ai&&ei(o,g),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===C){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===N&&xi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=yi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===C?((i=Fu(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Ru(a.type,a.key,a.props,null,r.mode,s)).ref=yi(r,i,a),s.return=r,r=s)}return l(r);case k:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Hu(a,r.mode,s)).return=r,r=i}return l(r);case N:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(R(a))return g(r,i,a,s);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Iu(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var ki=wi(!0),Ci=wi(!1),Si=jo(null),_i=null,ji=null,Ei=null;function Li(){Ei=ji=_i=null}function Mi(e){var t=Si.current;Eo(Si),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){_i=e,Ei=ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(xl=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===ji){if(null===_i)throw Error(i(308));ji=e,_i.dependencies={lanes:0,firstContext:e}}else ji=ji.next=e;return t}var Ai=null;function Oi(e){null===Ai?Ai=[e]:Ai.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var zi=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ms){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Wi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=z({},d,f);break e;case 2:zi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);zs|=a,e.lanes=a,e.memoizedState=d}}function Vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Zi={},Qi=jo(Zi),qi=jo(Zi),Gi=jo(Zi);function Ki(e){if(e===Zi)throw Error(i(174));return e}function Yi(e,t){switch(Lo(Gi,t),Lo(qi,e),Lo(Qi,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Qi),Lo(Qi,t)}function Xi(){Eo(Qi),Eo(qi),Eo(Gi)}function Ji(e){Ki(Gi.current);var t=Ki(Qi.current),n=se(t,e.type);t!==n&&(Lo(qi,e),Lo(Qi,n))}function ea(e){qi.current===e&&(Eo(Qi),Eo(qi))}var ta=jo(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function oa(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,la=0,sa=null,ua=null,ca=null,da=!1,fa=!1,pa=0,ha=0;function ma(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(la=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?el:tl,e=n(r,o),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(i(301));a+=1,ca=ua=null,t.updateQueue=null,ia.current=nl,e=n(r,o)}while(fa)}if(ia.current=Ja,t=null!==ua&&null!==ua.next,la=0,ca=ua=sa=null,da=!1,t)throw Error(i(300));return e}function ya(){var e=0!==pa;return pa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function xa(){if(null===ua){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,ua=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"==typeof t?t(e):t}function ka(e){var t=xa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ua,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=l=null,u=null,c=a;do{var d=c.lane;if((la&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,sa.lanes|=d,zs|=d}c=c.next}while(null!==c&&c!==a);null===u?l=r:u.next=s,sr(r,t.memoizedState)||(xl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,zs|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=xa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);sr(a,t.memoizedState)||(xl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function _a(e,t){var n=sa,r=xa(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,xl=!0),r=r.queue,za(La.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Na(9,Ea.bind(null,n,r,o,t),void 0,null),null===Ps)throw Error(i(349));30&la||ja(n,t,o)}return o}function ja(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&Pa(e)}function La(e,t,n){return n((function(){Ma(t)&&Pa(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Pa(e){var t=Fi(e,1);null!==t&&ru(t,e,1,-1)}function Ta(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Aa(){return xa().memoizedState}function Oa(e,t,n,r){var o=ba();sa.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=xa();r=void 0===r?null:r;var i=void 0;if(null!==ua){var a=ua.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}sa.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function Fa(e,t){return Oa(8390656,8,e,t)}function za(e,t){return Ra(2048,8,e,t)}function Ia(e,t){return Ra(4,2,e,t)}function Ha(e,t){return Ra(4,4,e,t)}function Da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4,4,Da.bind(null,t,e),n)}function $a(){}function Wa(e,t){var n=xa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=xa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return 21&la?(sr(n,t)||(n=mt(),sa.lanes|=n,zs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xl=!0),e.memoizedState=n)}function Za(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{bt=n,aa.transition=r}}function Qa(){return xa().memoizedState}function qa(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e)?Ya(t,n):null!==(n=Ri(e,t,n,r))&&(ru(n,e,r,tu()),Xa(n,t,r))}function Ga(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,sr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Oi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(ru(n,e,r,o=tu()),Xa(n,t,r))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){fa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Ni,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},el={readContext:Ni,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ta,useDebugValue:$a,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=Za.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ba();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ps)throw Error(i(349));30&la||ja(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Fa(La.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Ps.identifierPrefix;if(ai){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tl={readContext:Ni,useCallback:Wa,useContext:Ni,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Ia,useLayoutEffect:Ha,useMemo:Ua,useReducer:ka,useRef:Aa,useState:function(){return ka(wa)},useDebugValue:$a,useDeferredValue:function(e){return Va(xa(),ua.memoizedState,e)},useTransition:function(){return[ka(wa)[0],xa().memoizedState]},useMutableSource:Sa,useSyncExternalStore:_a,useId:Qa,unstable_isNewReconciler:!1},nl={readContext:Ni,useCallback:Wa,useContext:Ni,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Ia,useLayoutEffect:Ha,useMemo:Ua,useReducer:Ca,useRef:Aa,useState:function(){return Ca(wa)},useDebugValue:$a,useDeferredValue:function(e){var t=xa();return null===ua?t.memoizedState=e:Va(t,ua.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],xa().memoizedState]},useMutableSource:Sa,useSyncExternalStore:_a,useId:Qa,unstable_isNewReconciler:!1};function rl(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Di(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(ru(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(ru(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=Di(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(ru(t,e,r,n),$i(t,e,r))}};function al(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function ll(e,t,n){var r=!1,o=Mo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Oo(t)?No:Po.current,i=(r=null!=(r=t.contextTypes))?Ao(e,o):Mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function ul(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Oo(t)?No:Po.current,o.context=Ao(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ol(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&il.enqueueReplaceState(o,o.state,null),Ui(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,Zs=r),fl(0,t)},n}function ml(e,t,n){(n=Di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ju.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Di(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var bl=x.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?Ci(t,null,n,r):ki(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var i=t.ref;return Ti(t,o),r=va(e,t,n,r,i,o),n=ya(),null===e||xl?(ai&&n&&ni(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Au(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);131072&e.flags&&(xl=!0)}}return El(e,t,n,r,o)}function _l(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lo(Os,As),As|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Lo(Os,As),As|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lo(Os,As),As|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Lo(Os,As),As|=r;return wl(e,t,o,n),t.child}function jl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function El(e,t,n,r,o){var i=Oo(n)?No:Po.current;return i=Ao(t,i),Ti(t,o),n=va(e,t,n,r,i,o),r=ya(),null===e||xl?(ai&&r&&ni(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Ll(e,t,n,r,o){if(Oo(n)){var i=!0;Io(t)}else i=!1;if(Ti(t,o),null===t.stateNode)Ul(e,t),ll(t,n,r),ul(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Ni(u):Ao(t,u=Oo(n)?No:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&sl(t,a,r,u),zi=!1;var f=t.memoizedState;a.state=f,Ui(t,r,a,o),s=t.memoizedState,l!==r||f!==s||To.current||zi?("function"==typeof c&&(ol(t,n,c,r),s=t.memoizedState),(l=zi||al(t,n,l,r,f,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Hi(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:rl(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ni(s):Ao(t,s=Oo(n)?No:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&sl(t,a,r,s),zi=!1,f=t.memoizedState,a.state=f,Ui(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||To.current||zi?("function"==typeof p&&(ol(t,n,p,r),h=t.memoizedState),(u=zi||al(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ml(e,t,n,r,i,o)}function Ml(e,t,n,r,o,i){jl(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Ho(t,n,!1),Vl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Ho(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?Fo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fo(0,t.context,!1),Yi(e,t.containerInfo)}function Tl(e,t,n,r,o){return mi(),gi(o),t.flags|=256,wl(e,t,n,r),t.child}var Nl,Al,Ol,Rl,Fl={dehydrated:null,treeContext:null,retryLane:0};function zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Il(e,t,n){var r,o=t.pendingProps,a=ta.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Lo(ta,1&a),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=zu(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Fu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=zl(n),t.memoizedState=Fl,e):Hl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Dl(e,t,l,r=dl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=zu({mode:"visible",children:r.children},o,0,null),(a=Fu(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&ki(t,e.child,null,l),t.child.memoizedState=zl(l),t.memoizedState=Fl,a);if(!(1&t.mode))return Dl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Dl(e,t,l,r=dl(a=Error(i(419)),r,void 0))}if(s=!!(l&e.childLanes),xl||s){if(null!==(r=Ps)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Fi(e,o),ru(r,e,o,-1))}return gu(),Dl(e,t,l,r=dl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Lu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,ii=co(o.nextSibling),oi=t,ai=!0,li=null,null!==e&&(Go[Ko++]=Xo,Go[Ko++]=Jo,Go[Ko++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),(t=Hl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Ou(r,l):(l=Fu(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?zl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Fl,o}return e=(l=e.child).sibling,o=Ou(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Hl(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){return null!==r&&gi(r),ki(t,e.child,null,n),(e=Hl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function $l(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Lo(ta,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===na(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,i);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ul(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ql(e,t,n){var r=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ql(t),null;case 1:case 17:return Oo(t.type)&&Ro(),Ql(t),null;case 3:return r=t.stateNode,Xi(),Eo(To),Eo(Po),oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==li&&(lu(li),li=null))),Al(e,t),Ql(t),null;case 5:ea(t);var o=Ki(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ol(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ql(t),null}if(e=Ki(Qi.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[mo]=a,e=!!(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(o=0;o<Fr.length;o++)Dr(Fr[o],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":K(r,a),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Dr("invalid",r);break;case"textarea":oe(r,a),Dr("invalid",r)}for(var s in ye(n,a),o=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Dr("scroll",r)}switch(n){case"input":Z(r),J(r,a,!0);break;case"textarea":Z(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=eo)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ho]=t,e[mo]=r,Nl(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),o=r;break;case"iframe":case"object":case"embed":Dr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fr.length;o++)Dr(Fr[o],e);o=r;break;case"source":Dr("error",e),o=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=r;break;case"details":Dr("toggle",e),o=r;break;case"input":K(e,r),o=G(e,r),Dr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=z({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Dr("invalid",e)}for(a in ye(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Dr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=eo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ql(t),null;case 6:if(e&&null!=t.stateNode)Rl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(Gi.current),Ki(Qi.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ql(t),null;case 13:if(Eo(ta),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ii&&1&t.mode&&!(128&t.flags))hi(),mi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else mi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ql(t),a=!1}else null!==li&&(lu(li),li=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===Rs&&(Rs=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ql(t),null);case 4:return Xi(),Al(e,t),null===e&&Wr(t.stateNode.containerInfo),Ql(t),null;case 10:return Mi(t.type._context),Ql(t),null;case 19:if(Eo(ta),null===(a=t.memoizedState))return Ql(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)Zl(a,!1);else{if(0!==Rs||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=na(e))){for(t.flags|=128,Zl(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Lo(ta,1&ta.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Ws&&(t.flags|=128,r=!0,Zl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=na(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ai)return Ql(t),null}else 2*Ye()-a.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,Zl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ta.current,Lo(ta,r?1&n|2:1&n),t):(Ql(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&As)&&(Ql(t),6&t.subtreeFlags&&(t.flags|=8192)):Ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gl(e,t){switch(ri(t),t.tag){case 1:return Oo(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),Eo(To),Eo(Po),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Eo(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ta),null;case 4:return Xi(),null;case 10:return Mi(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Nl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Al=function(){},Ol=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Qi.current);var i,a=null;switch(n){case"input":o=G(e,o),r=G(e,r),a=[];break;case"select":o=z({},o,{value:void 0}),r=z({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=eo)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){_u(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ts(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[mo],delete t[vo],delete t[yo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=eo));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Yl||es(n,t);case 6:var r=ds,o=fs;ds=null,ps(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),$t(e)):uo(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Yl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ts(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Yl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_u(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,ps(e,t,n),Yl=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(i(160));hs(a,l,o),ds=null,fs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){_u(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),ys(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(t){_u(e,e.return,t)}try{rs(5,e,e.return)}catch(t){_u(e,e.return,t)}}break;case 1:gs(t,e),ys(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(gs(t,e),ys(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){_u(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&Y(o,a),be(s,l);var c=be(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,c)}switch(s){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[mo]=a}catch(t){_u(e,e.return,t)}}break;case 6:if(gs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){_u(e,e.return,t)}}break;case 3:if(gs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){_u(e,e.return,t)}break;case 4:default:gs(t,e),ys(e);break;case 13:gs(t,e),ys(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||($s=Ye())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Yl=(c=Yl)||d,gs(t,e),Yl=c):gs(t,e),ys(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){_u(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){ks(f);continue}}null!==h?(h.return=p,Jl=h):ks(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(t){_u(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){_u(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),ys(e),4&r&&ms(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cs(e,ss(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;us(e,ss(e),a);break;default:throw Error(i(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,xs(e,t,n)}function xs(e,t,n){for(var r=!!(1&e.mode);null!==Jl;){var o=Jl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Yl;l=Kl;var u=Yl;if(Kl=a,(Yl=s)&&!u)for(Jl=o;null!==Jl;)s=(a=Jl).child,22===a.tag&&null!==a.memoizedState?Cs(o):null!==s?(s.return=a,Jl=s):Cs(o);for(;null!==i;)Jl=i,xs(i,t,n),i=i.sibling;Jl=o,Kl=l,Yl=u}ws(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Jl=i):ws(e)}}function ws(e){for(;null!==Jl;){var t=Jl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:rl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(i(163))}Yl||512&t.flags&&is(t)}catch(e){_u(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function ks(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function Cs(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){_u(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){_u(t,o,e)}}var i=t.return;try{is(t)}catch(e){_u(t,i,e)}break;case 5:var a=t.return;try{is(t)}catch(e){_u(t,a,e)}}}catch(e){_u(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Ss,_s=Math.ceil,js=x.ReactCurrentDispatcher,Es=x.ReactCurrentOwner,Ls=x.ReactCurrentBatchConfig,Ms=0,Ps=null,Ts=null,Ns=0,As=0,Os=jo(0),Rs=0,Fs=null,zs=0,Is=0,Hs=0,Ds=null,Bs=null,$s=0,Ws=1/0,Us=null,Vs=!1,Zs=null,Qs=null,qs=!1,Gs=null,Ks=0,Ys=0,Xs=null,Js=-1,eu=0;function tu(){return 6&Ms?Ye():-1!==Js?Js:Js=Ye()}function nu(e){return 1&e.mode?2&Ms&&0!==Ns?Ns&-Ns:null!==vi.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function ru(e,t,n,r){if(50<Ys)throw Ys=0,Xs=null,Error(i(185));vt(e,n,r),2&Ms&&e===Ps||(e===Ps&&(!(2&Ms)&&(Is|=n),4===Rs&&su(e,Ns)),ou(e,r),1===n&&0===Ms&&!(1&t.mode)&&(Ws=Ye()+500,Bo&&Uo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Ps?Ns:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Bo=!0,Wo(e)}(uu.bind(null,e)):Wo(uu.bind(null,e)),lo((function(){!(6&Ms)&&Uo()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Js=-1,eu=0,6&Ms)throw Error(i(327));var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=ft(e,e===Ps?Ns:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=vu(e,r);else{t=r;var o=Ms;Ms|=2;var a=mu();for(Ps===e&&Ns===t||(Us=null,Ws=Ye()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}Li(),js.current=a,Ms=o,null!==Ts?t=0:(Ps=null,Ns=0,t=Rs)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=au(e,o)),1===t)throw n=Fs,pu(e,0),su(e,r),ou(e,Ye()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vu(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=au(e,a))),1!==t)))throw n=Fs,pu(e,0),su(e,r),ou(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ku(e,Bs,Us);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=$s+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=oo(ku.bind(null,e,Bs,Us),t);break}ku(e,Bs,Us);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_s(r/1960))-r)){e.timeoutHandle=oo(ku.bind(null,e,Bs,Us),r);break}ku(e,Bs,Us);break;default:throw Error(i(329))}}}return ou(e,Ye()),e.callbackNode===n?iu.bind(null,e):null}function au(e,t){var n=Ds;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Bs,Bs=n,null!==t&&lu(t)),e}function lu(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function su(e,t){for(t&=~Hs,t&=~Is,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Ms)throw Error(i(327));Cu();var t=ft(e,0);if(!(1&t))return ou(e,Ye()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Fs,pu(e,0),su(e,t),ou(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Bs,Us),ou(e,Ye()),null}function cu(e,t){var n=Ms;Ms|=1;try{return e(t)}finally{0===(Ms=n)&&(Ws=Ye()+500,Bo&&Uo())}}function du(e){null!==Gs&&0===Gs.tag&&!(6&Ms)&&Cu();var t=Ms;Ms|=1;var n=Ls.transition,r=bt;try{if(Ls.transition=null,bt=1,e)return e()}finally{bt=r,Ls.transition=n,!(6&(Ms=t))&&Uo()}}function fu(){As=Os.current,Eo(Os)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,io(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(ri(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ro();break;case 3:Xi(),Eo(To),Eo(Po),oa();break;case 5:ea(r);break;case 4:Xi();break;case 13:case 19:Eo(ta);break;case 10:Mi(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Ps=e,Ts=e=Ou(e.current,null),Ns=As=t,Rs=0,Fs=null,Hs=Is=zs=0,Bs=Ds=null,null!==Ai){for(t=0;t<Ai.length;t++)if(null!==(r=(n=Ai[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ai=null}return e}function hu(e,t){for(;;){var n=Ts;try{if(Li(),ia.current=Ja,da){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}da=!1}if(la=0,ca=ua=sa=null,fa=!1,pa=0,Es.current=null,null===n||null===n.return){Rs=1,Fs=t,Ts=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=Ns,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,yl(h,l,s,0,t),1&h.mode&&gl(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){gl(a,c,t),gu();break e}u=Error(i(426))}else if(ai&&1&s.mode){var v=vl(l);if(null!==v){!(65536&v.flags)&&(v.flags|=256),yl(v,l,s,0,t),gi(cl(u,s));break e}}a=u=cl(u,s),4!==Rs&&(Rs=2),null===Ds?Ds=[a]:Ds.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hl(0,u,t));break e;case 1:s=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Qs&&Qs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function mu(){var e=js.current;return js.current=Ja,null===e?Ja:e}function gu(){0!==Rs&&3!==Rs&&2!==Rs||(Rs=4),null===Ps||!(268435455&zs)&&!(268435455&Is)||su(Ps,Ns)}function vu(e,t){var n=Ms;Ms|=2;var r=mu();for(Ps===e&&Ns===t||(Us=null,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Li(),Ms=n,js.current=r,null!==Ts)throw Error(i(261));return Ps=null,Ns=0,Rs}function yu(){for(;null!==Ts;)xu(Ts)}function bu(){for(;null!==Ts&&!Ge();)xu(Ts)}function xu(e){var t=Ss(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?wu(e):Ts=t,Es.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Rs=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=ql(n,t,As)))return void(Ts=n);if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Rs&&(Rs=5)}function ku(e,t,n){var r=bt,o=Ls.transition;try{Ls.transition=null,bt=1,function(e,t,n,r){do{Cu()}while(null!==Gs);if(6&Ms)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ps&&(Ts=Ps=null,Ns=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||qs||(qs=!0,Pu(tt,(function(){return Cu(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ls.transition,Ls.transition=null;var l=bt;bt=1;var s=Ms;Ms|=4,Es.current=null,function(e,t){if(to=Ut,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==a||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=l),p===a&&++d===r&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(no={focusedElem:e,selectionRange:n},Ut=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:rl(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){_u(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}m=ns,ns=!1}(e,n),vs(n,e),mr(no),Ut=!!to,no=to=null,e.current=n,bs(n,e,o),Ke(),Ms=s,bt=l,Ls.transition=a}else e.current=n;if(qs&&(qs=!1,Gs=e,Ks=o),0===(a=e.pendingLanes)&&(Qs=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Vs)throw Vs=!1,e=Zs,Zs=null,e;!!(1&Ks)&&0!==e.tag&&Cu(),1&(a=e.pendingLanes)?e===Xs?Ys++:(Ys=0,Xs=e):Ys=0,Uo()}(e,t,n,r)}finally{Ls.transition=o,bt=r}return null}function Cu(){if(null!==Gs){var e=xt(Ks),t=Ls.transition,n=bt;try{if(Ls.transition=null,bt=16>e?16:e,null===Gs)var r=!1;else{if(e=Gs,Gs=null,Ks=0,6&Ms)throw Error(i(331));var o=Ms;for(Ms|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(16&Jl.flags){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var p=(d=Jl).sibling,h=d.return;if(as(d),d===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Jl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Jl=l;else e:for(;null!==Jl;){if(2048&(a=Jl).flags)switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Jl=y;break e}Jl=a.return}}var b=e.current;for(Jl=b;null!==Jl;){var x=(l=Jl).child;if(2064&l.subtreeFlags&&null!==x)x.return=l,Jl=x;else e:for(l=b;null!==Jl;){if(2048&(s=Jl).flags)try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){_u(s,s.return,e)}if(s===l){Jl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Jl=w;break e}Jl=s.return}}if(Ms=o,Uo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Ls.transition=t}}return!1}function Su(e,t,n){e=Bi(e,t=hl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ou(e,t))}function _u(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){t=Bi(t,e=ml(t,e=cl(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function ju(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ns&n)===n&&(4===Rs||3===Rs&&(130023424&Ns)===Ns&&500>Ye()-$s?pu(e,0):Hs|=n),ou(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Fi(e,t))&&(vt(e,t,n),ou(e,n))}function Lu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Mu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Eu(e,n)}function Pu(e,t){return Qe(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,n,r){return new Tu(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Au(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case C:return Fu(n.children,o,a,t);case S:l=8,o|=8;break;case _:return(e=Nu(12,n,t,2|o)).elementType=_,e.lanes=a,e;case M:return(e=Nu(13,n,t,o)).elementType=M,e.lanes=a,e;case P:return(e=Nu(19,n,t,o)).elementType=P,e.lanes=a,e;case A:return zu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:l=10;break e;case E:l=9;break e;case L:l=11;break e;case T:l=14;break e;case N:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nu(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Fu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Nu(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Hu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Du(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,l,s){return e=new Du(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function $u(e){if(!e)return Mo;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Oo(n))return zo(e,n,t)}return t}function Wu(e,t,n,r,o,i,a,l,s){return(e=Bu(n,r,!0,e,0,i,0,l,s)).context=$u(null),n=e.current,(i=Di(r=tu(),o=nu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ou(e,r),e}function Uu(e,t,n,r){var o=t.current,i=tu(),a=nu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Di(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(ru(e,o,a,i),$i(e,o,a)),a}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)xl=!0;else{if(!(e.lanes&n||128&t.flags))return xl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),mi();break;case 5:Ji(t);break;case 1:Oo(t.type)&&Io(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ta,1&ta.current),t.flags|=128,null):n&t.child.childLanes?Il(e,t,n):(Lo(ta,1&ta.current),null!==(e=Vl(e,t,n))?e.sibling:null);Lo(ta,1&ta.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,_l(e,t,n)}return Vl(e,t,n)}(e,t,n);xl=!!(131072&e.flags)}else xl=!1,ai&&1048576&t.flags&&ti(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var o=Ao(t,Po.current);Ti(t,n),o=va(null,t,r,e,o,n);var a=ya();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(r)?(a=!0,Io(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ii(t),o.updater=il,t.stateNode=o,o._reactInternals=t,ul(t,r,e,n),t=Ml(null,t,r,!0,a,n)):(t.tag=0,ai&&a&&ni(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Au(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===T)return 14}return 2}(r),e=rl(r,e),o){case 0:t=El(null,t,r,e,n);break e;case 1:t=Ll(null,t,r,e,n);break e;case 11:t=kl(null,t,r,e,n);break e;case 14:t=Cl(null,t,r,rl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,El(e,t,r,o=t.elementType===r?o:rl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ll(e,t,r,o=t.elementType===r?o:rl(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Hi(e,t),Ui(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Tl(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Tl(e,t,r,n,o=cl(Error(i(424)),t));break e}for(ii=co(t.stateNode.containerInfo.firstChild),oi=t,ai=!0,li=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),r===o){t=Vl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&di(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,ro(r,o)?l=null:null!==a&&ro(r,a)&&(t.flags|=32),jl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&di(t),null;case 13:return Il(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,kl(e,t,r,o=t.elementType===r?o:rl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Lo(Si,r._currentValue),r._currentValue=l,null!==a)if(sr(a.value,l)){if(a.children===o.children&&!To.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Di(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Pi(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Pi(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ti(t,n),r=r(o=Ni(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=rl(r=t.type,t.pendingProps),Cl(e,t,r,o=rl(r.type,o),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rl(r,o),Ul(e,t),t.tag=1,Oo(r)?(e=!0,Io(t)):e=!1,Ti(t,n),ll(t,r,o),ul(t,r,o,n),Ml(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return _l(e,t,n)}throw Error(i(156,t.tag))};var qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Vu(a);l.call(e)}}Uu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vu(a);i.call(e)}}var a=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[go]=a.current,Wr(8===e.nodeType?e.parentNode:e),du(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Vu(s);l.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[go]=s.current,Wr(8===e.nodeType?e.parentNode:e),du((function(){Uu(t,s,n,r)})),s}(n,t,e,o,r);return Vu(a)}Ku.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Ku.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Uu(null,e,null,null)})),t[go]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&zt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Ye()),!(6&Ms)&&(Ws=Ye()+500,Uo()))}break;case 13:du((function(){var t=Fi(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Qu(e,1)}},kt=function(e){if(13===e.tag){var t=Fi(e,134217728);null!==t&&ru(t,e,134217728,tu()),Qu(e,134217728)}},Ct=function(e){if(13===e.tag){var t=nu(e),n=Fi(e,t);null!==n&&ru(n,e,t,tu()),Qu(e,t)}},St=function(){return bt},_t=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));Q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Le=cu,Me=du;var tc={usingClientEntryPoint:!1,Events:[wo,ko,Co,je,Ee,cu]},nc={findFiberByHostInstance:xo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,a,l),e[go]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ku(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},20:(e,t,n)=>{"use strict";var r=n(540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,C={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+L(s,0):i,w(a)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),M(a,t,o,"",(function(e){return e}))):null!=a&&(j(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+L(l=e[u],u);s+=M(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=M(l=l.value,t,o,c=i+L(l,u++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function P(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},A={transition:null},O={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:A,ReactCurrentOwner:C};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.act=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)k.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},540:(e,t,n)=>{"use strict";e.exports=n(287)},848:(e,t,n)=>{"use strict";e.exports=n(20)},463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<o&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,A(k);else{var t=r(c);null!==t&&O(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,y(j),j=-1),h=!0;var i=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!M());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&O(w,d.startTime-n),s=!1}return s}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,S=!1,_=null,j=-1,E=5,L=-1;function M(){return!(t.unstable_now()-L<E)}function P(){if(null!==_){var e=t.unstable_now();L=e;var n=!0;try{n=_(!0,e)}finally{n?C():(S=!1,_=null)}}else S=!1}if("function"==typeof b)C=function(){b(P)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,N=T.port2;T.port1.onmessage=P,C=function(){N.postMessage(null)}}else C=function(){v(P,0)};function A(e){_=e,S||(S=!0,C())}function O(e,n){j=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,A(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(y(j),j=-1):g=!0,O(w,i-a))):(e.sortIndex=l,n(u,e),m||h||(m=!0,A(k))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},63:(e,t,n)=>{"use strict";var r=n(540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},888:(e,t,n)=>{"use strict";e.exports=n(63)},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=ampSettings;var t=o(338);const n=window.wp.domReady;var r=o.n(n);const i=window.wp.i18n,a=window.wp.url;var l=o(540),s=o.t(l,2),u=o(961);const c=window.wp.apiFetch;var d=o.n(c);function f(){const[e,t]=(0,l.useState)();return{error:e,setAsyncError:(0,l.useCallback)((e=>{t((()=>{throw e}))}),[])}}var p=o(848);const h=(0,l.createContext)();function m({children:e}){const[t,n]=(0,l.useState)(null);return(0,p.jsx)(h.Provider,{value:{error:t,setError:n},children:e})}const g=(0,l.createContext)();function v({children:e,optionsRestPath:t,populateDefaultValues:n,hasErrorBoundary:r=!1,delaySave:o=!1}){const[i,s]=(0,l.useState)({}),[c,m]=(0,l.useState)(!1),[v,y]=(0,l.useState)(null),[b,x]=(0,l.useState)({}),[w,k]=(0,l.useState)(!1),[C,S]=(0,l.useState)(!1),[_,j]=(0,l.useState)({}),[E,L]=(0,l.useState)({}),{error:M,setError:P}=(0,l.useContext)(h),{setAsyncError:T}=f(),[N,A]=(0,l.useState)(!1),O=(0,l.useRef)(!1);(0,l.useEffect)((()=>()=>{O.current=!0}),[]);const R=(0,l.useCallback)((()=>{M||c||(async()=>{m(!0);try{const e=await d()({path:(0,a.addQueryArgs)(t,{_fields:["suppressed_plugins","suppressible_plugins"]})});if(!0===O.current)return;j({..._,...e})}catch(e){if(!0===O.current)return;return P(e),void(r&&T(e))}m(!1)})()}),[M,c,r,t,_,T,P]);(0,l.useEffect)((()=>{M||Object.keys(_).length||v||(async()=>{y(!0);try{const e=await d()({path:t});if(!0===O.current)return;n||!1!==e.plugin_configured||(e.mobile_redirect=!0,e.reader_theme=null,e.theme_support=null),j(e)}catch(e){if(!0===O.current)return;return P(e),void(r&&T(e))}y(!1)})()}),[M,v,r,_,t,n,T,P]);const F=(0,l.useCallback)((async()=>{k(!0);try{const e={...i};null===e.reader_theme&&delete e.reader_theme,_.plugin_configured||"mobile_redirect"in e||(e.mobile_redirect=_.mobile_redirect),_.plugin_configured||(e.plugin_configured=!0);const[n]=await Promise.all([d()({method:"post",path:t,data:e}),o?new Promise((e=>{setTimeout(e,1e3)})):()=>{}]);if(!0===O.current)return;j(n),P(null)}catch(e){if(!0===O.current)return;return k(!1),P(e),void(r&&T(e))}L({...E,...i}),(0,u.flushSync)((()=>{x(i),s({}),S(!0)})),k(!1)}),[o,r,t,T,_,P,i,E]),z=(0,l.useCallback)((e=>{s({...i,...e}),S(!1)}),[i]),I=(0,l.useCallback)((e=>{const t={...i};delete t[e],s(t)}),[i]);return(0,p.jsx)(g.Provider,{value:{editedOptions:{..._,...i},fetchingOptions:v,hasOptionsChanges:Boolean(Object.keys(i).length),didSaveOptions:C,updates:i,originalOptions:_,saveOptions:F,savedOptions:b,savingOptions:w,unsetOption:I,updateOptions:z,readerModeWasOverridden:N,refetchPluginSuppression:R,setReaderModeWasOverridden:A,modifiedOptions:E},children:e})}const y="reader",b="standard",x="transitional",w=(0,l.createContext)();function k({wpAjaxUrl:t,children:n,currentTheme:r,hideCurrentlyActiveTheme:a=!1,readerThemesRestPath:s,updatesNonce:u,hasErrorBoundary:c=!1}){const{setAsyncError:m}=f(),{error:v,setError:b}=(0,l.useContext)(h),[k,C]=(0,l.useState)(null),[S,_]=(0,l.useState)(!1),[j,E]=(0,l.useState)(null),[L,M]=(0,l.useState)(null),[P,T]=(0,l.useState)(!1),[N,A]=(0,l.useState)(!1),[O,R]=(0,l.useState)(null),{didSaveOptions:F,editedOptions:z,originalOptions:I,updateOptions:H,savingOptions:D}=(0,l.useContext)(g),{reader_theme:B,theme_support:$}=I,{reader_theme:W,theme_support:U}=z,V=(0,l.useRef)(!1);(0,l.useEffect)((()=>()=>{V.current=!0}),[]);const{originalSelectedTheme:Z,selectedTheme:Q}=(0,l.useMemo)((()=>{const e={name:null,availability:null};return j?{originalSelectedTheme:j.find((({slug:e})=>e===B))||e,selectedTheme:j.find((({slug:e})=>e===W))||e}:{originalSelectedTheme:e,selectedTheme:e}}),[B,W,j]),[q,G]=(0,l.useState)(null);(0,l.useEffect)((()=>{if(null===k){if($&&$!==y)return void C(!1);Z.availability&&C(!1)}k?F&&C(!1):$===y&&"active"===Z.availability&&(H({theme_support:x,reader_theme:e.LEGACY_THEME_SLUG}),C(!0))}),[F,$,Z.availability,k,H]),(0,l.useEffect)((()=>{S||("non-installable"===Q.availability||e.USING_FALLBACK_READER_THEME)&&(H({reader_theme:e.LEGACY_THEME_SLUG}),_(!0))}),[Z.availability,Q.availability,S,H]),(0,l.useEffect)((()=>{Q&&D&&!P&&"installable"===Q.availability&&(async()=>{if(!P&&!q){T(!0);try{const e=new o.g.FormData;e.append("action","install-theme"),e.append("slug",Q.slug),e.append("_wpnonce",u);const n=await o.g.fetch(t,{body:e,method:"POST"});if(!0===V.current)return;if(!n.ok)throw new Error((0,i.__)("Reader theme failed to download.","amp"));A(Q.slug)}catch(e){if(!0===V.current)return;G(e)}T(!1)}})()}),[t,P,q,D,Q,U,u]),(0,l.useEffect)((()=>{L||(v||!s||j||y!==U?M(!1):(async()=>{M(!0);try{const e=await d()({path:s,parse:!1});R(e.headers.get("X-AMP-Theme-API-Error"));const t=await e.json();if(!0===V.current)return;E(t)}catch(e){if(!0===V.current)return;return b(e),void(c&&m(e))}M(!1)})())}),[v,c,L,s,m,b,j,U]);const{filteredThemes:K}=(0,l.useMemo)((()=>{let e;return e=a?(j||[]).filter((e=>"active"!==e.availability)):j,{filteredThemes:e}}),[a,j]),{availableThemes:Y,unavailableThemes:X}=(0,l.useMemo)((()=>(K||[]).reduce(((e,t)=>("non-installable"===t.availability?e.unavailableThemes.push(t):e.availableThemes.push(t),e)),{availableThemes:[],unavailableThemes:[]})),[K]);return(0,p.jsx)(w.Provider,{value:{availableThemes:Y,currentTheme:r,downloadedTheme:N,downloadingTheme:P,downloadingThemeError:q,fetchingThemes:L,selectedTheme:Q||{},templateModeWasOverridden:k,themes:K,themesAPIError:O,unavailableThemes:X},children:n})}function C(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=C(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const S=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=C(e))&&(r&&(r+=" "),r+=t);return r},_=function({label:e,children:t}){return(0,p.jsxs)("div",{className:"components-panel__header",children:[e&&(0,p.jsx)("h2",{children:e}),t]})},j=(0,l.forwardRef)((function({header:e,className:t,children:n},r){const o=S(t,"components-panel");return(0,p.jsxs)("div",{className:o,ref:r,children:[e&&(0,p.jsx)(_,{label:e}),n]})}));let E,L,M,P;const T=/<(\/)?(\w+)\s*(\/)?>/g;function N(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}function A(e){const t=function(){const e=T.exec(E);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,a=n.length;return i?["self-closed",o,t,a]:r?["closer",o,t,a]:["opener",o,t,a]}(),[n,r,o,i]=t,a=P.length,s=o>L?L:null;if(!e[r])return O(),!1;switch(n){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=P.pop();M.push(E.substr(e,t))}return O(),!1;case"self-closed":return 0===a?(null!==s&&M.push(E.substr(s,o-s)),M.push(e[r]),L=o+i,!0):(R(N(e[r],o,i)),L=o+i,!0);case"opener":return P.push(N(e[r],o,i,o+i,s)),L=o+i,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:n,prevOffset:r,tokenStart:o,children:i}=P.pop(),a=e?E.substr(r,e-r):E.substr(r);a&&i.push(a),null!==n&&M.push(E.substr(n,o-n)),M.push((0,l.cloneElement)(t,null,...i))}(o),L=o+i,!0;const t=P.pop(),n=E.substr(t.prevOffset,o-t.prevOffset);t.children.push(n),t.prevOffset=o+i;const u=N(t.element,t.tokenStart,t.tokenLength,o+i);return u.children=t.children,R(u),L=o+i,!0;default:return O(),!1}}function O(){const e=E.length-L;0!==e&&M.push(E.substr(L,e))}function R(e){const{element:t,tokenStart:n,tokenLength:r,prevOffset:o,children:i}=e,a=P[P.length-1],s=E.substr(a.prevOffset,n-a.prevOffset);s&&a.children.push(s),a.children.push((0,l.cloneElement)(t,null,...i)),a.prevOffset=o||n+r}const F=(e,t)=>{if(E=e,L=0,M=[],P=[],T.lastIndex=0,!(e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,l.isValidElement)(e)))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(A(t));return(0,l.createElement)(l.Fragment,null,...M)};var z=o(576),I=o.n(z);function H(e){const t=(0,l.useRef)(e);return(0,l.useLayoutEffect)((()=>{t.current=e}),[e]),t}function D(e,t){const n=H(e),r=H(t);return function(){const e=(0,l.useRef)();return(0,l.useCallback)((t=>{t?e.current=(e=>{const t=new(I())(e,{text:()=>"function"==typeof n.current?n.current():n.current||""});return t.on("success",(({clearSelection:e})=>{e(),r.current&&r.current()})),()=>{t.destroy()}})(t):e.current&&e.current()}),[])}()}const B=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},$=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},W=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!$(n))return;if(!B(r))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const l={callback:o,priority:i,namespace:r};if(a[n]){const e=a[n].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=l:e.splice(t,0,l),a.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else a[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}},U=function(e,t,n=!1){return function(r,o){const i=e[t];if(!$(r))return;if(!n&&!B(o))return;if(!i[r])return 0;let a=0;if(n)a=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const e=i[r].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),a++,i.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),a}},V=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some((e=>e.namespace===r)):n in o}},Z=function(e,t,n,r){return function(o,...i){const a=e[t];a[o]||(a[o]={handlers:[],runs:0}),a[o].runs++;const l=a[o].handlers;if(!l||!l.length)return n?i[0]:void 0;const s={name:o,currentIndex:0};return(r?async function(){try{a.__current.add(s);let e=n?i[0]:void 0;for(;s.currentIndex<l.length;){const t=l[s.currentIndex];e=await t.callback.apply(null,i),n&&(i[0]=e),s.currentIndex++}return n?e:void 0}finally{a.__current.delete(s)}}:function(){try{a.__current.add(s);let e=n?i[0]:void 0;for(;s.currentIndex<l.length;)e=l[s.currentIndex].callback.apply(null,i),n&&(i[0]=e),s.currentIndex++;return n?e:void 0}finally{a.__current.delete(s)}})()}},Q=function(e,t){return function(){var n;const r=e[t],o=Array.from(r.__current);return null!==(n=o.at(-1)?.name)&&void 0!==n?n:null}},q=function(e,t){return function(n){const r=e[t];return void 0===n?r.__current.size>0:Array.from(r.__current).some((e=>e.name===n))}},G=function(e,t){return function(n){const r=e[t];if($(n))return r[n]&&r[n].runs?r[n].runs:0}};class K{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=W(this,"actions"),this.addFilter=W(this,"filters"),this.removeAction=U(this,"actions"),this.removeFilter=U(this,"filters"),this.hasAction=V(this,"actions"),this.hasFilter=V(this,"filters"),this.removeAllActions=U(this,"actions",!0),this.removeAllFilters=U(this,"filters",!0),this.doAction=Z(this,"actions",!1,!1),this.doActionAsync=Z(this,"actions",!1,!0),this.applyFilters=Z(this,"filters",!0,!1),this.applyFiltersAsync=Z(this,"filters",!0,!0),this.currentAction=Q(this,"actions"),this.currentFilter=Q(this,"filters"),this.doingAction=q(this,"actions"),this.doingFilter=q(this,"filters"),this.didAction=G(this,"actions"),this.didFilter=G(this,"filters")}}const Y=new K,{addAction:X,addFilter:J,removeAction:ee,removeFilter:te,hasAction:ne,hasFilter:re,removeAllActions:oe,removeAllFilters:ie,doAction:ae,doActionAsync:le,applyFilters:se,applyFiltersAsync:ue,currentAction:ce,currentFilter:de,doingAction:fe,doingFilter:pe,didAction:he,didFilter:me,actions:ge,filters:ve}=Y,ye=Object.create(null);function be(e,t={}){const{since:n,version:r,alternative:o,plugin:i,link:a,hint:l}=t,s=`${e} is deprecated${n?` since version ${n}`:""}${r?` and will be removed${i?` from ${i}`:""} in version ${r}`:""}.${o?` Please use ${o} instead.`:""}${a?` See: ${a}`:""}${l?` Note: ${l}`:""}`;s in ye||(ae("deprecated",e,t,s),console.warn(s),ye[s]=!0)}const xe=new WeakMap,we=function(e,t,n){return(0,l.useMemo)((()=>{if(n)return n;const r=function(e){const t=xe.get(e)||0;return xe.set(e,t+1),t}(e);return t?`${t}-${r}`:r}),[e,n,t])};var ke=Object.defineProperty,Ce=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Le=(e,t,n)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Me=(e,t)=>{for(var n in t||(t={}))je.call(t,n)&&Le(e,n,t[n]);if(_e)for(var n of _e(t))Ee.call(t,n)&&Le(e,n,t[n]);return e},Pe=(e,t)=>Ce(e,Se(t)),Te=(e,t)=>{var n={};for(var r in e)je.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_e)for(var r of _e(e))t.indexOf(r)<0&&Ee.call(e,r)&&(n[r]=e[r]);return n},Ne=Object.defineProperty,Ae=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ie=(e,t,n)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,He=(e,t)=>{for(var n in t||(t={}))Fe.call(t,n)&&Ie(e,n,t[n]);if(Re)for(var n of Re(t))ze.call(t,n)&&Ie(e,n,t[n]);return e},De=(e,t)=>Ae(e,Oe(t));function Be(...e){}function $e(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function We(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Ue(e){return e}function Ve(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function Ze(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function Qe(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function qe(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function Ge(...e){for(const t of e)if(void 0!==t)return t}function Ke(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ye,Xe="undefined"!=typeof window&&!!(null==(Ye=window.document)?void 0:Ye.createElement);function Je(e){return e?e.ownerDocument||e:document}function et(e){return Je(e).defaultView||window}function tt(e,t=!1){const{activeElement:n}=Je(e);if(!(null==n?void 0:n.nodeName))return null;if(rt(n)&&n.contentDocument)return tt(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Je(n).getElementById(e);if(t)return t}}return n}function nt(e,t){return e===t||e.contains(t)}function rt(e){return"IFRAME"===e.tagName}function ot(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==it.indexOf(e.type)}var it=["button","color","file","image","reset","submit"];function at(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function lt(e){return e.target===e.currentTarget}function st(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!nt(n,r)}function ut(e,t,n,r){const o=(e=>{if(r){const t=setTimeout(e,r);return()=>clearTimeout(t)}const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function ct(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(ct(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var dt=Me({},s),ft=dt.useId,pt=(dt.useDeferredValue,dt.useInsertionEffect),ht=Xe?l.useLayoutEffect:l.useEffect;function mt(e){const t=(0,l.useRef)(e);return ht((()=>{t.current=e})),t}function gt(e){const t=(0,l.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return pt?pt((()=>{t.current=e})):t.current=e,(0,l.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function vt(...e){return(0,l.useMemo)((()=>{if(e.some(Boolean))return t=>{for(const n of e)Ke(n,t)}}),e)}function yt(e){if(ft){const t=ft();return e||t}const[t,n]=(0,l.useState)(e);return ht((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function bt(e,t){const n=(0,l.useRef)(!1);(0,l.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,l.useEffect)((()=>()=>{n.current=!1}),[])}function xt(e){return gt("function"==typeof e?e:()=>e)}function wt(e,t,n=[]){const r=(0,l.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return Pe(Me({},e),{wrapElement:r})}function kt(e=!1,t){const[n,r]=(0,l.useState)(null);return{portalRef:vt(r,t),portalNode:n,domReady:!e||n}}function Ct(){return(0,l.useEffect)((()=>{ct("mousemove",Et,!0),ct("mousedown",Lt,!0),ct("mouseup",Lt,!0),ct("keydown",Lt,!0),ct("scroll",Lt,!0)}),[]),gt((()=>St))}var St=!1,_t=0,jt=0;function Et(e){(function(e){const t=e.movementX||e.screenX-_t,n=e.movementY||e.screenY-jt;return _t=e.screenX,jt=e.screenY,t||n||!1})(e)&&(St=!0)}function Lt(){St=!1}function Mt(e,t){const n=e.__unstableInternals;return Ve(n,"Invalid store"),n[t]}function Pt(e,...t){let n=e,r=n,o=Symbol(),i=Be;const a=new Set,l=new Set,s=new Set,u=new Set,c=new Set,d=new WeakMap,f=new WeakMap,p=(e,t,n=u)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),h=(e,i,a=!1)=>{var s;if(!$e(n,e))return;const p=(h=i,m=n[e],function(e){return"function"==typeof e}(h)?h(function(e){return"function"==typeof e}(m)?m():m):h);var h,m;if(p===n[e])return;if(!a)for(const n of t)null==(s=null==n?void 0:n.setState)||s.call(n,e,p);const g=n;n=De(He({},n),{[e]:p});const v=Symbol();o=v,l.add(e);const y=(t,r,o)=>{var i;const a=f.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of u)y(e,g);queueMicrotask((()=>{if(o!==v)return;const e=n;for(const e of c)y(e,r,l);r=e,l.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const l=(u=n,Object.keys(u)).map((e=>We(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&$e(r,e))return Ot(t,[e],(t=>{h(e,t[e],!0)}))})))));var u;const c=[];for(const e of s)c.push(e());const d=t.map(Nt);return i=We(...l,...c,...d),o},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,c)),pick:e=>Pt(function(e,t){const n={};for(const r of t)$e(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>Pt(function(e,t){const n=He({},e);for(const e of t)$e(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Tt(e,...t){if(e)return Mt(e,"setup")(...t)}function Nt(e,...t){if(e)return Mt(e,"init")(...t)}function At(e,...t){if(e)return Mt(e,"subscribe")(...t)}function Ot(e,...t){if(e)return Mt(e,"sync")(...t)}function Rt(e,...t){if(e)return Mt(e,"omit")(...t)}function Ft(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?Object.assign(e,r):e}),{});return Pt(t,...e)}var zt=o(888),{useSyncExternalStore:It}=zt;function Ht(e,t=Ue){const n=l.useCallback((t=>e?At(e,null,t):()=>{}),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&$e(o,n)?o[n]:void 0};return It(n,r,r)}function Dt(e,t,n,r){const o=$e(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=mt({value:o,setValue:i});ht((()=>Ot(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),ht((()=>{if(void 0!==o)return e.setState(n,o),function(e,...t){if(e)return Mt(e,"batch")(...t)}(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Bt(e,t){const[n,r]=l.useState((()=>e(t)));ht((()=>Nt(n)),[n]);const o=l.useCallback((e=>Ht(n,e)),[n]);return[l.useMemo((()=>Pe(Me({},n),{useState:o})),[n,o]),gt((()=>{r((n=>e(Me(Me({},t),n.getState()))))}))]}function $t(e={}){const t=Ft(e.store,Rt(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=Ge(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=Ge(e.animated,null==n?void 0:n.animated,!1),i=Pt({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:Ge(null==n?void 0:n.contentElement,null),disclosureElement:Ge(null==n?void 0:n.disclosureElement,null)},t);return Tt(i,(()=>Ot(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Tt(i,(()=>At(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Tt(i,(()=>Ot(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),De(He({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Wt(e,t,n){return bt(t,[n.store,n.disclosure]),Dt(e,n,"open","setOpen"),Dt(e,n,"mounted","setMounted"),Dt(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Ut(e={}){return $t(e)}function Vt(e,t,n){return Wt(e,t,n)}function Zt(e,t,n){return Dt(e,n,"timeout"),Dt(e,n,"showTimeout"),Dt(e,n,"hideTimeout"),function(e,t,n){return bt(t,[n.popover]),Dt(e,n,"placement"),Vt(e,t,n)}(e,t,n)}function Qt(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=((e,t)=>{var n={};for(var r in e)Fe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Re)for(var r of Re(e))t.indexOf(r)<0&&ze.call(e,r)&&(n[r]=e[r]);return n})(t,["popover"]);const o=Ft(r.store,Rt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Ut(De(He({},r),{store:o})),l=Ge(r.placement,null==i?void 0:i.placement,"bottom"),s=Pt(De(He({},a.getState()),{placement:l,currentPlacement:l,anchorElement:Ge(null==i?void 0:i.anchorElement,null),popoverElement:Ge(null==i?void 0:i.popoverElement,null),arrowElement:Ge(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return De(He(He({},a),s),{setAnchorElement:e=>s.setState("anchorElement",e),setPopoverElement:e=>s.setState("popoverElement",e),setArrowElement:e=>s.setState("arrowElement",e),render:()=>s.setState("rendered",Symbol("rendered"))})}(De(He({},e),{placement:Ge(e.placement,null==n?void 0:n.placement,"bottom")})),o=Ge(e.timeout,null==n?void 0:n.timeout,500),i=Pt(De(He({},r.getState()),{timeout:o,showTimeout:Ge(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:Ge(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:Ge(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return De(He(He({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}(De(He({},e),{placement:Ge(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:Ge(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Pt(De(He({},r.getState()),{type:Ge(e.type,null==n?void 0:n.type,"description"),skipTimeout:Ge(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return He(He({},r),o)}function qt(e){const t=l.forwardRef(((t,n)=>e(Pe(Me({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function Gt(e,t){const n=t,{wrapElement:r,render:o}=n,i=Te(n,["wrapElement","render"]),a=vt(t.ref,function(e){return function(e){return!!e&&!!(0,l.isValidElement)(e)&&("ref"in e.props||"ref"in e)}(e)?Me({},e.props).ref||e.ref:null}(o));let s;if(l.isValidElement(o)){const e=Pe(Me({},o.props),{ref:a});s=l.cloneElement(o,function(e,t){const n=Me({},e);for(const r in t){if(!$e(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?Me(Me({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(i,e))}else s=o?o(i):(0,p.jsx)(e,Me({},i));return r?r(s):s}function Kt(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function Yt(e=[],t=[]){const n=l.createContext(void 0),r=l.createContext(void 0),o=()=>l.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,p.jsx)(n,Pe(Me({},t),{children:e}))),(0,p.jsx)(n.Provider,Me({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=l.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=l.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,p.jsx)(i,Pe(Me({},e),{children:t.reduceRight(((t,n)=>(0,p.jsx)(n,Pe(Me({},e),{children:t}))),(0,p.jsx)(r.Provider,Me({},e)))}))}}Kt((function(e){return e}));var Xt=qt((function(e){return Gt("div",e)}));Object.assign(Xt,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=qt((function(e){return Gt(t,e)})),e)),{}));var Jt=Yt(),en=(Jt.useContext,Jt.useScopedContext,Jt.useProviderContext),tn=Yt([Jt.ContextProvider],[Jt.ScopedContextProvider]),nn=(tn.useContext,tn.useScopedContext,tn.useProviderContext),rn=tn.ContextProvider,on=tn.ScopedContextProvider,an=(0,l.createContext)(void 0),ln=(0,l.createContext)(void 0),sn=Yt([rn],[on]),un=(sn.useContext,sn.useScopedContext,sn.useProviderContext),cn=sn.ContextProvider,dn=sn.ScopedContextProvider,fn=Yt([cn],[dn]),pn=(fn.useContext,fn.useScopedContext,fn.useProviderContext),hn=fn.ContextProvider,mn=fn.ScopedContextProvider,gn=(0,l.createContext)(!0),vn="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function yn(e){return!!e.matches(vn)&&!!at(e)&&!e.closest("[inert]")}function bn(e){if(!yn(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=tt(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function xn(e,t){const n=Array.from(e.querySelectorAll(vn));t&&n.unshift(e);const r=n.filter(yn);return r.forEach(((e,t)=>{if(rt(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...xn(n))}})),r}function wn(e,t,n){const r=Array.from(e.querySelectorAll(vn)),o=r.filter(bn);return t&&bn(e)&&o.unshift(e),o.forEach(((e,t)=>{if(rt(e)&&e.contentDocument){const r=wn(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function kn(e,t){return function(e,t,n,r){const o=tt(e),i=xn(e,!1),a=i.indexOf(o),l=i.slice(a+1);return l.find(bn)||(n?i.find(bn):null)||(r?l[0]:null)||null}(document.body,0,e,t)}function Cn(e,t){return function(e,t,n,r){const o=tt(e),i=xn(e,!1).reverse(),a=i.indexOf(o),l=i.slice(a+1);return l.find(bn)||(n?i.find(bn):null)||(r?l[0]:null)||null}(document.body,0,e,t)}function Sn(e){const t=tt(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function jn(e){const t=tt(e);if(!t)return!1;if(nt(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}function En(e){!jn(e)&&yn(e)&&e.focus()}function Ln(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function Mn(){return!!Xe&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function Pn(){return Xe&&Mn()&&/apple/i.test(navigator.vendor)}var Tn=Pn(),Nn=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],An=Symbol("safariFocusAncestor");function On(e,t){e&&(e[An]=t)}function Rn(e){return!("input"!==e.tagName.toLowerCase()||!e.type||"radio"!==e.type&&"checkbox"!==e.type)}function Fn(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function zn(e,t){return gt((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var In=!0;function Hn(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(In=!1))}function Dn(e){e.metaKey||e.ctrlKey||e.altKey||(In=!0)}var Bn=Kt((function(e){var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=Te(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,l.useRef)(null);(0,l.useEffect)((()=>{n&&(ct("mousedown",Hn,!0),ct("keydown",Dn,!0))}),[n]),Tn&&(0,l.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!Rn(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",r);return()=>{for(const e of t)e.removeEventListener("mouseup",r)}}),[n]);const u=n&&Qe(a),c=!!u&&!r,[d,f]=(0,l.useState)(!1);(0,l.useEffect)((()=>{n&&c&&d&&f(!1)}),[n,c,d]),(0,l.useEffect)((()=>{if(!n)return;if(!d)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{yn(e)||f(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const p=zn(a.onKeyPressCapture,u),h=zn(a.onMouseDownCapture,u),m=zn(a.onClickCapture,u),g=a.onMouseDown,v=gt((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!Tn)return;if(function(e){return Boolean(e.currentTarget&&!nt(e.currentTarget,e.target))}(e))return;if(!ot(t)&&!Rn(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!yn(e);)e=e.closest(vn);return e||null}(t.parentElement);On(i,!0),ut(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),On(i,!1),r||En(t)}))})),y=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Sn(r)&&(null==i||i(e),e.defaultPrevented||(r.dataset.focusVisible="true",f(!0)))},b=a.onKeyDownCapture,x=gt((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!lt(e))return;const t=e.currentTarget;ut(t,"focusout",(()=>y(e,t)))})),w=a.onFocusCapture,k=gt((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(!lt(e))return void f(!1);const t=e.currentTarget;In||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):Nn.includes(r))}(e.target)?ut(e.target,"focusout",(()=>y(e,t))):f(!1)})),C=a.onBlur,S=gt((e=>{null==C||C(e),n&&st(e)&&f(!1)})),_=(0,l.useContext)(gn),j=gt((e=>{n&&o&&e&&_&&queueMicrotask((()=>{Sn(e)||yn(e)&&e.focus()}))})),E=function(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,l.useState)((()=>n(t)));return ht((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}(s),L=n&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(E),M=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(E),P=a.style,T=(0,l.useMemo)((()=>c?Me({pointerEvents:"none"},P):P),[c,P]);return qe(a=Pe(Me({"data-focus-visible":n&&d||void 0,"data-autofocus":o||void 0,"aria-disabled":u||void 0},a),{ref:vt(s,j,a.ref),style:T,tabIndex:Fn(n,c,L,M,a.tabIndex),disabled:!(!M||!c)||void 0,contentEditable:u?void 0:a.contentEditable,onKeyPressCapture:p,onClickCapture:m,onMouseDownCapture:h,onMouseDown:v,onKeyDownCapture:x,onFocusCapture:k,onBlur:S}))})),$n=(qt((function(e){return Gt("div",Bn(e))})),Kt((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Te(t,["store","showOnHover"]);const i=pn();Ve(n=n||i,!1);const a=Qe(o),s=(0,l.useRef)(0);(0,l.useEffect)((()=>()=>window.clearTimeout(s.current)),[]),(0,l.useEffect)((()=>ct("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(s.current),s.current=0)}),!0)),[n]);const u=o.onMouseMove,c=xt(r),d=Ct(),f=gt((e=>{if(null==u||u(e),a)return;if(!n)return;if(e.defaultPrevented)return;if(s.current)return;if(!d())return;if(!c(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{s.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},l=null!=r?r:o;0===l?i():s.current=window.setTimeout(i,l)})),p=o.onClick,h=gt((e=>{null==p||p(e),n&&(window.clearTimeout(s.current),s.current=0)})),m=(0,l.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=Pe(Me({},o),{ref:vt(m,o.ref),onMouseMove:f,onClick:h}),Bn(o)}))),Wn=(qt((function(e){return Gt("a",$n(e))})),Yt([hn],[mn])),Un=(Wn.useContext,Wn.useScopedContext,Wn.useProviderContext),Vn=(Wn.ContextProvider,Wn.ScopedContextProvider),Zn=Pt({activeStore:null});function Qn(e){return()=>{const{activeStore:t}=Zn.getState();t===e&&Zn.setState("activeStore",null)}}var qn=Kt((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Te(t,["store","showOnHover"]);const i=Un();Ve(n=n||i,!1);const a=(0,l.useRef)(!1);(0,l.useEffect)((()=>Ot(n,["mounted"],(e=>{e.mounted||(a.current=!1)}))),[n]),(0,l.useEffect)((()=>{if(n)return We(Qn(n),Ot(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=Zn.getState();return e!==n&&(null==e||e.hide()),Zn.setState("activeStore",n)}const t=setTimeout(Qn(n),e.skipTimeout);return()=>clearTimeout(t)})))}),[n]);const s=o.onMouseEnter,u=gt((e=>{null==s||s(e),a.current=!0})),c=o.onFocusVisible,d=gt((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),f=o.onBlur,p=gt((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=Zn.getState();a.current=!1,t===n&&Zn.setState("activeStore",null)})),h=n.useState("type"),m=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=Pe(Me({"aria-labelledby":"label"===h?m:void 0},o),{onMouseEnter:u,onFocusVisible:d,onBlur:p}),$n(Me({store:n,showOnHover(e){if(!a.current)return!1;if(Ze(r,e))return!1;const{activeStore:t}=Zn.getState();return!t||(null==n||n.show(),!1)}},o))})),Gn=qt((function(e){return Gt("div",qn(e))}));function Kn(e){return[e.clientX,e.clientY]}function Yn(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[l,s]=t[i],[u,c]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(s-c)*(n-l)-(l-u)*(r-s);if(c<s){if(r>=c&&r<s){if(0===f)return!0;f>0&&(r===c?r>d&&(o=!o):o=!o)}}else if(s<c){if(r>s&&r<=c){if(0===f)return!0;f<0&&(r===c?r<d&&(o=!o):o=!o)}}else if(r===s&&(n>=u&&n<=l||n>=l&&n<=u))return!0}return o}function Xn(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[l,s]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,l]=e;return[a<i?"left":a>r?"right":null,l<n?"top":l>o?"bottom":null]}(t,n),u=[t];return l?("top"!==s&&u.push(["left"===l?a:o,r]),u.push(["left"===l?o:a,r]),u.push(["left"===l?o:a,i]),"bottom"!==s&&u.push(["left"===l?a:o,i])):"top"===s?(u.push([a,r]),u.push([a,i]),u.push([o,i]),u.push([o,r])):(u.push([a,i]),u.push([a,r]),u.push([o,r]),u.push([o,i])),u}function Jn(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||"true"===n||!t.length||t.some((e=>n===e)))}var er=new WeakMap;function tr(e,t,n){er.has(e)||er.set(e,new Map);const r=er.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function nr(e,t,n){return tr(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function rr(e,t,n){return tr(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function or(e,t){return e?tr(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}})):()=>{}}var ir=["SCRIPT","STYLE"];function ar(e){return`__ariakit-dialog-snapshot-${e}`}function lr(e,t,n){return!ir.includes(t.tagName)&&!!function(e,t){const n=Je(t),r=ar(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&nt(t,e)))}function sr(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&e!==o&&e.contains(o))),a=Je(o),l=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,l),!i)for(const r of o.parentElement.children)lr(e,r,t)&&n(r,l);o=o.parentElement}}}function ur(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function cr(e,t=""){return We(rr(e,ur("",!0),!0),rr(e,ur(t,!0),!0))}function dr(e,t){if(e[ur(t,!0)])return!0;const n=ur(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function fr(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return sr(e,t,(t=>{Jn(t,...r)||n.unshift(function(e,t=""){return We(rr(e,ur(),!0),rr(e,ur(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(cr(t,e))})),()=>{for(const e of n)e()}}function pr(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function hr(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function mr(e,t,n){return!(n||!1===t||e&&!t)}var gr=Kt((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Te(t,["store","alwaysVisible"]);const i=en();Ve(n=n||i,!1);const a=(0,l.useRef)(null),s=yt(o.id),[c,d]=(0,l.useState)(null),f=n.useState("open"),h=n.useState("mounted"),m=n.useState("animated"),g=n.useState("contentElement"),v=Ht(n.disclosure,"contentElement");ht((()=>{a.current&&(null==n||n.setContentElement(a.current))}),[n]),ht((()=>{let e;return null==n||n.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==n||n.setState("animated",e))}}),[n]),ht((()=>{if(m){if(null==g?void 0:g.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{d(f?"enter":h?"leave":null)}));d(null)}}),[m,g,f,h]),ht((()=>{if(!n)return;if(!m)return;if(!c)return;if(!g)return;const e=()=>null==n?void 0:n.setState("animating",!1),t=()=>(0,u.flushSync)(e);if("leave"===c&&f)return;if("enter"===c&&!f)return;if("number"==typeof m)return pr(m,t);const{transitionDuration:r,animationDuration:o,transitionDelay:i,animationDelay:a}=getComputedStyle(g),{transitionDuration:l="0",animationDuration:s="0",transitionDelay:d="0",animationDelay:p="0"}=v?getComputedStyle(v):{},h=hr(i,a,d,p)+hr(r,o,l,s);return h?pr(Math.max(h-1e3/60,0),t):("enter"===c&&n.setState("animated",!1),void e())}),[n,m,g,v,f,c]),o=wt(o,(e=>(0,p.jsx)(on,{value:n,children:e})),[n]);const y=mr(h,o.hidden,r),b=o.style,x=(0,l.useMemo)((()=>y?Pe(Me({},b),{display:"none"}):b),[y,b]);return qe(o=Pe(Me({id:s,"data-open":f||void 0,"data-enter":"enter"===c||void 0,"data-leave":"leave"===c||void 0,hidden:y},o),{ref:vt(s?n.setContentElement:null,a,o.ref),style:x}))})),vr=qt((function(e){return Gt("div",gr(e))}));function yr({store:e,backdrop:t,alwaysVisible:n,hidden:r}){const o=(0,l.useRef)(null),i=function(e={}){const[t,n]=Bt($t,e);return Wt(t,n,e)}({disclosure:e}),a=Ht(e,"contentElement");(0,l.useEffect)((()=>{const e=o.current,t=a;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[a]),ht((()=>{const e=null==a?void 0:a.id;if(!e)return;const t=o.current;return t?cr(t,e):void 0}),[a]);const s=gr({ref:o,store:i,role:"presentation","data-backdrop":(null==a?void 0:a.id)||"",alwaysVisible:n,hidden:null!=r?r:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if((0,l.isValidElement)(t))return(0,p.jsx)(Xt,Pe(Me({},s),{render:t}));const u="boolean"!=typeof t?t:"div";return(0,p.jsx)(Xt,Pe(Me({},s),{render:(0,p.jsx)(u,{})}))}function br(){return"inert"in HTMLElement.prototype}function xr(e,t){if(!("style"in e))return Be;if(br())return rr(e,"inert",!0);const n=wn(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&nt(t,e))))return Be;const n=tr(e,"focus",(()=>(e.focus=Be,()=>{delete e.focus})));return We(nr(e,"tabindex","-1"),n)}));return We(...n,function(e){return nr(e,"aria-hidden","true")}(e),or(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function wr(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=(0,l.useReducer)((()=>[]),[]),a=(0,l.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=Je(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,l.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=Je(n);if(a())return o.setAttribute(e,t),()=>o.removeAttribute(e);const l=new MutationObserver((()=>(0,u.flushSync)(i)));return l.observe(o,{attributeFilter:[e]}),()=>l.disconnect()}),[o,r,t,n,a,e]),a}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,l.useEffect)((()=>{if(!r())return;if(!e)return;const t=Je(e),n=et(e),{documentElement:o,body:i}=t,a=o.style.getPropertyValue("--scrollbar-width"),l=a?Number.parseInt(a):n.innerWidth-o.clientWidth,s=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),u=Mn()&&!(Xe&&navigator.platform.startsWith("Mac")&&(!Xe||!navigator.maxTouchPoints));return We((d="--scrollbar-width",f=`${l}px`,(c=o)?tr(c,d,(()=>{const e=c.style.getPropertyValue(d);return c.style.setProperty(d,f),()=>{e?c.style.setProperty(d,e):c.style.removeProperty(d)}})):()=>{}),u?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:a}=n,u=null!=(e=null==a?void 0:a.offsetLeft)?e:0,c=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=or(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(c))+"px",left:-(r-Math.floor(u))+"px",right:"0",[s]:`${l}px`});return()=>{d(),n.scrollTo({left:r,top:o,behavior:"instant"})}})():or(i,{overflow:"hidden",[s]:`${l}px`}));var c,d,f}),[r,e])}qt((function(e){var t=e,{unmountOnHide:n}=t,r=Te(t,["unmountOnHide"]);const o=en();return!1===Ht(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,p.jsx)(vr,Me({},r))}));var kr=(0,l.createContext)({});function Cr({store:e,type:t,listener:n,capture:r,domReady:o}){const i=gt(n),a=Ht(e,"open"),s=(0,l.useRef)(!1);ht((()=>{if(!a)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{s.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,a,o]),(0,l.useEffect)((()=>{if(a)return ct(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;var a;n&&(o&&function(e){return"HTML"===e.tagName||nt(Je(e).body,e)}(o)&&(nt(n,o)||function(e,t){if(!e)return!1;if(nt(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=Je(e).getElementById(n);if(t)return nt(e,t)}return!1}(r,o)||o.hasAttribute("data-focus-trap")||function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n)||s.current&&!dr(o,n.id)||(a=o)&&a[An]||i(t)))}),r)}),[a,r])}function Sr(e,t){return"function"==typeof e?e(t):!!e}var _r=Kt((function(e){var t=e,{autoFocusOnShow:n=!0}=t,r=Te(t,["autoFocusOnShow"]);return wt(r,(e=>(0,p.jsx)(gn.Provider,{value:n,children:e})),[n])})),jr=(qt((function(e){return Gt("div",_r(e))})),(0,l.createContext)(0));function Er({level:e,children:t}){const n=(0,l.useContext)(jr),r=Math.max(Math.min(e||n+1,6),1);return(0,p.jsx)(jr.Provider,{value:r,children:t})}var Lr=Kt((function(e){return Pe(Me({},e),{style:Me({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})})),Mr=(qt((function(e){return Gt("span",Lr(e))})),Kt((function(e){return e=Pe(Me({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:Me({position:"fixed",top:0,left:0},e.style)}),Lr(e)}))),Pr=qt((function(e){return Gt("span",Mr(e))})),Tr=(0,l.createContext)(null);function Nr(e){queueMicrotask((()=>{null==e||e.focus()}))}var Ar=Kt((function(e){var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:a=!0}=t,s=Te(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=(0,l.useRef)(null),d=vt(c,s.ref),f=(0,l.useContext)(Tr),[h,m]=(0,l.useState)(null),[g,v]=(0,l.useState)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(null),w=(0,l.useRef)(null);return ht((()=>{const e=c.current;if(!e||!a)return void m(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:Je(e).createElement("div")}(e,o);if(!t)return void m(null);const n=t.isConnected;if(!n){const n=f||function(e){return Je(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}()),m(t),Ke(i,t),n?void 0:()=>{t.remove(),Ke(i,null)}}),[a,o,f,i]),ht((()=>{if(!a)return;if(!n)return;if(!r)return;const e=Je(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),v(e),()=>{e.remove(),v(null)}}),[a,n,r]),(0,l.useEffect)((()=>{if(!h)return;if(!n)return;let e=0;const t=t=>{if(!st(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}(h);e=requestAnimationFrame((()=>{!function(e){const t=wn(e,!0);for(const e of t)Ln(e)}(h)}))};return h.addEventListener("focusin",t,!0),h.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),h.removeEventListener("focusin",t,!0),h.removeEventListener("focusout",t,!0)}}),[h,n]),s=wt(s,(e=>{if(e=(0,p.jsx)(Tr.Provider,{value:h||f,children:e}),!a)return e;if(!h)return(0,p.jsx)("span",{ref:d,id:s.id,style:{position:"fixed"},hidden:!0});e=(0,p.jsxs)(p.Fragment,{children:[n&&h&&(0,p.jsx)(Pr,{ref:b,"data-focus-trap":s.id,className:"__focus-trap-inner-before",onFocus:e=>{st(e,h)?Nr(kn()):Nr(y.current)}}),e,n&&h&&(0,p.jsx)(Pr,{ref:x,"data-focus-trap":s.id,className:"__focus-trap-inner-after",onFocus:e=>{st(e,h)?Nr(Cn()):Nr(w.current)}})]}),h&&(e=(0,u.createPortal)(e,h));let t=(0,p.jsxs)(p.Fragment,{children:[n&&h&&(0,p.jsx)(Pr,{ref:y,"data-focus-trap":s.id,className:"__focus-trap-outer-before",onFocus:e=>{e.relatedTarget!==w.current&&st(e,h)?Nr(b.current):Nr(Cn())}}),n&&(0,p.jsx)("span",{"aria-owns":null==h?void 0:h.id,style:{position:"fixed"}}),n&&h&&(0,p.jsx)(Pr,{ref:w,"data-focus-trap":s.id,className:"__focus-trap-outer-after",onFocus:e=>{if(st(e,h))Nr(x.current);else{const e=kn();if(e===b.current)return void requestAnimationFrame((()=>{var e;return null==(e=kn())?void 0:e.focus()}));Nr(e)}}})]});return g&&n&&(t=(0,u.createPortal)(t,g)),(0,p.jsxs)(p.Fragment,{children:[t,e]})}),[h,f,a,s.id,n,g]),s=Pe(Me({},s),{ref:d})})),Or=(qt((function(e){return Gt("div",Ar(e))})),Pn());function Rr(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?yn(n)?n:null:n:null}var Fr=Kt((function(e){var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:a=!0,portal:s=!!a,backdrop:u=!!a,hideOnEscape:c=!0,hideOnInteractOutside:d=!0,getPersistentElements:f,preventBodyScroll:h=!!a,autoFocusOnShow:m=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:y,unmountOnHide:b,unstable_treeSnapshotKey:x}=t,w=Te(t,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const k=nn(),C=(0,l.useRef)(null),S=function(e={}){const[t,n]=Bt(Ut,e);return Vt(t,n,e)}({store:n||k,open:r,setOpen(e){if(e)return;const t=C.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});o&&t.addEventListener("close",o,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&S.setOpen(!0)}}),{portalRef:_,domReady:j}=kt(s,w.portalRef),E=w.preserveTabOrder,L=Ht(S,(e=>E&&!a&&e.mounted)),M=yt(w.id),P=Ht(S,"open"),T=Ht(S,"mounted"),N=Ht(S,"contentElement"),A=mr(T,w.hidden,w.alwaysVisible);wr(N,M,h&&!A),function(e,t,n){const r=function(e){const t=(0,l.useRef)();return(0,l.useEffect)((()=>{if(e)return ct("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(Ht(e,"open")),o={store:e,domReady:n,capture:!0};Cr(Pe(Me({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&at(i)&&dr(i,null==o?void 0:o.id)&&Sr(t,n)&&e.hide()}})),Cr(Pe(Me({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==Je(r)&&Sr(t,n)&&e.hide()}})),Cr(Pe(Me({},o),{type:"contextmenu",listener:n=>{Sr(t,n)&&e.hide()}}))}(S,d,j);const{wrapElement:O,nestedDialogs:R}=function(e){const t=(0,l.useContext)(kr),[n,r]=(0,l.useState)([]),o=(0,l.useCallback)((e=>{var n;return r((t=>[...t,e])),We(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);ht((()=>Ot(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const i=(0,l.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,l.useCallback)((e=>(0,p.jsx)(kr.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(S);w=wt(w,O,[O]),ht((()=>{if(!P)return;const e=C.current,t=tt(e,!0);t&&"BODY"!==t.tagName&&(e&&nt(e,t)||S.setDisclosureElement(t))}),[S,P]),Or&&(0,l.useEffect)((()=>{if(!T)return;const{disclosureElement:e}=S.getState();if(!e)return;if(!ot(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),ut(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||En(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[S,T]),(0,l.useEffect)((()=>{if(!T)return;if(!j)return;const e=C.current;if(!e)return;const t=et(e),n=t.visualViewport||t,r=()=>{var n,r;const o=null!=(r=null==(n=t.visualViewport)?void 0:n.height)?r:t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[T,j]),(0,l.useEffect)((()=>{if(!a)return;if(!T)return;if(!j)return;const e=C.current;return e?e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=Je(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,S.hide):void 0}),[S,a,T,j]),ht((()=>{if(!br())return;if(P)return;if(!T)return;if(!j)return;const e=C.current;return e?xr(e):void 0}),[P,T,j]);const F=P&&j;ht((()=>{if(!M)return;if(!F)return;const e=C.current;return function(e,t){const{body:n}=Je(t[0]),r=[];return sr(e,t,(t=>{r.push(rr(t,ar(e),!0))})),We(rr(n,ar(e),!0),(()=>{for(const e of r)e()}))}(M,[e])}),[M,F,x]);const z=gt(f);ht((()=>{if(!M)return;if(!F)return;const{disclosureElement:e}=S.getState(),t=[C.current,...z()||[],...R.map((e=>e.getState().contentElement))];return a?We(fr(M,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return sr(e,t,(e=>{Jn(e,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some((e=>n===e)))}(e,...r)||n.unshift(xr(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&nt(t,e)))||n.unshift(nr(e,"role","none")))})),()=>{for(const e of n)e()}}(M,t)):fr(M,[e,...t])}),[M,S,F,z,R,a,x]);const I=!!m,H=xt(m),[D,B]=(0,l.useState)(!1);(0,l.useEffect)((()=>{if(!P)return;if(!I)return;if(!j)return;if(!(null==N?void 0:N.isConnected))return;const e=Rr(v,!0)||N.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=wn(e,t,n);return r||null}(N,!0,s&&L)||N,t=yn(e);H(t?e:null)&&(B(!0),queueMicrotask((()=>{e.focus(),Or&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[P,I,j,N,v,s,L,H]);const $=!!g,W=xt(g),[U,V]=(0,l.useState)(!1);(0,l.useEffect)((()=>{if(P)return V(!0),()=>V(!1)}),[P]);const Z=(0,l.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=S.getState();if(function(e){const t=tt();return!(!t||e&&nt(e,t)||!yn(t))}(e))return;let r=Rr(y)||n;if(null==r?void 0:r.id){const e=Je(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!yn(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=Je(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&yn(r);o||!t?W(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>Z(e,!1)))}),[S,y,W]),Q=(0,l.useRef)(!1);ht((()=>{if(P)return;if(!U)return;if(!$)return;const e=C.current;Q.current=!0,Z(e)}),[P,U,j,$,Z]),(0,l.useEffect)((()=>{if(!U)return;if(!$)return;const e=C.current;return()=>{Q.current?Q.current=!1:Z(e)}}),[U,$,Z]);const q=xt(c);(0,l.useEffect)((()=>{if(j&&T)return ct("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=C.current;if(!t)return;if(dr(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=S.getState();("BODY"===n.tagName||nt(t,n)||!r||nt(r,n))&&q(e)&&S.hide()}),!0)}),[S,j,T,q]);const G=(w=wt(w,(e=>(0,p.jsx)(Er,{level:a?1:void 0,children:e})),[a])).hidden,K=w.alwaysVisible;w=wt(w,(e=>u?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(yr,{store:S,backdrop:u,hidden:G,alwaysVisible:K}),e]}):e),[S,u,G,K]);const[Y,X]=(0,l.useState)(),[J,ee]=(0,l.useState)();return w=wt(w,(e=>(0,p.jsx)(on,{value:S,children:(0,p.jsx)(an.Provider,{value:X,children:(0,p.jsx)(ln.Provider,{value:ee,children:e})})})),[S]),w=Pe(Me({id:M,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":Y,"aria-describedby":J},w),{ref:vt(C,w.ref)}),w=_r(Pe(Me({},w),{autoFocusOnShow:D})),w=gr(Me({store:S},w)),w=Bn(Pe(Me({},w),{focusable:i})),Ar(Pe(Me({portal:s},w),{portalRef:_,preserveTabOrder:L}))}));function zr(e,t=nn){return qt((function(n){const r=t();return Ht(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,p.jsx)(e,Me({},n)):null}))}zr(qt((function(e){return Gt("div",Fr(e))})),nn);const Ir=Math.min,Hr=Math.max,Dr=Math.round,Br=Math.floor,$r=e=>({x:e,y:e}),Wr={left:"right",right:"left",bottom:"top",top:"bottom"},Ur={start:"end",end:"start"};function Vr(e,t,n){return Hr(e,Ir(t,n))}function Zr(e,t){return"function"==typeof e?e(t):e}function Qr(e){return e.split("-")[0]}function qr(e){return e.split("-")[1]}function Gr(e){return"x"===e?"y":"x"}function Kr(e){return"y"===e?"height":"width"}function Yr(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function Xr(e){return Gr(Yr(e))}function Jr(e){return e.replace(/start|end/g,(e=>Ur[e]))}function eo(e){return e.replace(/left|right|bottom|top/g,(e=>Wr[e]))}function to(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function no(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ro(e,t,n){let{reference:r,floating:o}=e;const i=Yr(t),a=Xr(t),l=Kr(a),s=Qr(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(qr(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function oo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Zr(t,e),h=to(p),m=l[f?"floating"===d?"reference":"floating":d],g=no(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=no(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-x.top+h.top)/b.y,bottom:(x.bottom-g.bottom+h.bottom)/b.y,left:(g.left-x.left+h.left)/b.x,right:(x.right-g.right+h.right)/b.x}}function io(){return"undefined"!=typeof window}function ao(e){return uo(e)?(e.nodeName||"").toLowerCase():"#document"}function lo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function so(e){var t;return null==(t=(uo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uo(e){return!!io()&&(e instanceof Node||e instanceof lo(e).Node)}function co(e){return!!io()&&(e instanceof Element||e instanceof lo(e).Element)}function fo(e){return!!io()&&(e instanceof HTMLElement||e instanceof lo(e).HTMLElement)}function po(e){return!(!io()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof lo(e).ShadowRoot)}function ho(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mo(e){return["table","td","th"].includes(ao(e))}function go(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function vo(e){const t=yo(),n=co(e)?xo(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function yo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bo(e){return["html","body","#document"].includes(ao(e))}function xo(e){return lo(e).getComputedStyle(e)}function wo(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ko(e){if("html"===ao(e))return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||so(e);return po(t)?t.host:t}function Co(e){const t=ko(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:fo(t)&&ho(t)?t:Co(t)}function So(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Co(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=lo(o);if(i){const e=_o(a);return t.concat(a,a.visualViewport||[],ho(o)?o:[],e&&n?So(e):[])}return t.concat(o,So(o,[],n))}function _o(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=xo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Dr(n)!==i||Dr(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Eo(e){return co(e)?e:e.contextElement}function Lo(e){const t=Eo(e);if(!fo(t))return $r(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=jo(t);let a=(i?Dr(n.width):n.width)/r,l=(i?Dr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Mo=$r(0);function Po(e){const t=lo(e);return yo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Mo}function To(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Eo(e);let a=$r(1);t&&(r?co(r)&&(a=Lo(r)):a=Lo(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==lo(e))&&t}(i,n,r)?Po(i):$r(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=lo(i),t=r&&co(r)?lo(r):r;let n=e,o=_o(n);for(;o&&r&&t!==n;){const e=Lo(o),t=o.getBoundingClientRect(),r=xo(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=lo(o),o=_o(n)}}return no({width:c,height:d,x:s,y:u})}function No(e,t){const n=wo(e).scrollLeft;return t?t.left+n:To(so(e)).left+n}function Ao(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:No(e,r)),y:r.top+t.scrollTop}}function Oo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=lo(e),r=so(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=yo();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=so(e),n=wo(e),r=e.ownerDocument.body,o=Hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+No(e);const l=-n.scrollTop;return"rtl"===xo(r).direction&&(a+=Hr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(so(e));else if(co(t))r=function(e,t){const n=To(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=fo(e)?Lo(e):$r(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Po(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return no(r)}function Ro(e,t){const n=ko(e);return!(n===t||!co(n)||bo(n))&&("fixed"===xo(n).position||Ro(n,t))}function Fo(e,t,n){const r=fo(t),o=so(t),i="fixed"===n,a=To(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=$r(0);if(r||!r&&!i)if(("body"!==ao(t)||ho(o))&&(l=wo(t)),r){const e=To(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=No(o));const u=!o||r||i?$r(0):Ao(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}function zo(e){return"static"===xo(e).position}function Io(e,t){if(!fo(e)||"fixed"===xo(e).position)return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function Ho(e,t){const n=lo(e);if(go(e))return n;if(!fo(e)){let t=ko(e);for(;t&&!bo(t);){if(co(t)&&!zo(t))return t;t=ko(t)}return n}let r=Io(e,t);for(;r&&mo(r)&&zo(r);)r=Io(r,t);return r&&bo(r)&&zo(r)&&!vo(r)?n:r||function(e){let t=ko(e);for(;fo(t)&&!bo(t);){if(vo(t))return t;if(go(t))return null;t=ko(t)}return null}(e)||n}const Do={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=so(r),l=!!t&&go(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=$r(1);const c=$r(0),d=fo(r);if((d||!d&&!i)&&(("body"!==ao(r)||ho(a))&&(s=wo(r)),fo(r))){const e=To(r);u=Lo(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!a||d||i?$r(0):Ao(a,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:so,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?go(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=So(e,[],!1).filter((e=>co(e)&&"body"!==ao(e))),o=null;const i="fixed"===xo(e).position;let a=i?ko(e):e;for(;co(a)&&!bo(a);){const t=xo(a),n=vo(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ho(a)&&!n&&Ro(e,a))?r=r.filter((e=>e!==a)):o=t,a=ko(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=Oo(t,n,o);return e.top=Hr(r.top,e.top),e.right=Ir(r.right,e.right),e.bottom=Ir(r.bottom,e.bottom),e.left=Hr(r.left,e.left),e}),Oo(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ho,getElementRects:async function(e){const t=this.getOffsetParent||Ho,n=this.getDimensions,r=await n(e.floating);return{reference:Fo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=jo(e);return{width:t,height:n}},getScale:Lo,isElement:co,isRTL:function(e){return"rtl"===xo(e).direction}};function Bo(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return Pe(Me({},o),{toJSON:()=>o})}function $o(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Wo(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Uo(e,t){return n=({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}},void 0===n&&(n=0),{name:"offset",options:n,async fn(e){var t,r;const{x:o,y:i,placement:a,middlewareData:l}=e,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Qr(n),l=qr(n),s="y"===Yr(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=Zr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(e,n);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}};var n}function Vo(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return Ve(!t||t.every($o),!1),void 0===(n={padding:e.overflowPadding,fallbackPlacements:t})&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:u}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Zr(n,e);if(null!=(t=i.arrow)&&t.alignmentOffset)return{};const v=Qr(o),y=Yr(l),b=Qr(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(b||!m?[eo(l)]:function(e){const t=eo(e);return[Jr(e),t,Jr(t)]}(l)),k="none"!==h;!f&&k&&w.push(...function(e,t,n,r){const o=qr(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Qr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Jr)))),i}(l,m,h,x));const C=[l,...w],S=await oo(e,g),_=[];let j=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&_.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=qr(e),o=Xr(e),i=Kr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=eo(a)),[a,eo(a)]}(o,a,x);_.push(S[e[0]],S[e[1]])}if(j=[...j,{placement:o,overflows:_}],!_.every((e=>e<=0))){var E,L;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(L=j.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(p){case"bestFit":{var M;const e=null==(M=j.filter((e=>{if(k){const t=Yr(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}};var n}function Zo(e){if(e.slide||e.overlap)return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Zr(e,t),u={x:n,y:r},c=await oo(t,s),d=Yr(Qr(o)),f=Gr(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=Vr(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=Vr(h+c["y"===d?"top":"left"],h,h-c[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}}({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=Zr(t,e),c={x:n,y:r},d=Yr(o),f=Gr(d);let p=c[f],h=c[d];const m=Zr(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Qr(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}})});var t}function Qo(e){return void 0===(t={padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:a,elements:l}=e,{apply:s=()=>{},...u}=Zr(t,e),c=await oo(e,u),d=Qr(o),f=qr(o),p="y"===Yr(o),{width:h,height:m}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,x=Ir(m-c[g],y),w=Ir(h-c[v],b),k=!e.middlewareData.shift;let C=x,S=w;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=y),k&&!f){const e=Hr(c.left,0),t=Hr(c.right,0),n=Hr(c.top,0),r=Hr(c.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Hr(c.left,c.right)):C=m-2*(0!==n||0!==r?n+r:Hr(c.top,c.bottom))}await s({...e,availableWidth:S,availableHeight:C});const _=await a.getDimensions(l.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}};var t}function qo(e,t){if(e)return{name:"arrow",options:n={element:e,padding:t.arrowPadding},async fn(e){const{x:t,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=e,{element:u,padding:c=0}=Zr(n,e)||{};if(null==u)return{};const d=to(c),f={x:t,y:r},p=Xr(o),h=Kr(p),m=await a.getDimensions(u),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let C=k?k[b]:0;C&&await(null==a.isElement?void 0:a.isElement(k))||(C=l.floating[b]||i.floating[h]);const S=x/2-w/2,_=C/2-m[h]/2-1,j=Ir(d[v],_),E=Ir(d[y],_),L=j,M=C-m[h]-E,P=C/2-m[h]/2+S,T=Vr(L,P,M),N=!s.arrow&&null!=qr(o)&&P!==T&&i.reference[h]/2-(P<L?j:E)-m[h]/2<0,A=N?P<L?P-L:P-M:0;return{[p]:f[p]+A,data:{[p]:T,centerOffset:P-T-A,...N&&{alignmentOffset:A}},reset:N}}};var n}var Go=Kt((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:a=!0,wrapperProps:s,fixed:u=!1,flip:c=!0,shift:d=0,slide:f=!0,overlap:h=!1,sameWidth:m=!1,fitViewport:g=!1,gutter:v,arrowPadding:y=4,overflowPadding:b=8,getAnchorRect:x,updatePosition:w}=t,k=Te(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const C=un();Ve(n=n||C,!1);const S=n.useState("arrowElement"),_=n.useState("anchorElement"),j=n.useState("disclosureElement"),E=n.useState("popoverElement"),L=n.useState("contentElement"),M=n.useState("placement"),P=n.useState("mounted"),T=n.useState("rendered"),N=(0,l.useRef)(null),[A,O]=(0,l.useState)(!1),{portalRef:R,domReady:F}=kt(o,k.portalRef),z=gt(x),I=gt(w),H=!!w;ht((()=>{if(!(null==E?void 0:E.isConnected))return;E.style.setProperty("--popover-overflow-padding",`${b}px`);const e=function(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return Bo();const{x:t,y:n,width:r,height:o}=e;return Bo(t,n,r,o)}(r):n.getBoundingClientRect()}}}(_,z),t=async()=>{if(!P)return;S||(N.current=N.current||document.createElement("div"));const t=S||N.current,r=[Uo(t,{gutter:v,shift:d}),Vo({flip:c,overflowPadding:b}),Zo({slide:f,shift:d,overlap:h,overflowPadding:b}),qo(t,{arrowPadding:y}),Qo({sameWidth:m,fitViewport:g,overflowPadding:b})],o=await((e,t,n)=>{const r=new Map,o={platform:Do,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ro(u,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=ro(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})})(e,E,{placement:M,strategy:u?"fixed":"absolute",middleware:r});null==n||n.setState("currentPlacement",o.placement),O(!0);const i=Wo(o.x),a=Wo(o.y);if(Object.assign(E.style,{top:"0",left:"0",transform:`translate3d(${i}px,${a}px,0)`}),t&&o.middlewareData.arrow){const{x:e,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],i=t.clientWidth/2,a=t.clientHeight/2,l=null!=e?e+i:-i,s=null!=n?n+a:-a;E.style.setProperty("--popover-transform-origin",{top:`${l}px calc(100% + ${a}px)`,bottom:`${l}px ${-a}px`,left:`calc(100% + ${i}px) ${s}px`,right:`${-i}px ${s}px`}[r]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},r=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Eo(e),c=o||i?[...u?So(u):[],...So(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=so(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-Br(c)+"px "+-Br(o.clientWidth-(u+d))+"px "+-Br(o.clientHeight-(c+f))+"px "+-Br(u)+"px",threshold:Hr(0,Ir(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let m=s?To(e):null;return s&&function t(){const r=To(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}(e,E,(async()=>{H?(await I({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),r()}}),[n,T,E,S,_,E,M,P,F,u,c,d,f,h,m,g,v,y,b,z,H,I]),ht((()=>{if(!P)return;if(!F)return;if(!(null==E?void 0:E.isConnected))return;if(!(null==L?void 0:L.isConnected))return;const e=()=>{E.style.zIndex=getComputedStyle(L).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[P,F,E,L]);const D=u?"fixed":"absolute";return k=wt(k,(e=>(0,p.jsx)("div",Pe(Me({},s),{style:Me({position:D,top:0,left:0,width:"max-content"},null==s?void 0:s.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,D,s]),k=wt(k,(e=>(0,p.jsx)(dn,{value:n,children:e})),[n]),k=Pe(Me({"data-placing":!A||void 0},k),{style:Me({position:"relative"},k.style)}),Fr(Pe(Me({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:j||_,autoFocusOnShow:A&&a},k),{portalRef:R}))}));function Ko(e,t,n,r){return!!(jn(t)||e&&(nt(t,e)||n&&nt(n,e)||(null==r?void 0:r.some((t=>Ko(e,t,n))))))}zr(qt((function(e){return Gt("div",Go(e))})),un);var Yo=(0,l.createContext)(null),Xo=Kt((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:s=!!a}=t,u=Te(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const c=pn();Ve(n=n||c,!1);const d=(0,l.useRef)(null),[f,h]=(0,l.useState)([]),m=(0,l.useRef)(0),g=(0,l.useRef)(null),{portalRef:v,domReady:y}=kt(o,u.portalRef),b=Ct(),x=!!a,w=xt(a),k=!!s,C=xt(s),S=n.useState("open"),_=n.useState("mounted");(0,l.useEffect)((()=>{if(!y)return;if(!_)return;if(!x&&!k)return;const e=d.current;return e?We(ct("mousemove",(t=>{if(!n)return;if(!b())return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=g.current,[l]=t.composedPath(),s=r;if(Ko(l,e,s,f))return g.current=l&&s&&nt(s,l)?Kn(t):null,window.clearTimeout(m.current),void(m.current=0);if(!m.current){if(a){const n=Kn(t);if(Yn(n,Xn(e,a))){if(g.current=n,!C(t))return;return t.preventDefault(),void t.stopPropagation()}}w(t)&&(m.current=window.setTimeout((()=>{m.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(m.current))):void 0}),[n,b,y,_,x,k,f,C,w]),(0,l.useEffect)((()=>{if(!y)return;if(!_)return;if(!k)return;const e=e=>{const t=d.current;if(!t)return;const n=g.current;if(!n)return;const r=Xn(t,n);if(Yn(Kn(e),r)){if(!C(e))return;e.preventDefault(),e.stopPropagation()}};return We(ct("mouseenter",e,!0),ct("mouseover",e,!0),ct("mouseout",e,!0),ct("mouseleave",e,!0))}),[y,_,k,C]),(0,l.useEffect)((()=>{y&&(S||null==n||n.setAutoFocusOnShow(!1))}),[n,y,S]);const j=mt(S);(0,l.useEffect)((()=>{if(y)return()=>{j.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,y]);const E=(0,l.useContext)(Yo);ht((()=>{if(r)return;if(!o)return;if(!_)return;if(!y)return;const e=d.current;return e?null==E?void 0:E(e):void 0}),[r,o,_,y]);const L=(0,l.useCallback)((e=>{h((t=>[...t,e]));const t=null==E?void 0:E(e);return()=>{h((t=>t.filter((t=>t!==e)))),null==t||t()}}),[E]);u=wt(u,(e=>(0,p.jsx)(mn,{value:n,children:(0,p.jsx)(Yo.Provider,{value:L,children:e})})),[n,L]),u=Pe(Me({},u),{ref:vt(d,u.ref)}),u=function(e){var t=e,{store:n}=t,r=Te(t,["store"]);const[o,i]=(0,l.useState)(!1),a=n.useState("mounted");(0,l.useEffect)((()=>{a||i(!1)}),[a]);const s=r.onFocus,u=gt((e=>{null==s||s(e),e.defaultPrevented||i(!0)})),c=(0,l.useRef)(null);return(0,l.useEffect)((()=>Ot(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),Pe(Me({autoFocusOnHide:o,finalFocus:c},r),{onFocus:u})}(Me({store:n},u));const M=n.useState((e=>r||e.autoFocusOnShow));return Go(Pe(Me({store:n,modal:r,portal:o,autoFocusOnShow:M},u),{portalRef:v,hideOnEscape:e=>!Ze(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))})),Jo=(zr(qt((function(e){return Gt("div",Xo(e))})),pn),Kt((function(e){var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:l=!0}=t,s=Te(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=Un();Ve(n=n||u,!1),s=wt(s,(e=>(0,p.jsx)(Vn,{value:n,children:e})),[n]);const c=n.useState((e=>"description"===e.type?"tooltip":"none"));return s=Me({role:c},s),Xo(Pe(Me({},s),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside(e){if(Ze(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(Ze(l,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!nt(t,e.target)}}))}))),ei=zr(qt((function(e){return Gt("div",Jo(e))})),Un);const ti=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,p.jsx)("span",{className:n,"aria-label":o,children:r})},ni={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},ri=e=>{var t;return null!==(t=ni[e])&&void 0!==t?t:"bottom"},oi=(0,l.createContext)({isNestedInTooltip:!1}),ii=700,ai={isNestedInTooltip:!0},li=(0,l.forwardRef)((function(e,t){const{children:n,className:r,delay:o=ii,hideOnClick:i=!0,placement:a,position:s,shortcut:u,text:c,...d}=e,{isNestedInTooltip:f}=(0,l.useContext)(oi),h=we(li,"tooltip"),m=c||u?h:void 0,g=1===l.Children.count(n);let v;void 0!==a?v=a:void 0!==s&&(v=ri(s),be("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),v=v||"bottom";const y=function(e={}){const[t,n]=Bt(Qt,e);return function(e,t,n){return Dt(e,n,"type"),Dt(e,n,"skipTimeout"),Zt(e,t,n)}(t,n,e)}({placement:v,showTimeout:o}),b=Ht(y,"mounted");return f?g?(0,p.jsx)(Xt,{...d,render:n}):n:(0,p.jsxs)(oi.Provider,{value:ai,children:[(0,p.jsx)(Gn,{onClick:i?y.hide:void 0,store:y,render:g?(x=n,m&&b&&void 0===x.props["aria-describedby"]&&x.props["aria-label"]!==c?(0,l.cloneElement)(x,{"aria-describedby":m}):x):void 0,ref:t,children:g?void 0:n}),g&&(c||u)&&(0,p.jsxs)(ei,{...d,className:S("components-tooltip",r),unmountOnHide:!0,gutter:4,id:m,overflowPadding:.5,store:y,children:[c,u&&(0,p.jsx)(ti,{className:c?"components-tooltip__shortcut":"",shortcut:u})]})]});var x})),si=li,ui=e=>(0,l.createElement)("circle",e),ci=e=>(0,l.createElement)("g",e),di=e=>(0,l.createElement)("path",e),fi=e=>(0,l.createElement)("rect",e),pi=e=>(0,l.createElement)("defs",e),hi=(0,l.forwardRef)((({className:e,isPressed:t,...n},r)=>{const o={...n,className:S(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,p.jsx)("svg",{...o,ref:r})}));hi.displayName="SVG";const mi=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),a={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,p.jsx)("span",{className:i,style:a,...o})},gi=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,p.jsx)(mi,{icon:e,size:t,...n});if((0,l.isValidElement)(e)&&mi===e.type)return(0,l.cloneElement)(e,{...n});if("function"==typeof e)return(0,l.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===hi)){const r={...e.props,width:t,height:t,...n};return(0,p.jsx)(hi,{...r})}return(0,l.isValidElement)(e)?(0,l.cloneElement)(e,{size:t,...n}):e};var vi=o(744),yi=o.n(vi),bi=o(252),xi=o.n(bi);function wi(e){return"[object Object]"===Object.prototype.toString.call(e)}function ki(e){var t,n;return!1!==wi(e)&&(void 0===(t=e.constructor)||!1!==wi(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const Ci=function(e,t){const n=(0,l.useRef)(!1);(0,l.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,l.useEffect)((()=>()=>{n.current=!1}),[])},Si=(0,l.createContext)({}),_i=()=>(0,l.useContext)(Si);(0,l.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=_i(),n=(0,l.useRef)(e);return Ci((()=>{xi()(n.current,e)&&n.current}),[e]),(0,l.useMemo)((()=>yi()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ki})),[t,e])}({value:t});return(0,p.jsx)(Si.Provider,{value:n,children:e})}));const ji="data-wp-component",Ei="data-wp-c16t",Li="__contextSystemKey__";var Mi=function(){return Mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mi.apply(this,arguments)};function Pi(e){return e.toLowerCase()}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ti=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Ni=/[^A-Z0-9]+/gi;function Ai(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const Oi=function(e,t){var n,r,o=0;function i(){var i,a,l=n,s=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(a=0;a<s;a++)if(l.args[a]!==arguments[a]){l=l.next;continue e}return l!==n&&(l===r&&(r=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return l={args:i,val:e.apply(null,i)},n?(n.prev=l,l.next=n):r=l,o===t.maxSize?(r=r.prev).next=null:o++,n=l,l.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}((function(e){var t;return`components-${void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?Ti:n,o=t.stripRegexp,i=void 0===o?Ni:o,a=t.transform,l=void 0===a?Pi:a,s=t.delimiter,u=void 0===s?" ":s,c=Ai(Ai(e,r,"$1\0$2"),i,"\0"),d=0,f=c.length;"\0"===c.charAt(d);)d++;for(;"\0"===c.charAt(f-1);)f--;return c.slice(d,f).split("\0").map(l).join(u)}(e,Mi({delimiter:"."},t))}(e,Mi({delimiter:"-"},t))}`}));var Ri=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Fi=Math.abs,zi=String.fromCharCode,Ii=Object.assign;function Hi(e){return e.trim()}function Di(e,t,n){return e.replace(t,n)}function Bi(e,t){return e.indexOf(t)}function $i(e,t){return 0|e.charCodeAt(t)}function Wi(e,t,n){return e.slice(t,n)}function Ui(e){return e.length}function Vi(e){return e.length}function Zi(e,t){return t.push(e),e}var Qi=1,qi=1,Gi=0,Ki=0,Yi=0,Xi="";function Ji(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qi,column:qi,length:a,return:""}}function ea(e,t){return Ii(Ji("",null,null,"",null,null,0),e,{length:-e.length},t)}function ta(){return Yi=Ki>0?$i(Xi,--Ki):0,qi--,10===Yi&&(qi=1,Qi--),Yi}function na(){return Yi=Ki<Gi?$i(Xi,Ki++):0,qi++,10===Yi&&(qi=1,Qi++),Yi}function ra(){return $i(Xi,Ki)}function oa(){return Ki}function ia(e,t){return Wi(Xi,e,t)}function aa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function la(e){return Qi=qi=1,Gi=Ui(Xi=e),Ki=0,[]}function sa(e){return Xi="",e}function ua(e){return Hi(ia(Ki-1,fa(91===e?e+2:40===e?e+1:e)))}function ca(e){for(;(Yi=ra())&&Yi<33;)na();return aa(e)>2||aa(Yi)>3?"":" "}function da(e,t){for(;--t&&na()&&!(Yi<48||Yi>102||Yi>57&&Yi<65||Yi>70&&Yi<97););return ia(e,oa()+(t<6&&32==ra()&&32==na()))}function fa(e){for(;na();)switch(Yi){case e:return Ki;case 34:case 39:34!==e&&39!==e&&fa(Yi);break;case 40:41===e&&fa(e);break;case 92:na()}return Ki}function pa(e,t){for(;na()&&e+Yi!==57&&(e+Yi!==84||47!==ra()););return"/*"+ia(t,Ki-1)+"*"+zi(47===e?e:na())}function ha(e){for(;!aa(ra());)na();return ia(e,Ki)}var ma="-ms-",ga="-moz-",va="-webkit-",ya="comm",ba="rule",xa="decl",wa="@keyframes";function ka(e,t){for(var n="",r=Vi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ca(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xa:return e.return=e.return||e.value;case ya:return"";case wa:return e.return=e.value+"{"+ka(e.children,r)+"}";case ba:e.value=e.props.join(",")}return Ui(n=ka(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sa(e){return sa(_a("",null,null,null,[""],e=la(e),0,[0],e))}function _a(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,w=i,k=r,C=b;g;)switch(h=y,y=na()){case 40:if(108!=h&&58==$i(C,d-1)){-1!=Bi(C+=Di(ua(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=ua(y);break;case 9:case 10:case 13:case 32:C+=ca(h);break;case 92:C+=da(oa()-1,7);continue;case 47:switch(ra()){case 42:case 47:Zi(Ea(pa(na(),oa()),t,n),s);break;default:C+="/"}break;case 123*m:l[u++]=Ui(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Di(C,/\f/g,"")),p>0&&Ui(C)-d&&Zi(p>32?La(C+";",r,n,d-1):La(Di(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Zi(k=ja(C,t,n,u,c,o,l,b,x=[],w=[],d),i),123===y)if(0===c)_a(C,t,k,k,x,i,d,l,w);else switch(99===f&&110===$i(C,3)?100:f){case 100:case 108:case 109:case 115:_a(e,k,k,r&&Zi(ja(e,k,k,0,0,o,l,b,o,x=[],d),w),o,w,d,l,r?x:w);break;default:_a(C,k,k,k,[""],w,0,l,w)}}u=c=p=0,m=v=1,b=C="",d=a;break;case 58:d=1+Ui(C),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ta())continue;switch(C+=zi(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Ui(C)-1)*v,v=1;break;case 64:45===ra()&&(C+=ua(na())),f=ra(),c=d=Ui(b=C+=ha(oa())),y++;break;case 45:45===h&&2==Ui(C)&&(m=0)}}return i}function ja(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,f=0===o?i:[""],p=Vi(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Wi(e,d+1,d=Fi(m=a[h])),b=e;v<p;++v)(b=Hi(m>0?f[v]+" "+y:Di(y,/&\f/g,f[v])))&&(s[g++]=b);return Ji(e,t,n,0===o?ba:l,s,u,c)}function Ea(e,t,n){return Ji(e,t,n,ya,zi(Yi),Wi(e,2,-2),0)}function La(e,t,n,r){return Ji(e,t,n,xa,Wi(e,0,r),Wi(e,r+1,-1),r)}var Ma=function(e,t,n){for(var r=0,o=0;r=o,o=ra(),38===r&&12===o&&(t[n]=1),!aa(o);)na();return ia(e,Ki)},Pa=new WeakMap,Ta=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Pa.get(n))&&!r){Pa.set(e,!0);for(var o=[],i=function(e,t){return sa(function(e,t){var n=-1,r=44;do{switch(aa(r)){case 0:38===r&&12===ra()&&(t[n]=1),e[n]+=Ma(Ki-1,t,n);break;case 2:e[n]+=ua(r);break;case 4:if(44===r){e[++n]=58===ra()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=zi(r)}}while(r=na());return e}(la(e),t))}(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},Na=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Aa(e,t){switch(function(e,t){return 45^$i(e,0)?(((t<<2^$i(e,0))<<2^$i(e,1))<<2^$i(e,2))<<2^$i(e,3):0}(e,t)){case 5103:return va+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return va+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return va+e+ga+e+ma+e+e;case 6828:case 4268:return va+e+ma+e+e;case 6165:return va+e+ma+"flex-"+e+e;case 5187:return va+e+Di(e,/(\w+).+(:[^]+)/,va+"box-$1$2"+ma+"flex-$1$2")+e;case 5443:return va+e+ma+"flex-item-"+Di(e,/flex-|-self/,"")+e;case 4675:return va+e+ma+"flex-line-pack"+Di(e,/align-content|flex-|-self/,"")+e;case 5548:return va+e+ma+Di(e,"shrink","negative")+e;case 5292:return va+e+ma+Di(e,"basis","preferred-size")+e;case 6060:return va+"box-"+Di(e,"-grow","")+va+e+ma+Di(e,"grow","positive")+e;case 4554:return va+Di(e,/([^-])(transform)/g,"$1"+va+"$2")+e;case 6187:return Di(Di(Di(e,/(zoom-|grab)/,va+"$1"),/(image-set)/,va+"$1"),e,"")+e;case 5495:case 3959:return Di(e,/(image-set\([^]*)/,va+"$1$`$1");case 4968:return Di(Di(e,/(.+:)(flex-)?(.*)/,va+"box-pack:$3"+ma+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+va+e+e;case 4095:case 3583:case 4068:case 2532:return Di(e,/(.+)-inline(.+)/,va+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ui(e)-1-t>6)switch($i(e,t+1)){case 109:if(45!==$i(e,t+4))break;case 102:return Di(e,/(.+:)(.+)-([^]+)/,"$1"+va+"$2-$3$1"+ga+(108==$i(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bi(e,"stretch")?Aa(Di(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==$i(e,t+1))break;case 6444:switch($i(e,Ui(e)-3-(~Bi(e,"!important")&&10))){case 107:return Di(e,":",":"+va)+e;case 101:return Di(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+va+(45===$i(e,14)?"inline-":"")+"box$3$1"+va+"$2$3$1"+ma+"$2box$3")+e}break;case 5936:switch($i(e,t+11)){case 114:return va+e+ma+Di(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return va+e+ma+Di(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return va+e+ma+Di(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return va+e+ma+e+e}return e}var Oa=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xa:e.return=Aa(e.value,e.length);break;case wa:return ka([ea(e,{value:Di(e.value,"@","@"+va)})],r);case ba:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ka([ea(e,{props:[Di(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ka([ea(e,{props:[Di(t,/:(plac\w+)/,":"+va+"input-$1")]}),ea(e,{props:[Di(t,/:(plac\w+)/,":-moz-$1")]}),ea(e,{props:[Di(t,/:(plac\w+)/,ma+"input-$1")]})],r)}return""}))}}],Ra=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Oa,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,u,c,d,f=[Ca,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ta,Na].concat(i,f),c=Vi(u),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,ka(Sa(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ri({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(l),h},Fa={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function za(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ia=/[A-Z]|^ms/g,Ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Da=function(e){return 45===e.charCodeAt(1)},Ba=function(e){return null!=e&&"boolean"!=typeof e},$a=za((function(e){return Da(e)?e:e.replace(Ia,"-$&").toLowerCase()})),Wa=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ha,(function(e,t,n){return Va={name:t,styles:n,next:Va},t}))}return 1===Fa[e]||Da(e)||"number"!=typeof t||0===t?t:t+"px"};function Ua(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Va={name:o.name,styles:o.styles,next:Va},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Va={name:a.name,styles:a.styles,next:Va},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ua(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":Ba(l)&&(r+=$a(i)+":"+Wa(i,l)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Ua(e,t,a);switch(i){case"animation":case"animationName":r+=$a(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Ba(a[u])&&(r+=$a(i)+":"+Wa(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Va,s=n(e);return Va=l,Ua(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Va,Za=/label:\s*([^\s;{]+)\s*(;|$)/g;function Qa(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Va=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ua(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Ua(n,t,e[a]),r&&(o+=i[a]);Za.lastIndex=0;for(var l,s="";null!==(l=Za.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Va}}var qa=!!s.useInsertionEffect&&s.useInsertionEffect,Ga=qa||function(e){return e()},Ka=(qa||l.useLayoutEffect,l.createContext("undefined"!=typeof HTMLElement?Ra({key:"css"}):null)),Ya=(Ka.Provider,function(e){return(0,l.forwardRef)((function(t,n){var r=(0,l.useContext)(Ka);return e(t,r,n)}))}),Xa=l.createContext({});function Ja(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var el=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},tl=function(e,t,n){el(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function nl(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function rl(e,t,n){var r=[],o=Ja(e,r,n);return r.length<2?n:o+t(r)}var ol=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},il=function(){var e=Ra({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Qa(n,e.registered,void 0);return tl(e,o,!1),e.key+"-"+o.name};return{css:t,cx:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rl(e.registered,t,ol(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Qa(n,e.registered);nl(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Qa(n,e.registered),i="animation-"+o.name;return nl(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Ja.bind(null,e.registered),merge:rl.bind(null,e.registered,t)}}(),al=(il.flush,il.hydrate,il.cx);il.merge,il.getRegisteredStyles,il.injectGlobal,il.keyframes,il.css,il.sheet,il.cache;const ll=()=>{const e=(0,l.useContext)(Ka);return(0,l.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return al(...t.map((t=>{return null!=(n=t)&&["name","styles"].every((e=>void 0!==n[e]))?(tl(e,t,!1),`${e.key}-${t.name}`):t;var n})))}),[e])};function sl(e,t){const n=_i(),r=n?.[t]||{},o={[Ei]:!0,...(i=t,{[ji]:i})};var i;const{_overrides:a,...l}=r,s=Object.entries(l).length?Object.assign({},l,e):e,u=ll()(Oi(t),e.className),c="function"==typeof s.renderChildren?s.renderChildren(s):s.children;for(const e in s)o[e]=s[e];for(const e in a)o[e]=a[e];return void 0!==c&&(o.children=c),o.className=u,o}function ul(e,t){return cl(e,t,{forwardsRef:!0})}function cl(e,t,n){const r=n?.forwardsRef?(0,l.forwardRef)(e):e;let o=r[Li]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[Li]:[...new Set(o)],displayName:t,selector:`.${Oi(t)}`})}function dl(e){if(!e)return[];let t=[];return e[Li]&&(t=e[Li]),e.type&&e.type[Li]&&(t=e.type[Li]),t}const fl={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pl.apply(null,arguments)}var hl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ml=za((function(e){return hl.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),gl=function(e){return"theme"!==e},vl=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ml:gl},yl=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},bl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return el(t,n,r),Ga((function(){return tl(t,n,r)})),null},xl=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=yl(t,n,i),u=s||vl(a),c=!u("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var m=Ya((function(e,t,n){var r=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=l.useContext(Xa)}"string"==typeof e.className?i=Ja(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=Qa(f.concat(d),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?vl(r):u,v={};for(var y in e)c&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=i,n&&(v.ref=n),l.createElement(l.Fragment,null,l.createElement(bl,{cache:t,serialized:m,isStringTag:"string"==typeof r}),l.createElement(r,v))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=f,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,pl({},n,r,{shouldForwardProp:yl(m,r,!0)})).apply(void 0,f)},m}};const wl=xl("div",{target:"e19lxcc00"})(""),kl=Object.assign((0,l.forwardRef)((function({as:e,...t},n){return(0,p.jsx)(wl,{as:e,ref:n,...t})})),{selector:".components-view"}),Cl=ul((function(e,t){const{style:n,...r}=sl(e,"VisuallyHidden");return(0,p.jsx)(kl,{ref:t,...r,style:{...fl,...n||{}}})}),"VisuallyHidden"),Sl=["onMouseDown","onClick"],_l=(0,l.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:r,isBusy:o,isDestructive:i,className:a,disabled:l,icon:s,iconPosition:u="left",iconSize:c,showTooltip:d,tooltipPosition:f,shortcut:h,label:m,children:g,size:v="default",text:y,variant:b,description:x,...w}=function({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,isPressed:a,isSmall:l,size:s,variant:u,describedBy:c,...d}){let f=s,p=u;const h={accessibleWhenDisabled:e,"aria-pressed":a,description:c};var m,g,v,y,b,x;return l&&(null!==(m=f)&&void 0!==m||(f="small")),n&&(null!==(g=p)&&void 0!==g||(p="primary")),o&&(null!==(v=p)&&void 0!==v||(p="tertiary")),r&&(null!==(y=p)&&void 0!==y||(p="secondary")),t&&(be("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(b=p)&&void 0!==b||(p="secondary")),i&&(null!==(x=p)&&void 0!==x||(p="link")),{...h,...d,size:f,variant:p}}(e),{href:k,target:C,"aria-checked":_,"aria-pressed":j,"aria-selected":E,...L}="href"in w?w:{href:void 0,target:void 0,...w},M=we(_l,"components-button__description"),P="string"==typeof g&&!!g||Array.isArray(g)&&g?.[0]&&null!==g[0]&&"components-tooltip"!==g?.[0]?.props?.className,T=S("components-button",a,{"is-next-40px-default-size":n,"is-secondary":"secondary"===b,"is-primary":"primary"===b,"is-small":"small"===v,"is-compact":"compact"===v,"is-tertiary":"tertiary"===b,"is-pressed":[!0,"true","mixed"].includes(j),"is-pressed-mixed":"mixed"===j,"is-busy":o,"is-link":"link"===b,"is-destructive":i,"has-text":!!s&&(P||y),"has-icon":!!s}),N=l&&!r,A=void 0===k||l?"button":"a",O="button"===A?{type:"button",disabled:N,"aria-checked":_,"aria-pressed":j,"aria-selected":E}:{},R="a"===A?{href:k,target:C}:{},F={};if(l&&r){O["aria-disabled"]=!0,R["aria-disabled"]=!0;for(const e of Sl)F[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const z=!N&&(d&&!!m||!!h||!!m&&!g?.length&&!1!==d),I=x?M:void 0,H=L["aria-describedby"]||I,D={className:T,"aria-label":L["aria-label"]||m,"aria-describedby":H,ref:t},B=(0,p.jsxs)(p.Fragment,{children:[s&&"left"===u&&(0,p.jsx)(gi,{icon:s,size:c}),y&&(0,p.jsx)(p.Fragment,{children:y}),g,s&&"right"===u&&(0,p.jsx)(gi,{icon:s,size:c})]}),$="a"===A?(0,p.jsx)("a",{...R,...L,...F,...D,children:B}):(0,p.jsx)("button",{...O,...L,...F,...D,children:B}),W=z?{text:g?.length&&x?x:m,shortcut:h,placement:f&&ri(f)}:{};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(si,{...W,children:$}),x&&(0,p.jsx)(Cl,{children:(0,p.jsx)("span",{id:I,children:x})})]})})),jl=_l;function El({children:e,onCopy:t,onFinishCopy:n,text:r,...o}){const i=(0,l.useRef)(),a=D(r,(()=>{t&&t(),clearTimeout(i.current),n&&(i.current=setTimeout((()=>n()),4e3))}));return(0,l.useEffect)((()=>{clearTimeout(i.current)}),[]),(0,p.jsx)(jl,{...o,className:"components-clipboard-button",ref:a,onCopy:e=>{e.target.focus()},children:e})}function Ll({error:e,finishLinkLabel:t,finishLinkUrl:n,title:r}){const[o,a]=(0,l.useState)(!1),{message:s,stack:u}=e;return(0,p.jsx)("div",{className:"error-screen-container",children:(0,p.jsxs)(j,{className:"error-screen",children:[(0,p.jsx)("h1",{children:r||(0,i.__)("Something went wrong.","amp")}),(0,p.jsx)("p",{dangerouslySetInnerHTML:{__html:s||(0,i.__)("There was an error loading the page.","amp")}}),(0,p.jsx)("p",{children:F((0,i.__)("Please submit details to our <a>support forum</a>.","amp"),{a:(0,p.jsx)("a",{href:"https://wordpress.org/support/plugin/amp/",target:"_blank",rel:"noreferrer noopener"})})}),u&&(0,p.jsxs)("details",{children:[(0,p.jsx)("summary",{children:(0,i.__)("Details","amp")}),(0,p.jsx)("pre",{children:u}),(0,p.jsx)(El,{isSmall:!0,isSecondary:!0,text:JSON.stringify({message:s,stack:u},null,2),onCopy:()=>a(!0),onFinishCopy:()=>a(!1),children:o?(0,i.__)("Copied!","amp"):(0,i.__)("Copy Error","amp")})]}),n&&t&&(0,p.jsx)("p",{children:(0,p.jsx)("a",{href:n,children:t})})]})})}class Ml extends l.Component{constructor(e){super(e),this.timeout=null,this.state={error:null}}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}componentDidCatch(e){this.setState({error:e})}render(){const{error:e}=this.state,{children:t,exitLinkLabel:n,exitLinkUrl:r,title:o}=this.props;return e?(0,p.jsx)(Ll,{error:e,finishLinkLabel:n,finishLinkUrl:r,title:o}):t}}function Pl(e=""){return e.replace(/\/.*$/,"").replace(/\.php$/,"")}const Tl=(0,l.createContext)(),Nl="ACTION_SET_STATUS",Al="ACTION_SCANNABLE_URLS_REQUEST",Ol="ACTION_SCANNABLE_URLS_RECEIVE",Rl="ACTION_SCAN_INITIALIZE",Fl="ACTION_SCAN_URL",zl="ACTION_SCAN_RECEIVE_RESULTS",Il="ACTION_SCAN_COMPLETE",Hl="ACTION_SCAN_CANCEL",Dl="STATUS_REQUEST_SCANNABLE_URLS",Bl="STATUS_FETCHING_SCANNABLE_URLS",$l="STATUS_REFETCHING_PLUGIN_SUPPRESSION",Wl="STATUS_READY",Ul="STATUS_IDLE",Vl="STATUS_IN_PROGRESS",Zl="STATUS_COMPLETED",Ql="STATUS_FAILED",ql="STATUS_CANCELLED",Gl="STATUS_SKIPPED",Kl={currentlyScannedUrlIndexes:[],forceStandardMode:!1,scannableUrls:[],scanOnce:!1,status:"",scansCount:0,urlIndexesPendingScan:[]};function Yl(e,t){if(e.status===Gl)return e;switch(t.type){case Nl:return{...e,status:t.status};case Al:var n;return{...e,status:Dl,forceStandardMode:null!==(n=t?.forceStandardMode)&&void 0!==n&&n,currentlyScannedUrlIndexes:[],urlIndexesPendingScan:[]};case Ol:{const n=Array.isArray(t.scannableUrls)&&t.scannableUrls.length>0;return{...e,status:e.scanOnce&&e.scansCount>0||!n?Zl:Wl,scannableUrls:n?t.scannableUrls:[]}}case Rl:return[Wl,Zl,Ql,ql].includes(e.status)?e.scanOnce&&e.scansCount>0?{...e,status:Zl}:{...e,status:Ul,currentlyScannedUrlIndexes:[],scansCount:e.scansCount+1,urlIndexesPendingScan:e.scannableUrls.map(((e,t)=>t))}:e;case Fl:return[Ul,Vl].includes(e.status)?{...e,status:Vl,currentlyScannedUrlIndexes:[...e.currentlyScannedUrlIndexes,t.currentlyScannedUrlIndex],urlIndexesPendingScan:e.urlIndexesPendingScan.filter((e=>e!==t.currentlyScannedUrlIndex))}:e;case zl:var r;return[Ul,Vl].includes(e.status)?{...e,status:Ul,currentlyScannedUrlIndexes:e.currentlyScannedUrlIndexes.filter((e=>e!==t.currentlyScannedUrlIndex)),scannableUrls:[...e.scannableUrls.slice(0,t.currentlyScannedUrlIndex),{...e.scannableUrls[t.currentlyScannedUrlIndex],stale:!1,error:null!==(r=t.error)&&void 0!==r&&r,validated_url_post:t.error?{}:t.validatedUrlPost,validation_errors:t.error?[]:t.validationErrors},...e.scannableUrls.slice(t.currentlyScannedUrlIndex+1)]}:e;case Il:{const t=e.scannableUrls.every((e=>Boolean(e.error)));return{...e,status:t?Ql:$l}}case Hl:return[Ul,Vl].includes(e.status)?{...e,status:ql,currentlyScannedUrlIndexes:[],urlIndexesPendingScan:[]}:e;default:throw new Error(`Unhandled action type: ${t.type}`)}}function Xl({children:e,fetchCachedValidationErrors:t=!1,refetchPluginSuppressionOnScanComplete:n=!1,resetOnOptionsChange:r=!1,scannableUrlsRestPath:o,scanOnce:i=!1,validateNonce:s}){var u;const{originalOptions:{theme_support:c},savedOptions:h,refetchPluginSuppression:m}=(0,l.useContext)(g),{setAsyncError:v}=f(),[y,x]=(0,l.useReducer)(Yl,{...Kl,scanOnce:i}),{currentlyScannedUrlIndexes:w,forceStandardMode:k,scannableUrls:C,urlIndexesPendingScan:S,status:_}=y,j=k||c===b?"url":"amp_url",E=null!==(u=C?.[0]?.[j])&&void 0!==u?u:"",{hasSiteScanResults:L,pluginsWithAmpIncompatibility:M,stale:P,themesWithAmpIncompatibility:T}=(0,l.useMemo)((()=>{if(![Wl,Zl,Gl].includes(_))return{hasSiteScanResults:!1,pluginsWithAmpIncompatibility:[],stale:!1,themesWithAmpIncompatibility:[]};const e=function(e=[],{useAmpUrls:t=!1}={}){const n=new Map,r=new Map;for(const o of e){const{amp_url:e,url:i,validation_errors:a}=o;if(a?.length)for(const o of a)if(o?.sources?.length)for(const a of o.sources)if(a?.type)if("plugin"===a.type){const r=Pl(a.name);if("gutenberg"===r&&o.sources.length>1)continue;n.set(r,new Set([...n.get(r)||[],t?e:i]))}else"theme"===a.type&&r.set(a.name,new Set([...r.get(a.name)||[],t?e:i]))}return n.delete("amp"),{plugins:[...n].map((([e,t])=>({slug:e,urls:[...t]}))),themes:[...r].map((([e,t])=>({slug:e,urls:[...t]})))}}(C,{useAmpUrls:"amp_url"===j});return{hasSiteScanResults:C.some((e=>Boolean(e?.validation_errors))),pluginsWithAmpIncompatibility:e.plugins,stale:C.some((e=>!0===e?.stale)),themesWithAmpIncompatibility:e.themes}}),[C,_,j]);(0,l.useEffect)((()=>{s||_===Gl||x({type:Nl,status:Gl})}),[_,s]);const N=(0,l.useRef)(!1);(0,l.useEffect)((()=>()=>{N.current=!0}),[]);const A=(0,l.useCallback)(((e={})=>{x({type:Al,forceStandardMode:e?.forceStandardMode})}),[]),O=(0,l.useCallback)((()=>{x({type:Rl})}),[]),R=(0,l.useCallback)((()=>{x({type:Hl})}),[]);(0,l.useEffect)((()=>{r&&Object.keys(h).length>0&&x({type:Al})}),[r,h]),(0,l.useEffect)((()=>{_===Wl&&Object.keys(h.suppressed_plugins||{}).length>0&&x({type:Rl})}),[h?.suppressed_plugins,_]),(0,l.useEffect)((()=>{_===$l&&(n&&m(),x({type:Nl,status:Zl}))}),[m,n,_]);const[F,z]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{let e;return F&&(async()=>{await new Promise((t=>{e=setTimeout(t,500)})),!0!==N.current&&z(!1)})(),()=>{e&&clearTimeout(e)}}),[F]),(0,l.useEffect)((()=>{(async()=>{if(_===Dl){x({type:Nl,status:Bl});try{const e=["url","amp_url","type","label"],n=await d()({path:(0,a.addQueryArgs)(o,{_fields:t?[...e,"validation_errors","stale"]:e,force_standard_mode:k?1:void 0})});if(!0===N.current)return;x({type:Ol,scannableUrls:n})}catch(e){if(!0===N.current)return;v(e)}}})()}),[t,k,o,v,_]),(0,l.useEffect)((()=>{if(![Ul,Vl].includes(_))return;if(0===S.length)return void(0===w.length&&x({type:Il}));if(F||w.length>=3)return;z(!0);const e=S[0];x({type:Fl,currentlyScannedUrlIndex:e}),(async()=>{const t={};try{const n=C[e][j],r={amp_validate:{cache:!0,cache_bust:Math.random(),force_standard_mode:k||void 0,nonce:s,omit_stylesheets:!0}},o=await fetch((0,a.addQueryArgs)(n,r)),i=await o.json();if(!0===N.current)return;o.ok?(t.validatedUrlPost=i.validated_url_post,t.validationErrors=i.results.map((({error:e})=>e))):t.error=i?.code||!0}catch(e){if(!0===N.current)return;t.error=!0}x({type:zl,currentlyScannedUrlIndex:e,...t}),z(!1)})()}),[w.length,k,C,F,_,S,j,s]),(0,p.jsx)(Tl.Provider,{value:{cancelSiteScan:R,fetchScannableUrls:A,forceStandardMode:k,hasSiteScanResults:L,isBusy:[Ul,Vl].includes(_),isCancelled:_===ql,isCompleted:[$l,Zl].includes(_),isFailed:_===Ql,isFetchingScannableUrls:[Dl,Bl].includes(_),isInitializing:!Boolean(_),isReady:_===Wl,isSiteScannable:C.length>0,isSkipped:_===Gl,pluginsWithAmpIncompatibility:M,previewPermalink:E,scannableUrls:C,scannedUrlsMaxIndex:([Vl,Ul].includes(_)?Math.min(C.length,...S):0)-1,stale:P,startSiteScan:O,themesWithAmpIncompatibility:T},children:e})}const Jl=(0,l.createContext)();function es({children:e,onlyFetchIfPluginIsConfigured:t=!0,userFieldReviewPanelDismissedForTemplateMode:n,userOptionDeveloperTools:r,usersResourceRestPath:o}){const{originalOptions:i,fetchingOptions:a}=(0,l.useContext)(g),{plugin_configured:s}=i,[u,c]=(0,l.useState)(!1),[h,m]=(0,l.useState)(null),[v,y]=(0,l.useState)(null),[b,x]=(0,l.useState)(null),[w,k]=(0,l.useState)(!1),[C,S]=(0,l.useState)(!1),[_,j]=(0,l.useState)(!1),{setAsyncError:E}=f(),L=(0,l.useRef)(!1);(0,l.useEffect)((()=>()=>{L.current=!0}),[]);const M=(0,l.useMemo)((()=>null!==h&&h!==b),[h,b]);(0,l.useEffect)((()=>{if(!a)return!s&&t?(x(null),void m(null)):void(o&&!u&&null===b&&(async()=>{c(!0);try{const e=await d()({path:`${o}/me`});if(!0===L.current)return;x(e[r]),m(e[r]),n&&y(e[n])}catch(e){return void E(e)}c(!1)})())}),[t,a,u,b,s,E,n,r,o]);const P=(0,l.useCallback)((async()=>{if(M){k(!0);try{const e=await d()({method:"post",path:`${o}/me`,data:{[r]:h}});if(!0===L.current)return;x(e[r]),m(e[r])}catch(e){return void E(e)}j(!0),k(!1)}}),[M,h,E,r,o]),T=(0,l.useCallback)((async e=>{if(!C&&n){y(e),S(!0);try{if(await d()({method:"post",path:`${o}/me`,data:{[n]:e}}),!0===L.current)return}catch(e){return void E(e)}S(!1)}}),[C,E,n,o]);return(0,p.jsx)(Jl.Provider,{value:{developerToolsOption:h,fetchingUser:u,didSaveDeveloperToolsOption:_,hasDeveloperToolsOptionChange:M,reviewPanelDismissedForTemplateMode:v,originalDeveloperToolsOption:b,saveDeveloperToolsOption:P,savingDeveloperToolsOption:w,setDeveloperToolsOption:m,saveReviewPanelDismissedForTemplateMode:T,savingReviewPanelDismissedForTemplateMode:C},children:e})}const ts=(0,l.createContext)();function ns({children:e}){const[t,n]=(0,l.useState)([]),[r,o]=(0,l.useState)(null),[i,s]=(0,l.useState)(),u=(0,l.useRef)(!1);return(0,l.useEffect)((()=>()=>{u.current=!0}),[]),(0,l.useEffect)((()=>{i||t.length>0||r||(async()=>{o(!0);try{const e=await d()({path:(0,a.addQueryArgs)("/wp/v2/plugins",{_fields:["author","name","plugin","status","version"]})});if(!0===u.current)return;n(e)}catch(e){if(!0===u.current)return;s(e)}o(!1)})()}),[i,r,t]),(0,p.jsx)(ts.Provider,{value:{fetchingPlugins:r,plugins:t},children:e})}const rs=(0,l.createContext)();function os({children:e}){const[t,n]=(0,l.useState)([]),[r,o]=(0,l.useState)(null),[i,s]=(0,l.useState)(),u=(0,l.useRef)(!1);return(0,l.useEffect)((()=>()=>{u.current=!0}),[]),(0,l.useEffect)((()=>{i||t.length>0||r||(async()=>{o(!0);try{const e=await d()({path:(0,a.addQueryArgs)("/wp/v2/themes",{_fields:["author","name","status","stylesheet","template","version"]})});if(!0===u.current)return;n(e)}catch(e){if(!0===u.current)return;s(e)}o(!1)})()}),[i,r,t]),(0,p.jsx)(rs.Provider,{value:{fetchingThemes:r,themes:t},children:e})}const is=(0,l.createContext)();function as({children:t,pages:n}){const[r,o]=(0,l.useState)(n[0]),[i,a]=(0,l.useState)(!0),{editedOptions:s}=(0,l.useContext)(g),{isSkipped:u}=(0,l.useContext)(Tl),{theme_support:c}=s,d=(0,l.useMemo)((()=>n.filter((t=>!("technical-background"===t.slug&&!e.HAS_DEPENDENCY_SUPPORT||"site-scan"===t.slug&&u||"theme-selection"===t.slug&&y!==c)))),[u,n,c]),f=d.findIndex((e=>e.slug===r.slug)),h=f===d.length-1;return(0,p.jsx)(is.Provider,{value:{activePageIndex:f,canGoForward:i,currentPage:r,isLastPage:h,moveBack:()=>{o(d[f-1]),a(!0)},moveForward:()=>{h||(o(d[f+1]),a(!1))},pages:d,setCanGoForward:a},children:t})}function ls(){return(0,p.jsxs)("svg",{width:"80",height:"70",viewBox:"0 0 80 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsxs)("g",{clipPath:"url(#clip-user-1)",children:[(0,p.jsx)("path",{d:"M1.9 41.7258C2.6732 41.7258 3.3 41.099 3.3 40.3258C3.3 39.5526 2.6732 38.9258 1.9 38.9258C1.1268 38.9258 0.5 39.5526 0.5 40.3258C0.5 41.099 1.1268 41.7258 1.9 41.7258Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M4.2999 32.3273C5.0731 32.3273 5.6999 31.7005 5.6999 30.9273C5.6999 30.1541 5.0731 29.5273 4.2999 29.5273C3.5267 29.5273 2.8999 30.1541 2.8999 30.9273C2.8999 31.7005 3.5267 32.3273 4.2999 32.3273Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M13.1 35.3273C13.8732 35.3273 14.5 34.7005 14.5 33.9273C14.5 33.1541 13.8732 32.5273 13.1 32.5273C12.3268 32.5273 11.7 33.1541 11.7 33.9273C11.7 34.7005 12.3268 35.3273 13.1 35.3273Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M9.5001 45.425C10.2733 45.425 10.9001 44.7982 10.9001 44.025C10.9001 43.2518 10.2733 42.625 9.5001 42.625C8.7269 42.625 8.1001 43.2518 8.1001 44.025C8.1001 44.7982 8.7269 45.425 9.5001 45.425Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M67.5001 36.6281C68.2733 36.6281 68.9001 36.0013 68.9001 35.2281C68.9001 34.4549 68.2733 33.8281 67.5001 33.8281C66.7269 33.8281 66.1001 34.4549 66.1001 35.2281C66.1001 36.0013 66.7269 36.6281 67.5001 36.6281Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M73.0001 44.5266C73.7733 44.5266 74.4001 43.8998 74.4001 43.1266C74.4001 42.3534 73.7733 41.7266 73.0001 41.7266C72.2269 41.7266 71.6001 42.3534 71.6001 43.1266C71.6001 43.8998 72.2269 44.5266 73.0001 44.5266Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M78.6 35.925C79.3732 35.925 80 35.2982 80 34.525C80 33.7518 79.3732 33.125 78.6 33.125C77.8268 33.125 77.2 33.7518 77.2 34.525C77.2 35.2982 77.8268 35.925 78.6 35.925Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M74.0001 26.6281C74.7733 26.6281 75.4001 26.0013 75.4001 25.2281C75.4001 24.4549 74.7733 23.8281 74.0001 23.8281C73.2269 23.8281 72.6001 24.4549 72.6001 25.2281C72.6001 26.0013 73.2269 26.6281 74.0001 26.6281Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M2.9 50.7258C3.6732 50.7258 4.3 50.099 4.3 49.3258C4.3 48.5526 3.6732 47.9258 2.9 47.9258C2.1268 47.9258 1.5 48.5526 1.5 49.3258C1.5 50.099 2.1268 50.7258 2.9 50.7258Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M13.2 66.7273V47.5273C13.2 47.5273 13.9 40.5273 21.2 40.5273C28.5 40.5273 28.5 40.5273 28.5 40.5273",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M32.1 41.1273L31.1 40.0273L28 44.6273L34.1 52.1273L39.1 48.4273L32.1 41.1273Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M34.1001 52.125C34.1001 52.125 35.2001 66.925 36.4001 68.925",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M23 66.925C23 66.925 21.4 59.125 24.4 56.725C24.4 49.625 24.4 49.625 24.4 49.625",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M65.5 66.7273V47.5273C65.5 47.5273 64.8 40.5273 57.5 40.5273C50.2 40.5273 50.2 40.5273 50.2 40.5273",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M47.6001 40.0273L50.7001 44.6273L44.6001 52.1273L39.6001 48.4273L47.6001 40.0273Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M44.6 52.125C44.6 52.125 43.5 66.925 42.3 68.925",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M55.7001 66.925C55.7001 66.925 57.3 59.125 54.3 56.725C54.3 49.625 54.3 49.625 54.3 49.625",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M26.2 19.5262L30 14.9262H46.6L50.2 19.3262L52.9 19.1262V13.1262C52.9 13.1262 52.9 13.1262 51.3 13.1262C51.3 3.72618 41.6 -1.07382 33.3 2.32618C26.4 5.22618 25.9 12.4262 26.1 19.7262",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M50 7.22804H55.2C55.2 7.22804 59.8 6.52804 59.8 12.028C59.8 30.228 59.8 30.228 59.8 30.228C59.8 30.228 61.5 34.928 62.5 35.928C56.8 35.928 56.8 35.928 56.8 35.928C56.8 35.928 51.6 35.228 51.3 30.428C51.3 23.328 51.3 23.328 51.3 23.328",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M30.2001 38.7281C27.4001 35.6281 26.3 32.0281 26.3 27.9281C26.3 26.8281 26.6 24.6281 26.5 23.3281",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M31.8001 40.3273C31.6001 40.2273 31.3001 40.1273 31.1001 40.0273",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M48.4001 39.2266C47.8001 39.8266 47.1001 40.3266 46.2001 40.6266C46.2001 40.6266 41.1 43.6266 31.8 40.3266",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M51.3999 33.125C51.3999 33.125 50.7999 37.025 48.3999 39.325",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M31.6 26.5266C33.7539 26.5266 35.5 24.7805 35.5 22.6266C35.5 20.4727 33.7539 18.7266 31.6 18.7266C29.446 18.7266 27.7 20.4727 27.7 22.6266C27.7 24.7805 29.446 26.5266 31.6 26.5266Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M45.5999 26.925C47.7539 26.925 49.5 25.1789 49.5 23.025C49.5 20.8711 47.7539 19.125 45.5999 19.125C43.446 19.125 41.7 20.8711 41.7 23.025C41.7 25.1789 43.446 26.925 45.5999 26.925Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M26.9001 21.4258H23.6001",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M53 21.8281H49.7",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M41.6999 22.7266H35.8999",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip-user-1",children:(0,p.jsx)("rect",{width:"79.5",height:"69.7",fill:"white",transform:"translate(0.5 0.226562)"})})})]})}function ss(){return(0,p.jsxs)("svg",{width:"76",height:"71",viewBox:"0 0 76 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsxs)("g",{clipPath:"url(#clip-user-)",children:[(0,p.jsx)("path",{d:"M51.3999 22.6414C51.3999 22.6414 45.4999 14.9414 45.6999 13.4414C38.5999 15.8414 37.8999 18.2414 25.0999 18.4414V37.8414C25.0999 37.8414 31.6999 45.9414 36.5999 46.0414C42.4999 46.0414 42.4999 46.0414 42.4999 46.0414C42.4999 46.0414 51.3999 41.0414 51.3999 36.9414C51.3999 22.6414 51.3999 22.6414 51.3999 22.6414Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M25.0998 22.1406C23.2998 22.2406 21.0998 22.8406 20.3998 24.6406C18.9998 28.3406 22.3998 31.2406 24.5998 33.4406",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M51.0999 22.1406C52.8999 22.2406 55.0999 22.8406 55.7999 24.6406C57.1999 28.3406 53.7999 31.2406 51.5999 33.4406",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M21.5998 22.2397C21.5998 22.2397 17.4998 15.8397 23.6998 10.0397C20.5998 2.83973 20.5998 2.83973 20.5998 2.83973C20.5998 2.83973 52.4998 -2.36028 50.8998 11.2397C52.9998 12.0397 58.4998 15.8397 54.0998 22.1397",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M25.7998 27.4391L28.0998 29.1391H34.8998L36.3998 27.5391V22.5391H27.8998",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M50.5999 27.4391L48.2999 29.1391H41.4999L39.8999 27.5391V22.5391H48.4999",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M36.3999 22.5391H39.8999",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M31.4999 44.9414C31.4999 44.9414 31.4999 49.7414 30.0999 49.9414C24.3999 50.3414 24.3999 50.3414 24.3999 50.3414C24.3999 50.3414 14.1999 48.5414 13.8999 56.7414C13.8999 69.1414 13.8999 69.1414 13.8999 69.1414",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M45.9998 44.9414C45.9998 44.9414 45.9998 49.7414 47.3998 49.9414C53.0998 50.3414 53.0998 50.3414 53.0998 50.3414C53.0998 50.3414 63.2998 48.5414 63.5998 56.7414C63.5998 69.1414 63.5998 69.1414 63.5998 69.1414",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M28.0999 50.9383C28.0999 50.9383 28.3999 57.3383 35.8999 57.3383C39.4999 57.3383 39.4999 57.3383 39.4999 57.3383C39.4999 57.3383 44.9999 58.3383 48.3999 50.7383",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M63.2999 43.0383C64.0731 43.0383 64.6999 42.4115 64.6999 41.6383C64.6999 40.8651 64.0731 40.2383 63.2999 40.2383C62.5267 40.2383 61.8999 40.8651 61.8999 41.6383C61.8999 42.4115 62.5267 43.0383 63.2999 43.0383Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M74.5997 41.5383C75.3729 41.5383 75.9997 40.9115 75.9997 40.1383C75.9997 39.3651 75.3729 38.7383 74.5997 38.7383C73.8265 38.7383 73.1997 39.3651 73.1997 40.1383C73.1997 40.9115 73.8265 41.5383 74.5997 41.5383Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M73.1998 30.9406C73.973 30.9406 74.5998 30.3138 74.5998 29.5406C74.5998 28.7674 73.973 28.1406 73.1998 28.1406C72.4266 28.1406 71.7998 28.7674 71.7998 29.5406C71.7998 30.3138 72.4266 30.9406 73.1998 30.9406Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M68.2999 51.9406C69.0731 51.9406 69.6999 51.3138 69.6999 50.5406C69.6999 49.7674 69.0731 49.1406 68.2999 49.1406C67.5267 49.1406 66.8999 49.7674 66.8999 50.5406C66.8999 51.3138 67.5267 51.9406 68.2999 51.9406Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M8.99985 53.2414C9.77305 53.2414 10.3999 52.6146 10.3999 51.8414C10.3999 51.0682 9.77305 50.4414 8.99985 50.4414C8.22665 50.4414 7.59985 51.0682 7.59985 51.8414C7.59985 52.6146 8.22665 53.2414 8.99985 53.2414Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M12.6998 43.1398C13.473 43.1398 14.0998 42.513 14.0998 41.7398C14.0998 40.9666 13.473 40.3398 12.6998 40.3398C11.9266 40.3398 11.2998 40.9666 11.2998 41.7398C11.2998 42.513 11.9266 43.1398 12.6998 43.1398Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M3.6998 39.9406C4.473 39.9406 5.0998 39.3138 5.0998 38.5406C5.0998 37.7674 4.473 37.1406 3.6998 37.1406C2.92661 37.1406 2.2998 37.7674 2.2998 38.5406C2.2998 39.3138 2.92661 39.9406 3.6998 39.9406Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M1.6998 49.2414C2.473 49.2414 3.0998 48.6146 3.0998 47.8414C3.0998 47.0682 2.473 46.4414 1.6998 46.4414C0.926606 46.4414 0.299805 47.0682 0.299805 47.8414C0.299805 48.6146 0.926606 49.2414 1.6998 49.2414Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M2.6998 58.2414C3.473 58.2414 4.0998 57.6146 4.0998 56.8414C4.0998 56.0682 3.473 55.4414 2.6998 55.4414C1.92661 55.4414 1.2998 56.0682 1.2998 56.8414C1.2998 57.6146 1.92661 58.2414 2.6998 58.2414Z",fill:"#285BE7"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip-user-2",children:(0,p.jsx)("rect",{width:"75.7",height:"69.4",fill:"white",transform:"translate(0.299805 0.839844)"})})})]})}var us=o(942),cs=o.n(us);function ds({children:e,className:t="",direction:n="left",ElementName:r="div",selected:o=!1,...i}){return(0,p.jsx)(r,{className:cs()(t,"selectable",{"selectable--selected":o},`selectable--${n}`),...i,children:e})}function fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qa(t)}function ps(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(4px * ${e})`}o(146);const hs="#fff",ms={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},gs={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${hs})`,background:`var(--wp-components-color-background, ${hs})`,foreground:`var(--wp-components-color-foreground, ${ms[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${hs})`,gray:{900:`var(--wp-components-color-foreground, ${ms[900]})`,800:`var(--wp-components-color-gray-800, ${ms[800]})`,700:`var(--wp-components-color-gray-700, ${ms[700]})`,600:`var(--wp-components-color-gray-600, ${ms[600]})`,400:`var(--wp-components-color-gray-400, ${ms[400]})`,300:`var(--wp-components-color-gray-300, ${ms[300]})`,200:`var(--wp-components-color-gray-200, ${ms[200]})`,100:`var(--wp-components-color-gray-100, ${ms[100]})`}},vs={background:gs.background,backgroundDisabled:gs.gray[100],border:gs.gray[600],borderHover:gs.gray[700],borderFocus:gs.accent,borderDisabled:gs.gray[400],textDisabled:gs.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${gs.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${gs.background}, transparent 35%)`},ys=Object.freeze({gray:ms,white:hs,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:gs,ui:vs}),bs="36px",xs={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBackgroundColor:ys.white,controlBoxShadowFocus:`0 0 0 0.5px ${ys.theme.accent}`,controlHeight:bs,controlHeightXSmall:`calc( ${bs} * 0.6 )`,controlHeightSmall:`calc( ${bs} * 0.8 )`,controlHeightLarge:`calc( ${bs} * 1.2 )`,controlHeightXLarge:`calc( ${bs} * 1.4 )`},ws=Object.assign({},xs,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardPaddingXSmall:`${ps(2)}`,cardPaddingSmall:`${ps(4)}`,cardPaddingMedium:`${ps(4)} ${ps(6)}`,cardPaddingLarge:`${ps(6)} ${ps(8)}`,elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:ys.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:ys.white,surfaceColor:ys.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),ks=(function(){var e=fs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}})` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Cs=xl("svg",{target:"ea4tfvq2"})("width:",ws.spinnerSize,"px;height:",ws.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",ys.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),Ss={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},_s=xl("circle",{target:"ea4tfvq1"})(Ss,";stroke:",ys.gray[300],";"),js=xl("path",{target:"ea4tfvq0"})(Ss,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",ks,";"),Es=(0,l.forwardRef)((function({className:e,...t},n){return(0,p.jsxs)(Cs,{className:S("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[(0,p.jsx)(_s,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,p.jsx)(js,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}));function Ls({inline:e=!1}){const t=e?"span":"div";return(0,p.jsx)(t,{className:cs()("amp-spinner-container",{"amp-spinner-container--inline":e}),children:(0,p.jsx)(Es,{})})}const Ms=(0,l.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:a="",...l}=e,s=[...new Set([...a.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),u=S("components-external-link",o),c=!!n?.startsWith("#");return(0,p.jsxs)("a",{...l,className:u,href:n,onClick:t=>{c&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:s,ref:t,children:[(0,p.jsx)("span",{className:"components-external-link__contents",children:r}),(0,p.jsx)("span",{className:"components-external-link__icon","aria-label":/* translators: accessibility text */ /* translators: accessibility text */ (0,i.__)("(opens in a new tab)"),children:"↗"})]})}));function Ps({width:e=144,...t}){const n=144/e*2;return(0,p.jsxs)("svg",{viewBox:"0 0 144 69",width:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,p.jsx)("path",{d:"M47.855 67.71s17.35-17 54.65-8.8",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M59.206 60.96s-21.95-12.2-41.75-4.65M89.056 63.209c-4.5-2.25-8.6-.9-8.45-.55",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M24.856 54.21c-.85-.3-1.35-1.4-.95-2.25.35-.85 1.5-1.25 2.3-.8-.1-.6.3-1.2.85-1.4.55-.2 1.25 0 1.6.45.35-1 1.45-1.65 2.55-1.55.8.1 1.5.6 1.85 1.35.45-.45 1.3-.45 1.75.05.45.45.4 1.3-.1 1.75.6-.15 1.25.1 1.55.6.3.5.35 1.2 0 1.7M26.005 59.76c.65-.15 1.35-.25 1.95-.55.5-.25.95-.8.4-1.25-.35-.3-1.25-.25-1.7-.25-.8-.05-1.6-.1-2.35.25-.5.25-2.2 1.45-2 2.1.3.75 3.1-.2 3.7-.3ZM34.606 57.259c-.35-.1-.75-.2-1.1-.15-1.25.05-2.25 1.05-1 1.9.8.55 1.95.6 2.85.7.55.1 1.25.05 1.5-.45.15-.35 0-.8-.25-1.05-.25-.3-.65-.45-1-.55-.3-.2-.65-.3-1-.4Z",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M123.678 44.28c.45-.1.9-.25 1.25-.65.55-.55.95-1.35.6-2.15-.25-.65-1.1-1.7-3-1.55-.4.05-.95-1.7-1.2-2-.65-.8-1.55-1.25-2.55-1.45-.5-.1-1.05-.1-1.5.1-.2.1-1.1.75-.95 1.05 0 0-2.2-3.75-5.3-.55-.75.9-1 1.6-1 1.6s-2.85-.65-3.45 1.65c-.25 1.2-.75 3.6 2.95 3.8 2.6 0 5.2.05 7.8.1 1.8.05 3.6.3 5.45.1.3.05.6 0 .9-.05ZM118.079 53.843h9.55c.6-.8.4-2.1-.35-2.75-.75-.65-2-.7-2.7 0 .05-1.05-.65-2.05-1.65-2.35-1-.3-2.15.15-2.7 1-1.25-.85-3.2-.35-3.85 1.05-.7 1.35.2 2.65 1.7 3.05ZM138.139 27.787l1.05 2.95 2.95 1.05-2.95 1.05-1.05 2.95-1.05-2.95-2.95-1.05 2.95-1.05 1.05-2.95ZM17.456 31.787l1.05 2.95 2.95 1.05-2.95 1.05-1.05 2.95-1.05-2.95-2.95-1.05 2.95-1.05 1.05-2.95ZM5.5 40.096l1.2 3.3 3.3 1.2-3.3 1.2-1.2 3.3-1.2-3.3-3.3-1.2 3.3-1.2 1.2-3.3Z",fill:"#fff",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"m72.312 36.848.603 4.704 3.338 1.166 2.365 3.522-.675 3.435 4.617 2.436 2.541-2.558 4.214-.7L92.46 51l3.523-2.365-.894-3.233 2.437-4.617 3.329-1.384-.7-4.214-3.338-1.166-2.856-3.619.675-3.434-4.126-2.34-2.637 3.049-4.118.21-3.636-2.244-2.935 1.971.797 3.724-2.436 4.616-3.233.894Z",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M85.57 43.277a5 5 0 1 0 1.93-9.813 5 5 0 0 0-1.93 9.813ZM69.46 22.836l5.012 3.023-1.157 5.888-5.783.901-1.463 2.26 1.392 5.88-5.284 3.547-4.914-3.514-2.646.5-2.436 4.616-6.378-1.254-.508-5.195-2.654-2.05-4.898 1.584-3.547-5.283 2.927-4.52-.5-2.646-5.01-3.024 1.157-5.887 5.782-.902 1.56-2.75-1.489-5.389 5.188-3.057 4.914 3.514 2.742-.99 2.437-4.616 6.378 1.254.998 5.291 2.163 1.955 5.389-1.49 3.644 4.794-3.418 4.424.403 3.136Z",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M52.078 29.61a5 5 0 1 0 1.929-9.812 5 5 0 0 0-1.93 9.813Z",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M51.123 34.467c5.392 1.06 10.623-2.452 11.682-7.844 1.06-5.392-2.452-10.622-7.844-11.682-5.392-1.06-10.622 2.452-11.682 7.844-1.06 5.392 2.452 10.622 7.844 11.682Z",stroke:"#2459E7",strokeWidth:n,strokeMiterlimit:"10"})]})}function Ts({value:e}){const t={transform:`translateX(${Math.max(e,3)-100}%)`,transitionDuration:(e<100?800:200)+"ms"};return(0,p.jsx)("div",{className:"progress-bar",role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100",children:(0,p.jsx)("div",{className:"progress-bar__track",children:(0,p.jsx)("div",{className:"progress-bar__indicator",style:t})})})}function Ns({callToAction:e,children:t,className:n,count:r,icon:o,title:i}){return(0,p.jsxs)(ds,{className:cs()("site-scan-results",n),children:[(0,p.jsxs)("div",{className:"site-scan-results__header",children:[o,(0,p.jsxs)("p",{className:"site-scan-results__heading","data-badge-content":r,children:[i,(0,p.jsx)(Cl,{as:"span",children:`(${r})`})]})]}),(0,p.jsxs)("div",{className:"site-scan-results__content",children:[t,e&&(0,p.jsx)("p",{className:"site-scan-results__cta",children:e})]})]})}function As({width:e=58,...t}){const n=58/e*2;return(0,p.jsxs)("svg",{viewBox:"0 0 58 38",width:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,p.jsx)("path",{d:"m5.764 8.012-.031 7.59A1.89 1.89 0 0 0 7.615 17.5l24.96.105a1.89 1.89 0 0 0 1.897-1.882l.032-7.59a1.89 1.89 0 0 0-1.882-1.898L7.662 6.13a1.89 1.89 0 0 0-1.898 1.882ZM20.22 29.17a1.9 1.9 0 0 1-1.88-1.9v-3.13a1.9 1.9 0 0 1 1.9-1.88l12.38.07a1.91 1.91 0 0 1 1.88 1.9v3.13a1.869 1.869 0 0 1-1.89 1.87l-12.39-.06ZM7.61 29.18a1.92 1.92 0 0 1-1.88-1.91v-3.13a1.87 1.87 0 0 1 1.89-1.86h3.57a1.92 1.92 0 0 1 1.89 1.91v3.13a1.862 1.862 0 0 1-1.89 1.86H7.61Z",stroke:"#005AF0",strokeWidth:"2.08",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M11.71 12.77a1.69 1.69 0 1 0 0-3.38 1.69 1.69 0 0 0 0 3.38Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M13.65 17.21 25.39 9.9l6.41 7.69",stroke:"#005AF0",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M2.4 1h35.43a1.4 1.4 0 0 1 1.4 1.4v32.07H1V2.4A1.4 1.4 0 0 1 2.4 1v0Z",stroke:"#005AF0",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"m48.87 29.137-14-14-7.283 7.283 14 14 7.283-7.283Z",fill:"#fff",stroke:"#005AF0",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"m41.797 12.362 9.836 9.836a2.94 2.94 0 0 1 0 4.158l-2.78 2.779L34.86 15.14l2.779-2.779a2.94 2.94 0 0 1 4.158 0ZM55.774 8.23a4.17 4.17 0 0 1 0 5.897l-6.102 6.103-5.897-5.898 6.102-6.102a4.17 4.17 0 0 1 5.897 0Z",fill:"#fff",stroke:"#005AF0",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"m32.55 26.42 6.55-6.56M37.59 31.46l6.55-6.56",stroke:"#005AF0",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]})}const Os=e=>o.g?.location?.host!==new URL(e).host,Rs="info",Fs="success",zs="small",Is="large";function Hs({children:e,className:t,size:n=Is,type:r=Rs,...o}){const i=function(e){let t;switch(e){case Fs:t=()=>(0,p.jsxs)("svg",{width:"35",height:"36",viewBox:"0 0 35 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{x:"1.90112",y:"1.98828",width:"32.0691",height:"32.0691",rx:"16.0345",stroke:"#00A02F",strokeWidth:"2"}),(0,p.jsx)("mask",{id:"mask-notice-success",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"10",y:"12",width:"16",height:"12",children:(0,p.jsx)("path",{d:"M15.0921 21.461L11.3924 17.7613L10.1326 19.0122L15.0921 23.9718L25.7387 13.3252L24.4877 12.0742L15.0921 21.461Z",fill:"white"})}),(0,p.jsx)("g",{mask:"url(#mask-notice-success)",children:(0,p.jsx)("rect",{x:"7.28906",y:"7.375",width:"21.2932",height:"21.2932",fill:"#00A02F"})})]});break;case"error":t=()=>(0,p.jsxs)("svg",{width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M8.18125 16.1001L16.4324 7.84902L28.1012 7.84902L36.3523 16.1001L36.3523 27.769L28.1012 36.0201L16.4324 36.0201L8.18125 27.769L8.18125 16.1001Z",stroke:"#EF0000",strokeWidth:"2"}),(0,p.jsx)("path",{d:"M24.2671 27.4609C24.2671 28.5654 23.3716 29.4609 22.2671 29.4609C21.1626 29.4609 20.2671 28.5654 20.2671 27.4609C20.2671 26.3564 21.1626 25.4609 22.2671 25.4609C23.3716 25.4609 24.2671 26.3564 24.2671 27.4609Z",fill:"#EF0000"}),(0,p.jsx)("line",{x1:"22.2891",y1:"14.0586",x2:"22.2891",y2:"23.5659",stroke:"#EF0000",strokeWidth:"2"})]});break;default:t=()=>(0,p.jsxs)("svg",{width:"35",height:"35",viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{x:"1.66626",y:"1.76172",width:"31.4597",height:"31.4597",rx:"15.7299",stroke:"currentColor",strokeWidth:"2"}),(0,p.jsx)("path",{d:"M15.3048 11.3424C15.3048 10.1875 16.2412 9.25113 17.3961 9.25113C18.5509 9.25113 19.4873 10.1875 19.4873 11.3424C19.4873 12.4972 18.5509 13.4336 17.3961 13.4336C16.2412 13.4336 15.3048 12.4972 15.3048 11.3424Z",fill:"currentColor"}),(0,p.jsx)("line",{x1:"17.4184",y1:"25.3594",x2:"17.4184",y2:"15.4184",stroke:"currentColor",strokeWidth:"2"})]})}return(0,p.jsx)(t,{})}(r);return(0,p.jsxs)("div",{className:cs()(t,"amp-notice",`amp-notice--${r}`,`amp-notice--${n}`),...o,children:[(0,p.jsx)("div",{className:"amp-notice__icon",children:i}),(0,p.jsx)("div",{className:"amp-notice__body",children:e})]})}function Ds(e,t){return e.filter((e=>e?.name&&t===Pl(e.name)))}function Bs({slug:e}){const[t,n]=(0,l.useState)(!1),{scannableUrls:r}=(0,l.useContext)(Tl),o=(0,l.useMemo)((()=>r.map((t=>{const n=function(e,t){const n=[];for(const r of e){const e=Ds(r.sources||[],t);if(e&&0<e.length){const t={...r,sources:e};n.push(t)}}return n}(t.validation_errors||[],e);return n?.length>0?{...t,validation_errors:n}:null})).filter(Boolean)),[r,e]),a=JSON.stringify(o,null,4);return(0,p.jsxs)("div",{className:"site-scan-results__detail-body",children:[(0,p.jsx)("ul",{className:"site-scan-results__urls-list",children:o.map((({url:e})=>(0,p.jsx)("li",{children:(0,p.jsx)(Ms,{href:e,children:e})},e)))}),(0,p.jsx)("p",{className:"site-scan-results__source-intro",children:(0,i.__)("Raw validation data which you may want to share with the author so they can fix AMP compatibility:","amp")}),(0,p.jsx)("pre",{className:"site-scan-results__source-detail",children:a}),(0,p.jsx)(El,{isSmall:!0,text:a,onCopy:()=>n(!0),onFinishCopy:()=>n(!1),children:t?(0,i.__)("Copied!","amp"):(0,i.__)("Copy Validation Data","amp")})]})}function $s({author:e,name:t,slug:n,status:r,version:o,inactiveSourceNotice:a,uninstalledSourceNotice:s}){const[u,c]=(0,l.useState)(!1);return(0,p.jsxs)("details",{open:!1,onKeyDown:({key:e})=>{[" ","return"].includes(e)&&c(!0)},onClick:()=>{c(!0)},children:[(0,p.jsx)("summary",{children:(0,p.jsxs)("span",{className:"site-scan-results__summary-wrapper",children:[t&&(0,p.jsx)("span",{className:cs()("site-scan-results__source-name",{"site-scan-results__source-name--inactive":["inactive","uninstalled"].includes(r)}),children:t}),!t&&n&&(0,p.jsx)("code",{className:"site-scan-results__source-slug",children:n}),"active"===r?(0,p.jsxs)(p.Fragment,{children:[e&&(0,p.jsx)("span",{className:"site-scan-results__source-author",children:(0,i.sprintf)(/* translators: %s is an author name. */ /* translators: %s is an author name. */ (0,i.__)("by %s","amp"),e)}),o&&(0,p.jsx)("span",{className:"site-scan-results__source-version",children:(0,i.sprintf)(/* translators: %s is a version number. */ /* translators: %s is a version number. */ (0,i.__)("Version %s","amp"),o)})]}):(0,p.jsxs)(Hs,{className:"site-scan-results__source-notice",type:"plain",size:zs,children:["inactive"===r?a:null,"uninstalled"===r?s:null]})]})}),u&&(0,p.jsx)(Bs,{slug:n})]})}function Ws({sources:e,inactiveSourceNotice:t,uninstalledSourceNotice:n}){return 0===e.length?(0,p.jsx)(Ls,{}):(0,p.jsx)("ul",{className:"site-scan-results__sources",children:e.map((e=>(0,p.jsx)("li",{className:"site-scan-results__source",children:(0,p.jsx)($s,{...e,inactiveSourceNotice:t,uninstalledSourceNotice:n})},e.slug)))})}function Us({className:t,showHelpText:n=!1,slugs:r=[],...o}){const a=function(){const{fetchingThemes:e,themes:t}=(0,l.useContext)(rs),[n,r]=(0,l.useState)({});return(0,l.useEffect)((()=>{e||0===t.length||r((()=>t.reduce(((e,n)=>({...e,[n.stylesheet]:Object.keys(n).reduce(((e,r)=>{var o;const i={...e,slug:n.stylesheet,[r]:null!==(o=n[r]?.raw)&&void 0!==o?o:n[r]},a=t.find((e=>e.template===n.stylesheet&&e.template!==e.stylesheet))?.stylesheet;return a&&(i.child=a),n.template&&n.template!==n.stylesheet&&(i.parent=n.template),i}),{})})),{})))}),[e,t]),n}(),s=(0,l.useMemo)((()=>r?.map((e=>{const t=a?.[e];if(!t)return{slug:e,status:"uninstalled"};const n="active"===a?.[t?.child]?.status;return{...t,status:n?"active":t.status}}))),[r,a]);return(0,p.jsxs)(Ns,{title:(0,i.__)("Themes with AMP incompatibility","amp"),icon:(0,p.jsx)(As,{}),count:r.length,className:cs()("site-scan-results--themes",t),...o,children:[n&&(0,p.jsxs)("p",{children:[F((0,i.__)("Because of theme issue(s) we’ve found, you’ll want to consider a different <a>template mode</a> below.","amp"),{a:(0,p.jsx)("a",{href:"#template-modes"})}),e.AMP_COMPATIBLE_THEMES_URL?F(` ${(0,i.__)("You may also want to browse alternative <a>AMP compatible themes</a>.","amp")}`,{a:Os(e.AMP_COMPATIBLE_THEMES_URL)?(0,p.jsx)(Ms,{href:e.AMP_COMPATIBLE_THEMES_URL}):(0,p.jsx)("a",{href:e.AMP_COMPATIBLE_THEMES_URL})}):""]}),(0,p.jsx)(Ws,{sources:s,inactiveSourceNotice:(0,i.__)("This theme has been deactivated since last site scan."),uninstalledSourceNotice:(0,i.__)("This theme has been uninstalled or its metadata is unavailable.")})]})}function Vs({width:e=58,...t}){const n=58/e*2;return(0,p.jsx)("svg",{viewBox:"0 0 58 40",width:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,p.jsxs)("g",{stroke:"#005AF0",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,p.jsx)("path",{d:"M6.2 31.05V5.37A4.37 4.37 0 0 1 10.57 1H47.2a4.37 4.37 0 0 1 4.37 4.37v26.47M37.25 32.14v1.32H20.76v-1.32H1v3.14a3.37 3.37 0 0 0 3.36 3.37h49.28A3.36 3.36 0 0 0 57 35.28v-3.14H37.25Z"}),(0,p.jsx)("path",{d:"M21.2 11.53h2.15v12.35H21.2a6.178 6.178 0 0 1-5.728-8.54 6.183 6.183 0 0 1 5.728-3.81v0ZM36.99 23.89h-2.15V11.54h2.15a6.181 6.181 0 0 1 6.18 6.18 6.18 6.18 0 0 1-6.18 6.17v0ZM29.15 13.4h-5.79v2.83h5.79V13.4ZM29.15 19.19h-5.79v2.83h5.79v-2.83Z"}),(0,p.jsx)("path",{d:"M42.76 15.62h5.39v4.18h-5.39M15 19.8H9.61v-4.18H15"})]})})}function Zs({className:t,showHelpText:n=!1,slugs:r=[],...o}){const a=function(){const{fetchingPlugins:e,plugins:t}=(0,l.useContext)(ts),[n,r]=(0,l.useState)({});return(0,l.useEffect)((()=>{e||0===t.length||r(t.reduce(((e,t)=>{const n=Pl(t.plugin);return{...e,[n]:Object.keys(t).reduce(((e,r)=>{var o;return{...e,slug:n,[r]:null!==(o=t[r]?.raw)&&void 0!==o?o:t[r]}}),{})}}),{}))}),[e,t]),n}(),s=(0,l.useMemo)((()=>r?.map((e=>{var t;return null!==(t=a?.[e])&&void 0!==t?t:{slug:e,status:"uninstalled"}}))||[]),[a,r]);return(0,p.jsxs)(Ns,{title:(0,i.__)("Plugins with AMP incompatibility","amp"),icon:(0,p.jsx)(Vs,{}),count:r.length,className:cs()("site-scan-results--plugins",t),...o,children:[n&&(0,p.jsxs)("p",{children:[F((0,i.__)("Because of plugin issue(s) detected, you may want to <a>review and suppress plugins</a>.","amp"),{a:(0,p.jsx)("a",{href:"#plugin-suppression"})}),e.AMP_COMPATIBLE_PLUGINS_URL?F(` ${(0,i.__)("You may also want to browse alternative <a>AMP compatible plugins</a>.","amp")}`,{a:Os(e.AMP_COMPATIBLE_PLUGINS_URL)?(0,p.jsx)(Ms,{href:e.AMP_COMPATIBLE_PLUGINS_URL}):(0,p.jsx)("a",{href:e.AMP_COMPATIBLE_PLUGINS_URL})}):""]}),(0,p.jsx)(Ws,{sources:s,inactiveSourceNotice:(0,i.__)("This plugin has been deactivated since last site scan."),uninstalledSourceNotice:(0,i.__)("This plugin has been uninstalled or its metadata is unavailable.")})]})}function Qs({children:e,headerContent:t,title:n}){return(0,p.jsxs)("div",{className:"site-scan",children:[(0,p.jsxs)(ds,{className:"site-scan__section",children:[(0,p.jsxs)("div",{className:"site-scan__header",children:[(0,p.jsx)(Ps,{}),(0,p.jsx)("p",{className:"site-scan__heading",children:n})]}),t]}),e]})}const qs="recommended",Gs="neutral",Ks="notRecommended";const Ys=(0,l.createContext)();function Xs({children:e}){const{editedOptions:t,originalOptions:n,updateOptions:r,readerModeWasOverridden:o,setReaderModeWasOverridden:i}=(0,l.useContext)(g),{currentPage:a}=(0,l.useContext)(is),{selectedTheme:s,currentTheme:u}=(0,l.useContext)(w),{developerToolsOption:c,fetchingUser:d,originalDeveloperToolsOption:f}=(0,l.useContext)(Jl),[h,m]=(0,l.useState)(!1),[v,b]=(0,l.useState)(null),[x,k]=(0,l.useState)(!1),{slug:C}=a||{},{theme_support:S}=t||{},{theme_support:_}=n||{},j=!d&&c!==f;return(0,l.useEffect)((()=>{j&&k(!0)}),[j]),(0,l.useEffect)((()=>{S&&b(S)}),[S]),(0,l.useEffect)((()=>{"done"===C&&y===S&&s.name===u.name&&(o?i(!1):(r({theme_support:"transitional"}),i(!0)))}),[s.name,u.name,S,C,o,r,i]),(0,l.useEffect)((()=>{if(!d&&"technical-background"===C)if(h||_===S){if(h||c===f||(m(!0),r({theme_support:void 0})),h&&c===f){const e=v||_;S!==e&&r({theme_support:e})}}else m(!0)}),[C,c,d,v,f,_,h,S,r]),(0,p.jsx)(Ys.Provider,{value:{technicalQuestionChangedAtLeastOnce:x},children:e})}const Js=new Map;const eu=()=>function(e){const t=(0,l.useMemo)((()=>{const t=function(e){if(!e)return null;let t=Js.get(e);return t||("undefined"!=typeof window&&"function"==typeof window.matchMedia?(t=window.matchMedia(e),Js.set(e,t),t):null)}(e);return{subscribe:e=>t?(t.addEventListener?.("change",e),()=>{t.removeEventListener?.("change",e)}):()=>{},getValue(){var e;return null!==(e=t?.matches)&&void 0!==e&&e}}}),[e]);return(0,l.useSyncExternalStore)(t.subscribe,t.getValue,(()=>!1))}("(prefers-reduced-motion: reduce)");function tu(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function nu(e){const t=(0,l.useRef)(),n=(0,l.useRef)(!1),r=(0,l.useRef)(!1),o=(0,l.useRef)([]),i=(0,l.useRef)(e);return i.current=e,(0,l.useLayoutEffect)((()=>{!1===r.current&&!0===n.current&&e.forEach(((e,n)=>{const r=o.current[n];e!==r&&(tu(r,null),tu(e,t.current))})),o.current=e}),e),(0,l.useLayoutEffect)((()=>{r.current=!1})),(0,l.useCallback)((e=>{tu(t,e),r.current=!0,n.current=null!==e;const a=e?i.current:o.current;for(const t of a)tu(t,e)}),[])}const ru=(0,p.jsx)(hi,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)(di,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),ou=(0,p.jsx)(hi,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)(di,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});function iu(e){return null!=e}const au={initial:void 0,fallback:""},lu=()=>{},su=(0,l.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,p.jsx)("h2",{className:"components-panel__body-title",children:(0,p.jsxs)(jl,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r,children:[(0,p.jsx)("span",{"aria-hidden":"true",children:(0,p.jsx)(gi,{className:"components-panel__arrow",icon:e?ru:ou})}),n,t&&(0,p.jsx)(gi,{icon:t,className:"components-panel__icon",size:20})]})}):null)),uu=(0,l.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:s=lu,opened:u,title:c,scrollAfterOpen:d=!0}=e,[f,h]=function(e,t=au){const{initial:n,fallback:r}={...au,...t},[o,i]=(0,l.useState)(e),a=iu(e);return(0,l.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(iu))&&void 0!==n?n:t}([e,o,n],r),(0,l.useCallback)((e=>{a||i(e)}),[a])]}(u,{initial:void 0===a||a,fallback:!1}),m=(0,l.useRef)(null),g=eu()?"auto":"smooth",v=(0,l.useRef)();v.current=d,Ci((()=>{f&&v.current&&m.current?.scrollIntoView&&m.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:g})}),[f,g]);const y=S("components-panel__body",o,{"is-opened":f});return(0,p.jsxs)("div",{className:y,ref:nu([m,t]),children:[(0,p.jsx)(su,{icon:i,isOpened:Boolean(f),onClick:e=>{e.preventDefault();const t=!f;h(t),s(t)},title:c,...n}),"function"==typeof r?r({opened:Boolean(f)}):f&&r]})})),cu=uu,du="right";function fu({children:e=null,className:t,heading:n,handleType:r="full-width",id:i,initialOpen:a=!1,labelExtra:s=null,selected:u=!1,hiddenTitle:c}){const[d,f]=(0,l.useState)(a),[h,m]=(0,l.useState)(null);return(0,l.useEffect)((()=>{const e=new o.g.MutationObserver((([e])=>{e.target.classList.contains("is-opened")&&!d?f(!0):d&&f(!1)})),t=document.getElementById(i)?.querySelector(".components-panel__body");return t&&e.observe(t,{attributes:!0}),()=>{e.disconnect()}}),[i,d]),(0,l.useEffect)((()=>{m(null!==h?"resetting":"waiting")}),[a]),(0,l.useEffect)((()=>{"resetting"===h&&m("waiting")}),[h]),(0,p.jsxs)(ds,{id:i,className:cs()("amp-drawer",`amp-drawer--handle-type-${r}`,t,d?"amp-drawer--opened":""),selected:u,children:[r===du&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"amp-drawer__heading",children:n}),s&&(0,p.jsx)("div",{className:"amp-drawer__label-extra",children:s})]}),"resetting"!==h&&(0,p.jsx)(cu,{title:r===du?(0,p.jsx)(Cl,{as:"span",children:c}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"amp-drawer__heading",children:n}),s&&(0,p.jsx)("div",{className:"amp-drawer__label-extra",children:s})]}),className:"amp-drawer__panel-body",initialOpen:a,children:(0,p.jsx)("div",{className:"amp-drawer__panel-body-inner",children:e})})]})}function pu({children:e,className:t,icon:n}){return(0,p.jsxs)("div",{className:cs()("amp-info",t),children:[n&&(0,p.jsx)(n,{className:"amp-info__icon"}),e]})}function hu(){return(0,p.jsxs)("svg",{width:"66",height:"58",viewBox:"0 0 66 58",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M15.4008 9.85391C16.5008 9.85391 17.5008 8.95391 17.5008 7.75391C17.5008 6.55391 16.5008 5.75391 15.4008 5.75391C14.3008 5.75391 13.3008 6.65391 13.3008 7.85391C13.3008 9.05391 14.2008 9.85391 15.4008 9.85391Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M22.1006 7.75391H25.1006",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M13.6006 37.3555H24.4006",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M29.8008 7.75391H32.8008",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M64.9004 1.75391H6.90039V45.9539H64.8004V1.75391H64.9004Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M60.4005 14.1523H13.0005V33.2523H60.4005V14.1523Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M19.8008 24.6523C21.2008 24.6523 22.3008 23.5523 22.3008 22.1523C22.3008 20.7523 21.2008 19.6523 19.8008 19.6523C18.4008 19.6523 17.3008 20.7523 17.3008 22.1523C17.3008 23.5523 18.4008 24.6523 19.8008 24.6523Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M23.6006 28.0523L32.0006 22.0523L38.0006 25.4523L44.9006 20.1523V28.1523C44.9006 28.0523 25.1006 28.0523 23.6006 28.0523Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M8.3542 57.5023C12.6542 57.5023 16.1542 54.0023 16.1542 49.7023C16.1542 45.4023 12.6542 41.9023 8.3542 41.9023C4.0542 41.9023 0.554199 45.4023 0.554199 49.7023C0.554199 54.0023 4.0542 57.5023 8.3542 57.5023Z",fill:"#3363E8"}),(0,p.jsx)("path",{d:"M9.35446 45.2992L8.95446 48.6992H10.4545C10.4545 48.6992 11.0545 48.5992 10.4545 49.5992C7.75446 54.0992 7.75446 54.0992 7.75446 54.0992H7.25446L7.75446 50.6992H6.45446C6.45446 50.6992 5.45446 50.9992 6.15446 49.8992C8.95446 45.4992 9.05446 45.1992 9.05446 45.1992L9.35446 45.2992Z",fill:"white"})]})}function mu({props:e}){return(0,p.jsxs)("svg",{width:"80",height:"64",viewBox:"0 0 80 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,p.jsx)("path",{d:"M15.0067 10.0961C16.1067 10.0961 17.0067 9.19609 17.0067 7.99609C17.0067 6.79609 16.1067 5.99609 15.0067 5.99609C13.9067 5.99609 12.9067 6.89609 12.9067 8.09609C12.9067 9.29609 13.8067 10.0961 15.0067 10.0961Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M21.7068 7.99609H24.7068",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M13.2068 37.5977H24.0068",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M29.407 7.99609H32.407",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M64.5068 1.99609H6.50684V46.1961H64.4068V1.99609H64.5068Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M60.0069 14.3945H12.6069V33.4945H60.0069V14.3945Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M19.4067 24.8945C20.8067 24.8945 21.9067 23.7945 21.9067 22.3945C21.9067 20.9945 20.8067 19.8945 19.4067 19.8945C18.0067 19.8945 16.9067 20.9945 16.9067 22.3945C16.9067 23.7945 18.0067 24.8945 19.4067 24.8945Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M23.2068 28.2945L31.6068 22.2945L37.6068 25.6945L44.5068 20.3945V28.3945C44.5068 28.2945 24.7068 28.2945 23.2068 28.2945Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M71.6678 17.6953H50.4678V54.3953H71.6678V17.6953Z",fill:"white",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M60.1677 23.5977H62.5677",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M65.3677 23.5977H68.1677",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M55.8676 25.3953C56.9676 25.3953 57.9676 24.4953 57.9676 23.2953C57.9676 22.1953 57.0676 21.1953 55.8676 21.1953C54.7676 21.1953 53.7676 22.0953 53.7676 23.2953C53.8676 24.4953 54.7676 25.3953 55.8676 25.3953Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M68.1676 29.1953H53.7676V39.9953H68.1676V29.1953Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M60.3676 36.9953C62.7676 36.9953 64.6676 36.9953 64.6676 36.9953V32.1953L58.2676 36.9953H60.3676Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M60.5676 44.5977H68.9676",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M71.6677 63.8383C75.9677 63.8383 79.4677 60.3383 79.4677 56.0383C79.4677 51.7383 75.9677 48.2383 71.6677 48.2383C67.3677 48.2383 63.8677 51.7383 63.8677 56.0383C63.8677 60.3383 67.3677 63.8383 71.6677 63.8383Z",fill:"#3363E8"}),(0,p.jsx)("path",{d:"M72.6679 51.6352L72.2679 55.0352H73.7679C73.7679 55.0352 74.3679 54.9352 73.7679 55.9352C71.0679 60.4352 71.0679 60.4352 71.0679 60.4352H70.5679L71.0679 57.0352H69.7679C69.7679 57.0352 68.7679 57.3352 69.4679 56.2352C72.2679 51.8352 72.3679 51.5352 72.3679 51.5352L72.6679 51.6352Z",fill:"white"}),(0,p.jsx)("circle",{cx:"8.16113",cy:"49.9844",r:"8",fill:"white"}),(0,p.jsx)("circle",{cx:"8.16113",cy:"49.9844",r:"8",fill:"white"}),(0,p.jsx)("path",{d:"M8.16089 41.9844C3.76089 41.9844 0.160889 45.5844 0.160889 49.9844C0.160889 54.3844 3.76089 57.9844 8.16089 57.9844C12.5609 57.9844 16.1609 54.3844 16.1609 49.9844C16.1609 45.5844 12.5609 41.9844 8.16089 41.9844ZM13.6809 46.7844H11.3609C11.1209 45.8244 10.7209 44.8644 10.2409 43.9044C11.6809 44.4644 12.9609 45.4244 13.6809 46.7844ZM8.16089 43.5844C8.80089 44.5444 9.36089 45.5844 9.68089 46.7844H6.64089C6.96089 45.6644 7.52089 44.5444 8.16089 43.5844ZM2.00089 51.5844C1.84089 51.1044 1.76089 50.5444 1.76089 49.9844C1.76089 49.4244 1.84089 48.8644 2.00089 48.3844H4.72089C4.64089 48.9444 4.64089 49.4244 4.64089 49.9844C4.64089 50.5444 4.72089 51.0244 4.72089 51.5844H2.00089ZM2.64089 53.1844H5.04089C5.28089 54.1444 5.68089 55.1844 6.16089 56.0644C4.64089 55.5044 3.36089 54.5444 2.64089 53.1844ZM4.96089 46.7844H2.56089C3.36089 45.4244 4.56089 44.4644 6.00089 43.9044C5.60089 44.8644 5.28089 45.8244 4.96089 46.7844ZM8.16089 56.3844C7.52089 55.4244 6.96089 54.3844 6.64089 53.1844H9.68089C9.36089 54.3044 8.80089 55.4244 8.16089 56.3844ZM10.0009 51.5844H6.32089C6.24089 51.0244 6.16089 50.5444 6.16089 49.9844C6.16089 49.4244 6.24089 48.8644 6.32089 48.3844H10.0809C10.1609 48.8644 10.2409 49.4244 10.2409 49.9844C10.2409 50.5444 10.0809 51.0244 10.0009 51.5844ZM10.2409 56.0644C10.7209 55.1844 11.1209 54.2244 11.3609 53.1844H13.6809C12.9609 54.4644 11.6809 55.5044 10.2409 56.0644ZM11.6809 51.5844C11.7609 51.0244 11.7609 50.5444 11.7609 49.9844C11.7609 49.4244 11.6809 48.9444 11.6809 48.3844H14.4009C14.5609 48.8644 14.6409 49.4244 14.6409 49.9844C14.6409 50.5444 14.5609 51.1044 14.4009 51.5844H11.6809Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M23.1069 58.5844C27.9592 58.5844 31.9069 54.6367 31.9069 49.7844C31.9069 44.9321 27.9592 40.9844 23.1069 40.9844C18.2546 40.9844 14.3069 44.9321 14.3069 49.7844C14.3069 54.6367 18.2546 58.5844 23.1069 58.5844Z",fill:"#285BE7",stroke:"white",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M24.1071 45.3812L23.7071 48.7812H25.2071C25.2071 48.7812 25.8071 48.6813 25.2071 49.6813C22.5071 54.1813 22.5071 54.1813 22.5071 54.1813H22.0071L22.5071 50.7812H21.2071C21.2071 50.7812 20.2071 51.0813 20.9071 49.9813C23.7071 45.5813 23.8071 45.2812 23.8071 45.2812L24.1071 45.3812Z",fill:"white"})]})}function gu(){return(0,p.jsxs)("svg",{width:"78",height:"63",viewBox:"0 0 78 63",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M13.2068 37.5117H24.0068",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M14.9067 10.0102C16.0067 10.0102 17.0067 9.11016 17.0067 7.91016C17.0067 6.71016 16.1067 5.91016 14.9067 5.91016C13.8067 5.91016 12.9067 6.81016 12.9067 7.91016C12.9067 9.01016 13.8067 10.0102 14.9067 10.0102Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M21.6069 7.91016H24.6069",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M29.4067 7.91016H32.4067",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M64.4068 1.91016H6.50684V46.1102H64.4068V1.91016Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M60.0069 14.3086H12.6069V33.4086H60.0069V14.3086Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M19.3069 24.8086C20.7069 24.8086 21.8069 23.7086 21.8069 22.3086C21.8069 20.9086 20.7069 19.8086 19.3069 19.8086C17.9069 19.8086 16.8069 20.9086 16.8069 22.3086C16.8069 23.7086 17.9069 24.8086 19.3069 24.8086Z",fill:"#285BE7"}),(0,p.jsx)("path",{d:"M23.2068 28.2086L31.6068 22.2086L37.6068 25.6086L44.5068 20.3086V28.3086C44.5068 28.2086 24.7068 28.2086 23.2068 28.2086Z",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M69.6069 17.6094H48.3069V54.3094H69.5069V17.6094H69.6069Z",fill:"white",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M69.7068 17.6094H48.5068V28.4094H69.7068V17.6094Z",fill:"#285BE7",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M59.6069 23.3086H62.6069",stroke:"white",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M53.8068 25.3094C54.9068 25.3094 55.9068 24.4094 55.9068 23.2094C55.9068 22.1094 55.0068 21.1094 53.8068 21.1094C52.7068 21.1094 51.7068 22.0094 51.7068 23.2094C51.7068 24.4094 52.7068 25.3094 53.8068 25.3094Z",fill:"white"}),(0,p.jsx)("path",{d:"M56.9067 33.9102H65.1067",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M53.1069 33.9102H53.4069",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M56.9067 37.3086H65.1067",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M53.1069 37.3086H53.4069",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M56.9067 41.0117H65.1067",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M53.1069 41.0117H53.4069",stroke:"#285BE7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M69.2192 62.1117C73.5192 62.1117 77.0192 58.6117 77.0192 54.3117C77.0192 50.0117 73.5192 46.5117 69.2192 46.5117C64.9192 46.5117 61.4192 50.0117 61.4192 54.3117C61.4192 58.6117 64.9192 62.1117 69.2192 62.1117Z",fill:"#3363E8"}),(0,p.jsx)("path",{d:"M70.2194 49.9086L69.8194 53.3086H71.3194C71.3194 53.3086 71.9194 53.2086 71.3194 54.2086C68.6194 58.7086 68.6194 58.7086 68.6194 58.7086H68.1194L68.6194 55.3086H67.3194C67.3194 55.3086 66.3194 55.6086 67.0194 54.5086C69.8194 50.1086 69.9194 49.8086 69.9194 49.8086L70.2194 49.9086Z",fill:"white"}),(0,p.jsx)("circle",{cx:"8.16113",cy:"49.8125",r:"8",fill:"white"}),(0,p.jsx)("circle",{cx:"8.16113",cy:"49.8125",r:"8",fill:"white"}),(0,p.jsx)("path",{d:"M8.16089 41.8125C3.76089 41.8125 0.160889 45.4125 0.160889 49.8125C0.160889 54.2125 3.76089 57.8125 8.16089 57.8125C12.5609 57.8125 16.1609 54.2125 16.1609 49.8125C16.1609 45.4125 12.5609 41.8125 8.16089 41.8125ZM13.6809 46.6125H11.3609C11.1209 45.6525 10.7209 44.6925 10.2409 43.7325C11.6809 44.2925 12.9609 45.2525 13.6809 46.6125ZM8.16089 43.4125C8.80089 44.3725 9.36089 45.4125 9.68089 46.6125H6.64089C6.96089 45.4925 7.52089 44.3725 8.16089 43.4125ZM2.00089 51.4125C1.84089 50.9325 1.76089 50.3725 1.76089 49.8125C1.76089 49.2525 1.84089 48.6925 2.00089 48.2125H4.72089C4.64089 48.7725 4.64089 49.2525 4.64089 49.8125C4.64089 50.3725 4.72089 50.8525 4.72089 51.4125H2.00089ZM2.64089 53.0125H5.04089C5.28089 53.9725 5.68089 55.0125 6.16089 55.8925C4.64089 55.3325 3.36089 54.3725 2.64089 53.0125ZM4.96089 46.6125H2.56089C3.36089 45.2525 4.56089 44.2925 6.00089 43.7325C5.60089 44.6925 5.28089 45.6525 4.96089 46.6125ZM8.16089 56.2125C7.52089 55.2525 6.96089 54.2125 6.64089 53.0125H9.68089C9.36089 54.1325 8.80089 55.2525 8.16089 56.2125ZM10.0009 51.4125H6.32089C6.24089 50.8525 6.16089 50.3725 6.16089 49.8125C6.16089 49.2525 6.24089 48.6925 6.32089 48.2125H10.0809C10.1609 48.6925 10.2409 49.2525 10.2409 49.8125C10.2409 50.3725 10.0809 50.8525 10.0009 51.4125ZM10.2409 55.8925C10.7209 55.0125 11.1209 54.0525 11.3609 53.0125H13.6809C12.9609 54.2925 11.6809 55.3325 10.2409 55.8925ZM11.6809 51.4125C11.7609 50.8525 11.7609 50.3725 11.7609 49.8125C11.7609 49.2525 11.6809 48.7725 11.6809 48.2125H14.4009C14.5609 48.6925 14.6409 49.2525 14.6409 49.8125C14.6409 50.3725 14.5609 50.9325 14.4009 51.4125H11.6809Z",fill:"#285BE7"})]})}function vu({mode:e}){switch(e){case b:return(0,p.jsx)(hu,{});case x:return(0,p.jsx)(mu,{});case y:return(0,p.jsx)(gu,{});default:return null}}function yu(e){switch(e){case b:return(0,i.__)("Standard","amp");case x:return(0,i.__)("Transitional","amp");case y:return(0,i.__)("Reader","amp");default:return null}}function bu({children:e,details:t,detailsUrl:n,initialOpen:r,labelExtra:o=null,mode:a,previouslySelected:s=!1}){const{editedOptions:u,updateOptions:c}=(0,l.useContext)(g),{theme_support:d}=u,f=function(e){return`template-mode-${e}`}(a);return(0,p.jsx)(fu,{className:"template-mode-option",handleType:du,heading:(0,p.jsxs)("label",{className:"template-mode-option__label",htmlFor:f,children:[(0,p.jsx)("div",{className:"template-mode-selection__input-container",children:(0,p.jsx)("input",{type:"radio",id:f,checked:a===d,onChange:()=>{c({theme_support:a})}})}),(0,p.jsx)("div",{className:"template-mode-selection__illustration",children:(0,p.jsx)(vu,{mode:a})}),(0,p.jsxs)("div",{className:"template-mode-selection__description",children:[(0,p.jsx)("h3",{children:yu(a)}),s&&(0,p.jsx)(pu,{children:(0,i.__)("Previously selected","amp")}),o&&(0,p.jsx)("div",{className:"template-mode-selection__label-extra",children:o})]})]}),hiddenTitle:yu(a),id:`${f}-container`,initialOpen:"boolean"==typeof r?r:a&&d&&a===d,selected:a===d,children:(0,p.jsxs)("div",{className:"template-mode-selection__details",children:[e,Array.isArray(t)&&(0,p.jsx)("ul",{className:"template-mode-selection__details-list",children:t.filter(Boolean).map(((e,t)=>(0,p.jsx)("li",{className:"template-mode-selection__details-list-item",children:e},t)))}),t&&!Array.isArray(t)&&(0,p.jsxs)("p",{children:[(0,p.jsx)("span",{children:t}),n&&(0,p.jsxs)(p.Fragment,{children:[" ",(0,p.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,i.__)("Learn more.","amp")})]})]})]})})}function xu(){return(0,p.jsx)(Hs,{size:zs,type:Fs,children:(0,i.__)("Recommended","amp")})}function wu(e,t,n){if(n===e||!t)return!0;switch(t[e].recommendationLevel){case qs:return!0;case Ks:return!1;default:return!Object.values(t).some((e=>e.recommendationLevel===qs))}}function ku({firstTimeInWizard:e,savedCurrentMode:t,technicalQuestionChanged:n,templateModeRecommendation:r}){return(0,p.jsxs)("form",{children:[(0,p.jsx)(bu,{details:r?.[y]?.details,initialOpen:wu(y,r,t),mode:y,previouslySelected:t===y&&n&&!e,labelExtra:r?.[y]?.recommendationLevel===qs?(0,p.jsx)(xu,{}):null}),(0,p.jsx)(bu,{details:r?.[x]?.details,initialOpen:wu(x,r,t),mode:x,previouslySelected:t===x&&n&&!e,labelExtra:r?.[x]?.recommendationLevel===qs?(0,p.jsx)(xu,{}):null}),(0,p.jsx)(bu,{details:r?.[b]?.details,initialOpen:wu(b,r,t),mode:b,previouslySelected:t===b&&n&&!e,labelExtra:r?.[b]?.recommendationLevel===qs?(0,p.jsx)(xu,{}):null})]})}const Cu=window.wp.htmlEntities,Su=()=>(0,p.jsxs)(hi,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 139",children:[(0,p.jsx)(pi,{children:(0,p.jsx)("style",{children:".cls-1{fill:#fff;}.cls-2{fill:#c4c4c4;}.cls-3{fill:none;stroke:#c4c4c4;stroke-width:2px;}.cls-4{fill:#e7e7e7;}"})}),(0,p.jsx)(ci,{children:(0,p.jsxs)(ci,{children:[(0,p.jsx)(fi,{className:"cls-1",x:"-30.33",y:"30.82",width:"140.19",height:"78.89",transform:"translate(-30.69 109.72) rotate(-90)"}),(0,p.jsx)(di,{className:"cls-2",d:"M7.51,14.71l16.68.07a2.31,2.31,0,0,1,2.3,2.33h0a2.3,2.3,0,0,1-2.32,2.3L7.49,19.34A2.33,2.33,0,0,1,5.18,17h0A2.31,2.31,0,0,1,7.51,14.71Z"}),(0,p.jsx)(fi,{className:"cls-2",x:"32.11",y:"-4.06",width:"2.31",height:"56.24",rx:"1.16",transform:"matrix(0, -1, 1, 0, 9.06, 57.22)"}),(0,p.jsx)(fi,{className:"cls-2",x:"18.84",y:"58.89",width:"4.63",height:"32.47",rx:"2.31",transform:"translate(-54.06 95.95) rotate(-89.74)"}),(0,p.jsx)(di,{className:"cls-2",d:"M6.19,61.26l9.27,0a1.15,1.15,0,0,1,1.15,1.16h0a1.16,1.16,0,0,1-1.16,1.16l-9.27,0A1.15,1.15,0,0,1,5,62.41H5A1.15,1.15,0,0,1,6.19,61.26Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M22.4,61.33l9.27,0a1.16,1.16,0,0,1,1.15,1.17h0a1.15,1.15,0,0,1-1.16,1.15l-9.27,0a1.16,1.16,0,0,1-1.15-1.16h0A1.16,1.16,0,0,1,22.4,61.33Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M6.06,80.48l11,0a1.15,1.15,0,0,1,1.15,1.16h0a1.15,1.15,0,0,1-1.16,1.15l-11,0a1.16,1.16,0,0,1-1.16-1.16h0A1.16,1.16,0,0,1,6.06,80.48Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M73.15,99.46l-19.56-.09a1.15,1.15,0,0,0-1.16,1.15h0a1.15,1.15,0,0,0,1.15,1.16l19.56.09a1.15,1.15,0,0,0,1.16-1.15h0A1.15,1.15,0,0,0,73.15,99.46Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M6,91.43l11,0a1.15,1.15,0,0,1,1.15,1.16h0A1.15,1.15,0,0,1,17,93.79L6,93.74a1.16,1.16,0,0,1-1.16-1.16h0A1.16,1.16,0,0,1,6,91.43Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M62.17,86.26l11,0a1.17,1.17,0,0,1,1.15,1.17h0a1.16,1.16,0,0,1-1.16,1.15l-11,0A1.16,1.16,0,0,1,61,87.41h0A1.16,1.16,0,0,1,62.17,86.26Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M25.92,104.78l-20-.09a1.15,1.15,0,0,0-1.16,1.15h0A1.15,1.15,0,0,0,5.94,107l20,.09a1.15,1.15,0,0,0,1.16-1.15h0A1.15,1.15,0,0,0,25.92,104.78Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M24,80.56l49.28.22a1.16,1.16,0,0,1,1.16,1.16h0a1.18,1.18,0,0,1-1.17,1.16l-49.28-.23a1.15,1.15,0,0,1-1.15-1.16h0A1.15,1.15,0,0,1,24,80.56Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M47.71,99.34,6,99.15a1.15,1.15,0,0,0-1.16,1.15h0A1.17,1.17,0,0,0,6,101.47l41.74.18a1.16,1.16,0,0,0,1.17-1.15h0A1.16,1.16,0,0,0,47.71,99.34Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M23.9,91.51l49.28.22a1.16,1.16,0,0,1,1.16,1.16h0a1.18,1.18,0,0,1-1.17,1.16l-49.28-.23a1.15,1.15,0,0,1-1.15-1.16h0A1.15,1.15,0,0,1,23.9,91.51Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M6,86l49.28.22a1.15,1.15,0,0,1,1.15,1.16h0a1.16,1.16,0,0,1-1.16,1.16L6,88.32a1.15,1.15,0,0,1-1.15-1.16h0A1.15,1.15,0,0,1,6,86Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M73.13,105l-41.79-.19A1.18,1.18,0,0,0,30.17,106h0a1.17,1.17,0,0,0,1.15,1.16l41.8.19a1.17,1.17,0,0,0,1.16-1.16h0A1.16,1.16,0,0,0,73.13,105Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M38.62,61.41l9.26,0A1.16,1.16,0,0,1,49,62.61h0a1.16,1.16,0,0,1-1.17,1.15l-9.26,0a1.16,1.16,0,0,1-1.16-1.16h0A1.16,1.16,0,0,1,38.62,61.41Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M54.83,61.48l9.27,0a1.15,1.15,0,0,1,1.15,1.16h0a1.15,1.15,0,0,1-1.16,1.15l-9.27,0a1.15,1.15,0,0,1-1.15-1.16h0A1.15,1.15,0,0,1,54.83,61.48Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M5.7,4.65l4.63,0a.45.45,0,0,1,.46.46h0a.46.46,0,0,1-.46.46l-4.63,0a.46.46,0,0,1-.46-.46h0A.47.47,0,0,1,5.7,4.65Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M5.69,6.51l4.63,0a.45.45,0,0,1,.46.46h0a.45.45,0,0,1-.46.46l-4.63,0A.46.46,0,0,1,5.23,7h0A.45.45,0,0,1,5.69,6.51Z"}),(0,p.jsx)(di,{className:"cls-2",d:"M5.69,8.36l4.63,0a.47.47,0,0,1,.46.46h0a.46.46,0,0,1-.47.46l-4.63,0a.47.47,0,0,1-.46-.46h0A.46.46,0,0,1,5.69,8.36Z"}),(0,p.jsx)(di,{className:"cls-3",d:"M56.12,5.88,72.55,6a1.31,1.31,0,0,1,1.31,1.32h0a1.31,1.31,0,0,1-1.32,1.31L56.11,8.51A1.32,1.32,0,0,1,54.8,7.19h0A1.3,1.3,0,0,1,56.12,5.88Z"}),(0,p.jsx)(fi,{className:"cls-4",x:"27.33",y:"9.56",width:"24.99",height:"69.44",rx:"10",transform:"translate(-4.63 83.91) rotate(-89.74)"}),(0,p.jsx)(di,{className:"cls-2",d:"M29.36,44.42,9.54,56.64l60.56.28-20-18L33.54,50.07Z"}),(0,p.jsx)(ui,{className:"cls-1",cx:"14.39",cy:"40.41",r:"3.76"}),(0,p.jsx)(fi,{className:"cls-4",x:"8.41",y:"108",width:"24.99",height:"32.41",rx:"10",transform:"matrix(0, -1, 1, 0, -103.39, 144.55)"}),(0,p.jsx)(di,{className:"cls-2",d:"M17.35,124.37,9.13,136.65l25,.11-8.23-18L19.06,130Z"}),(0,p.jsx)(ui,{className:"cls-1",cx:"12.56",cy:"118.49",r:"3.76"}),(0,p.jsx)(fi,{className:"cls-4",x:"45.64",y:"108.16",width:"24.99",height:"32.41",rx:"10",transform:"translate(-66.49 181.94) rotate(-89.74)"}),(0,p.jsx)(di,{className:"cls-2",d:"M54.58,124.54l-8.22,12.27,25,.11-8.23-18-6.85,11.24Z"}),(0,p.jsx)(ui,{className:"cls-1",cx:"49.78",cy:"118.66",r:"3.76"})]})})]});function _u({children:e,isLoading:t=!1}){return(0,p.jsx)("div",{className:"phone "+(t?"is-loading":""),children:(0,p.jsxs)("div",{className:"phone__inner",children:[(0,p.jsx)("div",{className:"phone__overlay",children:(0,p.jsx)(Ls,{})}),e]})})}function ju({description:e,ElementName:t="li",homepage:n,screenshotUrl:r,slug:o,name:a,disabled:s,style:u}){const{editedOptions:c,updateOptions:d}=(0,l.useContext)(g),{reader_theme:f}=c,h=`theme-card__${o}`;return(0,p.jsxs)(ds,{className:"theme-card "+(s?"theme-card--disabled":""),direction:"bottom",ElementName:t,selected:f===o,style:u,children:[(0,p.jsxs)("label",{htmlFor:h,className:"theme-card__label",children:[(0,p.jsxs)(_u,{children:[r?(0,p.jsx)("img",{src:r,alt:a||o,height:"2165",width:"1000",loading:"lazy",decoding:"async"}):(0,p.jsx)(Su,{style:{width:"100%"}}),s&&(0,p.jsx)("div",{className:"theme-card__disabled-overlay",children:(0,i.__)("Unavailable","amp")})]}),(0,p.jsxs)("div",{className:"theme-card__label-header",children:[(0,p.jsx)("input",{disabled:Boolean(s),type:"radio",id:h,checked:f===o,onChange:()=>{d({reader_theme:o})}}),(0,p.jsx)("h4",{className:"theme-card__title",children:(0,Cu.decodeEntities)(a||o)})]}),e&&(0,p.jsx)("p",{className:"theme-card__description",children:(0,Cu.decodeEntities)(e)})]}),n&&(0,p.jsx)("p",{className:"theme-card__theme-link",children:(0,p.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,i.__)("Learn more","amp")})})]})}function Eu(){const{themesAPIError:e}=(0,l.useContext)(w);return e?(0,p.jsx)(Hs,{type:"warning",children:(0,p.jsx)("p",{children:e})}):null}function Lu(){const{availableThemes:e,fetchingThemes:t,unavailableThemes:n}=(0,l.useContext)(w);return t?(0,p.jsx)(Ls,{}):(0,p.jsxs)("div",{className:"reader-theme-selection",children:[(0,p.jsx)("p",{children:(0,i.__)("Select the theme template for mobile visitors","amp")}),(0,p.jsx)(Eu,{}),(0,p.jsxs)("div",{children:[0<e.length&&(0,p.jsx)("ul",{className:"choose-reader-theme__grid",children:e.map((e=>(0,p.jsx)(ju,{screenshotUrl:e.screenshot_url,...e},`theme-card-${e.slug}`)))}),0<n.length&&(0,p.jsxs)("div",{className:"choose-reader-theme__unavailable",children:[(0,p.jsx)("h3",{children:(0,i.__)("Unavailable themes","amp")}),(0,p.jsx)("p",{children:(0,i.__)("The following themes are compatible but cannot be installed automatically. Please install them manually, or contact your host if you are not able to do so.","amp")}),(0,p.jsx)("ul",{className:"choose-reader-theme__grid",children:n.map((e=>(0,p.jsx)(ju,{screenshotUrl:e.screenshot_url,disabled:!0,...e},`theme-card-${e.slug}`)))})]})]})]})}function Mu(e){const t=`clip-icon-laptop-toggles-${we(Mu)}`;return(0,p.jsxs)("svg",{viewBox:"0 0 40 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,p.jsxs)("g",{clipPath:`url(#${t})`,stroke:"#005AF0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,p.jsx)("path",{d:"M4.46 21.02V3.91A2.92 2.92 0 017.38 1h24.4a2.91 2.91 0 012.91 2.91v17.64M25.15 21.76v.88h-11v-.88H1v2.09a2.24 2.24 0 002.28 2.25h32.79a2.24 2.24 0 002.21-2.25v-2.09H25.15zM11.2 5.79v11.6"}),(0,p.jsx)("path",{d:"M11.2 14.06a2.47 2.47 0 100-4.94 2.47 2.47 0 000 4.94z",fill:"#fff"}),(0,p.jsx)("path",{d:"M19.58 5.79v11.6"}),(0,p.jsx)("path",{d:"M19.58 12.06a2.47 2.47 0 100-4.94 2.47 2.47 0 000 4.94z",fill:"#fff"}),(0,p.jsx)("path",{d:"M27.95 5.79v11.6"}),(0,p.jsx)("path",{d:"M27.95 16.06a2.47 2.47 0 100-4.94 2.47 2.47 0 000 4.94z",fill:"#fff"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:t,children:(0,p.jsx)("path",{fill:"#fff",d:"M0 0h39.31v27.09H0z"})})})]})}function Pu({width:e=42,...t}){const n=`clip-icon-laptop-search-${we(Pu)}`,r=42/e*2;return(0,p.jsxs)("svg",{viewBox:"0 0 42 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e,...t,children:[(0,p.jsxs)("g",{clipPath:`url(#${n})`,children:[(0,p.jsx)("path",{d:"M9.102 6.577l-.017 3.95a1.89 1.89 0 001.882 1.897l15.76.066a1.89 1.89 0 001.898-1.882l.016-3.95a1.89 1.89 0 00-1.882-1.897L11 4.694a1.89 1.89 0 00-1.897 1.883z",stroke:"#005AF0",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M13.14 9.2a1.15 1.15 0 100-2.3 1.15 1.15 0 000 2.3zM9.13 18.03a1.15 1.15 0 100-2.3 1.15 1.15 0 000 2.3z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M12.24 16.88h4.63M19.83 16.88h1.79M14.46 12.22l7.98-4.97 4.36 5.22",stroke:"#005AF0",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M4.24 19.65V3.71A2.71 2.71 0 016.95 1h22.74a2.71 2.71 0 012.72 2.71v16.43M23.5 20.35v.82H13.24v-.82H1v2a2.1 2.1 0 002.09 2h30.59a2.1 2.1 0 002.09-2.09v-2l-12.27.09z",stroke:"#005AF0",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M33.622 20.67l-.686.686a2 2 0 000 2.829l3.14 3.14a2 2 0 002.828 0l.686-.687a2 2 0 000-2.828l-3.14-3.14a2 2 0 00-2.828 0z",fill:"#fff"}),(0,p.jsx)("path",{d:"M33.622 20.67l-.686.686a2 2 0 000 2.829l3.14 3.14a2 2 0 002.828 0l.686-.687a2 2 0 000-2.828l-3.14-3.14a2 2 0 00-2.828 0z",stroke:"#005AF0",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M29.37 23.51a6.4 6.4 0 100-12.8 6.4 6.4 0 000 12.8z",fill:"#fff",stroke:"#005AF0",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M32.11 15.98a2.999 2.999 0 01-2.93 3.8",stroke:"#005AF0",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:n,children:(0,p.jsx)("path",{fill:"#fff",d:"M0 0h41.21v28.96H0z"})})})]})}const Tu=(0,l.createContext)({flexItemDisplay:void 0}),Nu={name:"zjik7",styles:"display:flex"},Au={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Ou={name:"82a6rk",styles:"flex:1"},Ru={name:"13nosa1",styles:">*{min-height:0;}"},Fu={name:"1pwxzk4",styles:">*{min-width:0;}"};function zu(e){const{className:t,display:n,isBlock:r=!1,...o}=sl(e,"FlexItem"),i={},a=(0,l.useContext)(Tu).flexItemDisplay;return i.Base=fs({display:n||a},"",""),{...o,className:ll()(Au,i.Base,r&&Ou,t)}}const Iu=ul((function(e,t){const n=function(e){return zu({isBlock:!0,...sl(e,"FlexBlock")})}(e);return(0,p.jsx)(kl,{...n,ref:t})}),"FlexBlock"),Hu=()=>{},Du=(0,l.forwardRef)((function(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:a=Hu,...l}=e,s=S("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return(0,p.jsxs)("span",{className:s,children:[(0,p.jsx)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:a,disabled:i,...l,ref:t}),(0,p.jsx)("span",{className:"components-form-toggle__track"}),(0,p.jsx)("span",{className:"components-form-toggle__thumb"})]})})),Bu={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function $u(e){var t;return null!==(t=Bu[e])&&void 0!==t?t:""}const Wu={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"},Uu={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},Vu=xl("div",{target:"ej5x27r4"})("font-family:",$u("default.fontFamily"),";font-size:",$u("default.fontSize"),";",Wu,";"),Zu=({__nextHasNoMarginBottom:e=!1})=>!e&&fs("margin-bottom:",ps(2),";",""),Qu=xl("div",{target:"ej5x27r3"})(Zu," .components-panel__row &{margin-bottom:inherit;}"),qu=fs(Uu,";display:block;margin-bottom:",ps(2),";padding:0;",""),Gu=xl("label",{target:"ej5x27r2"})(qu,";");var Ku={name:"11yad0w",styles:"margin-bottom:revert"};const Yu=({__nextHasNoMarginBottom:e=!1})=>!e&&Ku,Xu=xl("p",{target:"ej5x27r1"})("margin-top:",ps(2),";margin-bottom:0;font-size:",$u("helpText.fontSize"),";font-style:normal;color:",ys.gray[700],";",Yu,";"),Ju=xl("span",{target:"ej5x27r0"})(qu,";"),ec=(0,l.forwardRef)(((e,t)=>{const{className:n,children:r,...o}=e;return(0,p.jsx)(Ju,{ref:t,...o,className:S("components-base-control__label",n),children:r})})),tc=Object.assign(cl((e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:r,label:o,hideLabelFromVision:i=!1,help:a,className:l,children:s}=sl(e,"BaseControl");return t||be(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),(0,p.jsxs)(Vu,{className:l,children:[(0,p.jsxs)(Qu,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[o&&r&&(i?(0,p.jsx)(Cl,{as:"label",htmlFor:r,children:o}):(0,p.jsx)(Gu,{className:"components-base-control__label",htmlFor:r,children:o})),o&&!r&&(i?(0,p.jsx)(Cl,{as:"label",children:o}):(0,p.jsx)(ec,{children:o})),s]}),!!a&&(0,p.jsx)(Xu,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:a})]})}),"BaseControl"),{VisualLabel:ec}),nc=ul((function(e,t){const n=zu(e);return(0,p.jsx)(kl,{...n,ref:t})}),"FlexItem"),rc=["40em","52em","64em"];function oc(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...u}=sl(function(e){const{isReversed:t,...n}=e;return void 0!==t?(be("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=function(e,t={}){const n=((e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>rc.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${rc.length} breakpoints, got index ${t}`);const[n,r]=(0,l.useState)(t);return(0,l.useEffect)((()=>{const e=()=>{const e=rc.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n})(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}(Array.isArray(r)?r:[r]),d="string"==typeof c&&!!c.includes("column"),f=ll();return{...u,className:(0,l.useMemo)((()=>{const e=fs({alignItems:null!=t?t:d?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:ps(i),justifyContent:a,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Nu,e,d?Ru:Fu,n)}),[t,n,f,c,o,i,d,a,s]),isColumn:d}}const ic={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},ac={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};const lc=ul((function(e,t){const n=function(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=sl(e,"HStack"),a=function(e,t="row"){if(!iu(e))return{};const n="column"===t?ac:ic;return e in n?n[e]:{align:e}}(t,r),s={children:function(e){return"string"==typeof e?[e]:l.Children.toArray(e).filter((e=>(0,l.isValidElement)(e)))}(n).map(((e,t)=>{if(r=["Spacer"],(n=e)&&("string"==typeof r?dl(n).includes(r):Array.isArray(r)&&r.some((e=>dl(n).includes(e))))){const n=e,r=n.key||`hstack-${t}`;return(0,p.jsx)(nc,{isBlock:!0,...n.props},r)}var n,r;return e})),direction:r,justify:"center",...a,...i,gap:o},{isColumn:u,...c}=oc(s);return c}(e);return(0,p.jsx)(kl,{...n,ref:t})}),"HStack"),sc=(0,l.forwardRef)((function({__nextHasNoMarginBottom:e,label:t,checked:n,help:r,className:o,onChange:i,disabled:a},l){const s=`inspector-toggle-control-${we(sc)}`,u=ll()("components-toggle-control",o,!e&&fs({marginBottom:ps(3)},"",""));let c,d;return e||be("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),r&&("function"==typeof r?void 0!==n&&(d=r(n)):d=r,d&&(c=s+"__help")),(0,p.jsx)(tc,{id:s,help:d&&(0,p.jsx)("span",{className:"components-toggle-control__help",children:d}),className:u,__nextHasNoMarginBottom:!0,children:(0,p.jsxs)(lc,{justify:"flex-start",spacing:2,children:[(0,p.jsx)(Du,{id:s,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":c,disabled:a,ref:l}),(0,p.jsx)(Iu,{as:"label",htmlFor:s,className:S("components-toggle-control__label",{"is-disabled":a}),children:t})]})})})),uc=sc;function cc({checked:e,compact:t=!1,disabled:n=!1,onChange:r,text:o,title:i}){return(0,p.jsx)("div",{className:cs()("amp-setting-toggle",{"amp-setting-toggle--disabled":n,"amp-setting-toggle--compact":t}),children:(0,p.jsx)(uc,{checked:!n&&e,label:(0,p.jsxs)("div",{className:"amp-setting-toggle__label-text",children:[i&&((0,l.isValidElement)(i)?i:(0,p.jsx)("h3",{children:i})),o&&(0,p.jsx)("p",{children:o})]}),onChange:r,__nextHasNoMarginBottom:!0})})}function dc({links:e=[],onClick:t}){return(0,p.jsx)(ds,{ElementName:"nav",className:"nav-menu",children:(0,p.jsx)("ul",{className:"nav-menu__list",children:e.map(((e,n)=>(0,p.jsx)("li",{className:"nav-menu__item",children:(0,p.jsx)("a",{className:cs()("nav-menu__link",{"nav-menu__link--active":e.isActive}),href:e.url,onClick:n=>t(n,e),children:e.label})},`${e.url}-${n}`)))})})}function fc({url:e}){const t=(0,l.useRef)(null),[n,r]=(0,l.useState)(!0);return(0,l.useEffect)((()=>{if(!t.current)return null;const e=t.current,n=()=>r(!1);return e.addEventListener("load",n),()=>{e.removeEventListener("load",n)}}),[]),(0,l.useEffect)((()=>{e&&r(!0)}),[e]),(0,p.jsx)(_u,{isLoading:n,children:(0,p.jsx)("iframe",{className:"done__preview-iframe",src:e,ref:t,title:(0,i.__)("Site preview","amp"),name:"amp-wizard-completion-preview"})})}function pc(){return(0,p.jsxs)("div",{className:"saving",children:[(0,p.jsxs)("svg",{width:"285",height:"138",viewBox:"0 0 285 138",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M95.1831 136.785C95.1831 136.785 129.883 102.785 204.483 119.185",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M117.883 123.285C117.883 123.285 73.9833 98.8854 34.3833 113.985",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M177.583 127.785C168.583 123.285 160.383 125.985 160.683 126.685",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M49.1836 109.788C47.4836 109.188 46.4836 106.988 47.2836 105.288C47.9836 103.588 50.2836 102.788 51.8836 103.688C51.6836 102.488 52.4836 101.288 53.5836 100.888C54.6836 100.488 56.0836 100.888 56.7836 101.788C57.4836 99.7882 59.6836 98.4882 61.8836 98.6882C63.4836 98.8882 64.8836 99.8882 65.5836 101.388C66.4836 100.488 68.1836 100.488 69.0836 101.488C69.9836 102.388 69.8836 104.088 68.8836 104.988C70.0836 104.688 71.3836 105.188 71.9836 106.188C72.5836 107.188 72.6836 108.588 71.9836 109.588",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M51.4828 120.886C52.7828 120.586 54.1828 120.386 55.3828 119.786C56.3828 119.286 57.2828 118.186 56.1828 117.286C55.4828 116.686 53.6828 116.786 52.7828 116.786C51.1828 116.686 49.5828 116.586 48.0828 117.286C47.0828 117.786 43.6828 120.186 44.0828 121.486C44.6828 122.986 50.2828 121.086 51.4828 120.886Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M68.6833 115.885C67.9833 115.685 67.1833 115.485 66.4833 115.585C63.9833 115.685 61.9833 117.685 64.4833 119.385C66.0833 120.485 68.3833 120.585 70.1833 120.785C71.2833 120.985 72.6833 120.885 73.1833 119.885C73.4833 119.185 73.1833 118.285 72.6833 117.785C72.1833 117.185 71.3833 116.885 70.6833 116.685C70.0833 116.285 69.3833 116.085 68.6833 115.885Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M246.827 89.9262C247.727 89.7262 248.627 89.4262 249.327 88.6262C250.427 87.5262 251.227 85.9262 250.527 84.3262C250.027 83.0262 248.327 80.9262 244.527 81.2262C243.727 81.3262 242.627 77.8262 242.127 77.2262C240.827 75.6262 239.027 74.7262 237.027 74.3262C236.027 74.1262 234.927 74.1262 234.027 74.5262C233.627 74.7262 231.827 76.0262 232.127 76.6262C232.127 76.6262 227.727 69.1262 221.527 75.5262C220.027 77.3262 219.527 78.7262 219.527 78.7262C219.527 78.7262 213.827 77.4262 212.627 82.0262C212.127 84.4262 211.127 89.2262 218.527 89.6262C223.727 89.6262 228.927 89.7262 234.127 89.8262C237.727 89.9262 241.327 90.4262 245.027 90.0262C245.627 90.1262 246.227 90.0262 246.827 89.9262Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M235.629 109.054H254.729C255.929 107.454 255.529 104.854 254.029 103.554C252.529 102.254 250.029 102.154 248.629 103.554C248.729 101.454 247.329 99.454 245.329 98.854C243.329 98.254 241.029 99.154 239.929 100.854C237.429 99.154 233.529 100.154 232.229 102.954C230.829 105.654 232.629 108.254 235.629 109.054Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M275.75 56.9414L277.85 62.8414L283.75 64.9414L277.85 67.0414L275.75 72.9414L273.65 67.0414L267.75 64.9414L273.65 62.8414L275.75 56.9414Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M34.3833 64.9414L36.4833 70.8414L42.3833 72.9414L36.4833 75.0414L34.3833 80.9414L32.2833 75.0414L26.3833 72.9414L32.2833 70.8414L34.3833 64.9414Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M10.4722 81.5586L12.8722 88.1586L19.4722 90.5586L12.8722 92.9586L10.4722 99.5586L8.07217 92.9586L1.47217 90.5586L8.07217 88.1586L10.4722 81.5586Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M144.095 75.0624L145.303 84.4721L151.979 86.8034L156.709 93.8481L155.359 100.717L164.592 105.589L169.674 100.473L178.103 99.0727L184.393 103.366L191.437 98.6364L189.651 92.1705L194.524 82.9369L201.182 80.1693L199.782 71.7409L193.106 69.4095L187.395 62.172L188.745 55.3034L180.493 50.6238L175.218 56.7209L166.982 57.1403L159.711 52.6535L153.84 56.5953L155.434 64.0425L150.561 73.276L144.095 75.0624Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M170.614 87.9204C176.033 88.9857 181.29 85.4562 182.355 80.037C183.42 74.6179 179.891 69.3612 174.471 68.296C169.052 67.2307 163.796 70.7603 162.73 76.1794C161.665 81.5986 165.195 86.8552 170.614 87.9204Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M138.394 47.0394L148.416 53.086L146.101 64.8607L134.536 66.6639L131.609 71.1842L134.394 82.9421L123.827 90.0372L113.998 83.0094L108.706 84.0074L103.834 93.241L91.0776 90.7336L90.0628 80.3427L84.7541 76.2417L74.9587 79.4119L67.8636 68.845L73.7173 59.8043L72.7192 54.5124L62.6973 48.4659L65.0119 36.6912L76.5768 34.888L79.6966 29.3864L76.7193 18.6098L87.0933 12.4959L96.9223 19.5237L102.407 17.5445L107.28 8.31088L120.035 10.8183L122.032 21.4021L126.359 25.3101L137.136 22.3328L144.424 31.9185L137.589 40.7664L138.394 47.0394Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M103.628 60.5884C109.047 61.6537 114.304 58.1241 115.369 52.705C116.434 47.2858 112.905 42.0292 107.486 40.964C102.066 39.8987 96.8098 43.4282 95.7445 48.8474C94.6793 54.2665 98.2088 59.5232 103.628 60.5884Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10"}),(0,p.jsx)("path",{d:"M101.718 70.3011C112.502 72.421 122.963 65.3972 125.083 54.6131C127.203 43.829 120.179 33.3683 109.395 31.2485C98.6109 29.1286 88.1502 36.1524 86.0303 46.9365C83.9105 57.7206 90.9342 68.1813 101.718 70.3011Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10"})]}),(0,p.jsx)("h1",{children:(0,i.__)("Saving your settings …","amp")})]})}const hc=[{slug:"welcome",title:(0,i.__)("Welcome","amp"),PageComponent:function(){return(0,p.jsxs)("div",{className:"welcome",children:[(0,p.jsxs)("div",{className:"welcome__header",children:[(0,p.jsx)("div",{className:"welcome__illustration",children:(0,p.jsxs)("svg",{width:"201",height:"152",viewBox:"0 0 201 152",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsxs)("g",{clipPath:"url(#clip-welcome)",children:[(0,p.jsx)("path",{d:"M62.7531 150.5C62.7531 150.5 97.4531 116.5 172.053 132.9",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M85.4531 137C85.4531 137 41.5531 112.6 1.95306 127.7",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M133.353 138.103C131.953 137.103 132.053 135.703 131.553 134.403C130.853 132.703 130.553 130.903 130.253 129.203C130.253 128.903 130.153 128.503 130.253 128.203C130.453 127.503 131.553 127.703 131.753 127.203C131.853 126.703 130.753 125.603 130.453 125.103C129.553 123.603 129.253 121.903 129.453 120.203C129.553 119.503 129.653 118.903 130.053 118.303C130.353 117.803 130.853 117.403 131.453 117.203C132.053 117.003 132.853 117.203 133.153 116.603C133.253 116.403 133.253 116.203 133.253 116.003C133.053 113.703 132.053 110.603 134.953 109.103C136.153 108.503 137.753 108.503 139.153 108.803C141.553 109.403 143.753 110.803 144.853 112.703C146.453 115.503 145.453 118.803 143.453 121.203C142.953 121.803 142.953 122.703 143.753 123.203C144.353 123.603 145.053 123.603 145.453 124.103C145.853 124.603 145.853 125.403 145.853 125.903C145.753 126.903 145.753 127.903 145.553 128.903C145.353 130.003 145.053 131.103 144.553 132.103C144.053 133.103 143.353 134.003 142.653 134.903C141.853 135.703 141.253 136.703 140.353 137.403C139.453 138.203 138.353 138.803 137.053 138.903C135.753 139.203 134.353 138.803 133.353 138.103Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M141.553 117.203C141.553 117.203 138.153 120.503 137.153 120.803",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M140.053 123.402C140.053 123.402 137.653 125.902 135.653 126.702",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M141.353 128.801C141.353 128.801 136.953 131.101 134.453 131.601",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M136.153 138.903C136.153 138.903 137.353 132.503 137.853 131.103C138.153 129.803 138.153 127.003 137.153 124.503C136.853 123.003 136.753 117.803 137.453 114.603C138.053 111.203 138.153 109.503 138.153 108.703",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M145.153 141.5C136.153 137 127.953 139.7 128.253 140.4",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M16.7531 123.503C15.0531 122.903 14.0531 120.703 14.8531 119.003C15.5531 117.303 17.8531 116.503 19.4531 117.403C19.2531 116.203 20.0531 115.003 21.1531 114.603C22.2531 114.203 23.6531 114.603 24.3531 115.503C25.0531 113.503 27.2531 112.203 29.4531 112.403C31.0531 112.603 32.4531 113.603 33.1531 115.103C34.0531 114.203 35.7531 114.203 36.6531 115.203C37.5531 116.103 37.4531 117.803 36.4531 118.703C37.6531 118.403 38.9531 118.903 39.5531 119.903C40.1531 120.903 40.2531 122.303 39.5531 123.303",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M19.0531 134.6C20.3531 134.3 21.7531 134.1 22.9531 133.5C23.9531 133 24.8531 131.9 23.7531 131C23.0531 130.4 21.2531 130.5 20.3531 130.5C18.7531 130.4 17.1531 130.3 15.6531 131C14.6531 131.5 11.2531 133.9 11.6531 135.2C12.2531 136.7 17.8531 134.8 19.0531 134.6Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M36.2531 129.6C35.5531 129.4 34.7531 129.2 34.0531 129.3C31.5531 129.4 29.5531 131.4 32.0531 133.1C33.6531 134.2 35.9531 134.3 37.7531 134.5C38.8531 134.7 40.2531 134.6 40.7531 133.6C41.0531 132.9 40.7531 132 40.2531 131.5C39.7531 130.9 38.9531 130.6 38.2531 130.4C37.6531 130 36.9531 129.8 36.2531 129.6Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M195.353 76.5004C196.253 76.3004 197.153 76.0004 197.853 75.2004C198.953 74.1004 199.753 72.5004 199.053 70.9004C198.553 69.6004 196.853 67.5004 193.053 67.8004C192.253 67.9004 191.153 64.4004 190.653 63.8004C189.353 62.2004 187.553 61.3004 185.553 60.9004C184.553 60.7004 183.453 60.7004 182.553 61.1004C182.153 61.3004 180.353 62.6004 180.653 63.2004C180.653 63.2004 176.253 55.7004 170.053 62.1004C168.553 63.9004 168.053 65.3004 168.053 65.3004C168.053 65.3004 162.353 64.0004 161.153 68.6004C160.653 71.0004 159.653 75.8004 167.053 76.2004C172.253 76.2004 177.453 76.3004 182.653 76.4004C186.253 76.5004 189.853 77.0004 193.553 76.6004C194.153 76.7004 194.753 76.6004 195.353 76.5004Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M150.553 101.3H169.653C170.853 99.7001 170.453 97.1001 168.953 95.8001C167.453 94.5001 164.953 94.4001 163.553 95.8001C163.653 93.7001 162.253 91.7001 160.253 91.1001C158.253 90.5001 155.953 91.4001 154.853 93.1001C152.353 91.4001 148.453 92.4001 147.153 95.2001C145.753 97.9001 147.553 100.5 150.553 101.3Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M92.0531 12.4023L100.753 20.9023L111.953 16.4023L116.753 27.5023L128.853 27.7023L129.053 39.8023L140.153 44.5023L135.653 55.8023L144.053 64.5023L135.653 73.1023L140.153 84.4023L129.053 89.2023L128.853 101.302L116.753 101.402L111.953 112.502L100.753 108.102L92.0531 116.502L83.3531 108.102L72.1531 112.502L67.3531 101.402L55.2531 101.302L55.0531 89.2023L43.9531 84.4023L48.4531 73.1023L39.9531 64.5023L48.4531 55.8023L43.9531 44.5023L55.0531 39.8023L55.2531 27.7023L67.3531 27.5023L72.1531 16.4023L83.3531 20.9023L92.0531 12.4023Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M91.7531 26.0017C70.2531 26.1017 52.9531 43.5017 53.1531 64.8017C53.2531 86.1017 70.8531 103.202 92.2531 103.002C113.753 102.902 131.053 85.5017 130.853 64.2017C130.753 42.9017 113.253 25.8017 91.7531 26.0017Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M105.353 60.9016L89.0531 87.8016H86.0531L88.9531 70.3016H79.9531H79.8531C79.0531 70.3016 78.3531 69.6016 78.3531 68.8016C78.3531 68.5016 78.6531 67.9016 78.6531 67.9016L94.9531 41.1016H97.9531L94.9531 58.6016H104.053H104.153C104.953 58.6016 105.653 59.3016 105.653 60.1016C105.653 60.4016 105.553 60.7016 105.353 60.9016Z",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M152.853 1.60156L154.953 7.50156L160.853 9.60156L154.953 11.7016L152.853 17.6016L150.753 11.7016L144.853 9.60156L150.753 7.50156L152.853 1.60156Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M14.8531 50.6016L16.9531 56.5016L22.8531 58.6016L16.9531 60.7016L14.8531 66.6016L12.7531 60.7016L6.85309 58.6016L12.7531 56.5016L14.8531 50.6016Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M170.853 21.6016L173.253 28.2016L179.853 30.6016L173.253 33.0016L170.853 39.6016L168.453 33.0016L161.853 30.6016L168.453 28.2016L170.853 21.6016Z",fill:"white",stroke:"#2459E7",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip-welcome",children:(0,p.jsx)("rect",{width:"199.4",height:"150.9",fill:"white",transform:"translate(0.953064 0.601562)"})})})]})}),(0,p.jsx)("h1",{children:(0,i.__)("AMP for WordPress","amp")})]}),(0,p.jsxs)("div",{className:"welcome__body",children:[(0,p.jsxs)("div",{className:"welcome__section",children:[(0,p.jsx)("div",{className:"welcome__section-icon",children:(0,p.jsxs)("svg",{width:"41",height:"41",viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsxs)("g",{clipPath:"url(#clip-welcome-2",children:[(0,p.jsx)("path",{d:"M8.37808 39.1765C7.85308 39.1765 7.41558 38.739 7.41558 38.214C7.41558 38.1265 7.41558 38.1265 7.41558 38.039L9.60308 25.439L0.415576 16.514C0.0655762 16.164 0.0655762 15.5515 0.415576 15.114C0.590576 14.939 0.765576 14.8515 0.940576 14.8515L13.6281 13.014L19.3156 1.55146C19.5781 1.11396 20.1906 0.93896 20.7156 1.20146C20.8031 1.28896 20.8906 1.37646 20.9781 1.55146L26.6656 13.014L39.3531 14.8515C39.8781 14.939 40.2281 15.3765 40.1406 15.9015C40.1406 16.0765 40.0531 16.339 39.8781 16.4265L30.6906 25.439L32.8781 38.039C32.9656 38.564 32.6156 39.089 32.0906 39.1765C31.9156 39.1765 31.6531 39.1765 31.4781 39.089L20.1031 33.139L8.72808 39.089C8.64058 39.1765 8.46558 39.1765 8.37808 39.1765ZM3.12808 16.5146L11.2656 24.4771C11.5281 24.7396 11.6156 25.0021 11.5281 25.3521L9.60308 36.5521L19.6656 31.3021C19.9281 31.1271 20.2781 31.1271 20.5406 31.3021L30.6031 36.5521L28.7656 25.2646C28.6781 24.9146 28.8531 24.6521 29.0281 24.3896L37.1656 16.4271L25.8781 14.7646C25.5281 14.6771 25.2656 14.5021 25.1781 14.2396L20.1031 4.08958L15.0281 14.3271C14.8531 14.5896 14.5906 14.7646 14.3281 14.8521L3.12808 16.5146Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M18.8774 29.0242H17.9149L18.8774 23.3367H15.9899C15.7274 23.3367 15.5524 23.1617 15.5524 22.8992C15.5524 22.8117 15.6399 22.7242 15.6399 22.6367L20.8024 13.8867H21.7649L20.8024 19.5742H23.7774C24.0399 19.5742 24.2149 19.7492 24.2149 20.0117C24.2149 20.0992 24.2149 20.1867 24.1274 20.2742L18.8774 29.0242Z",fill:"#005AF0"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip-welcome-2",children:(0,p.jsx)("rect",{width:"40",height:"40",fill:"white",transform:"translate(0.153076 0.125)"})})})]})}),(0,p.jsxs)("div",{className:"welcome__section-description",children:[(0,p.jsx)("h4",{children:(0,i.__)("AMP and WordPress","amp")}),(0,p.jsxs)("p",{children:[(0,i.__)("AMP provides support for building beautiful, fast, engaging, secure, and accessible sites, and the AMP plugin makes it easy to take advantage of AMP on WordPress.","amp")," ",(0,p.jsx)("a",{href:"https://amp-wp.org/",target:"_blank",rel:"noreferrer noopener",children:(0,i.__)("Learn more.","amp")})]})]})]}),(0,p.jsxs)("div",{className:"welcome__section",children:[(0,p.jsx)("div",{className:"welcome__section-icon",children:(0,p.jsxs)("svg",{width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsxs)("g",{clipPath:"url(#clip-welcome-3)",children:[(0,p.jsx)("path",{d:"M16.045 18.1819H3.35247C1.83747 18.1806 0.609343 16.9525 0.608093 15.4375V2.74437C0.609343 1.22937 1.83747 0.00125 3.35247 0H16.0456C17.5606 0.00125 18.7887 1.22937 18.79 2.74437V15.4375C18.7887 16.9525 17.5606 18.1806 16.0456 18.1819H16.045ZM3.35247 1.81813C2.84122 1.81875 2.42684 2.23312 2.42622 2.74437V15.4369C2.42684 15.9481 2.84122 16.3625 3.35247 16.3631H16.045C16.5562 16.3625 16.9706 15.9481 16.9712 15.4369V2.74437C16.9706 2.23312 16.5562 1.81875 16.045 1.81813H3.35247Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M1.51684 16.3639C1.01497 16.3639 0.608093 15.957 0.608093 15.4552C0.608093 15.2039 0.709968 14.977 0.874343 14.8127L6.97184 8.71516L9.69934 11.4427L15.1537 5.98828L18.5237 9.35828C18.6818 9.52141 18.7787 9.74453 18.7787 9.99016C18.7787 10.492 18.3718 10.8989 17.87 10.8989C17.6243 10.8989 17.4018 10.8014 17.2381 10.6433L15.1537 8.55891L9.69934 14.0133L6.97184 11.2858L2.15997 16.0977C1.99559 16.262 1.76809 16.3639 1.51747 16.3639H1.51684Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M8.78933 5.00047C8.78933 5.75359 8.1787 6.36422 7.42558 6.36422C6.67245 6.36422 6.06183 5.75359 6.06183 5.00047C6.06183 4.24734 6.67245 3.63672 7.42558 3.63672C8.1787 3.63672 8.78933 4.24734 8.78933 5.00047Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M34.2437 6.36438H26.9712C26.4693 6.36438 26.0618 5.9575 26.0618 5.45562C26.0618 4.95375 26.4687 4.54688 26.9712 4.54688H34.2437C34.7456 4.54688 35.1531 4.95375 35.1531 5.45562C35.1531 5.9575 34.7462 6.36438 34.2437 6.36438Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M34.2438 10.0011H26.9713C26.4694 10.0011 26.0619 9.59422 26.0619 9.09234C26.0619 8.59047 26.4688 8.18359 26.9713 8.18359H34.2438C34.7456 8.18359 35.1531 8.59047 35.1531 9.09234C35.1531 9.59422 34.7463 10.0011 34.2438 10.0011Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M34.2438 13.6378H26.9713C26.4694 13.6378 26.0619 13.2309 26.0619 12.7291C26.0619 12.2272 26.4688 11.8203 26.9713 11.8203H34.2438C34.7456 11.8203 35.1531 12.2272 35.1531 12.7291C35.1531 13.2309 34.7463 13.6378 34.2438 13.6378Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M36.9543 18.1819H24.2618C22.7468 18.1806 21.5187 16.9525 21.5175 15.4375V2.74437C21.5187 1.22937 22.7468 0.00125 24.2618 0H36.955C38.47 0.00125 39.6981 1.22937 39.6993 2.74437V15.4375C39.6981 16.9525 38.47 18.1806 36.955 18.1819H36.9543ZM24.2612 1.81813C23.75 1.81875 23.3356 2.23312 23.335 2.74437V15.4369C23.3356 15.9481 23.75 16.3625 24.2612 16.3631H36.9537C37.465 16.3625 37.8793 15.9481 37.88 15.4369V2.74437C37.8793 2.23312 37.465 1.81875 36.9537 1.81813H24.2612Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M36.9543 40H3.35247C1.83747 39.9988 0.609343 38.7706 0.608093 37.2556V22.7444C0.609343 21.2294 1.83747 20.0013 3.35247 20H36.9543C38.4693 20.0013 39.6975 21.2294 39.6987 22.7444V37.2556C39.6975 38.7706 38.4693 39.9988 36.9543 40ZM3.35247 21.8181C2.84122 21.8188 2.42684 22.2331 2.42622 22.7444V37.2556C2.42684 37.7669 2.84122 38.1812 3.35247 38.1819H36.9543C37.4656 38.1812 37.88 37.7669 37.8806 37.2556V22.7444C37.88 22.2331 37.4656 21.8188 36.9543 21.8181H3.35247Z",fill:"#005AF0"}),(0,p.jsx)("path",{d:"M17.8806 34.5456C17.3787 34.5456 16.9718 34.1388 16.9718 33.6362V26.4244C16.9718 25.9225 17.3787 25.5156 17.8806 25.5156C18.0668 25.5156 18.2406 25.5719 18.3849 25.6681L18.3818 25.6663L23.8362 29.2719C24.0831 29.4369 24.2437 29.715 24.2437 30.03C24.2437 30.345 24.0831 30.6231 23.8393 30.7862L23.8362 30.7881L18.3818 34.3944C18.2406 34.4887 18.0674 34.545 17.8812 34.545L17.8806 34.5456ZM18.7893 28.1156V31.9456L21.6868 30.03L18.7893 28.1156Z",fill:"#005AF0"})]}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip-welcome-3",children:(0,p.jsx)("rect",{width:"40",height:"40",fill:"white",transform:"translate(0.153076)"})})})]})}),(0,p.jsxs)("div",{className:"welcome__section-description",children:[(0,p.jsx)("h4",{children:(0,i.__)("Configure your site with AMP","amp")}),(0,p.jsx)("p",{children:(0,i.__)("Regardless of technical expertise, the onboarding flow guides you through configuring the plugin in a few easy steps.","amp")})]})]}),(0,p.jsxs)("div",{className:"welcome__section",children:[(0,p.jsx)("div",{className:"welcome__section-icon",children:(0,p.jsx)(Pu,{})}),(0,p.jsxs)("div",{className:"welcome__section-description",children:[(0,p.jsx)("h4",{children:(0,i.__)("Site review","amp")}),(0,p.jsx)("p",{children:(0,i.__)("At the end of onboarding the AMP plugin is fully configured, and your site is ready to start serving great experiences to your users.","amp")})]})]})]})]})},showTitle:!1},{slug:"technical-background",title:(0,i.__)("Technical Background","amp"),PageComponent:function(){const{setCanGoForward:e}=(0,l.useContext)(is),{developerToolsOption:t,fetchingUser:n,setDeveloperToolsOption:r}=(0,l.useContext)(Jl),o=(0,l.useCallback)((e=>{r(e)}),[r]);(0,l.useEffect)((()=>{"boolean"==typeof t&&e(!0)}),[t,e]);const a="technical-background-disable",s="technical-background-enable";return n?(0,p.jsx)(Ls,{}):(0,p.jsxs)("div",{className:"technical-background",children:[(0,p.jsxs)("div",{className:"technical-background__header",children:[(0,p.jsx)("h1",{children:(0,i.__)("Technical Background","amp")}),(0,p.jsx)("p",{children:(0,i.__)("To recommend the best AMP experience we’d like to know if you’re a more technical user, or less technical.","amp")})]}),(0,p.jsxs)("form",{children:[(0,p.jsx)(ds,{className:"technical-background-option-container",selected:!0===t,children:(0,p.jsxs)("div",{className:"technical-background-option",children:[(0,p.jsx)("div",{className:"technical-background-option__input-container",children:(0,p.jsx)("input",{type:"radio",id:s,checked:!0===t,onChange:()=>{o(!0)}})}),(0,p.jsx)(ls,{}),(0,p.jsxs)("label",{htmlFor:s,className:"technical-background-option__description",children:[(0,p.jsx)("h2",{children:(0,i.__)("Developer or technically savvy","amp")}),(0,p.jsx)("p",{children:(0,i.__)("I can do WordPress development by modifying themes and plugins. I am familiar with PHP, JavaScript, HTML, and CSS.","amp")})]})]})}),(0,p.jsx)(ds,{className:"technical-background-option-container",selected:!1===t,children:(0,p.jsxs)("div",{htmlFor:a,className:"technical-background-option",children:[(0,p.jsx)("div",{className:"technical-background-option__input-container",children:(0,p.jsx)("input",{type:"radio",id:a,checked:!1===t,onChange:()=>{o(!1)}})}),(0,p.jsx)(ss,{}),(0,p.jsxs)("label",{htmlFor:a,className:"technical-background-option__description",children:[(0,p.jsx)("h2",{children:(0,i.__)("Non-technical or wanting a simpler setup","amp")}),(0,p.jsx)("p",{children:(0,i.__)("I am not responsible for configuring and fixing issues on my site. I am a site owner and/or content creator who wants to take advantage of AMP performance.","amp")})]})]})})]})]})},showTitle:!1},{slug:"site-scan",title:(0,i.__)("Site Scan","amp"),PageComponent:function(){const{setCanGoForward:t}=(0,l.useContext)(is),{cancelSiteScan:n,isCancelled:r,isCompleted:o,isFailed:a,isFetchingScannableUrls:s,isReady:u,pluginsWithAmpIncompatibility:c,scannableUrls:d,scannedUrlsMaxIndex:f,startSiteScan:h,themesWithAmpIncompatibility:m}=(0,l.useContext)(Tl),{developerToolsOption:g}=(0,l.useContext)(Jl),v=(0,l.useMemo)((()=>!0===g),[g]);(0,l.useEffect)((()=>()=>n()),[n]),(0,l.useEffect)((()=>{(u||r)&&h()}),[r,u,h]),(0,l.useEffect)((()=>{(o||a)&&t(!0)}),[o,a,t]);const y=function(e,{delay:t=500}={}){const[n,r]=(0,l.useState)(e),o=(0,l.useRef)(!1);return(0,l.useEffect)((()=>()=>{o.current=!0}),[]),(0,l.useEffect)((()=>{let i=()=>{};return e&&!n?i=setTimeout((()=>{o.current||r(!0)}),t):!e&&n&&r(!1),()=>{clearTimeout(i)}}),[e,n,t]),n}(o);return s||u?(0,p.jsx)(Qs,{title:(0,i.__)("Please wait a minute…","amp"),headerContent:(0,p.jsx)(Ls,{})}):a?(0,p.jsx)(Qs,{title:(0,i.__)("Scan failed","amp"),headerContent:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,i.__)("Site scan was unsuccessful.","amp")}),(0,p.jsx)("p",{children:(0,i.__)("You can trigger the site scan again on the AMP Settings page after completing the Wizard.","amp")})]})}):y?(0,p.jsxs)(Qs,{title:(0,i.__)("Scan complete","amp"),headerContent:(0,p.jsx)("p",{children:m.length>0||c.length>0?(0,i.__)("Site scan found issues on your site. Proceed to the next step to follow recommendations for choosing a template mode.","amp"):(0,i.__)("Site scan found no issues on your site. Proceed to the next step to follow recommendations for choosing a template mode.","amp")}),children:[m.length>0&&(0,p.jsx)(Us,{className:"site-scan__section",slugs:m.map((({slug:e})=>e)),callToAction:v?(0,p.jsx)(Ms,{href:e.VALIDATED_URLS_LINK,children:(0,i.__)("Review Validated URLs","amp")}):null}),c.length>0&&(0,p.jsx)(Zs,{className:"site-scan__section",slugs:c.map((({slug:e})=>e)),callToAction:v?(0,p.jsx)(Ms,{href:e.VALIDATED_URLS_LINK,children:(0,i.__)("Review Validated URLs","amp")}):null})]}):(0,p.jsx)(Qs,{title:(0,i.__)("Please wait a minute…","amp"),headerContent:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,i.__)("Site scan is checking if there are AMP compatibility issues with your active theme and plugins. We’ll then recommend how to use the AMP plugin.","amp")}),(0,p.jsx)(Ts,{value:o?100:f/d.length*100}),(0,p.jsx)("p",{className:"site-scan__status",children:o?(0,i.__)("Scan complete","amp"):(0,i.sprintf)( // translators: 1: currently scanned URL index; 2: scannable URLs count; 3: scanned page type. // translators: 1: currently scanned URL index; 2: scannable URLs count; 3: scanned page type. (0,i.__)("Scanning %1$d/%2$d URLs: Checking %3$s…","amp"),f+1,d.length,d[f]?.label)})]})})}},{slug:"template-modes",title:(0,i.__)("Template Modes","amp"),PageComponent:function(){const{setCanGoForward:e}=(0,l.useContext)(is),{editedOptions:{theme_support:t},originalOptions:n}=(0,l.useContext)(g),{technicalQuestionChangedAtLeastOnce:r}=(0,l.useContext)(Ys),o=function(){const{hasSiteScanResults:e,isBusy:t,isFetchingScannableUrls:n,pluginsWithAmpIncompatibility:r,stale:o,themesWithAmpIncompatibility:a}=(0,l.useContext)(Tl),{developerToolsOption:s,fetchingUser:u,savingDeveloperToolsOption:c}=(0,l.useContext)(Jl),{fetchingOptions:d,originalOptions:f,savedOptions:h,savingOptions:m}=(0,l.useContext)(g),[v,w]=(0,l.useState)(null);return(0,l.useLayoutEffect)((()=>{if(t||n||d||m||u||c)return;const l={...f,...h},g=Object.entries(l?.suppressed_plugins||{}).some((([e,t])=>t&&Boolean(l.suppressible_plugins?.[e])));w(function({hasFreshSiteScanResults:e,hasPluginIssues:t,hasSuppressedPlugins:n,hasThemeIssues:r,userIsTechnical:o}){const a=(0,i.__)("If automatic mobile redirection is enabled, the AMP version of the content will be served on mobile devices. If AMP-to-AMP linking is enabled, once users are on an AMP page, they will continue navigating your AMP content.","amp"),l=F((0,i.__)("In Reader mode <b>your site will have a non-AMP and an AMP version</b>, and <b>each version will use its own theme</b>.","amp")+" "+a,{b:(0,p.jsx)("b",{})}),s=F((0,i.__)("In Transitional mode <b>your site will have a non-AMP and an AMP version</b>, and <b>both will use the same theme</b>.","amp")+" "+a,{b:(0,p.jsx)("b",{})}),u=F((0,i.__)("In Standard mode <b>your site will be completely AMP</b> (except in cases where you opt-out of AMP for specific parts of your site), and <b>it will use a single theme</b>.","amp"),{b:(0,p.jsx)("b",{})}),c=(0,i.__)("To address plugin compatibility issue(s), you may need to use Plugin Suppression to disable incompatible plugins on AMP pages or else select an alternative AMP-compatible plugin.","amp"),d=(0,i.__)("Recommended if you want to enable AMP on your site despite the detected compatibility issue(s).","amp"),f=(0,i.__)("Recommended so you can progressively enable AMP on your site while still making the non-AMP version available to visitors for functionality that is not AMP-compatible. Choose this mode if compatibility issues can be fixed or if your theme degrades gracefully when JavaScript is disabled.","amp"),h=(0,i.__)("Not recommended as your site has no AMP compatibility issues detected.","amp"),m=(0,i.__)("Not recommended until you can fix the detected compatibility issue(s).","amp"),g=(0,i.__)("Recommended since there were no theme compatibility issues detected.","amp"),v=(0,i.__)("Not recommended due to compatibility issue(s) which may break key site functionality, without developer assistance.","amp"),w=(0,i.__)("Not recommended because you have suppressed plugins.","amp");switch(!0){case!e:return{[y]:{recommendationLevel:Gs,details:[l]},[x]:{recommendationLevel:Gs,details:[s]},[b]:{recommendationLevel:Gs,details:[u]}};case r&&t&&o:return{[y]:{recommendationLevel:qs,details:[l,d,c]},[x]:{recommendationLevel:Gs,details:[s,f,c]},[b]:{recommendationLevel:Ks,details:[u,m,c]}};case r&&t&&!o:return{[y]:{recommendationLevel:qs,details:[l,d,c]},[x]:{recommendationLevel:Ks,details:[s,v,c]},[b]:{recommendationLevel:Ks,details:[u,v,c]}};case r&&!t&&o:return{[y]:{recommendationLevel:qs,details:[l,d]},[x]:{recommendationLevel:qs,details:[s,f]},[b]:{recommendationLevel:Gs,details:[u,m]}};case r&&!t&&!o:return{[y]:{recommendationLevel:qs,details:[l,d]},[x]:{recommendationLevel:Ks,details:[s,v]},[b]:{recommendationLevel:Ks,details:[u,v]}};case!r&&t&&o:return{[y]:{recommendationLevel:Ks,details:[l,c]},[x]:{recommendationLevel:qs,details:[s,g,c]},[b]:{recommendationLevel:Gs,details:[u,m,c]}};case!r&&t&&!o:return{[y]:{recommendationLevel:qs,details:[l,c]},[x]:{recommendationLevel:qs,details:[s,g,c]},[b]:{recommendationLevel:Ks,details:[u,v,c]}};case!r&&!t&&o:return{[y]:{recommendationLevel:Ks,details:[l,h]},[x]:{recommendationLevel:n?qs:Ks,details:[s,h]},[b]:{recommendationLevel:n?Ks:qs,details:[u,(0,i.__)("Recommended as you have an AMP-compatible theme and no issues were detected with any of the plugins on your site.","amp"),n?w:null]}};case!r&&!t&&!o:return{[y]:{recommendationLevel:Ks,details:[l,h]},[x]:{recommendationLevel:n?qs:Gs,details:[s,(0,i.__)("Recommended if you can’t commit to choosing plugins that are AMP compatible when extending your site. This mode will make it easy to keep AMP content even if non-AMP-compatible plugins are used later on.","amp")]},[b]:{recommendationLevel:Gs,details:[u,(0,i.__)("Recommended if you can commit to always choosing plugins that are AMP compatible when extending your site.","amp"),n?w:null]}};default:throw new Error((0,i.__)("A template mode recommendation case was not accounted for.","amp"))}}({hasPluginIssues:r?.length>0,hasFreshSiteScanResults:e&&!o,hasSuppressedPlugins:g,hasThemeIssues:a?.length>0,userIsTechnical:!0===s}))}),[s,d,u,e,t,n,f,r?.length,h,c,m,o,a?.length]),v}();return(0,l.useEffect)((()=>{void 0!==t&&e(!0)}),[e,t]),(0,p.jsxs)("div",{className:"template-modes",children:[(0,p.jsxs)("div",{className:"template-modes__header",children:[(0,p.jsx)("h1",{children:(0,i.__)("Template Modes","amp")}),(0,p.jsx)("p",{children:F((0,i.__)("Based on site scan results the AMP plugin provides the following choices. Learn more about the <GettingStartedLink>AMP experience with different modes</GettingStartedLink> and availability of <EcosystemLink>AMP components in the ecosystem</EcosystemLink>.","amp"),{GettingStartedLink:(0,p.jsx)("a",{href:"https://amp-wp.org/documentation/getting-started/template-modes/",target:"_blank",rel:"noreferrer noopener"}),EcosystemLink:(0,p.jsx)("a",{href:"https://amp-wp.org/ecosystem/",target:"_blank",rel:"noreferrer noopener"})})})]}),(0,p.jsx)(ku,{currentMode:t,firstTimeInWizard:!1===n.plugin_configured,savedCurrentMode:n.theme_support,technicalQuestionChanged:r,templateModeRecommendation:o})]})},showTitle:!1},{slug:"theme-selection",title:(0,i.__)("Theme Selection","amp"),PageComponent:function(){const{canGoForward:e,setCanGoForward:t}=(0,l.useContext)(is),{editedOptions:n}=(0,l.useContext)(g),{fetchingThemes:r,themes:o}=(0,l.useContext)(w),{reader_theme:i,theme_support:a}=n;return(0,l.useEffect)((()=>{o&&i&&!1===e&&o.map((({slug:e})=>e)).includes(i)&&t(!0)}),[e,t,i,o,a]),r?(0,p.jsx)(Ls,{}):(0,p.jsx)("div",{className:"choose-reader-theme",children:(0,p.jsx)(Lu,{})})}},{slug:"done",title:(0,i.__)("Done","amp"),PageComponent:function(){const{didSaveOptions:t,editedOptions:{theme_support:n,reader_theme:r},hasOptionsChanges:o,readerModeWasOverridden:a,saveOptions:s,savingOptions:u}=(0,l.useContext)(g),{didSaveDeveloperToolsOption:c,saveDeveloperToolsOption:d,savingDeveloperToolsOption:f}=(0,l.useContext)(Jl),{canGoForward:h,setCanGoForward:m}=(0,l.useContext)(is),{downloadedTheme:v,downloadingTheme:k,downloadingThemeError:C}=(0,l.useContext)(w),{fetchScannableUrls:S,forceStandardMode:_,isFetchingScannableUrls:j}=(0,l.useContext)(Tl),{hasPreview:E,isPreviewingAMP:L,previewLinks:M,previewUrl:P,setActivePreviewLink:T,toggleIsPreviewingAMP:N}=function(){const{scannableUrls:e}=(0,l.useContext)(Tl),{editedOptions:{theme_support:t}}=(0,l.useContext)(g),[n,r]=(0,l.useState)(t!==b),[o,i]=(0,l.useState)(e.length>0?e[0].type:null);(0,l.useEffect)((()=>{i(e.length>0?e[0].type:null)}),[e]);const a=(0,l.useMemo)((()=>e.map((({url:e,amp_url:t,type:r,label:i})=>({type:r,label:i,url:n?t:e,isActive:r===o})))),[n,o,e]),s=(0,l.useMemo)((()=>a.find((e=>e.isActive))?.url),[a]);return{hasPreview:e.length>0,isPreviewingAMP:n,previewLinks:a,previewUrl:s,setActivePreviewLink:e=>i(e.type),toggleIsPreviewingAMP:()=>r((e=>!e))}}();return(0,l.useEffect)((()=>{h||m(!0)}),[m,h]),(0,l.useEffect)((()=>{t||u||s()}),[t,s,u]),(0,l.useEffect)((()=>{t&&_&&S()}),[t,S,_]),(0,l.useEffect)((()=>{c||f||d()}),[c,f,d]),u||f||k||o||j?(0,p.jsx)(pc,{}):(0,p.jsxs)("div",{className:"done",children:[(0,p.jsx)("h1",{className:"done__heading",children:(0,i.__)("Done","amp")}),(0,p.jsxs)("div",{className:"done__content done__content--primary",children:[(0,p.jsxs)("h2",{className:"done__icon-title",children:[(0,p.jsx)(Pu,{}),(0,i.__)("Review","amp")]}),y===n&&v===r&&(0,p.jsx)(Hs,{size:Is,type:Fs,children:(0,i.__)("Your Reader theme was automatically installed","amp")}),a&&(0,p.jsx)(Hs,{type:Rs,size:Is,children:(0,i.__)("Because you selected a Reader theme that is the same as your site's active theme, your site has automatically been switched to Transitional template mode.","amp")}),(0,p.jsx)("p",{children:(0,i.__)("Your site is ready to bring great experiences to your users!","amp")}),b===n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,i.__)("In Standard mode there is a single AMP version of your site.","amp")}),E&&(0,p.jsx)("p",{children:(0,i.__)("Browse your site here to ensure it meets your expectations.","amp")})]}),x===n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,i.__)("In Transitional mode AMP and non-AMP versions of your site are served using your currently active theme.","amp")}),E&&(0,p.jsx)("p",{children:(0,i.__)("Browse your site here to ensure it meets your expectations, and toggle the AMP setting to compare both versions.","amp")})]}),y===n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,i.__)("In Reader mode AMP is served using your selected Reader theme, and pages for your non-AMP site are served using your primary theme.","amp")}),E&&(0,p.jsx)("p",{children:(0,i.__)("Browse your site here to ensure it meets your expectations, and toggle the AMP setting to compare both versions.","amp")}),(0,p.jsx)("p",{children:(0,i.__)("As a last step, use the Customizer to tailor the Reader theme as needed.","amp")})]}),E&&(0,p.jsx)("div",{className:"done__links-container",children:(0,p.jsx)(dc,{links:M,onClick:(e,t)=>{e.preventDefault(),T(t)}})})]}),(0,p.jsxs)("div",{className:"done__preview-container",children:[y===n&&C&&(0,p.jsx)(Hs,{size:Is,type:Rs,children:(0,i.__)("There was an error downloading your Reader theme. As a result, your site is currently using the legacy reader theme. Please install your chosen theme manually.","amp")}),E&&(0,p.jsxs)(p.Fragment,{children:[b!==n&&(0,p.jsx)(cc,{text:(0,i.__)("AMP","amp"),checked:L,onChange:N,compact:!0}),(0,p.jsx)(fc,{url:P})]})]}),(0,p.jsxs)("div",{className:"done__content done__content--secondary",children:[(0,p.jsxs)("h2",{className:"done__icon-title",children:[(0,p.jsx)(Mu,{}),(0,i.__)("Need help?","amp")]}),(0,p.jsxs)("ul",{className:"done__list",children:[(0,p.jsx)("li",{children:F((0,i.__)("Reach out in the <a>support forums</a>","amp"),{a:(0,p.jsx)("a",{href:"https://wordpress.org/support/plugin/amp/#new-topic-0",target:"_blank",rel:"noreferrer noopener"})})}),(0,p.jsx)("li",{children:F((0,i.__)("Try a different template mode <a>in settings</a>","amp"),{a:(0,p.jsx)("a",{href:e.SETTINGS_LINK,target:"_blank",rel:"noreferrer noopener"})})}),(0,p.jsx)("li",{children:F((0,i.__)("<a>Learn more</a> how the AMP plugin works","amp"),{a:(0,p.jsx)("a",{href:"https://amp-wp.org/documentation/how-the-plugin-works/",target:"_blank",rel:"noreferrer noopener"})})})]})]})]})},showTitle:!1}];function mc(){return(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:(0,p.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,p.jsx)("path",{fill:"#FFF",d:"M0 15c0 8.284 6.716 15 15 15 8.285 0 15-6.716 15-15 0-8.284-6.715-15-15-15C6.716 0 0 6.716 0 15z"}),(0,p.jsx)("path",{fill:"#005AF0",fillRule:"nonzero",d:"M13.85 24.098h-1.14l1.128-6.823-3.49.005h-.05a.57.57 0 0 1-.568-.569c0-.135.125-.363.125-.363l6.272-10.46 1.16.005-1.156 6.834 3.508-.004h.056c.314 0 .569.254.569.568 0 .128-.05.24-.121.335L13.85 24.098zM15 0C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15 8.285 0 15-6.716 15-15 0-8.284-6.715-15-15-15z"})]})})}var gc=o(556),vc=o.n(gc);function yc({excludeUserContext:e=!1,appRoot:t}){const{hasOptionsChanges:n,didSaveOptions:r}=(0,l.useContext)(g),[o,a]=(0,l.useState)({hasDeveloperToolsOptionChange:!1,didSaveDeveloperToolsOption:!0}),{hasDeveloperToolsOptionChange:s,didSaveDeveloperToolsOption:u}=o;return(0,l.useEffect)((()=>{if(n&&!r||s&&!u){const e=e=>(e.returnValue=(0,i.__)("This page has unsaved changes. Are you sure you want to leave?","amp"),null);return t.ownerDocument.addEventListener("beforeunload",e),()=>{t.ownerDocument.removeEventListener("beforeunload",e)}}return()=>{}}),[t,n,r,s,u]),e?null:(0,p.jsx)(bc,{setUserState:a})}function bc({setUserState:e}){const{hasDeveloperToolsOptionChange:t,didSaveDeveloperToolsOption:n}=(0,l.useContext)(Jl);return(0,l.useEffect)((()=>{e({hasDeveloperToolsOptionChange:t,didSaveDeveloperToolsOption:n})}),[t,n,e]),null}function xc(e={}){e={...e,mobileBreakpoint:783};const{mobileBreakpoint:t}=e,[n,r]=(0,l.useState)(window.innerWidth);return(0,l.useEffect)((()=>{const e=()=>{r(window.innerWidth)};return o.g.addEventListener("resize",e,{passive:!0}),()=>{o.g.removeEventListener("resize",e)}}),[]),{windowWidth:n,isMobile:n<t}}function wc(){const e=we(wc);return(0,p.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("mask",{id:`mask-${e}`,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"5",width:"16",height:"12",children:(0,p.jsx)("path",{d:"M7.32923 14.137L3.85423 10.662L2.6709 11.837L7.32923 16.4953L17.3292 6.49531L16.1542 5.32031L7.32923 14.137Z",fill:"white"})}),(0,p.jsx)("g",{mask:`url(#mask-${e})`,children:(0,p.jsx)("rect",{y:"0.90625",width:"20",height:"20",fill:"white"})})]})}function kc({activePageIndex:e,index:t}){const n=e>t,r=!n&&e===t;return n?(0,p.jsx)("span",{className:"amp-stepper__bullet amp-stepper__bullet--check",children:(0,p.jsx)(wc,{})}):r?(0,p.jsx)("span",{className:"amp-stepper__bullet amp-stepper__bullet--dot",children:(0,p.jsx)("span",{})}):(0,p.jsx)("span",{className:"amp-stepper__bullet",children:t+1})}function Cc({activePageIndex:e,pages:t}){const n=we(Cc);return(0,p.jsx)("div",{className:"amp-stepper",children:(0,p.jsx)("ul",{children:t.map((({title:t},r)=>(0,p.jsxs)("li",{className:`amp-stepper__item ${r===e?"amp-stepper__item--active":""} ${e>r?"amp-stepper__item--done":""}`,children:[(0,p.jsx)(kc,{activePageIndex:e,index:r}),(0,p.jsx)("span",{className:"amp-stepper__item-title",children:t})]},`${n}-${r}`)))})})}function Sc({closeLink:e}){return(0,p.jsxs)(jl,{isLink:!0,href:e,children:[(0,p.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("mask",{id:"close-icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"3",y:"3",width:"19",height:"19",children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.895 3.71875H5.89502C4.79502 3.71875 3.89502 4.61875 3.89502 5.71875V19.7188C3.89502 20.8188 4.79502 21.7188 5.89502 21.7188H19.895C21.005 21.7188 21.895 20.8188 21.895 19.7188V15.7188H19.895V19.7188H5.89502V5.71875H19.895V9.71875H21.895V5.71875C21.895 4.61875 21.005 3.71875 19.895 3.71875ZM13.395 17.7188L14.805 16.3088L12.225 13.7188H21.895V11.7188H12.225L14.805 9.12875L13.395 7.71875L8.39502 12.7188L13.395 17.7188Z",fill:"white"})}),(0,p.jsx)("g",{mask:"url(#close-icon)",children:(0,p.jsx)("rect",{width:"24",height:"24",transform:"matrix(-1 0 0 1 24.895 0.71875)",fill:"#2459E7"})})]}),(0,i.__)("Close","amp")]})}function _c({closeLink:t,finishLink:n}){const{isMobile:r}=xc(),{activePageIndex:o,canGoForward:s,isLastPage:u,moveBack:c,moveForward:d}=(0,l.useContext)(is),{savingOptions:f,editedOptions:{theme_support:h},originalOptions:{preview_permalink:m,reader_theme:v}}=(0,l.useContext)(g),{savingDeveloperToolsOption:b}=(0,l.useContext)(Jl),{downloadingTheme:x}=(0,l.useContext)(w),{isBusy:k}=(0,l.useContext)(Tl);let C,S;return u&&y===h?(C=(0,i.__)("Customize","amp"),S=b||f?void 0:(0,a.addQueryArgs)(e.CUSTOMIZER_LINK,"legacy"===v?{"autofocus[panel]":"amp_panel",url:m}:{url:m,[e.AMP_QUERY_VAR]:"1"})):u?(C=(0,i.__)("Finish","amp"),S=b||f?void 0:n):(C=(0,i.__)("Next","amp"),S=void 0),(0,p.jsx)("div",{className:"amp-settings-nav",children:(0,p.jsxs)("div",{className:"amp-settings-nav__inner",children:[(0,p.jsx)("div",{className:"amp-settings-nav__close",children:!r&&(!u||y===h)&&(0,p.jsx)(Sc,{closeLink:t})}),(0,p.jsxs)("div",{className:"amp-settings-nav__prev-next",children:[1>o?(0,p.jsx)("span",{className:"amp-settings-nav__placeholder",children:" "}):(0,p.jsxs)(jl,{disabled:k,className:"amp-settings-nav__prev",onClick:c,children:[(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:(0,p.jsx)("path",{d:"M43.16 10.18c-0.881-0.881-2.322-0.881-3.203 0s-0.881 2.322 0 3.203l16.335 16.335h-54.051c-1.281 0-2.242 1.041-2.242 2.242 0 1.281 0.961 2.322 2.242 2.322h54.051l-16.415 16.335c-0.881 0.881-0.881 2.322 0 3.203s2.322 0.881 3.203 0l20.259-20.259c0.881-0.881 0.881-2.322 0-3.203l-20.179-20.179z"})}),(0,i.__)("Previous","amp")]}),(0,p.jsxs)(jl,{disabled:!s||f||b||x,href:S,id:"next-button",isPrimary:!0,onClick:d,children:[C,!u&&(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:(0,p.jsx)("path",{d:"M43.16 10.18c-0.881-0.881-2.322-0.881-3.203 0s-0.881 2.322 0 3.203l16.335 16.335h-54.051c-1.281 0-2.242 1.041-2.242 2.242 0 1.281 0.961 2.322 2.242 2.322h54.051l-16.415 16.335c-0.881 0.881-0.881 2.322 0 3.203s2.322 0.881 3.203 0l20.259-20.259c0.881-0.881 0.881-2.322 0-3.203l-20.179-20.179z"})})]})]})]})})}function jc({children:e}){return(0,l.useEffect)((()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0}),[]),e}function Ec({closeLink:e,finishLink:t,appRoot:n}){const{isMobile:r}=xc(),{activePageIndex:o,currentPage:{title:a,PageComponent:s,showTitle:u},moveBack:c,moveForward:d,pages:f}=(0,l.useContext)(is),{fetchScannableUrls:h}=(0,l.useContext)(Tl);(0,l.useEffect)((()=>{h({forceStandardMode:!0})}),[h]);const m=(0,l.useMemo)((()=>()=>(0,p.jsx)(jc,{children:(0,p.jsx)(s,{})})),[s]);return(0,p.jsxs)("div",{className:"amp-onboarding-wizard-container",children:[(0,p.jsxs)("div",{className:"amp-onboarding-wizard",children:[(0,p.jsxs)("div",{className:"amp-stepper-container",children:[(0,p.jsxs)("div",{className:"amp-stepper-container__header",children:[r&&(0,p.jsx)(Sc,{closeLink:e}),(0,p.jsxs)("div",{className:"amp-onboarding-wizard__logo-container",children:[(0,p.jsx)(mc,{}),(0,p.jsx)("h1",{children:(0,i.__)("AMP","amp")})]}),(0,p.jsx)("div",{className:"amp-onboarding-wizard-plugin-name",children:(0,i.__)("Official AMP Plugin for WordPress","amp")})]}),(0,p.jsx)(Cc,{activePageIndex:o,pages:f})]}),(0,p.jsxs)("div",{className:"amp-onboarding-wizard-panel-container",children:[(0,p.jsxs)(j,{className:"amp-onboarding-wizard-panel",children:[!1!==u&&(0,p.jsx)("h1",{children:a}),(0,p.jsx)(m,{})]}),(0,p.jsx)(_c,{activePageIndex:o,closeLink:e,finishLink:t,moveBack:c,moveForward:d,pages:f})]})]}),(0,p.jsx)(yc,{appRoot:n})]})}bc.propTypes={setUserState:vc().func};const{ajaxurl:Lc}=o.g;let Mc;function Pc({children:t}){return o.g.removeEventListener("error",Mc),(0,p.jsx)(m,{children:(0,p.jsx)(Ml,{exitLinkLabel:(0,i.__)("Return to AMP settings.","amp"),exitLinkUrl:e.SETTINGS_LINK,title:(0,i.__)("The setup wizard has experienced an error.","amp"),children:(0,p.jsx)(v,{delaySave:!0,hasErrorBoundary:!0,optionsRestPath:e.OPTIONS_REST_PATH,populateDefaultValues:!1,children:(0,p.jsx)(es,{userOptionDeveloperTools:e.USER_FIELD_DEVELOPER_TOOLS_ENABLED,usersResourceRestPath:e.USERS_RESOURCE_REST_PATH,children:(0,p.jsx)(ns,{children:(0,p.jsx)(os,{children:(0,p.jsx)(Xl,{fetchCachedValidationErrors:!1,resetOnOptionsChange:!0,scannableUrlsRestPath:e.SCANNABLE_URLS_REST_PATH,scanOnce:!0,validateNonce:e.VALIDATE_NONCE,children:(0,p.jsx)(as,{pages:hc,children:(0,p.jsx)(k,{currentTheme:e.CURRENT_THEME,hasErrorBoundary:!0,wpAjaxUrl:Lc,readerThemesRestPath:e.READER_THEMES_REST_PATH,updatesNonce:e.UPDATES_NONCE,children:(0,p.jsx)(Xs,{children:t})})})})})})})})})})}r()((()=>{const n=document.getElementById(e.APP_ROOT_ID);n&&(Mc=e=>{e.filename&&/amp-onboarding-wizard(\.min)?\.js/.test(e.filename)&&(0,t.H)(n).render((0,p.jsx)(Ll,{error:e.error}))},o.g.addEventListener("error",Mc),(0,t.H)(n).render((0,p.jsx)(Pc,{children:(0,p.jsx)(Ec,{closeLink:(0,a.addQueryArgs)(e.CLOSE_LINK,{[e.AMP_SCAN_IF_STALE]:1}),finishLink:(0,a.addQueryArgs)(e.SETTINGS_LINK,{[e.AMP_SCAN_IF_STALE]:1}),appRoot:n})})))}))})()})();