diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/js/dist/components.min.js | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.tar.xz wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/js/dist/components.min.js')
-rw-r--r-- | wp-includes/js/dist/components.min.js | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 95bc414..1e2532b 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -1,10 +1,5 @@ /*! This file is auto-generated */ -(()=>{var e,t,n={5755:(e,t)=>{var n; -/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},66: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)};var 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 s(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}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}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 c=l;e.exports=c},1637:(e,t,n)=>{"use strict";var r=n(3062);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),m=r.offset(e),p=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,b=void 0,y=void 0,x=void 0,w=void 0,E=void 0,_=void 0,S=void 0,C=void 0;f?(E=t,C=r.height(E),S=r.width(E),_={left:r.scrollLeft(E),top:r.scrollTop(E)},x={left:m.left-_.left-c,top:m.top-_.top-l},w={left:m.left+h-(_.left+S)+d,top:m.top+p-(_.top+C)+u},y=_):(g=r.offset(t),v=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},x={left:m.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:m.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},w={left:m.left+h-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:m.top+p-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),x.top<0||w.top>0?!0===a?r.scrollTop(t,y.top+x.top):!1===a?r.scrollTop(t,y.top+w.top):x.top<0?r.scrollTop(t,y.top+x.top):r.scrollTop(t,y.top+w.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+x.top):r.scrollTop(t,y.top+w.top)),o&&(x.left<0||w.left>0?!0===s?r.scrollLeft(t,y.left+x.left):!1===s?r.scrollLeft(t,y.left+w.left):x.left<0?r.scrollLeft(t,y.left+x.left):r.scrollLeft(t,y.left+w.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+x.left):r.scrollLeft(t,y.left+w.left)))}},5428:(e,t,n)=>{"use strict";e.exports=n(1637)},3062:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function o(e){return r(e)}function i(e){return r(e,!0)}function a(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",d="left";var f=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[c]&&e[c][t];if(s.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e[u][d];e[u][d]=e[c][d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e[u][d]=i}return""===n?"auto":n});var h=["margin","border","padding"],g=-1,v=2,b=1;function y(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,s))||0}return r}function x(e){return null!=e&&e==e.window}var w={};function E(e,t,n){if(x(e))return"width"===t?w.viewportWidth(e):w.viewportHeight(e);if(9===e.nodeType)return"width"===t?w.docWidth(e):w.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),p(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?b:g);var s=void 0!==o||i,l=o||a;if(n===g)return s?l-y(e,["border","padding"],r):a;if(s){var c=n===v?-y(e,["border"],r):y(e,["margin"],r);return l+(n===b?0:c)}return a+y(e,h.slice(n),r)}m(["Width","Height"],(function(e){w["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],w["viewport"+e](n))},w["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var _={position:"absolute",visibility:"hidden",display:"block"};function S(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,_,(function(){t=E.apply(void 0,n)})),t}function C(e,t,r){var o=r;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&C(e,i,t[i])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);w["outer"+t]=function(t,n){return t&&S(t,e,n?0:b)};var n="width"===e?["Left","Right"]:["Top","Bottom"];w[e]=function(t,r){if(void 0===r)return t&&S(t,e,g);if(t){f(t);return p(t)&&(r+=y(t,["padding","border"],n)),C(t,e,r)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===C(e,"position")&&(e.style.position="relative");var n=a(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(C(e,i))||0,r[i]=o+t[i]-n[i]);C(e,r)}(e,t)},isWindow:x,each:m,css:C,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(x(e)){if(void 0===t)return o(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(x(e)){if(void 0===t)return i(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},w)},2287:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,m=60116,p=60121,h=60122,g=60117,v=60129,b=60131; +(()=>{var e,t,n={66: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)};var 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 s(e,t){try{return t in e}catch(e){return!1}}function a(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 s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(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}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);return s===Array.isArray(e)?s?i.arrayMerge(e,n,i):a(e,n,i):r(n,i)}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 c=l;e.exports=c},2287:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,s=60114,a=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,b=60131; /** @license React v17.0.2 * react-is.production.min.js * @@ -12,7 +7,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),m=y("react.lazy"),p=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case m:case f:case s:return e;default:return t}}case r:return t}}}},1915:(e,t,n)=>{"use strict";n(2287)},7734: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}},8924:(e,t)=>{var n={};n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=f(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,s)||i("repeating-linear-gradient",e.repeatingLinearGradient,s)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return a(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:f(m)}}))}function a(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function s(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=h()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:h(),y:h()};if(e.x||e.y)return{type:"position",value:e}}function f(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function m(){var t=v("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:f(p)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:f(p)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=h(),t}function p(){return b(e.number)[1]}function h(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&y(r[0].length),(n=e.exec(t))&&y(n[0].length),n}function y(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},9664:e=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1880:(e,t,n)=>{"use strict";var r=n(1178),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},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=m(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},2950:(e,t)=>{"use strict"; + */if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;n=x("react.element"),r=x("react.portal"),o=x("react.fragment"),i=x("react.strict_mode"),s=x("react.profiler"),a=x("react.provider"),l=x("react.context"),c=x("react.forward_ref"),u=x("react.suspense"),d=x("react.suspense_list"),p=x("react.memo"),h=x("react.lazy"),f=x("react.block"),m=x("react.server.block"),g=x("react.fundamental"),v=x("react.debug_trace_mode"),b=x("react.legacy_hidden")}function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case a:return e;default:return t}}case r:return t}}}},1915:(e,t,n)=>{"use strict";n(2287)},7734: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 s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},8924:(e,t)=>{var n={};n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=p(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,a)||i("repeating-linear-gradient",e.repeatingLinearGradient,a)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return s(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:p(h)}}))}function s(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function a(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=m()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:m(),y:m()};if(e.x||e.y)return{type:"position",value:e}}function p(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function h(){var t=v("hex",e.hexColor,1)||s(e.rgbaColor,(function(){return{type:"rgba",value:p(f)}}))||s(e.rgbColor,(function(){return{type:"rgb",value:p(f)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=m(),t}function f(){return b(e.number)[1]}function m(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&x(r[0].length),(n=e.exec(t))&&x(n[0].length),n}function x(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},9664:e=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,s=void 0!==i&&i,a=e.findChunks,l=void 0===a?r:a,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:s,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),s=void 0;s=i.exec(a);){var l=s.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),s.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1880:(e,t,n)=>{"use strict";var r=n(1178),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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!(i[v]||r&&r[v]||m&&m[v]||a&&a[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},2950:(e,t)=>{"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -20,16 +15,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */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,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=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 u:case d:case i:case s:case a:case m:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},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)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},1178:(e,t,n)=>{"use strict";e.exports=n(2950)},628:(e,t,n)=>{"use strict";var r=n(4067);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3394:(e,t,n)=>{"use strict"; -/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.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:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},4922:(e,t,n)=>{"use strict";e.exports=n(3394)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},8477:(e,t,n)=>{"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,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=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,b=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,y=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 u:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},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)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},1178:(e,t,n)=>{"use strict";e.exports=n(2950)},628:(e,t,n)=>{"use strict";var r=n(4067);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var s=function(e){return e.replace(r,i)};e.exports=s,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=s},8477:(e,t,n)=>{"use strict"; /** * @license React * use-sync-external-store-shim.production.min.js @@ -38,18 +24,18 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(1609);var 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,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="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,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},422:(e,t,n)=>{"use strict";e.exports=n(8477)},1609:e=>{"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](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 s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).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.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})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AnglePickerControl:()=>zy,Animate:()=>vl,Autocomplete:()=>Sw,BaseControl:()=>iy,BlockQuotation:()=>n.BlockQuotation,Button:()=>my,ButtonGroup:()=>Ok,Card:()=>gP,CardBody:()=>kP,CardDivider:()=>AP,CardFooter:()=>zP,CardHeader:()=>FP,CardMedia:()=>jP,CheckboxControl:()=>VP,Circle:()=>n.Circle,ClipboardButton:()=>$P,ColorIndicator:()=>DE,ColorPalette:()=>JS,ColorPicker:()=>MS,ComboboxControl:()=>II,CustomGradientPicker:()=>OT,CustomSelectControl:()=>EM,Dashicon:()=>cy,DatePicker:()=>fD,DateTimePicker:()=>AD,Disabled:()=>HD,Draggable:()=>UD,DropZone:()=>qD,DropZoneProvider:()=>YD,Dropdown:()=>FE,DropdownMenu:()=>QT,DuotonePicker:()=>nA,DuotoneSwatch:()=>ZD,ExternalLink:()=>iA,Fill:()=>cw,Flex:()=>$h,FlexBlock:()=>Uh,FlexItem:()=>og,FocalPointPicker:()=>MA,FocusReturnProvider:()=>oj,FocusableIframe:()=>NA,FontSizePicker:()=>YA,FormFileUpload:()=>KA,FormToggle:()=>ZA,FormTokenField:()=>rO,G:()=>n.G,GradientPicker:()=>jT,Guide:()=>aO,GuidePage:()=>sO,HorizontalRule:()=>n.HorizontalRule,Icon:()=>uy,IconButton:()=>lO,IsolatedEventContainer:()=>HB,KeyboardShortcuts:()=>mO,Line:()=>n.Line,MenuGroup:()=>pO,MenuItem:()=>gO,MenuItemsChoice:()=>bO,Modal:()=>qI,NavigableMenu:()=>KT,Notice:()=>jz,NoticeList:()=>Hz,Panel:()=>Wz,PanelBody:()=>Kz,PanelHeader:()=>$z,PanelRow:()=>Xz,Path:()=>n.Path,Placeholder:()=>Jz,Polygon:()=>n.Polygon,Popover:()=>bw,QueryControls:()=>lL,RadioControl:()=>pL,RangeControl:()=>k_,Rect:()=>n.Rect,ResizableBox:()=>QL,ResponsiveWrapper:()=>eF,SVG:()=>n.SVG,SandBox:()=>nF,ScrollLock:()=>ox,SearchControl:()=>cz,SelectControl:()=>YE,Slot:()=>uw,SlotFillProvider:()=>dw,Snackbar:()=>oF,SnackbarList:()=>aF,Spinner:()=>fF,TabPanel:()=>TF,TabbableContainer:()=>yO,TextControl:()=>RF,TextHighlight:()=>FF,TextareaControl:()=>LF,TimePicker:()=>RD,Tip:()=>jF,ToggleControl:()=>VF,Toolbar:()=>aB,ToolbarButton:()=>ZF,ToolbarDropdownMenu:()=>sB,ToolbarGroup:()=>eB,ToolbarItem:()=>KF,Tooltip:()=>ri,TreeSelect:()=>rL,VisuallyHidden:()=>ws,__experimentalAlignmentMatrixControl:()=>pl,__experimentalApplyValueToSides:()=>_k,__experimentalBorderBoxControl:()=>ZC,__experimentalBorderControl:()=>NC,__experimentalBoxControl:()=>Ak,__experimentalConfirmDialog:()=>KI,__experimentalDimensionControl:()=>zD,__experimentalDivider:()=>NP,__experimentalDropdownContentWrapper:()=>GS,__experimentalElevation:()=>Bk,__experimentalGrid:()=>OC,__experimentalHStack:()=>Py,__experimentalHasSplitBorders:()=>WC,__experimentalHeading:()=>$S,__experimentalInputControl:()=>ly,__experimentalInputControlPrefixWrapper:()=>dO,__experimentalInputControlSuffixWrapper:()=>BE,__experimentalIsDefinedBorder:()=>$C,__experimentalIsEmptyBorder:()=>HC,__experimentalItem:()=>uO,__experimentalItemGroup:()=>aT,__experimentalNavigation:()=>jO,__experimentalNavigationBackButton:()=>WO,__experimentalNavigationGroup:()=>qO,__experimentalNavigationItem:()=>nz,__experimentalNavigationMenu:()=>mz,__experimentalNavigatorBackButton:()=>zz,__experimentalNavigatorButton:()=>Az,__experimentalNavigatorProvider:()=>Tz,__experimentalNavigatorScreen:()=>Mz,__experimentalNavigatorToParentButton:()=>Lz,__experimentalNumberControl:()=>Ry,__experimentalPaletteEdit:()=>gI,__experimentalParseQuantityAndUnitFromRawValue:()=>xC,__experimentalRadio:()=>dL,__experimentalRadioGroup:()=>mL,__experimentalScrollable:()=>SP,__experimentalSpacer:()=>tg,__experimentalStyleProvider:()=>ew,__experimentalSurface:()=>mF,__experimentalText:()=>mv,__experimentalToggleGroupControl:()=>fE,__experimentalToggleGroupControlOption:()=>$A,__experimentalToggleGroupControlOptionIcon:()=>RE,__experimentalToolbarContext:()=>YF,__experimentalToolsPanel:()=>PB,__experimentalToolsPanelContext:()=>bB,__experimentalToolsPanelItem:()=>RB,__experimentalTreeGrid:()=>zB,__experimentalTreeGridCell:()=>jB,__experimentalTreeGridItem:()=>BB,__experimentalTreeGridRow:()=>LB,__experimentalTruncate:()=>VS,__experimentalUnitControl:()=>PC,__experimentalUseCustomUnits:()=>wC,__experimentalUseNavigator:()=>Nz,__experimentalUseSlot:()=>zx,__experimentalUseSlotFills:()=>$B,__experimentalVStack:()=>jS,__experimentalView:()=>xs,__experimentalZStack:()=>YB,__unstableAnimatePresence:()=>Ih,__unstableComposite:()=>LI,__unstableCompositeGroup:()=>FI,__unstableCompositeItem:()=>BI,__unstableDisclosureContent:()=>$D,__unstableGetAnimateClassName:()=>gl,__unstableMotion:()=>wh,__unstableMotionContext:()=>yl,__unstableUseAutocompleteProps:()=>_w,__unstableUseCompositeState:()=>jI,__unstableUseNavigateRegions:()=>XB,createSlotFill:()=>fw,navigateRegions:()=>ZB,privateApis:()=>_H,useBaseControlProps:()=>Cw,withConstrainedTabbing:()=>JB,withFallbackStyles:()=>QB,withFilters:()=>nj,withFocusOutside:()=>CI,withFocusReturn:()=>rj,withNotices:()=>ij,withSpokenMessages:()=>oz});var e={};o.r(e),o.d(e,{Text:()=>Zg,block:()=>Jg,destructive:()=>ev,highlighterText:()=>nv,muted:()=>tv,positive:()=>Qg,upperCase:()=>rv});var t={};o.r(t),o.d(t,{ButtonContentView:()=>xE,LabelView:()=>hE,ou:()=>EE,uG:()=>vE,eh:()=>gE});const n=window.wp.primitives;var r=o(1609),a=o.t(r,2),s=o.n(r),l=o(5755),c=o.n(l);const u=window.wp.i18n,d=window.wp.compose;var f=(0,r.createContext)(!0),m=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(g)for(var n of g(t))b.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>p(e,h(t)),E=(e,t)=>{var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&g)for(var r of g(e))t.indexOf(r)<0&&b.call(e,r)&&(n[r]=e[r]);return n},_=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&I(e,n,t[n]);if(k)for(var n of k(t))T.call(t,n)&&I(e,n,t[n]);return e},M=(e,t)=>S(e,C(t)),N=(e,t)=>{var n={};for(var r in e)P.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&k)for(var r of k(e))t.indexOf(r)<0&&T.call(e,r)&&(n[r]=e[r]);return n};function D(...e){}function A(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function O(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function z(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function L(e){return e}function F(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function B(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function j(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function V(...e){for(const t of e)if(void 0!==t)return t}function H(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function $(e){return function(e){return!!e&&!!(0,r.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var W,U="undefined"!=typeof window&&!!(null==(W=window.document)?void 0:W.createElement);function G(e){return e?e.ownerDocument||e:document}function q(e,t=!1){const{activeElement:n}=G(e);if(!(null==n?void 0:n.nodeName))return null;if(K(n)&&n.contentDocument)return q(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=G(n).getElementById(e);if(t)return t}}return n}function Y(e,t){return e===t||e.contains(t)}function K(e){return"IFRAME"===e.tagName}function X(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Z.indexOf(e.type)}var Z=["button","color","file","image","reset","submit"];function J(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Q(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ee(e,t){if("closest"in e)return e.closest(t);do{if(J(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function te(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function ne(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function re(e,t){var n;const r=ne(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function oe(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return oe(e.parentElement)||document.scrollingElement||document.body}function ie(){return!!U&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function ae(){return U&&ie()&&/apple/i.test(navigator.vendor)}function se(){return U&&navigator.platform.startsWith("Mac")&&!(U&&navigator.maxTouchPoints)}function le(e){return Boolean(e.currentTarget&&!Y(e.currentTarget,e.target))}function ce(e){return e.target===e.currentTarget}function ue(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=M(R({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function de(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function fe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function me(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function pe(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(pe(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var he=x({},a),ge=he.useId,ve=(he.useDeferredValue,he.useInsertionEffect),be=U?r.useLayoutEffect:r.useEffect;function ye(e){const[t]=(0,r.useState)(e);return t}function xe(e){const t=(0,r.useRef)(e);return be((()=>{t.current=e})),t}function we(e){const t=(0,r.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return ve?ve((()=>{t.current=e})):t.current=e,(0,r.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Ee(...e){return(0,r.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>H(e,t)))}}),e)}function _e(e){if(ge){const t=ge();return e||t}const[t,n]=(0,r.useState)(e);return be((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Se(e,t){const n=e=>{if("string"==typeof e)return e},[o,i]=(0,r.useState)((()=>n(t)));return be((()=>{const r=e&&"current"in e?e.current:e;i((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),o}function Ce(e,t){const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,r.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function ke(){return(0,r.useReducer)((()=>[]),[])}function Pe(e){return we("function"==typeof e?e:()=>e)}function Te(e,t,n=[]){const o=(0,r.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return w(x({},e),{wrapElement:o})}function Ie(e=!1,t){const[n,o]=(0,r.useState)(null);return{portalRef:Ee(o,t),portalNode:n,domReady:!e||n}}function Re(e,t,n){const o=e.onLoadedMetadataCapture,i=(0,r.useMemo)((()=>Object.assign((()=>{}),w(x({},o),{[t]:n}))),[o,t,n]);return[null==o?void 0:o[t],{onLoadedMetadataCapture:i}]}function Me(){(0,r.useEffect)((()=>{pe("mousemove",Oe,!0),pe("mousedown",ze,!0),pe("mouseup",ze,!0),pe("keydown",ze,!0),pe("scroll",ze,!0)}),[]);return we((()=>Ne))}var Ne=!1,De=0,Ae=0;function Oe(e){(function(e){const t=e.movementX||e.screenX-De,n=e.movementY||e.screenY-Ae;return De=e.screenX,Ae=e.screenY,t||n||!1})(e)&&(Ne=!0)}function ze(){Ne=!1}var Le=o(4922);function Fe(e){return r.forwardRef(((t,n)=>e(x({ref:n},t))))}function Be(e){const t=Fe(e);return r.memo(t)}function je(e,t){const n=t,{as:o,wrapElement:i,render:a}=n,s=E(n,["as","wrapElement","render"]);let l;const c=Ee(t.ref,$(a));if(o&&"string"!=typeof o)l=(0,Le.jsx)(o,w(x({},s),{render:a}));else if(r.isValidElement(a)){const e=w(x({},a.props),{ref:c});l=r.cloneElement(a,function(e,t){const n=x({},e);for(const r in t){if(!O(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]?x(x({},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}(s,e))}else if(a)l=a(s);else if("function"==typeof t.children){0;const e=s,{children:n}=e,r=E(e,["children"]);l=t.children(r)}else l=o?(0,Le.jsx)(o,x({},s)):(0,Le.jsx)(e,x({},s));return i?i(l):l}function Ve(e){return(t={})=>{const n=e(t),r={};for(const e in n)O(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function He(e=[],t=[]){const n=r.createContext(void 0),o=r.createContext(void 0),i=()=>r.useContext(n),a=t=>e.reduceRight(((e,n)=>(0,Le.jsx)(n,w(x({},t),{children:e}))),(0,Le.jsx)(n.Provider,x({},t)));return{context:n,scopedContext:o,useContext:i,useScopedContext:(e=!1)=>{const t=r.useContext(o),n=i();return e?t:t||n},useProviderContext:()=>{const e=r.useContext(o),t=i();if(!e||e!==t)return t},ContextProvider:a,ScopedContextProvider:e=>(0,Le.jsx)(a,w(x({},e),{children:t.reduceRight(((t,n)=>(0,Le.jsx)(n,w(x({},e),{children:t}))),(0,Le.jsx)(o.Provider,x({},e)))}))}}var $e="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function We(e){return!!J(e,$e)&&(!!Q(e)&&!ee(e,"[inert]"))}function Ue(e){if(!We(e))return!1;if(function(e){return 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=q(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function Ge(e,t){const n=Array.from(e.querySelectorAll($e));t&&n.unshift(e);const r=n.filter(We);return r.forEach(((e,t)=>{if(K(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Ge(n))}})),r}function qe(e,t,n){const r=Array.from(e.querySelectorAll($e)),o=r.filter(Ue);return t&&Ue(e)&&o.unshift(e),o.forEach(((e,t)=>{if(K(e)&&e.contentDocument){const r=qe(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Ye(e,t,n){const[r]=qe(e,t,n);return r||null}function Ke(e,t){return function(e,t,n,r){const o=q(e),i=Ge(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(Ue)||(n?i.find(Ue):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function Xe(e,t){return function(e,t,n,r){const o=q(e),i=Ge(e,t).reverse(),a=i.indexOf(o),s=i.slice(a+1);return s.find(Ue)||(n?i.find(Ue):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function Ze(e){const t=q(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Je(e){const t=q(e);if(!t)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Qe(e){!Je(e)&&We(e)&&e.focus()}function et(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var tt=ae(),nt=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function rt(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function ot(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function it(e,t){return we((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var at=!0;function st(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(at=!1))}function lt(e){e.metaKey||e.ctrlKey||e.altKey||(at=!0)}var ct=Ve((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:a}=t,s=E(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=(0,r.useRef)(null);(0,r.useEffect)((()=>{n&&(pe("mousedown",st,!0),pe("keydown",lt,!0))}),[n]),tt&&(0,r.useEffect)((()=>{if(!n)return;const e=l.current;if(!e)return;if(!rt(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const c=n&&j(s),u=!!c&&!o,[d,m]=(0,r.useState)(!1);(0,r.useEffect)((()=>{n&&u&&d&&m(!1)}),[n,u,d]),(0,r.useEffect)((()=>{if(!n)return;if(!d)return;const e=l.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{We(e)||m(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const p=it(s.onKeyPressCapture,c),h=it(s.onMouseDownCapture,c),g=it(s.onClickCapture,c),v=s.onMouseDown,b=we((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!tt)return;if(le(e))return;if(!X(t)&&!rt(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),me(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||Qe(t)}))})),y=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ze(r)&&(null==a||a(e),e.defaultPrevented||m(!0))},_=s.onKeyDownCapture,S=we((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ce(e))return;const t=e.currentTarget;queueMicrotask((()=>y(e,t)))})),C=s.onFocusCapture,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return void m(!1);const t=e.currentTarget,r=()=>y(e,t);at||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:nt.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?m(!1):me(e.target,"focusout",r)})),P=s.onBlur,T=we((e=>{null==P||P(e),n&&fe(e)&&m(!1)})),I=(0,r.useContext)(f),R=we((e=>{n&&i&&e&&I&&queueMicrotask((()=>{Ze(e)||We(e)&&e.focus()}))})),M=Se(l,s.as),N=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(M),D=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(M),A=u?x({pointerEvents:"none"},s.style):s.style;return s=w(x({"data-focus-visible":n&&d?"":void 0,"data-autofocus":!!i||void 0,"aria-disabled":!!c||void 0},s),{ref:Ee(l,R,s.ref),style:A,tabIndex:ot(n,u,N,D,s.tabIndex),disabled:!(!D||!u)||void 0,contentEditable:c?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:g,onMouseDownCapture:h,onMouseDown:b,onKeyDownCapture:S,onFocusCapture:k,onBlur:T})}));Fe((e=>je("div",e=ct(e))));function ut(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?X(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(X(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var dt=Symbol("command"),ft=Ve((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:o=!0}=t,i=E(t,["clickOnEnter","clickOnSpace"]);const a=(0,r.useRef)(null),s=Se(a,i.as),l=i.type,[c,u]=(0,r.useState)((()=>!!s&&X({tagName:s,type:l})));(0,r.useEffect)((()=>{a.current&&u(X(a.current))}),[]);const[d,f]=(0,r.useState)(!1),m=(0,r.useRef)(!1),p=j(i),[h,g]=Re(i,dt,!0),v=i.onKeyDown,b=we((e=>{null==v||v(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(h)return;if(p)return;if(!ce(e))return;if(te(t))return;if(t.isContentEditable)return;const r=n&&"Enter"===e.key,i=o&&" "===e.key,a="Enter"===e.key&&!n,s=" "===e.key&&!o;if(a||s)e.preventDefault();else if(r||i){const n=ut(e);if(r){if(!n){e.preventDefault();const n=e,{view:r}=n,o=E(n,["view"]),i=()=>de(t,o);U&&/firefox\//i.test(navigator.userAgent)?me(t,"keyup",i):queueMicrotask(i)}}else i&&(m.current=!0,n||(e.preventDefault(),f(!0)))}})),y=i.onKeyUp,_=we((e=>{if(null==y||y(e),e.defaultPrevented)return;if(h)return;if(p)return;if(e.metaKey)return;const t=o&&" "===e.key;if(m.current&&t&&(m.current=!1,!ut(e))){e.preventDefault(),f(!1);const t=e.currentTarget,n=e,{view:r}=n,o=E(n,["view"]);queueMicrotask((()=>de(t,o)))}}));return i=w(x(x({"data-active":d?"":void 0,type:c?"button":void 0},g),i),{ref:Ee(a,i.ref),onKeyDown:b,onKeyUp:_}),i=ct(i)}));Fe((e=>je("button",e=ft(e))));var mt=He(),pt=mt.useContext,ht=(mt.useScopedContext,mt.useProviderContext,mt.ContextProvider),gt=mt.ScopedContextProvider,vt=Ve((e=>{var t=e,{store:n,shouldRegisterItem:o=!0,getItem:i=L,element:a}=t,s=E(t,["store","shouldRegisterItem","getItem","element"]);const l=pt();n=n||l;const c=_e(s.id),u=(0,r.useRef)(a);return(0,r.useEffect)((()=>{const e=u.current;if(!c)return;if(!e)return;if(!o)return;const t=i({id:c,element:e});return null==n?void 0:n.renderItem(t)}),[c,o,i,n]),s=w(x({},s),{ref:Ee(u,s.ref)})}));Fe((e=>je("div",vt(e))));var bt={id:null};function yt(e,t){return t&&e.item(t)||null}var xt=Symbol("FOCUS_SILENTLY");function wt(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var Et=He([ht],[gt]),_t=Et.useContext,St=(Et.useScopedContext,Et.useProviderContext),Ct=Et.ContextProvider,kt=Et.ScopedContextProvider,Pt=(0,r.createContext)(void 0),Tt=(0,r.createContext)(void 0);function It(e,t){const n=e.__unstableInternals;return F(n,"Invalid store"),n[t]}function Rt(e,...t){let n=e,r=n,o=Symbol(),i=D;const a=new Set,s=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,m=(e,t,n=c)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),p=(e,i,a=!1)=>{if(!O(n,e))return;const l=A(i,n[e]);if(l===n[e])return;a||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const m=n;n=M(R({},n),{[e]:l});const p=Symbol();o=p,s.add(e);const h=(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)))};c.forEach((e=>{h(e,m)})),queueMicrotask((()=>{if(o!==p)return;const e=n;u.forEach((e=>{h(e,r,s)})),r=e,s.clear()}))},h={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(l.add(e),()=>l.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 s=(c=n,Object.keys(c)).map((e=>z(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&O(r,e))return At(t,[e],(t=>{p(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(Nt);return i=z(...s,...u,...d),o},subscribe:(e,t)=>m(e,t),sync:(e,t)=>(d.set(t,t(n,n)),m(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),m(e,t,u)),pick:e=>Rt(function(e,t){const n={};for(const r of t)O(e,r)&&(n[r]=e[r]);return n}(n,e),h),omit:e=>Rt(function(e,t){const n=R({},e);for(const e of t)O(n,e)&&delete n[e];return n}(n,e),h)}};return h}function Mt(e,...t){if(e)return It(e,"setup")(...t)}function Nt(e,...t){if(e)return It(e,"init")(...t)}function Dt(e,...t){if(e)return It(e,"subscribe")(...t)}function At(e,...t){if(e)return It(e,"sync")(...t)}function Ot(e,...t){if(e)return It(e,"batch")(...t)}function zt(e,...t){if(e)return It(e,"omit")(...t)}function Lt(...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?R(R({},e),r):e}),{});return Rt(t,...e)}var Ft=o(422),{useSyncExternalStore:Bt}=Ft,jt=()=>()=>{};function Vt(e,t=L){const n=r.useCallback((t=>e?Dt(e,null,t):jt()),[e]),o=()=>{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&&O(o,n)?o[n]:void 0};return Bt(n,o,o)}function Ht(e,t,n,r){const o=O(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=xe({value:o,setValue:i});be((()=>At(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),be((()=>{if(void 0!==o)return e.setState(n,o),Ot(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function $t(e,t){const[n,o]=r.useState((()=>e(t)));be((()=>Nt(n)),[n]);const i=r.useCallback((e=>Vt(n,e)),[n]);return[r.useMemo((()=>w(x({},n),{useState:i})),[n,i]),we((()=>{o((n=>e(x(x({},t),n.getState()))))}))]}function Wt(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ut(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=oe(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=yt(t,l))?void 0:o.element;if(!a)continue;const u=Wt(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Gt=Ve((e=>{var t=e,{store:n,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,tabbable:s=!1,getItem:l,"aria-setsize":c,"aria-posinset":u}=t,d=E(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const f=_t();n=n||f;const m=_e(d.id),p=(0,r.useRef)(null),h=(0,r.useContext)(Tt),g=Vt(n,(e=>o||(e&&(null==h?void 0:h.baseElement)&&h.baseElement===e.baseElement?h.id:void 0))),v=j(d)&&!d.accessibleWhenDisabled,b=(0,r.useCallback)((e=>{const t=w(x({},e),{id:m||e.id,rowId:g,disabled:!!v});return l?l(t):t}),[m,g,v,l]),y=d.onFocus,_=(0,r.useRef)(!1),S=we((e=>{if(null==y||y(e),e.defaultPrevented)return;if(le(e))return;if(!m)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!ce(e)&&wt(t,e.target)}(e,n))return;if(t!==m&&n.setActiveId(m),!r)return;if(!ce(e))return;if((i=e.currentTarget).isContentEditable||te(i)||"INPUT"===i.tagName&&!X(i))return;var i;if(!(null==o?void 0:o.isConnected))return;_.current=!0;e.relatedTarget===o||wt(n,e.relatedTarget)?function(e){e[xt]=!0,e.focus({preventScroll:!0})}(o):o.focus()})),C=d.onBlurCapture,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&_.current&&(_.current=!1,e.preventDefault(),e.stopPropagation())})),P=d.onKeyDown,T=Pe(i),I=Pe(a),R=we((e=>{if(null==P||P(e),e.defaultPrevented)return;if(!ce(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(m),i=!!(null==o?void 0:o.rowId),a="horizontal"!==r.orientation,s="vertical"!==r.orientation,l=()=>!!i||(!!s||(!r.baseElement||!te(r.baseElement))),c={ArrowUp:(i||a)&&n.up,ArrowRight:(i||s)&&n.next,ArrowDown:(i||a)&&n.down,ArrowLeft:(i||s)&&n.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>Ut(t,n,null==n?void 0:n.up,!0),PageDown:()=>Ut(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(T(e)||void 0!==t){if(!I(e))return;e.preventDefault(),n.move(t)}}})),M=Vt(n,(e=>(null==e?void 0:e.baseElement)||void 0)),N=(0,r.useMemo)((()=>({id:m,baseElement:M})),[m,M]);d=Te(d,(e=>(0,Le.jsx)(Pt.Provider,{value:N,children:e})),[N]);const D=Vt(n,(e=>!!e&&e.activeId===m)),A=Vt(n,"virtualFocus"),O=function(e,t){const n=t.role,[o,i]=(0,r.useState)(n);return be((()=>{const t=e.current;t&&i(t.getAttribute("role")||n)}),[n]),o}(p,d);let z;D&&(!function(e){return"option"===e||"treeitem"===e}(O)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(O)&&(z=!0):z=!0);const L=Vt(n,(e=>null!=c?c:e&&(null==h?void 0:h.ariaSetSize)&&h.baseElement===e.baseElement?h.ariaSetSize:void 0)),F=Vt(n,(e=>{if(null!=u)return u;if(!e)return;if(!(null==h?void 0:h.ariaPosInSet))return;if(h.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===g));return h.ariaPosInSet+t.findIndex((e=>e.id===m))})),B=Vt(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!s||e.activeId===m)));return d=w(x({id:m,"aria-selected":z,"data-active-item":D?"":void 0},d),{ref:Ee(p,d.ref),tabIndex:B?d.tabIndex:-1,onFocus:S,onBlurCapture:k,onKeyDown:R}),d=ft(d),d=vt(w(x({store:n},d),{getItem:b,shouldRegisterItem:!!m&&d.shouldRegisterItem})),w(x({},d),{"aria-setsize":L,"aria-posinset":F})})),qt=Be((e=>je("button",Gt(e))));function Yt(e={}){const t=Lt(e.store,zt(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=V(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=V(e.animated,null==n?void 0:n.animated,!1),i=Rt({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:V(null==n?void 0:n.contentElement,null),disclosureElement:V(null==n?void 0:n.disclosureElement,null)},t);return Mt(i,(()=>At(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Mt(i,(()=>Dt(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Mt(i,(()=>At(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),M(R({},i),{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 Kt(e,t,n){return Ce(t,[n.store,n.disclosure]),Ht(e,n,"open","setOpen"),Ht(e,n,"mounted","setMounted"),Ht(e,n,"animated"),e}function Xt(e={}){const[t,n]=$t(Yt,e);return Kt(t,n,e)}function Zt(e={}){return Yt(e)}function Jt(e,t,n){return Kt(e,t,n)}function Qt(e,t,n){return Ce(t,[n.popover]),Ht(e=Jt(e,t,n),n,"placement"),e}function en(e,t,n){return Ht(e=Qt(e,t,n),n,"timeout"),Ht(e,n,"showTimeout"),Ht(e,n,"hideTimeout"),e}function tn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=N(t,["popover"]);const o=Lt(r.store,zt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Zt(M(R({},r),{store:o})),s=V(r.placement,null==i?void 0:i.placement,"bottom"),l=Rt(M(R({},a.getState()),{placement:s,currentPlacement:s,anchorElement:V(null==i?void 0:i.anchorElement,null),popoverElement:V(null==i?void 0:i.popoverElement,null),arrowElement:V(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return M(R(R({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(M(R({},e),{placement:V(e.placement,null==n?void 0:n.placement,"bottom")})),o=V(e.timeout,null==n?void 0:n.timeout,500),i=Rt(M(R({},r.getState()),{timeout:o,showTimeout:V(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:V(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return M(R(R({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function nn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tn(M(R({},e),{placement:V(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Rt(M(R({},r.getState()),{type:V(e.type,null==n?void 0:n.type,"description"),skipTimeout:V(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return R(R({},r),o)}function rn(e={}){const[t,n]=$t(nn,e);return function(e,t,n){return Ht(e=en(e,t,n),n,"type"),Ht(e,n,"skipTimeout"),e}(t,n,e)}Ve((e=>e));var on=Fe((e=>je("div",e)));Object.assign(on,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Fe((e=>je(t,e))),e)),{}));var an=He(),sn=(an.useContext,an.useScopedContext,an.useProviderContext),ln=He([an.ContextProvider],[an.ScopedContextProvider]),cn=(ln.useContext,ln.useScopedContext,ln.useProviderContext),un=ln.ContextProvider,dn=ln.ScopedContextProvider,fn=(0,r.createContext)(void 0),mn=(0,r.createContext)(void 0),pn=He([un],[dn]),hn=(pn.useContext,pn.useScopedContext,pn.useProviderContext),gn=pn.ContextProvider,vn=pn.ScopedContextProvider,bn=He([gn],[vn]),yn=(bn.useContext,bn.useScopedContext,bn.useProviderContext),xn=bn.ContextProvider,wn=bn.ScopedContextProvider,En=Ve((e=>{var t=e,{store:n,showOnHover:o=!0}=t,i=E(t,["store","showOnHover"]);const a=yn();F(n=n||a,!1);const s=j(i),l=(0,r.useRef)(0);(0,r.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,r.useEffect)((()=>pe("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(l.current),l.current=0)}),!0)),[n]);const c=i.onMouseMove,u=Pe(o),d=Me(),f=we((e=>{if(null==c||c(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(l.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{l.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},a=null!=r?r:o;0===a?i():l.current=window.setTimeout(i,a)})),m=(0,r.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return i=w(x({},i),{ref:Ee(m,i.ref),onMouseMove:f}),i=ct(i)}));Fe((e=>je("a",En(e))));var _n=He([xn],[wn]),Sn=(_n.useContext,_n.useScopedContext,_n.useProviderContext),Cn=(_n.ContextProvider,_n.ScopedContextProvider),kn=Rt({activeStore:null}),Pn=Ve((e=>{var t=e,{store:n,showOnHover:o=!0}=t,i=E(t,["store","showOnHover"]);const a=Sn();F(n=n||a,!1);const s=(0,r.useRef)(!1);(0,r.useEffect)((()=>At(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,r.useEffect)((()=>At(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=kn.getState();return e!==n&&(null==e||e.hide()),kn.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=kn.getState();e===n&&kn.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const l=i.onMouseEnter,c=we((e=>{null==l||l(e),s.current=!0})),u=i.onFocusVisible,d=we((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),f=i.onBlur,m=we((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=kn.getState();t===n&&kn.setState("activeStore",null)})),p=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return i=w(x({"aria-labelledby":"label"===p?h:void 0,"aria-describedby":"description"===p?h:void 0},i),{onMouseEnter:c,onFocusVisible:d,onBlur:m}),i=En(x({store:n,showOnHover:e=>{if(!s.current)return!1;if(B(o,e))return!1;const{activeStore:t}=kn.getState();return!t||(null==n||n.show(),!1)}},i))})),Tn=Fe((e=>je("div",Pn(e))));function In(e){return[e.clientX,e.clientY]}function Rn(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[c,u]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function Mn(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),c=[t];return s?("top"!==l&&c.push(["left"===s?a:o,r]),c.push(["left"===s?o:a,r]),c.push(["left"===s?o:a,i]),"bottom"!==l&&c.push(["left"===s?a:o,i])):"top"===l?(c.push([a,r]),c.push([a,i]),c.push([o,i]),c.push([o,r])):(c.push([a,i]),c.push([a,r]),c.push([o,r]),c.push([o,i])),c}function Nn(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 Dn=new WeakMap;function An(e,t,n){Dn.has(e)||Dn.set(e,new Map);const r=Dn.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 On(e,t,n){return An(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function zn(e,t,n){return An(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Ln(e,t){if(!e)return()=>{};return An(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Fn=["SCRIPT","STYLE"];function Bn(e){return`__ariakit-dialog-snapshot-${e}`}function jn(e,t,n){return!Fn.includes(t.tagName)&&(!!function(e,t){const n=G(t),r=Bn(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&&Y(t,e))))}function Vn(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=G(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)jn(e,r,t)&&n(r,s);o=o.parentElement}}}function Hn(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function $n(e,t=""){return z(zn(e,Hn("",!0),!0),zn(e,Hn(t,!0),!0))}function Wn(e,t){if(e[Hn(t,!0)])return!0;const n=Hn(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Un(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Vn(e,t,(t=>{Nn(t,...r)||n.unshift(function(e,t=""){return z(zn(e,Hn(),!0),zn(e,Hn(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift($n(t,e))}));return()=>{n.forEach((e=>e()))}}function Gn(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function qn(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function Yn(e,t,n){return!(n||!1===t||e&&!t)}var Kn=Ve((e=>{var t=e,{store:n,alwaysVisible:o}=t,i=E(t,["store","alwaysVisible"]);const a=sn();F(n=n||a,!1);const s=_e(i.id),[l,c]=(0,r.useState)(null),u=n.useState("open"),d=n.useState("mounted"),f=n.useState("animated"),m=n.useState("contentElement");be((()=>{if(f){if(null==m?void 0:m.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{c(u?"enter":"leave")}));c(null)}}),[f,m,u]),be((()=>{if(!n)return;if(!f)return;if(!m)return;if(!l)return;if("enter"===l&&!u)return;if("leave"===l&&u)return;if("number"==typeof f){return Gn(f,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(m),i=qn(r,o)+qn(e,t);return i?Gn(i,n.stopAnimation):void 0}),[n,f,m,u,l]);const p=Yn(d,(i=Te(i,(e=>(0,Le.jsx)(dn,{value:n,children:e})),[n])).hidden,o),h=p?w(x({},i.style),{display:"none"}):i.style;return i=w(x({id:s,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,hidden:p},i),{ref:Ee(s?n.setContentElement:null,i.ref),style:h})})),Xn=Fe((e=>je("div",Kn(e)))),Zn=Fe((e=>{var t=e,{unmountOnHide:n}=t,r=E(t,["unmountOnHide"]);const o=sn();return!1===Vt(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Le.jsx)(Xn,x({},r))}));function Jn({store:e,backdrop:t,backdropProps:n,alwaysVisible:o,hidden:i}){const a=(0,r.useRef)(null),s=Xt({disclosure:e}),l=e.useState("contentElement");be((()=>{const e=a.current,t=l;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[l]),be((()=>{const e=null==l?void 0:l.id;if(!e)return;const t=a.current;return t?$n(t,e):void 0}),[l]),null!=i&&(n=w(x({},n),{hidden:i}));const c=Kn(w(x({store:s,role:"presentation","data-backdrop":(null==l?void 0:l.id)||"",alwaysVisible:o},n),{ref:Ee(null==n?void 0:n.ref,a),style:x({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,r.isValidElement)(t))return(0,Le.jsx)(on,w(x({},c),{render:t}));const u="boolean"!=typeof t?t:"div";return(0,Le.jsx)(on,w(x({},c),{render:(0,Le.jsx)(u,{})}))}function Qn(e){return On(e,"aria-hidden","true")}function er(e,t){if(!("style"in e))return D;if("inert"in HTMLElement.prototype)return zn(e,"inert",!0);return z(...qe(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Y(t,e))))?D:On(e,"tabindex","-1"))),Qn(e),Ln(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}const tr=window.ReactDOM;function nr(e,t,n){const o=function({attribute:e,contentId:t,contentElement:n,enabled:o}){const[i,a]=ke(),s=(0,r.useCallback)((()=>{if(!o)return!1;if(!n)return!1;const{body:r}=G(n),i=r.getAttribute(e);return!i||i===t}),[i,o,n,e,t]);return(0,r.useEffect)((()=>{if(!o)return;if(!t)return;if(!n)return;const{body:r}=G(n);if(s())return r.setAttribute(e,t),()=>r.removeAttribute(e);const i=new MutationObserver((()=>(0,tr.flushSync)(a)));return i.observe(r,{attributeFilter:[e]}),()=>i.disconnect()}),[i,o,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,r.useEffect)((()=>{if(!o())return;if(!e)return;const t=G(e),n=function(e){return G(e).defaultView||window}(e),{documentElement:r,body:i}=t,a=r.style.getPropertyValue("--scrollbar-width"),s=a?parseInt(a):n.innerWidth-r.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(r),c=ie()&&!se();return z((d="--scrollbar-width",f=`${s}px`,(u=r)?An(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:a}=n,c=null!=(e=null==a?void 0:a.offsetLeft)?e:0,u=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=Ln(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo(r,o)}})():Ln(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[o,e])}var rr=(0,r.createContext)({});function or({store:e,type:t,listener:n,capture:o,domReady:i}){const a=we(n),s=e.useState("open"),l=(0,r.useRef)(!1);be((()=>{if(!s)return;if(!i)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{l.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,i]),(0,r.useEffect)((()=>{if(!s)return;return pe(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Y(G(e).body,e)}(o))return;if(Y(n,o))return;if(function(e,t){if(!e)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=G(e).getElementById(n);if(t)return Y(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(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))return;l.current&&!Wn(o,n.id)||a(t)}),o)}),[s,o])}function ir(e,t){return"function"==typeof e?e(t):!!e}function ar(e,t,n){const o=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{if(e)return pe("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),i={store:e,domReady:n,capture:!0};or(w(x({},i),{type:"click",listener:n=>{const{contentElement:r}=e.getState(),i=o.current;i&&Q(i)&&Wn(i,null==r?void 0:r.id)&&ir(t,n)&&e.hide()}})),or(w(x({},i),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==G(r)&&ir(t,n)&&e.hide()}})),or(w(x({},i),{type:"contextmenu",listener:n=>{ir(t,n)&&e.hide()}}))}var sr=Ve((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=E(t,["autoFocusOnShow"]);return r=Te(r,(e=>(0,Le.jsx)(f.Provider,{value:n,children:e})),[n])}));Fe((e=>je("div",sr(e))));var lr=(0,r.createContext)(0);function cr({level:e,children:t}){const n=(0,r.useContext)(lr),o=Math.max(Math.min(e||n+1,6),1);return(0,Le.jsx)(lr.Provider,{value:o,children:t})}var ur=Ve((e=>e=w(x({},e),{style:x({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Fe((e=>je("span",ur(e))));var dr=Ve((e=>(e=w(x({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:x({position:"fixed",top:0,left:0},e.style)}),e=ur(e)))),fr=Fe((e=>je("span",dr(e))));var mr=(0,r.createContext)(null);function pr(e){queueMicrotask((()=>{null==e||e.focus()}))}var hr=Ve((e=>{var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:o,portalElement:i,portalRef:a,portal:s=!0}=t,l=E(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=(0,r.useRef)(null),u=Ee(c,l.ref),d=(0,r.useContext)(mr),[f,m]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),g=(0,r.useRef)(null),v=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useRef)(null);return be((()=>{const e=c.current;if(!e||!s)return void m(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:G(e).createElement("div")}(e,i);if(!t)return void m(null);const n=t.isConnected;if(!n){const n=d||function(e){return G(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),H(a,t),n?void 0:()=>{t.remove(),H(a,null)}}),[s,i,d,a]),be((()=>{if(!n)return;if(!o)return;const e=G(o).createElement("span");return e.style.position="fixed",o.insertAdjacentElement("afterend",e),h(e),()=>{e.remove(),h(null)}}),[n,o]),(0,r.useEffect)((()=>{if(!f)return;if(!n)return;let e=0;const t=t=>{if(!fe(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),t.forEach(n)}(f);e=requestAnimationFrame((()=>{!function(e,t){qe(e,t).forEach(et)}(f,!0)}))};return f.addEventListener("focusin",t,!0),f.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),f.removeEventListener("focusin",t,!0),f.removeEventListener("focusout",t,!0)}}),[f,n]),l=Te(l,(e=>{if(e=(0,Le.jsx)(mr.Provider,{value:f||d,children:e}),!s)return e;if(!f)return(0,Le.jsx)("span",{ref:u,id:l.id,style:{position:"fixed"},hidden:!0});e=(0,Le.jsxs)(Le.Fragment,{children:[n&&f&&(0,Le.jsx)(fr,{ref:v,className:"__focus-trap-inner-before",onFocus:e=>{fe(e,f)?pr(Ke()):pr(g.current)}}),e,n&&f&&(0,Le.jsx)(fr,{ref:b,className:"__focus-trap-inner-after",onFocus:e=>{fe(e,f)?pr(Xe()):pr(y.current)}})]}),f&&(e=(0,tr.createPortal)(e,f));let t=(0,Le.jsxs)(Le.Fragment,{children:[n&&f&&(0,Le.jsx)(fr,{ref:g,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===y.current)&&fe(e,f)?pr(v.current):pr(Xe())}}),n&&(0,Le.jsx)("span",{"aria-owns":null==f?void 0:f.id,style:{position:"fixed"}}),n&&f&&(0,Le.jsx)(fr,{ref:y,className:"__focus-trap-outer-after",onFocus:e=>{if(fe(e,f))pr(b.current);else{const e=Ke();if(e===v.current)return void requestAnimationFrame((()=>{var e;return null==(e=Ke())?void 0:e.focus()}));pr(e)}}})]});return p&&n&&(t=(0,tr.createPortal)(t,p)),(0,Le.jsxs)(Le.Fragment,{children:[t,e]})}),[f,d,s,l.id,n,p]),l=w(x({},l),{ref:u})}));Fe((e=>je("div",hr(e))));var gr=ae();function vr(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?We(n)?n:null:n:null}var br=Ve((e=>{var t=e,{store:n,open:o,onClose:i,focusable:a=!0,modal:s=!0,portal:l=!!s,backdrop:c=!!s,backdropProps:u,hideOnEscape:d=!0,hideOnInteractOutside:f=!0,getPersistentElements:m,preventBodyScroll:p=!!s,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:y}=t,_=E(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const S=cn(),C=(0,r.useRef)(null),k=function(e={}){const[t,n]=$t(Zt,e);return Jt(t,n,e)}({store:n||S,open:o,setOpen(e){if(e)return;const t=C.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});i&&t.addEventListener("close",i,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&k.setOpen(!0)}}),{portalRef:P,domReady:T}=Ie(l,_.portalRef),I=_.preserveTabOrder,R=k.useState((e=>I&&!s&&e.mounted)),M=_e(_.id),N=k.useState("open"),D=k.useState("mounted"),A=k.useState("contentElement"),O=Yn(D,_.hidden,_.alwaysVisible);nr(A,M,p&&!O),ar(k,f,T);const{wrapElement:L,nestedDialogs:F}=function(e){const t=(0,r.useContext)(rr),[n,o]=(0,r.useState)([]),i=(0,r.useCallback)((e=>{var n;return o((t=>[...t,e])),z(null==(n=t.add)?void 0:n.call(t,e),(()=>{o((t=>t.filter((t=>t!==e))))}))}),[t]);be((()=>At(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 a=(0,r.useMemo)((()=>({store:e,add:i})),[e,i]);return{wrapElement:(0,r.useCallback)((e=>(0,Le.jsx)(rr.Provider,{value:a,children:e})),[a]),nestedDialogs:n}}(k);_=Te(_,L,[L]),be((()=>{if(!N)return;const e=C.current,t=q(e,!0);t&&"BODY"!==t.tagName&&(e&&Y(e,t)||k.setDisclosureElement(t))}),[k,N]),gr&&(0,r.useEffect)((()=>{if(!D)return;const{disclosureElement:e}=k.getState();if(!e)return;if(!X(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),me(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Qe(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[k,D]),(0,r.useEffect)((()=>{if(!s)return;if(!D)return;if(!T)return;const e=C.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=G(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,k.hide)}),[k,s,D,T]),be((()=>{if(N)return;if(!D)return;if(!T)return;const e=C.current;return e?er(e):void 0}),[N,D,T]);const B=N&&T;be((()=>{if(!M)return;if(!B)return;const e=C.current;return function(e,t){const{body:n}=G(t[0]),r=[];return Vn(e,t,(t=>{r.push(zn(t,Bn(e),!0))})),z(zn(n,Bn(e),!0),(()=>r.forEach((e=>e()))))}(M,[e])}),[M,B]);const j=we(m);be((()=>{if(!M)return;if(!B)return;const{disclosureElement:e}=k.getState(),t=[C.current,...j()||[],...F.map((e=>e.getState().contentElement))];return s?z(Un(M,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Vn(e,t,(e=>{Nn(e,...r)||n.unshift(er(e,t))})),()=>{n.forEach((e=>e()))}}(M,t)):Un(M,[e,...t])}),[M,k,B,j,F,s]);const V=!!h,H=Pe(h),[$,W]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(!N)return;if(!V)return;if(!T)return;if(!(null==A?void 0:A.isConnected))return;const e=vr(v,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||Ye(A,!0,l&&R)||A,t=We(e);H(t?e:null)&&(W(!0),queueMicrotask((()=>{e.focus(),gr&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[N,V,T,A,v,l,R,H]);const U=!!g,K=Pe(g),[Z,J]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(N)return J(!0),()=>J(!1)}),[N]);const Q=(0,r.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=k.getState();if(function(e){const t=q();return!(!t||e&&Y(e,t)||!We(t))}(e))return;let r=vr(b)||n;if(null==r?void 0:r.id){const e=G(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!We(r)){const e=ee(r,"[data-dialog]");if(e&&e.id){const t=G(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&We(r);o||!t?K(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>Q(e,!1)))}),[k,b,K]);be((()=>{if(N)return;if(!Z)return;if(!U)return;const e=C.current;Q(e)}),[N,Z,T,U,Q]),(0,r.useEffect)((()=>{if(!Z)return;if(!U)return;const e=C.current;return()=>Q(e)}),[Z,U,Q]);const te=Pe(d);(0,r.useEffect)((()=>{if(!T)return;if(!D)return;return pe("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=C.current;if(!t)return;if(Wn(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=k.getState();("BODY"===n.tagName||Y(t,n)||!r||Y(r,n))&&te(e)&&k.hide()}),!0)}),[k,T,D,te]);const ne=(_=Te(_,(e=>(0,Le.jsx)(cr,{level:s?1:void 0,children:e})),[s])).hidden,re=_.alwaysVisible;_=Te(_,(e=>c?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Jn,{store:k,backdrop:c,backdropProps:u,hidden:ne,alwaysVisible:re}),e]}):e),[k,c,u,ne,re]);const[oe,ie]=(0,r.useState)(),[ae,se]=(0,r.useState)();return _=Te(_,(e=>(0,Le.jsx)(dn,{value:k,children:(0,Le.jsx)(fn.Provider,{value:ie,children:(0,Le.jsx)(mn.Provider,{value:se,children:e})})})),[k]),_=w(x({id:M,"data-dialog":"",role:"dialog",tabIndex:a?-1:void 0,"aria-labelledby":oe,"aria-describedby":ae},_),{ref:Ee(C,_.ref)}),_=sr(w(x({},_),{autoFocusOnShow:$})),_=Kn(x({store:k},_)),_=ct(w(x({},_),{focusable:a})),_=hr(w(x({portal:l},_),{portalRef:P,preserveTabOrder:R}))}));function yr(e,t=cn){return Fe((n=>{const r=t();return Vt(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Le.jsx)(e,x({},n)):null}))}yr(Fe((e=>je("div",br(e)))),cn);const xr=Math.min,wr=Math.max,Er=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),_r={start:"end",end:"start"};function Sr(e,t,n){return wr(e,xr(t,n))}function Cr(e,t){return"function"==typeof e?e(t):e}function kr(e){return e.split("-")[0]}function Pr(e){return e.split("-")[1]}function Tr(e){return"x"===e?"y":"x"}function Ir(e){return"y"===e?"height":"width"}function Rr(e){return["top","bottom"].includes(kr(e))?"y":"x"}function Mr(e){return Tr(Rr(e))}function Nr(e){return e.replace(/start|end/g,(e=>_r[e]))}function Dr(e){return e.replace(/left|right|bottom|top/g,(e=>Er[e]))}function Ar(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 Or(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zr(e,t,n){let{reference:r,floating:o}=e;const i=Rr(t),a=Mr(t),s=Ir(a),l=kr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Pr(t)){case"start":m[a]-=f*(n&&c?-1:1);break;case"end":m[a]+=f*(n&&c?-1:1)}return m}async function Lr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Cr(t,e),p=Ar(m),h=s[f?"floating"===d?"reference":"floating":d],g=Or(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+p.top)/y.y,bottom:(x.bottom-g.bottom+p.bottom)/y.y,left:(g.left-x.left+p.left)/y.x,right:(x.right-g.right+p.right)/y.x}}const Fr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=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=kr(n),s=Pr(n),l="y"===Rr(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Cr(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(m="end"===s?-1*p:p),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Br=Math.min,jr=Math.max,Vr=Math.round,Hr=Math.floor,$r=e=>({x:e,y:e});function Wr(e){return qr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ur(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Gr(e){var t;return null==(t=(qr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qr(e){return e instanceof Node||e instanceof Ur(e).Node}function Yr(e){return e instanceof Element||e instanceof Ur(e).Element}function Kr(e){return e instanceof HTMLElement||e instanceof Ur(e).HTMLElement}function Xr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ur(e).ShadowRoot)}function Zr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jr(e){return["table","td","th"].includes(Wr(e))}function Qr(e){const t=eo(),n=no(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 eo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(Wr(e))}function no(e){return Ur(e).getComputedStyle(e)}function ro(e){return Yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oo(e){if("html"===Wr(e))return e;const t=e.assignedSlot||e.parentNode||Xr(e)&&e.host||Gr(e);return Xr(t)?t.host:t}function io(e){const t=oo(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kr(t)&&Zr(t)?t:io(t)}function ao(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=io(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ur(o);return i?t.concat(a,a.visualViewport||[],Zr(o)?o:[],a.frameElement&&n?ao(a.frameElement):[]):t.concat(o,ao(o,[],n))}function so(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Kr(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Vr(n)!==i||Vr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function lo(e){return Yr(e)?e:e.contextElement}function co(e){const t=lo(e);if(!Kr(t))return $r(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=so(t);let a=(i?Vr(n.width):n.width)/r,s=(i?Vr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const uo=$r(0);function fo(e){const t=Ur(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uo}function mo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=lo(e);let a=$r(1);t&&(r?Yr(r)&&(a=co(r)):a=co(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ur(e))&&t}(i,n,r)?fo(i):$r(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Ur(i),t=r&&Yr(r)?Ur(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=co(o),t=o.getBoundingClientRect(),r=no(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Ur(o),o=n.frameElement}}return Or({width:u,height:d,x:l,y:c})}const po=[":popover-open",":modal"];function ho(e){return po.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function go(e){return mo(Gr(e)).left+ro(e).scrollLeft}function vo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ur(e),r=Gr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=eo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Gr(e),n=ro(e),r=e.ownerDocument.body,o=jr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+go(e);const s=-n.scrollTop;return"rtl"===no(r).direction&&(a+=jr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Gr(e));else if(Yr(t))r=function(e,t){const n=mo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Kr(e)?co(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=fo(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Or(r)}function bo(e,t){const n=oo(e);return!(n===t||!Yr(n)||to(n))&&("fixed"===no(n).position||bo(n,t))}function yo(e,t,n){const r=Kr(t),o=Gr(t),i="fixed"===n,a=mo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=$r(0);if(r||!r&&!i)if(("body"!==Wr(t)||Zr(o))&&(s=ro(t)),r){const e=mo(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=go(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function xo(e,t){return Kr(e)&&"fixed"!==no(e).position?t?t(e):e.offsetParent:null}function wo(e,t){const n=Ur(e);if(!Kr(e)||ho(e))return n;let r=xo(e,t);for(;r&&Jr(r)&&"static"===no(r).position;)r=xo(r,t);return r&&("html"===Wr(r)||"body"===Wr(r)&&"static"===no(r).position&&!Qr(r))?n:r||function(e){let t=oo(e);for(;Kr(t)&&!to(t);){if(Qr(t))return t;t=oo(t)}return null}(e)||n}const Eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Gr(r),s=!!t&&ho(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$r(1);const u=$r(0),d=Kr(r);if((d||!d&&!i)&&(("body"!==Wr(r)||Zr(a))&&(l=ro(r)),Kr(r))){const e=mo(r);c=co(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Gr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ao(e,[],!1).filter((e=>Yr(e)&&"body"!==Wr(e))),o=null;const i="fixed"===no(e).position;let a=i?oo(e):e;for(;Yr(a)&&!to(a);){const t=no(a),n=Qr(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Zr(a)&&!n&&bo(e,a))?r=r.filter((e=>e!==a)):o=t,a=oo(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=vo(t,n,o);return e.top=jr(r.top,e.top),e.right=Br(r.right,e.right),e.bottom=Br(r.bottom,e.bottom),e.left=jr(r.left,e.left),e}),vo(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wo,getElementRects:async function(e){const t=this.getOffsetParent||wo,n=this.getDimensions;return{reference:yo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=so(e);return{width:t,height:n}},getScale:co,isElement:Yr,isRTL:function(e){return"rtl"===no(e).direction}};function _o(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=lo(e),u=o||i?[...c?ao(c):[],...ao(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Gr(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const m={rootMargin:-Hr(u)+"px "+-Hr(o.clientWidth-(c+d))+"px "+-Hr(o.clientHeight-(u+f))+"px "+-Hr(c)+"px",threshold:jr(0,Br(1,l))||1};let p=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}p=!1}try{r=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),i}(c,n):null;let f,m=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let h=l?mo(e):null;return l&&function t(){const r=mo(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const So=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:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Cr(e,t),c={x:n,y:r},u=await Lr(t,l),d=Rr(kr(o)),f=Tr(d);let m=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";m=Sr(m+u["y"===f?"top":"left"],m,m-u[e])}if(a){const e="y"===d?"bottom":"right";p=Sr(p+u["y"===d?"top":"left"],p,p-u[e])}const h=s.fn({...t,[f]:m,[d]:p});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Co=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=Cr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=kr(o),b=kr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!h?[Dr(s)]:function(e){const t=Dr(e);return[Nr(e),t,Nr(t)]}(s));f||"none"===p||x.push(...function(e,t,n,r){const o=Pr(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[]}}(kr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Nr)))),i}(s,h,p,y));const w=[s,...x],E=await Lr(t,g),_=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Pr(e),o=Mr(e),i=Ir(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Dr(a)),[a,Dr(a)]}(o,a,y);_.push(E[e[0]],E[e[1]])}if(S=[...S,{placement:o,overflows:_}],!_.every((e=>e<=0))){var C,k;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(m){case"bestFit":{var P;const e=null==(P=S.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:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ko=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Cr(e,t),l=await Lr(t,s),c=kr(n),u=Pr(n),d="y"===Rr(n),{width:f,height:m}=r.floating;let p,h;"top"===c||"bottom"===c?(p=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,p="end"===u?"top":"bottom");const g=m-l[p],v=f-l[h],b=!t.middlewareData.shift;let y=g,x=v;if(d){const e=f-l.left-l.right;x=u||b?xr(v,e):e}else{const e=m-l.top-l.bottom;y=u||b?xr(g,e):e}if(b&&!u){const e=wr(l.left,0),t=wr(l.right,0),n=wr(l.top,0),r=wr(l.bottom,0);d?x=f-2*(0!==e||0!==t?e+t:wr(l.left,l.right)):y=m-2*(0!==n||0!==r?n+r:wr(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:y});const w=await o.getDimensions(i.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}},Po=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Cr(e,t)||{};if(null==c)return{};const d=Ar(u),f={x:n,y:r},m=Mr(o),p=Ir(m),h=await a.getDimensions(c),g="y"===m,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[m]-f[m]-i.floating[p],w=f[m]-i.reference[m],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==a.isElement?void 0:a.isElement(E))||(_=s.floating[y]||i.floating[p]);const S=x/2-w/2,C=_/2-h[p]/2-1,k=xr(d[v],C),P=xr(d[b],C),T=k,I=_-h[p]-P,R=_/2-h[p]/2+S,M=Sr(T,R,I),N=!l.arrow&&null!=Pr(o)&&R!=M&&i.reference[p]/2-(R<T?k:P)-h[p]/2<0,D=N?R<T?R-T:R-I:0;return{[m]:f[m]+D,data:{[m]:M,centerOffset:R-M-D,...N&&{alignmentOffset:D}},reset:N}}}),To=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Cr(e,t),u={x:n,y:r},d=Rr(o),f=Tr(d);let m=u[f],p=u[d];const h=Cr(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(kr(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==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:m,[d]:p}}}},Io=(e,t,n)=>{const r=new Map,o={platform:Eo,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zr(c,r,l),f=r,m={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[i]:{...m[i],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=zr(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};function Ro(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 w(x({},o),{toJSON:()=>o})}function Mo(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 Ro();const{x:t,y:n,width:r,height:o}=e;return Ro(t,n,r,o)}(r):n.getBoundingClientRect()}}}function No(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Do(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ao(e,t){return Fr((({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}}))}function Oo(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return F(!t||t.every(No),!1),Co({padding:e.overflowPadding,fallbackPlacements:t})}function zo(e){if(e.slide||e.overlap)return So({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:To()})}function Lo(e){return ko({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`)}})}function Fo(e,t){if(e)return Po({element:e,padding:t.arrowPadding})}var Bo=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,preserveTabOrder:a=!0,autoFocusOnShow:s=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:m=!1,sameWidth:p=!1,fitViewport:h=!1,gutter:g,arrowPadding:v=4,overflowPadding:b=8,getAnchorRect:y,updatePosition:_}=t,S=E(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const C=hn();F(n=n||C,!1);const k=n.useState("arrowElement"),P=n.useState("anchorElement"),T=n.useState("disclosureElement"),I=n.useState("popoverElement"),R=n.useState("contentElement"),M=n.useState("placement"),N=n.useState("mounted"),D=n.useState("rendered"),[A,O]=(0,r.useState)(!1),{portalRef:z,domReady:L}=Ie(i,S.portalRef),B=we(y),j=we(_),V=!!_;be((()=>{if(!(null==I?void 0:I.isConnected))return;I.style.setProperty("--popover-overflow-padding",`${b}px`);const e=Mo(P,B),t=async()=>{if(!N)return;const t=[Ao(k,{gutter:g,shift:d}),Oo({flip:u,overflowPadding:b}),zo({slide:f,shift:d,overlap:m,overflowPadding:b}),Fo(k,{arrowPadding:v}),Lo({sameWidth:p,fitViewport:h,overflowPadding:b})],r=await Io(e,I,{placement:M,strategy:c?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),O(!0);const o=Do(r.x),i=Do(r.y);if(Object.assign(I.style,{top:"0",left:"0",transform:`translate3d(${o}px,${i}px,0)`}),k&&r.middlewareData.arrow){const{x:e,y:t}=r.middlewareData.arrow,n=r.placement.split("-")[0];Object.assign(k.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[n]:"100%"})}},r=_o(e,I,(async()=>{V?(await j({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),r()}}),[n,D,I,k,P,I,M,N,L,c,u,d,f,m,p,h,g,v,b,B,V,j]),be((()=>{if(!N)return;if(!L)return;if(!(null==I?void 0:I.isConnected))return;if(!(null==R?void 0:R.isConnected))return;const e=()=>{I.style.zIndex=getComputedStyle(R).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[N,L,I,R]);const H=c?"fixed":"absolute";return S=Te(S,(e=>(0,Le.jsx)("div",w(x({role:"presentation"},l),{style:x({position:H,top:0,left:0,width:"max-content"},null==l?void 0:l.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,H,l]),S=Te(S,(e=>(0,Le.jsx)(vn,{value:n,children:e})),[n]),S=w(x({"data-placing":A?void 0:""},S),{style:x({position:"relative"},S.style)}),S=br(w(x({store:n,modal:o,portal:i,preserveTabOrder:a,preserveTabOrderAnchor:T||P,autoFocusOnShow:A&&s},S),{portalRef:z}))}));yr(Fe((e=>je("div",Bo(e)))),hn);function jo(e,t,n,r){return!!Je(t)||!!e&&(!!Y(t,e)||(!(!n||!Y(n,e))||!!(null==r?void 0:r.some((t=>jo(e,t,n))))))}var Vo=(0,r.createContext)(null),Ho=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:l=!!s}=t,c=E(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=yn();F(n=n||u,!1);const d=(0,r.useRef)(null),[f,m]=(0,r.useState)([]),p=(0,r.useRef)(0),h=(0,r.useRef)(null),{portalRef:g,domReady:v}=Ie(i,c.portalRef),b=!!s,y=Pe(s),_=!!l,S=Pe(l),C=n.useState("open"),k=n.useState("mounted");(0,r.useEffect)((()=>{if(!v)return;if(!k)return;if(!b&&!_)return;const e=d.current;if(!e)return;return z(pe("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=h.current,[s]=t.composedPath(),l=r;if(jo(s,e,l,f))return h.current=s&&l&&Y(l,s)?In(t):null,window.clearTimeout(p.current),void(p.current=0);if(!p.current){if(a){const n=In(t);if(Rn(n,Mn(e,a))){if(h.current=n,!S(t))return;return t.preventDefault(),void t.stopPropagation()}}y(t)&&(p.current=window.setTimeout((()=>{p.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(p.current)))}),[n,v,k,b,_,f,S,y]),(0,r.useEffect)((()=>{if(!v)return;if(!k)return;if(!_)return;const e=e=>{const t=d.current;if(!t)return;const n=h.current;if(!n)return;const r=Mn(t,n);if(Rn(In(e),r)){if(!S(e))return;e.preventDefault(),e.stopPropagation()}};return z(pe("mouseenter",e,!0),pe("mouseover",e,!0),pe("mouseout",e,!0),pe("mouseleave",e,!0))}),[v,k,_,S]),(0,r.useEffect)((()=>{v&&(C||null==n||n.setAutoFocusOnShow(!1))}),[n,v,C]);const P=xe(C);(0,r.useEffect)((()=>{if(v)return()=>{P.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,v]);const T=(0,r.useContext)(Vo);be((()=>{if(o)return;if(!i)return;if(!k)return;if(!v)return;const e=d.current;return e?null==T?void 0:T(e):void 0}),[o,i,k,v]);const I=(0,r.useCallback)((e=>{m((t=>[...t,e]));const t=null==T?void 0:T(e);return()=>{m((t=>t.filter((t=>t!==e)))),null==t||t()}}),[T]);c=Te(c,(e=>(0,Le.jsx)(wn,{value:n,children:(0,Le.jsx)(Vo.Provider,{value:I,children:e})})),[n,I]),c=w(x({},c),{ref:Ee(d,c.ref)}),c=function(e){var t=e,{store:n}=t,o=E(t,["store"]);const[i,a]=(0,r.useState)(!1),s=n.useState("mounted");(0,r.useEffect)((()=>{s||a(!1)}),[s]);const l=o.onFocus,c=we((e=>{null==l||l(e),e.defaultPrevented||a(!0)})),u=(0,r.useRef)(null);return(0,r.useEffect)((()=>At(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),w(x({autoFocusOnHide:i,finalFocus:u},o),{onFocus:c})}(x({store:n},c));const R=n.useState((e=>o||e.autoFocusOnShow));return c=Bo(w(x({store:n,modal:o,portal:i,autoFocusOnShow:R},c),{portalRef:g,hideOnEscape:e=>!B(a,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));yr(Fe((e=>je("div",Ho(e)))),yn);var $o=Ve((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:s=!0}=t,l=E(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Sn();F(n=n||c,!1),l=Te(l,(e=>(0,Le.jsx)(Cn,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=x({role:u},l),l=Ho(w(x({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(B(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(B(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Y(t,e.target)}}))})),Wo=yr(Fe((e=>je("div",$o(e)))),Sn);const Uo=window.wp.element,Go=window.wp.deprecated;var qo=o.n(Go);const Yo=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let o,i;return"string"==typeof t&&(o=t),null!==t&&"object"==typeof t&&(o=t.display,i=t.ariaLabel),(0,r.createElement)("span",{className:n,"aria-label":i},o)},Ko={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"},Xo=e=>{var t;return null!==(t=Ko[e])&&void 0!==t?t:"bottom"},Zo={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}};const Jo=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Qo=(0,Uo.createContext)({isNestedInTooltip:!1}),ei=700,ti={isNestedInTooltip:!0};const ni=(0,Uo.forwardRef)((function(e,t){const{children:n,delay:o=ei,hideOnClick:i=!0,placement:a,position:s,shortcut:l,text:c,...u}=e,{isNestedInTooltip:f}=(0,Uo.useContext)(Qo),m=(0,d.useInstanceId)(ni,"tooltip"),p=c||l?m:void 0,h=1===Uo.Children.count(n);let g;void 0!==a?g=a:void 0!==s&&(g=Xo(s),qo()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),g=g||"bottom";const v=rn({placement:g,showTimeout:o});return f?h?(0,r.createElement)(on,{...u,render:n}):n:(0,r.createElement)(Qo.Provider,{value:ti},(0,r.createElement)(Tn,{onClick:i?v.hide:void 0,store:v,render:h?n:void 0,ref:t},h?void 0:n),h&&(c||l)&&(0,r.createElement)(Wo,{...u,className:"components-tooltip",unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:v},c,l&&(0,r.createElement)(Yo,{className:c?"components-tooltip__shortcut":"",shortcut:l})))})),ri=ni;window.wp.warning;var oi=o(66),ii=o.n(oi),ai=o(7734),si=o.n(ai); + */var r=n(1609);var 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,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="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,u=r[1];return a((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},422:(e,t,n)=>{"use strict";e.exports=n(8477)},1609:e=>{"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](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 s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),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.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})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AnglePickerControl:()=>py,Animate:()=>yl,Autocomplete:()=>kw,BaseControl:()=>Dx,BlockQuotation:()=>n.BlockQuotation,Button:()=>Hx,ButtonGroup:()=>Qj,Card:()=>AE,CardBody:()=>WE,CardDivider:()=>nP,CardFooter:()=>oP,CardHeader:()=>sP,CardMedia:()=>lP,CheckboxControl:()=>cP,Circle:()=>n.Circle,ClipboardButton:()=>dP,ColorIndicator:()=>A_,ColorPalette:()=>fk,ColorPicker:()=>GC,ComboboxControl:()=>qT,CustomGradientPicker:()=>rT,CustomSelectControl:()=>BM,Dashicon:()=>Fx,DatePicker:()=>MN,DateTimePicker:()=>tA,Disabled:()=>cA,Draggable:()=>pA,DropZone:()=>vA,DropZoneProvider:()=>bA,Dropdown:()=>F_,DropdownMenu:()=>wT,DuotonePicker:()=>jA,DuotoneSwatch:()=>wA,ExternalLink:()=>EA,Fill:()=>cw,Flex:()=>dg,FlexBlock:()=>hg,FlexItem:()=>jg,FocalPointPicker:()=>QA,FocusReturnProvider:()=>BB,FocusableIframe:()=>eD,FontSizePicker:()=>vD,FormFileUpload:()=>bD,FormToggle:()=>yD,FormTokenField:()=>jD,G:()=>n.G,GradientPicker:()=>lT,Guide:()=>TD,GuidePage:()=>ID,HorizontalRule:()=>n.HorizontalRule,Icon:()=>Bx,IconButton:()=>MD,IsolatedEventContainer:()=>CB,KeyboardShortcuts:()=>OD,Line:()=>n.Line,MenuGroup:()=>zD,MenuItem:()=>FD,MenuItemsChoice:()=>VD,Modal:()=>hI,NavigableMenu:()=>vT,Notice:()=>gz,NoticeList:()=>bz,Panel:()=>yz,PanelBody:()=>kz,PanelHeader:()=>xz,PanelRow:()=>jz,Path:()=>n.Path,Placeholder:()=>Pz,Polygon:()=>n.Polygon,Popover:()=>bw,ProgressBar:()=>Az,QueryControls:()=>Wz,RadioControl:()=>Xz,RangeControl:()=>BS,Rect:()=>n.Rect,ResizableBox:()=>DL,ResponsiveWrapper:()=>OL,SVG:()=>n.SVG,SandBox:()=>LL,ScrollLock:()=>Ny,SearchControl:()=>NO,SelectControl:()=>J_,Slot:()=>uw,SlotFillProvider:()=>dw,Snackbar:()=>BL,SnackbarList:()=>$L,Spinner:()=>YL,TabPanel:()=>uF,TabbableContainer:()=>$D,TextControl:()=>pF,TextHighlight:()=>yF,TextareaControl:()=>xF,TimePicker:()=>ZN,Tip:()=>_F,ToggleControl:()=>SF,Toolbar:()=>$F,ToolbarButton:()=>NF,ToolbarDropdownMenu:()=>HF,ToolbarGroup:()=>OF,ToolbarItem:()=>MF,Tooltip:()=>ri,TreeSelect:()=>Fz,VisuallyHidden:()=>wa,__experimentalAlignmentMatrixControl:()=>vl,__experimentalApplyValueToSides:()=>Vj,__experimentalBorderBoxControl:()=>fj,__experimentalBorderControl:()=>qk,__experimentalBoxControl:()=>Jj,__experimentalConfirmDialog:()=>mI,__experimentalDimensionControl:()=>rA,__experimentalDivider:()=>eP,__experimentalDropdownContentWrapper:()=>lk,__experimentalElevation:()=>rE,__experimentalGrid:()=>Jk,__experimentalHStack:()=>ry,__experimentalHasSplitBorders:()=>aj,__experimentalHeading:()=>ok,__experimentalInputControl:()=>Lx,__experimentalInputControlPrefixWrapper:()=>AD,__experimentalInputControlSuffixWrapper:()=>B_,__experimentalIsDefinedBorder:()=>sj,__experimentalIsEmptyBorder:()=>ij,__experimentalItem:()=>ND,__experimentalItemGroup:()=>PP,__experimentalNavigation:()=>cO,__experimentalNavigationBackButton:()=>hO,__experimentalNavigationGroup:()=>gO,__experimentalNavigationItem:()=>kO,__experimentalNavigationMenu:()=>zO,__experimentalNavigatorBackButton:()=>dz,__experimentalNavigatorButton:()=>cz,__experimentalNavigatorProvider:()=>nz,__experimentalNavigatorScreen:()=>iz,__experimentalNavigatorToParentButton:()=>pz,__experimentalNumberControl:()=>sy,__experimentalPaletteEdit:()=>LT,__experimentalParseQuantityAndUnitFromRawValue:()=>zk,__experimentalRadio:()=>Kz,__experimentalRadioGroup:()=>qz,__experimentalScrollable:()=>$E,__experimentalSpacer:()=>Sg,__experimentalStyleProvider:()=>ew,__experimentalSurface:()=>qL,__experimentalText:()=>Dv,__experimentalToggleGroupControl:()=>h_,__experimentalToggleGroupControlOption:()=>dD,__experimentalToggleGroupControlOptionIcon:()=>M_,__experimentalToolbarContext:()=>IF,__experimentalToolsPanel:()=>cB,__experimentalToolsPanelContext:()=>eB,__experimentalToolsPanelItem:()=>pB,__experimentalTreeGrid:()=>bB,__experimentalTreeGridCell:()=>_B,__experimentalTreeGridItem:()=>wB,__experimentalTreeGridRow:()=>xB,__experimentalTruncate:()=>nk,__experimentalUnitControl:()=>Wk,__experimentalUseCustomUnits:()=>Lk,__experimentalUseNavigator:()=>sz,__experimentalUseSlot:()=>Oy,__experimentalUseSlotFills:()=>kB,__experimentalVStack:()=>tk,__experimentalView:()=>ya,__experimentalZStack:()=>IB,__unstableAnimatePresence:()=>Zm,__unstableComposite:()=>rI,__unstableCompositeGroup:()=>oI,__unstableCompositeItem:()=>iI,__unstableDisclosureContent:()=>uA,__unstableGetAnimateClassName:()=>xl,__unstableMotion:()=>Hm,__unstableMotionContext:()=>_l,__unstableUseAutocompleteProps:()=>Cw,__unstableUseCompositeState:()=>sI,__unstableUseNavigateRegions:()=>RB,createSlotFill:()=>pw,navigateRegions:()=>NB,privateApis:()=>eH,useBaseControlProps:()=>jw,withConstrainedTabbing:()=>AB,withFallbackStyles:()=>DB,withFilters:()=>LB,withFocusOutside:()=>UT,withFocusReturn:()=>FB,withNotices:()=>VB,withSpokenMessages:()=>EO});var e={};o.r(e),o.d(e,{Text:()=>xv,block:()=>yv,destructive:()=>_v,highlighterText:()=>Cv,muted:()=>Sv,positive:()=>wv,upperCase:()=>kv});var t={};o.r(t),o.d(t,{ButtonContentView:()=>w_,LabelView:()=>g_,ou:()=>S_,uG:()=>b_,eh:()=>v_});const n=window.wp.primitives;function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const s=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o},a=window.wp.i18n,l=window.wp.compose;var c=o(1609),u=o.t(c,2),d=o.n(c),p=(0,c.createContext)(!0),h=Object.defineProperty,f=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&x(e,n,t[n]);if(g)for(var n of g(t))b.call(t,n)&&x(e,n,t[n]);return e},w=(e,t)=>f(e,m(t)),_=(e,t)=>{var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&g)for(var r of g(e))t.indexOf(r)<0&&b.call(e,r)&&(n[r]=e[r]);return n},S=Object.defineProperty,C=Object.defineProperties,k=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))E.call(t,n)&&T(e,n,t[n]);if(j)for(var n of j(t))P.call(t,n)&&T(e,n,t[n]);return e},M=(e,t)=>C(e,k(t)),R=(e,t)=>{var n={};for(var r in e)E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&j)for(var r of j(e))t.indexOf(r)<0&&P.call(e,r)&&(n[r]=e[r]);return n};function N(...e){}function A(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function D(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function O(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function z(e){return e}function L(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function F(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function B(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function V(...e){for(const t of e)if(void 0!==t)return t}function $(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function H(e){return function(e){return!!e&&!!(0,c.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var W,U="undefined"!=typeof window&&!!(null==(W=window.document)?void 0:W.createElement);function G(e){return e?e.ownerDocument||e:document}function K(e,t=!1){const{activeElement:n}=G(e);if(!(null==n?void 0:n.nodeName))return null;if(q(n)&&n.contentDocument)return K(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=G(n).getElementById(e);if(t)return t}}return n}function Y(e,t){return e===t||e.contains(t)}function q(e){return"IFRAME"===e.tagName}function X(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Z.indexOf(e.type)}var Z=["button","color","file","image","reset","submit"];function J(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Q(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ee(e,t){if("closest"in e)return e.closest(t);do{if(J(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function te(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function ne(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function re(e,t){var n;const r=ne(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function oe(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return oe(e.parentElement)||document.scrollingElement||document.body}function ie(){return!!U&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function se(){return U&&ie()&&/apple/i.test(navigator.vendor)}function ae(){return U&&navigator.platform.startsWith("Mac")&&!(U&&navigator.maxTouchPoints)}function le(e){return Boolean(e.currentTarget&&!Y(e.currentTarget,e.target))}function ce(e){return e.target===e.currentTarget}function ue(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=M(I({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function de(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function pe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function he(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function fe(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(fe(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var me=y({},u),ge=me.useId,ve=(me.useDeferredValue,me.useInsertionEffect),be=U?c.useLayoutEffect:c.useEffect;function xe(e){const[t]=(0,c.useState)(e);return t}function ye(e){const t=(0,c.useRef)(e);return be((()=>{t.current=e})),t}function we(e){const t=(0,c.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return ve?ve((()=>{t.current=e})):t.current=e,(0,c.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function _e(...e){return(0,c.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>$(e,t)))}}),e)}function Se(e){if(ge){const t=ge();return e||t}const[t,n]=(0,c.useState)(e);return be((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Ce(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,c.useState)((()=>n(t)));return be((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function ke(e,t){const n=(0,c.useRef)(!1);(0,c.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,c.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function je(){return(0,c.useReducer)((()=>[]),[])}function Ee(e){return we("function"==typeof e?e:()=>e)}function Pe(e,t,n=[]){const r=(0,c.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return w(y({},e),{wrapElement:r})}function Te(e=!1,t){const[n,r]=(0,c.useState)(null);return{portalRef:_e(r,t),portalNode:n,domReady:!e||n}}function Ie(e,t,n){const r=e.onLoadedMetadataCapture,o=(0,c.useMemo)((()=>Object.assign((()=>{}),w(y({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:o}]}function Me(){(0,c.useEffect)((()=>{fe("mousemove",De,!0),fe("mousedown",Oe,!0),fe("mouseup",Oe,!0),fe("keydown",Oe,!0),fe("scroll",Oe,!0)}),[]);return we((()=>Re))}var Re=!1,Ne=0,Ae=0;function De(e){(function(e){const t=e.movementX||e.screenX-Ne,n=e.movementY||e.screenY-Ae;return Ne=e.screenX,Ae=e.screenY,t||n||!1})(e)&&(Re=!0)}function Oe(){Re=!1}const ze=window.ReactJSXRuntime;function Le(e){return c.forwardRef(((t,n)=>e(y({ref:n},t))))}function Fe(e){const t=Le(e);return c.memo(t)}function Be(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,s=_(n,["as","wrapElement","render"]);let a;const l=_e(t.ref,H(i));if(r&&"string"!=typeof r)a=(0,ze.jsx)(r,w(y({},s),{render:i}));else if(c.isValidElement(i)){const e=w(y({},i.props),{ref:l});a=c.cloneElement(i,function(e,t){const n=y({},e);for(const r in t){if(!D(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]?y(y({},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}(s,e))}else if(i)a=i(s);else if("function"==typeof t.children){0;const e=s,{children:n}=e,r=_(e,["children"]);a=t.children(r)}else a=r?(0,ze.jsx)(r,y({},s)):(0,ze.jsx)(e,y({},s));return o?o(a):a}function Ve(e){return(t={})=>{const n=e(t),r={};for(const e in n)D(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function $e(e=[],t=[]){const n=c.createContext(void 0),r=c.createContext(void 0),o=()=>c.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,ze.jsx)(n,w(y({},t),{children:e}))),(0,ze.jsx)(n.Provider,y({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=c.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=c.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,ze.jsx)(i,w(y({},e),{children:t.reduceRight(((t,n)=>(0,ze.jsx)(n,w(y({},e),{children:t}))),(0,ze.jsx)(r.Provider,y({},e)))}))}}var He="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function We(e){return!!J(e,He)&&(!!Q(e)&&!ee(e,"[inert]"))}function Ue(e){if(!We(e))return!1;if(function(e){return 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=K(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function Ge(e,t){const n=Array.from(e.querySelectorAll(He));t&&n.unshift(e);const r=n.filter(We);return r.forEach(((e,t)=>{if(q(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Ge(n))}})),r}function Ke(e,t,n){const r=Array.from(e.querySelectorAll(He)),o=r.filter(Ue);return t&&Ue(e)&&o.unshift(e),o.forEach(((e,t)=>{if(q(e)&&e.contentDocument){const r=Ke(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Ye(e,t,n){const[r]=Ke(e,t,n);return r||null}function qe(e,t){return function(e,t,n,r){const o=K(e),i=Ge(e,t),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ue)||(n?i.find(Ue):null)||(r?a[0]:null)||null}(document.body,!1,e,t)}function Xe(e,t){return function(e,t,n,r){const o=K(e),i=Ge(e,t).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ue)||(n?i.find(Ue):null)||(r?a[0]:null)||null}(document.body,!1,e,t)}function Ze(e){const t=K(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Je(e){const t=K(e);if(!t)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Qe(e){!Je(e)&&We(e)&&e.focus()}function et(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var tt=se(),nt=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function rt(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function ot(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function it(e,t){return we((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var st=!0;function at(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(st=!1))}function lt(e){e.metaKey||e.ctrlKey||e.altKey||(st=!0)}var ct=Ve((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=_(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const a=(0,c.useRef)(null);(0,c.useEffect)((()=>{n&&(fe("mousedown",at,!0),fe("keydown",lt,!0))}),[n]),tt&&(0,c.useEffect)((()=>{if(!n)return;const e=a.current;if(!e)return;if(!rt(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&B(s),u=!!l&&!r,[d,h]=(0,c.useState)(!1);(0,c.useEffect)((()=>{n&&u&&d&&h(!1)}),[n,u,d]),(0,c.useEffect)((()=>{if(!n)return;if(!d)return;const e=a.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{We(e)||h(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const f=it(s.onKeyPressCapture,l),m=it(s.onMouseDownCapture,l),g=it(s.onClickCapture,l),v=s.onMouseDown,b=we((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!tt)return;if(le(e))return;if(!X(t)&&!rt(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),he(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||Qe(t)}))})),x=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ze(r)&&(null==i||i(e),e.defaultPrevented||h(!0))},S=s.onKeyDownCapture,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ce(e))return;const t=e.currentTarget;queueMicrotask((()=>x(e,t)))})),k=s.onFocusCapture,j=we((e=>{if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return void h(!1);const t=e.currentTarget,r=()=>x(e,t);st||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:nt.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?h(!1):he(e.target,"focusout",r)})),E=s.onBlur,P=we((e=>{null==E||E(e),n&&pe(e)&&h(!1)})),T=(0,c.useContext)(p),I=we((e=>{n&&o&&e&&T&&queueMicrotask((()=>{Ze(e)||We(e)&&e.focus()}))})),M=Ce(a,s.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(M),N=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(M),A=u?y({pointerEvents:"none"},s.style):s.style;return s=w(y({"data-focus-visible":n&&d?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},s),{ref:_e(a,I,s.ref),style:A,tabIndex:ot(n,u,R,N,s.tabIndex),disabled:!(!N||!u)||void 0,contentEditable:l?void 0:s.contentEditable,onKeyPressCapture:f,onClickCapture:g,onMouseDownCapture:m,onMouseDown:b,onKeyDownCapture:C,onFocusCapture:j,onBlur:P})}));Le((e=>Be("div",e=ct(e))));function ut(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?X(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(X(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var dt=Symbol("command"),pt=Ve((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=_(t,["clickOnEnter","clickOnSpace"]);const i=(0,c.useRef)(null),s=Ce(i,o.as),a=o.type,[l,u]=(0,c.useState)((()=>!!s&&X({tagName:s,type:a})));(0,c.useEffect)((()=>{i.current&&u(X(i.current))}),[]);const[d,p]=(0,c.useState)(!1),h=(0,c.useRef)(!1),f=B(o),[m,g]=Ie(o,dt,!0),v=o.onKeyDown,b=we((e=>{null==v||v(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(m)return;if(f)return;if(!ce(e))return;if(te(t))return;if(t.isContentEditable)return;const o=n&&"Enter"===e.key,i=r&&" "===e.key,s="Enter"===e.key&&!n,a=" "===e.key&&!r;if(s||a)e.preventDefault();else if(o||i){const n=ut(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=_(n,["view"]),i=()=>de(t,o);U&&/firefox\//i.test(navigator.userAgent)?he(t,"keyup",i):queueMicrotask(i)}}else i&&(h.current=!0,n||(e.preventDefault(),p(!0)))}})),x=o.onKeyUp,S=we((e=>{if(null==x||x(e),e.defaultPrevented)return;if(m)return;if(f)return;if(e.metaKey)return;const t=r&&" "===e.key;if(h.current&&t&&(h.current=!1,!ut(e))){e.preventDefault(),p(!1);const t=e.currentTarget,n=e,{view:r}=n,o=_(n,["view"]);queueMicrotask((()=>de(t,o)))}}));return o=w(y(y({"data-active":d?"":void 0,type:l?"button":void 0},g),o),{ref:_e(i,o.ref),onKeyDown:b,onKeyUp:S}),o=ct(o)}));Le((e=>Be("button",e=pt(e))));var ht=$e(),ft=ht.useContext,mt=(ht.useScopedContext,ht.useProviderContext,ht.ContextProvider),gt=ht.ScopedContextProvider,vt=Ve((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=z,element:i}=t,s=_(t,["store","shouldRegisterItem","getItem","element"]);const a=ft();n=n||a;const l=Se(s.id),u=(0,c.useRef)(i);return(0,c.useEffect)((()=>{const e=u.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),s=w(y({},s),{ref:_e(u,s.ref)})}));Le((e=>Be("div",vt(e))));var bt={id:null};function xt(e,t){return t&&e.item(t)||null}var yt=Symbol("FOCUS_SILENTLY");function wt(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var _t=$e([mt],[gt]),St=_t.useContext,Ct=(_t.useScopedContext,_t.useProviderContext),kt=_t.ContextProvider,jt=_t.ScopedContextProvider,Et=(0,c.createContext)(void 0),Pt=(0,c.createContext)(void 0);function Tt(e,t){const n=e.__unstableInternals;return L(n,"Invalid store"),n[t]}function It(e,...t){let n=e,r=n,o=Symbol(),i=N;const s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,p=new WeakMap,h=(e,t,n=c)=>(n.add(t),p.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),p.delete(t),n.delete(t)}),f=(e,i,s=!1)=>{if(!D(n,e))return;const l=A(i,n[e]);if(l===n[e])return;s||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const h=n;n=M(I({},n),{[e]:l});const f=Symbol();o=f,a.add(e);const m=(t,r,o)=>{var i;const s=p.get(t);s&&!s.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};c.forEach((e=>{m(e,h)})),queueMicrotask((()=>{if(o!==f)return;const e=n;u.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={getState:()=>n,setState:f,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=s.size,r=Symbol();s.add(r);const o=()=>{s.delete(r),s.size||i()};if(e)return o;const a=(c=n,Object.keys(c)).map((e=>O(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&D(r,e))return At(t,[e],(t=>{f(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(Rt);return i=O(...a,...u,...d),o},subscribe:(e,t)=>h(e,t),sync:(e,t)=>(d.set(t,t(n,n)),h(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),h(e,t,u)),pick:e=>It(function(e,t){const n={};for(const r of t)D(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>It(function(e,t){const n=I({},e);for(const e of t)D(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Mt(e,...t){if(e)return Tt(e,"setup")(...t)}function Rt(e,...t){if(e)return Tt(e,"init")(...t)}function Nt(e,...t){if(e)return Tt(e,"subscribe")(...t)}function At(e,...t){if(e)return Tt(e,"sync")(...t)}function Dt(e,...t){if(e)return Tt(e,"batch")(...t)}function Ot(e,...t){if(e)return Tt(e,"omit")(...t)}function zt(...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?I(I({},e),r):e}),{});return It(t,...e)}var Lt=o(422),{useSyncExternalStore:Ft}=Lt,Bt=()=>()=>{};function Vt(e,t=z){const n=c.useCallback((t=>e?Nt(e,null,t):Bt()),[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&&D(o,n)?o[n]:void 0};return Ft(n,r,r)}function $t(e,t,n,r){const o=D(t,n)?t[n]:void 0,i=r?t[r]:void 0,s=ye({value:o,setValue:i});be((()=>At(e,[n],((e,t)=>{const{value:r,setValue:o}=s.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),be((()=>{if(void 0!==o)return e.setState(n,o),Dt(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Ht(e,t){const[n,r]=c.useState((()=>e(t)));be((()=>Rt(n)),[n]);const o=c.useCallback((e=>Vt(n,e)),[n]);return[c.useMemo((()=>w(y({},n),{useState:o})),[n,o]),we((()=>{r((n=>e(y(y({},t),n.getState()))))}))]}function Wt(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ut(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),s=oe(e);if(!s)return;const a=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(s,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const s=null==(o=xt(t,l))?void 0:o.element;if(!s)continue;const u=Wt(s,r)-a,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Gt=Ve((e=>{var t=e,{store:n,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,tabbable:s=!1,getItem:a,"aria-setsize":l,"aria-posinset":u}=t,d=_(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const p=St();n=n||p;const h=Se(d.id),f=(0,c.useRef)(null),m=(0,c.useContext)(Pt),g=Vt(n,(e=>r||(e&&(null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),v=B(d)&&!d.accessibleWhenDisabled,b=(0,c.useCallback)((e=>{const t=w(y({},e),{id:h||e.id,rowId:g,disabled:!!v});return a?a(t):t}),[h,g,v,a]),x=d.onFocus,S=(0,c.useRef)(!1),C=we((e=>{if(null==x||x(e),e.defaultPrevented)return;if(le(e))return;if(!h)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!ce(e)&&wt(t,e.target)}(e,n))return;if(t!==h&&n.setActiveId(h),!r)return;if(!ce(e))return;if((i=e.currentTarget).isContentEditable||te(i)||"INPUT"===i.tagName&&!X(i))return;var i;if(!(null==o?void 0:o.isConnected))return;S.current=!0;e.relatedTarget===o||wt(n,e.relatedTarget)?function(e){e[yt]=!0,e.focus({preventScroll:!0})}(o):o.focus()})),k=d.onBlurCapture,j=we((e=>{if(null==k||k(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&S.current&&(S.current=!1,e.preventDefault(),e.stopPropagation())})),E=d.onKeyDown,P=Ee(o),T=Ee(i),I=we((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!ce(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(h),i=!!(null==o?void 0:o.rowId),s="horizontal"!==r.orientation,a="vertical"!==r.orientation,l=()=>!!i||(!!a||(!r.baseElement||!te(r.baseElement))),c={ArrowUp:(i||s)&&n.up,ArrowRight:(i||a)&&n.next,ArrowDown:(i||s)&&n.down,ArrowLeft:(i||a)&&n.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>Ut(t,n,null==n?void 0:n.up,!0),PageDown:()=>Ut(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(P(e)||void 0!==t){if(!T(e))return;e.preventDefault(),n.move(t)}}})),M=Vt(n,(e=>(null==e?void 0:e.baseElement)||void 0)),R=(0,c.useMemo)((()=>({id:h,baseElement:M})),[h,M]);d=Pe(d,(e=>(0,ze.jsx)(Et.Provider,{value:R,children:e})),[R]);const N=Vt(n,(e=>!!e&&e.activeId===h)),A=Vt(n,"virtualFocus"),D=function(e,t){const n=t.role,[r,o]=(0,c.useState)(n);return be((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(f,d);let O;N&&(!function(e){return"option"===e||"treeitem"===e}(D)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(D)&&(O=!0):O=!0);const z=Vt(n,(e=>null!=l?l:e&&(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),L=Vt(n,(e=>{if(null!=u)return u;if(!e)return;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===g));return m.ariaPosInSet+t.findIndex((e=>e.id===h))})),F=Vt(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!s||e.activeId===h)));return d=w(y({id:h,"aria-selected":O,"data-active-item":N?"":void 0},d),{ref:_e(f,d.ref),tabIndex:F?d.tabIndex:-1,onFocus:C,onBlurCapture:j,onKeyDown:I}),d=pt(d),d=vt(w(y({store:n},d),{getItem:b,shouldRegisterItem:!!h&&d.shouldRegisterItem})),w(y({},d),{"aria-setsize":z,"aria-posinset":L})})),Kt=Fe((e=>Be("button",Gt(e))));function Yt(e={}){const t=zt(e.store,Ot(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=V(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=V(e.animated,null==n?void 0:n.animated,!1),i=It({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:V(null==n?void 0:n.contentElement,null),disclosureElement:V(null==n?void 0:n.disclosureElement,null)},t);return Mt(i,(()=>At(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Mt(i,(()=>Nt(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Mt(i,(()=>At(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),M(I({},i),{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 qt(e,t,n){return ke(t,[n.store,n.disclosure]),$t(e,n,"open","setOpen"),$t(e,n,"mounted","setMounted"),$t(e,n,"animated"),e}function Xt(e={}){const[t,n]=Ht(Yt,e);return qt(t,n,e)}function Zt(e={}){return Yt(e)}function Jt(e,t,n){return qt(e,t,n)}function Qt(e,t,n){return ke(t,[n.popover]),$t(e=Jt(e,t,n),n,"placement"),e}function en(e,t,n){return $t(e=Qt(e,t,n),n,"timeout"),$t(e,n,"showTimeout"),$t(e,n,"hideTimeout"),e}function tn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=R(t,["popover"]);const o=zt(r.store,Ot(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),s=Zt(M(I({},r),{store:o})),a=V(r.placement,null==i?void 0:i.placement,"bottom"),l=It(M(I({},s.getState()),{placement:a,currentPlacement:a,anchorElement:V(null==i?void 0:i.anchorElement,null),popoverElement:V(null==i?void 0:i.popoverElement,null),arrowElement:V(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),s,o);return M(I(I({},s),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(M(I({},e),{placement:V(e.placement,null==n?void 0:n.placement,"bottom")})),o=V(e.timeout,null==n?void 0:n.timeout,500),i=It(M(I({},r.getState()),{timeout:o,showTimeout:V(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:V(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return M(I(I({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function nn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tn(M(I({},e),{placement:V(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=It(M(I({},r.getState()),{type:V(e.type,null==n?void 0:n.type,"description"),skipTimeout:V(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return I(I({},r),o)}function rn(e={}){const[t,n]=Ht(nn,e);return function(e,t,n){return $t(e=en(e,t,n),n,"type"),$t(e,n,"skipTimeout"),e}(t,n,e)}Ve((e=>e));var on=Le((e=>Be("div",e)));Object.assign(on,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Le((e=>Be(t,e))),e)),{}));var sn=$e(),an=(sn.useContext,sn.useScopedContext,sn.useProviderContext),ln=$e([sn.ContextProvider],[sn.ScopedContextProvider]),cn=(ln.useContext,ln.useScopedContext,ln.useProviderContext),un=ln.ContextProvider,dn=ln.ScopedContextProvider,pn=(0,c.createContext)(void 0),hn=(0,c.createContext)(void 0),fn=$e([un],[dn]),mn=(fn.useContext,fn.useScopedContext,fn.useProviderContext),gn=fn.ContextProvider,vn=fn.ScopedContextProvider,bn=$e([gn],[vn]),xn=(bn.useContext,bn.useScopedContext,bn.useProviderContext),yn=bn.ContextProvider,wn=bn.ScopedContextProvider,_n=Ve((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=_(t,["store","showOnHover"]);const i=xn();L(n=n||i,!1);const s=B(o),a=(0,c.useRef)(0);(0,c.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,c.useEffect)((()=>fe("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(a.current),a.current=0)}),!0)),[n]);const l=o.onMouseMove,u=Ee(r),d=Me(),p=we((e=>{if(null==l||l(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(a.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{a.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},c=null!=r?r:o;0===c?i():a.current=window.setTimeout(i,c)})),h=(0,c.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=w(y({},o),{ref:_e(h,o.ref),onMouseMove:p}),o=ct(o)}));Le((e=>Be("a",_n(e))));var Sn=$e([yn],[wn]),Cn=(Sn.useContext,Sn.useScopedContext,Sn.useProviderContext),kn=(Sn.ContextProvider,Sn.ScopedContextProvider),jn=It({activeStore:null}),En=Ve((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=_(t,["store","showOnHover"]);const i=Cn();L(n=n||i,!1);const s=(0,c.useRef)(!1);(0,c.useEffect)((()=>At(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,c.useEffect)((()=>At(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=jn.getState();return e!==n&&(null==e||e.hide()),jn.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=jn.getState();e===n&&jn.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const a=o.onMouseEnter,l=we((e=>{null==a||a(e),s.current=!0})),u=o.onFocusVisible,d=we((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),p=o.onBlur,h=we((e=>{if(null==p||p(e),e.defaultPrevented)return;const{activeStore:t}=jn.getState();t===n&&jn.setState("activeStore",null)})),f=n.useState("type"),m=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=w(y({"aria-labelledby":"label"===f?m:void 0,"aria-describedby":"description"===f?m:void 0},o),{onMouseEnter:l,onFocusVisible:d,onBlur:h}),o=_n(y({store:n,showOnHover:e=>{if(!s.current)return!1;if(F(r,e))return!1;const{activeStore:t}=jn.getState();return!t||(null==n||n.show(),!1)}},o))})),Pn=Le((e=>Be("div",En(e))));function Tn(e){return[e.clientX,e.clientY]}function In(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,s=e-1;i<e;s=i++){const[a,l]=t[i],[c,u]=t[s],[,d]=t[0===s?e-1:s-1]||[0,0],p=(l-u)*(n-a)-(a-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===p)return!0;p>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===p)return!0;p<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=a||n>=a&&n<=c))return!0}return o}function Mn(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e;return[s<i?"left":s>r?"right":null,a<n?"top":a>o?"bottom":null]}(t,n),c=[t];return a?("top"!==l&&c.push(["left"===a?s:o,r]),c.push(["left"===a?o:s,r]),c.push(["left"===a?o:s,i]),"bottom"!==l&&c.push(["left"===a?s:o,i])):"top"===l?(c.push([s,r]),c.push([s,i]),c.push([o,i]),c.push([o,r])):(c.push([s,i]),c.push([s,r]),c.push([o,r]),c.push([o,i])),c}function Rn(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 Nn=new WeakMap;function An(e,t,n){Nn.has(e)||Nn.set(e,new Map);const r=Nn.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(),s=()=>{i(),o(),r.delete(t)};return r.set(t,s),()=>{r.get(t)===s&&(i(),r.set(t,o))}}function Dn(e,t,n){return An(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function On(e,t,n){return An(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function zn(e,t){if(!e)return()=>{};return An(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Ln=["SCRIPT","STYLE"];function Fn(e){return`__ariakit-dialog-snapshot-${e}`}function Bn(e,t,n){return!Ln.includes(t.tagName)&&(!!function(e,t){const n=G(t),r=Fn(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&&Y(t,e))))}function Vn(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)))),s=G(o),a=o;for(;o.parentElement&&o!==s.body;){if(null==r||r(o.parentElement,a),!i)for(const r of o.parentElement.children)Bn(e,r,t)&&n(r,a);o=o.parentElement}}}function $n(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Hn(e,t=""){return O(On(e,$n("",!0),!0),On(e,$n(t,!0),!0))}function Wn(e,t){if(e[$n(t,!0)])return!0;const n=$n(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Un(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Vn(e,t,(t=>{Rn(t,...r)||n.unshift(function(e,t=""){return O(On(e,$n(),!0),On(e,$n(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Hn(t,e))}));return()=>{n.forEach((e=>e()))}}function Gn(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Kn(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function Yn(e,t,n){return!(n||!1===t||e&&!t)}var qn=Ve((e=>{var t=e,{store:n,alwaysVisible:r}=t,o=_(t,["store","alwaysVisible"]);const i=an();L(n=n||i,!1);const s=Se(o.id),[a,l]=(0,c.useState)(null),u=n.useState("open"),d=n.useState("mounted"),p=n.useState("animated"),h=n.useState("contentElement");be((()=>{if(p){if(null==h?void 0:h.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{l(u?"enter":"leave")}));l(null)}}),[p,h,u]),be((()=>{if(!n)return;if(!p)return;if(!h)return;if(!a)return;if("enter"===a&&!u)return;if("leave"===a&&u)return;if("number"==typeof p){return Gn(p,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(h),i=Kn(r,o)+Kn(e,t);return i?Gn(i,n.stopAnimation):void 0}),[n,p,h,u,a]);const f=Yn(d,(o=Pe(o,(e=>(0,ze.jsx)(dn,{value:n,children:e})),[n])).hidden,r),m=f?w(y({},o.style),{display:"none"}):o.style;return o=w(y({id:s,"data-enter":"enter"===a?"":void 0,"data-leave":"leave"===a?"":void 0,hidden:f},o),{ref:_e(s?n.setContentElement:null,o.ref),style:m})})),Xn=Le((e=>Be("div",qn(e)))),Zn=Le((e=>{var t=e,{unmountOnHide:n}=t,r=_(t,["unmountOnHide"]);const o=an();return!1===Vt(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,ze.jsx)(Xn,y({},r))}));function Jn({store:e,backdrop:t,backdropProps:n,alwaysVisible:r,hidden:o}){const i=(0,c.useRef)(null),s=Xt({disclosure:e}),a=e.useState("contentElement");be((()=>{const e=i.current,t=a;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[a]),be((()=>{const e=null==a?void 0:a.id;if(!e)return;const t=i.current;return t?Hn(t,e):void 0}),[a]),null!=o&&(n=w(y({},n),{hidden:o}));const l=qn(w(y({store:s,role:"presentation","data-backdrop":(null==a?void 0:a.id)||"",alwaysVisible:r},n),{ref:_e(null==n?void 0:n.ref,i),style:y({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,c.isValidElement)(t))return(0,ze.jsx)(on,w(y({},l),{render:t}));const u="boolean"!=typeof t?t:"div";return(0,ze.jsx)(on,w(y({},l),{render:(0,ze.jsx)(u,{})}))}function Qn(e){return Dn(e,"aria-hidden","true")}function er(e,t){if(!("style"in e))return N;if("inert"in HTMLElement.prototype)return On(e,"inert",!0);return O(...Ke(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Y(t,e))))?N:Dn(e,"tabindex","-1"))),Qn(e),zn(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}const tr=window.ReactDOM;function nr(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=je(),s=(0,c.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=G(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,c.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=G(n);if(s())return o.setAttribute(e,t),()=>o.removeAttribute(e);const a=new MutationObserver((()=>(0,tr.flushSync)(i)));return a.observe(o,{attributeFilter:[e]}),()=>a.disconnect()}),[o,r,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,c.useEffect)((()=>{if(!r())return;if(!e)return;const t=G(e),n=function(e){return G(e).defaultView||window}(e),{documentElement:o,body:i}=t,s=o.style.getPropertyValue("--scrollbar-width"),a=s?parseInt(s):n.innerWidth-o.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),c=ie()&&!ae();return O((d="--scrollbar-width",p=`${a}px`,(u=o)?An(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,p),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:s}=n,c=null!=(e=null==s?void 0:s.offsetLeft)?e:0,u=null!=(t=null==s?void 0:s.offsetTop)?t:0,d=zn(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${a}px`});return()=>{d(),n.scrollTo(r,o)}})():zn(i,{overflow:"hidden",[l]:`${a}px`}));var u,d,p}),[r,e])}var rr=(0,c.createContext)({});function or({store:e,type:t,listener:n,capture:r,domReady:o}){const i=we(n),s=e.useState("open"),a=(0,c.useRef)(!1);be((()=>{if(!s)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{a.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,o]),(0,c.useEffect)((()=>{if(!s)return;return fe(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Y(G(e).body,e)}(o))return;if(Y(n,o))return;if(function(e,t){if(!e)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=G(e).getElementById(n);if(t)return Y(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(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))return;a.current&&!Wn(o,n.id)||i(t)}),r)}),[s,r])}function ir(e,t){return"function"==typeof e?e(t):!!e}function sr(e,t,n){const r=function(e){const t=(0,c.useRef)();return(0,c.useEffect)((()=>{if(e)return fe("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),o={store:e,domReady:n,capture:!0};or(w(y({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&Q(i)&&Wn(i,null==o?void 0:o.id)&&ir(t,n)&&e.hide()}})),or(w(y({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==G(r)&&ir(t,n)&&e.hide()}})),or(w(y({},o),{type:"contextmenu",listener:n=>{ir(t,n)&&e.hide()}}))}var ar=Ve((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=_(t,["autoFocusOnShow"]);return r=Pe(r,(e=>(0,ze.jsx)(p.Provider,{value:n,children:e})),[n])}));Le((e=>Be("div",ar(e))));var lr=(0,c.createContext)(0);function cr({level:e,children:t}){const n=(0,c.useContext)(lr),r=Math.max(Math.min(e||n+1,6),1);return(0,ze.jsx)(lr.Provider,{value:r,children:t})}var ur=Ve((e=>e=w(y({},e),{style:y({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Le((e=>Be("span",ur(e))));var dr=Ve((e=>(e=w(y({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:y({position:"fixed",top:0,left:0},e.style)}),e=ur(e)))),pr=Le((e=>Be("span",dr(e))));var hr=(0,c.createContext)(null);function fr(e){queueMicrotask((()=>{null==e||e.focus()}))}var mr=Ve((e=>{var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:s=!0}=t,a=_(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const l=(0,c.useRef)(null),u=_e(l,a.ref),d=(0,c.useContext)(hr),[p,h]=(0,c.useState)(null),[f,m]=(0,c.useState)(null),g=(0,c.useRef)(null),v=(0,c.useRef)(null),b=(0,c.useRef)(null),x=(0,c.useRef)(null);return be((()=>{const e=l.current;if(!e||!s)return void h(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:G(e).createElement("div")}(e,o);if(!t)return void h(null);const n=t.isConnected;if(!n){const n=d||function(e){return G(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)}`}()),h(t),$(i,t),n?void 0:()=>{t.remove(),$(i,null)}}),[s,o,d,i]),be((()=>{if(!n)return;if(!r)return;const e=G(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),m(e),()=>{e.remove(),m(null)}}),[n,r]),(0,c.useEffect)((()=>{if(!p)return;if(!n)return;let e=0;const t=t=>{if(!pe(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),t.forEach(n)}(p);e=requestAnimationFrame((()=>{!function(e,t){Ke(e,t).forEach(et)}(p,!0)}))};return p.addEventListener("focusin",t,!0),p.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),p.removeEventListener("focusin",t,!0),p.removeEventListener("focusout",t,!0)}}),[p,n]),a=Pe(a,(e=>{if(e=(0,ze.jsx)(hr.Provider,{value:p||d,children:e}),!s)return e;if(!p)return(0,ze.jsx)("span",{ref:u,id:a.id,style:{position:"fixed"},hidden:!0});e=(0,ze.jsxs)(ze.Fragment,{children:[n&&p&&(0,ze.jsx)(pr,{ref:v,className:"__focus-trap-inner-before",onFocus:e=>{pe(e,p)?fr(qe()):fr(g.current)}}),e,n&&p&&(0,ze.jsx)(pr,{ref:b,className:"__focus-trap-inner-after",onFocus:e=>{pe(e,p)?fr(Xe()):fr(x.current)}})]}),p&&(e=(0,tr.createPortal)(e,p));let t=(0,ze.jsxs)(ze.Fragment,{children:[n&&p&&(0,ze.jsx)(pr,{ref:g,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===x.current)&&pe(e,p)?fr(v.current):fr(Xe())}}),n&&(0,ze.jsx)("span",{"aria-owns":null==p?void 0:p.id,style:{position:"fixed"}}),n&&p&&(0,ze.jsx)(pr,{ref:x,className:"__focus-trap-outer-after",onFocus:e=>{if(pe(e,p))fr(b.current);else{const e=qe();if(e===v.current)return void requestAnimationFrame((()=>{var e;return null==(e=qe())?void 0:e.focus()}));fr(e)}}})]});return f&&n&&(t=(0,tr.createPortal)(t,f)),(0,ze.jsxs)(ze.Fragment,{children:[t,e]})}),[p,d,s,a.id,n,f]),a=w(y({},a),{ref:u})}));Le((e=>Be("div",mr(e))));var gr=se();function vr(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?We(n)?n:null:n:null}var br=Ve((e=>{var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:s=!0,portal:a=!!s,backdrop:l=!!s,backdropProps:u,hideOnEscape:d=!0,hideOnInteractOutside:p=!0,getPersistentElements:h,preventBodyScroll:f=!!s,autoFocusOnShow:m=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:x}=t,S=_(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const C=cn(),k=(0,c.useRef)(null),j=function(e={}){const[t,n]=Ht(Zt,e);return Jt(t,n,e)}({store:n||C,open:r,setOpen(e){if(e)return;const t=k.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&&j.setOpen(!0)}}),{portalRef:E,domReady:P}=Te(a,S.portalRef),T=S.preserveTabOrder,I=j.useState((e=>T&&!s&&e.mounted)),M=Se(S.id),R=j.useState("open"),N=j.useState("mounted"),A=j.useState("contentElement"),D=Yn(N,S.hidden,S.alwaysVisible);nr(A,M,f&&!D),sr(j,p,P);const{wrapElement:z,nestedDialogs:L}=function(e){const t=(0,c.useContext)(rr),[n,r]=(0,c.useState)([]),o=(0,c.useCallback)((e=>{var n;return r((t=>[...t,e])),O(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);be((()=>At(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,c.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,c.useCallback)((e=>(0,ze.jsx)(rr.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(j);S=Pe(S,z,[z]),be((()=>{if(!R)return;const e=k.current,t=K(e,!0);t&&"BODY"!==t.tagName&&(e&&Y(e,t)||j.setDisclosureElement(t))}),[j,R]),gr&&(0,c.useEffect)((()=>{if(!N)return;const{disclosureElement:e}=j.getState();if(!e)return;if(!X(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),he(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Qe(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[j,N]),(0,c.useEffect)((()=>{if(!s)return;if(!N)return;if(!P)return;const e=k.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=G(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,j.hide)}),[j,s,N,P]),be((()=>{if(R)return;if(!N)return;if(!P)return;const e=k.current;return e?er(e):void 0}),[R,N,P]);const F=R&&P;be((()=>{if(!M)return;if(!F)return;const e=k.current;return function(e,t){const{body:n}=G(t[0]),r=[];return Vn(e,t,(t=>{r.push(On(t,Fn(e),!0))})),O(On(n,Fn(e),!0),(()=>r.forEach((e=>e()))))}(M,[e])}),[M,F]);const B=we(h);be((()=>{if(!M)return;if(!F)return;const{disclosureElement:e}=j.getState(),t=[k.current,...B()||[],...L.map((e=>e.getState().contentElement))];return s?O(Un(M,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Vn(e,t,(e=>{Rn(e,...r)||n.unshift(er(e,t))})),()=>{n.forEach((e=>e()))}}(M,t)):Un(M,[e,...t])}),[M,j,F,B,L,s]);const V=!!m,$=Ee(m),[H,W]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(!R)return;if(!V)return;if(!P)return;if(!(null==A?void 0:A.isConnected))return;const e=vr(v,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||Ye(A,!0,a&&I)||A,t=We(e);$(t?e:null)&&(W(!0),queueMicrotask((()=>{e.focus(),gr&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[R,V,P,A,v,a,I,$]);const U=!!g,q=Ee(g),[Z,J]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(R)return J(!0),()=>J(!1)}),[R]);const Q=(0,c.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=j.getState();if(function(e){const t=K();return!(!t||e&&Y(e,t)||!We(t))}(e))return;let r=vr(b)||n;if(null==r?void 0:r.id){const e=G(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!We(r)){const e=ee(r,"[data-dialog]");if(e&&e.id){const t=G(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&We(r);o||!t?q(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>Q(e,!1)))}),[j,b,q]);be((()=>{if(R)return;if(!Z)return;if(!U)return;const e=k.current;Q(e)}),[R,Z,P,U,Q]),(0,c.useEffect)((()=>{if(!Z)return;if(!U)return;const e=k.current;return()=>Q(e)}),[Z,U,Q]);const te=Ee(d);(0,c.useEffect)((()=>{if(!P)return;if(!N)return;return fe("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=k.current;if(!t)return;if(Wn(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=j.getState();("BODY"===n.tagName||Y(t,n)||!r||Y(r,n))&&te(e)&&j.hide()}),!0)}),[j,P,N,te]);const ne=(S=Pe(S,(e=>(0,ze.jsx)(cr,{level:s?1:void 0,children:e})),[s])).hidden,re=S.alwaysVisible;S=Pe(S,(e=>l?(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Jn,{store:j,backdrop:l,backdropProps:u,hidden:ne,alwaysVisible:re}),e]}):e),[j,l,u,ne,re]);const[oe,ie]=(0,c.useState)(),[se,ae]=(0,c.useState)();return S=Pe(S,(e=>(0,ze.jsx)(dn,{value:j,children:(0,ze.jsx)(pn.Provider,{value:ie,children:(0,ze.jsx)(hn.Provider,{value:ae,children:e})})})),[j]),S=w(y({id:M,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":oe,"aria-describedby":se},S),{ref:_e(k,S.ref)}),S=ar(w(y({},S),{autoFocusOnShow:H})),S=qn(y({store:j},S)),S=ct(w(y({},S),{focusable:i})),S=mr(w(y({portal:a},S),{portalRef:E,preserveTabOrder:I}))}));function xr(e,t=cn){return Le((n=>{const r=t();return Vt(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,ze.jsx)(e,y({},n)):null}))}xr(Le((e=>Be("div",br(e)))),cn);const yr=Math.min,wr=Math.max,_r=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),Sr={start:"end",end:"start"};function Cr(e,t,n){return wr(e,yr(t,n))}function kr(e,t){return"function"==typeof e?e(t):e}function jr(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function Pr(e){return"x"===e?"y":"x"}function Tr(e){return"y"===e?"height":"width"}function Ir(e){return["top","bottom"].includes(jr(e))?"y":"x"}function Mr(e){return Pr(Ir(e))}function Rr(e){return e.replace(/start|end/g,(e=>Sr[e]))}function Nr(e){return e.replace(/left|right|bottom|top/g,(e=>_r[e]))}function Ar(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 Dr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Or(e,t,n){let{reference:r,floating:o}=e;const i=Ir(t),s=Mr(t),a=Tr(s),l=jr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Er(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1)}return h}async function zr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=kr(t,e),f=Ar(h),m=a[p?"floating"===d?"reference":"floating":d],g=Dr(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(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...s.floating,x:r,y:o}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Dr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+f.top)/x.y,bottom:(y.bottom-g.bottom+f.bottom)/x.y,left:(g.left-y.left+f.left)/x.x,right:(y.right-g.right+f.right)/x.x}}const Lr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=jr(n),a=Er(n),l="y"===Ir(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=kr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof f&&(h="end"===a?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Fr=Math.min,Br=Math.max,Vr=Math.round,$r=Math.floor,Hr=e=>({x:e,y:e});function Wr(e){return Kr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ur(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Gr(e){var t;return null==(t=(Kr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kr(e){return e instanceof Node||e instanceof Ur(e).Node}function Yr(e){return e instanceof Element||e instanceof Ur(e).Element}function qr(e){return e instanceof HTMLElement||e instanceof Ur(e).HTMLElement}function Xr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ur(e).ShadowRoot)}function Zr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jr(e){return["table","td","th"].includes(Wr(e))}function Qr(e){const t=eo(),n=no(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 eo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(Wr(e))}function no(e){return Ur(e).getComputedStyle(e)}function ro(e){return Yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oo(e){if("html"===Wr(e))return e;const t=e.assignedSlot||e.parentNode||Xr(e)&&e.host||Gr(e);return Xr(t)?t.host:t}function io(e){const t=oo(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:qr(t)&&Zr(t)?t:io(t)}function so(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=io(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ur(o);return i?t.concat(s,s.visualViewport||[],Zr(o)?o:[],s.frameElement&&n?so(s.frameElement):[]):t.concat(o,so(o,[],n))}function ao(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qr(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Vr(n)!==i||Vr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function lo(e){return Yr(e)?e:e.contextElement}function co(e){const t=lo(e);if(!qr(t))return Hr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ao(t);let s=(i?Vr(n.width):n.width)/r,a=(i?Vr(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const uo=Hr(0);function po(e){const t=Ur(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uo}function ho(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=lo(e);let s=Hr(1);t&&(r?Yr(r)&&(s=co(r)):s=co(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ur(e))&&t}(i,n,r)?po(i):Hr(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=Ur(i),t=r&&Yr(r)?Ur(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=co(o),t=o.getBoundingClientRect(),r=no(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=Ur(o),o=n.frameElement}}return Dr({width:u,height:d,x:l,y:c})}const fo=[":popover-open",":modal"];function mo(e){return fo.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function go(e){return ho(Gr(e)).left+ro(e).scrollLeft}function vo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ur(e),r=Gr(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Gr(e),n=ro(e),r=e.ownerDocument.body,o=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+go(e);const a=-n.scrollTop;return"rtl"===no(r).direction&&(s+=Br(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Gr(e));else if(Yr(t))r=function(e,t){const n=ho(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=qr(e)?co(e):Hr(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={...t,x:t.x-n.x,y:t.y-n.y}}return Dr(r)}function bo(e,t){const n=oo(e);return!(n===t||!Yr(n)||to(n))&&("fixed"===no(n).position||bo(n,t))}function xo(e,t,n){const r=qr(t),o=Gr(t),i="fixed"===n,s=ho(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Hr(0);if(r||!r&&!i)if(("body"!==Wr(t)||Zr(o))&&(a=ro(t)),r){const e=ho(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=go(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function yo(e,t){return qr(e)&&"fixed"!==no(e).position?t?t(e):e.offsetParent:null}function wo(e,t){const n=Ur(e);if(!qr(e)||mo(e))return n;let r=yo(e,t);for(;r&&Jr(r)&&"static"===no(r).position;)r=yo(r,t);return r&&("html"===Wr(r)||"body"===Wr(r)&&"static"===no(r).position&&!Qr(r))?n:r||function(e){let t=oo(e);for(;qr(t)&&!to(t);){if(Qr(t))return t;t=oo(t)}return null}(e)||n}const _o={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Gr(r),a=!!t&&mo(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Hr(1);const u=Hr(0),d=qr(r);if((d||!d&&!i)&&(("body"!==Wr(r)||Zr(s))&&(l=ro(r)),qr(r))){const e=ho(r);c=co(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Gr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=so(e,[],!1).filter((e=>Yr(e)&&"body"!==Wr(e))),o=null;const i="fixed"===no(e).position;let s=i?oo(e):e;for(;Yr(s)&&!to(s);){const t=no(s),n=Qr(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Zr(s)&&!n&&bo(e,s))?r=r.filter((e=>e!==s)):o=t,s=oo(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=vo(t,n,o);return e.top=Br(r.top,e.top),e.right=Fr(r.right,e.right),e.bottom=Fr(r.bottom,e.bottom),e.left=Br(r.left,e.left),e}),vo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wo,getElementRects:async function(e){const t=this.getOffsetParent||wo,n=this.getDimensions;return{reference:xo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ao(e);return{width:t,height:n}},getScale:co,isElement:Yr,isRTL:function(e){return"rtl"===no(e).direction}};function So(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=lo(e),u=o||i?[...c?so(c):[],...so(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=Gr(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h={rootMargin:-$r(u)+"px "+-$r(o.clientWidth-(c+d))+"px "+-$r(o.clientHeight-(u+p))+"px "+-$r(c)+"px",threshold:Br(0,Fr(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}f=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let p,h=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?ho(e):null;return l&&function t(){const r=ho(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Co=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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=kr(e,t),c={x:n,y:r},u=await zr(t,l),d=Ir(jr(o)),p=Pr(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=Cr(h+u["y"===p?"top":"left"],h,h-u[e])}if(s){const e="y"===d?"bottom":"right";f=Cr(f+u["y"===d?"top":"left"],f,f-u[e])}const m=a.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ko=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=kr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=jr(o),b=jr(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=p||(b||!m?[Nr(a)]:function(e){const t=Nr(e);return[Rr(e),t,Rr(t)]}(a));p||"none"===f||y.push(...function(e,t,n,r){const o=Er(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(jr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Rr)))),i}(a,m,f,x));const w=[a,...y],_=await zr(t,g),S=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(_[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Er(e),o=Mr(e),i=Tr(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Nr(s)),[s,Nr(s)]}(o,s,x);S.push(_[e[0]],_[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var k,j;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(j=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(h){case"bestFit":{var E;const e=null==(E=C.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:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},jo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=(()=>{}),...a}=kr(e,t),l=await zr(t,a),c=jr(n),u=Er(n),d="y"===Ir(n),{width:p,height:h}=r.floating;let f,m;"top"===c||"bottom"===c?(f=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,f="end"===u?"top":"bottom");const g=h-l[f],v=p-l[m],b=!t.middlewareData.shift;let x=g,y=v;if(d){const e=p-l.left-l.right;y=u||b?yr(v,e):e}else{const e=h-l.top-l.bottom;x=u||b?yr(g,e):e}if(b&&!u){const e=wr(l.left,0),t=wr(l.right,0),n=wr(l.top,0),r=wr(l.bottom,0);d?y=p-2*(0!==e||0!==t?e+t:wr(l.left,l.right)):x=h-2*(0!==n||0!==r?n+r:wr(l.top,l.bottom))}await s({...t,availableWidth:y,availableHeight:x});const w=await o.getDimensions(i.floating);return p!==w.width||h!==w.height?{reset:{rects:!0}}:{}}}},Eo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=kr(e,t)||{};if(null==c)return{};const d=Ar(u),p={x:n,y:r},h=Mr(o),f=Tr(h),m=await s.getDimensions(c),g="y"===h,v=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",y=i.reference[f]+i.reference[h]-p[h]-i.floating[f],w=p[h]-i.reference[h],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=_?_[x]:0;S&&await(null==s.isElement?void 0:s.isElement(_))||(S=a.floating[x]||i.floating[f]);const C=y/2-w/2,k=S/2-m[f]/2-1,j=yr(d[v],k),E=yr(d[b],k),P=j,T=S-m[f]-E,I=S/2-m[f]/2+C,M=Cr(P,I,T),R=!l.arrow&&null!=Er(o)&&I!=M&&i.reference[f]/2-(I<P?j:E)-m[f]/2<0,N=R?I<P?I-P:I-T:0;return{[h]:p[h]+N,data:{[h]:M,centerOffset:I-M-N,...R&&{alignmentOffset:N}},reset:R}}}),Po=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=kr(e,t),u={x:n,y:r},d=Ir(o),p=Pr(d);let h=u[p],f=u[d];const m=kr(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,b;const e="y"===p?"width":"height",t=["top","left"].includes(jr(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},To=(e,t,n)=>{const r=new Map,o={platform:_o,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Or(c,r,l),p=r,h={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:v,data:b,reset:x}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[i]:{...h[i],...b}},x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Or(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};function Io(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 w(y({},o),{toJSON:()=>o})}function Mo(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 Io();const{x:t,y:n,width:r,height:o}=e;return Io(t,n,r,o)}(r):n.getBoundingClientRect()}}}function Ro(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function No(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ao(e,t){return Lr((({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}}))}function Do(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return L(!t||t.every(Ro),!1),ko({padding:e.overflowPadding,fallbackPlacements:t})}function Oo(e){if(e.slide||e.overlap)return Co({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Po()})}function zo(e){return jo({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,s=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${s}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${s}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function Lo(e,t){if(e)return Eo({element:e,padding:t.arrowPadding})}var Fo=Ve((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:s=!0,wrapperProps:a,fixed:l=!1,flip:u=!0,shift:d=0,slide:p=!0,overlap:h=!1,sameWidth:f=!1,fitViewport:m=!1,gutter:g,arrowPadding:v=4,overflowPadding:b=8,getAnchorRect:x,updatePosition:S}=t,C=_(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const k=mn();L(n=n||k,!1);const j=n.useState("arrowElement"),E=n.useState("anchorElement"),P=n.useState("disclosureElement"),T=n.useState("popoverElement"),I=n.useState("contentElement"),M=n.useState("placement"),R=n.useState("mounted"),N=n.useState("rendered"),[A,D]=(0,c.useState)(!1),{portalRef:O,domReady:z}=Te(o,C.portalRef),F=we(x),B=we(S),V=!!S;be((()=>{if(!(null==T?void 0:T.isConnected))return;T.style.setProperty("--popover-overflow-padding",`${b}px`);const e=Mo(E,F),t=async()=>{if(!R)return;const t=[Ao(j,{gutter:g,shift:d}),Do({flip:u,overflowPadding:b}),Oo({slide:p,shift:d,overlap:h,overflowPadding:b}),Lo(j,{arrowPadding:v}),zo({sameWidth:f,fitViewport:m,overflowPadding:b})],r=await To(e,T,{placement:M,strategy:l?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),D(!0);const o=No(r.x),i=No(r.y);if(Object.assign(T.style,{top:"0",left:"0",transform:`translate3d(${o}px,${i}px,0)`}),j&&r.middlewareData.arrow){const{x:e,y:t}=r.middlewareData.arrow,n=r.placement.split("-")[0];Object.assign(j.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[n]:"100%"})}},r=So(e,T,(async()=>{V?(await B({updatePosition:t}),D(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{D(!1),r()}}),[n,N,T,j,E,T,M,R,z,l,u,d,p,h,f,m,g,v,b,F,V,B]),be((()=>{if(!R)return;if(!z)return;if(!(null==T?void 0:T.isConnected))return;if(!(null==I?void 0:I.isConnected))return;const e=()=>{T.style.zIndex=getComputedStyle(I).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[R,z,T,I]);const $=l?"fixed":"absolute";return C=Pe(C,(e=>(0,ze.jsx)("div",w(y({role:"presentation"},a),{style:y({position:$,top:0,left:0,width:"max-content"},null==a?void 0:a.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,$,a]),C=Pe(C,(e=>(0,ze.jsx)(vn,{value:n,children:e})),[n]),C=w(y({"data-placing":A?void 0:""},C),{style:y({position:"relative"},C.style)}),C=br(w(y({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:P||E,autoFocusOnShow:A&&s},C),{portalRef:O}))}));xr(Le((e=>Be("div",Fo(e)))),mn);function Bo(e,t,n,r){return!!Je(t)||!!e&&(!!Y(t,e)||(!(!n||!Y(n,e))||!!(null==r?void 0:r.some((t=>Bo(e,t,n))))))}var Vo=(0,c.createContext)(null),$o=Ve((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:a=!!s}=t,l=_(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=xn();L(n=n||u,!1);const d=(0,c.useRef)(null),[p,h]=(0,c.useState)([]),f=(0,c.useRef)(0),m=(0,c.useRef)(null),{portalRef:g,domReady:v}=Te(o,l.portalRef),b=!!s,x=Ee(s),S=!!a,C=Ee(a),k=n.useState("open"),j=n.useState("mounted");(0,c.useEffect)((()=>{if(!v)return;if(!j)return;if(!b&&!S)return;const e=d.current;if(!e)return;return O(fe("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),s=m.current,[a]=t.composedPath(),l=r;if(Bo(a,e,l,p))return m.current=a&&l&&Y(l,a)?Tn(t):null,window.clearTimeout(f.current),void(f.current=0);if(!f.current){if(s){const n=Tn(t);if(In(n,Mn(e,s))){if(m.current=n,!C(t))return;return t.preventDefault(),void t.stopPropagation()}}x(t)&&(f.current=window.setTimeout((()=>{f.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(f.current)))}),[n,v,j,b,S,p,C,x]),(0,c.useEffect)((()=>{if(!v)return;if(!j)return;if(!S)return;const e=e=>{const t=d.current;if(!t)return;const n=m.current;if(!n)return;const r=Mn(t,n);if(In(Tn(e),r)){if(!C(e))return;e.preventDefault(),e.stopPropagation()}};return O(fe("mouseenter",e,!0),fe("mouseover",e,!0),fe("mouseout",e,!0),fe("mouseleave",e,!0))}),[v,j,S,C]),(0,c.useEffect)((()=>{v&&(k||null==n||n.setAutoFocusOnShow(!1))}),[n,v,k]);const E=ye(k);(0,c.useEffect)((()=>{if(v)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,v]);const P=(0,c.useContext)(Vo);be((()=>{if(r)return;if(!o)return;if(!j)return;if(!v)return;const e=d.current;return e?null==P?void 0:P(e):void 0}),[r,o,j,v]);const T=(0,c.useCallback)((e=>{h((t=>[...t,e]));const t=null==P?void 0:P(e);return()=>{h((t=>t.filter((t=>t!==e)))),null==t||t()}}),[P]);l=Pe(l,(e=>(0,ze.jsx)(wn,{value:n,children:(0,ze.jsx)(Vo.Provider,{value:T,children:e})})),[n,T]),l=w(y({},l),{ref:_e(d,l.ref)}),l=function(e){var t=e,{store:n}=t,r=_(t,["store"]);const[o,i]=(0,c.useState)(!1),s=n.useState("mounted");(0,c.useEffect)((()=>{s||i(!1)}),[s]);const a=r.onFocus,l=we((e=>{null==a||a(e),e.defaultPrevented||i(!0)})),u=(0,c.useRef)(null);return(0,c.useEffect)((()=>At(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),w(y({autoFocusOnHide:o,finalFocus:u},r),{onFocus:l})}(y({store:n},l));const I=n.useState((e=>r||e.autoFocusOnShow));return l=Fo(w(y({store:n,modal:r,portal:o,autoFocusOnShow:I},l),{portalRef:g,hideOnEscape:e=>!F(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));xr(Le((e=>Be("div",$o(e)))),xn);var Ho=Ve((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:a=!0}=t,l=_(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Cn();L(n=n||c,!1),l=Pe(l,(e=>(0,ze.jsx)(kn,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=y({role:u},l),l=$o(w(y({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(F(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(F(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Y(t,e.target)}}))})),Wo=xr(Le((e=>Be("div",Ho(e)))),Cn);const Uo=window.wp.element,Go=window.wp.deprecated;var Ko=o.n(Go);const Yo=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,ze.jsx)("span",{className:n,"aria-label":o,children:r})},qo={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"},Xo=e=>{var t;return null!==(t=qo[e])&&void 0!==t?t:"bottom"},Zo={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}};const Jo=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Qo=(0,Uo.createContext)({isNestedInTooltip:!1}),ei=700,ti={isNestedInTooltip:!0};const ni=(0,Uo.forwardRef)((function(e,t){const{children:n,delay:r=ei,hideOnClick:o=!0,placement:i,position:s,shortcut:a,text:c,...u}=e,{isNestedInTooltip:d}=(0,Uo.useContext)(Qo),p=(0,l.useInstanceId)(ni,"tooltip"),h=c||a?p:void 0,f=1===Uo.Children.count(n);let m;void 0!==i?m=i:void 0!==s&&(m=Xo(s),Ko()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),m=m||"bottom";const g=rn({placement:m,showTimeout:r});return d?f?(0,ze.jsx)(on,{...u,render:n}):n:(0,ze.jsxs)(Qo.Provider,{value:ti,children:[(0,ze.jsx)(Pn,{onClick:o?g.hide:void 0,store:g,render:f?n:void 0,ref:t,children:f?void 0:n}),f&&(c||a)&&(0,ze.jsxs)(Wo,{...u,className:"components-tooltip",unmountOnHide:!0,gutter:4,id:h,overflowPadding:.5,store:g,children:[c,a&&(0,ze.jsx)(Yo,{className:c?"components-tooltip__shortcut":"",shortcut:a})]})]})})),ri=ni;window.wp.warning;var oi=o(66),ii=o.n(oi),si=o(7734),ai=o.n(si); /*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function li(e){return"[object Object]"===Object.prototype.toString.call(e)}function ci(e){var t,n;return!1!==li(e)&&(void 0===(t=e.constructor)||!1!==li(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const ui=function(e,t){const n=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},di=(0,Uo.createContext)({}),fi=()=>(0,Uo.useContext)(di);const mi=(0,Uo.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=fi(),n=(0,Uo.useRef)(e);return ui((()=>{si()(n.current,e)&&n.current}),[e]),(0,Uo.useMemo)((()=>ii()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ci})),[t,e])}({value:t});return(0,r.createElement)(di.Provider,{value:n},e)})),pi="data-wp-component",hi="data-wp-c16t",gi="__contextSystemKey__";var vi=function(){return vi=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},vi.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function bi(e){return e.toLowerCase()}var yi=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],xi=/[^A-Z0-9]+/gi;function wi(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Ei(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?yi:n,o=t.stripRegexp,i=void 0===o?xi:o,a=t.transform,s=void 0===a?bi:a,l=t.delimiter,c=void 0===l?" ":l,u=wi(wi(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}(e,vi({delimiter:"."},t))}function _i(e,t){return void 0===t&&(t={}),Ei(e,vi({delimiter:"-"},t))}function Si(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const Ci=Si((function(e){return`components-${_i(e)}`}));var ki=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){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Pi=Math.abs,Ti=String.fromCharCode,Ii=Object.assign;function Ri(e){return e.trim()}function Mi(e,t,n){return e.replace(t,n)}function Ni(e,t){return e.indexOf(t)}function Di(e,t){return 0|e.charCodeAt(t)}function Ai(e,t,n){return e.slice(t,n)}function Oi(e){return e.length}function zi(e){return e.length}function Li(e,t){return t.push(e),e}var Fi=1,Bi=1,ji=0,Vi=0,Hi=0,$i="";function Wi(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Fi,column:Bi,length:a,return:""}}function Ui(e,t){return Ii(Wi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gi(){return Hi=Vi>0?Di($i,--Vi):0,Bi--,10===Hi&&(Bi=1,Fi--),Hi}function qi(){return Hi=Vi<ji?Di($i,Vi++):0,Bi++,10===Hi&&(Bi=1,Fi++),Hi}function Yi(){return Di($i,Vi)}function Ki(){return Vi}function Xi(e,t){return Ai($i,e,t)}function Zi(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 Ji(e){return Fi=Bi=1,ji=Oi($i=e),Vi=0,[]}function Qi(e){return $i="",e}function ea(e){return Ri(Xi(Vi-1,ra(91===e?e+2:40===e?e+1:e)))}function ta(e){for(;(Hi=Yi())&&Hi<33;)qi();return Zi(e)>2||Zi(Hi)>3?"":" "}function na(e,t){for(;--t&&qi()&&!(Hi<48||Hi>102||Hi>57&&Hi<65||Hi>70&&Hi<97););return Xi(e,Ki()+(t<6&&32==Yi()&&32==qi()))}function ra(e){for(;qi();)switch(Hi){case e:return Vi;case 34:case 39:34!==e&&39!==e&&ra(Hi);break;case 40:41===e&&ra(e);break;case 92:qi()}return Vi}function oa(e,t){for(;qi()&&e+Hi!==57&&(e+Hi!==84||47!==Yi()););return"/*"+Xi(t,Vi-1)+"*"+Ti(47===e?e:qi())}function ia(e){for(;!Zi(Yi());)qi();return Xi(e,Vi)}var aa="-ms-",sa="-moz-",la="-webkit-",ca="comm",ua="rule",da="decl",fa="@keyframes";function ma(e,t){for(var n="",r=zi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function pa(e,t,n,r){switch(e.type){case"@import":case da:return e.return=e.return||e.value;case ca:return"";case fa:return e.return=e.value+"{"+ma(e.children,r)+"}";case ua:e.value=e.props.join(",")}return Oi(n=ma(e.children,r))?e.return=e.value+"{"+n+"}":""}function ha(e){return Qi(ga("",null,null,null,[""],e=Ji(e),0,[0],e))}function ga(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,m=0,p=0,h=1,g=1,v=1,b=0,y="",x=o,w=i,E=r,_=y;g;)switch(p=b,b=qi()){case 40:if(108!=p&&58==Di(_,d-1)){-1!=Ni(_+=Mi(ea(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=ea(b);break;case 9:case 10:case 13:case 32:_+=ta(p);break;case 92:_+=na(Ki()-1,7);continue;case 47:switch(Yi()){case 42:case 47:Li(ba(oa(qi(),Ki()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Oi(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:m>0&&Oi(_)-d&&Li(m>32?ya(_+";",r,n,d-1):ya(Mi(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Li(E=va(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)ga(_,t,E,E,x,i,d,s,w);else switch(99===f&&110===Di(_,3)?100:f){case 100:case 109:case 115:ga(e,E,E,r&&Li(va(e,E,E,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:ga(_,E,E,E,[""],w,0,s,w)}}c=u=m=0,h=v=1,y=_="",d=a;break;case 58:d=1+Oi(_),m=p;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Gi())continue;switch(_+=Ti(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Oi(_)-1)*v,v=1;break;case 64:45===Yi()&&(_+=ea(qi())),f=Yi(),u=d=Oi(y=_+=ia(Ki())),b++;break;case 45:45===p&&2==Oi(_)&&(h=0)}}return i}function va(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],m=zi(f),p=0,h=0,g=0;p<r;++p)for(var v=0,b=Ai(e,d+1,d=Pi(h=a[p])),y=e;v<m;++v)(y=Ri(h>0?f[v]+" "+b:Mi(b,/&\f/g,f[v])))&&(l[g++]=y);return Wi(e,t,n,0===o?ua:s,l,c,u)}function ba(e,t,n){return Wi(e,t,n,ca,Ti(Hi),Ai(e,2,-2),0)}function ya(e,t,n,r){return Wi(e,t,n,da,Ai(e,0,r),Ai(e,r+1,-1),r)}var xa=function(e,t,n){for(var r=0,o=0;r=o,o=Yi(),38===r&&12===o&&(t[n]=1),!Zi(o);)qi();return Xi(e,Vi)},wa=function(e,t){return Qi(function(e,t){var n=-1,r=44;do{switch(Zi(r)){case 0:38===r&&12===Yi()&&(t[n]=1),e[n]+=xa(Vi-1,t,n);break;case 2:e[n]+=ea(r);break;case 4:if(44===r){e[++n]=58===Yi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ti(r)}}while(r=qi());return e}(Ji(e),t))},Ea=new WeakMap,_a=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)||Ea.get(n))&&!r){Ea.set(e,!0);for(var o=[],i=wa(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Sa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ca(e,t){switch(function(e,t){return 45^Di(e,0)?(((t<<2^Di(e,0))<<2^Di(e,1))<<2^Di(e,2))<<2^Di(e,3):0}(e,t)){case 5103:return la+"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 la+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return la+e+sa+e+aa+e+e;case 6828:case 4268:return la+e+aa+e+e;case 6165:return la+e+aa+"flex-"+e+e;case 5187:return la+e+Mi(e,/(\w+).+(:[^]+)/,la+"box-$1$2"+aa+"flex-$1$2")+e;case 5443:return la+e+aa+"flex-item-"+Mi(e,/flex-|-self/,"")+e;case 4675:return la+e+aa+"flex-line-pack"+Mi(e,/align-content|flex-|-self/,"")+e;case 5548:return la+e+aa+Mi(e,"shrink","negative")+e;case 5292:return la+e+aa+Mi(e,"basis","preferred-size")+e;case 6060:return la+"box-"+Mi(e,"-grow","")+la+e+aa+Mi(e,"grow","positive")+e;case 4554:return la+Mi(e,/([^-])(transform)/g,"$1"+la+"$2")+e;case 6187:return Mi(Mi(Mi(e,/(zoom-|grab)/,la+"$1"),/(image-set)/,la+"$1"),e,"")+e;case 5495:case 3959:return Mi(e,/(image-set\([^]*)/,la+"$1$`$1");case 4968:return Mi(Mi(e,/(.+:)(flex-)?(.*)/,la+"box-pack:$3"+aa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+la+e+e;case 4095:case 3583:case 4068:case 2532:return Mi(e,/(.+)-inline(.+)/,la+"$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(Oi(e)-1-t>6)switch(Di(e,t+1)){case 109:if(45!==Di(e,t+4))break;case 102:return Mi(e,/(.+:)(.+)-([^]+)/,"$1"+la+"$2-$3$1"+sa+(108==Di(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ni(e,"stretch")?Ca(Mi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Di(e,t+1))break;case 6444:switch(Di(e,Oi(e)-3-(~Ni(e,"!important")&&10))){case 107:return Mi(e,":",":"+la)+e;case 101:return Mi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+la+(45===Di(e,14)?"inline-":"")+"box$3$1"+la+"$2$3$1"+aa+"$2box$3")+e}break;case 5936:switch(Di(e,t+11)){case 114:return la+e+aa+Mi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return la+e+aa+Mi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return la+e+aa+Mi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return la+e+aa+e+e}return e}var ka=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case da:e.return=Ca(e.value,e.length);break;case fa:return ma([Ui(e,{value:Mi(e.value,"@","@"+la)})],r);case ua:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ma([Ui(e,{props:[Mi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ma([Ui(e,{props:[Mi(t,/:(plac\w+)/,":"+la+"input-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,":-moz-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,aa+"input-$1")]})],r)}return""}))}}];const Pa=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=e.stylisPlugins||ka;var o,i,a={},s=[];o=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;s.push(e)}));var l,c,u,d,f=[pa,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(c=[_a,Sa].concat(r,f),u=zi(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){ma(ha(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ki({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};const Ta=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)};const Ia={animationIterationCount: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,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 Ra(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ma=/[A-Z]|^ms/g,Na=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Da=function(e){return 45===e.charCodeAt(1)},Aa=function(e){return null!=e&&"boolean"!=typeof e},Oa=Ra((function(e){return Da(e)?e:e.replace(Ma,"-$&").toLowerCase()})),za=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Na,(function(e,t,n){return Fa={name:t,styles:n,next:Fa},t}))}return 1===Ia[e]||Da(e)||"number"!=typeof t||0===t?t:t+"px"};function La(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Fa={name:n.name,styles:n.styles,next:Fa},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Fa={name:r.name,styles:r.styles,next:Fa},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=La(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Aa(a)&&(r+=Oa(i)+":"+za(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=La(e,t,a);switch(i){case"animation":case"animationName":r+=Oa(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Aa(a[l])&&(r+=Oa(i)+":"+za(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Fa,i=n(e);return Fa=o,La(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Fa,Ba=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ja=function(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="";Fa=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=La(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=La(n,t,e[a]),r&&(o+=i[a]);Ba.lastIndex=0;for(var s,l="";null!==(s=Ba.exec(o));)l+="-"+s[1];return{name:Ta(o)+l,styles:o,next:Fa}},Va=!!r.useInsertionEffect&&r.useInsertionEffect,Ha=Va||function(e){return e()},$a=(0,r.createContext)("undefined"!=typeof HTMLElement?Pa({key:"css"}):null);var Wa=$a.Provider,Ua=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)($a);return e(t,o,n)}))},Ga=(0,r.createContext)({});function qa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ya=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ka=function(e,t,n){Ya(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 Xa(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Za(e,t,n){var r=[],o=qa(e,r,n);return r.length<2?n:o+t(r)}var Ja=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};const Qa=function(e){var t=Pa(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ja(n,t.registered,void 0);return Ka(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Za(t.registered,n,Ja(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ja(n,t.registered);Xa(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ja(n,t.registered),i="animation-"+o.name;return Xa(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:qa.bind(null,t.registered),merge:Za.bind(null,t.registered,n)}};var es=Qa({key:"css"}),ts=(es.flush,es.hydrate,es.cx);es.merge,es.getRegisteredStyles,es.injectGlobal,es.keyframes,es.css,es.sheet,es.cache;const ns=()=>{const e=(0,r.useContext)($a),t=(0,Uo.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return ts(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Ka(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function rs(e,t){const n=fi(),r=n?.[t]||{},o={[hi]:!0,...(i=t,{[pi]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=ns()(Ci(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function os(e,t){return as(e,t,{forwardsRef:!0})}function is(e,t){return as(e,t)}function as(e,t,n){const r=n?.forwardsRef?(0,Uo.forwardRef)(e):e;let o=r[gi]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[gi]:[...new Set(o)],displayName:t,selector:`.${Ci(t)}`})}function ss(e){if(!e)return[];let t=[];return e[gi]&&(t=e[gi]),e.type&&e.type[gi]&&(t=e.type[gi]),t}function ls(e,t){return!!e&&("string"==typeof t?ss(e).includes(t):!!Array.isArray(t)&&t.some((t=>ss(e).includes(t))))}const cs={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 us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(this,arguments)}function ds(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fs=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,ms=ds((function(e){return fs.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ps=function(e){return"theme"!==e},hs=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ms:ps},gs=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},vs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ya(t,n,r);Ha((function(){return Ka(t,n,r)}));return null};const bs=function e(t,n){var o,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var l=gs(t,n,a),c=l||hs(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var m=d.length,p=1;p<m;p++)f.push(d[p],d[0][p])}var h=Ua((function(e,t,n){var o=u&&e.as||s,a="",d=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=(0,r.useContext)(Ga)}"string"==typeof e.className?a=qa(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var h=ja(f.concat(d),t.registered,m);a+=t.key+"-"+h.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?hs(o):c,v={};for(var b in e)u&&"as"===b||g(b)&&(v[b]=e[b]);return v.className=a,v.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(vs,{cache:t,serialized:h,isStringTag:"string"==typeof o}),(0,r.createElement)(o,v))}));return h.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=f,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,us({},n,r,{shouldForwardProp:gs(h,r,!0)})).apply(void 0,f)},h}},ys=bs("div",{target:"e19lxcc00"})("");ys.selector=".components-view",ys.displayName="View";const xs=ys;const ws=os((function(e,t){const{style:n,...o}=rs(e,"VisuallyHidden");return(0,r.createElement)(xs,{ref:t,...o,style:{...cs,...n||{}}})}),"VisuallyHidden"),Es=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],_s={"top left":(0,u.__)("Top Left"),"top center":(0,u.__)("Top Center"),"top right":(0,u.__)("Top Right"),"center left":(0,u.__)("Center Left"),"center center":(0,u.__)("Center"),center:(0,u.__)("Center"),"center right":(0,u.__)("Center Right"),"bottom left":(0,u.__)("Bottom Left"),"bottom center":(0,u.__)("Bottom Center"),"bottom right":(0,u.__)("Bottom Right")},Ss=Es.flat();function Cs(e){const t="center"===e?"center center":e,n=t?.replace("-"," ");return Ss.includes(n)?n:void 0}function ks(e,t){const n=Cs(t);if(!n)return;return`${e}-${n.replace(" ","-")}`}o(1880);function Ps(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ja(t)}var Ts=function(){var e=Ps.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_"}}};const Is="#fff",Rs={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Ms={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, ${Is})`,background:`var(--wp-components-color-background, ${Is})`,foreground:`var(--wp-components-color-foreground, ${Rs[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Is})`,gray:{900:`var(--wp-components-color-foreground, ${Rs[900]})`,800:`var(--wp-components-color-gray-800, ${Rs[800]})`,700:`var(--wp-components-color-gray-700, ${Rs[700]})`,600:`var(--wp-components-color-gray-600, ${Rs[600]})`,400:`var(--wp-components-color-gray-400, ${Rs[400]})`,300:`var(--wp-components-color-gray-300, ${Rs[300]})`,200:`var(--wp-components-color-gray-200, ${Rs[200]})`,100:`var(--wp-components-color-gray-100, ${Rs[100]})`}},Ns={background:Ms.background,backgroundDisabled:Ms.gray[100],border:Ms.gray[600],borderHover:Ms.gray[700],borderFocus:Ms.accent,borderDisabled:Ms.gray[400],textDisabled:Ms.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Ms.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Ms.background}, transparent 35%)`},Ds=Object.freeze({gray:Rs,white:Is,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Ms,ui:Ns});function As(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${t};\n\t\t}\n\t`}var Os={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const zs=()=>Os,Ls=bs("div",{target:"ecapk1j3"})(zs,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>Ps("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Fs=bs("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Bs=e=>Ps("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",As("transition")," ",(({isActive:e})=>Ps("box-shadow:",e?`0 0 0 2px ${Ds.gray[900]}`:null,";color:",e?Ds.gray[900]:Ds.gray[400],";*:hover>&{color:",e?Ds.gray[900]:Ds.theme.accent,";}",""))(e),";",""),js=bs("span",{target:"ecapk1j1"})("height:6px;width:6px;",Bs,";"),Vs=bs("span",{target:"ecapk1j0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function Hs({id:e,isActive:t=!1,value:n,...o}){const i=_s[n];return(0,r.createElement)(ri,{text:i},(0,r.createElement)(qt,{id:e,render:(0,r.createElement)(Vs,{...o,role:"gridcell"})},(0,r.createElement)(ws,null,n),(0,r.createElement)(js,{isActive:t,role:"presentation"})))}function $s(e,t,n){return Ce(t,[n.store]),Ht(e,n,"items","setItems"),e}function Ws(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function Us(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=V(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:V(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Rt({items:r,renderedItems:i.renderedItems},a),c=Rt(i,e.store),u=e=>{const t=Ws(e);l.setState("renderedItems",t),c.setState("renderedItems",t)};Mt(c,(()=>Nt(l))),Mt(l,(()=>Ot(l,["items"],(e=>{c.setState("items",e.items)})))),Mt(l,(()=>Ot(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return G(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=R(R({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},f=e=>d(e,(e=>l.setState("items",e)),!0);return M(R({},c),{registerItem:f,renderItem:e=>z(f(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=c.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Gs(e){const t=[];for(const n of e)t.push(...n);return t}function qs(e){return e.slice().reverse()}var Ys={id:null};function Ks(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Xs(e,t){return e.filter((e=>e.rowId===t))}function Zs(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Js(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Qs(e,t,n){const r=Js(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?Ks(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function el(e){const t=Zs(e),n=Js(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(M(R({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function tl(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Us(e),o=V(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Rt(M(R({},r.getState()),{activeId:o,baseElement:V(null==n?void 0:n.baseElement,null),includesBaseElement:V(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:V(null==n?void 0:n.moves,0),orientation:V(e.orientation,null==n?void 0:n.orientation,"both"),rtl:V(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:V(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:V(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:V(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Mt(i,(()=>At(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=Ks(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?qs(e):e;if(null==s)return null==(o=Ks(f))?void 0:o.id;const m=f.find((e=>e.id===s));if(!m)return null==(a=Ks(f))?void 0:a.id;const p=!!m.rowId,h=f.indexOf(m),g=f.slice(h+1),v=Xs(g,m.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(p?t||"horizontal":t),y=c&&c!==b,x=p&&u&&u!==b;if(n=n||!p&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Ys]:[],...e.slice(0,r)]}(x&&!n?f:Xs(f,m.rowId),s,n),t=Ks(e,s);return null==t?void 0:t.id}if(x){const e=Ks(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=Ks(v,s);return!w&&n?null:null==w?void 0:w.id};return M(R(R({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=Ks(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=Ks(qs(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=Ks(n))?void 0:t.rowId)&&o;return a(qs(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=el(Gs(Qs(Zs(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=el(qs(Gs(Qs(Zs(n),t,s))));return a(l,"vertical",o,e)}})}function nl(e,t,n){return Ht(e=$s(e,t,n),n,"activeId","setActiveId"),Ht(e,n,"includesBaseElement"),Ht(e,n,"virtualFocus"),Ht(e,n,"orientation"),Ht(e,n,"rtl"),Ht(e,n,"focusLoop"),Ht(e,n,"focusWrap"),Ht(e,n,"focusShift"),e}function rl(e={}){const[t,n]=$t(tl,e);return nl(t,n,e)}function ol(e,t,n){return we((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!ce(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!te(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=yt(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=E(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var il=Ve((e=>{var t=e,{store:n,composite:o=!0,focusOnMove:i=o,moveOnKeyPress:a=!0}=t,s=E(t,["store","composite","focusOnMove","moveOnKeyPress"]);const l=St();F(n=n||l,!1);const c=(0,r.useRef)(null),u=function(e){const[t,n]=(0,r.useState)(!1),o=(0,r.useCallback)((()=>n(!0)),[]),i=e.useState((t=>yt(e,t.activeId)));return(0,r.useEffect)((()=>{const e=null==i?void 0:i.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[i,t]),o}(n),d=n.useState("moves");(0,r.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!o)return;if(!i)return;const{activeId:t}=n.getState(),r=null==(e=yt(n,t))?void 0:e.element;r&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(R({block:"nearest",inline:"nearest"},t))):e.focus()}(r)}),[n,d,o,i]),be((()=>{if(!n)return;if(!d)return;if(!o)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const r=c.current;c.current=null,r&&ue(r,{relatedTarget:e}),Ze(e)||e.focus()}),[n,d,o]);const f=n.useState("activeId"),m=n.useState("virtualFocus");be((()=>{var e;if(!n)return;if(!o)return;if(!m)return;const t=c.current;if(c.current=null,!t)return;const r=(null==(e=yt(n,f))?void 0:e.element)||q(t);r!==t&&ue(t,{relatedTarget:r})}),[n,f,m,o]);const p=ol(n,s.onKeyDownCapture,c),h=ol(n,s.onKeyUpCapture,c),g=s.onFocusCapture,v=we((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[xt];return delete e[xt],t}(e.currentTarget);ce(e)&&o&&(e.stopPropagation(),c.current=r)})),b=s.onFocus,y=we((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!o)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:r}=n.getState();r?ce(e)&&!wt(n,t)&&queueMicrotask(u):ce(e)&&n.setActiveId(null)})),_=s.onBlurCapture,S=we((e=>{var t;if(null==_||_(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=yt(n,o))?void 0:t.element,a=e.relatedTarget,s=wt(n,a),l=c.current;if(c.current=null,ce(e)&&s)a===i?l&&l!==a&&ue(l,e):i?ue(i,e):l&&ue(l,e),e.stopPropagation();else{!wt(n,e.target)&&i&&ue(i,e)}})),C=s.onKeyDown,k=Pe(a),P=we((e=>{var t;if(null==C||C(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=yt(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(i);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&te(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(Gs(qs(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!k(e))return;e.preventDefault(),n.move(t)}}}));s=Te(s,(e=>(0,Le.jsx)(Ct,{value:n,children:e})),[n]);const T=n.useState((e=>{var t;if(n&&o&&e.virtualFocus)return null==(t=yt(n,e.activeId))?void 0:t.id}));s=w(x({"aria-activedescendant":T},s),{ref:Ee(o?n.setBaseElement:null,s.ref),onKeyDownCapture:p,onKeyUpCapture:h,onFocusCapture:v,onFocus:y,onBlurCapture:S,onKeyDown:P});const I=n.useState((e=>o&&(e.virtualFocus||null===e.activeId)));return s=ct(x({focusable:I},s))})),al=Fe((e=>je("div",il(e))));var sl=Ve((e=>{var t=e,{store:n,"aria-setsize":o,"aria-posinset":i}=t,a=E(t,["store","aria-setsize","aria-posinset"]);const s=_t();F(n=n||s,!1);const l=_e(a.id),c=n.useState((e=>e.baseElement||void 0)),u=(0,r.useMemo)((()=>({id:l,baseElement:c,ariaSetSize:o,ariaPosInSet:i})),[l,c,o,i]);return a=Te(a,(e=>(0,Le.jsx)(Tt.Provider,{value:u,children:e})),[u]),a=x({id:l},a)})),ll=Fe((e=>je("div",sl(e))));bs("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const cl=bs("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",zs,";",(()=>Ps({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>Ps({pointerEvents:e?"none":void 0},"","")),";"),ul=bs("span",{target:"erowt50"})("height:2px;width:2px;",Bs,";",(({isActive:e})=>Ps("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),dl=Vs;const fl=function({className:e,disablePointerEvents:t=!0,size:n=24,style:o={},value:i="center",...a}){const s=function(e="center"){const t=Cs(e);if(!t)return;const n=Ss.indexOf(t);return n>-1?n:void 0}(i),l=(n/24).toFixed(2),u=c()("component-alignment-matrix-control-icon",e),d={...o,transform:`scale(${l})`};return(0,r.createElement)(cl,{...a,className:u,disablePointerEvents:t,role:"presentation",style:d},Ss.map(((e,t)=>{const n=s===t;return(0,r.createElement)(dl,{key:e},(0,r.createElement)(ul,{isActive:n}))})))};function ml({className:e,id:t,label:n=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:a,width:s=92,...l}){const f=(0,d.useInstanceId)(ml,"alignment-matrix-control",t),m=rl({defaultActiveId:ks(f,o),activeId:ks(f,i),setActiveId:e=>{const t=function(e,t){const n=t?.replace(e+"-","");return Cs(n)}(f,e);t&&a?.(t)},rtl:(0,u.isRTL)()}),p=m.useState("activeId"),h=c()("component-alignment-matrix-control",e);return(0,r.createElement)(al,{store:m,render:(0,r.createElement)(Ls,{...l,"aria-label":n,className:h,id:f,role:"grid",size:s})},Es.map(((e,t)=>(0,r.createElement)(ll,{render:(0,r.createElement)(Fs,{role:"row"}),key:t},e.map((e=>{const t=ks(f,e),n=t===p;return(0,r.createElement)(Hs,{id:t,isActive:n,key:e,value:e})}))))))}ml.Icon=fl;const pl=ml;function hl(e){return"appear"===e?"top":"left"}function gl(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=hl(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+n):void 0}const vl=function({type:e,options:t={},children:n}){return n({className:gl({type:e,...t})})},bl=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),yl=(0,r.createContext)({}),xl=(0,r.createContext)(null),wl="undefined"!=typeof document,El=wl?r.useLayoutEffect:r.useEffect,_l=(0,r.createContext)({strict:!1});function Sl(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Cl(e){return"string"==typeof e||Array.isArray(e)}function kl(e){return"object"==typeof e&&"function"==typeof e.start}const Pl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tl=["initial",...Pl];function Il(e){return kl(e.animate)||Tl.some((t=>Cl(e[t])))}function Rl(e){return Boolean(Il(e)||e.variants)}function Ml(e){const{initial:t,animate:n}=function(e,t){if(Il(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Cl(t)?t:void 0,animate:Cl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(yl));return(0,r.useMemo)((()=>({initial:t,animate:n})),[Nl(t),Nl(n)])}function Nl(e){return Array.isArray(e)?e.join(" "):e}const Dl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Al={};for(const e in Dl)Al[e]={isEnabled:t=>Dl[e].some((e=>!!t[e]))};const Ol=(0,r.createContext)({}),zl=(0,r.createContext)({}),Ll=Symbol.for("motionComponentSymbol");function Fl({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Al[t]={...Al[t],...e[t]}}(e);const a=(0,r.forwardRef)((function(a,s){let l;const c={...(0,r.useContext)(bl),...a,layoutId:Bl(a)},{isStatic:u}=c,d=Ml(a),f=o(a,u);if(!u&&wl){d.visualElement=function(e,t,n,o){const{visualElement:i}=(0,r.useContext)(yl),a=(0,r.useContext)(_l),s=(0,r.useContext)(xl),l=(0,r.useContext)(bl).reducedMotion,c=(0,r.useRef)();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;(0,r.useInsertionEffect)((()=>{u&&u.update(n,s)}));const d=(0,r.useRef)(Boolean(window.HandoffAppearAnimations));return El((()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,r.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),u}(i,f,c,t);const n=(0,r.useContext)(zl),o=(0,r.useContext)(_l).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,o,e,n))}return r.createElement(yl.Provider,{value:d},l&&d.visualElement?r.createElement(l,{visualElement:d.visualElement,...c}):null,n(i,a,function(e,t,n){return(0,r.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Sl(n)&&(n.current=r))}),[t])}(f,d.visualElement,s),f,u,d.visualElement))}));return a[Ll]=i,a}function Bl({layoutId:e}){const t=(0,r.useContext)(Ol).id;return t&&void 0!==e?t+"-"+e:e}function jl(e){function t(t,n={}){return Fl(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Vl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return"string"==typeof e&&!e.includes("-")&&!!(Vl.indexOf(e)>-1||/[A-Z]/.test(e))}const $l={};const Wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ul=new Set(Wl);function Gl(e,{layout:t,layoutId:n}){return Ul.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!$l[e]||"opacity"===e)}const ql=e=>Boolean(e&&e.getVelocity),Yl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kl=Wl.length;const Xl=e=>t=>"string"==typeof t&&t.startsWith(e),Zl=Xl("--"),Jl=Xl("var(--"),Ql=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ec=(e,t,n)=>Math.min(Math.max(n,e),t),tc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nc={...tc,transform:e=>ec(0,1,e)},rc={...tc,default:1},oc=e=>Math.round(1e5*e)/1e5,ic=/(-)?([\d]*\.?[\d])+/g,ac=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,sc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function lc(e){return"string"==typeof e}const cc=e=>({test:t=>lc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),uc=cc("deg"),dc=cc("%"),fc=cc("px"),mc=cc("vh"),pc=cc("vw"),hc={...dc,parse:e=>dc.parse(e)/100,transform:e=>dc.transform(100*e)},gc={...tc,transform:Math.round},vc={borderWidth:fc,borderTopWidth:fc,borderRightWidth:fc,borderBottomWidth:fc,borderLeftWidth:fc,borderRadius:fc,radius:fc,borderTopLeftRadius:fc,borderTopRightRadius:fc,borderBottomRightRadius:fc,borderBottomLeftRadius:fc,width:fc,maxWidth:fc,height:fc,maxHeight:fc,size:fc,top:fc,right:fc,bottom:fc,left:fc,padding:fc,paddingTop:fc,paddingRight:fc,paddingBottom:fc,paddingLeft:fc,margin:fc,marginTop:fc,marginRight:fc,marginBottom:fc,marginLeft:fc,rotate:uc,rotateX:uc,rotateY:uc,rotateZ:uc,scale:rc,scaleX:rc,scaleY:rc,scaleZ:rc,skew:uc,skewX:uc,skewY:uc,distance:fc,translateX:fc,translateY:fc,translateZ:fc,x:fc,y:fc,z:fc,perspective:fc,transformPerspective:fc,opacity:nc,originX:hc,originY:hc,originZ:fc,zIndex:gc,fillOpacity:nc,strokeOpacity:nc,numOctaves:gc};function bc(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Zl(e)){i[e]=n;continue}const r=vc[e],d=Ql(n,r);if(Ul.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Kl;t++){const n=Wl[t];void 0!==e[n]&&(i+=`${Yl[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const yc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xc(e,t,n){for(const r in t)ql(t[r])||Gl(r,n)||(e[r]=t[r])}function wc(e,t,n){const o={};return xc(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t,n){return(0,r.useMemo)((()=>{const r=yc();return bc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(o):o}function Ec(e,t,n){const r={},o=wc(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const _c=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Sc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||_c.has(e)}let Cc=e=>!Sc(e);try{(kc=require("@emotion/is-prop-valid").default)&&(Cc=e=>e.startsWith("on")?!Sc(e):kc(e))}catch(W){}var kc;function Pc(e,t,n){return"string"==typeof e?e:fc.transform(t+n*e)}const Tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ic={offset:"strokeDashoffset",array:"strokeDasharray"};function Rc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(bc(e,c,u,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:h}=e;m.transform&&(h&&(p.transform=m.transform),delete m.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Pc(t,e.x,e.width)} ${Pc(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Tc:Ic;e[i.offset]=fc.transform(-r);const a=fc.transform(t),s=fc.transform(n);e[i.array]=`${a} ${s}`}(m,a,s,l,!1)}const Mc=()=>({...yc(),attrs:{}}),Nc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Dc(e,t,n,o){const i=(0,r.useMemo)((()=>{const n=Mc();return Rc(n,t,{enableHardwareAcceleration:!1},Nc(o),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};xc(t,e.style,e),i.style={...t,...i.style}}return i}function Ac(e=!1){return(t,n,o,{latestValues:i},a)=>{const s=(Hl(t)?Dc:Ec)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Cc(o)||!0===n&&Sc(o)||!t&&!Sc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,r.useMemo)((()=>ql(u)?u.get():u),[u]);return(0,r.createElement)(t,{...c,children:d})}}const Oc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function zc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Lc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Fc(e,t,n,r){zc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Lc.has(n)?n:Oc(n),t.attrs[n])}function Bc(e,t){const{style:n}=e,r={};for(const o in n)(ql(n[o])||t.style&&ql(t.style[o])||Gl(o,e))&&(r[o]=n[o]);return r}function jc(e,t){const n=Bc(e,t);for(const r in e)if(ql(e[r])||ql(t[r])){n[-1!==Wl.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Vc(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Hc(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}const $c=e=>Array.isArray(e),Wc=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Uc=e=>$c(e)?e[e.length-1]||0:e;function Gc(e){const t=ql(e)?e.get():e;return Wc(t)?t.toValue():t}const qc=e=>(t,n)=>{const o=(0,r.useContext)(yl),i=(0,r.useContext)(xl),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Yc(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,o,i);return n?a():Hc(a)};function Yc(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Gc(i[e]);let{initial:a,animate:s}=e;const l=Il(e),c=Rl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!kl(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Vc(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Kc=e=>e;class Xc{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Zc=["prepare","read","update","preRender","render","postRender"];const{schedule:Jc,cancel:Qc,state:eu,steps:tu}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Zc.reduce(((e,t)=>(e[t]=function(e){let t=new Xc,n=new Xc,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>i[e].process(o),s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Zc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))};return{schedule:Zc.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{}),cancel:e=>Zc.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Kc,!0),nu={useVisualState:qc({scrapeMotionValuesFromProps:jc,createRenderState:Mc,onMount:(e,t,{renderState:n,latestValues:r})=>{Jc.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Jc.render((()=>{Rc(n,r,{enableHardwareAcceleration:!1},Nc(t.tagName),e.transformTemplate),Fc(t,n)}))}})},ru={useVisualState:qc({scrapeMotionValuesFromProps:Bc,createRenderState:yc})};function ou(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const iu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function au(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const su=e=>t=>iu(t)&&e(t,au(t));function lu(e,t,n,r){return ou(e,t,su(n),r)}const cu=(e,t)=>n=>t(e(n)),uu=(...e)=>e.reduce(cu);function du(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const fu=du("dragHorizontal"),mu=du("dragVertical");function pu(e){let t=!1;if("y"===e)t=mu();else if("x"===e)t=fu();else{const e=fu(),n=mu();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function hu(){const e=pu(!0);return!e||(e(),!1)}class gu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function vu(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return lu(e.current,n,((n,o)=>{if("touch"===n.type||hu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Jc.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const bu=(e,t)=>!!t&&(e===t||bu(e,t.parentElement));function yu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,au(n))}const xu=new WeakMap,wu=new WeakMap,Eu=e=>{const t=xu.get(e.target);t&&t(e)},_u=e=>{e.forEach(Eu)};function Su(e,t,n){const r=function({root:e,...t}){const n=e||document;wu.has(n)||wu.set(n,{});const r=wu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_u,{root:e,...t})),r[o]}(t);return xu.set(e,n),r.observe(e),()=>{xu.delete(e),r.unobserve(e)}}const Cu={some:0,all:1};const ku={inView:{Feature:class extends gu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Cu[r]};return Su(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends gu{constructor(){super(...arguments),this.removeStartListeners=Kc,this.removeEndListeners=Kc,this.removeAccessibleListeners=Kc,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=lu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Jc.update((()=>{bu(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=lu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=uu(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=ou(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ou(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&yu("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Jc.update((()=>n(e,t)))}))})),yu("down",((e,t)=>{this.startPress(e,t)}))})),t=ou(this.node.current,"blur",(()=>{this.isPressing&&yu("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=uu(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Jc.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Jc.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=lu(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ou(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=uu(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends gu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=uu(ou(this.node.current,"focus",(()=>this.onFocus())),ou(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends gu{mount(){this.unmount=uu(vu(this.node,!0),vu(this.node,!1))}unmount(){}}}};function Pu(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Tu(e,t,n){const r=e.getProps();return Vc(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const Iu="data-"+Oc("framerAppearId");let Ru=Kc,Mu=Kc;const Nu=e=>1e3*e,Du=e=>e/1e3,Au=!1,Ou=e=>Array.isArray(e)&&"number"==typeof e[0];function zu(e){return Boolean(!e||"string"==typeof e&&Fu[e]||Ou(e)||Array.isArray(e)&&e.every(zu))}const Lu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lu([0,.65,.55,1]),circOut:Lu([.55,0,1,.45]),backIn:Lu([.31,.01,.66,-.59]),backOut:Lu([.33,1.53,.69,.99])};function Bu(e){if(e)return Ou(e)?Lu(e):Array.isArray(e)?e.map(Bu):Fu[e]}const ju=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Vu=1e-7,Hu=12;function $u(e,t,n,r){if(e===t&&n===r)return Kc;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ju(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>Vu&&++s<Hu);return a}(t,0,1,e,n);return e=>0===e||1===e?e:ju(o(e),t,r)}const Wu=$u(.42,0,1,1),Uu=$u(0,0,.58,1),Gu=$u(.42,0,.58,1),qu=e=>Array.isArray(e)&&"number"!=typeof e[0],Yu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ku=e=>t=>1-e(1-t),Xu=e=>1-Math.sin(Math.acos(e)),Zu=Ku(Xu),Ju=Yu(Zu),Qu=$u(.33,1.53,.69,.99),ed=Ku(Qu),td=Yu(ed),nd={linear:Kc,easeIn:Wu,easeInOut:Gu,easeOut:Uu,circIn:Xu,circInOut:Ju,circOut:Zu,backIn:ed,backInOut:td,backOut:Qu,anticipate:e=>(e*=2)<1?.5*ed(e):.5*(2-Math.pow(2,-10*(e-1)))},rd=e=>{if(Array.isArray(e)){Mu(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return $u(t,n,r,o)}return"string"==typeof e?(Mu(void 0!==nd[e],`Invalid easing type '${e}'`),nd[e]):e},od=(e,t)=>n=>Boolean(lc(n)&&sc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),id=(e,t,n)=>r=>{if(!lc(r))return r;const[o,i,a,s]=r.match(ic);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ad={...tc,transform:e=>Math.round((e=>ec(0,255,e))(e))},sd={test:od("rgb","red"),parse:id("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ad.transform(e)+", "+ad.transform(t)+", "+ad.transform(n)+", "+oc(nc.transform(r))+")"};const ld={test:od("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:sd.transform},cd={test:od("hsl","hue"),parse:id("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dc.transform(oc(t))+", "+dc.transform(oc(n))+", "+oc(nc.transform(r))+")"},ud={test:e=>sd.test(e)||ld.test(e)||cd.test(e),parse:e=>sd.test(e)?sd.parse(e):cd.test(e)?cd.parse(e):ld.parse(e),transform:e=>lc(e)?e:e.hasOwnProperty("red")?sd.transform(e):cd.transform(e)},dd=(e,t,n)=>-n*e+n*t+e;function fd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const md=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},pd=[ld,sd,cd];function hd(e){const t=(e=>pd.find((t=>t.test(e))))(e);Mu(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===cd&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=fd(s,r,e+1/3),i=fd(s,r,e),a=fd(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const gd=(e,t)=>{const n=hd(e),r=hd(t),o={...n};return e=>(o.red=md(n.red,r.red,e),o.green=md(n.green,r.green,e),o.blue=md(n.blue,r.blue,e),o.alpha=dd(n.alpha,r.alpha,e),sd.transform(o))};const vd={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Kc},bd={regex:ac,countKey:"Colors",token:"${c}",parse:ud.parse},yd={regex:ic,countKey:"Numbers",token:"${n}",parse:tc.parse};function xd(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function wd(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xd(n,vd),xd(n,bd),xd(n,yd),n}function Ed(e){return wd(e).values}function _d(e){const{values:t,numColors:n,numVars:r,tokenised:o}=wd(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(vd.token,e[o]):o<r+n?t.replace(bd.token,ud.transform(e[o])):t.replace(yd.token,oc(e[o]));return t}}const Sd=e=>"number"==typeof e?0:e;const Cd={test:function(e){var t,n;return isNaN(e)&&lc(e)&&((null===(t=e.match(ic))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(ac))||void 0===n?void 0:n.length)||0)>0},parse:Ed,createTransformer:_d,getAnimatableNone:function(e){const t=Ed(e);return _d(e)(t.map(Sd))}},kd=(e,t)=>n=>`${n>0?t:e}`;function Pd(e,t){return"number"==typeof e?n=>dd(e,t,n):ud.test(e)?gd(e,t):e.startsWith("var(")?kd(e,t):Rd(e,t)}const Td=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Pd(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Id=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Pd(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Rd=(e,t)=>{const n=Cd.createTransformer(t),r=wd(e),o=wd(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?uu(Td(r.values,o.values),n):(Ru(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),kd(e,t))},Md=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Nd=(e,t)=>n=>dd(e,t,n);function Dd(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Nd:"string"==typeof e?ud.test(e)?gd:Rd:Array.isArray(e)?Td:"object"==typeof e?Id:Nd}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Kc:t;i=uu(e,i)}r.push(i)}return r}function Ad(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Mu(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Dd(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Md(e[n],e[n+1],t);return a[n](r)};return n?t=>l(ec(e[0],e[i-1],t)):l}function Od(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Md(0,t,r);e.push(dd(n,1,o))}}(t,e.length-1),t}function zd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=qu(r)?r.map(rd):rd(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Od(t),e),s=Ad(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Gu)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function Ld(e,t){return t?e*(1e3/t):0}const Fd=5;function Bd(e,t,n){const r=Math.max(t-Fd,0);return Ld(n-e(r),t-r)}const jd=.001,Vd=.01,Hd=10,$d=.05,Wd=1;function Ud({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Ru(e<=Nu(Hd),"Spring duration must be 10 seconds or less");let a=1-t;a=ec($d,Wd,a),e=ec(Vd,Hd,Du(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=qd(t,a),l=Math.exp(-o);return jd-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=qd(Math.pow(t,2),a);return(-o(t)+jd>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-jd,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Gd;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Nu(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Gd=12;function qd(e,t){return e*Math.sqrt(1-t*t)}const Yd=["duration","bounce"],Kd=["stiffness","damping","mass"];function Xd(e,t){return t.some((t=>void 0!==e[t]))}function Zd({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Xd(e,Kd)&&Xd(e,Yd)){const n=Ud(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Du(u):0,p=l/(2*Math.sqrt(s*c)),h=i-o,g=Du(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=qd(g,p);b=t=>{const n=Math.exp(-p*g*t);return i-n*((m+p*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===p)b=e=>i-Math.exp(-g*e)*(h+(m+g*h)*e);else{const e=g*Math.sqrt(p*p-1);b=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((m+p*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=m;0!==e&&(o=p<1?Bd(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Jd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const h=d+p,g=void 0===a?h:a(h);g!==h&&(p=g-d);const v=e=>-p*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(x=e,w=Zd({keyframes:[f.value,m(f.value)],velocity:Bd(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),E(e)),void 0!==x&&e>x?w.next(e-x):(!t&&y(e),f)}}}const Qd=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Jc.update(t,!0),stop:()=>Qc(t),now:()=>eu.isProcessing?eu.timestamp:performance.now()}},ef=2e4;function tf(e){let t=0;let n=e.next(t);for(;!n.done&&t<ef;)t+=50,n=e.next(t);return t>=ef?1/0:t}const nf={decay:Jd,inertia:Jd,tween:zd,keyframes:zd,spring:Zd};function rf({autoplay:e=!0,delay:t=0,driver:n=Qd,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let m,p,h=1,g=!1;const v=()=>{p=new Promise((e=>{m=e}))};let b;v();const y=nf[o]||zd;let x;y!==zd&&"number"!=typeof r[0]&&(x=Ad([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",S=null,C=null,k=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=tf(w));const{calculatedDuration:P}=w;let T=1/0,I=1/0;null!==P&&(T=P+a,I=T*(i+1)-a);let R=0;const M=e=>{if(null===C)return;h>0&&(C=Math.min(C,e)),h<0&&(C=Math.min(e-I/h,C)),R=null!==S?S:Math.round(e-C)*h;const n=R-t*(h>=0?1:-1),o=h>=0?n<0:n>I;R=Math.max(n,0),"finished"===_&&null===S&&(R=I);let l=R,c=w;if(i){const e=R/T;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(c=E));let o=ec(0,1,n);R>I&&(o="reverse"===s&&r?1:0),l=o*T}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:f}=u;o||null===P||(f=h>=0?R>=I:R<=0);const m=null===S&&("finished"===_||"running"===_&&f);return d&&d(u.value),m&&A(),u},N=()=>{b&&b.stop(),b=void 0},D=()=>{_="idle",N(),m(),v(),C=k=null},A=()=>{_="finished",u&&u(),N(),m()},O=()=>{if(g)return;b||(b=n(M));const e=b.now();l&&l(),null!==S?C=e-S:C&&"finished"!==_||(C=e),"finished"===_&&v(),k=C,S=null,_="running",b.start()};e&&O();const z={then:(e,t)=>p.then(e,t),get time(){return Du(R)},set time(e){e=Nu(e),R=e,null===S&&b&&0!==h?C=b.now()-e/h:S=e},get duration(){const e=null===w.calculatedDuration?tf(w):w.calculatedDuration;return Du(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,z.time=Du(R))},get state(){return _},play:O,pause:()=>{_="paused",S=R},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),D())},cancel:()=>{null!==k&&M(k),D()},complete:()=>{_="finished"},sample:e=>(C=0,M(e))};return z}const of=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),af=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function sf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(of()&&af.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!zu(t.ease))(t,o)){const e=rf({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Bu(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f});o.syncStart&&(m.startTime=eu.isProcessing?eu.timestamp:document.timeline?document.timeline.currentTime:performance.now());const p=()=>m.cancel(),h=()=>{Jc.update(p),i(),l()};m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,Kc),get time(){return Du(m.currentTime||0)},set time(e){m.currentTime=Nu(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Du(u)},play:()=>{s||(m.play(),Qc(p))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=rf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>m.finish(),cancel:h}}const lf={type:"spring",stiffness:500,damping:25,restSpeed:10},cf={type:"keyframes",duration:.8},uf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},df=(e,{keyframes:t})=>t.length>2?cf:Ul.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lf:uf,ff=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Cd.test(t)&&"0"!==t||t.startsWith("url("))),mf=new Set(["brightness","contrast","saturate","opacity"]);function pf(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ic)||[];if(!r)return e;const o=n.replace(r,"");let i=mf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const hf=/([a-z-]*)\(.*?\)/g,gf={...Cd,getAnimatableNone:e=>{const t=e.match(hf);return t?t.map(pf).join(" "):e}},vf={...vc,color:ud,backgroundColor:ud,outlineColor:ud,fill:ud,stroke:ud,borderColor:ud,borderTopColor:ud,borderRightColor:ud,borderBottomColor:ud,borderLeftColor:ud,filter:gf,WebkitFilter:gf},bf=e=>vf[e];function yf(e,t){let n=bf(e);return n!==gf&&(n=Cd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xf=e=>/^0[^.\s]+$/.test(e);function wf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||xf(e):void 0}function Ef(e,t){return e[t]||e.default||e}const _f=(e,t,n,r={})=>o=>{const i=Ef(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Nu(a);const l=function(e,t,n,r){const o=ff(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),wf(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=yf(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=ff(e,c),f=ff(e,u);Ru(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,...df(e,m)}),m.duration&&(m.duration=Nu(m.duration)),m.repeatDelay&&(m.repeatDelay=Nu(m.repeatDelay)),!d||!f||Au||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Kc,pause:Kc,stop:Kc,then:e=>(e(),Promise.resolve()),cancel:Kc,complete:Kc});return t?rf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(Au?{...m,delay:0}:m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=sf(t,e,m);if(n)return n}return rf(m)};function Sf(e){return Boolean(ql(e)&&e.add)}const Cf=e=>/^\-?\d*\.?\d+$/.test(e);function kf(e,t){-1===e.indexOf(t)&&e.push(t)}function Pf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Tf{constructor(){this.subscriptions=[]}add(e){return kf(this.subscriptions,e),()=>Pf(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const If={current:void 0};class Rf{constructor(e,t={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=eu;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Jc.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Jc.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Tf);const n=this.events[e].add(t);return"change"===e?()=>{n(),Jc.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return If.current&&If.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ld(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mf(e,t){return new Rf(e,t)}const Nf=e=>t=>t.test(e),Df=[tc,fc,dc,uc,pc,mc,{test:e=>"auto"===e,parse:e=>e}],Af=e=>Df.find(Nf(e)),Of=[...Df,ud,Cd],zf=e=>Of.find(Nf(e));function Lf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mf(n))}function Ff(e,t){const n=Tu(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){Lf(e,t,Uc(i[t]))}}function Bf(e,t){if(!t)return;return(t[e]||t.default||t).from}function jf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Vf(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&jf(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Iu];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Jc),a.syncStart=!0)}r.start(_f(t,r,o,e.shouldReduceMotion&&Ul.has(t)?{type:!1}:a));const d=r.animation;Sf(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&Ff(e,a)})),c}function Hf(e,t,n={}){const r=Tu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Vf(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort($f).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(Hf(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function $f(e,t){return e.sortNodePosition(t)}const Wf=[...Pl].reverse(),Uf=Pl.length;function Gf(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Hf(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Hf(e,t,n);else{const o="function"==typeof t?Tu(e,t,n.custom):t;r=Promise.all(Vf(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function qf(e){let t=Gf(e);const n={animate:Kf(!0),whileInView:Kf(),whileHover:Kf(),whileTap:Kf(),whileDrag:Kf(),whileFocus:Kf(),exit:Kf()};let r=!0;const o=(t,n)=>{const r=Tu(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<Uf;t++){const m=Wf[t],p=n[m],h=void 0!==s[m]?s[m]:l[m],g=Cl(h),v=m===a?p.isActive:null;!1===v&&(f=t);let b=h===l[m]&&h!==s[m]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),p.protectedKeys={...d},!p.isActive&&null===v||!h&&!p.prevProp||kl(h)||"boolean"==typeof h)continue;const y=Yf(p.prevProp,h);let x=y||m===a&&p.isActive&&!b&&g||t>f&&g;const w=Array.isArray(h)?h:[h];let E=w.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=p,S={..._,...E},C=e=>{x=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in S){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?$c(t)&&$c(n)?!Pu(t,n)||y?C(e):p.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0)}p.prevProp=h,p.prevResolvedValues=E,p.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(x=!1),x&&!b&&c.push(...w.map((e=>({animation:e,options:{type:m,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Yf(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Pu(t,e)}function Kf(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Xf=0;const Zf={animation:{Feature:class extends gu{constructor(e){super(e),e.animationState||(e.animationState=qf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),kl(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends gu{constructor(){super(...arguments),this.id=Xf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Jf=(e,t)=>Math.abs(e-t);class Qf{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=nm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Jf(e.x,t.x),r=Jf(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=eu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=em(t,this.transformPagePoint),Jc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=nm("pointercancel"===e.type?this.lastMoveEventInfo:em(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!iu(e))return;this.handlers=t,this.transformPagePoint=n;const r=em(au(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=eu;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,nm(r,this.history)),this.removeListeners=uu(lu(window,"pointermove",this.handlePointerMove),lu(window,"pointerup",this.handlePointerUp),lu(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Qc(this.updatePoint)}}function em(e,t){return t?{point:t(e.point)}:e}function tm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nm({point:e},t){return{point:e,delta:tm(e,om(t)),offset:tm(e,rm(t)),velocity:im(t,.1)}}function rm(e){return e[0]}function om(e){return e[e.length-1]}function im(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=om(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Nu(t)));)n--;if(!r)return{x:0,y:0};const i=Du(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function am(e){return e.max-e.min}function sm(e,t=0,n=.01){return Math.abs(e-t)<=n}function lm(e,t,n,r=.5){e.origin=r,e.originPoint=dd(t.min,t.max,e.origin),e.scale=am(n)/am(t),(sm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=dd(n.min,n.max,e.origin)-e.originPoint,(sm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function cm(e,t,n,r){lm(e.x,t.x,n.x,r?r.originX:void 0),lm(e.y,t.y,n.y,r?r.originY:void 0)}function um(e,t,n){e.min=n.min+t.min,e.max=e.min+am(t)}function dm(e,t,n){e.min=t.min-n.min,e.max=e.min+am(t)}function fm(e,t,n){dm(e.x,t.x,n.x),dm(e.y,t.y,n.y)}function mm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const hm=.35;function gm(e,t,n){return{min:vm(e,t),max:vm(e,n)}}function vm(e,t){return"number"==typeof e?e:e[t]||0}const bm=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),ym=()=>({x:{min:0,max:0},y:{min:0,max:0}});function xm(e){return[e("x"),e("y")]}function wm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Em(e){return void 0===e||1===e}function _m({scale:e,scaleX:t,scaleY:n}){return!Em(e)||!Em(t)||!Em(n)}function Sm(e){return _m(e)||Cm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cm(e){return km(e.x)||km(e.y)}function km(e){return e&&"0%"!==e}function Pm(e,t,n){return n+t*(e-n)}function Tm(e,t,n,r,o){return void 0!==o&&(e=Pm(e,o,r)),Pm(e,n,r)+t}function Im(e,t=0,n=1,r,o){e.min=Tm(e.min,t,n,r,o),e.max=Tm(e.max,t,n,r,o)}function Rm(e,{x:t,y:n}){Im(e.x,t.translate,t.scale,t.originPoint),Im(e.y,n.translate,n.scale,n.originPoint)}function Mm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Nm(e,t){e.min=e.min+t,e.max=e.max+t}function Dm(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=dd(e.min,e.max,i);Im(e,t[n],t[r],a,t.scale)}const Am=["x","scaleX","originX"],Om=["y","scaleY","originY"];function zm(e,t){Dm(e.x,t,Am),Dm(e.y,t,Om)}function Lm(e,t){return wm(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Fm=new WeakMap;class Bm{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ym(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Qf(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(au(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xm((e=>{let t=this.getAxisMotionValue(e).get()||0;if(dc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=am(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Jc.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Jc.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!jm(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?dd(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?dd(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Sl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:mm(e.x,n,o),y:mm(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=hm){return!1===e?e=0:!0===e&&(e=hm),{x:gm(e,"left","right"),y:gm(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&xm((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sl(e))return!1;const n=e.current;Mu(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Lm(e,n),{scroll:o}=t;return o&&(Nm(r.x,o.offset.x),Nm(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:pm(e.x,t.x),y:pm(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=wm(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=xm((a=>{if(!jm(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(_f(e,n,0,t))}stopAnimation(){xm((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){xm((t=>{const{drag:n}=this.getProps();if(!jm(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-dd(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};xm((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=am(e),o=am(t);return o>r?n=Md(t.min,t.max-r,e.min):r>o&&(n=Md(e.min,e.max-o,t.min)),ec(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),xm((t=>{if(!jm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(dd(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Fm.set(this.visualElement,this);const e=lu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Sl(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=ou(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(xm((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=hm,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function jm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Vm=e=>(t,n)=>{e&&Jc.update((()=>e(t,n)))};const Hm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $m(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!fc.test(e))return e;e=parseFloat(e)}return`${$m(e,t.target.x)}% ${$m(e,t.target.y)}%`}},Um={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Cd.parse(e);if(o.length>5)return r;const i=Cd.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=dd(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Gm extends r.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Ym,Object.assign($l,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Jc.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function qm(e){const[t,n]=function(){const e=(0,r.useContext)(xl);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,i=(0,r.useId)();return(0,r.useEffect)((()=>o(i)),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}(),o=(0,r.useContext)(Ol);return r.createElement(Gm,{...e,layoutGroup:o,switchLayoutGroup:(0,r.useContext)(zl),isPresent:t,safeToRemove:n})}const Ym={borderRadius:{...Wm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wm,borderTopRightRadius:Wm,borderBottomLeftRadius:Wm,borderBottomRightRadius:Wm,boxShadow:Um},Km=["TopLeft","TopRight","BottomLeft","BottomRight"],Xm=Km.length,Zm=e=>"string"==typeof e?parseFloat(e):e,Jm=e=>"number"==typeof e||fc.test(e);function Qm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const ep=np(0,.5,Zu),tp=np(.5,.95,Kc);function np(e,t,n){return r=>r<e?0:r>t?1:n(Md(e,t,r))}function rp(e,t){e.min=t.min,e.max=t.max}function op(e,t){rp(e.x,t.x),rp(e.y,t.y)}function ip(e,t,n,r,o){return e=Pm(e-=t,1/n,r),void 0!==o&&(e=Pm(e,1/o,r)),e}function ap(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){dc.test(t)&&(t=parseFloat(t),t=dd(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=dd(i.min,i.max,r);e===i&&(s-=t),e.min=ip(e.min,t,n,s,o),e.max=ip(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const sp=["x","scaleX","originX"],lp=["y","scaleY","originY"];function cp(e,t,n,r){ap(e.x,t,sp,n?n.x:void 0,r?r.x:void 0),ap(e.y,t,lp,n?n.y:void 0,r?r.y:void 0)}function up(e){return 0===e.translate&&1===e.scale}function dp(e){return up(e.x)&&up(e.y)}function fp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function mp(e){return am(e.x)/am(e.y)}class pp{constructor(){this.members=[]}add(e){kf(this.members,e),e.scheduleRender()}remove(e){if(Pf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const gp=(e,t)=>e.depth-t.depth;class vp{constructor(){this.children=[],this.isDirty=!1}add(e){kf(this.children,e),this.isDirty=!0}remove(e){Pf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gp),this.isDirty=!1,this.children.forEach(e)}}const bp=["","X","Y","Z"];let yp=0;const xp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function wp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=yp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;xp.totalNodes=xp.resolvedTargetDeltas=xp.recalculatedProjection=0,this.nodes.forEach(Sp),this.nodes.forEach(Mp),this.nodes.forEach(Np),this.nodes.forEach(Cp),e=xp,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new vp)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Tf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Qc(r),e(i-t))};return Jc.read(r,!0),()=>Qc(r)}(r,250),Hm.hasAnimatedSinceResize&&(Hm.hasAnimatedSinceResize=!1,this.nodes.forEach(Rp))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Fp,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!fp(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Ef(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Rp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Dp),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Pp);this.isUpdating||this.nodes.forEach(Tp),this.isUpdating=!1,this.nodes.forEach(Ip),this.nodes.forEach(Ep),this.nodes.forEach(_p),this.clearAllSnapshots();const e=performance.now();eu.delta=ec(0,1e3/60,e-eu.timestamp),eu.timestamp=e,eu.isProcessing=!0,tu.update.process(eu),tu.preRender.process(eu),tu.render.process(eu),eu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(kp),this.sharedNodes.forEach(Ap)}scheduleUpdateProjection(){Jc.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Jc.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ym(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!dp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Sm(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Vp((r=n).x),Vp(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return ym();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Nm(t.x,n.offset.x),Nm(t.y,n.offset.y)),t}removeElementScroll(e){const t=ym();op(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){op(t,e);const{scroll:n}=this.root;n&&(Nm(t.x,-n.offset.x),Nm(t.y,-n.offset.y))}Nm(t.x,o.offset.x),Nm(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=ym();op(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&zm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Sm(r.latestValues)&&zm(n,r.latestValues)}return Sm(this.latestValues)&&zm(n,this.latestValues),n}removeTransform(e){const t=ym();op(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Sm(n.latestValues))continue;_m(n.latestValues)&&n.updateSnapshot();const r=ym();op(r,n.measurePageBox()),cp(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Sm(this.latestValues)&&cp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=eu.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ym(),this.relativeTargetOrigin=ym(),fm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),op(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=ym(),this.targetWithTransforms=ym()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,um(a.x,s.x,l.x),um(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):op(this.target,this.layout.layoutBox),Rm(this.target,this.targetDelta)):op(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ym(),this.relativeTargetOrigin=ym(),fm(this.relativeTargetOrigin,this.target,e.target),op(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!_m(this.parent.latestValues)&&!Cm(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eu.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;op(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&zm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Rm(e,a)),r&&Sm(i.latestValues)&&zm(e,i.latestValues))}t.x=Mm(t.x),t.y=Mm(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=bm(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=bm(),this.projectionDeltaWithTransform=bm());const c=this.projectionTransform;cm(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=hp(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),xp.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=bm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=ym(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Lp));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Op(i.x,e.x,n),Op(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){zp(e.x,t.x,n.x,r),zp(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=ym()),op(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=dd(0,void 0!==n.opacity?n.opacity:1,ep(r)),e.opacityExit=dd(void 0!==t.opacity?t.opacity:1,0,tp(r))):i&&(e.opacity=dd(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Xm;o++){const i=`border${Km[o]}Radius`;let a=Qm(t,i),s=Qm(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Jm(a)===Jm(s)?(e[i]=Math.max(dd(Zm(a),Zm(s),r),0),(dc.test(s)||dc.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=dd(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Jc.update((()=>{Hm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ql(e)?e:Mf(e);return r.start(_f("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Hp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||ym();const t=am(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=am(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}op(t,n),zm(t,o),cm(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new pp);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<bp.length;t++){const o="rotate"+bp[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Gc(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Gc(e.pointerEvents)||""),this.hasProjected&&!Sm(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=hp(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in $l){if(void 0===a[e])continue;const{correct:t,applyTo:n}=$l[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Gc(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Pp),this.root.sharedNodes.clear()}}}function Ep(e){e.updateLayout()}function _p(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?xm((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=am(r);r.min=t[e].min,r.max=r.min+o})):Hp(o,n.layoutBox,t)&&xm((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=am(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=bm();cm(a,t,n.layoutBox);const s=bm();i?cm(s,e.applyTransform(r,!0),n.measuredBox):cm(s,t,n.layoutBox);const l=!dp(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=ym();fm(a,n.layoutBox,o.layoutBox);const s=ym();fm(s,t,i.layoutBox),fp(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Sp(e){xp.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Cp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kp(e){e.clearSnapshot()}function Pp(e){e.clearMeasurements()}function Tp(e){e.isLayoutDirty=!1}function Ip(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Rp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mp(e){e.resolveTargetDelta()}function Np(e){e.calcProjection()}function Dp(e){e.resetRotation()}function Ap(e){e.removeLeadSnapshot()}function Op(e,t,n){e.translate=dd(t.translate,0,n),e.scale=dd(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zp(e,t,n,r){e.min=dd(t.min,n.min,r),e.max=dd(t.max,n.max,r)}function Lp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Fp={duration:.45,ease:[.4,0,.1,1]},Bp=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),jp=Bp("applewebkit/")&&!Bp("chrome/")?Math.round:Kc;function Vp(e){e.min=jp(e.min),e.max=jp(e.max)}function Hp(e,t,n){return"position"===e||"preserve-aspect"===e&&!sm(mp(t),mp(n),.2)}const $p=wp({attachResizeListener:(e,t)=>ou(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wp={current:void 0},Up=wp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wp.current){const e=new $p({});e.mount(window),e.setOptions({layoutScroll:!0}),Wp.current=e}return Wp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Gp={pan:{Feature:class extends gu{constructor(){super(...arguments),this.removePointerDownListener=Kc}onPointerDown(e){this.session=new Qf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Vm(e),onStart:Vm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Jc.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=lu(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends gu{constructor(e){super(e),this.removeGroupControls=Kc,this.removeListeners=Kc,this.controls=new Bm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kc}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Up,MeasureLayout:qm}},qp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Yp=4;function Kp(e,t,n=1){Mu(n<=Yp,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=qp.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Cf(e)?parseFloat(e):e}return Jl(o)?Kp(o,t,n+1):o}const Xp=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zp=e=>Xp.has(e),Jp=e=>e===tc||e===fc,Qp=(e,t)=>parseFloat(e.split(", ")[t]),eh=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Qp(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Qp(t[1],e):0}},th=new Set(["x","y","z"]),nh=Wl.filter((e=>!th.has(e)));const rh={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eh(4,13),y:eh(5,14)};rh.translateX=rh.x,rh.translateY=rh.y;const oh=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Zp);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Af(c);const d=t[o];let f;if($c(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Af(c);for(let n=t;n<e&&null!==d[n];n++)f?Mu(Af(d[n])===f,"All keyframes must be of the same type"):(f=Af(d[n]),Mu(f===u||Jp(u)&&Jp(f),"Keyframes must be of the same dimension as the current value"))}else f=Af(d);if(u!==f)if(Jp(u)&&Jp(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===fc&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return nh.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=rh[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=rh[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),wl&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function ih(e,t,n,r){return(e=>Object.keys(e).some(Zp))(t)?oh(e,t,n,r):{target:t,transitionEnd:r}}const ah=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Jl(t))return;const n=Kp(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Jl(o))continue;const i=Kp(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return ih(e,t=o.target,n,r=o.transitionEnd)},sh={current:null},lh={current:!1};function ch(){if(lh.current=!0,wl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sh.current=e.matches;e.addListener(t),t()}else sh.current=!1}const uh=new WeakMap,dh=Object.keys(Al),fh=dh.length,mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ph=Tl.length;class hh{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Jc.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Il(t),this.isVariantNode=Rl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&ql(t)&&(t.set(a[e],!1),Sf(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,uh.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),lh.current||ch(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sh.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){uh.delete(this.current),this.projection&&this.projection.unmount(),Qc(this.notifyUpdate),Qc(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Ul.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Jc.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let e=0;e<fh;e++){const n=dh[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Al[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&Sl(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ym()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<mh.length;t++){const n=mh[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(ql(i))e.addValue(o,i),Sf(r)&&r.add(o);else if(ql(a))e.addValue(o,Mf(i,{owner:e})),Sf(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Mf(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<ph;e++){const n=Tl[e],r=this.props[n];(Cl(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Mf(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Vc(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ql(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Tf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class gh extends hh{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Bf(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(Cf(c)||xf(c))?c=parseFloat(c):!zf(c)&&Cd.test(l)&&(c=yf(a,l)),e.addValue(a,Mf(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=ah(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class vh extends gh{readValueFromInstance(e,t){if(Ul.has(t)){const e=bf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Zl(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Lm(e,t)}build(e,t,n,r){bc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Bc(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ql(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){zc(e,t,n,r)}}class bh extends gh{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ul.has(t)){const e=bf(t);return e&&e.default||0}return t=Lc.has(t)?t:Oc(t),e.getAttribute(t)}measureInstanceViewportBox(){return ym()}scrapeMotionValuesFromProps(e,t){return jc(e,t)}build(e,t,n,r){Rc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Fc(e,t,0,r)}mount(e){this.isSVGTag=Nc(e.tagName),super.mount(e)}}const yh=(e,t)=>Hl(e)?new bh(t,{enableHardwareAcceleration:!1}):new vh(t,{enableHardwareAcceleration:!0}),xh={...Zf,...ku,...Gp,...{layout:{ProjectionNode:Up,MeasureLayout:qm}}},wh=jl(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Hl(e)?nu:ru,preloadedFeatures:n,useRender:Ac(t),createVisualElement:r,Component:e}}(e,t,xh,yh)));function Eh(){const e=(0,r.useRef)(!1);return El((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function _h(){const e=Eh(),[t,n]=(0,r.useState)(0),o=(0,r.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,r.useCallback)((()=>Jc.postRender(o)),[o]),t]}class Sh extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ch({children:e,isPresent:t}){const n=(0,r.useId)(),o=(0,r.useRef)(null),i=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)((()=>{const{width:e,height:r,top:a,left:s}=i.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),r.createElement(Sh,{isPresent:t,childRef:o,sizeRef:i},r.cloneElement(e,{ref:o}))}const kh=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Hc(Ph),c=(0,r.useId)(),u=(0,r.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))})),a?void 0:[n]);return(0,r.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),r.useEffect((()=>{!n&&!l.size&&o&&o()}),[n]),"popLayout"===s&&(e=r.createElement(Ch,{isPresent:n},e)),r.createElement(xl.Provider,{value:u},e)};function Ph(){return new Map}const Th=e=>e.key||"";const Ih=({children:e,custom:t,initial:n=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Mu(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,r.useContext)(Ol).forceRender||_h()[0],c=Eh(),u=function(e){const t=[];return r.Children.forEach(e,(e=>{(0,r.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=(0,r.useRef)(new Map).current,m=(0,r.useRef)(d),p=(0,r.useRef)(new Map).current,h=(0,r.useRef)(!0);var g;if(El((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Th(e);t.set(n,e)}))}(u,p),m.current=d})),g=()=>{h.current=!0,p.clear(),f.clear()},(0,r.useEffect)((()=>()=>g()),[]),h.current)return r.createElement(r.Fragment,null,d.map((e=>r.createElement(kh,{key:Th(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=m.current.map(Th),b=u.map(Th),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==b.indexOf(t)||f.has(t)||f.set(t,void 0)}return"wait"===s&&f.size&&(d=[]),f.forEach(((e,n)=>{if(-1!==b.indexOf(n))return;const i=p.get(n);if(!i)return;const h=v.indexOf(n);let g=e;if(!g){const e=()=>{p.delete(n),f.delete(n);const e=m.current.findIndex((e=>e.key===n));if(m.current.splice(e,1),!f.size){if(m.current=u,!1===c.current)return;l(),o&&o()}};g=r.createElement(kh,{key:Th(i),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},i),f.set(n,g)}d.splice(h,0,g)})),d=d.map((e=>{const t=e.key;return f.has(t)?e:r.createElement(kh,{key:Th(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),r.createElement(r.Fragment,null,f.size?d:d.map((e=>(0,r.cloneElement)(e))))},Rh=["40em","52em","64em"],Mh=(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>Rh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Rh.length} breakpoints, got index ${t}`);const[n,r]=(0,Uo.useState)(t);return(0,Uo.useEffect)((()=>{const e=()=>{const e=Rh.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};function Nh(e,t={}){const n=Mh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const Dh="4px";function Ah(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(${Dh} * ${e})`}const Oh={name:"zjik7",styles:"display:flex"},zh={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Lh={name:"82a6rk",styles:"flex:1"},Fh={name:"13nosa1",styles:">*{min-height:0;}"},Bh={name:"1pwxzk4",styles:">*{min-width:0;}"};function jh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...l}=rs(function(e){const{isReversed:t,...n}=e;return void 0!==t?(qo()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=Nh(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=ns();return{...l,className:(0,Uo.useMemo)((()=>{const e=Ps({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:Ah(i),justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(Oh,e,u?Fh:Bh,n)}),[t,n,d,c,o,i,u,a,s]),isColumn:u}}const Vh=(0,Uo.createContext)({flexItemDisplay:void 0}),Hh=()=>(0,Uo.useContext)(Vh);const $h=os((function(e,t){const{children:n,isColumn:o,...i}=jh(e);return(0,r.createElement)(Vh.Provider,{value:{flexItemDisplay:o?"block":void 0}},(0,r.createElement)(xs,{...i,ref:t},n))}),"Flex");function Wh(e){const{className:t,display:n,isBlock:r=!1,...o}=rs(e,"FlexItem"),i={},a=Hh().flexItemDisplay;i.Base=Ps({display:n||a},"","");return{...o,className:ns()(zh,i.Base,r&&Lh,t)}}const Uh=os((function(e,t){const n=function(e){return Wh({isBlock:!0,...rs(e,"FlexBlock")})}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"FlexBlock"),Gh=new RegExp(/-left/g),qh=new RegExp(/-right/g),Yh=new RegExp(/Left/g),Kh=new RegExp(/Right/g);function Xh(e){return"left"===e?"right":"right"===e?"left":Gh.test(e)?e.replace(Gh,"-right"):qh.test(e)?e.replace(qh,"-left"):Yh.test(e)?e.replace(Yh,"Right"):Kh.test(e)?e.replace(Kh,"Left"):e}const Zh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Xh(e),t])));function Jh(e={},t){return()=>t?(0,u.isRTL)()?Ps(t,""):Ps(e,""):(0,u.isRTL)()?Ps(Zh(e),""):Ps(e,"")}Jh.watch=()=>(0,u.isRTL)();const Qh=e=>null!=e;const eg=os((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:m,paddingX:p,paddingY:h,...g}=rs(e,"Spacer");return{...g,className:ns()(Qh(n)&&Ps("margin:",Ah(n),";",""),Qh(l)&&Ps("margin-bottom:",Ah(l),";margin-top:",Ah(l),";",""),Qh(s)&&Ps("margin-left:",Ah(s),";margin-right:",Ah(s),";",""),Qh(a)&&Ps("margin-top:",Ah(a),";",""),Qh(r)&&Ps("margin-bottom:",Ah(r),";",""),Qh(o)&&Jh({marginLeft:Ah(o)})(),Qh(i)&&Jh({marginRight:Ah(i)})(),Qh(c)&&Ps("padding:",Ah(c),";",""),Qh(h)&&Ps("padding-bottom:",Ah(h),";padding-top:",Ah(h),";",""),Qh(p)&&Ps("padding-left:",Ah(p),";padding-right:",Ah(p),";",""),Qh(m)&&Ps("padding-top:",Ah(m),";",""),Qh(u)&&Ps("padding-bottom:",Ah(u),";",""),Qh(d)&&Jh({paddingLeft:Ah(d)})(),Qh(f)&&Jh({paddingRight:Ah(f)})(),t)}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Spacer"),tg=eg,ng=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),rg=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M7 11.5h10V13H7z"}));const og=os((function(e,t){const n=Wh(e);return(0,r.createElement)(xs,{...n,ref:t})}),"FlexItem");const ig={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function ag(e){return null!=e}const sg=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,lg="…",cg={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},ug={ellipsis:lg,ellipsizeMode:cg.auto,limit:0,numberOfLines:0};function dg(e="",t){const n={...ug,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===cg.none)return e;let a,s;switch(o){case cg.head:a=0,s=i;break;case cg.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==cg.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=ag(r)?r:lg;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function fg(e){const{className:t,children:n,ellipsis:r=lg,ellipsizeMode:o=cg.auto,limit:i=0,numberOfLines:a=0,...s}=rs(e,"Truncate"),l=ns();let c;"string"==typeof n?c=n:"number"==typeof n&&(c=n.toString());const u=c?dg(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}):n,d=!!c&&o===cg.auto;return{...s,className:(0,Uo.useMemo)((()=>l(d&&!a&&ig,d&&!!a&&Ps("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,a,d]),children:u}}var mg={grad:.9,turn:360,rad:360/(2*Math.PI)},pg=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},hg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},gg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},vg=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},bg=function(e){return{r:gg(e.r,0,255),g:gg(e.g,0,255),b:gg(e.b,0,255),a:gg(e.a)}},yg=function(e){return{r:hg(e.r),g:hg(e.g),b:hg(e.b),a:hg(e.a,3)}},xg=/^#([0-9a-f]{3,8})$/i,wg=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Eg=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},_g=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},Sg=function(e){return{h:vg(e.h),s:gg(e.s,0,100),l:gg(e.l,0,100),a:gg(e.a)}},Cg=function(e){return{h:hg(e.h),s:hg(e.s),l:hg(e.l),a:hg(e.a,3)}},kg=function(e){return _g((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Pg=function(e){return{h:(t=Eg(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Tg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ig=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Mg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ng={string:[[function(e){var t=xg.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?hg(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?hg(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Rg.exec(e)||Mg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:bg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Tg.exec(e)||Ig.exec(e);if(!t)return null;var n,r,o=Sg({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(mg[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return kg(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return pg(t)&&pg(n)&&pg(r)?bg({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!pg(t)||!pg(n)||!pg(r))return null;var a=Sg({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return kg(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!pg(t)||!pg(n)||!pg(r))return null;var a=function(e){return{h:vg(e.h),s:gg(e.s,0,100),v:gg(e.v,0,100),a:gg(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _g(a)},"hsv"]]},Dg=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Ag=function(e){return"string"==typeof e?Dg(e.trim(),Ng.string):"object"==typeof e&&null!==e?Dg(e,Ng.object):[null,void 0]},Og=function(e,t){var n=Pg(e);return{h:n.h,s:gg(n.s+100*t,0,100),l:n.l,a:n.a}},zg=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Lg=function(e,t){var n=Pg(e);return{h:n.h,s:n.s,l:gg(n.l+100*t,0,100),a:n.a}},Fg=function(){function e(e){this.parsed=Ag(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return hg(zg(this.rgba),2)},e.prototype.isDark=function(){return zg(this.rgba)<.5},e.prototype.isLight=function(){return zg(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=yg(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?wg(hg(255*o)):"","#"+wg(t)+wg(n)+wg(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return yg(this.rgba)},e.prototype.toRgbString=function(){return t=(e=yg(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Cg(Pg(this.rgba))},e.prototype.toHslString=function(){return t=(e=Cg(Pg(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Eg(this.rgba),{h:hg(e.h),s:hg(e.s),v:hg(e.v),a:hg(e.a,3)};var e},e.prototype.invert=function(){return Bg({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Bg(Og(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Bg(Og(this.rgba,-e))},e.prototype.grayscale=function(){return Bg(Og(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Bg(Lg(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Bg(Lg(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Bg({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):hg(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Pg(this.rgba);return"number"==typeof e?Bg({h:e,s:t.s,l:t.l,a:t.a}):hg(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Bg(e).toHex()},e}(),Bg=function(e){return e instanceof Fg?e:new Fg(e)},jg=[],Vg=function(e){e.forEach((function(e){jg.indexOf(e)<0&&(e(Fg,Ng),jg.push(e))}))};function Hg(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var m=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));m<c&&(c=m,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}let $g;Vg([Hg]);const Wg=Si((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Bg(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!$g){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),$g=e}return $g}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Ug(e){const t=function(e){const t=Wg(e);return Bg(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Gg="36px",qg="12px",Yg={controlSurfaceColor:Ds.white,controlTextActiveColor:Ds.theme.accent,controlPaddingX:qg,controlPaddingXLarge:`calc(${qg} * 1.3334)`,controlPaddingXSmall:`calc(${qg} / 1.3334)`,controlBackgroundColor:Ds.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Ds.theme.accent}`,controlDestructiveBorderColor:Ds.alert.red,controlHeight:Gg,controlHeightXSmall:`calc( ${Gg} * 0.6 )`,controlHeightSmall:`calc( ${Gg} * 0.8 )`,controlHeightLarge:`calc( ${Gg} * 1.2 )`,controlHeightXLarge:`calc( ${Gg} * 1.4 )`},Kg={toggleGroupControlBackgroundColor:Yg.controlBackgroundColor,toggleGroupControlBorderColor:Ds.ui.border,toggleGroupControlBackdropBackgroundColor:Yg.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Ds.ui.border,toggleGroupControlButtonColorActive:Yg.controlBackgroundColor},Xg=Object.assign({},Yg,Kg,{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,radiusBlockUi:"2px",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.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Ah(2)}`,cardPaddingSmall:`${Ah(4)}`,cardPaddingMedium:`${Ah(4)} ${Ah(6)}`,cardPaddingLarge:`${Ah(6)} ${Ah(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Ds.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:Ds.white,surfaceColor:Ds.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)"});const Zg=Ps("color:",Ds.gray[900],";line-height:",Xg.fontLineHeightBase,";margin:0;",""),Jg={name:"4zleql",styles:"display:block"},Qg=Ps("color:",Ds.alert.green,";",""),ev=Ps("color:",Ds.alert.red,";",""),tv=Ps("color:",Ds.gray[700],";",""),nv=Ps("mark{background:",Ds.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),rv={name:"50zrmy",styles:"text-transform:uppercase"};var ov=o(9664);const iv=Si((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const av=13,sv={body:av,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},lv=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function cv(e=av){if(e in sv)return cv(sv[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${av})`} * ${Xg.fontSize})`}function uv(e=3){if(!lv.includes(e))return cv(e);return Xg[`fontSizeH${e}`]}var dv={name:"50zrmy",styles:"text-transform:uppercase"};function fv(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:a,ellipsizeMode:s,isDestructive:l=!1,display:c,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:f,highlightSanitize:m,isBlock:p=!1,letterSpacing:h,lineHeight:g,optimizeReadabilityFor:v,size:b,truncate:y=!1,upperCase:x=!1,variant:w,weight:E=Xg.fontWeight,..._}=rs(t,"Text");let S=o;const C=Array.isArray(f),k="caption"===b;if(C){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:a,highlightClassName:s="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const p=i,h=(0,ov.findAll)({autoEscape:r,caseSensitive:o,findChunks:a,sanitize:u,searchWords:d,textToHighlight:p}),g=c;let v,b=-1,y="";const x=h.map(((r,i)=>{const a=p.substr(r.start,r.end-r.start);if(r.highlight){let r;b++,r="object"==typeof s?o?s[a]:(s=iv(s))[a.toLowerCase()]:s;const c=b===+t;y=`${r} ${c?e:""}`,v=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:a,className:y,key:i,style:v};return"string"!=typeof g&&(u.highlightIndex=b),(0,Uo.createElement)(g,u)}return(0,Uo.createElement)("span",{children:a,className:f,key:i,style:m})}));return x}({autoEscape:u,children:o,caseSensitive:d,searchWords:f,sanitize:m})}const P=ns();let T;!0===y&&(T="auto"),!1===y&&(T="none");const I=fg({..._,className:(0,Uo.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Xg.controlHeight} + ${Ah(2)})`;switch(e){case"large":n=`calc(${Xg.controlHeightLarge} + ${Ah(2)})`;break;case"small":n=`calc(${Xg.controlHeightSmall} + ${Ah(2)})`;break;case"xSmall":n=`calc(${Xg.controlHeightXSmall} + ${Ah(2)})`}return n}(n,g);if(t.Base=Ps({color:a,display:c,fontSize:cv(b),fontWeight:E,lineHeight:o,letterSpacing:h,textAlign:r},"",""),t.upperCase=dv,t.optimalTextColor=null,v){const e="dark"===Ug(v);t.optimalTextColor=Ps(e?{color:Ds.gray[900]}:{color:Ds.white},"","")}return P(Zg,t.Base,t.optimalTextColor,l&&ev,!!C&&nv,p&&Jg,k&&tv,w&&e[w],x&&t.upperCase,i)}),[n,r,i,a,P,c,p,k,l,C,h,g,v,b,x,w,E]),children:o,ellipsizeMode:s||T});return!y&&Array.isArray(o)&&(S=Uo.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return ls(e,["Link"])?(0,Uo.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...I,children:y?I.children:S}}const mv=os((function(e,t){const n=fv(e);return(0,r.createElement)(xs,{as:"span",...n,ref:t})}),"Text");const pv={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var hv={name:"1739oy8",styles:"z-index:1"};const gv=({isFocused:e})=>e?hv:"",vv=bs($h,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",gv,";");var bv={name:"1d3w5wq",styles:"width:100%"};const yv=bs("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>Ps({backgroundColor:e?Ds.ui.backgroundDisabled:Ds.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Ps("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):bv),";"),xv=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?Ps("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},wv=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Ah(4),paddingRight:Ah(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Ah(2),paddingRight:Ah(2)},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Ah(2),paddingRight:Ah(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Ah(4),paddingRight:Ah(4)}};return t||(n.default=n.compact),n[e]||n.default},Ev=bs("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Ds.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=Ps("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=Ps("&:active{cursor:",t,";}","")),Ps(n," ",r,";","")})," ",(({disabled:e})=>e?Ps({color:Ds.ui.textDisabled},"",""):"")," ",xv," ",(e=>Ps(wv(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>Ps({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),_v=bs(mv,{target:"em5sgkm4"})("&&&{",pv,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Sv=e=>(0,r.createElement)(_v,{...e,as:"label"}),Cv=bs(og,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),kv=bs("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isBorderless:t,isFocused:n})=>{let r,o,i,a=t?"transparent":Ds.ui.border;return n&&(a=Ds.ui.borderFocus,r=Xg.controlBoxShadowFocus,o="2px solid transparent",i="-2px"),e&&(a=t?"transparent":Ds.ui.borderDisabled),Ps({boxShadow:r,borderColor:a,borderStyle:"solid",borderWidth:1,outline:o,outlineOffset:i},"","")})," ",Jh({paddingLeft:2}),";}"),Pv=bs("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Tv=bs("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const Iv=(0,Uo.memo)((function({disabled:e=!1,isBorderless:t=!1,isFocused:n=!1}){return(0,r.createElement)(kv,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t,isFocused:n})})),Rv=Iv;function Mv({children:e,hideLabelFromVision:t,htmlFor:n,...o}){return e?t?(0,r.createElement)(ws,{as:"label",htmlFor:n},e):(0,r.createElement)(Cv,null,(0,r.createElement)(Sv,{htmlFor:n,...o},e)):null}function Nv(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function Dv(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function Av(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:o,children:i,className:a,disabled:s=!1,hideLabelFromVision:l=!1,labelPosition:c,id:u,isBorderless:f=!1,isFocused:m=!1,label:p,prefix:h,size:g="default",suffix:v,...b}=Nv(rs(e,"InputBase")),y=function(e){const t=(0,d.useInstanceId)(Av);return e||`input-base-control-${t}`}(u),x=l||!p,{paddingLeft:w,paddingRight:E}=wv({inputSize:g,__next40pxDefaultSize:n}),_=(0,Uo.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:w},InputControlSuffixWrapper:{paddingRight:E}})),[w,E]);return(0,r.createElement)(vv,{...b,...Dv(c),className:a,gap:2,isFocused:m,labelPosition:c,ref:t},(0,r.createElement)(Mv,{className:"components-input-control__label",hideLabelFromVision:l,labelPosition:c,htmlFor:y},p),(0,r.createElement)(yv,{__unstableInputWidth:o,className:"components-input-control__container",disabled:s,hideLabel:x,labelPosition:c},(0,r.createElement)(mi,{value:_},h&&(0,r.createElement)(Pv,{className:"components-input-control__prefix"},h),i,v&&(0,r.createElement)(Tv,{className:"components-input-control__suffix"},v)),(0,r.createElement)(Rv,{disabled:s,isBorderless:f,isFocused:m})))}const Ov=os(Av,"InputBase");const zv={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Lv(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Fv(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Lv(t-e,n-t,r)+t:e>n?+Lv(e-n,n-t,r)+n:e}function Bv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function jv(e,t,n){return(t=Bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vv(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $v={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Wv(e){return e?e[0].toUpperCase()+e.slice(1):""}const Uv=["enter","leave"];function Gv(e,t="",n=!1){const r=$v[e],o=r&&r[t]||t;return"on"+Wv(e)+Wv(o)+(function(e=!1,t){return e&&!Uv.includes(t)}(n,o)?"Capture":"")}const qv=["gotpointercapture","lostpointercapture"];function Yv(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=qv.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Kv(e){return"touches"in e}function Xv(e){return Kv(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Zv(e){return Kv(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Jv(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Qv(e){const t=Zv(e);return Kv(e)?t.identifier:t.pointerId}function eb(e){const t=Zv(e);return[t.clientX,t.clientY]}function tb(e,...t){return"function"==typeof e?e(...t):e}function nb(){}function rb(...e){return 0===e.length?nb:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function ob(e,t){return Object.assign({},t,e||{})}class ib{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?tb(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);zv.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=tb(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[p,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[p<g?-1:p>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const x=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[Fv(t,i,a,r),Fv(n,s,l,o)]}(t._bounds,t.offset,x),t.delta=zv.sub(t.offset,f),this.computeMovement(),m&&(!t.last||o>32)){t.delta=zv.sub(t.offset,f);const e=t.delta.map(Math.abs);zv.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o])}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Hv(Hv(Hv({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class ab extends ib{constructor(...e){super(...e),jv(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=zv.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=zv.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Xv(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const sb=e=>e,lb={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>Hv(Hv({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return zv.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?zv.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||sb},threshold:e=>zv.toVector(e,0)};const cb=Hv(Hv({},lb),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>cb.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),ub={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const db="undefined"!=typeof window&&window.document&&window.document.createElement;function fb(){return db&&"ontouchstart"in window||db&&window.navigator.maxTouchPoints>1}const mb={isBrowser:db,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:fb(),touchscreen:fb(),pointer:db&&"onpointerdown"in window,pointerLock:db&&"exitPointerLock"in window.document},pb={mouse:0,touch:0,pen:8},hb=Hv(Hv({},cb),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&mb.pointerLock,mb.touch&&n?"touch":this.pointerLock?"mouse":mb.pointer&&!o?"pointer":mb.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,mb.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=zv.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(zv.toVector(e)),distance:this.transform(zv.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?Hv(Hv({},pb),e):pb,keyboardDisplacement:(e=10)=>e});Hv(Hv({},lb),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!mb.touch&&mb.gesture)return"gesture";if(mb.touch&&r)return"touch";if(mb.touchscreen){if(mb.pointer)return"pointer";if(mb.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=ob(tb(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=ob(tb(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return zv.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});Hv(Hv({},cb),{},{mouseOnly:(e=!0)=>e});Hv(Hv({},cb),{},{mouseOnly:(e=!0)=>e});const gb=new Map,vb=new Map;const bb={key:"drag",engine:class extends ab{constructor(...e){super(...e),jv(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=cb.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Qv(e),n._pointerActive=!0,this.computeValues(eb(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Xv(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;if(t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=Qv(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=eb(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=zv.sub(o,t._values),this.computeValues(o)),zv.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Qv(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t.direction,[o,i]=t.velocity,[a,s]=t.movement,[l,c]=n.swipe.velocity,[u,d]=n.swipe.distance,f=n.swipe.duration;t.elapsedTime<f&&(Math.abs(o)>l&&Math.abs(a)>u&&(t.swipe[0]=e),Math.abs(i)>c&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=ub[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,zv.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in ub&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:hb};function yb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const xb={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(mb.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},wb=["target","eventOptions","window","enabled","transform"];function Eb(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Eb(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class _b{constructor(e,t){jv(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=$v[e];return e+(n&&n[t]||t)}(t,n),s=Hv(Hv({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class Sb{constructor(){jv(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class Cb{constructor(e){jv(this,"gestures",new Set),jv(this,"_targetEventStore",new _b(this)),jv(this,"gestureEventStores",{}),jv(this,"gestureTimeoutStores",{}),jv(this,"handlers",{}),jv(this,"config",{}),jv(this,"pointerIds",new Set),jv(this,"touchIds",new Set),jv(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&kb(e,"drag");t.wheel&&kb(e,"wheel");t.scroll&&kb(e,"scroll");t.move&&kb(e,"move");t.pinch&&kb(e,"pinch");t.hover&&kb(e,"hover")}(this,e)}setEventIds(e){return Kv(e)?(this.touchIds=new Set(Jv(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=yb(r,wb);if(n.shared=Eb({target:o,eventOptions:i,window:a,enabled:s,transform:l},xb),t){const e=vb.get(t);n[t]=Eb(Hv({shared:n.shared},c),e)}else for(const e in c){const t=vb.get(e);t&&(n[e]=Eb(Hv({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=Pb(n,o.eventOptions,!!r);if(o.enabled){new(gb.get(t))(this,e,t).bind(i)}}const o=Pb(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Hv(Hv({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=rb(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Yv(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function kb(e,t){e.gestures.add(t),e.gestureEventStores[t]=new _b(e,t),e.gestureTimeoutStores[t]=new Sb}const Pb=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Gv(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function Tb(e,t={},n,r){const o=s().useMemo((()=>new Cb(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),s().useEffect(o.effect.bind(o)),s().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function Ib(e,t){var n;return n=bb,gb.set(n.key,n.engine),vb.set(n.key,n.resolver),Tb({drag:e},t||{},"drag")}const Rb=e=>e,Mb={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},Nb="CHANGE",Db="COMMIT",Ab="CONTROL",Ob="DRAG_END",zb="DRAG_START",Lb="DRAG",Fb="INVALIDATE",Bb="PRESS_DOWN",jb="PRESS_ENTER",Vb="PRESS_UP",Hb="RESET";function $b(e=Rb,t=Mb,n){const[r,o]=(0,Uo.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case Ab:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Vb:case Bb:n.isDirty=!1;break;case zb:n.isDragging=!0;break;case Ob:n.isDragging=!1;break;case Nb:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case Db:n.value=t.payload.value,n.isDirty=!1;break;case Hb:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Fb:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=Mb){const{value:t}=e;return{...Mb,...e,initialValue:t}}(t));var i;const a=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},s=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=a(Nb),u=a(Hb),d=a(Db),f=l(zb),m=l(Lb),p=l(Ob),h=s(Vb),g=s(Bb),v=s(jb),b=(0,Uo.useRef)(r),y=(0,Uo.useRef)({value:t.value,onChangeHandler:n});return(0,Uo.useLayoutEffect)((()=>{b.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,Uo.useLayoutEffect)((()=>{var e;void 0===b.current._event||r.value===y.current.value||r.isDirty||y.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:b.current._event})}),[r.value,r.isDirty]),(0,Uo.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:Ab,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:m,dragEnd:p,dragStart:f,invalidate:(e,t)=>o({type:Fb,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:h,reset:u,state:r}}const Wb=()=>{};const Ub=(0,Uo.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:o,isDragEnabled:i=!1,isFocused:a,isPressEnterToChange:s=!1,onBlur:l=Wb,onChange:c=Wb,onDrag:u=Wb,onDragEnd:d=Wb,onDragStart:f=Wb,onFocus:m=Wb,onKeyDown:p=Wb,onValidate:h=Wb,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:x,...w},E){const{state:_,change:S,commit:C,drag:k,dragEnd:P,dragStart:T,invalidate:I,pressDown:R,pressEnter:M,pressUp:N,reset:D}=$b(b,{isDragEnabled:i,value:y,isPressEnterToChange:s},c),{value:A,isDragging:O,isDirty:z}=_,L=(0,Uo.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,Uo.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(O,t),B=e=>{const t=e.currentTarget.value;try{h(t),C(t,e)}catch(t){I(t,e)}},j=Ib((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void P(e);u(e),k(e),O||(f(e),T(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:i,pointer:{capture:!1}}),V=i?j():{};let H;return"number"===x&&(H=e=>{w.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,r.createElement)(Ev,{...w,...V,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:O,id:o,onBlur:e=>{l(e),v?.(!1),!z&&e.target.validity.valid||(L.current=!0,B(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{m(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(p(e),t){case"ArrowUp":N(e);break;case"ArrowDown":R(e);break;case"Enter":M(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&z&&(e.preventDefault(),D(y,e))}},onMouseDown:H,ref:E,inputSize:g,value:null!=A?A:"",type:x})})),Gb=Ub,qb={"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 Yb(e){var t;return null!==(t=qb[e])&&void 0!==t?t:""}const Kb={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Xb=bs("div",{target:"ej5x27r4"})("font-family:",Yb("default.fontFamily"),";font-size:",Yb("default.fontSize"),";",Kb,";"),Zb=bs("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&Ps("margin-bottom:",Ah(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Jb=Ps(pv,";display:inline-block;margin-bottom:",Ah(2),";padding:0;",""),Qb=bs("label",{target:"ej5x27r2"})(Jb,";");var ey={name:"11yad0w",styles:"margin-bottom:revert"};const ty=bs("p",{target:"ej5x27r1"})("margin-top:",Ah(2),";margin-bottom:0;font-size:",Yb("helpText.fontSize"),";font-style:normal;color:",Ds.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&ey),";"),ny=bs("span",{target:"ej5x27r0"})(Jb,";"),ry=({className:e,children:t,...n})=>(0,r.createElement)(ny,{...n,className:c()("components-base-control__label",e)},t),oy=Object.assign(is((e=>{const{__nextHasNoMarginBottom:t=!1,id:n,label:o,hideLabelFromVision:i=!1,help:a,className:s,children:l}=rs(e,"BaseControl");return(0,r.createElement)(Xb,{className:s},(0,r.createElement)(Zb,{className:"components-base-control__field",__nextHasNoMarginBottom:t},o&&n&&(i?(0,r.createElement)(ws,{as:"label",htmlFor:n},o):(0,r.createElement)(Qb,{className:"components-base-control__label",htmlFor:n},o)),o&&!n&&(i?(0,r.createElement)(ws,{as:"label"},o):(0,r.createElement)(ry,null,o)),l),!!a&&(0,r.createElement)(ty,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))}),"BaseControl"),{VisualLabel:ry}),iy=oy,ay=()=>{};const sy=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:o=(e=>e),__unstableInputWidth:i,className:a,disabled:s=!1,help:l,hideLabelFromVision:u=!1,id:f,isPressEnterToChange:m=!1,label:p,labelPosition:h="top",onChange:g=ay,onValidate:v=ay,onKeyDown:b=ay,prefix:y,size:x="default",style:w,suffix:E,value:_,...S}=Nv(e),[C,k]=(0,Uo.useState)(!1),P=function(e){const t=(0,d.useInstanceId)(sy);return e||`inspector-input-control-${t}`}(f),T=c()("components-input-control",a),I=function(e){const t=(0,Uo.useRef)(e.value),[n,r]=(0,Uo.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Uo.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:S.onBlur,onChange:g}),R=l?{["string"==typeof l?"aria-describedby":"aria-details"]:`${P}__help`}:{};return(0,r.createElement)(iy,{className:T,help:l,id:P,__nextHasNoMarginBottom:!0},(0,r.createElement)(Ov,{__next40pxDefaultSize:n,__unstableInputWidth:i,disabled:s,gap:3,hideLabelFromVision:u,id:P,isFocused:C,justify:"left",label:p,labelPosition:h,prefix:y,size:x,style:w,suffix:E},(0,r.createElement)(Gb,{...S,...R,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:s,id:P,isFocused:C,isPressEnterToChange:m,onKeyDown:b,onValidate:v,paddingInlineStart:y?Ah(2):void 0,paddingInlineEnd:E?Ah(2):void 0,ref:t,setIsFocused:k,size:x,stateReducer:o,...I})))})),ly=sy;const cy=function({icon:e,className:t,size:n=20,style:o={},...i}){const a=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...o};return(0,r.createElement)("span",{className:a,style:s,...i})};const uy=function({icon:e=null,size:t=("string"==typeof e?20:24),...r}){if("string"==typeof e)return(0,Uo.createElement)(cy,{icon:e,size:t,...r});if((0,Uo.isValidElement)(e)&&cy===e.type)return(0,Uo.cloneElement)(e,{...r});if("function"==typeof e)return(0,Uo.createElement)(e,{size:t,...r});if(e&&("svg"===e.type||e.type===n.SVG)){const o={...e.props,width:t,height:t,...r};return(0,Uo.createElement)(n.SVG,{...o})}return(0,Uo.isValidElement)(e)?(0,Uo.cloneElement)(e,{size:t,...r}):e},dy=["onMouseDown","onClick"];const fy=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isBusy:o,isDestructive:i,className:a,disabled:s,icon:l,iconPosition:u="left",iconSize:f,showTooltip:m,tooltipPosition:p,shortcut:h,label:g,children:v,size:b="default",text:y,variant:x,__experimentalIsFocusable:w,describedBy:E,..._}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isPressed:i,isSmall:a,size:s,variant:l,...c}){let u=s,d=l;const f={"aria-pressed":i};var m,p,h,g,v,b;return a&&(null!==(m=u)&&void 0!==m||(u="small")),t&&(null!==(p=d)&&void 0!==p||(d="primary")),r&&(null!==(h=d)&&void 0!==h||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&(qo()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(v=d)&&void 0!==v||(d="secondary")),o&&(null!==(b=d)&&void 0!==b||(d="link")),{...f,...c,size:u,variant:d}}(e),{href:S,target:C,"aria-checked":k,"aria-pressed":P,"aria-selected":T,...I}="href"in _?_:{href:void 0,target:void 0,..._},R=(0,d.useInstanceId)(fy,"components-button__description"),M="string"==typeof v&&!!v||Array.isArray(v)&&v?.[0]&&null!==v[0]&&"components-tooltip"!==v?.[0]?.props?.className,N=c()("components-button",a,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===b,"is-compact":"compact"===b,"is-tertiary":"tertiary"===x,"is-pressed":[!0,"true","mixed"].includes(P),"is-pressed-mixed":"mixed"===P,"is-busy":o,"is-link":"link"===x,"is-destructive":i,"has-text":!!l&&(M||y),"has-icon":!!l}),D=s&&!w,A=void 0===S||D?"button":"a",O="button"===A?{type:"button",disabled:D,"aria-checked":k,"aria-pressed":P,"aria-selected":T}:{},z="a"===A?{href:S,target:C}:{};if(s&&w){O["aria-disabled"]=!0,z["aria-disabled"]=!0;for(const e of dy)I[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const L=!D&&(m&&!!g||!!h||!!g&&!v?.length&&!1!==m),F=E?R:void 0,B=I["aria-describedby"]||F,j={className:N,"aria-label":I["aria-label"]||g,"aria-describedby":B,ref:t},V=(0,r.createElement)(r.Fragment,null,l&&"left"===u&&(0,r.createElement)(uy,{icon:l,size:f}),y&&(0,r.createElement)(r.Fragment,null,y),l&&"right"===u&&(0,r.createElement)(uy,{icon:l,size:f}),v),H="a"===A?(0,r.createElement)("a",{...z,...I,...j},V):(0,r.createElement)("button",{...O,...I,...j},V),$=L?{text:v?.length&&E?E:g,shortcut:h,placement:p&&Xo(p)}:{};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ri,{...$},H),E&&(0,r.createElement)(ws,null,(0,r.createElement)("span",{id:F},E)))})),my=fy;var py={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const hy=({hideHTMLArrows:e})=>e?py:"",gy=bs(ly,{target:"ep09it41"})(hy,";"),vy=bs(my,{target:"ep09it40"})("&&&&&{color:",Ds.theme.accent,";}"),by={smallSpinButtons:Ps("width:",Ah(5),";min-width:",Ah(5),";height:",Ah(5),";","")};function yy(e){const t=Number(e);return isNaN(t)?0:t}function xy(...e){return e.reduce(((e,t)=>e+yy(t)),0)}function wy(e,t,n){const r=yy(e);return Math.max(t,Math.min(r,n))}function Ey(e=0,t=1/0,n=1/0,r=1){const o=yy(e),i=yy(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=wy(Math.round(o/i)*i,t,n);return a?yy(s.toFixed(a)):s}const _y={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"}},Sy={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"}};function Cy(e){return"string"==typeof e?[e]:Uo.Children.toArray(e).filter((e=>(0,Uo.isValidElement)(e)))}function ky(e){const{alignment:t="edge",children:n,direction:o,spacing:i=2,...a}=rs(e,"HStack"),s=function(e,t="row"){if(!ag(e))return{};const n="column"===t?Sy:_y;return e in n?n[e]:{align:e}}(t,o),l=Cy(n).map(((e,t)=>{if(ls(e,["Spacer"])){const n=e,o=n.key||`hstack-${t}`;return(0,r.createElement)(og,{isBlock:!0,key:o,...n.props})}return e}));return jh({children:l,direction:o,justify:"center",...s,...a,gap:i})}const Py=os((function(e,t){const n=ky(e);return(0,r.createElement)(xs,{...n,ref:t})}),"HStack"),Ty=()=>{};const Iy=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:o,dragDirection:i="n",hideHTMLArrows:a=!1,spinControls:s=(a?"none":"native"),isDragEnabled:l=!0,isShiftStepEnabled:f=!0,label:m,max:p=1/0,min:h=-1/0,required:g=!1,shiftStep:v=10,step:b=1,spinFactor:y=1,type:x="number",value:w,size:E="default",suffix:_,onChange:S=Ty,...C}=Nv(e);a&&qo()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const k=(0,Uo.useRef)(),P=(0,d.useMergeRefs)([k,t]),T="any"===b,I=T?1:sg(b),R=sg(y)*I,M=Ey(0,h,p,I),N=(e,t)=>T?""+Math.min(p,Math.max(h,sg(e))):""+Ey(e,h,p,null!=t?t:I),D="number"===x?"off":void 0,A=c()("components-number-control",o),O=ns()("small"===E&&by.smallSpinButtons),z=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&f,o=r?sg(v)*R:R;let i=function(e){const t=""===e;return!ag(e)||t}(e)?M:e;return"up"===t?i=xy(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=yy(t);return 0===n?r:e-r}),0)}(i,o)),N(i,r?o:void 0)},L=e=>t=>S(String(z(w,e,t)),{event:{...t,target:k.current}});return(0,r.createElement)(gy,{autoComplete:D,inputMode:"numeric",...C,className:A,dragDirection:i,hideHTMLArrows:"native"!==s,isDragEnabled:l,label:m,max:p,min:h,ref:P,required:g,step:b,type:x,value:w,__unstableStateReducer:(e,t)=>{var r;const o=((e,t)=>{const n={...e},{type:r,payload:o}=t,a=o.event,s=n.value;if(r!==Vb&&r!==Bb||(n.value=z(s,r===Vb?"up":"down",a)),r===Lb&&l){const[e,t]=o.delta,r=o.shiftKey&&f,a=r?sg(v)*R:R;let l,c;switch(i){case"n":c=t,l=-1;break;case"e":c=e,l=(0,u.isRTL)()?-1:1;break;case"s":c=t,l=1;break;case"w":c=e,l=(0,u.isRTL)()?1:-1}if(0!==c){c=Math.ceil(Math.abs(c))*Math.sign(c);const e=c*a*l;n.value=N(xy(s,e),r?a:void 0)}}if(r===jb||r===Db){const e=!1===g&&""===s;n.value=e?s:N(s)}return n})(e,t);return null!==(r=n?.(o,t))&&void 0!==r?r:o},size:E,suffix:"custom"===s?(0,r.createElement)(r.Fragment,null,_,(0,r.createElement)(tg,{marginBottom:0,marginRight:2},(0,r.createElement)(Py,{spacing:1},(0,r.createElement)(vy,{className:O,icon:ng,size:"small",label:(0,u.__)("Increment"),onClick:L("up")}),(0,r.createElement)(vy,{className:O,icon:rg,size:"small",label:(0,u.__)("Decrement"),onClick:L("down")})))):_,onChange:S})})),Ry=Iy;const My=bs("div",{target:"eln3bjz3"})("border-radius:50%;border:",Xg.borderWidth," solid ",Ds.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),Ny=bs("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),Dy=bs("div",{target:"eln3bjz1"})("background:",Ds.theme.accent,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),Ay=bs(mv,{target:"eln3bjz0"})("color:",Ds.theme.accent,";margin-right:",Ah(3),";");const Oy=function({value:e,onChange:t,...n}){const o=(0,Uo.useRef)(null),i=(0,Uo.useRef)(),a=(0,Uo.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==i.current&&void 0!==t)){const{x:n,y:r}=i.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,d.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===o.current)return;const e=o.current.getBoundingClientRect();i.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,Uo.useEffect)((()=>{c?(void 0===a.current&&(a.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=a.current||"",a.current=void 0)}),[c]),(0,r.createElement)(My,{ref:o,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,r.createElement)(Ny,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,r.createElement)(Dy,{className:"components-angle-picker-control__angle-circle-indicator"})))};const zy=(0,Uo.forwardRef)((function(e,t){const{className:n,label:o=(0,u.__)("Angle"),onChange:i,value:a,...s}=e,l=c()("components-angle-picker-control",n),d=(0,r.createElement)(Ay,null,"°"),[f,m]=(0,u.isRTL)()?[d,null]:[null,d];return(0,r.createElement)($h,{...s,ref:t,className:l,gap:2},(0,r.createElement)(Uh,null,(0,r.createElement)(Ry,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:a,spinControls:"none",prefix:f,suffix:m})),(0,r.createElement)(tg,{marginBottom:"1",marginTop:"auto"},(0,r.createElement)(Oy,{"aria-hidden":"true",value:a,onChange:i})))}));var Ly=o(9681),Fy=o.n(Ly);const By=window.wp.richText,jy=window.wp.a11y,Vy=window.wp.keycodes,Hy=new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),$y=e=>Fy()(e).toLocaleLowerCase().replace(Hy,"-");function Wy(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),_i(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function Uy(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Gy(e){return t=>{const[n,r]=(0,Uo.useState)([]);return(0,Uo.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,d.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+Uy(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:a=[]}=i;if("string"==typeof i.label&&(a=[...a,i.label]),a.some((t=>e.test(Fy()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}const qy=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Po({element:n.current,padding:r}).fn(t):{}:n?Po({element:n,padding:r}).fn(t):{};var o}});var Yy="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Ky(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ky(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ky(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Xy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){const n=Xy(e);return Math.round(t*n)/n}function Jy(e){const t=r.useRef(e);return Yy((()=>{t.current=e})),t}function Qy(){!lh.current&&ch();const[e]=(0,r.useState)(sh.current);return e}const ex=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));let tx=0;function nx(e){const t=document.scrollingElement||document.body;e&&(tx=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=tx)}let rx=0;const ox=function(){return(0,Uo.useEffect)((()=>(0===rx&&nx(!0),++rx,()=>{1===rx&&nx(!1),--rx})),[]),null},ix=Symbol(),ax=Symbol(),sx=Symbol();let lx=(e,t)=>new Proxy(e,t);const cx=Object.getPrototypeOf,ux=new WeakMap,dx=e=>e&&(ux.has(e)?ux.get(e):cx(e)===Object.prototype||cx(e)===Array.prototype),fx=e=>"object"==typeof e&&null!==e,mx=new WeakMap,px=e=>e[sx]||e,hx=(e,t,n)=>{if(!dx(e))return e;const r=px(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(ix)||r.add(t)}},i={get:(t,r)=>r===sx?e:(o(r),hx(t[r],n.a,n.c)),has:(t,i)=>i===ax?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(ix),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=lx(o?(e=>{let t=mx.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(cx(e),n)}mx.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},gx=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},vx=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!fx(e)||!fx(t))return!0;const o=n.get(px(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===ix?gx(e,t):vx(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},bx=(e,t=!0)=>{ux.set(e,t)},yx=e=>"object"==typeof e&&null!==e,xx=new WeakSet,wx=Symbol("VERSION"),Ex=Symbol("LISTENERS"),_x=Symbol("SNAPSHOT"),Sx=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>yx(e)&&!xx.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return bx(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(xx.has(i))bx(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[Ex])?s[e]=i[_x]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!yx(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},m=new Map,p=e=>{let t=m.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},m.set(e,t)),t},h=e=>{const t=m.get(e);return m.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get:(e,t,n)=>t===wx?u:t===Ex?d:t===_x?a(u,e,n):Reflect.get(e,t,n),deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Ex];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[Ex];let m;return d&&d.delete(h(i)),yx(a)&&(a=(e=>dx(e)&&e[sx]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?m=a:a instanceof Promise?m=a.then((e=>(m[r]=e,f(["resolve",[i],e]),e))).catch((e=>{m[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Ex])?(m=a,m[Ex].add(p(i))):n(a)?(m=kx(a),m[Ex].add(p(i))):m=a,Reflect.set(t,i,m,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,xx,wx,Ex,_x,e,t,n,r,o,i,a,s,l],[Cx]=Sx();function kx(e={}){return Cx(e)}function Px(e,t,n){let r;(null==e?void 0:e[Ex])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[Ex].add(i),()=>{e[Ex].delete(i)}}function Tx(e){return(null==e?void 0:e[_x])||console.warn("Please use proxy object"),e[_x]}function Ix(e){return xx.add(e),e}const{useSyncExternalStore:Rx}=Ft,Mx=(e,t)=>{const n=(0,r.useRef)();(0,r.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;fx(e)&&r.add(e);const a=fx(e)&&t.get(px(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,r.useDebugValue)(n.current)};function Nx(e,t){const n=null==t?void 0:t.sync,o=(0,r.useRef)(),i=(0,r.useRef)();let a=!0;const s=Rx((0,r.useCallback)((t=>{const r=Px(e,t,n);return t(),r}),[e,n]),(()=>{const t=Tx(e);try{if(!a&&o.current&&i.current&&!vx(o.current,t,i.current,new WeakMap))return o.current}catch(e){}return t}),(()=>Tx(e)));a=!1;const l=new WeakMap;(0,r.useEffect)((()=>{o.current=s,i.current=l})),Mx(s,l);const c=(0,r.useMemo)((()=>new WeakMap),[]);return hx(s,l,c)}Symbol();function Dx(e){const t=kx({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON:()=>({}),forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const Ax={slots:Dx(),fills:Dx(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},Ox=(0,Uo.createContext)(Ax);function zx(e){const t=(0,Uo.useContext)(Ox);return{...Nx(t.slots,{sync:!0}).get(e),...(0,Uo.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}const Lx={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},Fx=(0,Uo.createContext)(Lx),Bx=e=>{const{getSlot:t,subscribe:n}=(0,Uo.useContext)(Fx);return(0,Uo.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function jx({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Uo.useContext)(Fx),o=Bx(e),i=(0,Uo.useRef)({name:e,children:t});return(0,Uo.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Uo.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Uo.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Vx(e){return"function"==typeof e}class Hx extends Uo.Component{constructor(e){super(e),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name,this),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:o={},getFills:i}=this.props,a=(null!==(e=i(n,this))&&void 0!==e?e:[]).map((e=>{const t=Vx(e.children)?e.children(o):e.children;return Uo.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,Uo.cloneElement)(e,{key:n})}))})).filter((e=>!(0,Uo.isEmptyElement)(e)));return(0,r.createElement)(r.Fragment,null,Vx(t)?t(a):a)}}const $x=e=>(0,r.createElement)(Fx.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:o})=>(0,r.createElement)(Hx,{...e,registerSlot:t,unregisterSlot:n,getFills:o}))),Wx={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Ux;const Gx=new Uint8Array(16);function qx(){if(!Ux&&(Ux="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ux))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ux(Gx)}const Yx=[];for(let e=0;e<256;++e)Yx.push((e+256).toString(16).slice(1));function Kx(e,t=0){return Yx[e[t+0]]+Yx[e[t+1]]+Yx[e[t+2]]+Yx[e[t+3]]+"-"+Yx[e[t+4]]+Yx[e[t+5]]+"-"+Yx[e[t+6]]+Yx[e[t+7]]+"-"+Yx[e[t+8]]+Yx[e[t+9]]+"-"+Yx[e[t+10]]+Yx[e[t+11]]+Yx[e[t+12]]+Yx[e[t+13]]+Yx[e[t+14]]+Yx[e[t+15]]}const Xx=function(e,t,n){if(Wx.randomUUID&&!t&&!e)return Wx.randomUUID();const r=(e=e||{}).random||(e.rng||qx)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Kx(r)},Zx=new Set,Jx=new WeakMap;function Qx(e){const{children:t,document:n}=e;if(!n)return null;const o=(e=>{if(Jx.has(e))return Jx.get(e);let t=Xx().replace(/[0-9]/g,"");for(;Zx.has(t);)t=Xx().replace(/[0-9]/g,"");Zx.add(t);const n=Pa({container:e,key:t});return Jx.set(e,n),n})(n.head);return(0,r.createElement)(Wa,{value:o},t)}const ew=Qx;function tw(e){var t;const{name:n,children:o}=e,{registerFill:i,unregisterFill:a,...s}=zx(n),l=function(){const[,e]=(0,Uo.useState)({}),t=(0,Uo.useRef)(!0);return(0,Uo.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),c=(0,Uo.useRef)({rerender:l});if((0,Uo.useEffect)((()=>(i(c),()=>{a(c)})),[i,a]),!s.ref||!s.ref.current)return null;const u=(0,r.createElement)(ew,{document:s.ref.current.ownerDocument},"function"==typeof o?o(null!==(t=s.fillProps)&&void 0!==t?t:{}):o);return(0,Uo.createPortal)(u,s.ref.current)}const nw=(0,Uo.forwardRef)((function(e,t){const{name:n,fillProps:o={},as:i,children:a,...s}=e,{registerSlot:l,unregisterSlot:c,...u}=(0,Uo.useContext)(Ox),f=(0,Uo.useRef)(null);return(0,Uo.useLayoutEffect)((()=>(l(n,f,o),()=>{c(n,f)})),[l,c,n]),(0,Uo.useLayoutEffect)((()=>{u.updateSlot(n,o)})),(0,r.createElement)(xs,{as:i,ref:(0,d.useMergeRefs)([t,f]),...s})})),rw=window.wp.isShallowEqual;var ow=o.n(rw);function iw(){const e=Dx(),t=Dx();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,Ix({...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}}))},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ow()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.forEach((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,Ix([...t.get(e)||[],n]))},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,Ix(r.filter((e=>e!==n))))}}}function aw({children:e}){const t=(0,Uo.useMemo)(iw,[]);return(0,r.createElement)(Ox.Provider,{value:t},e)}function sw(){const e={},t={};let n=[];function r(t){return e[t]}function o(e){const t=r(e);t&&t.forceUpdate()}function i(){n.forEach((e=>e()))}return{registerSlot:function(t,n){const r=e[t];e[t]=n,i(),o(t),r&&r.forceUpdate()},unregisterSlot:function(t,n){e[t]===n&&(delete e[t],i())},registerFill:function(e,n){t[e]=[...t[e]||[],n],o(e)},unregisterFill:function(e,n){var r;t[e]=null!==(r=t[e]?.filter((e=>e!==n)))&&void 0!==r?r:[],o(e)},getSlot:r,getFills:function(n,r){return e[n]!==r?[]:t[n]},subscribe:function(e){return n.push(e),()=>{n=n.filter((t=>t!==e))}}}}const lw=function({children:e}){const t=(0,Uo.useMemo)(sw,[]);return(0,r.createElement)(Fx.Provider,{value:t},e)};function cw(e){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(jx,{...e}),(0,r.createElement)(tw,{...e}))}const uw=(0,Uo.forwardRef)((function(e,t){const{bubblesVirtually:n,...o}=e;return n?(0,r.createElement)(nw,{...o,ref:t}):(0,r.createElement)($x,{...o})}));function dw({children:e,passthrough:t=!1}){return!(0,Uo.useContext)(Ox).isDefault&&t?(0,r.createElement)(r.Fragment,null,e):(0,r.createElement)(lw,null,(0,r.createElement)(aw,null,e))}function fw(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,r.createElement)(cw,{name:e,...t});n.displayName=`${t}Fill`;const o=t=>(0,r.createElement)(uw,{name:e,...t});return o.displayName=`${t}Slot`,o.__unstableName=e,{Fill:n,Slot:o}}const mw="Popover",pw=()=>(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,r.createElement)(n.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,r.createElement)(n.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),hw=(0,Uo.createContext)(void 0),gw="components-popover__fallback-container",vw=os(((e,t)=>{const{animate:n=!0,headerTitle:o,constrainTabbing:i,onClose:a,children:s,className:l,noArrow:u=!0,position:f,placement:m="bottom-start",offset:p=0,focusOnMount:h="firstElement",anchor:g,expandOnMobile:v,onFocusOutside:b,__unstableSlotName:y=mw,flip:x=!0,resize:w=!0,shift:E=!1,inline:_=!1,variant:S,__unstableForcePosition:C,anchorRef:k,anchorRect:P,getAnchorRect:T,isAlternate:I,...R}=rs(e,"Popover");let M=x,N=w;void 0!==C&&(qo()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),M=!C,N=!C),void 0!==k&&qo()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&qo()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&qo()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const D=I?"toolbar":S;void 0!==I&&qo()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const A=(0,Uo.useRef)(null),[O,z]=(0,Uo.useState)(null),L=(0,Uo.useCallback)((e=>{z(e)}),[]),F=(0,d.useViewportMatch)("medium","<"),B=v&&F,j=!B&&!u,V=f?Xo(f):m,H=[..."overlay"===m?[{name:"overlay",fn:({rects:e})=>e.reference},ko({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],Fr(p),M&&Co(),N&&ko({apply(e){var t;const{firstElementChild:n}=null!==(t=X.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),E&&So({crossAxis:!0,limiter:To(),padding:1}),qy({element:A})],$=(0,Uo.useContext)(hw)||y,W=zx($);let U;(a||b)&&(U=(e,t)=>{"focus-outside"===e&&b?b(t):a&&a()});const[G,q]=(0,d.__experimentalUseDialog)({constrainTabbing:i,focusOnMount:h,__unstableOnClose:U,onClose:U}),{x:Y,y:K,refs:X,strategy:Z,update:J,placement:Q,middlewareData:{arrow:ee}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=r.useState(o);Ky(m,o)||p(o);const[h,g]=r.useState(null),[v,b]=r.useState(null),y=r.useCallback((e=>{e!==_.current&&(_.current=e,g(e))}),[]),x=r.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),w=a||h,E=s||v,_=r.useRef(null),S=r.useRef(null),C=r.useRef(d),k=null!=c,P=Jy(c),T=Jy(i),I=r.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};T.current&&(e.platform=T.current),Io(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};R.current&&!Ky(C.current,t)&&(C.current=t,tr.flushSync((()=>{f(t)})))}))}),[m,t,n,T]);Yy((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const R=r.useRef(!1);Yy((()=>(R.current=!0,()=>{R.current=!1})),[]),Yy((()=>{if(w&&(_.current=w),E&&(S.current=E),w&&E){if(P.current)return P.current(w,E,I);I()}}),[w,E,I,P,k]);const M=r.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:x})),[y,x]),N=r.useMemo((()=>({reference:w,floating:E})),[w,E]),D=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Zy(N.floating,d.x),r=Zy(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Xy(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,N.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:I,refs:M,elements:N,floatingStyles:D})),[d,I,M,N,D])}({placement:"overlay"===V?void 0:V,middleware:H,whileElementsMounted:(e,t,n)=>_o(e,t,n,{layoutShift:!1,animationFrame:!0})}),te=(0,Uo.useCallback)((e=>{A.current=e,J()}),[J]),ne=k?.top,re=k?.bottom,oe=k?.startContainer,ie=k?.current;(0,Uo.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let a=null;return e?a=e:function(e){return!!e?.top}(t)?a={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:function(e){return!!e?.current}(t)?a=t.current:t?a=t:n?a={getBoundingClientRect:()=>n}:r?a={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(a=o.parentElement),null!==(i=a)&&void 0!==i?i:null})({anchor:g,anchorRef:k,anchorRect:P,getAnchorRect:T,fallbackReferenceElement:O});X.setReference(e)}),[g,k,ne,re,oe,ie,P,T,O,X]);const ae=(0,d.useMergeRefs)([X.setFloating,G,t]),se=B?void 0:{position:Z,top:0,left:0,x:Jo(Y),y:Jo(K)},le=Qy(),ce=n&&!B&&!le,[ue,de]=(0,Uo.useState)(!1),{style:fe,...me}=(0,Uo.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Zo[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(Q)),[Q]),pe=ce?{style:{...fe,...se},onAnimationComplete:()=>de(!0),...me}:{animate:!1,style:se},he=(!ce||ue)&&null!==Y&&null!==K,[ge,ve]=(0,Uo.useState)(!1),be=(0,Uo.useMemo)((()=>({ColorPicker:{onPickerDragStart(){ve(!0)},onPickerDragEnd(){ve(!1)}}})),[]);let ye=(0,r.createElement)(r.Fragment,null,ge&&(0,r.createElement)("div",{className:"components-popover-pointer-events-trap","aria-hidden":"true",onClick:()=>ve(!1)}),(0,r.createElement)(wh.div,{className:c()("components-popover",l,{"is-expanded":B,"is-positioned":he,[`is-${"toolbar"===D?"alternate":D}`]:D}),...pe,...R,ref:ae,...q,tabIndex:-1},B&&(0,r.createElement)(ox,null),B&&(0,r.createElement)("div",{className:"components-popover__header"},(0,r.createElement)("span",{className:"components-popover__header-title"},o),(0,r.createElement)(my,{className:"components-popover__close",icon:ex,onClick:a})),(0,r.createElement)("div",{className:"components-popover__content"},(0,r.createElement)(mi,{value:be},s)),j&&(0,r.createElement)("div",{ref:te,className:["components-popover__arrow",`is-${Q.split("-")[0]}`].join(" "),style:{left:void 0!==ee?.x&&Number.isFinite(ee.x)?`${ee.x}px`:"",top:void 0!==ee?.y&&Number.isFinite(ee.y)?`${ee.y}px`:""}},(0,r.createElement)(pw,null))));const xe=W.ref&&!_,we=k||P||g;return xe?ye=(0,r.createElement)(cw,{name:$},ye):_||(ye=(0,Uo.createPortal)((0,r.createElement)(Qx,{document},ye),(()=>{let e=document.body.querySelector("."+gw);return e||(e=document.createElement("div"),e.className=gw,document.body.append(e)),e})())),we?ye:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{ref:L}),ye)}),"Popover");vw.Slot=(0,Uo.forwardRef)((function({name:e=mw},t){return(0,r.createElement)(uw,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),vw.__unstableSlotNameProvider=hw.Provider;const bw=vw;function yw(e){const t=e.useItems?e.useItems:Gy(e);return function({filterValue:e,instanceId:n,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:s,onSelect:l,onReset:f,reset:m,contentRef:p}){const[h]=t(e),g=(0,By.useAnchor)({editableContentElement:p.current}),[v,b]=(0,Uo.useState)(!1),y=(0,Uo.useRef)(null),x=(0,d.useMergeRefs)([y,(0,d.useRefEffect)((e=>{p.current&&b(e.ownerDocument!==p.current.ownerDocument)}),[p])]);!function(e,t){(0,Uo.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,m);const w=(0,d.useDebounce)(jy.speak,500);if((0,Uo.useLayoutEffect)((()=>{s(h),function(t){w&&(t.length?w(e?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length):(0,u.sprintf)((0,u._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):w((0,u.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,r.createElement)(e,{id:o,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,r.createElement)(my,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:c()("components-autocomplete__result",i,{"is-selected":t===a}),onClick:()=>l(e)},e.label))));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(bw,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:x},(0,r.createElement)(E,null)),p.current&&v&&(0,tr.createPortal)((0,r.createElement)(E,{Component:ws}),p.current.ownerDocument.body))}}const xw=e=>{if(null===e)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":default:return"";case"object":if(e instanceof Array)return e.map(xw).join("");if("props"in e)return xw(e.props.children)}return""},ww=[];function Ew({record:e,onChange:t,onReplace:n,completers:o,contentRef:i}){const a=(0,d.useInstanceId)(Ew),[s,l]=(0,Uo.useState)(0),[c,u]=(0,Uo.useState)(ww),[f,m]=(0,Uo.useState)(""),[p,h]=(0,Uo.useState)(null),[g,v]=(0,Uo.useState)(null),b=(0,Uo.useRef)(!1);function y(r){const{getOptionCompletion:o}=p||{};if(!r.isDisabled){if(o){const i=o(r.value,f),a=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===a.action)return void n([a.value]);"insert-at-caret"===a.action&&function(n){if(null===p)return;const r=e.start,o=r-p.triggerPrefix.length-f.length,i=(0,By.create)({html:(0,Uo.renderToString)(n)});t((0,By.insert)(e,i,o,r))}(a.value)}x()}}function x(){l(0),u(ww),m(""),h(null),v(null)}const w=(0,Uo.useMemo)((()=>(0,By.isCollapsed)(e)?(0,By.getTextContent)((0,By.slice)(e,0)):""),[e]);(0,Uo.useEffect)((()=>{if(!w)return void(p&&x());const t=o.reduce(((e,t)=>w.lastIndexOf(t.triggerPrefix)>(null!==e?w.lastIndexOf(e.triggerPrefix):-1)?t:e),null);if(!t)return void(p&&x());const{allowContext:n,triggerPrefix:r}=t,i=w.lastIndexOf(r),a=w.slice(i+r.length);if(a.length>50)return;const s=0===c.length,l=a.split(/\s/),u=1===l.length,d=b.current&&l.length<=3;if(s&&!d&&!u)return void(p&&x());const f=(0,By.getTextContent)((0,By.slice)(e,void 0,(0,By.getTextContent)(e).length));if(n&&!n(w.slice(0,i),f))return void(p&&x());if(/^\s/.test(a)||/\s\s+$/.test(a))return void(p&&x());if(!/[\u0000-\uFFFF]*$/.test(a))return void(p&&x());const y=Uy(t.triggerPrefix),E=Fy()(w),_=E.slice(E.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${y}([\0-]*)$`)),S=_&&_[1];h(t),v((()=>t!==p?yw(t):g)),m(null===S?"":S)}),[w]);const{key:E=""}=c[s]||{},{className:_}=p||{},S=!!p&&c.length>0,C=S?`components-autocomplete-listbox-${a}`:void 0;return{listBoxId:C,activeId:S?`components-autocomplete-item-${a}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,p&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":{const e=(0===s?c.length:s)-1;l(e),(0,Vy.isAppleOS)()&&(0,jy.speak)(xw(c[e].label),"assertive");break}case"ArrowDown":{const e=(s+1)%c.length;l(e),(0,Vy.isAppleOS)()&&(0,jy.speak)(xw(c[e].label),"assertive");break}case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void x();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,r.createElement)(g,{className:_,filterValue:f,instanceId:a,listBoxId:C,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),u(e)},onSelect:y,value:e,contentRef:i,reset:x})}}function _w(e){const t=(0,Uo.useRef)(null),n=(0,Uo.useRef)(),{record:r}=e,o=function(e){const t=(0,Uo.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:a,activeId:s,onKeyDown:l}=Ew({...e,contentRef:t});n.current=l;const c=(0,d.useMergeRefs)([t,(0,d.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:c,children:i,"aria-autocomplete":a?"list":void 0,"aria-owns":a,"aria-activedescendant":s}:{ref:c}}function Sw({children:e,isSelected:t,...n}){const{popover:o,...i}=Ew(n);return(0,r.createElement)(r.Fragment,null,e(i),t&&o)}function Cw(e){const{help:t,id:n,...r}=e,o=(0,d.useInstanceId)(iy,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}const kw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),Pw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Tw=Ps("",""),Iw={name:"bjn8wh",styles:"position:relative"},Rw=e=>{const{color:t=Ds.gray[200],style:n="solid",width:r=Xg.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Xg.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Mw={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Nw(e){const{className:t,size:n="default",...r}=rs(e,"BorderBoxControlLinkedButton"),o=ns();return{...r,className:(0,Uo.useMemo)((()=>o((e=>Ps("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",Jh({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Dw=os(((e,t)=>{const{className:n,isLinked:o,...i}=Nw(e),a=o?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,r.createElement)(ri,{text:a},(0,r.createElement)(xs,{className:n},(0,r.createElement)(my,{...i,size:"small",icon:o?kw:Pw,iconSize:24,"aria-label":a,ref:t})))}),"BorderBoxControlLinkedButton");function Aw(e){const{className:t,value:n,size:r="default",...o}=rs(e,"BorderBoxControlVisualizer"),i=ns(),a=(0,Uo.useMemo)((()=>i(((e,t)=>Ps("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Rw(e?.top),";border-bottom:",Rw(e?.bottom),";",Jh({borderLeft:Rw(e?.left)})()," ",Jh({borderRight:Rw(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}const Ow=os(((e,t)=>{const{value:n,...o}=Aw(e);return(0,r.createElement)(xs,{...o,ref:t})}),"BorderBoxControlVisualizer"),zw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Lw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 11.25h14v1.5H5z"})),Fw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),Bw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})),jw=(0,r.createContext)(null),Vw=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Hw(){const e=new Set,t=new WeakMap,n=()=>e.forEach(Vw);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const $w=e=>!0===e,Ww=({children:e,id:t,inherit:n=!0})=>{const o=(0,r.useContext)(Ol),i=(0,r.useContext)(jw),[a,s]=_h(),l=(0,r.useRef)(null),c=o.id||i;null===l.current&&((e=>$w(!0===e)||"id"===e)(n)&&c&&(t=t?c+"-"+t:c),l.current={id:t,group:$w(n)&&o.group||Hw()});const u=(0,r.useMemo)((()=>({...l.current,forceRender:a})),[s]);return r.createElement(Ol.Provider,{value:u},e)};const Uw=e=>{const t=Ps("border-color:",Ds.ui.border,";","");return Ps(e&&t," &:hover{border-color:",Ds.ui.borderHover,";}&:focus-within{border-color:",Ds.ui.borderFocus,";box-shadow:",Xg.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Gw={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},qw={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const Yw=e=>({default:qw,"__unstable-large":Gw}[e]),Kw={name:"7whenc",styles:"display:flex;width:100%"},Xw=bs("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function Zw(e={}){var t,n=N(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=tl(M(R({},n),{focusLoop:V(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=Rt(M(R({},o.getState()),{value:V(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return M(R(R({},o),i),{setValue:e=>i.setState("value",e)})}function Jw(e={}){const[t,n]=$t(Zw,e);return function(e,t,n){return Ht(e=nl(e,t,n),n,"value","setValue"),e}(t,n,e)}var Qw=He([Ct],[kt]),eE=Qw.useContext,tE=(Qw.useScopedContext,Qw.useProviderContext),nE=(Qw.ContextProvider,Qw.ScopedContextProvider),rE=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=tE();return F(n=n||o,!1),r=Te(r,(e=>(0,Le.jsx)(nE,{value:n,children:e})),[n]),r=x({role:"radiogroup"},r),r=il(x({store:n},r))})),oE=Fe((e=>je("div",rE(e))));const iE=(0,Uo.createContext)({}),aE=iE;function sE(e){const t=(0,Uo.useRef)(!0),n=(0,d.usePrevious)(e),r=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,Uo.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const lE=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:i,value:a,id:s,...l},c){const u=(0,d.useInstanceId)(lE,"toggle-group-control-as-radio-group"),f=s||u,{value:m,defaultValue:p}=sE(a),h=o?e=>{o(null!=e?e:void 0)}:void 0,g=Jw({defaultValue:p,value:m,setValue:h}),v=g.useState("value"),b=g.setValue,y=(0,Uo.useMemo)((()=>({baseId:f,isBlock:!t,size:i,value:v,setValue:b})),[f,t,i,v,b]);return(0,r.createElement)(aE.Provider,{value:y},(0,r.createElement)(oE,{store:g,"aria-label":n,render:(0,r.createElement)(xs,null),...l,id:f,ref:c},e))}));function cE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,a]=(0,Uo.useState)(o);let s;return s=r&&"function"==typeof t?t:r||"function"!=typeof t?a:e=>{t(e),a(e)},[r?n:i,s]}const uE=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:i,value:a,id:s,...l},c){const u=(0,d.useInstanceId)(uE,"toggle-group-control-as-button-group"),f=s||u,{value:m,defaultValue:p}=sE(a),[h,g]=cE({defaultValue:p,value:m,onChange:o}),v=(0,Uo.useMemo)((()=>({baseId:f,value:h,setValue:g,isBlock:!t,isDeselectable:!0,size:i})),[f,h,g,t,i]);return(0,r.createElement)(aE.Provider,{value:v},(0,r.createElement)(xs,{"aria-label":n,...l,ref:c,role:"group"},e))}));const dE=os((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,className:i,isAdaptiveWidth:a=!1,isBlock:s=!1,isDeselectable:l=!1,label:c,hideLabelFromVision:u=!1,help:f,onChange:m,size:p="default",value:h,children:g,...v}=rs(e,"ToggleGroupControl"),b=(0,d.useInstanceId)(dE,"toggle-group-control"),y=o&&"default"===p?"__unstable-large":p,x=ns(),w=(0,Uo.useMemo)((()=>x((({isBlock:e,isDeselectable:t,size:n})=>Ps("background:",Ds.ui.background,";border:1px solid transparent;border-radius:",Xg.controlBorderRadius,";display:inline-flex;min-width:0;position:relative;",Yw(n)," ",!t&&Uw(e),";",""))({isBlock:s,isDeselectable:l,size:y}),s&&Kw,i)),[i,x,s,l,y]),E=l?uE:lE;return(0,r.createElement)(iy,{help:f,__nextHasNoMarginBottom:n},!u&&(0,r.createElement)(Xw,null,(0,r.createElement)(iy.VisualLabel,null,c)),(0,r.createElement)(E,{...v,className:w,isAdaptiveWidth:a,label:c,onChange:m,ref:t,size:y,value:h},(0,r.createElement)(Ww,{id:b},g)))}),"ToggleGroupControl"),fE=dE;var mE=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a}=t,s=E(t,["store","name","value","checked"]);const l=eE();n=n||l;const c=_e(s.id),u=(0,r.useRef)(null),d=Vt(n,(e=>null!=a?a:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(i,null==e?void 0:e.value)));(0,r.useEffect)((()=>{if(!c)return;if(!d)return;(null==n?void 0:n.getState().activeId)===c||null==n||n.setActiveId(c)}),[n,d,c]);const f=s.onChange,m=function(e,t){return"input"===e&&(!t||"radio"===t)}(Se(u,s.as||"input"),s.type),p=j(s),[h,g]=ke();(0,r.useEffect)((()=>{const e=u.current;e&&(m||(void 0!==d&&(e.checked=d),void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[h,m,d,o,i]);const v=we((e=>{if(p)return e.preventDefault(),void e.stopPropagation();m||(e.currentTarget.checked=!0,g()),null==f||f(e),e.defaultPrevented||null==n||n.setValue(i)})),b=s.onClick,y=we((e=>{null==b||b(e),e.defaultPrevented||m||v(e)})),_=s.onFocus,S=we((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!m)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(c&&r!==c||v(e))}));return s=w(x({id:c,role:m?void 0:"radio",type:m?"radio":void 0,"aria-checked":d},s),{ref:Ee(u,s.ref),onChange:v,onClick:y,onFocus:S}),s=Gt(x({store:n,clickOnEnter:!m},s)),x({name:m?o:void 0,value:m?i:void 0,checked:d},s)})),pE=Be((e=>je("input",mE(e))));const hE=bs("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),gE={name:"82a6rk",styles:"flex:1"},vE=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>Ps("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Xg.controlBorderRadius,";color:",Ds.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Xg.transitionDurationFast," linear,color ",Xg.transitionDurationFast," linear,font-weight 60ms linear;",As("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Xg.toggleGroupControlBackgroundColor,";}",e&&yE," ",t&&wE({size:r})," ",n&&bE,";",""),bE=Ps("color:",Ds.white,";&:active{background:transparent;}",""),yE=Ps("color:",Ds.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Ds.white,",0 0 0 ",Xg.borderWidthFocus," ",Ds.theme.accent,";outline:2px solid transparent;}",""),xE=bs("div",{target:"et6ln9s0"})("display:flex;font-size:",Xg.fontSize,";line-height:1;"),wE=({size:e="default"})=>Ps("color:",Ds.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),EE=Ps("background:",Ds.gray[900],";border-radius:",Xg.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:_E,LabelView:SE}=t,CE={duration:0},kE=({showTooltip:e,text:t,children:n})=>e&&t?(0,r.createElement)(ri,{text:t,placement:"top"},n):(0,r.createElement)(r.Fragment,null,n);const PE=os((function e(t,n){const o=Qy(),i=(0,Uo.useContext)(iE),a=rs({...t,id:(0,d.useInstanceId)(e,i.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:l=!1,size:c="default"}=i,{className:u,isIcon:f=!1,value:m,children:p,showTooltip:h=!1,onFocus:g,...v}=a,b=i.value===m,y=ns(),x=(0,Uo.useMemo)((()=>y(s&&gE)),[y,s]),w=(0,Uo.useMemo)((()=>y(vE({isDeselectable:l,isIcon:f,isPressed:b,size:c}),u)),[y,l,f,b,c,u]),E=(0,Uo.useMemo)((()=>y(EE)),[y]),_={...v,className:w,"data-value":m,ref:n};return(0,r.createElement)(SE,{className:x},(0,r.createElement)(kE,{showTooltip:h,text:v["aria-label"]},l?(0,r.createElement)("button",{..._,onFocus:g,"aria-pressed":b,type:"button",onClick:()=>{l&&b?i.setValue(void 0):i.setValue(m)}},(0,r.createElement)(_E,null,p)):(0,r.createElement)(pE,{render:(0,r.createElement)("button",{type:"button",..._,onFocus:e=>{g?.(e),e.defaultPrevented||i.setValue(m)}}),value:m},(0,r.createElement)(_E,null,p))),b?(0,r.createElement)(wh.div,{className:E,transition:o?CE:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"}):null)}),"ToggleGroupControlOptionBase"),TE=PE;const IE=(0,Uo.forwardRef)((function(e,t){const{icon:n,label:o,...i}=e;return(0,r.createElement)(TE,{...i,isIcon:!0,"aria-label":o,showTooltip:!0,ref:t},(0,r.createElement)(uy,{icon:n}))})),RE=IE,ME=[{label:(0,u.__)("Solid"),icon:Lw,value:"solid"},{label:(0,u.__)("Dashed"),icon:Fw,value:"dashed"},{label:(0,u.__)("Dotted"),icon:Bw,value:"dotted"}];const NE=os((function({onChange:e,...t},n){return(0,r.createElement)(fE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t},ME.map((e=>(0,r.createElement)(RE,{key:e.value,value:e.value,icon:e.icon,label:e.label}))))}),"BorderControlStylePicker");const DE=(0,Uo.forwardRef)((function(e,t){const{className:n,colorValue:o,...i}=e;return(0,r.createElement)("span",{className:c()("component-color-indicator",n),style:{background:o},ref:t,...i})}));var AE=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},OE=function(e){return.2126*AE(e.r)+.7152*AE(e.g)+.0722*AE(e.b)};function zE(e){e.prototype.luminance=function(){return e=OE(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=OE(i))>(l=OE(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const LE=os(((e,t)=>{const{renderContent:n,renderToggle:o,className:i,contentClassName:a,expandOnMobile:s,headerTitle:l,focusOnMount:u,popoverProps:f,onClose:m,onToggle:p,style:h,open:g,defaultOpen:v,position:b,variant:y}=rs(e,"Dropdown");void 0!==b&&qo()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[x,w]=(0,Uo.useState)(null),E=(0,Uo.useRef)(),[_,S]=cE({defaultValue:v,value:g,onChange:p});function C(){m?.(),S(!1)}const k={isOpen:!!_,onToggle:()=>S(!_),onClose:C},P=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,r.createElement)("div",{className:i,ref:(0,d.useMergeRefs)([E,t,w]),tabIndex:-1,style:h},o(k),_&&(0,r.createElement)(bw,{position:b,onClose:C,onFocusOutside:function(){if(!E.current)return;const{ownerDocument:e}=E.current,t=e?.activeElement?.closest('[role="dialog"]');E.current.contains(e.activeElement)||t&&!t.contains(E.current)||C()},expandOnMobile:s,headerTitle:l,focusOnMount:u,offset:13,anchor:P?void 0:x,variant:y,...f,className:c()("components-dropdown__content",f?.className,a)},n(k)))}),"Dropdown"),FE=LE;const BE=os((function(e,t){const n=rs(e,"InputControlSuffixWrapper");return(0,r.createElement)(tg,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),jE=bs("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Ds.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?Ps({color:Ds.ui.textDisabled},"",""):""),";",xv,";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);return Ps(r[n]||r.default,"","")}),";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,compact:8,"__unstable-large":16};e||(r.default=r.compact);const o=r[n]||r.default;return Jh({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),VE=bs("div",{target:"e1mv6sxx1"})("margin-inline-end:",Ah(-1),";line-height:0;"),HE=bs(BE,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Jh({right:0}),";");const $E=(0,Uo.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Uo.cloneElement)(e,{width:t,height:t,...n,ref:r})})),WE=(0,r.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),UE=()=>(0,r.createElement)(HE,null,(0,r.createElement)(VE,null,(0,r.createElement)($E,{icon:WE,size:18}))),GE=()=>{};const qE=(0,Uo.forwardRef)((function(e,t){const{className:n,disabled:o=!1,help:i,hideLabelFromVision:a,id:s,label:l,multiple:u=!1,onBlur:f=GE,onChange:m,onFocus:p=GE,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:x,suffix:w,__next40pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...S}=Nv(e),[C,k]=(0,Uo.useState)(!1),P=function(e){const t=(0,d.useInstanceId)(qE);return e||`inspector-select-control-${t}`}(s),T=i?`${P}__help`:void 0;if(!h?.length&&!y)return null;const I=c()("components-select-control",n);return(0,r.createElement)(iy,{help:i,id:P,__nextHasNoMarginBottom:_},(0,r.createElement)(Ov,{className:I,disabled:o,hideLabelFromVision:a,id:P,isFocused:C,label:l,size:g,suffix:w||!u&&(0,r.createElement)(UE,null),prefix:x,labelPosition:b,__next40pxDefaultSize:E},(0,r.createElement)(jE,{...S,__next40pxDefaultSize:E,"aria-describedby":T,className:"components-select-control__input",disabled:o,id:P,multiple:u,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{p(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,r.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))})),YE=qE,KE={initial:void 0,fallback:""};const XE=function(e,t=KE){const{initial:n,fallback:r}={...KE,...t},[o,i]=(0,Uo.useState)(e),a=ag(e);return(0,Uo.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(ag))&&void 0!==n?n:t}([e,o,n],r),(0,Uo.useCallback)((e=>{a||i(e)}),[a])]};function ZE(e,t,n){return"number"!=typeof e?null:parseFloat(`${wy(e,t,n)}`)}const JE=30,QE=()=>Ps({height:JE,minHeight:JE},"",""),e_=12,t_=bs("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",(({__next40pxDefaultSize:e})=>!e&&Ps({minHeight:JE},"","")),";"),n_=bs("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Ds.ui.borderFocus})=>Ps({color:e},"","")),";",QE,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":Ps({marginBottom:e?16:void 0},"","")),";"),r_=bs("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",Jh({marginRight:6}),";"),o_=bs("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",Jh({marginLeft:6}),";"),i_=bs("span",{target:"e1epgpqk10"})("background-color:",Ds.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Ds.ui.backgroundDisabled),Ps({background:n},"","")}),";"),a_=bs("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Ds.gray[400]),Ps({background:n},"","")}),";"),s_=bs("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),l_=bs("span",{target:"e1epgpqk7"})("height:",e_,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Ds.gray[300];return e&&(n=Ds.gray[400]),Ps({backgroundColor:n},"","")}),";"),c_=bs("span",{target:"e1epgpqk6"})("color:",Ds.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>Ps({color:e?Ds.gray[700]:Ds.gray[300]},"","")),";"),u_=({disabled:e})=>Ps("background-color:",e?Ds.gray[400]:Ds.theme.accent,";",""),d_=bs("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",e_,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",e_,"px;border-radius:50%;",u_,";",Jh({marginLeft:-10}),";",Jh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),f_=bs("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",u_,";",(({isFocused:e})=>e?Ps("&::before{content:' ';position:absolute;background-color:",Ds.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),m_=bs("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",e_,"px );");var p_={name:"1cypxip",styles:"top:-80%"},h_={name:"1lr98c4",styles:"bottom:-80%"};const g_=bs("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>Ps({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?h_:p_),";",As("transition"),";",Jh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),v_=bs(Ry,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",QE,";}",Jh({marginLeft:`${Ah(4)} !important`}),";"),b_=bs("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",QE,";}",Jh({marginLeft:8}),";");const y_=(0,Uo.forwardRef)((function(e,t){const{describedBy:n,label:o,value:i,...a}=e;return(0,r.createElement)(m_,{...a,"aria-describedby":n,"aria-label":o,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:i})}));function x_(e){const{className:t,isFilled:n=!1,label:o,style:i={},...a}=e,s=c()("components-range-control__mark",n&&"is-filled",t),l=c()("components-range-control__mark-label",n&&"is-filled");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l_,{...a,"aria-hidden":"true",className:s,isFilled:n,style:i}),o&&(0,r.createElement)(c_,{"aria-hidden":"true",className:l,isFilled:n,style:i},o))}function w_(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:i=100,step:a=1,value:s=0,...l}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i_,{disabled:t,...l}),n&&(0,r.createElement)(E_,{disabled:t,marks:n,min:o,max:i,step:a,value:s}))}function E_(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:i=100,step:a=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,c=(e.value-t)/i*100+"%",d={[(0,u.isRTL)()?"right":"left"]:c};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:o,max:i,step:"any"===a?1:a,value:s});return(0,r.createElement)(s_,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,r.createElement)(x_,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function __(e){const{className:t,inputRef:n,tooltipPosition:o,show:i=!1,style:a={},value:s=0,renderTooltipContent:l=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,Uo.useState)(),o=(0,Uo.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Uo.useEffect)((()=>{o()}),[o]),(0,Uo.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:o}),m=c()("components-simple-tooltip",t),p={...a,zIndex:u};return(0,r.createElement)(g_,{...d,"aria-hidden":i,className:m,position:f,show:i,role:"tooltip",style:p},l(s))}const S_=()=>{};const C_=(0,Uo.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:a=!1,beforeIcon:s,className:l,color:f=Ds.theme.accent,currentInput:m,disabled:p=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:x=!1,max:w=100,min:E=0,onBlur:_=S_,onChange:S=S_,onFocus:C=S_,onMouseLeave:k=S_,onMouseMove:P=S_,railColor:T,renderTooltipContent:I=(e=>e),resetFallbackValue:R,__next40pxDefaultSize:M=!1,shiftStep:N=10,showTooltip:D,step:A=1,trackColor:O,value:z,withInputField:L=!0,...F}=t,[B,j]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=XE(ZE(r,t,n),{initial:ZE(null!=o?o:null,t,n),fallback:null});return[i,(0,Uo.useCallback)((e=>{a(null===e?null:ZE(e,t,n))}),[t,n,a])]}({min:E,max:w,value:null!=z?z:null,initial:v}),V=(0,Uo.useRef)(!1);let H=D,$=L;"any"===A&&(H=!1,$=!1);const[W,U]=(0,Uo.useState)(H),[G,q]=(0,Uo.useState)(!1),Y=(0,Uo.useRef)(),K=Y.current?.matches(":focus"),X=!p&&G,Z=null===B,J=Z?"":void 0!==B?B:m,Q=Z?(w-E)/2+E:B,ee=`${wy(Z?50:(B-E)/(w-E)*100,0,100)}%`,te=c()("components-range-control",l),ne=c()("components-range-control__wrapper",!!x&&"is-marked"),re=(0,d.useInstanceId)(e,"inspector-range-control"),oe=h?`${re}__help`:void 0,ie=!1!==H&&Number.isFinite(B),ae=()=>{let e=parseFloat(`${R}`),t=e;isNaN(e)&&(e=null,t=void 0),j(e),S(t)},se={[(0,u.isRTL)()?"right":"left"]:ee};return(0,r.createElement)(iy,{__nextHasNoMarginBottom:o,className:te,label:y,hideLabelFromVision:g,id:`${re}`,help:h},(0,r.createElement)(t_,{className:"components-range-control__root",__next40pxDefaultSize:M},s&&(0,r.createElement)(r_,null,(0,r.createElement)(uy,{icon:s})),(0,r.createElement)(n_,{__nextHasNoMarginBottom:o,className:ne,color:f,marks:!!x},(0,r.createElement)(y_,{...F,className:"components-range-control__slider",describedBy:oe,disabled:p,id:`${re}`,label:y,max:w,min:E,onBlur:e=>{_(e),q(!1),U(!1)},onChange:e=>{const t=parseFloat(e.target.value);j(t),S(t)},onFocus:e=>{C(e),q(!0),U(!0)},onMouseMove:P,onMouseLeave:k,ref:(0,d.useMergeRefs)([Y,n]),step:A,value:null!=J?J:void 0}),(0,r.createElement)(w_,{"aria-hidden":!0,disabled:p,marks:x,max:w,min:E,railColor:T,step:A,value:Q}),(0,r.createElement)(a_,{"aria-hidden":!0,className:"components-range-control__track",disabled:p,style:{width:ee},trackColor:O}),(0,r.createElement)(d_,{className:"components-range-control__thumb-wrapper",style:se,disabled:p},(0,r.createElement)(f_,{"aria-hidden":!0,isFocused:X,disabled:p})),ie&&(0,r.createElement)(__,{className:"components-range-control__tooltip",inputRef:Y,tooltipPosition:"bottom",renderTooltipContent:I,show:K||W,style:se,value:B})),i&&(0,r.createElement)(o_,null,(0,r.createElement)(uy,{icon:i})),$&&(0,r.createElement)(v_,{"aria-label":y,className:"components-range-control__number",disabled:p,inputMode:"decimal",isShiftStepEnabled:b,max:w,min:E,onBlur:()=>{V.current&&(ae(),V.current=!1)},onChange:e=>{let t=parseFloat(e);j(t),isNaN(t)?a&&(V.current=!0):((t<E||t>w)&&(t=ZE(t,E,w)),S(t),V.current=!1)},shiftStep:N,size:M?"__unstable-large":"default",__unstableInputWidth:Ah(M?20:16),step:A,value:J}),a&&(0,r.createElement)(b_,null,(0,r.createElement)(my,{className:"components-range-control__reset",disabled:p||void 0===B,variant:"secondary",size:"small",onClick:ae},(0,u.__)("Reset")))))})),k_=C_,P_=bs(Ry,{target:"ez9hsf47"})(yv,"{width:",Ah(24),";}"),T_=bs(YE,{target:"ez9hsf46"})("margin-left:",Ah(-2),";width:5em;select:not( :focus )~",kv,kv,kv,"{border-color:transparent;}"),I_=bs(k_,{target:"ez9hsf45"})("flex:1;margin-right:",Ah(2),";"),R_=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${Ah(2)} );\n\tmargin-left: ${Ah(1)};\n}`,M_=bs("div",{target:"ez9hsf44"})("padding-top:",Ah(2),";padding-right:0;padding-left:0;padding-bottom:0;"),N_=bs(Py,{target:"ez9hsf43"})("padding-left:",Ah(4),";padding-right:",Ah(4),";"),D_=bs($h,{target:"ez9hsf42"})("padding-top:",Ah(4),";padding-left:",Ah(4),";padding-right:",Ah(3),";padding-bottom:",Ah(5),";"),A_=bs("div",{target:"ez9hsf41"})(Kb,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Ah(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",Ah(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Xg.borderWidthFocus," #fff;}",R_,";"),O_=bs(my,{target:"ez9hsf40"})("&&&&&{min-width:",Ah(6),";padding:0;>svg{margin-right:0;}}"),z_=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})),L_=e=>{const{color:t,colorType:n}=e,[o,i]=(0,Uo.useState)(null),a=(0,Uo.useRef)(),s=(0,d.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{a.current&&clearTimeout(a.current),i(t.toHex()),a.current=setTimeout((()=>{i(null),a.current=void 0}),3e3)}));return(0,Uo.useEffect)((()=>()=>{a.current&&clearTimeout(a.current)}),[]),(0,r.createElement)(ri,{delay:0,hideOnClick:!1,text:o===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")},(0,r.createElement)(O_,{size:"small",ref:s,icon:z_,showTooltip:!1}))},F_=({min:e,max:t,label:n,abbreviation:o,onChange:i,value:a})=>(0,r.createElement)(Py,{spacing:4},(0,r.createElement)(P_,{min:e,max:t,label:n,hideLabelFromVision:!0,value:a,onChange:e=>{i(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,r.createElement)(tg,{as:mv,paddingLeft:Ah(4),color:Ds.theme.accent,lineHeight:1},o),spinControls:"none",size:"__unstable-large"}),(0,r.createElement)(I_,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:a,onChange:i,withInputField:!1})),B_=({color:e,onChange:t,enableAlpha:n})=>{const{r:o,g:i,b:a,a:s}=e.toRgb();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F_,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>t(Bg({r:e,g:i,b:a,a:s}))}),(0,r.createElement)(F_,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>t(Bg({r:o,g:e,b:a,a:s}))}),(0,r.createElement)(F_,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>t(Bg({r:o,g:i,b:e,a:s}))}),n&&(0,r.createElement)(F_,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Bg({r:o,g:i,b:a,a:e/100}))}))},j_=({color:e,onChange:t,enableAlpha:n})=>{const o=(0,Uo.useMemo)((()=>e.toHsl()),[e]),[i,a]=(0,Uo.useState)({...o}),s=e.isEqual(Bg(i));(0,Uo.useEffect)((()=>{s||a(o)}),[o,s]);const l=s?i:o,c=n=>{const r=Bg({...l,...n});e.isEqual(r)?a((e=>({...e,...n}))):t(r)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F_,{min:0,max:359,label:"Hue",abbreviation:"H",value:l.h,onChange:e=>{c({h:e})}}),(0,r.createElement)(F_,{min:0,max:100,label:"Saturation",abbreviation:"S",value:l.s,onChange:e=>{c({s:e})}}),(0,r.createElement)(F_,{min:0,max:100,label:"Lightness",abbreviation:"L",value:l.l,onChange:e=>{c({l:e})}}),n&&(0,r.createElement)(F_,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l.a),onChange:e=>{c({a:e/100})}}))},V_=({color:e,onChange:t,enableAlpha:n})=>(0,r.createElement)(sy,{prefix:(0,r.createElement)(tg,{as:mv,marginLeft:Ah(4),color:Ds.theme.accent,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Bg(n))},maxLength:n?9:7,label:(0,u.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),H_=({colorType:e,color:t,onChange:n,enableAlpha:o})=>{const i={color:t,onChange:n,enableAlpha:o};switch(e){case"hsl":return(0,r.createElement)(j_,{...i});case"rgb":return(0,r.createElement)(B_,{...i});default:return(0,r.createElement)(V_,{...i})}};function $_(){return($_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function U_(e){var t=(0,r.useRef)(e),n=(0,r.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var G_=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},q_=function(e){return"touches"in e},Y_=function(e){return e&&e.ownerDocument.defaultView||self},K_=function(e,t,n){var r=e.getBoundingClientRect(),o=q_(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:G_((o.pageX-(r.left+Y_(e).pageXOffset))/r.width),top:G_((o.pageY-(r.top+Y_(e).pageYOffset))/r.height)}},X_=function(e){!q_(e)&&e.preventDefault()},Z_=r.memo((function(e){var t=e.onMove,n=e.onKey,o=W_(e,["onMove","onKey"]),i=(0,r.useRef)(null),a=U_(t),s=U_(n),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=(0,r.useMemo)((function(){var e=function(e){X_(e),(q_(e)?e.touches.length>0:e.buttons>0)&&i.current?a(K_(i.current,e,l.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=c.current,o=Y_(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(X_(t),!function(e,t){return t&&!q_(e)}(t,c.current)&&r)){if(q_(t)){c.current=!0;var o=t.changedTouches||[];o.length&&(l.current=o[0].identifier)}r.focus(),a(K_(r,t,l.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,a]),d=u[0],f=u[1],m=u[2];return(0,r.useEffect)((function(){return m}),[m]),r.createElement("div",$_({},o,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:i,onKeyDown:f,tabIndex:0,role:"slider"}))})),J_=function(e){return e.filter(Boolean).join(" ")},Q_=function(e){var t=e.color,n=e.left,o=e.top,i=void 0===o?.5:o,a=J_(["react-colorful__pointer",e.className]);return r.createElement("div",{className:a,style:{top:100*i+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},eS=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},tS=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:eS(e.h),s:eS(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:eS(o/2),a:eS(r,2)}}),nS=function(e){var t=tS(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},rS=function(e){var t=tS(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},oS=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:eS(255*[r,s,a,a,l,r][c]),g:eS(255*[l,r,r,s,a,a][c]),b:eS(255*[a,a,l,r,r,s][c]),a:eS(o,2)}},iS=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?sS({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},aS=iS,sS=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:eS(60*(s<0?s+6:s)),s:eS(i?a/i*100:0),v:eS(i/255*100),a:o}},lS=r.memo((function(e){var t=e.hue,n=e.onChange,o=J_(["react-colorful__hue",e.className]);return r.createElement("div",{className:o},r.createElement(Z_,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:G_(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":eS(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(Q_,{className:"react-colorful__hue-pointer",left:t/360,color:nS({h:t,s:100,v:100,a:1})})))})),cS=r.memo((function(e){var t=e.hsva,n=e.onChange,o={backgroundColor:nS({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:o},r.createElement(Z_,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:G_(t.s+100*e.left,0,100),v:G_(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+eS(t.s)+"%, Brightness "+eS(t.v)+"%"},r.createElement(Q_,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:nS(t)})))})),uS=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},dS=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function fS(e,t,n){var o=U_(n),i=(0,r.useState)((function(){return e.toHsva(t)})),a=i[0],s=i[1],l=(0,r.useRef)({color:t,hsva:a});(0,r.useEffect)((function(){if(!e.equal(t,l.current.color)){var n=e.toHsva(t);l.current={hsva:n,color:t},s(n)}}),[t,e]),(0,r.useEffect)((function(){var t;uS(a,l.current.hsva)||e.equal(t=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:t},o(t))}),[a,e,o]);var c=(0,r.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[a,c]}var mS,pS="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,hS=new Map,gS=function(e){pS((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!hS.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',hS.set(t,n);var r=mS||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},vS=function(e){var t=e.className,n=e.colorModel,o=e.color,i=void 0===o?n.defaultColor:o,a=e.onChange,s=W_(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);gS(l);var c=fS(n,i,a),u=c[0],d=c[1],f=J_(["react-colorful",t]);return r.createElement("div",$_({},s,{ref:l,className:f}),r.createElement(cS,{hsva:u,onChange:d}),r.createElement(lS,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},bS=function(e){var t=e.className,n=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+rS(Object.assign({},n,{a:0}))+", "+rS(Object.assign({},n,{a:1}))+")"},a=J_(["react-colorful__alpha",t]),s=eS(100*n.a);return r.createElement("div",{className:a},r.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),r.createElement(Z_,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:G_(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},r.createElement(Q_,{className:"react-colorful__alpha-pointer",left:n.a,color:rS(n)})))},yS=function(e){var t=e.className,n=e.colorModel,o=e.color,i=void 0===o?n.defaultColor:o,a=e.onChange,s=W_(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);gS(l);var c=fS(n,i,a),u=c[0],d=c[1],f=J_(["react-colorful",t]);return r.createElement("div",$_({},s,{ref:l,className:f}),r.createElement(cS,{hsva:u,onChange:d}),r.createElement(lS,{hue:u.h,onChange:d}),r.createElement(bS,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},xS={defaultColor:"rgba(0, 0, 0, 1)",toHsva:iS,fromHsva:function(e){var t=oS(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:dS},wS=function(e){return r.createElement(yS,$_({},e,{colorModel:xS}))},ES={defaultColor:"rgb(0, 0, 0)",toHsva:aS,fromHsva:function(e){var t=oS(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:dS},_S=function(e){return r.createElement(vS,$_({},e,{colorModel:ES}))};const SS=({color:e,enableAlpha:t,onChange:n,onDragStart:o,onDragEnd:i,containerEl:a})=>{const s=t?wS:_S,l=(0,Uo.useMemo)((()=>e.toRgbString()),[e]);return(({containerEl:e,onDragStart:t,onDragEnd:n})=>{const r=(0,Uo.useRef)(!1),o=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{if(!e||!t&&!n)return;const i=[e.querySelector(".react-colorful__saturation"),e.querySelector(".react-colorful__hue"),e.querySelector(".react-colorful__alpha")].filter((e=>!!e));if(0===i.length)return;const a=e.ownerDocument,s=e=>{r.current=!1,o.current=!1,n?.(e)},l=e=>{r.current=!0,t?.(e)},c=e=>{const t=0===e.buttons;o.current&&t&&s(e)};return i.forEach((e=>e.addEventListener("pointerdown",l))),a.addEventListener("pointerup",s),a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",(()=>{o.current=r.current})),()=>{i.forEach((e=>e.removeEventListener("pointerdown",l))),a.removeEventListener("pointerup",s),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",s)}}),[t,n,e])})({containerEl:a,onDragStart:o,onDragEnd:i}),(0,r.createElement)(s,{color:l,onChange:e=>{n(Bg(e))}})};Vg([Hg]);const CS=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],kS=os(((e,t)=>{const{enableAlpha:n=!1,color:o,onChange:i,defaultValue:a="#fff",copyFormat:s,onPickerDragStart:l,onPickerDragEnd:c,...f}=rs(e,"ColorPicker"),[m,p]=(0,Uo.useState)(null),[h,g]=cE({onChange:i,value:o,defaultValue:a}),v=(0,Uo.useMemo)((()=>Bg(h||"")),[h]),b=(0,d.useDebounce)(g),y=(0,Uo.useCallback)((e=>{b(e.toHex())}),[b]),[x,w]=(0,Uo.useState)(s||"hex");return(0,r.createElement)(A_,{ref:(0,d.useMergeRefs)([e=>{p(e)},t]),...f},(0,r.createElement)(SS,{containerEl:m,onChange:y,color:v,enableAlpha:n,onDragStart:l,onDragEnd:c}),(0,r.createElement)(M_,null,(0,r.createElement)(N_,{justify:"space-between"},(0,r.createElement)(T_,{__nextHasNoMarginBottom:!0,options:CS,value:x,onChange:e=>w(e),label:(0,u.__)("Color format"),hideLabelFromVision:!0}),(0,r.createElement)(L_,{color:v,colorType:s||x})),(0,r.createElement)(D_,{direction:"column",gap:2},(0,r.createElement)(H_,{colorType:x,color:v,onChange:y,enableAlpha:n}))))}),"ColorPicker"),PS=kS;function TS(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const IS=Si((e=>{const t=Bg(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function RS(e){const{onChangeComplete:t}=e,n=(0,Uo.useCallback)((e=>{t(IS(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:TS(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const MS=e=>(0,r.createElement)(PS,{...RS(e)}),NS=(0,Uo.createContext)({}),DS=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const AS=(0,Uo.forwardRef)((function(e,t){const{isPressed:n,...o}=e;return(0,r.createElement)(my,{...o,"aria-pressed":n,ref:t})}));const OS=(0,Uo.forwardRef)((function(e,t){const{id:n,isSelected:o,compositeStore:i,...a}=e,s=i.useState("activeId");return o&&!s&&i.setActiveId(n),(0,r.createElement)(qt,{render:(0,r.createElement)(my,{...a,role:"option","aria-selected":!!o,ref:t}),store:i,id:n})}));function zS(e){const{actions:t,options:n,baseId:o,className:i,loop:a=!0,children:s,...l}=e,c=rl({focusLoop:a,rtl:(0,u.isRTL)()}),d={baseId:o,compositeStore:c};return(0,r.createElement)("div",{className:i},(0,r.createElement)(NS.Provider,{value:d},(0,r.createElement)(al,{...l,id:o,store:c,role:"listbox"},n),s,t))}function LS(e){const{actions:t,options:n,children:o,baseId:i,...a}=e;return(0,r.createElement)("div",{...a,id:i},(0,r.createElement)(NS.Provider,{value:{baseId:i}},n,o,t))}function FS(e){const{asButtons:t,actions:n,options:o,children:i,className:a,...s}=e,l=(0,d.useInstanceId)(FS,"components-circular-option-picker",s.id),u=t?LS:zS,f=n?(0,r.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},n):void 0,m=(0,r.createElement)("div",{className:"components-circular-option-picker__swatches"},o);return(0,r.createElement)(u,{...s,baseId:l,className:c()("components-circular-option-picker",a),actions:f,options:m},i)}FS.Option=function e({className:t,isSelected:n,selectedIconProps:o={},tooltipText:i,...a}){const{baseId:s,compositeStore:l}=(0,Uo.useContext)(NS),u={id:(0,d.useInstanceId)(e,s||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...a},f=l?(0,r.createElement)(OS,{...u,compositeStore:l,isSelected:n}):(0,r.createElement)(AS,{...u,isPressed:n});return(0,r.createElement)("div",{className:c()(t,"components-circular-option-picker__option-wrapper")},i?(0,r.createElement)(ri,{text:i},f):f,n&&(0,r.createElement)($E,{icon:DS,...o}))},FS.OptionGroup=function({className:e,options:t,...n}){const o="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,r.createElement)("div",{...n,role:o,className:c()("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e)},t)},FS.ButtonAction=function({className:e,children:t,...n}){return(0,r.createElement)(my,{className:c()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},FS.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:o}){return(0,r.createElement)(FE,{className:c()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,r.createElement)(my,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},o),...n})};const BS=FS;const jS=os((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=rs(e,"VStack");return ky({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"VStack");const VS=os((function(e,t){const n=fg(e);return(0,r.createElement)(xs,{as:"span",...n,ref:t})}),"Truncate");const HS=os((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=Ds.gray[900],isBlock:o=!0,weight:i=Xg.fontWeightHeading,...a}=rs(e,"Heading"),s=t||`h${n}`,l={};return"string"==typeof s&&"h"!==s[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...fv({color:r,isBlock:o,weight:i,size:uv(n),...a}),...l,as:s}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Heading"),$S=HS;const WS=bs($S,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),US=bs("div",{target:"eovvns30"})("margin-left:",Ah(-2),";margin-right:",Ah(-2),";&:first-of-type{margin-top:",Ah(-2),";}&:last-of-type{margin-bottom:",Ah(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:Ah(2),medium:Ah(4)};return Ps("padding:",t[e]||t.small,";","")}),";");const GS=os((function(e,t){const{paddingSize:n="small",...o}=rs(e,"DropdownContentWrapper");return(0,r.createElement)(US,{...o,paddingSize:n,ref:t})}),"DropdownContentWrapper");Vg([Hg,zE]);const qS=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function YS({className:e,clearColor:t,colors:n,onChange:o,value:i,...a}){const s=(0,Uo.useMemo)((()=>n.map((({color:e,name:n},a)=>{const s=Bg(e),l=i===e;return(0,r.createElement)(BS.Option,{key:`${e}-${a}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,u.sprintf)((0,u.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>o(e,a),"aria-label":n?(0,u.sprintf)((0,u.__)("Color: %s"),n):(0,u.sprintf)((0,u.__)("Color code: %s"),e)})}))),[n,i,o,t]);return(0,r.createElement)(BS.OptionGroup,{className:e,options:s,...a})}function KS({className:e,clearColor:t,colors:n,onChange:o,value:i,headingLevel:a}){const s=(0,d.useInstanceId)(KS,"color-palette");return 0===n.length?null:(0,r.createElement)(jS,{spacing:3,className:e},n.map((({name:e,colors:n},l)=>{const c=`${s}-${l}`;return(0,r.createElement)(jS,{spacing:2,key:l},(0,r.createElement)(WS,{id:c,level:a},e),(0,r.createElement)(YS,{clearColor:t,colors:n,onChange:e=>o(e,l),value:i,"aria-labelledby":c}))})))}function XS({isRenderedInSidebar:e,popoverProps:t,...n}){const o=(0,Uo.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,r.createElement)(FE,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o,...n})}Vg([Hg,zE]);const ZS=(0,Uo.forwardRef)((function(e,t){const{asButtons:n,loop:o,clearable:i=!0,colors:a=[],disableCustomColors:s=!1,enableAlpha:l=!1,onChange:d,value:f,__experimentalIsRenderedInSidebar:m=!1,headingLevel:p=2,"aria-label":h,"aria-labelledby":g,...v}=e,[b,y]=(0,Uo.useState)(f),x=(0,Uo.useCallback)((()=>d(void 0)),[d]),w=(0,Uo.useCallback)((e=>{y(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Bg(o).toHex():e})(f,e))}),[f]),E=qS(a),_=(0,Uo.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Bg(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Bg(n).toHex()))return t;return(0,u.__)("Custom")})(f,a,E)),[f,a,E]),S=f?.startsWith("#"),C=f?.replace(/^var\((.+)\)$/,"$1"),k=C?(0,u.sprintf)((0,u.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),_,C):(0,u.__)("Custom color picker."),P={clearColor:x,onChange:d,value:f},T=!!i&&(0,r.createElement)(BS.ButtonAction,{onClick:x},(0,u.__)("Clear"));let I;if(n)I={asButtons:!0};else{const e={asButtons:!1,loop:o};I=h?{...e,"aria-label":h}:g?{...e,"aria-labelledby":g}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}return(0,r.createElement)(jS,{spacing:3,ref:t,...v},!s&&(0,r.createElement)(XS,{isRenderedInSidebar:m,renderContent:()=>(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(MS,{color:b,onChange:e=>d(e),enableAlpha:l})),renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(jS,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,r.createElement)("button",{ref:w,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":k,style:{background:f},type:"button"}),(0,r.createElement)(jS,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,r.createElement)(VS,{className:"components-color-palette__custom-color-name"},f?_:(0,u.__)("No color selected")),(0,r.createElement)(VS,{className:c()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":S})},C)))}),(0,r.createElement)(BS,{...I,actions:T,options:E?(0,r.createElement)(KS,{...P,headingLevel:p,colors:a,value:f}):(0,r.createElement)(YS,{...P,colors:a,value:f})}))})),JS=ZS,QS=bs(Ry,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",kv,"{transition:box-shadow 0.1s linear;}}"),eC=({selectSize:e})=>({small:Ps("box-sizing:border-box;padding:2px 1px;width:20px;color:",Ds.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:Ps("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Ah(2),";padding:",Ah(1),";color:",Ds.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),tC=bs("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",eC,";color:",Ds.gray[900],";}"),nC=bs("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",eC,";",(({selectSize:e="default"})=>({small:Ps("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",Jh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Ds.gray[100],";}&:focus{border:1px solid ",Ds.ui.borderFocus,";box-shadow:inset 0 0 0 ",Xg.borderWidth+" "+Ds.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:Ps("display:flex;justify-content:center;align-items:center;&:hover{color:",Ds.ui.borderFocus,";box-shadow:inset 0 0 0 ",Xg.borderWidth+" "+Ds.ui.borderFocus,";outline:",Xg.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Xg.borderWidthFocus+" "+Ds.ui.borderFocus,";outline:",Xg.borderWidthFocus," solid transparent;}","")}[e])),";&:not( :disabled ){cursor:pointer;}}");const rC={name:"f3vz0n",styles:"font-weight:500"},oC=Ps("box-shadow:inset ",Xg.controlBoxShadowFocus,";",""),iC=Ps("border:0;padding:0;margin:0;",Kb,";",""),aC=Ps(QS,"{flex:0 0 auto;}",""),sC=Ps("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",Jh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Xg.borderWidth," solid ",Ds.ui.border,";&:focus,&:hover:not( :disabled ){",oC," border-color:",Ds.ui.borderFocus,";z-index:1;position:relative;}}",""),lC=(e,t)=>{const{style:n}=e||{};return Ps("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Ds.gray[300]:void 0;return Ps("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",Ah(4),";width:",Ah(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},cC=Ps("width:",228,"px;>div:first-of-type>",Qb,"{margin-bottom:0;",rC,";}&& ",Qb,"+button:not( .has-text ){min-width:24px;padding:0;}",""),uC=Ps("",""),dC=Ps("",""),fC=Ps("justify-content:center;width:100%;&&{border-top:",Xg.borderWidth," solid ",Ds.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),mC="web"===Uo.Platform.OS,pC={px:{value:"px",label:mC?"px":(0,u.__)("Pixels (px)"),a11yLabel:(0,u.__)("Pixels (px)"),step:1},"%":{value:"%",label:mC?"%":(0,u.__)("Percentage (%)"),a11yLabel:(0,u.__)("Percent (%)"),step:.1},em:{value:"em",label:mC?"em":(0,u.__)("Relative to parent font size (em)"),a11yLabel:(0,u._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:mC?"rem":(0,u.__)("Relative to root font size (rem)"),a11yLabel:(0,u._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:mC?"vw":(0,u.__)("Viewport width (vw)"),a11yLabel:(0,u.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:mC?"vh":(0,u.__)("Viewport height (vh)"),a11yLabel:(0,u.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:mC?"vmin":(0,u.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,u.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:mC?"vmax":(0,u.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,u.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:mC?"ch":(0,u.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,u.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:mC?"ex":(0,u.__)("x-height of the font (ex)"),a11yLabel:(0,u.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:mC?"cm":(0,u.__)("Centimeters (cm)"),a11yLabel:(0,u.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:mC?"mm":(0,u.__)("Millimeters (mm)"),a11yLabel:(0,u.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:mC?"in":(0,u.__)("Inches (in)"),a11yLabel:(0,u.__)("Inches (in)"),step:.001},pc:{value:"pc",label:mC?"pc":(0,u.__)("Picas (pc)"),a11yLabel:(0,u.__)("Picas (pc)"),step:1},pt:{value:"pt",label:mC?"pt":(0,u.__)("Points (pt)"),a11yLabel:(0,u.__)("Points (pt)"),step:1},svw:{value:"svw",label:mC?"svw":(0,u.__)("Small viewport width (svw)"),a11yLabel:(0,u.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:mC?"svh":(0,u.__)("Small viewport height (svh)"),a11yLabel:(0,u.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:mC?"svi":(0,u.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,u.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:mC?"svb":(0,u.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,u.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:mC?"svmin":(0,u.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,u.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:mC?"lvw":(0,u.__)("Large viewport width (lvw)"),a11yLabel:(0,u.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:mC?"lvh":(0,u.__)("Large viewport height (lvh)"),a11yLabel:(0,u.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:mC?"lvi":(0,u.__)("Large viewport width or height (lvi)"),a11yLabel:(0,u.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:mC?"lvb":(0,u.__)("Large viewport width or height (lvb)"),a11yLabel:(0,u.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:mC?"lvmin":(0,u.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,u.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:mC?"dvw":(0,u.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,u.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:mC?"dvh":(0,u.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,u.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:mC?"dvi":(0,u.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,u.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:mC?"dvb":(0,u.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,u.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:mC?"dvmin":(0,u.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,u.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:mC?"dvmax":(0,u.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,u.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:mC?"svmax":(0,u.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,u.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:mC?"lvmax":(0,u.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,u.__)("Large viewport largest dimension (lvmax)"),step:.1}},hC=Object.values(pC),gC=[pC.px,pC["%"],pC.em,pC.rem,pC.vw,pC.vh],vC=pC.px;function bC(e,t,n){return xC(t?`${null!=e?e:""}${t}`:e,n)}function yC(e){return Array.isArray(e)&&!!e.length}function xC(e,t=hC){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(yC(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=vC.value;return[r,a]}const wC=({units:e=hC,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=xC(n[e.value]);r[t].default=o}})),r};const EC=e=>e.replace(/^var\((.+)\)$/,"$1"),_C=os(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:o,colors:i,disableCustomColors:a,enableAlpha:s,enableStyle:l,indicatorClassName:c,indicatorWrapperClassName:d,isStyleSettable:f,onReset:m,onColorChange:p,onStyleChange:h,popoverContentClassName:g,popoverControlsClassName:v,resetButtonClassName:b,showDropdownHeader:y,size:x,__unstablePopoverProps:w,...E}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:a,previousStyleSelection:s,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=rs(e,"BorderControlDropdown"),[d]=xC(t?.width),f=0===d,m=ns(),p=(0,Uo.useMemo)((()=>m(sC,n)),[n,m]),h=(0,Uo.useMemo)((()=>m(dC)),[m]),g=(0,Uo.useMemo)((()=>m(lC(t,l))),[t,m,l]),v=(0,Uo.useMemo)((()=>m(cC)),[m]),b=(0,Uo.useMemo)((()=>m(uC)),[m]),y=(0,Uo.useMemo)((()=>m(fC)),[m]);return{...u,border:t,className:p,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:h,indicatorWrapperClassName:g,onColorChange:e=>{a({color:e,style:"none"===t?.style?s:t?.style,width:f&&e?"1px":t?.width})},onStyleChange:e=>{const n=f&&e?"1px":t?.width;a({...t,style:e,width:n})},onReset:()=>{a({...t,color:void 0,style:void 0})},popoverContentClassName:b,popoverControlsClassName:v,resetButtonClassName:y,size:l,__experimentalIsRenderedInSidebar:c}}(e),{color:_,style:S}=o||{},C=((e,t)=>{if(e&&t){if(qS(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(_,i),k=((e,t,n,r)=>{if(r){if(t){const e=EC(t.color);return n?(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=EC(e);return n?(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,u.__)("Border color and style picker.")}return t?(0,u.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,EC(t.color)):e?(0,u.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',EC(e)):(0,u.__)("Border color picker.")})(_,C,S,l),P=_||S&&"none"!==S,T=n?"bottom left":void 0;return(0,r.createElement)(FE,{renderToggle:({onToggle:e})=>(0,r.createElement)(my,{onClick:e,variant:"tertiary","aria-label":k,tooltipPosition:T,label:(0,u.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===x},(0,r.createElement)("span",{className:d},(0,r.createElement)(DE,{className:c,colorValue:_}))),renderContent:({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(GS,{paddingSize:"medium"},(0,r.createElement)(jS,{className:v,spacing:6},y?(0,r.createElement)(Py,null,(0,r.createElement)(Qb,null,(0,u.__)("Border color")),(0,r.createElement)(my,{size:"small",label:(0,u.__)("Close border color"),icon:zw,onClick:e})):void 0,(0,r.createElement)(JS,{className:g,value:_,onChange:p,colors:i,disableCustomColors:a,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&f&&(0,r.createElement)(NE,{label:(0,u.__)("Style"),value:S,onChange:h}))),P&&(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(my,{className:b,variant:"tertiary",onClick:()=>{m(),e()}},(0,u.__)("Reset")))),popoverProps:{...w},...E,ref:t})}),"BorderControlDropdown"),SC=_C;const CC=(0,Uo.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:o="default",unit:i="px",units:a=gC,...s},l){if(!yC(a)||1===a?.length)return(0,r.createElement)(tC,{className:"components-unit-control__unit-label",selectSize:o},i);const u=c()("components-unit-control__select",e);return(0,r.createElement)(nC,{ref:l,className:u,onChange:e=>{const{value:t}=e.target,r=a.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:o,tabIndex:t?void 0:-1,value:i,...s},a.map((e=>(0,r.createElement)("option",{value:e.value,key:e.value},e.label))))}));const kC=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:o="off",children:i,className:a,disabled:s=!1,disableUnits:l=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:m=!0,label:p,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=gC,value:x,onFocus:w,...E}=Nv(e);"unit"in e&&qo()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=x?x:void 0,[S,C]=(0,Uo.useMemo)((()=>{const e=function(e,t,n=hC){const r=Array.isArray(n)?[...n]:[],[,o]=bC(e,t,hC);return o&&!r.some((e=>e.value===o))&&pC[o]&&r.unshift(pC[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Uy(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Uy(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,P]=bC(_,b,S),[T,I]=XE(1===S.length?S[0].value:b,{initial:P,fallback:""});(0,Uo.useEffect)((()=>{void 0!==P&&I(P)}),[P,I]);const R=c()("components-unit-control","components-unit-control-wrapper",a);let M;!l&&m&&S.length&&(M=e=>{E.onKeyDown?.(e),!e.metaKey&&C.test(e.key)&&N.current?.focus()});const N=(0,Uo.useRef)(null),D=l?null:(0,r.createElement)(CC,{ref:N,"aria-label":(0,u.__)("Select unit"),disabled:s,isUnitSelectTabbable:m,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),I(e)},size:["small","compact"].includes(v)||"default"===v&&!E.__next40pxDefaultSize?"small":"default",unit:T,units:S,onFocus:w,onBlur:e.onBlur});let A=E.step;if(!A&&S){var O;const e=S.find((e=>e.value===T));A=null!==(O=e?.step)&&void 0!==O?O:1}return(0,r.createElement)(QS,{...E,autoComplete:o,className:R,disabled:s,spinControls:"none",isPressEnterToChange:d,label:p,onKeyDown:M,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=xC(e,t),a=null!=o?o:n;let s=i||r;return!s&&yC(t)&&(s=t[0].value),[a,s]}(e,S,k,T).join("");h?.(n,t)},ref:t,size:v,suffix:D,type:d?"text":"number",value:null!=k?k:"",step:A,onFocus:w,__unstableStateReducer:n})})),PC=kC,TC=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function IC(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:a=!0,shouldSanitizeBorder:s=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:f,...m}=rs(e,"BorderControl"),p="default"===l&&f?"__unstable-large":l,[h,g]=xC(c?.width),v=g||"px",b=0===h,[y,x]=(0,Uo.useState)(),[w,E]=(0,Uo.useState)(),_=!s||TC(c),S=(0,Uo.useCallback)((e=>{!s||TC(e)?o(e):o(void 0)}),[o,s]),C=(0,Uo.useCallback)((e=>{const t=""===e?void 0:e,[n]=xC(e),r=0===n,o={...c,width:t};r&&!b&&(x(c?.color),E(c?.style),o.color=void 0,o.style="none"),!r&&b&&(void 0===o.color&&(o.color=y),"none"===o.style&&(o.style=w)),S(o)}),[c,b,y,w,S]),k=(0,Uo.useCallback)((e=>{C(`${e}${v}`)}),[C,v]),P=ns(),T=(0,Uo.useMemo)((()=>P(iC,t)),[t,P]);let I=u;r&&(I="__unstable-large"===l?"116px":"90px");const R=(0,Uo.useMemo)((()=>{const e=!!I&&aC,t=(e=>Ps("height:","__unstable-large"===e?"40px":"30px",";",""))(p);return P(Ps(QS,"{flex:1 1 40%;}&& ",nC,"{min-height:0;}",""),e,t)}),[I,P,p]),M=(0,Uo.useMemo)((()=>P(Ps("flex:1 1 60%;",Jh({marginRight:Ah(3)})(),";",""))),[P]);return{...m,className:T,colors:n,enableAlpha:i,enableStyle:a,innerWrapperClassName:R,inputWidth:I,isStyleSettable:_,onBorderChange:S,onSliderChange:k,onWidthChange:C,previousStyleSelection:w,sliderClassName:M,value:c,widthUnit:v,widthValue:h,size:p,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:f}}const RC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,r.createElement)(ws,{as:"legend"},t):(0,r.createElement)(Qb,{as:"legend"},t):null},MC=os(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:o,disableCustomColors:i,disableUnits:a,enableAlpha:s,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:d,inputWidth:f,isStyleSettable:m,label:p,onBorderChange:h,onSliderChange:g,onWidthChange:v,placeholder:b,__unstablePopoverProps:y,previousStyleSelection:x,showDropdownHeader:w,size:E,sliderClassName:_,value:S,widthUnit:C,widthValue:k,withSlider:P,__experimentalIsRenderedInSidebar:T,...I}=IC(e);return(0,r.createElement)(xs,{as:"fieldset",...I,ref:t},(0,r.createElement)(RC,{label:p,hideLabelFromVision:c}),(0,r.createElement)(Py,{spacing:4,className:d},(0,r.createElement)(PC,{prefix:(0,r.createElement)(SC,{border:S,colors:o,__unstablePopoverProps:y,disableCustomColors:i,enableAlpha:s,enableStyle:l,isStyleSettable:m,onChange:h,previousStyleSelection:x,showDropdownHeader:w,__experimentalIsRenderedInSidebar:T,size:E}),label:(0,u.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:v,value:S?.width||"",placeholder:b,disableUnits:a,__unstableInputWidth:f,size:E}),P&&(0,r.createElement)(k_,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:g,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})))}),"BorderControl"),NC=MC,DC={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function AC(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:a=3,isInline:s=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:f,...m}=rs(e,"Grid"),p=Nh(Array.isArray(i)?i:[i]),h=Nh(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${p}, 1fr )`,v=f||!!u&&`repeat( ${h}, 1fr )`,b=ns();return{...m,className:(0,Uo.useMemo)((()=>{const e=function(e){return e?DC[e]:{}}(n),i=Ps({alignItems:t,display:s?"inline-grid":"grid",gap:`calc( ${Xg.gridBase} * ${a} )`,gridTemplateColumns:g||void 0,gridTemplateRows:v||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:s?"middle":void 0,...e},"","");return b(i,r)}),[t,n,r,o,b,a,g,v,s,l,c])}}const OC=os((function(e,t){const n=AC(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Grid");function zC(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...s}=rs(e,"BorderBoxControlSplitControls"),l=ns(),c=(0,Uo.useMemo)((()=>l((e=>Ps("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...s,centeredClassName:(0,Uo.useMemo)((()=>l(Mw,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Uo.useMemo)((()=>l(Ps(Jh({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:a}}const LC=os(((e,t)=>{const{centeredClassName:n,colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,onChange:l,popoverPlacement:c,popoverOffset:f,rightAlignedClassName:m,size:p="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=zC(e),[b,y]=(0,Uo.useState)(null),x=(0,Uo.useMemo)((()=>c?{placement:c,offset:f,anchor:b,shift:!0}:void 0),[c,f,b]),w={colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:p},E=(0,d.useMergeRefs)([y,t]);return(0,r.createElement)(OC,{...v,ref:E,gap:4},(0,r.createElement)(Ow,{value:h,size:p}),(0,r.createElement)(NC,{className:n,hideLabelFromVision:!0,label:(0,u.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:x,value:h?.top,...w}),(0,r.createElement)(NC,{hideLabelFromVision:!0,label:(0,u.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:x,value:h?.left,...w}),(0,r.createElement)(NC,{className:m,hideLabelFromVision:!0,label:(0,u.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:x,value:h?.right,...w}),(0,r.createElement)(NC,{className:n,hideLabelFromVision:!0,label:(0,u.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:x,value:h?.bottom,...w}))}),"BorderBoxControlSplitControls"),FC=LC,BC=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;const jC=["top","right","bottom","left"],VC=["color","style","width"],HC=e=>!e||!VC.some((t=>void 0!==e[t])),$C=e=>{if(!e)return!1;if(WC(e)){return!jC.every((t=>HC(e[t])))}return!HC(e)},WC=(e={})=>Object.keys(e).some((e=>-1!==jC.indexOf(e))),UC=e=>{if(!WC(e))return!1;const t=jC.map((t=>GC(e?.[t])));return!t.every((e=>e===t[0]))},GC=(e,t)=>{if(HC(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},qC=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(BC);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function YC(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:s,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:c,...u}=rs(e,"BorderBoxControl"),d="default"===a&&c?"__unstable-large":a,f=UC(s),m=WC(s),p=m?(e=>{if(!e)return;const t=[],n=[],r=[];jC.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:qC(r)}})(s):s,h=m?s:(e=>{if(e&&!HC(e))return{top:e,right:e,bottom:e,left:e}})(s),g=!isNaN(parseFloat(`${p?.width}`)),[v,b]=(0,Uo.useState)(!f),y=ns(),x=(0,Uo.useMemo)((()=>y(Tw,t)),[y,t]),w=(0,Uo.useMemo)((()=>y(Ps("flex:1;",Jh({marginRight:"24px"})(),";",""))),[y]),E=(0,Uo.useMemo)((()=>y(Iw)),[y]);return{...u,className:x,colors:n,disableUnits:f&&!g,enableAlpha:o,enableStyle:i,hasMixedBorders:f,isLinked:v,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!f||(t=e)&&VC.every((e=>void 0!==t[e])))return r(HC(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...s?.top,...n},right:{...s?.right,...n},bottom:{...s?.bottom,...n},left:{...s?.left,...n}};if(UC(o))return r(o);const i=HC(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...h,[t]:e};UC(n)?r(n):r(e)},toggleLinked:()=>b(!v),linkedValue:p,size:d,splitValue:h,wrapperClassName:E,__experimentalIsRenderedInSidebar:l}}const KC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,r.createElement)(ws,{as:"label"},t):(0,r.createElement)(Qb,null,t):null},XC=os(((e,t)=>{const{className:n,colors:o,disableCustomColors:i,disableUnits:a,enableAlpha:s,enableStyle:l,hasMixedBorders:c,hideLabelFromVision:f,isLinked:m,label:p,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:x,size:w,splitValue:E,toggleLinked:_,wrapperClassName:S,__experimentalIsRenderedInSidebar:C,...k}=YC(e),[P,T]=(0,Uo.useState)(null),I=(0,Uo.useMemo)((()=>y?{placement:y,offset:x,anchor:P,shift:!0}:void 0),[y,x,P]),R=(0,d.useMergeRefs)([T,t]);return(0,r.createElement)(xs,{className:n,...k,ref:R},(0,r.createElement)(KC,{label:p,hideLabelFromVision:f}),(0,r.createElement)(xs,{className:S},m?(0,r.createElement)(NC,{className:h,colors:o,disableUnits:a,disableCustomColors:i,enableAlpha:s,enableStyle:l,onChange:v,placeholder:c?(0,u.__)("Mixed"):void 0,__unstablePopoverProps:I,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===w?"116px":"110px",__experimentalIsRenderedInSidebar:C,size:w}):(0,r.createElement)(FC,{colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:x,value:E,__experimentalIsRenderedInSidebar:C,size:w}),(0,r.createElement)(Dw,{onClick:_,isLinked:m,size:w})))}),"BorderBoxControl"),ZC=XC;const JC=bs("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),QC=bs("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),ek=bs("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>Ps({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),tk=bs(ek,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),nk=bs(ek,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),rk=bs(nk,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),ok=bs(tk,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),ik=bs(nk,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),ak=bs(tk,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function sk({size:e=24,side:t="all",sides:n,...o}){const i=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),a=i("top")||i("vertical"),s=i("right")||i("horizontal"),l=i("bottom")||i("vertical"),c=i("left")||i("horizontal"),u=e/24;return(0,r.createElement)(JC,{style:{transform:`scale(${u})`},...o},(0,r.createElement)(QC,null,(0,r.createElement)(rk,{isFocused:a}),(0,r.createElement)(ok,{isFocused:s}),(0,r.createElement)(ik,{isFocused:l}),(0,r.createElement)(ak,{isFocused:c})))}const lk=bs(PC,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),ck=bs(Py,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),uk=bs(my,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),dk=bs("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),fk=bs(sk,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),mk=bs(k_,{target:"e1jovhle0"})("width:100%;margin-inline-end:",Ah(2),";"),pk={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},hk={all:(0,u.__)("All sides"),top:(0,u.__)("Top side"),bottom:(0,u.__)("Bottom side"),left:(0,u.__)("Left side"),right:(0,u.__)("Right side"),mixed:(0,u.__)("Mixed"),vertical:(0,u.__)("Top and bottom sides"),horizontal:(0,u.__)("Left and right sides")},gk={top:void 0,right:void 0,bottom:void 0,left:void 0},vk=["top","right","bottom","left"];function bk(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function yk(e={},t,n=vk){const r=function(e){const t=[];if(!e?.length)return vk;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=vk.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>xC(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=bk(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return bk(t)}(t))&&void 0!==l?l:bk(i);return[a,s].join("")}function xk(e={},t,n=vk){const r=yk(e,t,n);return isNaN(parseFloat(r))}function wk(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function Ek(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function _k(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):vk.forEach((e=>r[e]=t)),r}const Sk=()=>{};function Ck({__next40pxDefaultSize:e,onChange:t=Sk,onFocus:n=Sk,values:o,sides:i,selectedUnits:a,setSelectedUnits:s,...l}){var c,u;const f=(0,d.useInstanceId)(Ck,"box-control-input-all"),m=yk(o,a,i),p=wk(o)&&xk(o,a,i),h=p?hk.mixed:void 0,[g,v]=xC(m),b=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),r=_k(o,n?e:void 0,i);t(r)};return(0,r.createElement)(Py,null,(0,r.createElement)(lk,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:p,id:f,isPressEnterToChange:!0,value:m,onChange:b,onUnitChange:e=>{const t=_k(a,e,i);s(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:h,label:hk.all,hideLabelFromVision:!0}),(0,r.createElement)(mk,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":f,label:hk.all,hideLabelFromVision:!0,onChange:e=>{b(void 0!==e?[e,v].join(""):void 0)},min:0,max:null!==(c=pk[null!=v?v:"px"]?.max)&&void 0!==c?c:10,step:null!==(u=pk[null!=v?v:"px"]?.step)&&void 0!==u?u:.1,value:null!=g?g:0,withInputField:!1}))}const kk=()=>{};function Pk({__next40pxDefaultSize:e,onChange:t=kk,onFocus:n=kk,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=(0,d.useInstanceId)(Pk,"box-control-input"),u=e=>t=>{n(t,{side:e})},f=(e,n,r)=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=a,r?.event.altKey)switch(e){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(e=>{t(e)})(i)},m=e=>t=>{const n={...i};n[e]=t,a(n)},p=s?.length?vk.filter((e=>s.includes(e))):vk;return(0,r.createElement)(r.Fragment,null,p.map((t=>{var n,a;const[d,p]=xC(o[t]),h=o[t]?p:i[t],g=[c,t].join("-");return(0,r.createElement)(ck,{key:`box-control-${t}`,expanded:!0},(0,r.createElement)(fk,{side:t,sides:s}),(0,r.createElement)(ri,{placement:"top-end",text:hk[t]},(0,r.createElement)(lk,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[d,h].join(""),onChange:(e,n)=>f(t,e,n),onUnitChange:m(t),onFocus:u(t),label:hk[t],hideLabelFromVision:!0})),(0,r.createElement)(mk,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:hk[t],hideLabelFromVision:!0,onChange:e=>{f(t,void 0!==e?[e,h].join(""):void 0)},min:0,max:null!==(n=pk[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(a=pk[null!=h?h:"px"]?.step)&&void 0!==a?a:.1,value:null!=d?d:0,withInputField:!1}))})))}const Tk=["vertical","horizontal"];function Ik({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=(0,d.useInstanceId)(Ik,"box-control-input"),u=e=>t=>{n&&n(t,{side:e})},f=(e,n)=>{if(!t)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=i,r.bottom=i),"horizontal"===e&&(r.left=i,r.right=i),t(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),a(n)},p=s?.length?Tk.filter((e=>s.includes(e))):Tk;return(0,r.createElement)(r.Fragment,null,p.map((t=>{var n,a;const[d,p]=xC("vertical"===t?o.top:o.left),h="vertical"===t?i.top:i.left,g=[c,t].join("-");return(0,r.createElement)(ck,{key:t},(0,r.createElement)(fk,{side:t,sides:s}),(0,r.createElement)(ri,{placement:"top-end",text:hk[t]},(0,r.createElement)(lk,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[d,null!=h?h:p].join(""),onChange:e=>f(t,e),onUnitChange:m(t),onFocus:u(t),label:hk[t],hideLabelFromVision:!0,key:t})),(0,r.createElement)(mk,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:hk[t],hideLabelFromVision:!0,onChange:e=>f(t,void 0!==e?[e,null!=h?h:p].join(""):void 0),min:0,max:null!==(n=pk[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(a=pk[null!=h?h:"px"]?.step)&&void 0!==a?a:.1,value:null!=d?d:0,withInputField:!1}))})))}function Rk({isLinked:e,...t}){const n=e?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,r.createElement)(ri,{text:n},(0,r.createElement)(my,{...t,className:"component-box-control__linked-button",size:"small",icon:e?kw:Pw,iconSize:24,"aria-label":n}))}const Mk={min:0},Nk=()=>{};function Dk({__next40pxDefaultSize:e=!1,id:t,inputProps:n=Mk,onChange:o=Nk,label:i=(0,u.__)("Box Control"),values:a,units:s,sides:l,splitOnAxis:c=!1,allowReset:f=!0,resetValues:m=gk,onMouseOver:p,onMouseOut:h}){const[g,v]=XE(a,{fallback:gk}),b=g||gk,y=wk(a),x=1===l?.length,[w,E]=(0,Uo.useState)(y),[_,S]=(0,Uo.useState)(!y||!xk(b)||x),[C,k]=(0,Uo.useState)(Ek(_,c)),[P,T]=(0,Uo.useState)({top:xC(a?.top)[1],right:xC(a?.right)[1],bottom:xC(a?.bottom)[1],left:xC(a?.left)[1]}),I=function(e){const t=(0,d.useInstanceId)(Dk,"inspector-box-control");return e||t}(t),R=`${I}-heading`,M={...n,onChange:e=>{o(e),v(e),E(!0)},onFocus:(e,{side:t})=>{k(t)},isLinked:_,units:s,selectedUnits:P,setSelectedUnits:T,sides:l,values:b,onMouseOver:p,onMouseOut:h,__next40pxDefaultSize:e};return(0,r.createElement)(OC,{id:I,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":R},(0,r.createElement)(oy.VisualLabel,{id:R},i),_&&(0,r.createElement)(ck,null,(0,r.createElement)(fk,{side:C,sides:l}),(0,r.createElement)(Ck,{...M})),!x&&(0,r.createElement)(dk,null,(0,r.createElement)(Rk,{onClick:()=>{S(!_),k(Ek(!_,c))},isLinked:_})),!_&&c&&(0,r.createElement)(Ik,{...M}),!_&&!c&&(0,r.createElement)(Pk,{...M}),f&&(0,r.createElement)(uk,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{o(m),v(m),T(m),E(!1)},disabled:!w},(0,u.__)("Reset")))}const Ak=Dk;const Ok=(0,Uo.forwardRef)((function(e,t){const{className:n,...o}=e,i=c()("components-button-group",n);return(0,r.createElement)("div",{ref:t,role:"group",className:i,...o})}));const zk={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function Lk(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const Fk=os((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:a=!1,offset:s=0,value:l=0,...c}=rs(e,"Elevation"),u=ns();return{...c,className:(0,Uo.useMemo)((()=>{let e=ag(i)?i:2*l,c=ag(t)?t:l/2;a||(e=ag(i)?i:void 0,c=ag(t)?t:void 0);const d=`box-shadow ${Xg.transitionDuration} ${Xg.transitionTimingFunction}`,f={};return f.Base=Ps({borderRadius:n,bottom:s,boxShadow:Lk(l),opacity:Xg.elevationIntensity,left:s,right:s,top:s,transition:d},As("transition"),"",""),ag(e)&&(f.hover=Ps("*:hover>&{box-shadow:",Lk(e),";}","")),ag(c)&&(f.active=Ps("*:active>&{box-shadow:",Lk(c),";}","")),ag(o)&&(f.focus=Ps("*:focus>&{box-shadow:",Lk(o),";}","")),u(zk,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,u,o,i,a,s,l]),"aria-hidden":!0}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Elevation"),Bk=Fk;const jk=`calc(${Xg.cardBorderRadius} - 1px)`,Vk=Ps("box-shadow:0 0 0 1px ",Xg.surfaceBorderColor,";outline:none;",""),Hk={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},$k={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},Wk={name:"13udsys",styles:"height:100%"},Uk={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},Gk={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},qk={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},Yk=Ps("&:first-of-type{border-top-left-radius:",jk,";border-top-right-radius:",jk,";}&:last-of-type{border-bottom-left-radius:",jk,";border-bottom-right-radius:",jk,";}",""),Kk=Ps("border-color:",Xg.colorDivider,";",""),Xk={name:"1t90u8d",styles:"box-shadow:none"},Zk={name:"1e1ncky",styles:"border:none"},Jk=Ps("border-radius:",jk,";",""),Qk=Ps("padding:",Xg.cardPaddingXSmall,";",""),eP={large:Ps("padding:",Xg.cardPaddingLarge,";",""),medium:Ps("padding:",Xg.cardPaddingMedium,";",""),small:Ps("padding:",Xg.cardPaddingSmall,";",""),xSmall:Qk,extraSmall:Qk},tP=Ps("background-color:",Ds.ui.backgroundDisabled,";",""),nP=Ps("background-color:",Xg.surfaceColor,";color:",Ds.gray[900],";position:relative;","");Xg.surfaceBackgroundColor;function rP({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Xg.surfaceBorderColor}`;return Ps({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const oP=Ps("",""),iP=Ps("background:",Xg.surfaceBackgroundTintColor,";",""),aP=Ps("background:",Xg.surfaceBackgroundTertiaryColor,";",""),sP=e=>[e,e].join(" "),lP=e=>["90deg",[Xg.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),cP=e=>[[Xg.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),uP=(e,t)=>Ps("background:",(e=>[`linear-gradient( ${lP(e)} ) center`,`linear-gradient( ${cP(e)} ) center`,Xg.surfaceBorderBoldColor].join(","))(t),";background-size:",sP(e),";",""),dP=[`linear-gradient( ${[`${Xg.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Xg.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),fP=(e,t,n)=>{switch(e){case"dotted":return uP(t,n);case"grid":return(e=>Ps("background:",Xg.surfaceBackgroundColor,";background-image:",dP,";background-size:",sP(e),";",""))(t);case"primary":return oP;case"secondary":return iP;case"tertiary":return aP}};function mP(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:a,variant:s="primary",...l}=rs(e,"Surface"),c=ns();return{...l,className:(0,Uo.useMemo)((()=>{const e={borders:rP({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return c(nP,e.borders,fP(s,`${t}px`,t-1+"px"),a)}),[t,n,r,o,i,a,c,s])}}function pP(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...a}=rs(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(qo()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),s=ns();return{...mP({...a,className:(0,Uo.useMemo)((()=>s(Vk,r&&Xk,o&&Jk,t)),[t,s,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const hP=os((function(e,t){const{children:n,elevation:o,isBorderless:i,isRounded:a,size:s,...l}=pP(e),c=a?Xg.cardBorderRadius:0,u=ns(),d=(0,Uo.useMemo)((()=>u(Ps({borderRadius:c},"",""))),[u,c]),f=(0,Uo.useMemo)((()=>{const e={size:s,isBorderless:i};return{CardBody:e,CardHeader:e,CardFooter:e}}),[i,s]);return(0,r.createElement)(mi,{value:f},(0,r.createElement)(xs,{...l,ref:t},(0,r.createElement)(xs,{className:u(Wk)},n),(0,r.createElement)(Bk,{className:d,isInteractive:!1,value:o?1:0}),(0,r.createElement)(Bk,{className:d,isInteractive:!1,value:o})))}),"Card"),gP=hP;const vP=Ps("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Xg.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Xg.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Xg.colorScrollbarThumbHover,";}}",""),bP={name:"13udsys",styles:"height:100%"},yP={name:"7zq9w",styles:"scroll-behavior:smooth"},xP={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},wP={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},EP={name:"umwchj",styles:"overflow-y:auto"};const _P=os((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=rs(e,"Scrollable"),i=ns();return{...o,className:(0,Uo.useMemo)((()=>i(bP,vP,r&&yP,"x"===n&&xP,"y"===n&&wP,"auto"===n&&EP,t)),[t,i,n,r])}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Scrollable"),SP=_P;const CP=os((function(e,t){const{isScrollable:n,...o}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=rs(e,"CardBody"),a=ns();return{...i,className:(0,Uo.useMemo)((()=>a(Uk,Yk,eP[o],r&&tP,"components-card__body",t)),[t,a,r,o]),isScrollable:n}}(e);return n?(0,r.createElement)(SP,{...o,ref:t}):(0,r.createElement)(xs,{...o,ref:t})}),"CardBody"),kP=CP;var PP=Ve((e=>{var t=e,{orientation:n="horizontal"}=t,r=E(t,["orientation"]);return r=x({role:"separator","aria-orientation":n},r)})),TP=Fe((e=>je("hr",PP(e))));const IP={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var RP={name:"1u4hpl4",styles:"display:inline"};const MP=bs("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?RP:void 0)," ",(({"aria-orientation":e="horizontal"})=>Ps({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>Ps({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Ps(Jh({[IP[e].start]:Ah(null!=n?n:t),[IP[e].end]:Ah(null!=r?r:t)})(),"","")),";");const NP=os((function(e,t){const n=rs(e,"Divider");return(0,r.createElement)(TP,{render:(0,r.createElement)(MP,null),...n,ref:t})}),"Divider");const DP=os((function(e,t){const n=function(e){const{className:t,...n}=rs(e,"CardDivider"),r=ns();return{...n,className:(0,Uo.useMemo)((()=>r(qk,Kk,"components-card__divider",t)),[t,r])}}(e);return(0,r.createElement)(NP,{...n,ref:t})}),"CardDivider"),AP=DP;const OP=os((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...a}=rs(e,"CardFooter"),s=ns();return{...a,className:(0,Uo.useMemo)((()=>s($k,Yk,Kk,eP[i],r&&Zk,o&&tP,"components-card__footer",t)),[t,s,r,o,i]),justify:n}}(e);return(0,r.createElement)($h,{...n,ref:t})}),"CardFooter"),zP=OP;const LP=os((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=rs(e,"CardHeader"),a=ns();return{...i,className:(0,Uo.useMemo)((()=>a(Hk,Yk,Kk,eP[o],n&&Zk,r&&tP,"components-card__header",t)),[t,a,n,r,o])}}(e);return(0,r.createElement)($h,{...n,ref:t})}),"CardHeader"),FP=LP;const BP=os((function(e,t){const n=function(e){const{className:t,...n}=rs(e,"CardMedia"),r=ns();return{...n,className:(0,Uo.useMemo)((()=>r(Gk,Yk,"components-card__media",t)),[t,r])}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"CardMedia"),jP=BP;const VP=function e(t){const{__nextHasNoMarginBottom:n,label:o,className:i,heading:a,checked:s,indeterminate:l,help:u,id:f,onChange:m,...p}=t;a&&qo()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,Uo.useState)(!1),[v,b]=(0,Uo.useState)(!1),y=(0,d.useRefEffect)((e=>{e&&(e.indeterminate=!!l,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,l]),x=(0,d.useInstanceId)(e,"inspector-checkbox-control",f);return(0,r.createElement)(iy,{__nextHasNoMarginBottom:n,label:a,id:x,help:u,className:c()("components-checkbox-control",i)},(0,r.createElement)("span",{className:"components-checkbox-control__input-container"},(0,r.createElement)("input",{ref:y,id:x,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>m(e.target.checked),checked:s,"aria-describedby":u?x+"__help":void 0,...p}),v?(0,r.createElement)($E,{icon:rg,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,r.createElement)($E,{icon:DS,className:"components-checkbox-control__checked",role:"presentation"}):null),o&&(0,r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:x},o))},HP=4e3;function $P({className:e,children:t,onCopy:n,onFinishCopy:o,text:i,...a}){qo()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,Uo.useRef)(),l=(0,d.useCopyToClipboard)(i,(()=>{n(),s.current&&clearTimeout(s.current),o&&(s.current=setTimeout((()=>o()),HP))}));(0,Uo.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const u=c()("components-clipboard-button",e);return(0,r.createElement)(my,{...a,className:u,ref:l,onCopy:e=>{e.target.focus()}},t)}const WP=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const UP=e=>Ps("font-size:",Yb("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===e?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",Ds.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),GP={name:"1bcj5ek",styles:"width:100%;display:block"},qP={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},YP=Ps("border:1px solid ",Xg.surfaceBorderColor,";",""),KP=Ps(">*:not( marquee )>*{border-bottom:1px solid ",Xg.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),XP=Xg.controlBorderRadius,ZP=Ps("border-radius:",XP,";",""),JP=Ps("border-radius:",XP,";>*:first-of-type>*{border-top-left-radius:",XP,";border-top-right-radius:",XP,";}>*:last-of-type>*{border-bottom-left-radius:",XP,";border-bottom-right-radius:",XP,";}",""),QP=`calc(${Xg.fontSize} * ${Xg.fontLineHeightBase})`,eT=`calc((${Xg.controlHeight} - ${QP} - 2px) / 2)`,tT=`calc((${Xg.controlHeightSmall} - ${QP} - 2px) / 2)`,nT=`calc((${Xg.controlHeightLarge} - ${QP} - 2px) / 2)`,rT={small:Ps("padding:",tT," ",Xg.controlPaddingXSmall,";",""),medium:Ps("padding:",eT," ",Xg.controlPaddingX,";",""),large:Ps("padding:",nT," ",Xg.controlPaddingXLarge,";","")};const oT=(0,Uo.createContext)({size:"medium"}),iT=()=>(0,Uo.useContext)(oT);const aT=os((function(e,t){const{isBordered:n,isSeparated:o,size:i,...a}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=rs(e,"ItemGroup");return{isBordered:n,className:ns()(n&&YP,o&&KP,r&&JP,t),role:i,isSeparated:o,...a}}(e),{size:s}=iT(),l={spacedAround:!n&&!o,size:i||s};return(0,r.createElement)(oT.Provider,{value:l},(0,r.createElement)(xs,{...a,ref:t}))}),"ItemGroup"),sT=10,lT=0,cT=sT;function uT(e){return Math.max(0,Math.min(100,e))}function dT(e,t,n){const r=e.slice();return r[t]=n,r}function fT(e,t,n){if(function(e,t,n,r=lT){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return dT(e,t,{...e[t],position:n})}function mT(e,t,n){return dT(e,t,{...e[t],color:n})}function pT(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(uT(100*o/r))}function hT({isOpen:e,position:t,color:n,...o}){const i=`components-custom-gradient-picker__control-point-button-description-${(0,d.useInstanceId)(hT)}`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(my,{"aria-label":(0,u.sprintf)((0,u.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":i,"aria-haspopup":"true","aria-expanded":e,className:c()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...o}),(0,r.createElement)(ws,{id:i},(0,u.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function gT({isRenderedInSidebar:e,className:t,...n}){const o=(0,Uo.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),i=c()("components-custom-gradient-picker__control-point-dropdown",t);return(0,r.createElement)(XS,{isRenderedInSidebar:e,popoverProps:o,className:i,...n})}function vT({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:o,value:i,onChange:a,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:c}){const d=(0,Uo.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=pT(e.clientX,n.current),{initialPosition:r,index:o,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),a(fT(i,o,t))},m=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",m),l(),d.current.listenersActivated=!1)},p=(0,Uo.useRef)();return p.current=m,(0,Uo.useEffect)((()=>()=>{p.current?.()}),[]),(0,r.createElement)(r.Fragment,null,i.map(((n,p)=>{const h=n?.position;return o!==h&&(0,r.createElement)(gT,{isRenderedInSidebar:c,key:p,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(hT,{key:p,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:p,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",m))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),a(fT(i,p,uT(n.position-cT)))):"ArrowRight"===e.code&&(e.stopPropagation(),a(fT(i,p,uT(n.position+cT))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:o})=>(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(MS,{enableAlpha:!t,color:n.color,onChange:e=>{a(mT(i,p,Bg(e).toRgbString()))}}),!e&&i.length>2&&(0,r.createElement)(Py,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,r.createElement)(my,{onClick:()=>{a(function(e,t){return e.filter(((e,n)=>n!==t))}(i,p)),o()},variant:"link"},(0,u.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}vT.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:o,insertPosition:i,disableAlpha:a,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,Uo.useState)(!1);return(0,r.createElement)(gT,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(my,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?o():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:ng}),renderContent:()=>(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(MS,{enableAlpha:!a,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return mT(e,r,n)}(e,i,Bg(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,i,Bg(n).toRgbString())),c(!0))}})),style:null!==i?{left:`${i}%`,transform:"translateX( -50% )"}:void 0})};const bT=vT,yT=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},xT={id:"IDLE"};function wT({background:e,hasGradient:t,value:n,onChange:o,disableInserter:i=!1,disableAlpha:a=!1,__experimentalIsRenderedInSidebar:s=!1}){const l=(0,Uo.useRef)(null),[u,d]=(0,Uo.useReducer)(yT,xT),f=e=>{if(!l.current)return;const t=pT(e.clientX,l.current);n.some((({position:e})=>Math.abs(t-e)<sT))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},m="MOVING_INSERTER"===u.id,p="INSERTING_CONTROL_POINT"===u.id;return(0,r.createElement)("div",{className:c()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,r.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,r.createElement)("div",{ref:l,className:"components-custom-gradient-picker__markers-container"},!i&&(m||p)&&(0,r.createElement)(bT.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:a,insertPosition:u.insertPosition,value:n,onChange:o,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,r.createElement)(bT,{__experimentalIsRenderedInSidebar:s,disableAlpha:a,disableRemove:i,gradientPickerDomRef:l,ignoreMarkerPosition:p?u.insertPosition:void 0,value:n,onChange:o,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var ET=o(8924);const _T="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",ST={type:"angular",value:"90"},CT=[{value:"linear-gradient",label:(0,u.__)("Linear")},{value:"radial-gradient",label:(0,u.__)("Radial")}],kT={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function PT({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function TT({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(PT)].filter(Boolean).join(",")})`}function IT(e){return void 0===e.length||"%"!==e.length.type}function RT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Vg([Hg]);const MT=bs(Uh,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),NT=bs(Uh,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),DT=({gradientAST:e,hasGradient:t,onChange:n})=>{var o;const i=null!==(o=e?.orientation?.value)&&void 0!==o?o:180;return(0,r.createElement)(zy,{onChange:t=>{n(TT({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?i:""})},AT=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:o}=e;return(0,r.createElement)(YE,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,u.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(TT({...e,orientation:e.orientation?void 0:ST,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(TT({...r,type:"radial-gradient"}))})()},options:CT,size:"__unstable-large",value:t?o:void 0})};const OT=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:_T;try{t=ET.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=ET.parse(_T)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:kT[t.orientation.value].toString()}),t.colorStops.some(IT)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(e),a=function(e){return TT({type:"linear-gradient",orientation:ST,colorStops:e.colorStops})}(o),s=o.colorStops.map((e=>({color:RT(e),position:parseInt(e.length.value)})));return(0,r.createElement)(jS,{spacing:4,className:"components-custom-gradient-picker"},(0,r.createElement)(wT,{__experimentalIsRenderedInSidebar:n,background:a,hasGradient:i,value:s,onChange:e=>{t(TT(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Bg(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,r.createElement)($h,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,r.createElement)(MT,null,(0,r.createElement)(AT,{gradientAST:o,hasGradient:i,onChange:t})),(0,r.createElement)(NT,null,"linear-gradient"===o.type&&(0,r.createElement)(DT,{gradientAST:o,hasGradient:i,onChange:t}))))},zT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function LT({className:e,clearGradient:t,gradients:n,onChange:o,value:i,...a}){const s=(0,Uo.useMemo)((()=>n.map((({gradient:e,name:n,slug:a},s)=>(0,r.createElement)(BS.Option,{key:a,value:e,isSelected:i===e,tooltipText:n||(0,u.sprintf)((0,u.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:i===e?t:()=>o(e,s),"aria-label":n?(0,u.sprintf)((0,u.__)("Gradient: %s"),n):(0,u.sprintf)((0,u.__)("Gradient code: %s"),e)})))),[n,i,o,t]);return(0,r.createElement)(BS.OptionGroup,{className:e,options:s,...a})}function FT({className:e,clearGradient:t,gradients:n,onChange:o,value:i,headingLevel:a}){const s=(0,d.useInstanceId)(FT);return(0,r.createElement)(jS,{spacing:3,className:e},n.map((({name:e,gradients:n},l)=>{const c=`color-palette-${s}-${l}`;return(0,r.createElement)(jS,{spacing:2,key:l},(0,r.createElement)(WS,{level:a,id:c},e),(0,r.createElement)(LT,{clearGradient:t,gradients:n,onChange:e=>o(e,l),value:i,"aria-labelledby":c}))})))}function BT(e){const{asButtons:t,loop:n,actions:o,headingLevel:i,"aria-label":a,"aria-labelledby":s,...l}=e,c=zT(e.gradients)?(0,r.createElement)(FT,{headingLevel:i,...l}):(0,r.createElement)(LT,{...l});let d;if(t)d={asButtons:!0};else{const e={asButtons:!1,loop:n};d=a?{...e,"aria-label":a}:s?{...e,"aria-labelledby":s}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}return(0,r.createElement)(BS,{...d,actions:o,options:c})}const jT=function({className:e,gradients:t=[],onChange:n,value:o,clearable:i=!0,disableCustomGradients:a=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...c}){const d=(0,Uo.useCallback)((()=>n(void 0)),[n]);return(0,r.createElement)(jS,{spacing:t.length?4:0},!a&&(0,r.createElement)(OT,{__experimentalIsRenderedInSidebar:s,value:o,onChange:n}),(t.length>0||i)&&(0,r.createElement)(BT,{...c,className:e,clearGradient:d,gradients:t,onChange:n,value:o,actions:i&&!a&&(0,r.createElement)(BS.ButtonAction,{onClick:d},(0,u.__)("Clear")),headingLevel:l}))},VT=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),HT=window.wp.dom,$T=()=>{},WT=["menuitem","menuitemradio","menuitemcheckbox"];class UT extends Uo.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?HT.focus.tabbable:HT.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=$T,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&WT.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:o,onKeyDown:i,cycle:a,onlyBrowserTabstops:s,forwardedRef:l,...c}=this.props;return(0,r.createElement)("div",{ref:this.bindContainer,...c},e)}}const GT=(e,t)=>(0,r.createElement)(UT,{...e,forwardedRef:t});GT.displayName="NavigableContainer";const qT=(0,Uo.forwardRef)(GT);const YT=(0,Uo.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},o){return(0,r.createElement)(qT,{ref:o,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})})),KT=YT;function XT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=c()(t.className,e.className)),n}function ZT(e){return"function"==typeof e}const JT=is((function(e){const{children:t,className:n,controls:o,icon:i=VT,label:a,popoverProps:s,toggleProps:l,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:m,open:p,defaultOpen:h,onToggle:g,variant:v}=rs(e,"DropdownMenu");if(!o?.length&&!ZT(t))return null;let b;o?.length&&(b=o,Array.isArray(b[0])||(b=[o]));const y=XT({className:"components-dropdown-menu__popover",variant:v},s);return(0,r.createElement)(FE,{className:n,popoverProps:y,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:o=my,...s}=null!=l?l:{},u=XT({className:c()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,r.createElement)(o,{...u,icon:i,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:a,text:f,showTooltip:null===(n=l?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=XT({"aria-label":a,className:c()("components-dropdown-menu__menu",{"no-icons":m})},u);return(0,r.createElement)(KT,{...n,role:"menu"},ZT(t)?t(e):null,b?.flatMap(((t,n)=>t.map(((t,o)=>(0,r.createElement)(my,{key:[n,o].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:c()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===o,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))},open:p,defaultOpen:h,onToggle:g})}),"DropdownMenu"),QT=JT;const eI=bs(DE,{target:"e1lpqc909"})("&&{flex-shrink:0;width:",Ah(6),";height:",Ah(6),";}"),tI=bs(ly,{target:"e1lpqc908"})(yv,"{background:",Ds.gray[100],";border-radius:",Xg.controlBorderRadius,";",Ev,Ev,Ev,Ev,"{height:",Ah(8),";}",kv,kv,kv,"{border-color:transparent;box-shadow:none;}}"),nI=({as:e})=>"button"===e?Ps("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:",Ds.theme.accent,";}",""):null,rI=bs(xs,{target:"e1lpqc907"})(nI," padding-block:3px;padding-inline-start:",Ah(3),";border:1px solid ",Xg.surfaceBorderColor,";border-bottom-color:transparent;font-size:",Yb("default.fontSize"),";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:",Xg.controlBorderRadius,";border-top-right-radius:",Xg.controlBorderRadius,";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:",Xg.controlBorderRadius,";border-bottom-right-radius:",Xg.controlBorderRadius,";border-bottom-color:",Xg.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Ds.theme.accent,";}"),oI=bs("div",{target:"e1lpqc906"})("line-height:",Ah(8),";margin-left:",Ah(2),";margin-right:",Ah(2),";white-space:nowrap;overflow:hidden;"),iI=bs($S,{target:"e1lpqc905"})("text-transform:uppercase;line-height:",Ah(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),aI=bs(xs,{target:"e1lpqc904"})("height:",Ah(6),";display:flex;"),sI=bs(Py,{target:"e1lpqc903"})("margin-bottom:",Ah(2),";"),lI=bs(xs,{target:"e1lpqc902"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),cI=bs(my,{target:"e1lpqc901"})("&&{color:",Ds.theme.accent,";}"),uI=bs(my,{target:"e1lpqc900"})("&&{margin-top:",Ah(1),";}");function dI({value:e,onChange:t,label:n}){return(0,r.createElement)(tI,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function fI({isGradient:e,element:t,onChange:n,popoverProps:o,onClose:i=(()=>{})}){const a=(0,Uo.useMemo)((()=>({shift:!0,offset:20,resize:!1,placement:"left-start",...o,className:c()("components-palette-edit__popover",o?.className)})),[o]);return(0,r.createElement)(bw,{...a,onClose:i},!e&&(0,r.createElement)(MS,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,r.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,r.createElement)(OT,{__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function mI({canOnlyChangeValues:e,element:t,onChange:n,isEditing:o,onStartEditing:i,onRemove:a,onStopEditing:s,popoverProps:l,slugPrefix:c,isGradient:f}){const m=(0,d.__experimentalUseFocusOutside)(s),p=f?t.gradient:t.color,[h,g]=(0,Uo.useState)(null),v=(0,Uo.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,r.createElement)(rI,{className:o?"is-selected":void 0,as:o?"div":"button",onClick:i,"aria-label":o?void 0:(0,u.sprintf)((0,u.__)("Edit: %s"),t.name.trim().length?t.name:p),ref:g,...o?{...m}:{}},(0,r.createElement)(Py,{justify:"flex-start"},(0,r.createElement)(eI,{colorValue:p}),(0,r.createElement)(og,null,o&&!e?(0,r.createElement)(dI,{label:f?(0,u.__)("Gradient name"):(0,u.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:c+Wy(null!=e?e:"")})}):(0,r.createElement)(oI,null,t.name.trim().length?t.name:" ")),o&&!e&&(0,r.createElement)(og,null,(0,r.createElement)(uI,{size:"small",icon:Lw,label:(0,u.__)("Remove color"),onClick:a}))),o&&(0,r.createElement)(fI,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function pI({elements:e,onChange:t,editingElement:n,setEditingElement:o,canOnlyChangeValues:i,slugPrefix:a,isGradient:s,popoverProps:l}){const c=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{c.current=e}),[e]);const u=(0,d.useDebounce)(t,100);return(0,r.createElement)(jS,{spacing:3},(0,r.createElement)(aT,{isRounded:!0},e.map(((c,d)=>(0,r.createElement)(mI,{isGradient:s,canOnlyChangeValues:i,key:d,element:c,onStartEditing:()=>{n!==d&&o(d)},onChange:t=>{u(e.map(((e,n)=>n===d?t:e)))},onRemove:()=>{o(null);const n=e.filter(((e,t)=>t!==d));t(n.length?n:void 0)},isEditing:d===n,onStopEditing:()=>{d===n&&o(null)},slugPrefix:a,popoverProps:l})))))}const hI=[];const gI=function({gradients:e,colors:t=hI,onChange:n,paletteLabel:o,paletteLabelHeadingLevel:i=2,emptyMessage:a,canOnlyChangeValues:s,canReset:l,slugPrefix:c="",popoverProps:f}){const m=!!e,p=m?e:t,[h,g]=(0,Uo.useState)(!1),[v,b]=(0,Uo.useState)(null),y=h&&!!v&&p[v]&&!p[v].slug,x=p.length>0,w=(0,d.useDebounce)(n,100),E=(0,Uo.useCallback)(((e,t)=>{const n=void 0===t?void 0:p[t];n&&n[m?"gradient":"color"]===e?b(t):g(!0)}),[m,p]);return(0,r.createElement)(lI,null,(0,r.createElement)(sI,null,(0,r.createElement)(iI,{level:i},o),(0,r.createElement)(aI,null,x&&h&&(0,r.createElement)(cI,{size:"small",onClick:()=>{g(!1),b(null)}},(0,u.__)("Done")),!s&&(0,r.createElement)(my,{size:"small",isPressed:y,icon:ng,label:m?(0,u.__)("Add gradient"):(0,u.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,u.sprintf)((0,u.__)("Color %s"),r)}(p,c);n(e?[...e,{gradient:_T,name:r,slug:c+Wy(r)}]:[...t,{color:"#000",name:r,slug:c+Wy(r)}]),g(!0),b(p.length)}}),x&&(!h||!s||l)&&(0,r.createElement)(QT,{icon:WP,label:m?(0,u.__)("Gradient options"):(0,u.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(KT,{role:"menu"},!h&&(0,r.createElement)(my,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,u.__)("Show details")),!s&&(0,r.createElement)(my,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},m?(0,u.__)("Remove all gradients"):(0,u.__)("Remove all colors")),l&&(0,r.createElement)(my,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},m?(0,u.__)("Reset gradient"):(0,u.__)("Reset colors")))))))),x&&(0,r.createElement)(r.Fragment,null,h&&(0,r.createElement)(pI,{canOnlyChangeValues:s,elements:p,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:c,isGradient:m,popoverProps:f}),!h&&null!==v&&(0,r.createElement)(fI,{isGradient:m,onClose:()=>b(null),onChange:e=>{w(p.map(((t,n)=>n===v?e:t)))},element:p[null!=v?v:-1],popoverProps:f}),!h&&(m?(0,r.createElement)(jT,{gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,r.createElement)(JS,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!x&&a)},vI=({__next40pxDefaultSize:e})=>!e&&Ps("height:28px;padding-left:",Ah(1),";padding-right:",Ah(1),";",""),bI=bs($h,{target:"evuatpg0"})("height:38px;padding-left:",Ah(2),";padding-right:",Ah(2),";",vI,";");const yI=(0,Uo.forwardRef)((function(e,t){const{value:n,isExpanded:o,instanceId:i,selectedSuggestionIndex:a,className:s,onChange:l,onFocus:u,onBlur:d,...f}=e,[m,p]=(0,Uo.useState)(!1),h=n?n.length+1:0;return(0,r.createElement)("input",{ref:t,id:`components-form-token-input-${i}`,type:"text",...f,value:n||"",onChange:e=>{l&&l({value:e.target.value})},onFocus:e=>{p(!0),u?.(e)},onBlur:e=>{p(!1),d?.(e)},size:h,className:c()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":o,"aria-autocomplete":"list","aria-owns":o?`components-form-token-suggestions-${i}`:void 0,"aria-activedescendant":m&&-1!==a&&o?`components-form-token-suggestions-${i}-${a}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${i}`})})),xI=yI;var wI=o(5428),EI=o.n(wI);const _I=e=>{e.preventDefault()};const SI=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:o,onSelect:i,suggestions:a=[],displayTransform:s,instanceId:l,__experimentalRenderItem:u}){const[f,m]=(0,Uo.useState)(!1),p=(0,d.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(m(!0),EI()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{m(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||o?.(e)},g=e=>()=>{i?.(e)};return(0,r.createElement)("ul",{ref:p,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${l}`,role:"listbox"},a.map(((t,o)=>{const i=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),a=c()("components-form-token-field__suggestion",{"is-selected":o===e});let d;return d="function"==typeof u?u({item:t}):i?(0,r.createElement)("span",{"aria-label":s(t)},i.suggestionBeforeMatch,(0,r.createElement)("strong",{className:"components-form-token-field__suggestion-match"},i.suggestionMatch),i.suggestionAfterMatch):s(t),(0,r.createElement)("li",{id:`components-form-token-suggestions-${l}-${o}`,role:"option",className:a,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:_I,onClick:g(t),onMouseEnter:h(t),"aria-selected":o===e},d)})))},CI=(0,d.createHigherOrderComponent)((e=>t=>{const[n,o]=(0,Uo.useState)(void 0),i=(0,Uo.useCallback)((e=>o((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,r.createElement)("div",{...(0,d.__experimentalUseFocusOutside)(n)},(0,r.createElement)(e,{ref:i,...t}))}),"withFocusOutside"),kI=()=>{},PI=CI(class extends Uo.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),TI=(e,t)=>null===e?-1:t.indexOf(e);const II=function e(t){var n;const{__nextHasNoMarginBottom:o=!1,__next40pxDefaultSize:i=!1,value:a,label:s,options:l,onChange:f,onFilterValueChange:m=kI,hideLabelFromVision:p,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,u.__)("Item selected.")},__experimentalRenderItem:y}=Nv(t),[x,w]=cE({value:a,onChange:f}),E=l.find((e=>e.value===x)),_=null!==(n=E?.label)&&void 0!==n?n:"",S=(0,d.useInstanceId)(e,"combobox-control"),[C,k]=(0,Uo.useState)(E||null),[P,T]=(0,Uo.useState)(!1),[I,R]=(0,Uo.useState)(!1),[M,N]=(0,Uo.useState)(""),D=(0,Uo.useRef)(null),A=(0,Uo.useMemo)((()=>{const e=[],t=[],n=$y(M);return l.forEach((r=>{const o=$y(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,l]),O=e=>{w(e.value),(0,jy.speak)(b.selected,"assertive"),k(e),N(""),T(!1)},z=(e=1)=>{let t=TI(C,A)+e;t<0?t=A.length-1:t>=A.length&&(t=0),k(A[t]),T(!0)};return(0,Uo.useEffect)((()=>{const e=A.length>0,t=TI(C,A)>0;e&&!t&&k(A[0])}),[A,C]),(0,Uo.useEffect)((()=>{const e=A.length>0;if(P){const t=e?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):(0,u.__)("No results.");(0,jy.speak)(t,"polite")}}),[A,P]),(0,r.createElement)(PI,{onFocusOutside:()=>{T(!1)}},(0,r.createElement)(iy,{__nextHasNoMarginBottom:o,className:c()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${S}`,hideLabelFromVision:p,help:h},(0,r.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":C&&(O(C),t=!0);break;case"ArrowUp":z(-1),t=!0;break;case"ArrowDown":z(1),t=!0;break;case"Escape":T(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,r.createElement)(bI,{__next40pxDefaultSize:i},(0,r.createElement)(Uh,null,(0,r.createElement)(xI,{className:"components-combobox-control__input",instanceId:S,ref:D,value:P?M:_,onFocus:()=>{R(!0),T(!0),m(""),N("")},onBlur:()=>{R(!1)},isExpanded:P,selectedSuggestionIndex:TI(C,A),onChange:e=>{const t=e.value;N(t),m(t),I&&T(!0)}})),g&&(0,r.createElement)(og,null,(0,r.createElement)(my,{className:"components-combobox-control__reset",icon:zw,disabled:!x,onClick:()=>{w(null),D.current?.focus()},label:(0,u.__)("Reset")}))),P&&(0,r.createElement)(SI,{instanceId:S,match:{label:M,value:""},displayTransform:e=>e.label,suggestions:A,selectedIndex:TI(C,A),onHover:k,onSelect:O,scrollIntoView:!0,__experimentalRenderItem:y}))))};var RI=(0,r.createContext)(void 0),MI=Ve((e=>{const[t,n]=(0,r.useState)();return e=Te(e,(e=>(0,Le.jsx)(RI.Provider,{value:n,children:e})),[]),e=x({role:"group","aria-labelledby":t},e)}));Fe((e=>je("div",MI(e))));var NI=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);return r=MI(r)})),DI=Fe((e=>je("div",NI(e))));function AI(e){if(e.state){const{state:t,...n}=e,{store:r,...o}=AI(t);return{...n,...o,store:r}}return e}function OI(e,t={}){const n=e.displayName,o=n=>{const{store:o,...i}=AI(n),a=i;return a.id=(0,d.useInstanceId)(o,a.baseId,a.id),Object.entries(t).forEach((([e,t])=>{a.hasOwnProperty(e)&&(Object.assign(a,{[t]:a[e]}),delete a[e])})),delete a.baseId,(0,r.createElement)(e,{...a,store:o})};return o.displayName=n,o}const zI=(0,Uo.forwardRef)((({role:e,...t},n)=>{const o="row"===e?ll:DI;return(0,r.createElement)(o,{ref:n,role:e,...t})}));zI.displayName="CompositeGroup";const LI=OI(al,{baseId:"id"}),FI=OI(zI),BI=OI(qt,{focusable:"accessibleWhenDisabled"});function jI(e={}){const{baseId:t,currentId:n,orientation:r,rtl:o=!1,loop:i=!1,wrap:a=!1,shift:s=!1,unstable_virtual:l}=e;return{baseId:(0,d.useInstanceId)(LI,"composite",t),store:rl({defaultActiveId:n,rtl:o,orientation:r,focusLoop:i,focusShift:s,focusWrap:a,virtualFocus:l})}}const VI=new Set(["alert","status","log","marquee","timer"]),HI=[];function $I(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&VI.has(t))}const WI=(0,Uo.createContext)([]),UI=new Map;const GI=(0,Uo.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:i=null,focusOnMount:a=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:l=!0,isDismissible:f=!0,aria:m={labelledby:void 0,describedby:void 0},onRequestClose:p,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:x,contentLabel:w,onKeyDown:E,isFullScreen:_=!1,size:S,headerActions:C=null,__experimentalHideHeader:k=!1}=e,P=(0,Uo.useRef)(),T=(0,d.useInstanceId)(GI),I=i?`components-modal-header-${T}`:m.labelledby,R=(0,d.useFocusOnMount)("firstContentElement"===a?"firstElement":a),M=(0,d.useConstrainedTabbing)(),N=(0,d.useFocusReturn)(),D=(0,Uo.useRef)(null),A=(0,Uo.useRef)(null),[O,z]=(0,Uo.useState)(!1),[L,F]=(0,Uo.useState)(!1);let B;_||"fill"===S?B="is-full-screen":S&&(B=`has-size-${S}`);const j=(0,Uo.useCallback)((()=>{if(!D.current)return;const e=(0,HT.getScrollContainer)(D.current);D.current===e?F(!0):F(!1)}),[D]);(0,Uo.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];HI.push(n);for(const r of t)r!==e&&$I(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(P.current),()=>function(){const e=HI.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const V=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{V.current=p}),[p]);const H=(0,Uo.useContext)(WI),$=(0,Uo.useRef)([]);(0,Uo.useEffect)((()=>{H.push(V);const[e,t]=H;t&&e?.current?.();const n=$.current;return()=>{n[0]?.current?.(),H.shift()}}),[H]),(0,Uo.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=UI.get(t))&&void 0!==e?e:0);return UI.set(t,r),document.body.classList.add(n),()=>{const e=UI.get(t)-1;0===e?(document.body.classList.remove(t),UI.delete(t)):UI.set(t,e)}}),[n]),(0,Uo.useLayoutEffect)((()=>{if(!window.ResizeObserver||!A.current)return;const e=new ResizeObserver(j);return e.observe(A.current),j(),()=>{e.disconnect()}}),[j,A]);const W=(0,Uo.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!O&&n>0?z(!0):O&&n<=0&&z(!1)}),[O]);let U=null;const G={onPointerDown:e=>{e.target===e.currentTarget&&(U=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===U;U=null,0===t&&n&&p()}},q=(0,r.createElement)("div",{ref:(0,d.useMergeRefs)([P,t]),className:c()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||!s||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),p&&p(e))},...l?G:{}},(0,r.createElement)(ew,{document},(0,r.createElement)("div",{className:c()("components-modal__frame",B,x),style:b,ref:(0,d.useMergeRefs)([M,N,"firstContentElement"!==a?R:null]),role:o,"aria-label":w,"aria-labelledby":w?void 0:I,"aria-describedby":m.describedby,tabIndex:-1,onKeyDown:E},(0,r.createElement)("div",{className:c()("components-modal__content",{"hide-header":k,"is-scrollable":L,"has-scrolled-content":O}),role:"document",onScroll:W,ref:D,"aria-label":L?(0,u.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!k&&(0,r.createElement)("div",{className:"components-modal__header"},(0,r.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,r.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),i&&(0,r.createElement)("h1",{id:I,className:"components-modal__header-heading"},i)),C,f&&(0,r.createElement)(my,{onClick:p,icon:ex,label:g||(0,u.__)("Close")})),(0,r.createElement)("div",{ref:(0,d.useMergeRefs)([A,"firstContentElement"===a?R:null])},v)))));return(0,Uo.createPortal)((0,r.createElement)(WI.Provider,{value:$.current},q),document.body)})),qI=GI;const YI={name:"7g5ii0",styles:"&&{z-index:1000001;}"},KI=os(((e,t)=>{const{isOpen:n,onConfirm:o,onCancel:i,children:a,confirmButtonText:s,cancelButtonText:l,...c}=rs(e,"ConfirmDialog"),d=ns()(YI),f=(0,Uo.useRef)(),m=(0,Uo.useRef)(),[p,h]=(0,Uo.useState)(),[g,v]=(0,Uo.useState)();(0,Uo.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,Uo.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,Uo.useCallback)((e=>{e.target===f.current||e.target===m.current||"Enter"!==e.key||b(o)(e)}),[b,o]),x=null!=l?l:(0,u.__)("Cancel"),w=null!=s?s:(0,u.__)("OK");return(0,r.createElement)(r.Fragment,null,p&&(0,r.createElement)(qI,{onRequestClose:b(i),onKeyDown:y,closeButtonLabel:x,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...c},(0,r.createElement)(jS,{spacing:8},(0,r.createElement)(mv,null,a),(0,r.createElement)($h,{direction:"row",justify:"flex-end"},(0,r.createElement)(my,{__next40pxDefaultSize:!0,ref:f,variant:"tertiary",onClick:b(i)},x),(0,r.createElement)(my,{__next40pxDefaultSize:!0,ref:m,variant:"primary",onClick:b(o)},w)))))}),"ConfirmDialog");var XI=o(5826),ZI=o.n(XI);o(1915);function JI(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function QI(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function eR(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return QI(n.overflowY,t)||QI(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function tR(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let nR=0;function rR(){}function oR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!JI(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],m=e;JI(m)&&l(m);){if((m=null==(u=(c=m).parentElement)?c.getRootNode().host||null:u)===d){f.push(m);break}null!=m&&m===document.body&&eR(m)&&!eR(document.documentElement)||null!=m&&eR(m,s)&&f.push(m)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,x=b.width,w=b.top,E=b.right,_=b.bottom,S=b.left,C="start"===o||"nearest"===o?w:"end"===o?_:w+y/2,k="center"===i?S+x/2:"end"===i?E:S,P=[],T=0;T<f.length;T++){var I=f[T],R=I.getBoundingClientRect(),M=R.height,N=R.width,D=R.top,A=R.right,O=R.bottom,z=R.left;if("if-needed"===r&&w>=0&&S>=0&&_<=h&&E<=p&&w>=D&&_<=O&&S>=z&&E<=A)return P;var L=getComputedStyle(I),F=parseInt(L.borderLeftWidth,10),B=parseInt(L.borderTopWidth,10),j=parseInt(L.borderRightWidth,10),V=parseInt(L.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in I?I.offsetWidth-I.clientWidth-F-j:0,U="offsetHeight"in I?I.offsetHeight-I.clientHeight-B-V:0,G="offsetWidth"in I?0===I.offsetWidth?0:N/I.offsetWidth:0,q="offsetHeight"in I?0===I.offsetHeight?0:M/I.offsetHeight:0;if(d===I)H="start"===o?C:"end"===o?C-h:"nearest"===o?tR(v,v+h,h,B,V,v+C,v+C+y,y):C-h/2,$="start"===i?k:"center"===i?k-p/2:"end"===i?k-p:tR(g,g+p,p,F,j,g+k,g+k+x,x),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?C-D-B:"end"===o?C-O+V+U:"nearest"===o?tR(D,O,M,B,V+U,C,C+y,y):C-(D+M/2)+U/2,$="start"===i?k-z-F:"center"===i?k-(z+N/2)+W/2:"end"===i?k-A+j+W:tR(z,A,N,F,j+W,k,k+x,x);var Y=I.scrollLeft,K=I.scrollTop;C+=K-(H=Math.max(0,Math.min(K+H/q,I.scrollHeight-M/q+U))),k+=Y-($=Math.max(0,Math.min(Y+$/G,I.scrollWidth-N/G+W)))}P.push({el:I,top:H,left:$})}return P}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function iR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function aR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function sR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function lR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function cR(){return String(nR++)}function uR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function dR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=fR(t,r)?t[r]:e[r],n)),{})}function fR(e,t){return void 0!==e[t]}function mR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function pR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=hR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function hR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?hR(1,0,n,r,!1):hR(-1,n-1,n,r,!1):-1}function gR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(iR(t,e,n)||r&&iR(t,n.document.activeElement,n))))}const vR=aR((e=>{yR(e).textContent=""}),500);function bR(e,t){const n=yR(t);e&&(n.textContent=e,vR(t))}function yR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const xR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${PR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const ER=aR(((e,t)=>{bR(e(),t)}),200),_R="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function SR(e){let{id:t=`downshift-${cR()}`,labelId:n,menuId:o,getItemId:i,toggleButtonId:a,inputId:s}=e;const l=(0,r.useRef)({labelId:n||`${t}-label`,menuId:o||`${t}-menu`,getItemId:i||(e=>`${t}-item-${e}`),toggleButtonId:a||`${t}-toggle-button`,inputId:s||`${t}-input`});return l.current}function CR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function kR(e){return/^\S{1}$/.test(e)}function PR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function TR(e){const t=(0,r.useRef)(e);return t.current=e,t}function IR(e,t,n){const o=(0,r.useRef)(),i=(0,r.useRef)(),a=(0,r.useCallback)(((t,n)=>{i.current=n,t=dR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[s,l]=(0,r.useReducer)(a,t),c=TR(n),u=(0,r.useCallback)((e=>l({props:c.current,...e})),[c]),d=i.current;return(0,r.useEffect)((()=>{d&&o.current&&o.current!==s&&wR(d,dR(o.current,d.props),s),o.current=s}),[s,n,d]),[s,u]}function RR(e,t,n){const[r,o]=IR(e,t,n);return[dR(r,n),o]}const MR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:oR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function NR(e,t,n){void 0===n&&(n=xR);const r=e[`default${PR(t)}`];return void 0!==r?r:n[t]}function DR(e,t,n){void 0===n&&(n=xR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${PR(t)}`];return void 0!==o?o:NR(e,t,n)}function AR(e){const t=DR(e,"selectedItem"),n=DR(e,"isOpen"),r=DR(e,"highlightedIndex"),o=DR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function OR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):pR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function zR(e,t,n,o){const i=(0,r.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,r.useEffect)((()=>{const r=()=>{i.current.isMouseDown=!0},a=r=>{i.current.isMouseDown=!1,e&&!gR(r.target,t.map((e=>e.current)),n)&&o()},s=()=>{i.current.isTouchMove=!1},l=()=>{i.current.isTouchMove=!0},c=r=>{!e||i.current.isTouchMove||gR(r.target,t.map((e=>e.current)),n,!1)||o()};return n.addEventListener("mousedown",r),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),i}let LR=()=>rR;function FR(e,t,n){let{isInitialMount:o,highlightedIndex:i,items:a,environment:s,...l}=n;(0,r.useEffect)((()=>{o||ER((()=>e({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length,...l})),s.document)}),t)}function BR(e){let{highlightedIndex:t,isOpen:n,itemRefs:o,getItemNodeFromIndex:i,menuElement:a,scrollIntoView:s}=e;const l=(0,r.useRef)(!0);return _R((()=>{t<0||!n||!Object.keys(o.current).length||(!1===l.current?l.current=!0:s(i(t),a))}),[t]),l}let jR=rR;function VR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:OR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:OR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:NR(o,"highlightedIndex"),isOpen:NR(o,"isOpen"),selectedItem:NR(o,"selectedItem"),inputValue:NR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function HR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}ZI().array.isRequired,ZI().func,ZI().func,ZI().func,ZI().bool,ZI().number,ZI().number,ZI().number,ZI().bool,ZI().bool,ZI().bool,ZI().any,ZI().any,ZI().any,ZI().string,ZI().string,ZI().string,ZI().func,ZI().string,ZI().func,ZI().func,ZI().func,ZI().func,ZI().func,ZI().shape({addEventListener:ZI().func,removeEventListener:ZI().func,document:ZI().shape({getElementById:ZI().func,activeElement:ZI().any,body:ZI().any})});var $R=vi(vi({},MR),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),WR=rR;const UR=0,GR=1,qR=2,YR=3,KR=4,XR=5,ZR=6,JR=7,QR=8,eM=9,tM=10,nM=11,rM=12,oM=13,iM=14,aM=15,sM=16,lM=17,cM=18,uM=19,dM=20,fM=21,mM=22;var pM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:UR,MenuKeyDownArrowUp:GR,MenuKeyDownEscape:qR,MenuKeyDownHome:YR,MenuKeyDownEnd:KR,MenuKeyDownEnter:XR,MenuKeyDownSpaceButton:ZR,MenuKeyDownCharacter:JR,MenuBlur:QR,MenuMouseLeave:eM,ItemMouseMove:tM,ItemClick:nM,ToggleButtonClick:rM,ToggleButtonKeyDownArrowDown:oM,ToggleButtonKeyDownArrowUp:iM,ToggleButtonKeyDownCharacter:aM,FunctionToggleMenu:sM,FunctionOpenMenu:lM,FunctionCloseMenu:cM,FunctionSetHighlightedIndex:uM,FunctionSelectItem:dM,FunctionSetInputValue:fM,FunctionReset:mM});function hM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case nM:i={isOpen:NR(r,"isOpen"),highlightedIndex:NR(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case aM:{const n=t.key,o=`${e.inputValue}${n}`,a=HR({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case oM:i={highlightedIndex:OR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case iM:i={highlightedIndex:OR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case XR:case ZR:i={isOpen:NR(r,"isOpen"),highlightedIndex:NR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case YR:i={highlightedIndex:hR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case KR:i={highlightedIndex:hR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case qR:case QR:i={isOpen:!1,highlightedIndex:-1};break;case JR:{const n=t.key,o=`${e.inputValue}${n}`,a=HR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case UR:i={highlightedIndex:pR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case GR:i={highlightedIndex:pR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case dM:i={selectedItem:t.selectedItem};break;default:return VR(e,t,pM)}return{...e,...i}}function gM(e){void 0===e&&(e={}),WR(e,gM);const t={...$R,...e},{items:n,scrollIntoView:o,environment:i,initialIsOpen:a,defaultIsOpen:s,itemToString:l,getA11ySelectionMessage:c,getA11yStatusMessage:u}=t,d=AR(t),[f,m]=RR(hM,d,t),{isOpen:p,highlightedIndex:h,selectedItem:g,inputValue:v}=f,b=(0,r.useRef)(null),y=(0,r.useRef)(null),x=(0,r.useRef)({}),w=(0,r.useRef)(!0),E=(0,r.useRef)(null),_=SR(t),S=(0,r.useRef)(),C=(0,r.useRef)(!0),k=TR({state:f,props:t}),P=(0,r.useCallback)((e=>x.current[_.getItemId(e)]),[_]);FR(u,[p,h,v,n],{isInitialMount:C.current,previousResultCount:S.current,items:n,environment:i,itemToString:l,...f}),FR(c,[g],{isInitialMount:C.current,previousResultCount:S.current,items:n,environment:i,itemToString:l,...f});const T=BR({menuElement:y.current,highlightedIndex:h,isOpen:p,itemRefs:x,scrollIntoView:o,getItemNodeFromIndex:P});(0,r.useEffect)((()=>(E.current=aR((e=>{e({type:fM,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,r.useEffect)((()=>{v&&E.current(m)}),[m,v]),jR({isInitialMount:C.current,props:t,state:f}),(0,r.useEffect)((()=>{C.current?(a||s||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():i.document.activeElement===y.current&&b.current&&(w.current=!1,b.current.focus())}),[p]),(0,r.useEffect)((()=>{C.current||(S.current=n.length)}));const I=zR(p,[y,b],i,(()=>{m({type:QR})})),R=LR("getMenuProps","getToggleButtonProps");(0,r.useEffect)((()=>{C.current=!1}),[]),(0,r.useEffect)((()=>{p||(x.current={})}),[p]);const M=(0,r.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:oM,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:iM,getItemNodeFromIndex:P,shiftKey:e.shiftKey})}})),[m,P]),N=(0,r.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:UR,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:GR,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),m({type:YR,getItemNodeFromIndex:P})},End(e){e.preventDefault(),m({type:KR,getItemNodeFromIndex:P})},Escape(){m({type:qR})},Enter(e){e.preventDefault(),m({type:XR})}," "(e){e.preventDefault(),m({type:ZR})}})),[m,P]),D=(0,r.useCallback)((()=>{m({type:sM})}),[m]),A=(0,r.useCallback)((()=>{m({type:cM})}),[m]),O=(0,r.useCallback)((()=>{m({type:lM})}),[m]),z=(0,r.useCallback)((e=>{m({type:uM,highlightedIndex:e})}),[m]),L=(0,r.useCallback)((e=>{m({type:dM,selectedItem:e})}),[m]),F=(0,r.useCallback)((()=>{m({type:mM})}),[m]),B=(0,r.useCallback)((e=>{m({type:fM,inputValue:e})}),[m]),j=(0,r.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,r.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return R("getMenuProps",l,r,y),{[r]:lR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:sR(n,(()=>{m({type:eM})})),onKeyDown:sR(o,(e=>{const t=mR(e);t&&N[t]?N[t](e):kR(t)&&m({type:JR,key:t,getItemNodeFromIndex:P})})),onBlur:sR(i,(()=>{if(!1===w.current)return void(w.current=!0);!I.current.isMouseDown&&m({type:QR})})),...s}}),[m,k,N,I,R,_,P]),H=(0,r.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{m({type:rM})},c=e=>{const t=mR(e);t&&M[t]?M[t](e):kR(t)&&m({type:aM,key:t,getItemNodeFromIndex:P})},u={[o]:lR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=sR(n,l),u.onKeyDown=sR(r,c)),R("getToggleButtonProps",s,o,b),u}),[m,k,M,R,_,P]),$=(0,r.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{m({type:nM,index:n})},f=CR(n,t,u.items);if(f<0)throw new Error("Pass either item or item index in getItemProps!");const p={disabled:s,role:"option","aria-selected":`${f===c.highlightedIndex}`,id:_.getItemId(f),[i]:lR(a,(e=>{e&&(x.current[_.getItemId(f)]=e)})),...l};return s||(p.onClick=sR(o,d)),p.onMouseMove=sR(r,(()=>{n!==c.highlightedIndex&&(T.current=!1,m({type:tM,index:n,disabled:s}))})),p}),[m,k,T,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:D,openMenu:O,closeMenu:A,setHighlightedIndex:z,selectItem:L,reset:F,setInputValue:B,highlightedIndex:h,isOpen:p,selectedItem:g,inputValue:v}}gM.stateChangeTypes=pM;ZI().array.isRequired,ZI().func,ZI().func,ZI().func,ZI().bool,ZI().number,ZI().number,ZI().number,ZI().bool,ZI().bool,ZI().bool,ZI().any,ZI().any,ZI().any,ZI().string,ZI().string,ZI().string,ZI().string,ZI().string,ZI().string,ZI().func,ZI().string,ZI().string,ZI().func,ZI().func,ZI().func,ZI().func,ZI().func,ZI().func,ZI().shape({addEventListener:ZI().func,removeEventListener:ZI().func,document:ZI().shape({getElementById:ZI().func,activeElement:ZI().any,body:ZI().any})});ZI().array,ZI().array,ZI().array,ZI().func,ZI().func,ZI().func,ZI().number,ZI().number,ZI().number,ZI().func,ZI().func,ZI().string,ZI().string,ZI().shape({addEventListener:ZI().func,removeEventListener:ZI().func,document:ZI().shape({getElementById:ZI().func,activeElement:ZI().any,body:ZI().any})});const vM=e=>e.__nextUnconstrainedWidth?"":Ps(yv,"{min-width:130px;}",""),bM=bs(Ov,{target:"eswuck60"})(vM,";"),yM=e=>e?.name,xM=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case gM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case gM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function wM(e){const{__next40pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:o,hideLabelFromVision:i,label:a,describedBy:s,options:l,onChange:d,size:f="default",value:m,onMouseOver:p,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=Nv(e),{getLabelProps:y,getToggleButtonProps:x,getMenuProps:w,getItemProps:E,isOpen:_,highlightedIndex:S,selectedItem:C}=gM({initialSelectedItem:l[0],items:l,itemToString:yM,onSelectedItemChange:d,...null!=m?{selectedItem:m}:void 0,stateReducer:xM}),[k,P]=(0,Uo.useState)(!1);n||qo()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const T=w({className:"components-custom-select-control__menu","aria-hidden":!_}),I=(0,Uo.useCallback)((e=>{e.stopPropagation(),T?.onKeyDown?.(e)}),[T]);return T["aria-activedescendant"]?.startsWith("downshift-null")&&delete T["aria-activedescendant"],(0,r.createElement)("div",{className:c()("components-custom-select-control",o)},i?(0,r.createElement)(ws,{as:"label",...y()},a):(0,r.createElement)(Qb,{...y({className:"components-custom-select-control__label"})},a),(0,r.createElement)(bM,{__next40pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,r.createElement)(UE,null)},(0,r.createElement)(jE,{onMouseOver:p,onMouseOut:h,as:"button",onFocus:function(e){P(!0),g?.(e)},onBlur:function(e){P(!1),v?.(e)},selectSize:f,__next40pxDefaultSize:t,...x({"aria-label":a,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(C?(0,u.sprintf)((0,u.__)("Currently selected: %s"),C.name):(0,u.__)("No selection"))})},yM(C),b&&C.__experimentalHint&&(0,r.createElement)("span",{className:"components-custom-select-control__hint"},C.__experimentalHint))),(0,r.createElement)("ul",{...T,onKeyDown:I},_&&l.map(((e,n)=>(0,r.createElement)("li",{...E({item:e,index:n,key:e.key,className:c()(e.className,"components-custom-select-control__item",{"is-highlighted":n===S,"has-hint":!!e.__experimentalHint,"is-next-40px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,r.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===C&&(0,r.createElement)($E,{icon:DS,className:"components-custom-select-control__item-icon"}))))))}function EM(e){return(0,r.createElement)(wM,{...e,__experimentalShowSelectedHint:!1})}function _M(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function SM(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CM(e){SM(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function kM(e,t){SM(2,arguments);var n=CM(e),r=_M(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var PM,TM,IM={};function RM(){return IM}function MM(e,t){var n,r,o,i,a,s,l,c;SM(1,arguments);var u=RM(),d=_M(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CM(e),m=f.getDay(),p=(m<d?7:0)+m-d;return f.setDate(f.getDate()-p),f.setHours(0,0,0,0),f}function NM(e,t){return SM(2,arguments),function(e,t){SM(2,arguments);var n=CM(e),r=_M(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,7*_M(t))}function DM(e,t){return SM(2,arguments),kM(e,12*_M(t))}function AM(e){SM(1,arguments);var t=CM(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function OM(e,t){var n;SM(1,arguments);var r=e||{},o=CM(r.start),i=CM(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],s=o;s.setHours(0,0,0,0);var l=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)a.push(CM(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function zM(e){SM(1,arguments);var t=CM(e);return t.setDate(1),t.setHours(0,0,0,0),t}function LM(e,t){var n,r,o,i,a,s,l,c;SM(1,arguments);var u=RM(),d=_M(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CM(e),m=f.getDay(),p=6+(m<d?-7:0)-(m-d);return f.setDate(f.getDate()+p),f.setHours(23,59,59,999),f}function FM(e,t){SM(2,arguments);var n=CM(e),r=CM(t);return n.getTime()===r.getTime()}function BM(e,t){SM(2,arguments);var n=CM(e),r=_M(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){SM(1,arguments);var t=CM(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function jM(){return function(e){SM(1,arguments);var t=CM(e);return t.setHours(0,0,0,0),t}(Date.now())}!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(PM||(PM={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(TM||(TM={}));var VM=function(e,t,n){return(FM(e,t)||function(e,t){SM(2,arguments);var n=CM(e),r=CM(t);return n.getTime()>r.getTime()}(e,t))&&(FM(e,n)||function(e,t){SM(2,arguments);var n=CM(e),r=CM(t);return n.getTime()<r.getTime()}(e,n))},HM=function(e){return function(e,t){if(SM(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=CM(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=BM(n,t.month)),null!=t.date&&n.setDate(_M(t.date)),null!=t.hours&&n.setHours(_M(t.hours)),null!=t.minutes&&n.setMinutes(_M(t.minutes)),null!=t.seconds&&n.setSeconds(_M(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(_M(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},$M=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,o=void 0===n?TM.SUNDAY:n,i=t.viewing,a=void 0===i?new Date:i,s=t.selected,l=void 0===s?[]:s,c=t.numberOfMonths,u=void 0===c?1:c,d=(0,r.useState)(a),f=d[0],m=d[1],p=(0,r.useCallback)((function(){return m(jM())}),[m]),h=(0,r.useCallback)((function(e){return m((function(t){return BM(t,e)}))}),[]),g=(0,r.useCallback)((function(){return m((function(e){return function(e,t){return SM(2,arguments),kM(e,-_M(t))}(e,1)}))}),[]),v=(0,r.useCallback)((function(){return m((function(e){return kM(e,1)}))}),[]),b=(0,r.useCallback)((function(e){return m((function(t){return function(e,t){SM(2,arguments);var n=CM(e),r=_M(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(t,e)}))}),[]),y=(0,r.useCallback)((function(){return m((function(e){return function(e,t){return SM(2,arguments),DM(e,-_M(t))}(e,1)}))}),[]),x=(0,r.useCallback)((function(){return m((function(e){return DM(e,1)}))}),[]),w=(0,r.useState)(l.map(HM)),E=w[0],_=w[1],S=(0,r.useCallback)((function(e){return E.findIndex((function(t){return FM(t,e)}))>-1}),[E]),C=(0,r.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,r.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!FM(t,e)}))}))}),[]),P=(0,r.useCallback)((function(e,t){return S(e)?k(e):C(e,t)}),[k,S,C]),T=(0,r.useCallback)((function(e,t,n){_(n?OM({start:e,end:t}):function(n){return n.concat(OM({start:e,end:t}))})}),[]),I=(0,r.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!OM({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),R=(0,r.useMemo)((function(){return function(e){SM(1,arguments);var t=e||{},n=CM(t.start),r=CM(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(CM(i)),i.setMonth(i.getMonth()+1);return o}({start:zM(f),end:AM(kM(f,u-1))}).map((function(e){return function(e,t){SM(1,arguments);var n=e||{},r=CM(n.start),o=CM(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=MM(r,t),s=MM(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(CM(c)),(c=NM(c,1)).setHours(15);return l}({start:zM(e),end:AM(e)},{weekStartsOn:o}).map((function(e){return OM({start:MM(e,{weekStartsOn:o}),end:LM(e,{weekStartsOn:o})})}))}))}),[f,o,u]);return{clearTime:HM,inRange:VM,viewing:f,setViewing:m,viewToday:p,viewMonth:h,viewPreviousMonth:g,viewNextMonth:v,viewYear:b,viewPreviousYear:y,viewNextYear:x,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:S,select:C,deselect:k,toggle:P,selectRange:T,deselectRange:I,calendar:R}};function WM(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function UM(e){return UM="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},UM(e)}function GM(e){WM(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===UM(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function qM(e){WM(1,arguments);var t=GM(e);return t.setHours(0,0,0,0),t}function YM(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function KM(e,t){WM(2,arguments);var n=GM(e),r=YM(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function XM(e,t){return WM(2,arguments),KM(e,-YM(t))}function ZM(e){return ZM="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},ZM(e)}function JM(e){if(WM(1,arguments),!function(e){return WM(1,arguments),e instanceof Date||"object"===ZM(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=GM(e);return!isNaN(Number(t))}function QM(e,t){return WM(2,arguments),function(e,t){WM(2,arguments);var n=GM(e).getTime(),r=YM(t);return new Date(n+r)}(e,-YM(t))}function eN(e){WM(1,arguments);var t=GM(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function tN(e){WM(1,arguments);var t=GM(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=eN(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=eN(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function nN(e){WM(1,arguments);var t=GM(e),n=eN(t).getTime()-function(e){WM(1,arguments);var t=tN(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),eN(n)}(t).getTime();return Math.round(n/6048e5)+1}var rN={};function oN(){return rN}function iN(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=GM(e),m=f.getUTCDay(),p=(m<d?7:0)+m-d;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function aN(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=GM(e),d=u.getUTCFullYear(),f=oN(),m=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,m),p.setUTCHours(0,0,0,0);var h=iN(p,t),g=new Date(0);g.setUTCFullYear(d,0,m),g.setUTCHours(0,0,0,0);var v=iN(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function sN(e,t){WM(1,arguments);var n=GM(e),r=iN(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=aN(e,t),m=new Date(0);return m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0),iN(m,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function lN(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var cN={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return lN("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):lN(n+1,2)},d:function(e,t){return lN(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return lN(e.getUTCHours()%12||12,t.length)},H:function(e,t){return lN(e.getUTCHours(),t.length)},m:function(e,t){return lN(e.getUTCMinutes(),t.length)},s:function(e,t){return lN(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return lN(Math.floor(r*Math.pow(10,n-3)),t.length)}};const uN=cN;var dN="midnight",fN="noon",mN="morning",pN="afternoon",hN="evening",gN="night",vN={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return uN.y(e,t)},Y:function(e,t,n,r){var o=aN(e,r),i=o>0?o:1-o;return"YY"===t?lN(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):lN(i,t.length)},R:function(e,t){return lN(tN(e),t.length)},u:function(e,t){return lN(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return lN(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return lN(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return uN.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return lN(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=sN(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):lN(o,t.length)},I:function(e,t,n){var r=nN(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):lN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):uN.d(e,t)},D:function(e,t,n){var r=function(e){WM(1,arguments);var t=GM(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):lN(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return lN(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return lN(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return lN(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?fN:0===o?dN:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?hN:o>=12?pN:o>=4?mN:gN,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return uN.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):uN.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):lN(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):lN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):uN.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):uN.s(e,t)},S:function(e,t){return uN.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return yN(o);case"XXXX":case"XX":return xN(o);default:return xN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return yN(o);case"xxxx":case"xx":return xN(o);default:return xN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bN(o,":");default:return"GMT"+xN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bN(o,":");default:return"GMT"+xN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return lN(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return lN((r._originalDate||e).getTime(),t.length)}};function bN(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+lN(i,2)}function yN(e,t){return e%60==0?(e>0?"-":"+")+lN(Math.abs(e)/60,2):xN(e,t)}function xN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+lN(Math.floor(o/60),2)+n+lN(o%60,2)}const wN=vN;var EN=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},_N=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},SN={p:_N,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return EN(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",EN(o,t)).replace("{{time}}",_N(i,t))}};const CN=SN;var kN=["D","DD"],PN=["YY","YYYY"];function TN(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var IN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const RN=function(e,t,n){var r,o=IN[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function MN(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NN={date:MN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:MN({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:MN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var DN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const AN=function(e,t,n,r){return DN[e]};function ON(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var zN={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ON({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ON({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ON({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ON({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ON({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const LN=zN;function FN(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var BN,jN={ordinalNumber:(BN={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(BN.matchPattern);if(!n)return null;var r=n[0],o=e.match(BN.parsePattern);if(!o)return null;var i=BN.valueCallback?BN.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:FN({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:FN({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:FN({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:FN({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:FN({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const VN={code:"en-US",formatDistance:RN,formatLong:NN,formatRelative:AN,localize:LN,match:jN,options:{weekStartsOn:0,firstWeekContainsDate:1}};var HN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,WN=/^'([^]*?)'?$/,UN=/''/g,GN=/[a-zA-Z]/;function qN(e,t,n){var r,o,i,a,s,l,c,u,d,f,m,p,h,g,v,b,y,x;WM(2,arguments);var w=String(t),E=oN(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:VN,S=YM(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=YM(null!==(m=null!==(p=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==p?p:null===(y=E.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=GM(e);if(!JM(k))throw new RangeError("Invalid time value");var P=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),T=QM(k,P),I={firstWeekContainsDate:S,weekStartsOn:C,locale:_,_originalDate:k},R=w.match($N).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,CN[t])(e,_.formatLong):e})).join("").match(HN).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(WN);if(!t)return e;return t[1].replace(UN,"'")}(r);var i=wN[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==PN.indexOf(e)}(r)||TN(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==kN.indexOf(e)}(r)||TN(r,t,String(e)),i(T,r,_.localize,I);if(o.match(GN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return R}function YN(e,t){WM(2,arguments);var n=GM(e),r=GM(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function KN(e,t){WM(2,arguments);var n=GM(e),r=GM(t);return n.getTime()===r.getTime()}function XN(e,t){WM(2,arguments);var n=qM(e),r=qM(t);return n.getTime()===r.getTime()}function ZN(e,t){WM(2,arguments);var n=GM(e),r=YM(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function JN(e,t){return WM(2,arguments),ZN(e,7*YM(t))}const QN=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),eD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),tD=window.wp.date;const nD=bs("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),rD=bs(Py,{target:"e105ri6r4"})("margin-bottom:",Ah(4),";"),oD=bs($S,{target:"e105ri6r3"})("font-size:",Xg.fontSize,";font-weight:",Xg.fontWeight,";strong{font-weight:",Xg.fontWeightHeading,";}"),iD=bs("div",{target:"e105ri6r2"})("column-gap:",Ah(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",Ah(2),";"),aD=bs("div",{target:"e105ri6r1"})("color:",Ds.gray[700],";font-size:",Xg.fontSize,";line-height:",Xg.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),sD=bs(my,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",Ah(7),";width:",Ah(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Ds.theme.accent};\n\t\t\tcolor: ${Ds.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Ds.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Ds.white:Ds.theme.accent};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 2px;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function lD(e){return"string"==typeof e?new Date(e):GM(e)}const cD="yyyy-MM-dd'T'HH:mm:ss";function uD({day:e,column:t,isSelected:n,isFocusable:o,isFocusAllowed:i,isToday:a,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,Uo.useRef)();return(0,Uo.useEffect)((()=>{d.current&&o&&i&&d.current.focus()}),[o]),(0,r.createElement)(sD,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:o?0:-1,"aria-label":dD(e,n,l),column:t,isSelected:n,isToday:a,hasEvents:l>0,onClick:c,onKeyDown:u},(0,tD.dateI18n)("j",e,-e.getTimezoneOffset()))}function dD(e,t,n){const{formats:r}=(0,tD.getSettings)(),o=(0,tD.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,u.sprintf)((0,u._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,u.sprintf)((0,u.__)("%1$s. Selected"),o):n>0?(0,u.sprintf)((0,u._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}const fD=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:o,onMonthPreviewed:i,startOfWeek:a=0}){const s=e?lD(e):new Date,{calendar:l,viewing:c,setSelected:d,setViewing:f,isSelected:m,viewPreviousMonth:p,viewNextMonth:h}=$M({selected:[qM(s)],viewing:qM(s),weekStartsOn:a}),[g,v]=(0,Uo.useState)(qM(s)),[b,y]=(0,Uo.useState)(!1),[x,w]=(0,Uo.useState)(e);return e!==x&&(w(e),d([qM(s)]),f(qM(s)),v(qM(s))),(0,r.createElement)(nD,{className:"components-datetime__date",role:"application","aria-label":(0,u.__)("Calendar")},(0,r.createElement)(rD,null,(0,r.createElement)(my,{icon:(0,u.isRTL)()?QN:eD,variant:"tertiary","aria-label":(0,u.__)("View previous month"),onClick:()=>{p(),v(XM(g,1)),i?.(qN(XM(c,1),cD))}}),(0,r.createElement)(oD,{level:3},(0,r.createElement)("strong",null,(0,tD.dateI18n)("F",c,-c.getTimezoneOffset()))," ",(0,tD.dateI18n)("Y",c,-c.getTimezoneOffset())),(0,r.createElement)(my,{icon:(0,u.isRTL)()?eD:QN,variant:"tertiary","aria-label":(0,u.__)("View next month"),onClick:()=>{h(),v(KM(g,1)),i?.(qN(KM(c,1),cD))}})),(0,r.createElement)(iD,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,r.createElement)(aD,{key:e.toString()},(0,tD.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,a)=>YN(e,c)?(0,r.createElement)(uD,{key:e.toString(),day:e,column:a+1,isSelected:m(e),isFocusable:KN(e,g),isFocusAllowed:b,isToday:XN(e,new Date),isInvalid:!!o&&o(e),numEvents:n.filter((t=>XN(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(qN(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),cD))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=ZN(e,(0,u.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=ZN(e,(0,u.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return WM(2,arguments),JN(e,-YM(t))}(e,1)),"ArrowDown"===t.key&&(n=JN(e,1)),"PageUp"===t.key&&(n=XM(e,1)),"PageDown"===t.key&&(n=KM(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=GM(e),m=f.getDay(),p=(m<d?7:0)+m-d;return f.setDate(f.getDate()-p),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=qM(function(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=GM(e),m=f.getDay(),p=6+(m<d?-7:0)-(m-d);return f.setDate(f.getDate()+p),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),v(n),YN(n,c)||(f(n),i?.(qN(n,cD))))}}):null))))))};function mD(e){WM(1,arguments);var t=GM(e);return t.setSeconds(0,0),t}function pD(e,t){WM(2,arguments);var n=GM(e),r=YM(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){WM(1,arguments);var t=GM(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function hD(e){return hD="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},hD(e)}const gD=bs("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",Xg.fontSize,";"),vD=bs("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",Ah(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),bD=bs("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),yD=Ps("&&& ",Ev,"{padding-left:",Ah(2),";padding-right:",Ah(2),";text-align:center;}",""),xD=bs(Ry,{target:"evcr2316"})(yD," width:",Ah(9),";&&& ",Ev,"{padding-right:0;}&&& ",kv,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),wD=bs("span",{target:"evcr2315"})("border-top:",Xg.borderWidth," solid ",Ds.gray[700],";border-bottom:",Xg.borderWidth," solid ",Ds.gray[700],";line-height:calc(\n\t\t",Xg.controlHeight," - ",Xg.borderWidth," * 2\n\t);display:inline-block;"),ED=bs(Ry,{target:"evcr2314"})(yD," width:",Ah(9),";&&& ",Ev,"{padding-left:0;}&&& ",kv,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),_D=bs("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),SD=bs(Ry,{target:"evcr2312"})(yD," width:",Ah(9),";"),CD=bs(Ry,{target:"evcr2311"})(yD," width:",Ah(14),";"),kD=bs("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),PD=()=>{const{timezone:e}=(0,tD.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",o=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,i=e.string.replace("_"," "),a="UTC"===e.string?(0,u.__)("Coordinated Universal Time"):`(${o}) ${i}`;return 0===i.trim().length?(0,r.createElement)(kD,{className:"components-datetime__timezone"},o):(0,r.createElement)(ri,{placement:"top",text:a},(0,r.createElement)(kD,{className:"components-datetime__timezone"},o))};function TD(e,t){return t?(e%12+12)%24:e%12}function ID(e){return(t,n)=>{const r={...t};return n.type!==Db&&n.type!==Vb&&n.type!==Bb||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}const RD=function({is12Hour:e,currentTime:t,onChange:n}){const[o,i]=(0,Uo.useState)((()=>t?mD(lD(t)):new Date));(0,Uo.useEffect)((()=>{i(t?mD(lD(t)):new Date)}),[t]);const{day:a,month:s,year:l,minutes:c,hours:d,am:f}=(0,Uo.useMemo)((()=>({day:qN(o,"dd"),month:qN(o,"MM"),year:qN(o,"yyyy"),minutes:qN(o,"mm"),hours:qN(o,e?"hh":"HH"),am:qN(o,"a")})),[o,e]),m=t=>(r,{event:a})=>{var s;const l=null!==(s=a.target?.ownerDocument.defaultView?.HTMLInputElement)&&void 0!==s?s:HTMLInputElement;if(!(a.target instanceof l))return;if(!a.target.validity.valid)return;let c=Number(r);"hours"===t&&e&&(c=TD(c,"PM"===f));const u=function(e,t){if(WM(2,arguments),"object"!==hD(t)||null===t)throw new RangeError("values parameter must be an object");var n=GM(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=pD(n,t.month)),null!=t.date&&n.setDate(YM(t.date)),null!=t.hours&&n.setHours(YM(t.hours)),null!=t.minutes&&n.setMinutes(YM(t.minutes)),null!=t.seconds&&n.setSeconds(YM(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(YM(t.milliseconds)),n)}(o,{[t]:c});i(u),n?.(qN(u,cD))};function p(e){return()=>{if(f===e)return;const t=parseInt(d,10),r=function(e,t){WM(2,arguments);var n=GM(e),r=YM(t);return n.setHours(r),n}(o,TD(t,"PM"===e));i(r),n?.(qN(r,cD))}}const h=(0,r.createElement)(SD,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,u.__)("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:a,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")}),g=(0,r.createElement)(_D,null,(0,r.createElement)(YE,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,u.__)("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,u.__)("January")},{value:"02",label:(0,u.__)("February")},{value:"03",label:(0,u.__)("March")},{value:"04",label:(0,u.__)("April")},{value:"05",label:(0,u.__)("May")},{value:"06",label:(0,u.__)("June")},{value:"07",label:(0,u.__)("July")},{value:"08",label:(0,u.__)("August")},{value:"09",label:(0,u.__)("September")},{value:"10",label:(0,u.__)("October")},{value:"11",label:(0,u.__)("November")},{value:"12",label:(0,u.__)("December")}],onChange:e=>{const t=pD(o,Number(e)-1);i(t),n?.(qN(t,cD))}}));return(0,r.createElement)(gD,{className:"components-datetime__time"},(0,r.createElement)(vD,null,(0,r.createElement)(iy.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Time")),(0,r.createElement)(Py,{className:"components-datetime__time-wrapper"},(0,r.createElement)(bD,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,r.createElement)(xD,{className:"components-datetime__time-field-hours-input",label:(0,u.__)("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("hours"),__unstableStateReducer:ID(2)}),(0,r.createElement)(wD,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,r.createElement)(ED,{className:"components-datetime__time-field-minutes-input",label:(0,u.__)("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:c,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("minutes"),__unstableStateReducer:ID(2)})),e&&(0,r.createElement)(Ok,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,r.createElement)(my,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",__next40pxDefaultSize:!0,onClick:p("AM")},(0,u.__)("AM")),(0,r.createElement)(my,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",__next40pxDefaultSize:!0,onClick:p("PM")},(0,u.__)("PM"))),(0,r.createElement)(tg,null),(0,r.createElement)(PD,null))),(0,r.createElement)(vD,null,(0,r.createElement)(iy.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Date")),(0,r.createElement)(Py,{className:"components-datetime__time-wrapper"},e?(0,r.createElement)(r.Fragment,null,g,h):(0,r.createElement)(r.Fragment,null,h,g),(0,r.createElement)(CD,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,u.__)("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:ID(4)}))))};const MD=bs(jS,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),ND=()=>{};const DD=(0,Uo.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:o=ND,onChange:i,events:a,startOfWeek:s},l){return(0,r.createElement)(MD,{ref:l,className:"components-datetime",spacing:4},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(RD,{currentTime:e,onChange:i,is12Hour:t}),(0,r.createElement)(fD,{currentDate:e,onChange:i,isInvalidDate:n,events:a,onMonthPreviewed:o,startOfWeek:s})))})),AD=DD,OD=[{name:(0,u._x)("None","Size of a UI element"),slug:"none"},{name:(0,u._x)("Small","Size of a UI element"),slug:"small"},{name:(0,u._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,u._x)("Large","Size of a UI element"),slug:"large"},{name:(0,u._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];const zD=function(e){const{__next40pxDefaultSize:t=!1,label:n,value:o,sizes:i=OD,icon:a,onChange:s,className:l=""}=e,d=(0,r.createElement)(r.Fragment,null,a&&(0,r.createElement)(uy,{icon:a}),n);return(0,r.createElement)(YE,{__next40pxDefaultSize:t,className:c()(l,"block-editor-dimension-control"),label:d,hideLabelFromVision:!1,value:o,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(i,e);t&&o!==t.slug?"function"==typeof s&&s(t.slug):s?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,u.__)("Default"),value:""},...t]})(i)})};const LD={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},FD=(0,Uo.createContext)(!1),{Consumer:BD,Provider:jD}=FD;function VD({className:e,children:t,isDisabled:n=!0,...o}){const i=ns();return(0,r.createElement)(jD,{value:n},(0,r.createElement)("div",{inert:n?"true":void 0,className:n?i(LD,e,"components-disabled"):void 0,...o},t))}VD.Context=FD,VD.Consumer=BD;const HD=VD,$D=(0,Uo.forwardRef)((({visible:e,children:t,...n},o)=>{const i=Xt({open:e});return(0,r.createElement)(Zn,{store:i,ref:o,...n},t)})),WD="is-dragging-components-draggable";const UD=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:o,appendToOwnerDocument:i=!1,cloneClassname:a,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}){const f=(0,Uo.useRef)(null),m=(0,Uo.useRef)((()=>{}));return(0,Uo.useEffect)((()=>()=>{m.current()}),[]),(0,r.createElement)(r.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const o=r.createElement("div");o.style.top="0",o.style.left="0";const u=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(u.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(u),e.dataTransfer.setDragImage(u,0,0)),o.classList.add("components-draggable__clone"),a&&o.classList.add(a);let p=0,h=0;if(f.current){p=e.clientX,h=e.clientY,o.style.transform=`translate( ${p}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,o.appendChild(t),r.body.appendChild(o)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,a=t.top,l=t.left;o.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,p=l-0,h=a-0,o.style.transform=`translate( ${p}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),o.appendChild(c),i?r.body.appendChild(o):n?.appendChild(o)}let g=e.clientX,v=e.clientY;const b=(0,d.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=p+e.clientX-g,r=h+e.clientY-v;o.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,p=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(WD),t&&t(e),m.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),u&&u.parentNode&&u.parentNode.removeChild(u),r.body.classList.remove(WD),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),m.current(),o&&o(e)}}),u&&(0,r.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},u))},GD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));const qD=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:o,onDrop:i,...a}){const[s,l]=(0,Uo.useState)(),[f,m]=(0,Uo.useState)(),[p,h]=(0,Uo.useState)(),g=(0,d.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,HT.getFilesFromDataTransfer)(e.dataTransfer):[],r=e.dataTransfer?.getData("text/html");r&&o?o(r):t.length&&n?n(t):i&&i(e)},onDragStart(e){l(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,HT.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){l(!1),h(void 0)},onDragEnter(){m(!0)},onDragLeave(){m(!1)}}),v=(0,d.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},x={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,r.createElement)(wh.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,r.createElement)(wh.div,{variants:x},(0,r.createElement)($E,{icon:GD,className:"components-drop-zone__content-icon"}),(0,r.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,u.__)("Drop files to upload")))));const w=c()("components-drop-zone",e,{"is-active":(s||f)&&("file"===p&&n||"html"===p&&o||"default"===p&&i),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${p}`]:!!p});return(0,r.createElement)("div",{...a,ref:g,className:w},v?b:(0,r.createElement)(Ih,null,b))};function YD({children:e}){return qo()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}const KD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function XD(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Vg([Hg]);const ZD=function({values:e}){return e?(0,r.createElement)(DE,{colorValue:XD(e,"135deg")}):(0,r.createElement)(uy,{icon:KD})};function JD({label:e,value:t,colors:n,disableCustomColors:o,enableAlpha:i,onChange:a}){const[s,l]=(0,Uo.useState)(!1),c=(0,d.useInstanceId)(JD,"color-list-picker-option"),f=`${c}__label`,m=`${c}__content`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(my,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e)),"aria-expanded":s,"aria-controls":m},(0,r.createElement)(Py,{justify:"flex-start",spacing:2},t?(0,r.createElement)(DE,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,r.createElement)(uy,{icon:KD}),(0,r.createElement)("span",{id:f},e))),(0,r.createElement)("div",{role:"group",id:m,"aria-labelledby":f,"aria-hidden":!s},s&&(0,r.createElement)(JS,{"aria-label":(0,u.__)("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:a,disableCustomColors:o,enableAlpha:i})))}const QD=function({colors:e,labels:t,value:n=[],disableCustomColors:o,enableAlpha:i,onChange:a}){return(0,r.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,r.createElement)(JD,{key:s,label:t,value:n[s],colors:e,disableCustomColors:o,enableAlpha:i,onChange:e=>{const t=n.slice();t[s]=e,a(t)}}))))},eA=["#333","#CCC"];function tA({value:e,onChange:t}){const n=!!e,o=n?e:eA,i=XD(o),a=(s=o).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,r.createElement)(wT,{disableInserter:!0,background:i,hasGradient:n,value:a,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const nA=function({asButtons:e,loop:t,clearable:n=!0,unsetable:o=!0,colorPalette:i,duotonePalette:a,disableCustomColors:s,disableCustomDuotone:l,value:c,onChange:d,"aria-label":f,"aria-labelledby":m,...p}){const[h,g]=(0,Uo.useMemo)((()=>{return!(e=i)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Bg(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[i]),v="unset"===c,b=(0,u.__)("Unset"),y=(0,r.createElement)(BS.Option,{key:"unset",value:"unset",isSelected:v,tooltipText:b,"aria-label":b,className:"components-duotone-picker__color-indicator",onClick:()=>{d(v?void 0:"unset")}}),x=a.map((({colors:e,slug:t,name:n})=>{const o={background:XD(e,"135deg"),color:"transparent"},i=null!=n?n:(0,u.sprintf)((0,u.__)("Duotone code: %s"),t),a=n?(0,u.sprintf)((0,u.__)("Duotone: %s"),n):i,s=si()(e,c);return(0,r.createElement)(BS.Option,{key:t,value:e,isSelected:s,"aria-label":a,tooltipText:i,style:o,onClick:()=>{d(s?void 0:e)}})}));let w;if(e)w={asButtons:!0};else{const e={asButtons:!1,loop:t};w=f?{...e,"aria-label":f}:m?{...e,"aria-labelledby":m}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}const E=o?[y,...x]:x;return(0,r.createElement)(BS,{...p,...w,options:E,actions:!!n&&(0,r.createElement)(BS.ButtonAction,{onClick:()=>d(void 0)},(0,u.__)("Clear"))},(0,r.createElement)(tg,{paddingTop:0===E.length?0:4},(0,r.createElement)(jS,{spacing:3},!s&&!l&&(0,r.createElement)(tA,{value:v?void 0:c,onChange:d}),!l&&(0,r.createElement)(QD,{labels:[(0,u.__)("Shadows"),(0,u.__)("Highlights")],colors:i,value:v?void 0:c,disableCustomColors:s,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=h),e[1]||(e[1]=g);const t=e.length>=2?e:void 0;d(t)}}))))},rA=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const oA=bs($E,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});const iA=(0,Uo.forwardRef)((function(e,t){const{href:n,children:o,className:i,rel:a="",...s}=e,l=[...new Set([...a.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=c()("components-external-link",i),f=!!n?.startsWith("#");return(0,r.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:l,ref:t},o,(0,r.createElement)(ws,{as:"span"},(0,u.__)("(opens in a new tab)")),(0,r.createElement)(oA,{icon:rA,className:"components-external-link__icon"}))})),aA={width:200,height:170},sA=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function lA(e){return Math.round(100*e)}const cA=bs("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),uA=bs("div",{target:"eeew7dm7"})("align-items:center;border-radius:",Xg.radiusBlockUi,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),dA=bs("div",{target:"eeew7dm6"})("background:",Ds.gray[100],";border-radius:inherit;box-sizing:border-box;height:",aA.height,"px;max-width:280px;min-width:",aA.width,"px;width:100%;"),fA=bs(PC,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var mA={name:"1mn7kwb",styles:"padding-bottom:1em"};const pA=({__nextHasNoMarginBottom:e})=>e?void 0:mA;var hA={name:"1mn7kwb",styles:"padding-bottom:1em"};const gA=({hasHelpText:e=!1})=>e?hA:void 0,vA=bs($h,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",gA," ",pA,";"),bA=bs("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 100ms linear;z-index:1;",As("transition")," opacity:",(({showOverlay:e})=>e?1:0),";"),yA=bs("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),xA=bs(yA,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),wA=bs(yA,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),EA=0,_A=100,SA=()=>{};function CA({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,hasHelpText:n,onChange:o=SA,point:i={x:.5,y:.5}}){const a=lA(i.x),s=lA(i.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||o({...i,[t]:n/100})};return(0,r.createElement)(vA,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:n,gap:4},(0,r.createElement)(kA,{__next40pxDefaultSize:t,label:(0,u.__)("Left"),"aria-label":(0,u.__)("Focal point left position"),value:[a,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,r.createElement)(kA,{__next40pxDefaultSize:t,label:(0,u.__)("Top"),"aria-label":(0,u.__)("Focal point top position"),value:[s,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"}))}function kA(e){return(0,r.createElement)(fA,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:_A,min:EA,units:[{value:"%",label:"%"}],...e})}const PA=bs("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;transition:transform 100ms linear;",As("transition")," ",(({isDragging:e})=>e&&"\n\t\t\tbox-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;\n\t\t\ttransform: scale( 1.1 );\n\t\t\tcursor: grabbing;\n\t\t\t"),";");function TA({left:e="50%",top:t="50%",...n}){const o=c()("components-focal-point-picker__icon_container"),i={left:e,top:t};return(0,r.createElement)(PA,{...n,className:o,style:i})}function IA({bounds:e,...t}){return(0,r.createElement)(bA,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,r.createElement)(xA,{style:{top:"33%"}}),(0,r.createElement)(xA,{style:{top:"66%"}}),(0,r.createElement)(wA,{style:{left:"33%"}}),(0,r.createElement)(wA,{style:{left:"66%"}}))}function RA({alt:e,autoPlay:t,src:n,onLoad:o,mediaRef:i,muted:a=!0,...s}){if(!n)return(0,r.createElement)(dA,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:i,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||sA.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,r.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:a,onLoadedData:o,ref:i,src:n}):(0,r.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:i,src:n})}const MA=function e({__nextHasNoMarginBottom:t,__next40pxDefaultSize:n=!1,autoPlay:o=!0,className:i,help:a,label:s,onChange:l,onDrag:f,onDragEnd:m,onDragStart:p,resolvePoint:h,url:g,value:v={x:.5,y:.5},...b}){const[y,x]=(0,Uo.useState)(v),[w,E]=(0,Uo.useState)(!1),{startDrag:_,endDrag:S,isDragging:C}=(0,d.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=N(e);t&&(p?.(t,e),x(t))},onDragMove:e=>{e.preventDefault();const t=N(e);t&&(f?.(t,e),x(t))},onDragEnd:()=>{m?.(),l?.(y)}}),{x:k,y:P}=C?y:v,T=(0,Uo.useRef)(null),[I,R]=(0,Uo.useState)(aA),M=(0,Uo.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;R(e>0&&t>0?{width:e,height:t}:{...aA})}));(0,Uo.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,d.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const N=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/I.width,a=(t-r)/I.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),D({x:i,y:a})},D=e=>{var t;const n=null!==(t=h?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},A={left:void 0!==k?k*I.width:.5*I.width,top:void 0!==P?P*I.height:.5*I.height},O=c()("components-focal-point-picker-control",i),z=`inspector-focal-point-picker-control-${(0,d.useInstanceId)(e)}`;return ui((()=>{E(!0);const e=window.setTimeout((()=>{E(!1)}),600);return()=>window.clearTimeout(e)}),[k,P]),(0,r.createElement)(iy,{...b,__nextHasNoMarginBottom:t,label:s,id:z,help:a,className:O},(0,r.createElement)(cA,{className:"components-focal-point-picker-wrapper"},(0,r.createElement)(uA,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:k,y:P},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,l?.(D(r))},onMouseDown:_,onBlur:()=>{C&&S()},ref:T,role:"button",tabIndex:-1},(0,r.createElement)(IA,{bounds:I,showOverlay:w}),(0,r.createElement)(RA,{alt:(0,u.__)("Media preview"),autoPlay:o,onLoad:M.current,src:g}),(0,r.createElement)(TA,{...A,isDragging:C}))),(0,r.createElement)(CA,{__nextHasNoMarginBottom:t,__next40pxDefaultSize:n,hasHelpText:!!a,point:{x:k,y:P},onChange:e=>{l?.(D(e))}}))};function NA({iframeRef:e,...t}){const n=(0,d.useMergeRefs)([e,(0,d.useFocusableIframe)()]);return qo()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,r.createElement)("iframe",{ref:n,...t})}const DA=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,r.createElement)(n.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"}));function AA(e){const[t,...n]=e;if(!t)return null;const[,r]=xC(t.size);return n.every((e=>{const[,t]=xC(e.size);return t===r}))?r:null}const OA=bs("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),zA=bs(Py,{target:"e8tqeku3"})("height:",Ah(4),";"),LA=bs(my,{target:"e8tqeku2"})("margin-top:",Ah(-1),";"),FA=bs(iy.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",Ah(1),";justify-content:flex-start;margin-bottom:0;"),BA=bs("span",{target:"e8tqeku0"})("color:",Ds.gray[700],";"),jA={key:"default",name:(0,u.__)("Default"),value:void 0},VA={key:"custom",name:(0,u.__)("Custom")},HA=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:o,value:i,disableCustomFontSizes:a,size:s,onChange:l,onSelectCustom:c}=e,d=!!AA(o),f=[jA,...o.map((e=>{let t;if(d){const[n]=xC(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...a?[]:[VA]],m=i?null!==(t=f.find((e=>e.value===i)))&&void 0!==t?t:VA:jA;return(0,r.createElement)(wM,{__next40pxDefaultSize:n,__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,u.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,u.sprintf)((0,u.__)("Currently selected font size: %s"),m.name),options:f,value:m,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===VA?c():l(e.value)},size:s})};const $A=(0,Uo.forwardRef)((function(e,t){const{label:n,...o}=e,i=o["aria-label"]||n;return(0,r.createElement)(TE,{...o,"aria-label":i,ref:t},n)})),WA=[(0,u.__)("S"),(0,u.__)("M"),(0,u.__)("L"),(0,u.__)("XL"),(0,u.__)("XXL")],UA=[(0,u.__)("Small"),(0,u.__)("Medium"),(0,u.__)("Large"),(0,u.__)("Extra Large"),(0,u.__)("Extra Extra Large")],GA=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:o,size:i,onChange:a}=e;return(0,r.createElement)(fE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:o,label:(0,u.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:a,isBlock:!0,size:i},t.map(((e,t)=>(0,r.createElement)($A,{key:e.slug,value:e.size,label:WA[t],"aria-label":e.name||UA[t],showTooltip:!0}))))},qA=(0,Uo.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:o,fontSizes:i=[],disableCustomFontSizes:a=!1,onChange:s,size:l="default",units:c,value:d,withSlider:f=!1,withReset:m=!0}=e,p=wC({availableUnits:c||["px","em","rem"]}),h=i.length>5,g=i.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,Uo.useState)(!a&&v),x=(0,Uo.useMemo)((()=>{if(b)return(0,u.__)("Custom");if(!h)return g?g.name||UA[i.indexOf(g)]:"";const e=AA(i);return e?`(${e})`:""}),[b,h,g,i]);if(0===i.length&&a)return null;const w="string"==typeof d||"string"==typeof i[0]?.size,[E,_]=xC(d,p),S=!!_&&["em","rem"].includes(_),C=void 0===d;return(0,r.createElement)(OA,{ref:t,className:"components-font-size-picker"},(0,r.createElement)(ws,{as:"legend"},(0,u.__)("Font size")),(0,r.createElement)(tg,null,(0,r.createElement)(zA,{className:"components-font-size-picker__header"},(0,r.createElement)(FA,{"aria-label":`${(0,u.__)("Size")} ${x||""}`},(0,u.__)("Size"),x&&(0,r.createElement)(BA,{className:"components-font-size-picker__header__hint"},x)),!a&&(0,r.createElement)(LA,{label:b?(0,u.__)("Use size preset"):(0,u.__)("Set custom size"),icon:DA,onClick:()=>{y(!b)},isPressed:b,size:"small"}))),(0,r.createElement)("div",null,!!i.length&&h&&!b&&(0,r.createElement)(HA,{__next40pxDefaultSize:n,fontSizes:i,value:d,disableCustomFontSizes:a,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),i.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,r.createElement)(GA,{fontSizes:i,value:d,__next40pxDefaultSize:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),i.find((t=>t.size===e)))}}),!a&&b&&(0,r.createElement)($h,{className:"components-font-size-picker__custom-size-control"},(0,r.createElement)(og,{isBlock:!0},(0,r.createElement)(PC,{__next40pxDefaultSize:n,label:(0,u.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:w?e:parseInt(e,10))},size:l,units:w?p:[],min:0})),f&&(0,r.createElement)(og,{isBlock:!0},(0,r.createElement)(tg,{marginX:2,marginBottom:0},(0,r.createElement)(k_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:(0,u.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:o,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:w?e+(null!=_?_:"px"):e)},min:0,max:S?10:100,step:S?.1:1}))),m&&(0,r.createElement)(og,null,(0,r.createElement)(fy,{disabled:C,__experimentalIsFocusable:!0,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===l||e.__next40pxDefaultSize?"default":"small"},(0,u.__)("Reset"))))))})),YA=qA;const KA=function({accept:e,children:t,multiple:n=!1,onChange:o,onClick:i,render:a,...s}){const l=(0,Uo.useRef)(null),c=()=>{l.current?.click()},u=a?a({openFileDialog:c}):(0,r.createElement)(my,{onClick:c,...s},t);return(0,r.createElement)("div",{className:"components-form-file-upload"},u,(0,r.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:o,onClick:i,"data-testid":"form-file-upload-input"}))},XA=()=>{};const ZA=function(e){const{className:t,checked:n,id:o,disabled:i,onChange:a=XA,...s}=e,l=c()("components-form-toggle",t,{"is-checked":n,"is-disabled":i});return(0,r.createElement)("span",{className:l},(0,r.createElement)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:n,onChange:a,disabled:i,...s}),(0,r.createElement)("span",{className:"components-form-toggle__track"}),(0,r.createElement)("span",{className:"components-form-toggle__thumb"}))},JA=()=>{};function QA({value:e,status:t,title:n,displayTransform:o,isBorderless:i=!1,disabled:a=!1,onClickRemove:s=JA,onMouseEnter:l,onMouseLeave:f,messages:m,termPosition:p,termsCount:h}){const g=(0,d.useInstanceId)(QA),v=c()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":i,"is-disabled":a}),b=o(e),y=(0,u.sprintf)((0,u.__)("%1$s (%2$s of %3$s)"),b,p,h);return(0,r.createElement)("span",{className:v,onMouseEnter:l,onMouseLeave:f,title:n},(0,r.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,r.createElement)(ws,{as:"span"},y),(0,r.createElement)("span",{"aria-hidden":"true"},b)),(0,r.createElement)(my,{className:"components-form-token-field__remove-token",icon:zw,onClick:a?void 0:()=>s({value:e}),disabled:a,label:m.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const eO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&Ps("padding-top:",Ah(t?1:.5),";padding-bottom:",Ah(t?1:.5),";",""),tO=bs($h,{target:"ehq8nmi0"})("padding:7px;",Kb," ",eO,";"),nO=e=>e;const rO=function e(t){const{autoCapitalize:n,autoComplete:o,maxLength:i,placeholder:a,label:s=(0,u.__)("Add item"),className:l,suggestions:f=[],maxSuggestions:m=100,value:p=[],displayTransform:h=nO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:x=!1,disabled:w=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,u.__)("Item added."),removed:(0,u.__)("Item removed."),remove:(0,u.__)("Remove item"),__experimentalInvalid:(0,u.__)("Invalid item")},__experimentalRenderItem:S,__experimentalExpandOnFocus:C=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:P=!0,__next40pxDefaultSize:T=!1,__experimentalAutoSelectFirstMatch:I=!1,__nextHasNoMarginBottom:R=!1,tokenizeOnBlur:M=!1}=Nv(t),N=(0,d.useInstanceId)(e),[D,A]=(0,Uo.useState)(""),[O,z]=(0,Uo.useState)(0),[L,F]=(0,Uo.useState)(!1),[B,j]=(0,Uo.useState)(!1),[V,H]=(0,Uo.useState)(-1),[$,W]=(0,Uo.useState)(!1),U=(0,d.usePrevious)(f),G=(0,d.usePrevious)(p),q=(0,Uo.useRef)(null),Y=(0,Uo.useRef)(null),K=(0,d.useDebounce)(jy.speak,500);function X(){q.current?.focus()}function Z(){return q.current===q.current?.ownerDocument.activeElement}function J(e){if(me()&&k(D))F(!1),M&&me()&&se(D);else{if(A(""),z(0),F(!1),C){const t=e.relatedTarget===Y.current;j(t)}else j(!1);H(-1),W(!1)}}function Q(e){e.target===Y.current&&L&&e.preventDefault()}function ee(e){le(e.value),X()}function te(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ae(r.slice(0,-1)),A(o),b(o)}function ne(e){let t=!1;return Z()&&fe()&&(e(),t=!0),t}function re(){const e=de()-1;e>-1&&le(p[e])}function oe(){const e=de();e<p.length&&(le(p[e]),function(e){z(p.length-Math.max(e,-1)-1)}(e))}function ie(){let e=!1;const t=function(){if(-1!==V)return ue()[V];return}();return t?(se(t),e=!0):me()&&(se(D),e=!0),e}function ae(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return p.some((t=>ce(e)===ce(t)))}(e))))];if(t.length>0){const e=[...p];e.splice(de(),0,...t),v(e)}}function se(e){k(e)?(ae([e]),(0,jy.speak)(_.added,"assertive"),A(""),H(-1),W(!1),j(!C),L&&!M&&X()):(0,jy.speak)(_.__experimentalInvalid,"assertive")}function le(e){const t=p.filter((t=>ce(t)!==ce(e)));v(t),(0,jy.speak)(_.removed,"assertive")}function ce(e){return"object"==typeof e?e.value:e}function ue(e=D,t=f,n=p,r=m,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function de(){return p.length-O}function fe(){return 0===D.length}function me(){return g(D).length>0}function pe(e=!0){const t=D.trim().length>1,n=ue(D),r=n.length>0,o=Z()&&C;if(j(o||t&&r),e&&(I&&t&&r?(H(0),W(!0)):(H(-1),W(!1))),t){const e=r?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,u.__)("No results.");K(e,"assertive")}}function he(e,t,n){const o=ce(e),i="string"!=typeof e?e.status:void 0,a=t+1,s=n.length;return(0,r.createElement)(og,{key:"token-"+o},(0,r.createElement)(QA,{value:o,status:i,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:ee,isBorderless:"string"!=typeof e&&e.isBorderless||x,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==i&&w,messages:_,termsCount:s,termPosition:a}))}(0,Uo.useEffect)((()=>{L&&!Z()&&X()}),[L]),(0,Uo.useEffect)((()=>{const e=!ow()(f,U||[]);(e||p!==G)&&pe(e)}),[f,U,p,G]),(0,Uo.useEffect)((()=>{pe()}),[D]),(0,Uo.useEffect)((()=>{pe()}),[I]),w&&L&&(F(!1),A(""));const ge=c()(l,"components-form-token-field__input-container",{"is-active":L,"is-disabled":w});let ve={className:"components-form-token-field",tabIndex:-1};const be=ue();return w||(ve=Object.assign({},ve,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=ne(re);break;case"Enter":t=ie();break;case"ArrowLeft":t=function(){let e=!1;return fe()&&(z((e=>Math.min(e+1,p.length))),e=!0),e}();break;case"ArrowUp":H((e=>(0===e?ue(D,f,p,m,g).length:e)-1)),W(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return fe()&&(z((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":H((e=>(e+1)%ue(D,f,p,m,g).length)),W(!0),t=!0;break;case"Delete":t=ne(oe);break;case"Space":E&&(t=ie());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(A(e.target.value),j(!1),H(-1),W(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(me()&&se(D),t=!0);t&&e.preventDefault()},onFocus:function(e){Z()||e.target===Y.current?(F(!0),j(C||B)):F(!1),"function"==typeof y&&y(e)}})),(0,r.createElement)("div",{...ve},(0,r.createElement)(Qb,{htmlFor:`components-form-token-input-${N}`,className:"components-form-token-field__label"},s),(0,r.createElement)("div",{ref:Y,className:ge,tabIndex:-1,onMouseDown:Q,onTouchStart:Q},(0,r.createElement)(tO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:T,hasTokens:!!p.length},function(){const e=p.map(he);return e.splice(de(),0,function(){const e={instanceId:N,autoCapitalize:n,autoComplete:o,placeholder:0===p.length?a:"",key:"input",disabled:w,value:D,onBlur:J,isExpanded:B,selectedSuggestionIndex:V};return(0,r.createElement)(xI,{...e,onChange:i&&p.length>=i?void 0:te,ref:q})}()),e}()),B&&(0,r.createElement)(SI,{instanceId:N,match:g(D),displayTransform:h,suggestions:be,selectedIndex:V,scrollIntoView:$,onHover:function(e){const t=ue().indexOf(e);t>=0&&(H(t),W(!1))},onSelect:function(e){se(e)},__experimentalRenderItem:S})),!R&&(0,r.createElement)(tg,{marginBottom:2}),P&&(0,r.createElement)(ty,{id:`components-form-token-suggestions-howto-${N}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:R},E?(0,u.__)("Separate with commas, spaces, or the Enter key."):(0,u.__)("Separate with commas or the Enter key.")))},oO=()=>(0,r.createElement)(n.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Circle,{cx:"4",cy:"4",r:"4"}));function iO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,u.__)("Guide controls")},Array.from({length:t}).map(((o,i)=>(0,r.createElement)("li",{key:i,"aria-current":i===e?"step":void 0},(0,r.createElement)(my,{key:i,icon:(0,r.createElement)(oO,null),"aria-label":(0,u.sprintf)((0,u.__)("Page %1$d of %2$d"),i+1,t),onClick:()=>n(i)})))))}const aO=function({children:e,className:t,contentLabel:n,finishButtonText:o=(0,u.__)("Finish"),onFinish:i,pages:a=[]}){const s=(0,Uo.useRef)(null),[l,d]=(0,Uo.useState)(0);var f;(0,Uo.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[l]),(0,Uo.useEffect)((()=>{Uo.Children.count(e)&&qo()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),Uo.Children.count(e)&&(a=null!==(f=Uo.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const m=l>0,p=l<a.length-1,h=()=>{m&&d(l-1)},g=()=>{p&&d(l+1)};return 0===a.length?null:(0,r.createElement)(qI,{className:c()("components-guide",t),contentLabel:n,isDismissible:a.length>1,onRequestClose:i,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,r.createElement)("div",{className:"components-guide__container"},(0,r.createElement)("div",{className:"components-guide__page"},a[l].image,a.length>1&&(0,r.createElement)(iO,{currentPage:l,numberOfPages:a.length,setCurrentPage:d}),a[l].content),(0,r.createElement)("div",{className:"components-guide__footer"},m&&(0,r.createElement)(my,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,u.__)("Previous")),p&&(0,r.createElement)(my,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,u.__)("Next")),!p&&(0,r.createElement)(my,{className:"components-guide__finish-button",variant:"primary",onClick:i},o))))};function sO(e){return(0,Uo.useEffect)((()=>{qo()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,r.createElement)("div",{...e})}const lO=(0,Uo.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:o,...i},a){return qo()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,r.createElement)(my,{...i,ref:a,tooltipPosition:t,iconSize:n,showTooltip:void 0!==o?!!o:void 0,label:o||e})}));const cO=os((function(e,t){const{role:n,wrapperClassName:o,...i}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=rs(e,"Item"),{spacedAround:s,size:l}=iT(),c=i||l,u=t||(void 0!==r?"button":"div"),d=ns(),f=(0,Uo.useMemo)((()=>d(("button"===u||"a"===u)&&UP(u),rT[c]||rT.medium,qP,s&&ZP,n)),[u,n,d,c,s]),m=d(GP);return{as:u,className:f,onClick:r,wrapperClassName:m,role:o,...a}}(e);return(0,r.createElement)("div",{role:n,className:o},(0,r.createElement)(xs,{...i,ref:t}))}),"Item"),uO=cO;const dO=os((function(e,t){const n=rs(e,"InputControlPrefixWrapper");return(0,r.createElement)(tg,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function fO({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,d.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}const mO=function({children:e,shortcuts:t,bindGlobal:n,eventName:o}){const i=(0,Uo.useRef)(null),a=Object.entries(null!=t?t:{}).map((([e,t])=>(0,r.createElement)(fO,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:o,target:i})));return Uo.Children.count(e)?(0,r.createElement)("div",{ref:i},a,e):(0,r.createElement)(r.Fragment,null,a)};const pO=function e(t){const{children:n,className:o="",label:i,hideSeparator:a}=t,s=(0,d.useInstanceId)(e);if(!Uo.Children.count(n))return null;const l=`components-menu-group-label-${s}`,u=c()(o,"components-menu-group",{"has-hidden-separator":a});return(0,r.createElement)("div",{className:u},i&&(0,r.createElement)("div",{className:"components-menu-group__label",id:l,"aria-hidden":"true"},i),(0,r.createElement)("div",{role:"group","aria-labelledby":i?l:void 0},n))};const hO=(0,Uo.forwardRef)((function(e,t){let{children:n,info:o,className:i,icon:a,iconPosition:s="right",shortcut:l,isSelected:u,role:d="menuitem",suffix:f,...m}=e;return i=c()("components-menu-item__button",i),o&&(n=(0,r.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,r.createElement)("span",{className:"components-menu-item__item"},n),(0,r.createElement)("span",{className:"components-menu-item__info"},o))),a&&"string"!=typeof a&&(a=(0,Uo.cloneElement)(a,{className:c()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,r.createElement)(my,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?a:void 0,className:i,...m},(0,r.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,r.createElement)(Yo,{className:"components-menu-item__shortcut",shortcut:l}),!f&&a&&"right"===s&&(0,r.createElement)(uy,{icon:a}),f)})),gO=hO,vO=()=>{};const bO=function({choices:e=[],onHover:t=vO,onSelect:n,value:o}){return(0,r.createElement)(r.Fragment,null,e.map((e=>{const i=o===e.value;return(0,r.createElement)(gO,{key:e.value,role:"menuitemradio",disabled:e.disabled,icon:i?DS:null,info:e.info,isSelected:i,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{i||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};const yO=(0,Uo.forwardRef)((function({eventToOffset:e,...t},n){return(0,r.createElement)(qT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})})),xO="root",wO=100,EO=()=>{},_O=()=>{},SO=(0,Uo.createContext)({activeItem:void 0,activeMenu:xO,setActiveMenu:EO,navigationTree:{items:{},getItem:_O,addItem:EO,removeItem:EO,menus:{},getMenu:_O,addMenu:EO,removeMenu:EO,childMenu:{},traverseMenu:EO,isMenuEmpty:()=>!1}}),CO=()=>(0,Uo.useContext)(SO);const kO=bs("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",Ah(4),";overflow:hidden;"),PO=bs("div",{target:"eeiismy10"})("margin-top:",Ah(6),";margin-bottom:",Ah(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",Ah(6),";}.components-navigation__group+.components-navigation__group{margin-top:",Ah(6),";}"),TO=bs(my,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),IO=bs("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),RO=bs("div",{target:"eeiismy7"})({name:"rgorny",styles:"margin:11px 0;padding:1px"}),MO=bs("span",{target:"eeiismy6"})("height:",Ah(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",Ah(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),NO=bs($S,{target:"eeiismy5"})("min-height:",Ah(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",Ah(2),";padding:",(()=>(0,u.isRTL)()?`${Ah(1)} ${Ah(4)} ${Ah(1)} ${Ah(2)}`:`${Ah(1)} ${Ah(2)} ${Ah(1)} ${Ah(4)}`),";"),DO=bs("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",Ah(2)," ",Ah(4),";",Jh({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Ds.theme.accent,";color:",Ds.white,";>button,>a{color:",Ds.white,";opacity:1;}}>svg path{color:",Ds.gray[600],";}"),AO=bs("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",Ah(1.5)," ",Ah(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),OO=bs("span",{target:"eeiismy2"})("display:flex;margin-right:",Ah(2),";"),zO=bs("span",{target:"eeiismy1"})("margin-left:",(()=>(0,u.isRTL)()?"0":Ah(2)),";margin-right:",(()=>(0,u.isRTL)()?Ah(2):"0"),";display:inline-flex;padding:",Ah(1)," ",Ah(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",As("animation"),";"),LO=bs(mv,{target:"eeiismy0"})((()=>(0,u.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function FO(){const[e,t]=(0,Uo.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const BO=()=>{};const jO=function({activeItem:e,activeMenu:t=xO,children:n,className:o,onActivateMenu:i=BO}){const[a,s]=(0,Uo.useState)(t),[l,d]=(0,Uo.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=FO(),{nodes:o,getNode:i,addNode:a,removeNode:s}=FO(),[l,c]=(0,Uo.useState)({}),u=e=>l[e]||[],d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...u(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{c((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),a(e,t)},removeMenu:s,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),m=(0,u.isRTL)()?"right":"left",p=(e,t=m)=>{f.getMenu(e)&&(d(t),s(e),i(e))},h=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,Uo.useEffect)((()=>{t!==a&&p(t)}),[t]);const g={activeItem:e,activeMenu:a,setActiveMenu:p,navigationTree:f},v=c()("components-navigation",o),b=gl({type:"slide-in",origin:l});return(0,r.createElement)(kO,{className:v},(0,r.createElement)("div",{key:a,className:b?c()({[b]:h.current&&l}):void 0},(0,r.createElement)(SO.Provider,{value:g},n)))},VO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),HO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const $O=(0,Uo.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:o,parentMenu:i},a){const{setActiveMenu:s,navigationTree:l}=CO(),d=c()("components-navigation__back-button",t),f=void 0!==i?l.getMenu(i)?.title:void 0,m=(0,u.isRTL)()?VO:HO;return(0,r.createElement)(TO,{className:d,href:n,variant:"tertiary",ref:a,onClick:e=>{"function"==typeof o&&o(e);const t=(0,u.isRTL)()?"left":"right";i&&!e.defaultPrevented&&s(i,t)}},(0,r.createElement)($E,{icon:m}),e||f||(0,u.__)("Back"))})),WO=$O,UO=(0,Uo.createContext)({group:void 0});let GO=0;const qO=function({children:e,className:t,title:n}){const[o]=(0,Uo.useState)("group-"+ ++GO),{navigationTree:{items:i}}=CO(),a={group:o};if(!Object.values(i).some((e=>e.group===o&&e._isVisible)))return(0,r.createElement)(UO.Provider,{value:a},e);const s=`components-navigation__group-title-${o}`,l=c()("components-navigation__group",t);return(0,r.createElement)(UO.Provider,{value:a},(0,r.createElement)("li",{className:l},n&&(0,r.createElement)(NO,{className:"components-navigation__group-title",id:s,level:3},n),(0,r.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function YO(e){const{badge:t,title:n}=e;return(0,r.createElement)(r.Fragment,null,n&&(0,r.createElement)(LO,{className:"components-navigation__item-title",as:"span"},n),t&&(0,r.createElement)(zO,{className:"components-navigation__item-badge"},t))}const KO=(0,Uo.createContext)({menu:void 0,search:""}),XO=()=>(0,Uo.useContext)(KO),ZO=e=>Fy()(e).replace(/^\//,"").toLowerCase(),JO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=CO(),{group:i}=(0,Uo.useContext)(UO),{menu:a,search:s}=XO();(0,Uo.useEffect)((()=>{const l=n===a,c=!s||void 0!==t.title&&((e,t)=>-1!==ZO(e).indexOf(ZO(t)))(t.title,s);return r(e,{...t,group:i,menu:a,_isVisible:l&&c}),()=>{o(e)}}),[n,s])};let QO=0;function ez(e){const{children:t,className:n,title:o,href:i,...a}=e,[s]=(0,Uo.useState)("item-"+ ++QO);JO(s,e);const{navigationTree:l}=CO();if(!l.getItem(s)?._isVisible)return null;const u=c()("components-navigation__item",n);return(0,r.createElement)(DO,{className:u,...a},t)}const tz=()=>{};const nz=function(e){const{badge:t,children:n,className:o,href:i,item:a,navigateToMenu:s,onClick:l=tz,title:d,icon:f,hideIfTargetMenuEmpty:m,isText:p,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=CO();if(m&&s&&b(s))return null;const y=a&&g===a,x=c()(o,{"is-active":y}),w=(0,u.isRTL)()?HO:VO,E=n?e:{...e,onClick:void 0},_=p?h:{as:my,href:i,onClick:e=>{s&&v(s),l(e)},"aria-current":y?"page":void 0,...h};return(0,r.createElement)(ez,{...E,className:x},n||(0,r.createElement)(AO,{..._},f&&(0,r.createElement)(OO,null,(0,r.createElement)($E,{icon:f})),(0,r.createElement)(YO,{title:d,badge:t}),s&&(0,r.createElement)($E,{icon:w})))},rz=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),oz=(0,d.createHigherOrderComponent)((e=>t=>(0,r.createElement)(e,{...t,speak:jy.speak,debouncedSpeak:(0,d.useDebounce)(jy.speak,500)})),"withSpokenMessages"),iz=bs("div",{target:"effl84m1"})("display:flex;padding-inline-end:",(({size:e})=>Ah("compact"===e?1:2)),";svg{fill:currentColor;}"),az=bs(ly,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",Ds.theme.gray[100],";}");function sz({searchRef:e,value:t,onChange:n,onClose:o}){if(!o&&!t)return(0,r.createElement)($E,{icon:rz});return(0,r.createElement)(my,{size:"small",icon:zw,label:o?(0,u.__)("Close search"):(0,u.__)("Reset search"),onClick:null!=o?o:()=>{n(""),e.current?.focus()}})}const lz=(0,Uo.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:o,label:i=(0,u.__)("Search"),placeholder:a=(0,u.__)("Search"),hideLabelFromVision:s=!0,onClose:l,size:f="default",...m},p){delete m.disabled;const h=(0,Uo.useRef)(null),g=(0,d.useInstanceId)(lz,"components-search-control"),v=(0,Uo.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e}},InputBase:{isBorderless:!0}})),[e]);return(0,r.createElement)(mi,{value:v},(0,r.createElement)(az,{__next40pxDefaultSize:!0,id:g,hideLabelFromVision:s,label:i,ref:(0,d.useMergeRefs)([h,p]),type:"search",size:f,className:c()("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:a,value:null!=o?o:"",suffix:(0,r.createElement)(iz,{size:f},(0,r.createElement)(sz,{searchRef:h,value:o,onChange:n,onClose:l})),...m}))})),cz=lz;const uz=oz((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:o,title:i}){const{navigationTree:{items:a}}=CO(),{menu:s}=XO(),l=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),wO);return()=>{clearTimeout(e)}}),[]),(0,Uo.useEffect)((()=>{if(!o)return;const t=Object.values(a).filter((e=>e._isVisible)).length,n=(0,u.sprintf)((0,u._n)("%d result found.","%d results found.",t),t);e(n)}),[a,o]);const c=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,u.sprintf)((0,u.__)("Search %s"),i?.toLowerCase()).trim();return(0,r.createElement)(RO,null,(0,r.createElement)(cz,{__nextHasNoMarginBottom:!0,className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),c())},placeholder:f,onClose:c,ref:l,value:o}))}));function dz({hasSearch:e,onSearch:t,search:n,title:o,titleAction:i}){const[a,s]=(0,Uo.useState)(!1),{menu:l}=XO(),c=(0,Uo.useRef)(null);if(!o)return null;const d=`components-navigation__menu-title-${l}`,f=(0,u.sprintf)((0,u.__)("Search in %s"),o);return(0,r.createElement)(IO,{className:"components-navigation__menu-title"},!a&&(0,r.createElement)(NO,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,r.createElement)("span",{id:d},o),(e||i)&&(0,r.createElement)(MO,null,i,e&&(0,r.createElement)(my,{size:"small",variant:"tertiary",label:f,onClick:()=>s(!0),ref:c},(0,r.createElement)($E,{icon:rz})))),a&&(0,r.createElement)("div",{className:gl({type:"slide-in",origin:"left"})},(0,r.createElement)(uz,{onCloseSearch:()=>{s(!1),setTimeout((()=>{c.current?.focus()}),wO)},onSearch:t,search:n,title:o})))}function fz({search:e}){const{navigationTree:{items:t}}=CO(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,r.createElement)(DO,null,(0,r.createElement)(AO,null,(0,u.__)("No results found.")," "))}const mz=function(e){const{backButtonLabel:t,children:n,className:o,hasSearch:i,menu:a=xO,onBackButtonClick:s,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:f,title:m,titleAction:p}=e,[h,g]=(0,Uo.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=CO(),r=e.menu||xO;(0,Uo.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=CO(),b={menu:a,search:h};if(v!==a)return(0,r.createElement)(KO.Provider,{value:b},n);const y=!!l,x=y?d:h,w=y?l:g,E=`components-navigation__menu-title-${a}`,_=c()("components-navigation__menu",o);return(0,r.createElement)(KO.Provider,{value:b},(0,r.createElement)(PO,{className:_},(u||s)&&(0,r.createElement)(WO,{backButtonLabel:t,parentMenu:u,onClick:s}),m&&(0,r.createElement)(dz,{hasSearch:i,onSearch:w,search:x,title:m,titleAction:p}),(0,r.createElement)(KT,null,(0,r.createElement)("ul",{"aria-labelledby":E},n,x&&!f&&(0,r.createElement)(fz,{search:x})))))};function pz(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(gz(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var m=u("CHAR"),p=u("NAME"),h=u("PATTERN");if(p||h){var g=m||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:p||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=m||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",x=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:x,modifier:u("MODIFIER")||""})}else d("END")}}return a}function hz(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(yz(e,n,t),n,t)}function gz(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function vz(e){return e&&e.sensitive?"":"i"}function bz(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,m=n.endsWith,p="[".concat(gz(void 0===m?"":m),"]|$"),h="[".concat(gz(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=gz(u(y));else{var x=gz(u(y.prefix)),w=gz(u(y.suffix));if(y.pattern)if(t&&t.push(y),x||w)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";g+="(?:".concat(x,"((?:").concat(y.pattern,")(?:").concat(w).concat(x,"(?:").concat(y.pattern,"))*)").concat(w,")").concat(E)}else g+="(?:".concat(x,"(").concat(y.pattern,")").concat(w,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(x).concat(w,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(p,")"):"$";else{var _=e[e.length-1],S="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(p,"))?")),S||(g+="(?=".concat(h,"|").concat(p,")"))}return new RegExp(g,vz(n))}(pz(e,n),t,n)}function yz(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return yz(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),vz(n))}(e,t,n):bz(e,t,n)}function xz(e,t){return hz(t,{decode:decodeURIComponent})(e)}const wz=(0,Uo.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const Ez={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},_z=Ts({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),Sz=Ts({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),Cz=e=>Ps("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return Ps("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?_z:Sz,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";","");function kz(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}const Pz=os((function(e,t){const{initialPath:n,children:o,className:i,...a}=rs(e,"NavigatorProvider"),[s,l]=(0,Uo.useState)([{path:n}]),c=(0,Uo.useRef)([]),[u,d]=(0,Uo.useReducer)(kz,[]),f=(0,Uo.useRef)([]);(0,Uo.useEffect)((()=>{f.current=u}),[u]),(0,Uo.useEffect)((()=>{c.current=s}),[s]);const m=(0,Uo.useRef)(),p=(0,Uo.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(m.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=xz(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return m.current&&t&&ow()(t.params,m.current.params)&&t.id===m.current.id?m.current:t})(e);return m.current=t,t}),[u,s]),h=(0,Uo.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,Uo.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,Uo.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,Uo.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,Uo.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==xz(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),x=(0,Uo.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:p?p.params:{},match:p?p.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,p,b,v,y,h,g]),w=ns(),E=(0,Uo.useMemo)((()=>w(Ez,i)),[i,w]);return(0,r.createElement)(xs,{ref:t,className:E,...a},(0,r.createElement)(wz.Provider,{value:x},o))}),"NavigatorProvider"),Tz=Pz,Iz=window.wp.escapeHtml;const Rz=os((function(e,t){const n=(0,Uo.useId)(),{children:o,className:i,path:a,...s}=rs(e,"NavigatorScreen"),{location:l,match:c,addScreen:f,removeScreen:m}=(0,Uo.useContext)(wz),p=c===n,h=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e={id:n,path:(0,Iz.escapeAttribute)(a)};return f(e),()=>m(e)}),[n,a,f,m]);const g=(0,u.isRTL)(),{isInitial:v,isBack:b}=l,y=ns(),x=(0,Uo.useMemo)((()=>y(Cz({isInitial:v,isBack:b,isRTL:g}),i)),[i,y,v,b,g]),w=(0,Uo.useRef)(l);(0,Uo.useEffect)((()=>{w.current=l}),[l]);const E=l.isInitial&&!l.isBack;(0,Uo.useEffect)((()=>{if(E||!p||!h.current||w.current.hasRestoredFocus||l.skipFocus)return;const e=h.current.ownerDocument.activeElement;if(h.current.contains(e))return;let t=null;if(l.isBack&&l?.focusTargetSelector&&(t=h.current.querySelector(l.focusTargetSelector)),!t){const e=HT.focus.tabbable.find(h.current)[0];t=null!=e?e:h.current}w.current.hasRestoredFocus=!0,t.focus()}),[E,p,l.isBack,l.focusTargetSelector,l.skipFocus]);const _=(0,d.useMergeRefs)([t,h]);return p?(0,r.createElement)(xs,{ref:_,className:x,...s},o):null}),"NavigatorScreen"),Mz=Rz;const Nz=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Uo.useContext)(wz);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}},Dz=(e,t)=>`[${e}="${t}"]`;const Az=os((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=my,attributeName:o="id",...i}=rs(e,"NavigatorButton"),a=(0,Iz.escapeAttribute)(t),{goTo:s}=Nz();return{as:r,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),s(a,{focusTargetSelector:Dz(o,a)}),n?.(e)}),[s,n,o,a]),...i,[o]:a}}(e);return(0,r.createElement)(xs,{ref:t,...n})}),"NavigatorButton");function Oz(e){const{onClick:t,as:n=my,goToParent:r=!1,...o}=rs(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=Nz();return{as:n,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),r?a():i(),t?.(e)}),[r,a,i,t]),...o}}const zz=os((function(e,t){const n=Oz(e);return(0,r.createElement)(xs,{ref:t,...n})}),"NavigatorBackButton");const Lz=os((function(e,t){const n=Oz({...e,goToParent:!0});return(0,r.createElement)(xs,{ref:t,...n})}),"NavigatorToParentButton"),Fz=()=>{};function Bz(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const jz=function({className:e,status:t="info",children:n,spokenMessage:o=n,onRemove:i=Fz,isDismissible:a=!0,actions:s=[],politeness:l=Bz(t),__unstableHTML:d,onDismiss:f=Fz}){!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,jy.speak)(n,t)}),[n,t])}(o,l);const m=c()(e,"components-notice","is-"+t,{"is-dismissible":a});return d&&"string"==typeof n&&(n=(0,r.createElement)(Uo.RawHTML,null,n)),(0,r.createElement)("div",{className:m},(0,r.createElement)(ws,null,function(e){switch(e){case"warning":return(0,u.__)("Warning notice");case"info":return(0,u.__)("Information notice");case"error":return(0,u.__)("Error notice");default:return(0,u.__)("Notice")}}(t)),(0,r.createElement)("div",{className:"components-notice__content"},n,(0,r.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:o,noDefaultClasses:i=!1,onClick:a,url:s},l)=>{let u=o;return"primary"===o||i||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,r.createElement)(my,{key:l,href:s,variant:u,onClick:s?void 0:a,className:c()("components-notice__action",e)},t)})))),a&&(0,r.createElement)(my,{className:"components-notice__dismiss",icon:ex,label:(0,u.__)("Close"),onClick:()=>{f(),i()}}))},Vz=()=>{};const Hz=function({notices:e,onRemove:t=Vz,className:n,children:o}){const i=e=>()=>t(e);return n=c()("components-notice-list",n),(0,r.createElement)("div",{className:n},o,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,r.createElement)(jz,{...n,key:e.id,onRemove:i(e.id)},e.content)})))};const $z=function({label:e,children:t}){return(0,r.createElement)("div",{className:"components-panel__header"},e&&(0,r.createElement)("h2",null,e),t)};const Wz=(0,Uo.forwardRef)((function({header:e,className:t,children:n},o){const i=c()(t,"components-panel");return(0,r.createElement)("div",{className:i,ref:o},e&&(0,r.createElement)($z,{label:e}),n)})),Uz=(0,r.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Gz=()=>{};const qz=(0,Uo.forwardRef)((({isOpened:e,icon:t,title:n,...o},i)=>n?(0,r.createElement)("h2",{className:"components-panel__body-title"},(0,r.createElement)(my,{className:"components-panel__body-toggle","aria-expanded":e,ref:i,...o},(0,r.createElement)("span",{"aria-hidden":"true"},(0,r.createElement)(uy,{className:"components-panel__arrow",icon:e?Uz:WE})),n,t&&(0,r.createElement)(uy,{icon:t,className:"components-panel__icon",size:20}))):null)),Yz=(0,Uo.forwardRef)((function(e,t){const{buttonProps:n={},children:o,className:i,icon:a,initialOpen:s,onToggle:l=Gz,opened:u,title:f,scrollAfterOpen:m=!0}=e,[p,h]=XE(u,{initial:void 0===s||s,fallback:!1}),g=(0,Uo.useRef)(null),v=(0,d.useReducedMotion)()?"auto":"smooth",b=(0,Uo.useRef)();b.current=m,ui((()=>{p&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[p,v]);const y=c()("components-panel__body",i,{"is-opened":p});return(0,r.createElement)("div",{className:y,ref:(0,d.useMergeRefs)([g,t])},(0,r.createElement)(qz,{icon:a,isOpened:Boolean(p),onClick:e=>{e.preventDefault();const t=!p;h(t),l(t)},title:f,...n}),"function"==typeof o?o({opened:Boolean(p)}):p&&o)})),Kz=Yz;const Xz=(0,Uo.forwardRef)((function({className:e,children:t},n){return(0,r.createElement)("div",{className:c()("components-panel__row",e),ref:n},t)})),Zz=(0,r.createElement)(n.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,r.createElement)(n.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));const Jz=function(e){const{icon:t,children:n,label:o,instructions:i,className:a,notices:s,preview:l,isColumnLayout:u,withIllustration:f,...m}=e,[p,{width:h}]=(0,d.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=c()("components-placeholder",a,g,f?"has-illustration":null),b=c()("components-placeholder__fieldset",{"is-column-layout":u});return(0,Uo.useEffect)((()=>{i&&(0,jy.speak)(i)}),[i]),(0,r.createElement)("div",{...m,className:v},f?Zz:null,p,s,l&&(0,r.createElement)("div",{className:"components-placeholder__preview"},l),(0,r.createElement)("div",{className:"components-placeholder__label"},(0,r.createElement)(uy,{icon:t}),o),!!i&&(0,r.createElement)("div",{className:"components-placeholder__instructions"},i),(0,r.createElement)("div",{className:b},n))},Qz=e=>e.every((e=>null!==e.parent));function eL(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!Qz(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}const tL=window.wp.htmlEntities;function nL(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,tL.decodeEntities)(e.name)},...nL(e.children||[],t+1)]))}const rL=function(e){const{label:t,noOptionLabel:n,onChange:o,selectedId:i,tree:a=[],...s}=Nv(e),l=(0,Uo.useMemo)((()=>[n&&{value:"",label:n},...nL(a)].filter((e=>!!e))),[n,a]);return(0,r.createElement)(qE,{label:t,options:l,onChange:o,value:i,...s})};function oL({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:o,selectedAuthorId:i,onChange:a}){if(!o)return null;const s=eL(o);return(0,r.createElement)(rL,{label:t,noOptionLabel:n,onChange:a,tree:s,selectedId:void 0!==i?String(i):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function iL({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:o,selectedCategoryId:i,onChange:a,...s}){const l=(0,Uo.useMemo)((()=>eL(o)),[o]);return(0,r.createElement)(rL,{label:t,noOptionLabel:n,onChange:a,tree:l,selectedId:void 0!==i?String(i):void 0,...s,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function aL(e){return"categoriesList"in e}function sL(e){return"categorySuggestions"in e}const lL=function({__next40pxDefaultSize:e=!1,authorList:t,selectedAuthorId:n,numberOfItems:o,order:i,orderBy:a,maxItems:s=100,minItems:l=1,onAuthorChange:c,onNumberOfItemsChange:d,onOrderChange:f,onOrderByChange:m,...p}){return(0,r.createElement)(jS,{spacing:"4",className:"components-query-controls"},[f&&m&&(0,r.createElement)(YE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,key:"query-controls-order-select",label:(0,u.__)("Order by"),value:`${a}/${i}`,options:[{label:(0,u.__)("Newest to oldest"),value:"date/desc"},{label:(0,u.__)("Oldest to newest"),value:"date/asc"},{label:(0,u.__)("A → Z"),value:"title/asc"},{label:(0,u.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==i&&f(n),t!==a&&m(t)}}),aL(p)&&p.categoriesList&&p.onCategoryChange&&(0,r.createElement)(iL,{__next40pxDefaultSize:e,key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,u.__)("Category"),noOptionLabel:(0,u._x)("All","categories"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),sL(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,r.createElement)(rO,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,u.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),c&&(0,r.createElement)(oL,{__next40pxDefaultSize:e,key:"query-controls-author-select",authorList:t,label:(0,u.__)("Author"),noOptionLabel:(0,u._x)("All","authors"),selectedAuthorId:n,onChange:c}),d&&(0,r.createElement)(k_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,key:"query-controls-range-control",label:(0,u.__)("Number of items"),value:o,onChange:d,min:l,max:s,required:!0})])},cL=(0,Uo.createContext)({store:void 0,disabled:void 0});const uL=(0,Uo.forwardRef)((function({value:e,children:t,...n},o){const{store:i,disabled:a}=(0,Uo.useContext)(cL),s=i?.useState("value"),l=void 0!==s&&s===e;return(0,r.createElement)(pE,{disabled:a,store:i,ref:o,value:e,render:(0,r.createElement)(my,{variant:l?"primary":"secondary",...n})},t||e)})),dL=uL;const fL=(0,Uo.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:o,onChange:i,children:a,...s},l){const c=Jw({value:t,defaultValue:n,setValue:e=>{i?.(null!=e?e:void 0)}}),u=(0,Uo.useMemo)((()=>({store:c,disabled:o})),[c,o]);return(0,r.createElement)(cL.Provider,{value:u},(0,r.createElement)(oE,{store:c,render:(0,r.createElement)(Ok,null,a),"aria-label":e,ref:l,...s}))})),mL=fL;const pL=function e(t){const{label:n,className:o,selected:i,help:a,onChange:s,hideLabelFromVision:l,options:u=[],...f}=t,m=`inspector-radio-control-${(0,d.useInstanceId)(e)}`,p=e=>s(e.target.value);return u?.length?(0,r.createElement)(iy,{__nextHasNoMarginBottom:!0,label:n,id:m,hideLabelFromVision:l,help:a,className:c()(o,"components-radio-control")},(0,r.createElement)(jS,{spacing:1},u.map(((e,t)=>(0,r.createElement)("div",{key:`${m}-${t}`,className:"components-radio-control__option"},(0,r.createElement)("input",{id:`${m}-${t}`,className:"components-radio-control__input",type:"radio",name:m,value:e.value,onChange:p,checked:e.value===i,"aria-describedby":a?`${m}__help`:void 0,...f}),(0,r.createElement)("label",{className:"components-radio-control__label",htmlFor:`${m}-${t}`},e.label)))))):null};var hL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gL=function(){return gL=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},gL.apply(this,arguments)},vL={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},bL={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},yL={width:"20px",height:"20px",position:"absolute"},xL={top:gL(gL({},vL),{top:"-5px"}),right:gL(gL({},bL),{left:void 0,right:"-5px"}),bottom:gL(gL({},vL),{top:void 0,bottom:"-5px"}),left:gL(gL({},bL),{left:"-5px"}),topRight:gL(gL({},yL),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:gL(gL({},yL),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:gL(gL({},yL),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:gL(gL({},yL),{left:"-10px",top:"-10px",cursor:"nw-resize"})},wL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return hL(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:gL(gL({position:"absolute",userSelect:"none"},xL[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),EL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_L=function(){return _L=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},_L.apply(this,arguments)},SL={width:"auto",height:"auto"},CL=function(e,t,n){return Math.max(Math.min(e,n),t)},kL=function(e,t){return Math.round(e/t)*t},PL=function(e,t){return new RegExp(e,"i").test(t)},TL=function(e){return Boolean(e.touches&&e.touches.length)},IL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},RL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},ML=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},NL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],DL="__resizable_base__",AL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(DL):t.className+=DL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return EL(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||SL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return RL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?RL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?RL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&PL("left",i),s=o&&PL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,m=c||0,p=u||0;return PL("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(f=(d-p)/this.ratio+m)),PL("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(f=(d-p)/this.ratio+m)),PL("bottom",i)&&(f=a.height+(t-a.y)*r/n,l&&(d=(f-m)*this.ratio+p)),PL("top",i)&&(f=a.height-(t-a.y)*r/n,l&&(d=(f-m)*this.ratio+p)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,m=s||0;if(i){var p=(u-f)*this.ratio+m,h=(d-f)*this.ratio+m,g=(l-m)/this.ratio+f,v=(c-m)/this.ratio+f,b=Math.max(l,p),y=Math.min(c,h),x=Math.max(u,g),w=Math.min(d,v);e=CL(e,b,y),t=CL(t,x,w)}else e=CL(e,l,c),t=CL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&TL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:_L(_L({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&TL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=TL(e)?e.touches[0].clientX:e.clientX,l=TL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,m=c.height,p=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=ML(r,e.width,t,n),o=ML(o,e.height,t,n),i=ML(i,e.width,t,n),a=ML(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(p,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=h.maxWidth,o=h.maxHeight,i=h.minWidth,a=h.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=IL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=IL(v,this.props.snap.y,this.props.snapGap));var x=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=x.newWidth,v=x.newHeight,this.props.grid){var w=kL(b,this.props.grid[0]),E=kL(v,this.props.grid[1]),_=this.props.snapGap||0;b=0===_||Math.abs(w-b)<=_?w:b,v=0===_||Math.abs(E-v)<=_?E:v}var S={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/p.width*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(m.endsWith("%"))v=v/p.height*100+"%";else if(m.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(m.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var C={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),(0,tr.flushSync)((function(){t.setState(C)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:_L(_L({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var c=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(wL,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},l&&l[t]?l[t]:null):null}));return r.createElement("div",{className:s,style:a},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==NL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=_L(_L(_L({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,_L({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);const OL=()=>{},zL={bottom:"bottom",corner:"corner"};function LL({axis:e,fadeTimeout:t=180,onResize:n=OL,position:r=zL.bottom,showPx:o=!1}){const[i,a]=(0,d.useResizeObserver)(),s=!!e,[l,c]=(0,Uo.useState)(!1),[u,f]=(0,Uo.useState)(!1),{width:m,height:p}=a,h=(0,Uo.useRef)(p),g=(0,Uo.useRef)(m),v=(0,Uo.useRef)(),b=(0,Uo.useCallback)((()=>{v.current&&window.clearTimeout(v.current),v.current=window.setTimeout((()=>{s||(c(!1),f(!1))}),t)}),[t,s]);(0,Uo.useEffect)((()=>{if(!(null!==m||null!==p))return;const e=m!==g.current,t=p!==h.current;if(e||t){if(m&&!g.current&&p&&!h.current)return g.current=m,void(h.current=p);e&&(c(!0),g.current=m),t&&(f(!0),h.current=p),n({width:m,height:p}),b()}}),[m,p,n,b]);const y=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=zL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===zL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:p,moveX:l,moveY:u,position:r,showPx:o,width:m});return{label:y,resizeListener:i}}const FL=bs("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),BL=bs("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),jL=bs("div",{target:"e1wq7y4k1"})("background:",Ds.theme.foreground,";border-radius:2px;box-sizing:border-box;font-family:",Yb("default.fontFamily"),";font-size:12px;color:",Ds.theme.foregroundInverted,";padding:4px 8px;position:relative;"),VL=bs(mv,{target:"e1wq7y4k0"})("&&&{color:",Ds.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const HL=(0,Uo.forwardRef)((function({label:e,position:t=zL.corner,zIndex:n=1e3,...o},i){const a=!!e,s=t===zL.bottom,l=t===zL.corner;if(!a)return null;let c={opacity:a?1:void 0,zIndex:n},d={};return s&&(c={...c,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(c={...c,position:"absolute",top:4,right:(0,u.isRTL)()?void 0:4,left:(0,u.isRTL)()?4:void 0}),(0,r.createElement)(BL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:i,style:c,...o},(0,r.createElement)(jL,{className:"components-resizable-tooltip__tooltip",style:d},(0,r.createElement)(VL,{as:"span"},e)))})),$L=HL,WL=()=>{};const UL=(0,Uo.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:o=!0,labelRef:i,onResize:a=WL,position:s=zL.bottom,showPx:l=!0,zIndex:u=1e3,...d},f){const{label:m,resizeListener:p}=LL({axis:e,fadeTimeout:n,onResize:a,showPx:l,position:s});if(!o)return null;const h=c()("components-resize-tooltip",t);return(0,r.createElement)(FL,{"aria-hidden":"true",className:h,ref:f,...d},p,(0,r.createElement)($L,{"aria-hidden":d["aria-hidden"],label:m,position:s,ref:i,zIndex:u}))})),GL=UL,qL="components-resizable-box__handle",YL="components-resizable-box__side-handle",KL="components-resizable-box__corner-handle",XL={top:c()(qL,YL,"components-resizable-box__handle-top"),right:c()(qL,YL,"components-resizable-box__handle-right"),bottom:c()(qL,YL,"components-resizable-box__handle-bottom"),left:c()(qL,YL,"components-resizable-box__handle-left"),topLeft:c()(qL,KL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:c()(qL,KL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:c()(qL,KL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:c()(qL,KL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},ZL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},JL={top:ZL,right:ZL,bottom:ZL,left:ZL,topLeft:ZL,topRight:ZL,bottomRight:ZL,bottomLeft:ZL};const QL=(0,Uo.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:o=!1,__experimentalTooltipProps:i={},...a},s){return(0,r.createElement)(AL,{className:c()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:XL,handleStyles:JL,ref:s,...a},t,o&&(0,r.createElement)(GL,{...i}))}));const eF=function({naturalWidth:e,naturalHeight:t,children:n,isInline:o=!1}){if(1!==Uo.Children.count(n))return null;const i=o?"span":"div";let a;return e&&t&&(a=`${e} / ${t}`),(0,r.createElement)(i,{className:"components-responsive-wrapper"},(0,r.createElement)("div",null,(0,Uo.cloneElement)(n,{className:c()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:a}})))},tF=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};const nF=function({html:e="",title:t="",type:n,styles:o=[],scripts:i=[],onFocus:a,tabIndex:s}){const l=(0,Uo.useRef)(),[c,u]=(0,Uo.useState)(0),[f,m]=(0,Uo.useState)(0);function p(a=!1){if(!function(){try{return!!l.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:s,ownerDocument:c}=l.current;if(!a&&null!==s?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,r.createElement)("html",{lang:c.documentElement.lang,className:n},(0,r.createElement)("head",null,(0,r.createElement)("title",null,t),(0,r.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),o.map(((e,t)=>(0,r.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,r.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,r.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${tF.toString()})();`}}),i.map((e=>(0,r.createElement)("script",{key:e,src:e})))));s.open(),s.write("<!DOCTYPE html>"+(0,Uo.renderToString)(u)),s.close()}return(0,Uo.useEffect)((()=>{function e(){p(!1)}function t(e){const t=l.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),m(n.height))}p();const n=l.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.removeEventListener("message",t)}}),[]),(0,Uo.useEffect)((()=>{p()}),[t,o,i]),(0,Uo.useEffect)((()=>{p(!0)}),[e,n]),(0,r.createElement)("iframe",{ref:(0,d.useMergeRefs)([l,(0,d.useFocusableIframe)()]),title:t,tabIndex:s,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:a,width:Math.ceil(c),height:Math.ceil(f)})};const rF=(0,Uo.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:o="polite",actions:i=[],onRemove:a,icon:s=null,explicitDismiss:l=!1,onDismiss:d,listRef:f},m){function p(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),a?.()}!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,jy.speak)(n,t)}),[n,t])}(n,o);const h=(0,Uo.useRef)({onDismiss:d,onRemove:a});(0,Uo.useLayoutEffect)((()=>{h.current={onDismiss:d,onRemove:a}})),(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{l||(h.current.onDismiss?.(),h.current.onRemove?.())}),1e4);return()=>clearTimeout(e)}),[l]);const g=c()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!l});i&&i.length>1&&(i=[i[0]]);const v=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,r.createElement)("div",{ref:m,className:g,onClick:l?void 0:p,tabIndex:0,role:l?"":"button",onKeyPress:l?void 0:p,"aria-label":l?"":(0,u.__)("Dismiss this notice")},(0,r.createElement)("div",{className:v},s&&(0,r.createElement)("div",{className:"components-snackbar__icon"},s),t,i.map((({label:e,onClick:t,url:n},o)=>(0,r.createElement)(my,{key:o,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),a?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),l&&(0,r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:p,onKeyPress:p},"✕")))})),oF=rF,iF={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{type:"tween",duration:.3,ease:[0,0,.2,1]},opacity:{type:"tween",duration:.25,delay:.05,ease:[0,0,.2,1]}}},exit:{opacity:0,transition:{type:"tween",duration:.1,ease:[0,0,.2,1]}}};const aF=function({notices:e,className:t,children:n,onRemove:o}){const i=(0,Uo.useRef)(null),a=(0,d.useReducedMotion)();t=c()("components-snackbar-list",t);const s=e=>()=>o?.(e.id);return(0,r.createElement)("div",{className:t,tabIndex:-1,ref:i},n,(0,r.createElement)(Ih,null,e.map((e=>{const{content:t,...n}=e;return(0,r.createElement)(wh.div,{layout:!a,initial:"init",animate:"open",exit:"exit",key:e.id,variants:a?void 0:iF},(0,r.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,r.createElement)(oF,{...n,onRemove:s(e),listRef:i},e.content)))}))))};const sF=Ts` +function li(e){return"[object Object]"===Object.prototype.toString.call(e)}function ci(e){var t,n;return!1!==li(e)&&(void 0===(t=e.constructor)||!1!==li(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const ui=function(e,t){const n=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},di=(0,Uo.createContext)({}),pi=()=>(0,Uo.useContext)(di);const hi=(0,Uo.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=pi(),n=(0,Uo.useRef)(e);return ui((()=>{ai()(n.current,e)&&n.current}),[e]),(0,Uo.useMemo)((()=>ii()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ci})),[t,e])}({value:t});return(0,ze.jsx)(di.Provider,{value:n,children:e})})),fi="data-wp-component",mi="data-wp-c16t",gi="__contextSystemKey__";var vi=function(){return vi=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},vi.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function bi(e){return e.toLowerCase()}var xi=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],yi=/[^A-Z0-9]+/gi;function wi(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function _i(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?xi:n,o=t.stripRegexp,i=void 0===o?yi:o,s=t.transform,a=void 0===s?bi:s,l=t.delimiter,c=void 0===l?" ":l,u=wi(wi(e,r,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(c)}(e,vi({delimiter:"."},t))}function Si(e,t){return void 0===t&&(t={}),_i(e,vi({delimiter:"-"},t))}function Ci(e,t){var n,r,o=0;function i(){var i,s,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<l;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const ki=Ci((function(e){return`components-${Si(e)}`}));var ji=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){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ei=Math.abs,Pi=String.fromCharCode,Ti=Object.assign;function Ii(e){return e.trim()}function Mi(e,t,n){return e.replace(t,n)}function Ri(e,t){return e.indexOf(t)}function Ni(e,t){return 0|e.charCodeAt(t)}function Ai(e,t,n){return e.slice(t,n)}function Di(e){return e.length}function Oi(e){return e.length}function zi(e,t){return t.push(e),e}var Li=1,Fi=1,Bi=0,Vi=0,$i=0,Hi="";function Wi(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Li,column:Fi,length:s,return:""}}function Ui(e,t){return Ti(Wi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gi(){return $i=Vi>0?Ni(Hi,--Vi):0,Fi--,10===$i&&(Fi=1,Li--),$i}function Ki(){return $i=Vi<Bi?Ni(Hi,Vi++):0,Fi++,10===$i&&(Fi=1,Li++),$i}function Yi(){return Ni(Hi,Vi)}function qi(){return Vi}function Xi(e,t){return Ai(Hi,e,t)}function Zi(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 Ji(e){return Li=Fi=1,Bi=Di(Hi=e),Vi=0,[]}function Qi(e){return Hi="",e}function es(e){return Ii(Xi(Vi-1,rs(91===e?e+2:40===e?e+1:e)))}function ts(e){for(;($i=Yi())&&$i<33;)Ki();return Zi(e)>2||Zi($i)>3?"":" "}function ns(e,t){for(;--t&&Ki()&&!($i<48||$i>102||$i>57&&$i<65||$i>70&&$i<97););return Xi(e,qi()+(t<6&&32==Yi()&&32==Ki()))}function rs(e){for(;Ki();)switch($i){case e:return Vi;case 34:case 39:34!==e&&39!==e&&rs($i);break;case 40:41===e&&rs(e);break;case 92:Ki()}return Vi}function os(e,t){for(;Ki()&&e+$i!==57&&(e+$i!==84||47!==Yi()););return"/*"+Xi(t,Vi-1)+"*"+Pi(47===e?e:Ki())}function is(e){for(;!Zi(Yi());)Ki();return Xi(e,Vi)}var ss="-ms-",as="-moz-",ls="-webkit-",cs="comm",us="rule",ds="decl",ps="@keyframes";function hs(e,t){for(var n="",r=Oi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fs(e,t,n,r){switch(e.type){case"@import":case ds:return e.return=e.return||e.value;case cs:return"";case ps:return e.return=e.value+"{"+hs(e.children,r)+"}";case us:e.value=e.props.join(",")}return Di(n=hs(e.children,r))?e.return=e.value+"{"+n+"}":""}function ms(e){return Qi(gs("",null,null,null,[""],e=Ji(e),0,[0],e))}function gs(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,m=1,g=1,v=1,b=0,x="",y=o,w=i,_=r,S=x;g;)switch(f=b,b=Ki()){case 40:if(108!=f&&58==Ni(S,d-1)){-1!=Ri(S+=Mi(es(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=es(b);break;case 9:case 10:case 13:case 32:S+=ts(f);break;case 92:S+=ns(qi()-1,7);continue;case 47:switch(Yi()){case 42:case 47:zi(bs(os(Ki(),qi()),t,n),l);break;default:S+="/"}break;case 123*m:a[c++]=Di(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:h>0&&Di(S)-d&&zi(h>32?xs(S+";",r,n,d-1):xs(Mi(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(zi(_=vs(S,t,n,c,u,o,a,x,y=[],w=[],d),i),123===b)if(0===u)gs(S,t,_,_,y,i,d,a,w);else switch(99===p&&110===Ni(S,3)?100:p){case 100:case 109:case 115:gs(e,_,_,r&&zi(vs(e,_,_,0,0,o,a,x,o,y=[],d),w),o,w,d,a,r?y:w);break;default:gs(S,_,_,_,[""],w,0,a,w)}}c=u=h=0,m=v=1,x=S="",d=s;break;case 58:d=1+Di(S),h=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Gi())continue;switch(S+=Pi(b),b*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Di(S)-1)*v,v=1;break;case 64:45===Yi()&&(S+=es(Ki())),p=Yi(),u=d=Di(x=S+=is(qi())),b++;break;case 45:45===f&&2==Di(S)&&(m=0)}}return i}function vs(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Oi(p),f=0,m=0,g=0;f<r;++f)for(var v=0,b=Ai(e,d+1,d=Ei(m=s[f])),x=e;v<h;++v)(x=Ii(m>0?p[v]+" "+b:Mi(b,/&\f/g,p[v])))&&(l[g++]=x);return Wi(e,t,n,0===o?us:a,l,c,u)}function bs(e,t,n){return Wi(e,t,n,cs,Pi($i),Ai(e,2,-2),0)}function xs(e,t,n,r){return Wi(e,t,n,ds,Ai(e,0,r),Ai(e,r+1,-1),r)}var ys=function(e,t,n){for(var r=0,o=0;r=o,o=Yi(),38===r&&12===o&&(t[n]=1),!Zi(o);)Ki();return Xi(e,Vi)},ws=function(e,t){return Qi(function(e,t){var n=-1,r=44;do{switch(Zi(r)){case 0:38===r&&12===Yi()&&(t[n]=1),e[n]+=ys(Vi-1,t,n);break;case 2:e[n]+=es(r);break;case 4:if(44===r){e[++n]=58===Yi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Pi(r)}}while(r=Ki());return e}(Ji(e),t))},_s=new WeakMap,Ss=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)||_s.get(n))&&!r){_s.set(e,!0);for(var o=[],i=ws(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},Cs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ks(e,t){switch(function(e,t){return 45^Ni(e,0)?(((t<<2^Ni(e,0))<<2^Ni(e,1))<<2^Ni(e,2))<<2^Ni(e,3):0}(e,t)){case 5103:return ls+"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 ls+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ls+e+as+e+ss+e+e;case 6828:case 4268:return ls+e+ss+e+e;case 6165:return ls+e+ss+"flex-"+e+e;case 5187:return ls+e+Mi(e,/(\w+).+(:[^]+)/,ls+"box-$1$2"+ss+"flex-$1$2")+e;case 5443:return ls+e+ss+"flex-item-"+Mi(e,/flex-|-self/,"")+e;case 4675:return ls+e+ss+"flex-line-pack"+Mi(e,/align-content|flex-|-self/,"")+e;case 5548:return ls+e+ss+Mi(e,"shrink","negative")+e;case 5292:return ls+e+ss+Mi(e,"basis","preferred-size")+e;case 6060:return ls+"box-"+Mi(e,"-grow","")+ls+e+ss+Mi(e,"grow","positive")+e;case 4554:return ls+Mi(e,/([^-])(transform)/g,"$1"+ls+"$2")+e;case 6187:return Mi(Mi(Mi(e,/(zoom-|grab)/,ls+"$1"),/(image-set)/,ls+"$1"),e,"")+e;case 5495:case 3959:return Mi(e,/(image-set\([^]*)/,ls+"$1$`$1");case 4968:return Mi(Mi(e,/(.+:)(flex-)?(.*)/,ls+"box-pack:$3"+ss+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ls+e+e;case 4095:case 3583:case 4068:case 2532:return Mi(e,/(.+)-inline(.+)/,ls+"$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(Di(e)-1-t>6)switch(Ni(e,t+1)){case 109:if(45!==Ni(e,t+4))break;case 102:return Mi(e,/(.+:)(.+)-([^]+)/,"$1"+ls+"$2-$3$1"+as+(108==Ni(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ri(e,"stretch")?ks(Mi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ni(e,t+1))break;case 6444:switch(Ni(e,Di(e)-3-(~Ri(e,"!important")&&10))){case 107:return Mi(e,":",":"+ls)+e;case 101:return Mi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ls+(45===Ni(e,14)?"inline-":"")+"box$3$1"+ls+"$2$3$1"+ss+"$2box$3")+e}break;case 5936:switch(Ni(e,t+11)){case 114:return ls+e+ss+Mi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ls+e+ss+Mi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ls+e+ss+Mi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ls+e+ss+e+e}return e}var js=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ds:e.return=ks(e.value,e.length);break;case ps:return hs([Ui(e,{value:Mi(e.value,"@","@"+ls)})],r);case us:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hs([Ui(e,{props:[Mi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return hs([Ui(e,{props:[Mi(t,/:(plac\w+)/,":"+ls+"input-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,":-moz-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,ss+"input-$1")]})],r)}return""}))}}];const Es=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=e.stylisPlugins||js;var o,i,s={},a=[];o=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++)s[t[n]]=!0;a.push(e)}));var l,c,u,d,p=[fs,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[Ss,Cs].concat(r,p),u=Oi(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){hs(ms(e),h)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ji({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(a),f};const Ps=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)};const Ts={animationIterationCount: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,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 Is(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ms=/[A-Z]|^ms/g,Rs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ns=function(e){return 45===e.charCodeAt(1)},As=function(e){return null!=e&&"boolean"!=typeof e},Ds=Is((function(e){return Ns(e)?e:e.replace(Ms,"-$&").toLowerCase()})),Os=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Rs,(function(e,t,n){return Ls={name:t,styles:n,next:Ls},t}))}return 1===Ts[e]||Ns(e)||"number"!=typeof t||0===t?t:t+"px"};function zs(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ls={name:n.name,styles:n.styles,next:Ls},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ls={name:r.name,styles:r.styles,next:Ls},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zs(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":As(s)&&(r+=Ds(i)+":"+Os(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=zs(e,t,s);switch(i){case"animation":case"animationName":r+=Ds(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var l=0;l<s.length;l++)As(s[l])&&(r+=Ds(i)+":"+Os(i,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ls,i=n(e);return Ls=o,zs(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var Ls,Fs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Bs=function(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="";Ls=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=zs(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=zs(n,t,e[s]),r&&(o+=i[s]);Fs.lastIndex=0;for(var a,l="";null!==(a=Fs.exec(o));)l+="-"+a[1];return{name:Ps(o)+l,styles:o,next:Ls}},Vs=!!c.useInsertionEffect&&c.useInsertionEffect,$s=Vs||function(e){return e()},Hs=(0,c.createContext)("undefined"!=typeof HTMLElement?Es({key:"css"}):null);var Ws=Hs.Provider,Us=function(e){return(0,c.forwardRef)((function(t,n){var r=(0,c.useContext)(Hs);return e(t,r,n)}))},Gs=(0,c.createContext)({});function Ks(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ys=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},qs=function(e,t,n){Ys(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 Xs(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Zs(e,t,n){var r=[],o=Ks(e,r,n);return r.length<2?n:o+t(r)}var Js=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 s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};const Qs=function(e){var t=Es(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Bs(n,t.registered,void 0);return qs(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Zs(t.registered,n,Js(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Bs(n,t.registered);Xs(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Bs(n,t.registered),i="animation-"+o.name;return Xs(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ks.bind(null,t.registered),merge:Zs.bind(null,t.registered,n)}};var ea=Qs({key:"css"}),ta=(ea.flush,ea.hydrate,ea.cx);ea.merge,ea.getRegisteredStyles,ea.injectGlobal,ea.keyframes,ea.css,ea.sheet,ea.cache;const na=()=>{const e=(0,c.useContext)(Hs),t=(0,Uo.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return ta(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(qs(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function ra(e,t){const n=pi(),r=n?.[t]||{},o={[mi]:!0,...(i=t,{[fi]:i})};var i;const{_overrides:s,...a}=r,l=Object.entries(a).length?Object.assign({},a,e):e,c=na()(ki(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in s)o[e]=s[e];return void 0!==u&&(o.children=u),o.className=c,o}function oa(e,t){return sa(e,t,{forwardsRef:!0})}function ia(e,t){return sa(e,t)}function sa(e,t,n){const r=n?.forwardsRef?(0,Uo.forwardRef)(e):e;let o=r[gi]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[gi]:[...new Set(o)],displayName:t,selector:`.${ki(t)}`})}function aa(e){if(!e)return[];let t=[];return e[gi]&&(t=e[gi]),e.type&&e.type[gi]&&(t=e.type[gi]),t}function la(e,t){return!!e&&("string"==typeof t?aa(e).includes(t):!!Array.isArray(t)&&t.some((t=>aa(e).includes(t))))}const ca={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 ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}function da(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pa=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,ha=da((function(e){return pa.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),fa=function(e){return"theme"!==e},ma=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ha:fa},ga=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},va=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ys(t,n,r);$s((function(){return qs(t,n,r)}));return null};const ba=function e(t,n){var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=ga(t,n,i),l=a||ma(s),u=!l("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{0,p.push(d[0][0]);for(var h=d.length,f=1;f<h;f++)p.push(d[f],d[0][f])}var m=Us((function(e,t,n){var r=u&&e.as||s,i="",d=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=(0,c.useContext)(Gs)}"string"==typeof e.className?i=Ks(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=Bs(p.concat(d),t.registered,h);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===a?ma(r):l,v={};for(var b in e)u&&"as"===b||g(b)&&(v[b]=e[b]);return v.className=i,v.ref=n,(0,c.createElement)(c.Fragment,null,(0,c.createElement)(va,{cache:t,serialized:m,isStringTag:"string"==typeof r}),(0,c.createElement)(r,v))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=p,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,ua({},n,r,{shouldForwardProp:ga(m,r,!0)})).apply(void 0,p)},m}},xa=ba("div",{target:"e19lxcc00"})("");const ya=Object.assign((0,Uo.forwardRef)((function({as:e,...t},n){return(0,ze.jsx)(xa,{as:e,ref:n,...t})})),{selector:".components-view"});const wa=oa((function(e,t){const{style:n,...r}=ra(e,"VisuallyHidden");return(0,ze.jsx)(ya,{ref:t,...r,style:{...ca,...n||{}}})}),"VisuallyHidden"),_a=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],Sa={"top left":(0,a.__)("Top Left"),"top center":(0,a.__)("Top Center"),"top right":(0,a.__)("Top Right"),"center left":(0,a.__)("Center Left"),"center center":(0,a.__)("Center"),center:(0,a.__)("Center"),"center right":(0,a.__)("Center Right"),"bottom left":(0,a.__)("Bottom Left"),"bottom center":(0,a.__)("Bottom Center"),"bottom right":(0,a.__)("Bottom Right")},Ca=_a.flat();function ka(e){const t="center"===e?"center center":e,n=t?.replace("-"," ");return Ca.includes(n)?n:void 0}function ja(e,t){const n=ka(t);if(!n)return;return`${e}-${n.replace(" ","-")}`}o(1880);function Ea(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bs(t)}var Pa=function(){var e=Ea.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_"}}};const Ta="#fff",Ia={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Ma={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, ${Ta})`,background:`var(--wp-components-color-background, ${Ta})`,foreground:`var(--wp-components-color-foreground, ${Ia[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Ta})`,gray:{900:`var(--wp-components-color-foreground, ${Ia[900]})`,800:`var(--wp-components-color-gray-800, ${Ia[800]})`,700:`var(--wp-components-color-gray-700, ${Ia[700]})`,600:`var(--wp-components-color-gray-600, ${Ia[600]})`,400:`var(--wp-components-color-gray-400, ${Ia[400]})`,300:`var(--wp-components-color-gray-300, ${Ia[300]})`,200:`var(--wp-components-color-gray-200, ${Ia[200]})`,100:`var(--wp-components-color-gray-100, ${Ia[100]})`}},Ra={background:Ma.background,backgroundDisabled:Ma.gray[100],border:Ma.gray[600],borderHover:Ma.gray[700],borderFocus:Ma.accent,borderDisabled:Ma.gray[400],textDisabled:Ma.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Ma.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Ma.background}, transparent 35%)`},Na=Object.freeze({gray:Ia,white:Ta,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Ma,ui:Ra});var Aa={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const Da=()=>Aa,Oa=({size:e=92})=>Ea("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;",""),za=ba("div",{target:"ecapk1j3"})(Da,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",Oa,";"),La=ba("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Fa=e=>Ea("background:currentColor;box-sizing:border-box;display:grid;margin:auto;@media not ( prefers-reduced-motion ){transition:all 120ms linear;}",(({isActive:e})=>Ea("box-shadow:",e?`0 0 0 2px ${Na.gray[900]}`:null,";color:",e?Na.gray[900]:Na.gray[400],";*:hover>&{color:",e?Na.gray[900]:Na.theme.accent,";}",""))(e),";",""),Ba=ba("span",{target:"ecapk1j1"})("height:6px;width:6px;",Fa,";"),Va=ba("span",{target:"ecapk1j0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function $a({id:e,isActive:t=!1,value:n,...r}){const o=Sa[n];return(0,ze.jsx)(ri,{text:o,children:(0,ze.jsxs)(Kt,{id:e,render:(0,ze.jsx)(Va,{...r,role:"gridcell"}),children:[(0,ze.jsx)(wa,{children:n}),(0,ze.jsx)(Ba,{isActive:t,role:"presentation"})]})})}function Ha(e,t,n){return ke(t,[n.store]),$t(e,n,"items","setItems"),e}function Wa(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,s=o.element;return i===s?0:i&&s?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,s)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function Ua(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=V(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:V(null==n?void 0:n.renderedItems,[])},s=null==(a=e.store)?void 0:a.__unstablePrivateStore;var a;const l=It({items:r,renderedItems:i.renderedItems},s),c=It(i,e.store),u=e=>{const t=Wa(e);l.setState("renderedItems",t),c.setState("renderedItems",t)};Mt(c,(()=>Rt(l))),Mt(l,(()=>Dt(l,["items"],(e=>{c.setState("items",e.items)})))),Mt(l,(()=>Dt(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return G(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const s=I(I({},r),e);i[n]=s,o.set(e.id,s)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const s=t.slice();return s[i]=r,o.set(e.id,r),s}))}},p=e=>d(e,(e=>l.setState("items",e)),!0);return M(I({},c),{registerItem:p,renderItem:e=>O(p(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=c.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Ga(e){const t=[];for(const n of e)t.push(...n);return t}function Ka(e){return e.slice().reverse()}var Ya={id:null};function qa(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Xa(e,t){return e.filter((e=>e.rowId===t))}function Za(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Ja(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Qa(e,t,n){const r=Ja(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?qa(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function el(e){const t=Za(e),n=Ja(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(M(I({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function tl(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Ua(e),o=V(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=It(M(I({},r.getState()),{activeId:o,baseElement:V(null==n?void 0:n.baseElement,null),includesBaseElement:V(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:V(null==n?void 0:n.moves,0),orientation:V(e.orientation,null==n?void 0:n.orientation,"both"),rtl:V(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:V(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:V(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:V(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Mt(i,(()=>At(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=qa(e.renderedItems))?void 0:n.id}))}))));const s=(e,t,n,r)=>{var o,s;const{activeId:a,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),p=l&&"vertical"!==t?Ka(e):e;if(null==a)return null==(o=qa(p))?void 0:o.id;const h=p.find((e=>e.id===a));if(!h)return null==(s=qa(p))?void 0:s.id;const f=!!h.rowId,m=p.indexOf(h),g=p.slice(m+1),v=Xa(g,h.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,a),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(f?t||"horizontal":t),x=c&&c!==b,y=f&&u&&u!==b;if(n=n||!f&&x&&d,x){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Ya]:[],...e.slice(0,r)]}(y&&!n?p:Xa(p,h.rowId),a,n),t=qa(e,a);return null==t?void 0:t.id}if(y){const e=qa(n?v:g,a);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=qa(v,a);return!w&&n?null:null==w?void 0:w.id};return M(I(I({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=qa(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=qa(Ka(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return s(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),a=!!!(null==(t=qa(n))?void 0:t.rowId)&&o;return s(Ka(n),r,a,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:a}=i.getState(),l=r&&!e,c=el(Ga(Qa(Za(n),t,l)));return s(c,"vertical",o&&"horizontal"!==o&&a,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),a=r&&!e,l=el(Ka(Ga(Qa(Za(n),t,a))));return s(l,"vertical",o,e)}})}function nl(e,t,n){return $t(e=Ha(e,t,n),n,"activeId","setActiveId"),$t(e,n,"includesBaseElement"),$t(e,n,"virtualFocus"),$t(e,n,"orientation"),$t(e,n,"rtl"),$t(e,n,"focusLoop"),$t(e,n,"focusWrap"),$t(e,n,"focusShift"),e}function rl(e={}){const[t,n]=Ht(tl,e);return nl(t,n,e)}function ol(e,t,n){return we((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!ce(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!te(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),s=null==(o=xt(e,i.activeId))?void 0:o.element;if(!s)return;const a=r,{view:l}=a,c=_(a,["view"]);s!==(null==n?void 0:n.current)&&s.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(s,r.type,c)||r.preventDefault(),r.currentTarget.contains(s)&&r.stopPropagation()}))}var il=Ve((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,s=_(t,["store","composite","focusOnMove","moveOnKeyPress"]);const a=Ct();L(n=n||a,!1);const l=(0,c.useRef)(null),u=function(e){const[t,n]=(0,c.useState)(!1),r=(0,c.useCallback)((()=>n(!0)),[]),o=e.useState((t=>xt(e,t.activeId)));return(0,c.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),d=n.useState("moves");(0,c.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=xt(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(I({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[n,d,r,o]),be((()=>{if(!n)return;if(!d)return;if(!r)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=l.current;l.current=null,o&&ue(o,{relatedTarget:e}),Ze(e)||e.focus()}),[n,d,r]);const p=n.useState("activeId"),h=n.useState("virtualFocus");be((()=>{var e;if(!n)return;if(!r)return;if(!h)return;const t=l.current;if(l.current=null,!t)return;const o=(null==(e=xt(n,p))?void 0:e.element)||K(t);o!==t&&ue(t,{relatedTarget:o})}),[n,p,h,r]);const f=ol(n,s.onKeyDownCapture,l),m=ol(n,s.onKeyUpCapture,l),g=s.onFocusCapture,v=we((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[yt];return delete e[yt],t}(e.currentTarget);ce(e)&&o&&(e.stopPropagation(),l.current=r)})),b=s.onFocus,x=we((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?ce(e)&&!wt(n,t)&&queueMicrotask(u):ce(e)&&n.setActiveId(null)})),S=s.onBlurCapture,C=we((e=>{var t;if(null==S||S(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=xt(n,o))?void 0:t.element,s=e.relatedTarget,a=wt(n,s),c=l.current;if(l.current=null,ce(e)&&a)s===i?c&&c!==s&&ue(c,e):i?ue(i,e):c&&ue(c,e),e.stopPropagation();else{!wt(n,e.target)&&i&&ue(i,e)}})),k=s.onKeyDown,j=Ee(i),E=we((e=>{var t;if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return;const{orientation:r,items:o,renderedItems:i,activeId:s}=n.getState(),a=xt(n,s);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(i);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&te(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(Ga(Ka(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},p=d[e.key];if(p){const t=p();if(void 0!==t){if(!j(e))return;e.preventDefault(),n.move(t)}}}));s=Pe(s,(e=>(0,ze.jsx)(kt,{value:n,children:e})),[n]);const P=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=xt(n,e.activeId))?void 0:t.id}));s=w(y({"aria-activedescendant":P},s),{ref:_e(r?n.setBaseElement:null,s.ref),onKeyDownCapture:f,onKeyUpCapture:m,onFocusCapture:v,onFocus:x,onBlurCapture:C,onKeyDown:E});const T=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return s=ct(y({focusable:T},s))})),sl=Le((e=>Be("div",il(e))));var al=Ve((e=>{var t=e,{store:n,"aria-setsize":r,"aria-posinset":o}=t,i=_(t,["store","aria-setsize","aria-posinset"]);const s=St();L(n=n||s,!1);const a=Se(i.id),l=n.useState((e=>e.baseElement||void 0)),u=(0,c.useMemo)((()=>({id:a,baseElement:l,ariaSetSize:r,ariaPosInSet:o})),[a,l,r,o]);return i=Pe(i,(e=>(0,ze.jsx)(Pt.Provider,{value:u,children:e})),[u]),i=y({id:a},i)})),ll=Le((e=>Be("div",al(e))));const cl=()=>Ea({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"",""),ul=({disablePointerEvents:e})=>Ea({pointerEvents:e?"none":void 0},"",""),dl=ba("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",Da,";",cl,";",ul,";"),pl=({isActive:e})=>Ea("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}",""),hl=ba("span",{target:"erowt50"})("height:2px;width:2px;",Fa,";",pl,";"),fl=Va;const ml=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const a=function(e="center"){const t=ka(e);if(!t)return;const n=Ca.indexOf(t);return n>-1?n:void 0}(o),l=(n/24).toFixed(2),c=s("component-alignment-matrix-control-icon",e),u={...r,transform:`scale(${l})`};return(0,ze.jsx)(dl,{...i,className:c,disablePointerEvents:t,role:"presentation",style:u,children:Ca.map(((e,t)=>{const n=a===t;return(0,ze.jsx)(fl,{children:(0,ze.jsx)(hl,{isActive:n})},e)}))})};function gl({className:e,id:t,label:n=(0,a.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i,width:c=92,...u}){const d=(0,l.useInstanceId)(gl,"alignment-matrix-control",t),p=rl({defaultActiveId:ja(d,r),activeId:ja(d,o),setActiveId:e=>{const t=function(e,t){const n=t?.replace(e+"-","");return ka(n)}(d,e);t&&i?.(t)},rtl:(0,a.isRTL)()}),h=p.useState("activeId"),f=s("component-alignment-matrix-control",e);return(0,ze.jsx)(sl,{store:p,render:(0,ze.jsx)(za,{...u,"aria-label":n,className:f,id:d,role:"grid",size:c}),children:_a.map(((e,t)=>(0,ze.jsx)(ll,{render:(0,ze.jsx)(La,{role:"row"}),children:e.map((e=>{const t=ja(d,e),n=t===h;return(0,ze.jsx)($a,{id:t,isActive:n,value:e},e)}))},t)))})}gl.Icon=ml;const vl=gl;function bl(e){return"appear"===e?"top":"left"}function xl(e){if("loading"===e.type)return"components-animate__loading";const{type:t,origin:n=bl(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return s("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?s("components-animate__slide-in","is-from-"+n):void 0}const yl=function({type:e,options:t={},children:n}){return n({className:xl({type:e,...t})})},wl=(0,c.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),_l=(0,c.createContext)({}),Sl=(0,c.createContext)(null),Cl="undefined"!=typeof document,kl=Cl?c.useLayoutEffect:c.useEffect,jl=(0,c.createContext)({strict:!1}),El=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pl="data-"+El("framerAppearId"),Tl=!1,Il=!1;class Ml{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Rl=["read","resolveKeyframes","update","preRender","render","postRender"];function Nl(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Rl.reduce(((e,t)=>(e[t]=function(e){let t=new Ml,n=new Ml,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];s.has(r)&&(a.schedule(r),e()),r(l)}o=!1,i&&(i=!1,a.process(l))}}};return a}((()=>n=!0)),e)),{}),s=e=>{i[e].process(o)},a=()=>{const i=Il?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Rl.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))};return{schedule:Rl.reduce(((t,s)=>{const l=i[s];return t[s]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(a)),l.schedule(t,i,s)),t}),{}),cancel:e=>Rl.forEach((t=>i[t].cancel(e))),state:o,steps:i}}const{schedule:Al,cancel:Dl}=Nl(queueMicrotask,!1);function Ol(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function zl(e,t,n){return(0,c.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ol(n)&&(n.current=r))}),[t])}function Ll(e){return"string"==typeof e||Array.isArray(e)}function Fl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Bl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vl=["initial",...Bl];function $l(e){return Fl(e.animate)||Vl.some((t=>Ll(e[t])))}function Hl(e){return Boolean($l(e)||e.variants)}function Wl(e){const{initial:t,animate:n}=function(e,t){if($l(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ll(t)?t:void 0,animate:Ll(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(_l));return(0,c.useMemo)((()=>({initial:t,animate:n})),[Ul(t),Ul(n)])}function Ul(e){return Array.isArray(e)?e.join(" "):e}const Gl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kl={};for(const e in Gl)Kl[e]={isEnabled:t=>Gl[e].some((e=>!!t[e]))};const Yl=(0,c.createContext)({}),ql=(0,c.createContext)({}),Xl=Symbol.for("motionComponentSymbol");function Zl({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)Kl[t]={...Kl[t],...e[t]}}(e);const i=(0,c.forwardRef)((function(i,s){let a;const l={...(0,c.useContext)(wl),...i,layoutId:Jl(i)},{isStatic:u}=l,d=Wl(i),p=r(i,u);if(!u&&Cl){d.visualElement=function(e,t,n,r){const{visualElement:o}=(0,c.useContext)(_l),i=(0,c.useContext)(jl),s=(0,c.useContext)(Sl),a=(0,c.useContext)(wl).reducedMotion,l=(0,c.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));const u=l.current;(0,c.useInsertionEffect)((()=>{u&&u.update(n,s)}));const d=(0,c.useRef)(Boolean(n[Pl]&&!window.HandoffComplete));return kl((()=>{u&&(Al.render(u.render),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,c.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),u}(o,p,l,t);const n=(0,c.useContext)(ql),r=(0,c.useContext)(jl).strict;d.visualElement&&(a=d.visualElement.loadFeatures(l,r,e,n))}return(0,ze.jsxs)(_l.Provider,{value:d,children:[a&&d.visualElement?(0,ze.jsx)(a,{visualElement:d.visualElement,...l}):null,n(o,i,zl(p,d.visualElement,s),p,u,d.visualElement)]})}));return i[Xl]=o,i}function Jl({layoutId:e}){const t=(0,c.useContext)(Yl).id;return t&&void 0!==e?t+"-"+e:e}function Ql(e){function t(t,n={}){return Zl(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ec=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tc(e){return"string"==typeof e&&!e.includes("-")&&!!(ec.indexOf(e)>-1||/[A-Z]/u.test(e))}const nc={};const rc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(rc);function ic(e,{layout:t,layoutId:n}){return oc.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nc[e]||"opacity"===e)}const sc=e=>Boolean(e&&e.getVelocity),ac={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lc=rc.length;const cc=e=>t=>"string"==typeof t&&t.startsWith(e),uc=cc("--"),dc=cc("var(--"),pc=e=>!!dc(e)&&hc.test(e.split("/*")[0].trim()),hc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,mc=(e,t,n)=>n>t?t:n<e?e:n,gc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},vc={...gc,transform:e=>mc(0,1,e)},bc={...gc,default:1},xc=e=>Math.round(1e5*e)/1e5,yc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,wc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_c=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Sc(e){return"string"==typeof e}const Cc=e=>({test:t=>Sc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),kc=Cc("deg"),jc=Cc("%"),Ec=Cc("px"),Pc=Cc("vh"),Tc=Cc("vw"),Ic={...jc,parse:e=>jc.parse(e)/100,transform:e=>jc.transform(100*e)},Mc={...gc,transform:Math.round},Rc={borderWidth:Ec,borderTopWidth:Ec,borderRightWidth:Ec,borderBottomWidth:Ec,borderLeftWidth:Ec,borderRadius:Ec,radius:Ec,borderTopLeftRadius:Ec,borderTopRightRadius:Ec,borderBottomRightRadius:Ec,borderBottomLeftRadius:Ec,width:Ec,maxWidth:Ec,height:Ec,maxHeight:Ec,size:Ec,top:Ec,right:Ec,bottom:Ec,left:Ec,padding:Ec,paddingTop:Ec,paddingRight:Ec,paddingBottom:Ec,paddingLeft:Ec,margin:Ec,marginTop:Ec,marginRight:Ec,marginBottom:Ec,marginLeft:Ec,rotate:kc,rotateX:kc,rotateY:kc,rotateZ:kc,scale:bc,scaleX:bc,scaleY:bc,scaleZ:bc,skew:kc,skewX:kc,skewY:kc,distance:Ec,translateX:Ec,translateY:Ec,translateZ:Ec,x:Ec,y:Ec,z:Ec,perspective:Ec,transformPerspective:Ec,opacity:vc,originX:Ic,originY:Ic,originZ:Ec,zIndex:Mc,backgroundPositionX:Ec,backgroundPositionY:Ec,fillOpacity:vc,strokeOpacity:vc,numOctaves:Mc};function Nc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(uc(e)){i[e]=n;continue}const r=Rc[e],d=fc(n,r);if(oc.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<lc;t++){const n=rc[t];void 0!==e[n]&&(i+=`${ac[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const Ac=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dc(e,t,n){for(const r in t)sc(t[r])||ic(r,n)||(e[r]=t[r])}function Oc(e,t,n){const r={};return Dc(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,c.useMemo)((()=>{const r=Ac();return Nc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),r}function zc(e,t,n){const r={},o=Oc(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Lc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lc.has(e)}let Bc=e=>!Fc(e);try{(Vc=require("@emotion/is-prop-valid").default)&&(Bc=e=>e.startsWith("on")?!Fc(e):Vc(e))}catch(W){}var Vc;function $c(e,t,n){return"string"==typeof e?e:Ec.transform(t+n*e)}const Hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Uc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(Nc(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:f,dimensions:m}=e;h.transform&&(m&&(f.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${$c(t,e.x,e.width)} ${$c(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Hc:Wc;e[i.offset]=Ec.transform(-r);const s=Ec.transform(t),a=Ec.transform(n);e[i.array]=`${s} ${a}`}(h,s,a,l,!1)}const Gc=()=>({...Ac(),attrs:{}}),Kc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Yc(e,t,n,r){const o=(0,c.useMemo)((()=>{const n=Gc();return Uc(n,t,{enableHardwareAcceleration:!1},Kc(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Dc(t,e.style,e),o.style={...t,...o.style}}return o}function qc(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(tc(t)?Yc:zc)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Bc(o)||!0===n&&Fc(o)||!t&&!Fc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==c.Fragment?{...a,...s,ref:r}:{},{children:u}=n,d=(0,c.useMemo)((()=>sc(u)?u.get():u),[u]);return(0,c.createElement)(t,{...l,children:d})}}function Xc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Zc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jc(e,t,n,r){Xc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Zc.has(n)?n:El(n),t.attrs[n])}function Qc(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(sc(o[s])||t.style&&sc(t.style[s])||ic(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function eu(e,t,n){const r=Qc(e,t,n);for(const n in e)if(sc(e[n])||sc(t[n])){r[-1!==rc.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function tu(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function nu(e,t,n,r){if("function"==typeof t){const[o,i]=tu(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=tu(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function ru(e){const t=(0,c.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ou=e=>Array.isArray(e),iu=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),su=e=>ou(e)?e[e.length-1]||0:e;function au(e){const t=sc(e)?e.get():e;return iu(t)?t.toValue():t}const lu=e=>(t,n)=>{const r=(0,c.useContext)(_l),o=(0,c.useContext)(Sl),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:cu(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():ru(i)};function cu(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=au(i[e]);let{initial:s,animate:a}=e;const l=$l(e),c=Hl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!Fl(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=nu(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const uu=e=>e,{schedule:du,cancel:pu,state:hu,steps:fu}=Nl("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:uu,!0),mu={useVisualState:lu({scrapeMotionValuesFromProps:eu,createRenderState:Gc,onMount:(e,t,{renderState:n,latestValues:r})=>{du.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),du.render((()=>{Uc(n,r,{enableHardwareAcceleration:!1},Kc(t.tagName),e.transformTemplate),Jc(t,n)}))}})},gu={useVisualState:lu({scrapeMotionValuesFromProps:Qc,createRenderState:Ac})};function vu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const bu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function xu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const yu=e=>t=>bu(t)&&e(t,xu(t));function wu(e,t,n,r){return vu(e,t,yu(n),r)}const _u=(e,t)=>n=>t(e(n)),Su=(...e)=>e.reduce(_u);function Cu(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const ku=Cu("dragHorizontal"),ju=Cu("dragVertical");function Eu(e){let t=!1;if("y"===e)t=ju();else if("x"===e)t=ku();else{const e=ku(),n=ju();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Pu(){const e=Eu(!0);return!e||(e(),!1)}class Tu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Iu(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return wu(e.current,n,((n,o)=>{if("touch"===n.pointerType||Pu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const s=i[r];s&&du.postRender((()=>s(n,o)))}),{passive:!e.getProps()[r]})}const Mu=(e,t)=>!!t&&(e===t||Mu(e,t.parentElement));function Ru(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,xu(n))}const Nu=new WeakMap,Au=new WeakMap,Du=e=>{const t=Nu.get(e.target);t&&t(e)},Ou=e=>{e.forEach(Du)};function zu(e,t,n){const r=function({root:e,...t}){const n=e||document;Au.has(n)||Au.set(n,{});const r=Au.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ou,{root:e,...t})),r[o]}(t);return Nu.set(e,n),r.observe(e),()=>{Nu.delete(e),r.unobserve(e)}}const Lu={some:0,all:1};const Fu={inView:{Feature:class extends Tu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Lu[r]};return zu(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Tu{constructor(){super(...arguments),this.removeStartListeners=uu,this.removeEndListeners=uu,this.removeAccessibleListeners=uu,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=wu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),i=o||Mu(this.node.current,e.target)?n:r;i&&du.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=wu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Su(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=vu(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=vu(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Ru("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&du.postRender((()=>n(e,t)))}))})),Ru("down",((e,t)=>{this.startPress(e,t)}))})),t=vu(this.node.current,"blur",(()=>{this.isPressing&&Ru("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Su(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&du.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&du.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=wu(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=vu(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Su(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Tu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Su(vu(this.node.current,"focus",(()=>this.onFocus())),vu(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Tu{mount(){this.unmount=Su(Iu(this.node,!0),Iu(this.node,!1))}unmount(){}}}};function Bu(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Vu(e,t,n){const r=e.getProps();return nu(r,t,void 0!==n?n:r.custom,e)}const $u=e=>1e3*e,Hu=e=>e/1e3,Wu={type:"spring",stiffness:500,damping:25,restSpeed:10},Uu={type:"keyframes",duration:.8},Gu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ku=(e,{keyframes:t})=>t.length>2?Uu:oc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Wu:Gu;function Yu(e,t){return e[t]||e.default||e}const qu=!1,Xu=e=>null!==e;function Zu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Xu),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}let Ju;function Qu(){Ju=void 0}const ed={now:()=>(void 0===Ju&&ed.set(hu.isProcessing||Il?hu.timestamp:performance.now()),Ju),set:e=>{Ju=e,queueMicrotask(Qu)}},td=e=>/^0[^.\s]+$/u.test(e);let nd=uu,rd=uu;const od=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),id=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sd(e,t,n=1){rd(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=id.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return od(e)?parseFloat(e):e}return pc(o)?sd(o,t,n+1):o}const ad=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ld=e=>e===gc||e===Ec,cd=(e,t)=>parseFloat(e.split(", ")[t]),ud=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return cd(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?cd(t[1],e):0}},dd=new Set(["x","y","z"]),pd=rc.filter((e=>!dd.has(e)));const hd={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ud(4,13),y:ud(5,14)};hd.translateX=hd.x,hd.translateY=hd.y;const fd=e=>t=>t.test(e),md=[gc,Ec,jc,kc,Tc,Pc,{test:e=>"auto"===e,parse:e=>e}],gd=e=>md.find(fd(e)),vd=new Set;let bd=!1,xd=!1;function yd(){if(xd){const e=Array.from(vd).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return pd.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}xd=!1,bd=!1,vd.forEach((e=>e.complete())),vd.clear()}function wd(){vd.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(xd=!0)}))}class _d{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vd.add(this),bd||(bd=!0,du.read(wd),du.resolveKeyframes(yd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),vd.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,vd.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Sd=(e,t)=>n=>Boolean(Sc(n)&&_c.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Cd=(e,t,n)=>r=>{if(!Sc(r))return r;const[o,i,s,a]=r.match(yc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},kd={...gc,transform:e=>Math.round((e=>mc(0,255,e))(e))},jd={test:Sd("rgb","red"),parse:Cd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kd.transform(e)+", "+kd.transform(t)+", "+kd.transform(n)+", "+xc(vc.transform(r))+")"};const Ed={test:Sd("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:jd.transform},Pd={test:Sd("hsl","hue"),parse:Cd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+jc.transform(xc(t))+", "+jc.transform(xc(n))+", "+xc(vc.transform(r))+")"},Td={test:e=>jd.test(e)||Ed.test(e)||Pd.test(e),parse:e=>jd.test(e)?jd.parse(e):Pd.test(e)?Pd.parse(e):Ed.parse(e),transform:e=>Sc(e)?e:e.hasOwnProperty("red")?jd.transform(e):Pd.transform(e)};const Id="number",Md="color",Rd="var",Nd="var(",Ad="${}",Dd=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Od(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Dd,(e=>(Td.test(e)?(r.color.push(i),o.push(Md),n.push(Td.parse(e))):e.startsWith(Nd)?(r.var.push(i),o.push(Rd),n.push(e)):(r.number.push(i),o.push(Id),n.push(parseFloat(e))),++i,Ad))).split(Ad);return{values:n,split:s,indexes:r,types:o}}function zd(e){return Od(e).values}function Ld(e){const{split:t,types:n}=Od(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Id?xc(e[i]):t===Md?Td.transform(e[i]):e[i]}return o}}const Fd=e=>"number"==typeof e?0:e;const Bd={test:function(e){var t,n;return isNaN(e)&&Sc(e)&&((null===(t=e.match(yc))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(wc))||void 0===n?void 0:n.length)||0)>0},parse:zd,createTransformer:Ld,getAnimatableNone:function(e){const t=zd(e);return Ld(e)(t.map(Fd))}},Vd=new Set(["brightness","contrast","saturate","opacity"]);function $d(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(yc)||[];if(!r)return e;const o=n.replace(r,"");let i=Vd.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Hd=/\b([a-z-]*)\(.*?\)/gu,Wd={...Bd,getAnimatableNone:e=>{const t=e.match(Hd);return t?t.map($d).join(" "):e}},Ud={...Rc,color:Td,backgroundColor:Td,outlineColor:Td,fill:Td,stroke:Td,borderColor:Td,borderTopColor:Td,borderRightColor:Td,borderBottomColor:Td,borderLeftColor:Td,filter:Wd,WebkitFilter:Wd},Gd=e=>Ud[e];function Kd(e,t){let n=Gd(e);return n!==Wd&&(n=Bd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yd=new Set(["auto","none","0"]);class qd extends _d{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){const r=e[n];if("string"==typeof r&&pc(r)){const o=sd(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ad.has(n)||2!==e.length)return;const[r,o]=e,i=gd(r),s=gd(o);if(i!==s)if(ld(i)&&ld(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||td(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Yd.has(t)&&Od(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=Kd(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hd[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=hd[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Xd=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Bd.test(e)&&"0"!==e||e.startsWith("url(")));class Zd{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(wd(),yd()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=Xd(o,t),a=Xd(i,t);return nd(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(qu||!i)return null==a||a(Zu(e,this.options,t)),null==s||s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Jd(e,t){return t?e*(1e3/t):0}const Qd=5;function ep(e,t,n){const r=Math.max(t-Qd,0);return Jd(n-e(r),t-r)}const tp=.001,np=.01,rp=10,op=.05,ip=1;function sp({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;nd(e<=$u(rp),"Spring duration must be 10 seconds or less");let s=1-t;s=mc(op,ip,s),e=mc(np,rp,Hu(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=lp(t,s),l=Math.exp(-o);return tp-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=lp(Math.pow(t,2),s);return(-o(t)+tp>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-tp,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<ap;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=$u(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const ap=12;function lp(e,t){return e*Math.sqrt(1-t*t)}const cp=["duration","bounce"],up=["stiffness","damping","mass"];function dp(e,t){return t.some((t=>void 0!==e[t]))}function pp({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dp(e,up)&&dp(e,cp)){const n=sp(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-Hu(r.velocity||0)}),h=d||0,f=l/(2*Math.sqrt(a*c)),m=i-o,g=Hu(Math.sqrt(a/c)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),f<1){const e=lp(g,f);b=t=>{const n=Math.exp(-f*g*t);return i-n*((h+f*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===f)b=e=>i-Math.exp(-g*e)*(m+(h+g*m)*e);else{const e=g*Math.sqrt(f*f-1);b=t=>{const n=Math.exp(-f*g*t),r=Math.min(e*t,300);return i-n*((h+f*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&u||null,next:e=>{const r=b(e);if(p)s.done=e>=u;else{let o=h;0!==e&&(o=f<1?ep(b,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function hp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let f=n*t;const m=d+f,g=void 0===s?m:s(m);g!==m&&(f=g-d);const v=e=>-f*Math.exp(-e/r),b=e=>g+v(e),x=e=>{const t=v(e),n=b(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,w;const _=e=>{(e=>void 0!==a&&e<a||void 0!==l&&e>l)(p.value)&&(y=e,w=pp({keyframes:[p.value,h(p.value)],velocity:ep(b,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==y||(t=!0,x(e),_(e)),void 0!==y&&e>=y?w.next(e-y):(!t&&x(e),p)}}}const fp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mp=1e-7,gp=12;function vp(e,t,n,r){if(e===t&&n===r)return uu;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=fp(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>mp&&++a<gp);return s}(t,0,1,e,n);return e=>0===e||1===e?e:fp(o(e),t,r)}const bp=vp(.42,0,1,1),xp=vp(0,0,.58,1),yp=vp(.42,0,.58,1),wp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_p=e=>t=>1-e(1-t),Sp=e=>1-Math.sin(Math.acos(e)),Cp=_p(Sp),kp=wp(Sp),jp=vp(.33,1.53,.69,.99),Ep=_p(jp),Pp=wp(Ep),Tp={linear:uu,easeIn:bp,easeInOut:yp,easeOut:xp,circIn:Sp,circInOut:kp,circOut:Cp,backIn:Ep,backInOut:Pp,backOut:jp,anticipate:e=>(e*=2)<1?.5*Ep(e):.5*(2-Math.pow(2,-10*(e-1)))},Ip=e=>{if(Array.isArray(e)){rd(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return vp(t,n,r,o)}return"string"==typeof e?(rd(void 0!==Tp[e],`Invalid easing type '${e}'`),Tp[e]):e},Mp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Rp=(e,t,n)=>e+(t-e)*n;function Np(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ap=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Dp=[Ed,jd,Pd];function Op(e){const t=(e=>Dp.find((t=>t.test(e))))(e);rd(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Pd&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=Np(a,r,e+1/3),i=Np(a,r,e),s=Np(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(n)),n}const zp=(e,t)=>{const n=Op(e),r=Op(t),o={...n};return e=>(o.red=Ap(n.red,r.red,e),o.green=Ap(n.green,r.green,e),o.blue=Ap(n.blue,r.blue,e),o.alpha=Rp(n.alpha,r.alpha,e),jd.transform(o))},Lp=new Set(["none","hidden"]);function Fp(e,t){return n=>n>0?t:e}function Bp(e,t){return n=>Rp(e,t,n)}function Vp(e){return"number"==typeof e?Bp:"string"==typeof e?pc(e)?Fp:Td.test(e)?zp:Wp:Array.isArray(e)?$p:"object"==typeof e?Td.test(e)?zp:Hp:Fp}function $p(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Vp(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Hp(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Vp(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Wp=(e,t)=>{const n=Bd.createTransformer(t),r=Od(e),o=Od(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Lp.has(e)&&!o.values.length||Lp.has(t)&&!r.values.length?function(e,t){return Lp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Su($p(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,o),o.values),n):(nd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Fp(e,t))};function Up(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Rp(e,t,n);return Vp(e)(e,t)}function Gp(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(rd(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Up,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||uu:t;i=Su(e,i)}r.push(i)}return r}(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Mp(e[n],e[n+1],t);return s[n](r)};return n?t=>l(mc(e[0],e[i-1],t)):l}function Kp(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Mp(0,t,r);e.push(Rp(n,1,o))}}(t,e.length-1),t}function Yp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ip):Ip(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Kp(t),e),a=Gp(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||yp)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const qp=e=>{const t=({timestamp:t})=>e(t);return{start:()=>du.update(t,!0),stop:()=>pu(t),now:()=>hu.isProcessing?hu.timestamp:ed.now()}},Xp={decay:hp,inertia:hp,tween:Yp,keyframes:Yp,spring:pp},Zp=e=>e/100;class Jp extends Zd{constructor({KeyframeResolver:e=_d,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:n,motionValue:r,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,i,n,r):this.resolver=new e(o,i,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=Xp[t]||Yp;let a,l;s!==Yp&&"number"!=typeof e[0]&&(a=Su(Zp,Up(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,x=o;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===h?(n=1-n,f&&(n-=f/u)):"mirror"===h&&(x=i)),b=mc(0,1,n)*u}const y=v?{done:!1,value:a[0]}:x.next(b);s&&(y.value=s(y.value));let{done:w}=y;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(y.value=Zu(a,this.options,r)),m&&m(y.value),_&&this.finish(),y}get duration(){const{resolved:e}=this;return e?Hu(e.calculatedDuration):0}get time(){return Hu(this.currentTime)}set time(e){e=$u(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Hu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=qp,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Qp=e=>Array.isArray(e)&&"number"==typeof e[0];function eh(e){return Boolean(!e||"string"==typeof e&&e in nh||Qp(e)||Array.isArray(e)&&e.every(eh))}const th=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:th([0,.65,.55,1]),circOut:th([.55,0,1,.45]),backIn:th([.31,.01,.66,-.59]),backOut:th([.33,1.53,.69,.99])};function rh(e){return oh(e)||nh.easeOut}function oh(e){return e?Qp(e)?th(e):Array.isArray(e)?e.map(rh):nh[e]:void 0}const ih=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),sh=new Set(["opacity","clipPath","filter","transform"]);class ah extends Zd{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new qd(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||"backgroundColor"===e.name||!eh(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:a,...l}=this.options,c=function(e,t){const n=new Jp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,l);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,o=c.times,i=c.ease,s="keyframes"}const c=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=oh(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:o,ease:i});return c.startTime=ed.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(Zu(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Hu(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Hu(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=$u(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return uu;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return uu}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,...l}=this.options,c=new Jp({...l,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),u=$u(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;return ih()&&n&&sh.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const lh=(e,t,n,r={},o,i)=>s=>{const a=Yu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=$u(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...Ku(e,u)}),u.duration&&(u.duration=$u(u.duration)),u.repeatDelay&&(u.repeatDelay=$u(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(qu||Tl)&&(d=!0,u.duration=0,u.delay=0),d&&!i&&void 0!==t.get()){const e=Zu(u.keyframes,a);if(void 0!==e)return void du.update((()=>{u.onUpdate(e),u.onComplete()}))}return!i&&ah.supports(u)?new ah(u):new Jp(u)};function ch(e){return Boolean(sc(e)&&e.add)}function uh(e,t){-1===e.indexOf(t)&&e.push(t)}function dh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ph{constructor(){this.subscriptions=[]}add(e){return uh(this.subscriptions,e),()=>dh(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hh={current:void 0};class fh{constructor(e,t={}){this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=ed.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ed.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ph);const n=this.events[e].add(t);return"change"===e?()=>{n(),du.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return hh.current&&hh.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=ed.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Jd(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mh(e,t){return new fh(e,t)}function gh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mh(n))}function vh({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function bh(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=e.getValue("willChange");r&&(s=r);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||d&&vh(d,t))continue;const a={delay:n,elapsed:0,...Yu(s||{},t)};let p=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[Pl];if(n){const e=window.HandoffAppearAnimations(n,t,r,du);null!==e&&(a.elapsed=e,p=!0)}}r.start(lh(t,r,o,e.shouldReduceMotion&&oc.has(t)?{type:!1}:a,e,p));const h=r.animation;h&&(ch(c)&&(c.add(t),h.then((()=>c.remove(t)))),u.push(h))}return a&&Promise.all(u).then((()=>{du.update((()=>{a&&function(e,t){const n=Vu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)gh(e,t,su(i[t]))}(e,a)}))})),u}function xh(e,t,n={}){var r;const o=Vu(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(bh(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(yh).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(xh(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function yh(e,t){return e.sortNodePosition(t)}const wh=[...Bl].reverse(),_h=Bl.length;function Sh(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>xh(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=xh(e,t,n);else{const o="function"==typeof t?Vu(e,t,n.custom):t;r=Promise.all(bh(e,o,n))}return r.then((()=>{du.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,t,n))))}function Ch(e){let t=Sh(e);const n={animate:jh(!0),whileInView:jh(),whileHover:jh(),whileTap:jh(),whileDrag:jh(),whileFocus:jh(),exit:jh()};let r=!0;const o=t=>(n,r)=>{var o;const i=Vu(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const s=e.getProps(),a=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<_h;t++){const p=wh[t],h=n[p],f=void 0!==s[p]?s[p]:a[p],m=Ll(f),g=p===i?h.isActive:null;!1===g&&(d=t);let v=f===a[p]&&f!==s[p]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...u},!h.isActive&&null===g||!f&&!h.prevProp||Fl(f)||"boolean"==typeof f)continue;let b=kh(h.prevProp,f)||p===i&&h.isActive&&!v&&m||t>d&&m,x=!1;const y=Array.isArray(f)?f:[f];let w=y.reduce(o(p),{});!1===g&&(w={});const{prevResolvedValues:_={}}=h,S={..._,...w},C=t=>{b=!0,c.has(t)&&(x=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ou(t)&&ou(n)?!Bu(t,n):t!==n,r?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=w,h.isActive&&(u={...u,...w}),r&&e.blockInitialAnimation&&(b=!1),!b||v&&!x||l.push(...y.map((e=>({animation:e,options:{type:p}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function kh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Bu(t,e)}function jh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Eh=0;const Ph={animation:{Feature:class extends Tu{constructor(e){super(e),e.animationState||(e.animationState=Ch(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Fl(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Tu{constructor(){super(...arguments),this.id=Eh++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Th=(e,t)=>Math.abs(e-t);class Ih{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Nh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Th(e.x,t.x),r=Th(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=hu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Mh(t,this.transformPagePoint),du.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Nh("pointercancel"===e.type?this.lastMoveEventInfo:Mh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!bu(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Mh(xu(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=hu;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,Nh(i,this.history)),this.removeListeners=Su(wu(this.contextWindow,"pointermove",this.handlePointerMove),wu(this.contextWindow,"pointerup",this.handlePointerUp),wu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),pu(this.updatePoint)}}function Mh(e,t){return t?{point:t(e.point)}:e}function Rh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nh({point:e},t){return{point:e,delta:Rh(e,Dh(t)),offset:Rh(e,Ah(t)),velocity:Oh(t,.1)}}function Ah(e){return e[0]}function Dh(e){return e[e.length-1]}function Oh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Dh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$u(t)));)n--;if(!r)return{x:0,y:0};const i=Hu(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zh(e){return e.max-e.min}function Lh(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fh(e,t,n,r=.5){e.origin=r,e.originPoint=Rp(t.min,t.max,e.origin),e.scale=zh(n)/zh(t),(Lh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Rp(n.min,n.max,e.origin)-e.originPoint,(Lh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bh(e,t,n,r){Fh(e.x,t.x,n.x,r?r.originX:void 0),Fh(e.y,t.y,n.y,r?r.originY:void 0)}function Vh(e,t,n){e.min=n.min+t.min,e.max=e.min+zh(t)}function $h(e,t,n){e.min=t.min-n.min,e.max=e.min+zh(t)}function Hh(e,t,n){$h(e.x,t.x,n.x),$h(e.y,t.y,n.y)}function Wh(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Uh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Gh=.35;function Kh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return"number"==typeof e?e:e[t]||0}const qh=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Xh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Zh(e){return[e("x"),e("y")]}function Jh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qh(e){return void 0===e||1===e}function ef({scale:e,scaleX:t,scaleY:n}){return!Qh(e)||!Qh(t)||!Qh(n)}function tf(e){return ef(e)||nf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nf(e){return rf(e.x)||rf(e.y)}function rf(e){return e&&"0%"!==e}function of(e,t,n){return n+t*(e-n)}function sf(e,t,n,r,o){return void 0!==o&&(e=of(e,o,r)),of(e,n,r)+t}function af(e,t=0,n=1,r,o){e.min=sf(e.min,t,n,r,o),e.max=sf(e.max,t,n,r,o)}function lf(e,{x:t,y:n}){af(e.x,t.translate,t.scale,t.originPoint),af(e.y,n.translate,n.scale,n.originPoint)}function cf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function uf(e,t){e.min=e.min+t,e.max=e.max+t}function df(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Rp(e.min,e.max,i);af(e,t[n],t[r],s,t.scale)}const pf=["x","scaleX","originX"],hf=["y","scaleY","originY"];function ff(e,t){df(e.x,t,pf),df(e.y,t,hf)}function mf(e,t){return Jh(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const gf=({current:e})=>e?e.ownerDocument.defaultView:null,vf=new WeakMap;class bf{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xh(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Ih(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(xu(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zh((e=>{let t=this.getAxisMotionValue(e).get()||0;if(jc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=zh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&du.postRender((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Zh((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:gf(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&du.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!xf(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Rp(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Rp(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&Ol(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Wh(e.x,n,o),y:Wh(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Gh){return!1===e?e=0:!0===e&&(e=Gh),{x:Kh(e,"left","right"),y:Kh(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zh((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ol(e))return!1;const n=e.current;rd(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=mf(e,n),{scroll:o}=t;return o&&(uf(r.x,o.offset.x),uf(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Uh(e.x,t.x),y:Uh(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Jh(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Zh((s=>{if(!xf(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(lh(e,n,0,t,this.visualElement))}stopAnimation(){Zh((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Zh((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Zh((t=>{const{drag:n}=this.getProps();if(!xf(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Rp(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ol(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zh((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=zh(e),o=zh(t);return o>r?n=Mp(t.min,t.max-r,e.min):r>o&&(n=Mp(e.min,e.max-o,t.min)),mc(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Zh((t=>{if(!xf(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Rp(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;vf.set(this.visualElement,this);const e=wu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ol(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=vu(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Zh((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Gh,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function xf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const yf=e=>(t,n)=>{e&&du.postRender((()=>e(t,n)))};const wf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _f(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sf={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ec.test(e))return e;e=parseFloat(e)}return`${_f(e,t.target.x)}% ${_f(e,t.target.y)}%`}},Cf={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Bd.parse(e);if(o.length>5)return r;const i=Bd.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Rp(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class kf extends c.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Ef,Object.assign(nc,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),wf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||du.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Al.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function jf(e){const[t,n]=function(){const e=(0,c.useContext)(Sl);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,c.useId)();return(0,c.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,c.useContext)(Yl);return(0,ze.jsx)(kf,{...e,layoutGroup:r,switchLayoutGroup:(0,c.useContext)(ql),isPresent:t,safeToRemove:n})}const Ef={borderRadius:{...Sf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sf,borderTopRightRadius:Sf,borderBottomLeftRadius:Sf,borderBottomRightRadius:Sf,boxShadow:Cf},Pf=["TopLeft","TopRight","BottomLeft","BottomRight"],Tf=Pf.length,If=e=>"string"==typeof e?parseFloat(e):e,Mf=e=>"number"==typeof e||Ec.test(e);function Rf(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Nf=Df(0,.5,Cp),Af=Df(.5,.95,uu);function Df(e,t,n){return r=>r<e?0:r>t?1:n(Mp(e,t,r))}function Of(e,t){e.min=t.min,e.max=t.max}function zf(e,t){Of(e.x,t.x),Of(e.y,t.y)}function Lf(e,t,n,r,o){return e=of(e-=t,1/n,r),void 0!==o&&(e=of(e,1/o,r)),e}function Ff(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){jc.test(t)&&(t=parseFloat(t),t=Rp(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=Rp(i.min,i.max,r);e===i&&(a-=t),e.min=Lf(e.min,t,n,a,o),e.max=Lf(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Bf=["x","scaleX","originX"],Vf=["y","scaleY","originY"];function $f(e,t,n,r){Ff(e.x,t,Bf,n?n.x:void 0,r?r.x:void 0),Ff(e.y,t,Vf,n?n.y:void 0,r?r.y:void 0)}function Hf(e){return 0===e.translate&&1===e.scale}function Wf(e){return Hf(e.x)&&Hf(e.y)}function Uf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Gf(e){return zh(e.x)/zh(e.y)}class Kf{constructor(){this.members=[]}add(e){uh(this.members,e),e.scheduleRender()}remove(e){if(dh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}const qf=(e,t)=>e.depth-t.depth;class Xf{constructor(){this.children=[],this.isDirty=!1}add(e){uh(this.children,e),this.isDirty=!0}remove(e){dh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qf),this.isDirty=!1,this.children.forEach(e)}}const Zf=["","X","Y","Z"],Jf={visibility:"hidden"};let Qf=0;const em={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tm(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Qf++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,em.totalNodes=em.resolvedTargetDeltas=em.recalculatedProjection=0,this.nodes.forEach(im),this.nodes.forEach(pm),this.nodes.forEach(hm),this.nodes.forEach(sm),e=em,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ph),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=ed.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(pu(r),e(i-t))};return du.read(r,!0),()=>pu(r)}(r,250),wf.hasAnimatedSinceResize&&(wf.hasAnimatedSinceResize=!1,this.nodes.forEach(dm))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||xm,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Uf(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Yu(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||dm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,pu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(fm),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(lm);this.isUpdating||this.nodes.forEach(cm),this.isUpdating=!1,this.nodes.forEach(um),this.nodes.forEach(rm),this.nodes.forEach(om),this.clearAllSnapshots();const e=ed.now();hu.delta=mc(0,1e3/60,e-hu.timestamp),hu.timestamp=e,hu.isProcessing=!0,fu.update.process(hu),fu.preRender.process(hu),fu.render.process(hu),hu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Al.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(am),this.sharedNodes.forEach(mm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,du.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){du.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xh(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Wf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||tf(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),_m((r=n).x),_m(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Xh();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(uf(t.x,n.offset.x),uf(t.y,n.offset.y)),t}removeElementScroll(e){const t=Xh();zf(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){zf(t,e);const{scroll:n}=this.root;n&&(uf(t.x,-n.offset.x),uf(t.y,-n.offset.y))}uf(t.x,o.offset.x),uf(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=Xh();zf(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ff(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tf(r.latestValues)&&ff(n,r.latestValues)}return tf(this.latestValues)&&ff(n,this.latestValues),n}removeTransform(e){const t=Xh();zf(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!tf(n.latestValues))continue;ef(n.latestValues)&&n.updateSnapshot();const r=Xh();zf(r,n.measurePageBox()),$f(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return tf(this.latestValues)&&$f(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=hu.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xh(),this.relativeTargetOrigin=Xh(),Hh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),zf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=Xh(),this.targetWithTransforms=Xh()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Vh(s.x,a.x,l.x),Vh(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):zf(this.target,this.layout.layoutBox),lf(this.target,this.targetDelta)):zf(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xh(),this.relativeTargetOrigin=Xh(),Hh(this.relativeTargetOrigin,this.target,e.target),zf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}em.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ef(this.parent.latestValues)&&!nf(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===hu.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;zf(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ff(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,lf(e,s)),r&&tf(i.latestValues)&&ff(e,i.latestValues))}t.x=cf(t.x),t.y=cf(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Xh());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=qh(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=qh(),this.projectionDeltaWithTransform=qh());const c=this.projectionTransform;Bh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Yf(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),em.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=qh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=Xh(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(bm));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;gm(i.x,e.x,n),gm(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hh(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){vm(e.x,t.x,n.x,r),vm(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Xh()),zf(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Rp(0,void 0!==n.opacity?n.opacity:1,Nf(r)),e.opacityExit=Rp(void 0!==t.opacity?t.opacity:1,0,Af(r))):i&&(e.opacity=Rp(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Tf;o++){const i=`border${Pf[o]}Radius`;let s=Rf(t,i),a=Rf(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Mf(s)===Mf(a)?(e[i]=Math.max(Rp(If(s),If(a),r),0),(jc.test(a)||jc.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Rp(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=du.update((()=>{wf.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=sc(e)?e:mh(e);return r.start(lh("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Sm(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Xh();const t=zh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=zh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}zf(t,n),ff(t,o),Bh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Kf);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&tm("z",e,r,this.animationValues);for(let t=0;t<Zf.length;t++)tm(`rotate${Zf[t]}`,e,r,this.animationValues),tm(`skew${Zf[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jf;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=au(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=au(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!tf(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Yf(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in nc){if(void 0===s[e])continue;const{correct:t,applyTo:n}=nc[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?au(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(lm),this.root.sharedNodes.clear()}}}function rm(e){e.updateLayout()}function om(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Zh((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=zh(r);r.min=t[e].min,r.max=r.min+o})):Sm(o,n.layoutBox,t)&&Zh((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=zh(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=qh();Bh(s,t,n.layoutBox);const a=qh();i?Bh(a,e.applyTransform(r,!0),n.measuredBox):Bh(a,t,n.layoutBox);const l=!Wf(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=Xh();Hh(s,n.layoutBox,o.layoutBox);const a=Xh();Hh(a,t,i.layoutBox),Uf(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function im(e){em.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function am(e){e.clearSnapshot()}function lm(e){e.clearMeasurements()}function cm(e){e.isLayoutDirty=!1}function um(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pm(e){e.resolveTargetDelta()}function hm(e){e.calcProjection()}function fm(e){e.resetSkewAndRotation()}function mm(e){e.removeLeadSnapshot()}function gm(e,t,n){e.translate=Rp(t.translate,0,n),e.scale=Rp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vm(e,t,n,r){e.min=Rp(t.min,n.min,r),e.max=Rp(t.max,n.max,r)}function bm(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const xm={duration:.45,ease:[.4,0,.1,1]},ym=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wm=ym("applewebkit/")&&!ym("chrome/")?Math.round:uu;function _m(e){e.min=wm(e.min),e.max=wm(e.max)}function Sm(e,t,n){return"position"===e||"preserve-aspect"===e&&!Lh(Gf(t),Gf(n),.2)}const Cm=nm({attachResizeListener:(e,t)=>vu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),km={current:void 0},jm=nm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!km.current){const e=new Cm({});e.mount(window),e.setOptions({layoutScroll:!0}),km.current=e}return km.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Em={pan:{Feature:class extends Tu{constructor(){super(...arguments),this.removePointerDownListener=uu}onPointerDown(e){this.session=new Ih(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gf(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yf(e),onStart:yf(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&du.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=wu(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Tu{constructor(e){super(e),this.removeGroupControls=uu,this.removeListeners=uu,this.controls=new bf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uu}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:jm,MeasureLayout:jf}},Pm={current:null},Tm={current:!1};const Im=new WeakMap,Mm=[...md,Td,Bd],Rm=Object.keys(Kl),Nm=Rm.length,Am=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Dm=Vl.length;function Om(e){if(e)return!1!==e.options.allowProjection?e.projection:Om(e.parent)}class zm{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_d,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>du.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=$l(t),this.isVariantNode=Hl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==a[e]&&sc(t)&&(t.set(a[e],!1),ch(c)&&c.add(e))}}mount(e){this.current=e,Im.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Tm.current||function(){if(Tm.current=!0,Cl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pm.current=e.matches;e.addListener(t),t()}else Pm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Pm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;Im.delete(this.current),this.projection&&this.projection.unmount(),pu(this.notifyUpdate),pu(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){const n=oc.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&du.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;for(let e=0;e<Nm;e++){const n=Rm[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=Kl[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection=new i(this.latestValues,t["data-framer-portal-id"]?void 0:Om(this.parent)),this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Ol(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xh()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Am.length;t++){const n=Am[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(sc(i))e.addValue(o,i),ch(r)&&r.add(o);else if(sc(s))e.addValue(o,mh(i,{owner:e})),ch(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,mh(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Dm;e++){const n=Vl[e],r=this.props[n];(Ll(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=mh(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(od(r)||td(r))?r=parseFloat(r):!(e=>Mm.find(fd(e)))(r)&&Bd.test(t)&&(r=Kd(e,t)),this.setBaseTarget(e,sc(r)?r.get():r)),sc(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=nu(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||sc(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new ph),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Lm extends zm{constructor(){super(...arguments),this.KeyframeResolver=qd}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Fm extends Lm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(oc.has(t)){const e=Gd(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(uc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return mf(e,t)}build(e,t,n,r){Nc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Qc(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;sc(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){Xc(e,t,n,r)}}class Bm extends Lm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(oc.has(t)){const e=Gd(t);return e&&e.default||0}return t=Zc.has(t)?t:El(t),e.getAttribute(t)}measureInstanceViewportBox(){return Xh()}scrapeMotionValuesFromProps(e,t,n){return eu(e,t,n)}build(e,t,n,r){Uc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Jc(e,t,0,r)}mount(e){this.isSVGTag=Kc(e.tagName),super.mount(e)}}const Vm=(e,t)=>tc(e)?new Bm(t,{enableHardwareAcceleration:!1}):new Fm(t,{allowProjection:e!==c.Fragment,enableHardwareAcceleration:!0}),$m={...Ph,...Fu,...Em,...{layout:{ProjectionNode:jm,MeasureLayout:jf}}},Hm=Ql(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...tc(e)?mu:gu,preloadedFeatures:n,useRender:qc(t),createVisualElement:r,Component:e}}(e,t,$m,Vm)));function Wm(){const e=(0,c.useRef)(!1);return kl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Um(){const e=Wm(),[t,n]=(0,c.useState)(0),r=(0,c.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,c.useCallback)((()=>du.postRender(r)),[r]),t]}class Gm extends c.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Km({children:e,isPresent:t}){const n=(0,c.useId)(),r=(0,c.useRef)(null),o=(0,c.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,c.useContext)(wl);return(0,c.useInsertionEffect)((()=>{const{width:e,height:s,top:a,left:l}=o.current;if(t||!r.current||!e||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${s}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,ze.jsx)(Gm,{isPresent:t,childRef:r,sizeRef:o,children:c.cloneElement(e,{ref:r})})}const Ym=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ru(qm),l=(0,c.useId)(),u=(0,c.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{a.set(e,!0);for(const e of a.values())if(!e)return;r&&r()},register:e=>(a.set(e,!1),()=>a.delete(e))})),i?[Math.random()]:[n]);return(0,c.useMemo)((()=>{a.forEach(((e,t)=>a.set(t,!1)))}),[n]),c.useEffect((()=>{!n&&!a.size&&r&&r()}),[n]),"popLayout"===s&&(e=(0,ze.jsx)(Km,{isPresent:n,children:e})),(0,ze.jsx)(Sl.Provider,{value:u,children:e})};function qm(){return new Map}const Xm=e=>e.key||"";const Zm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{rd(!o,"Replace exitBeforeEnter with mode='wait'");const a=(0,c.useContext)(Yl).forceRender||Um()[0],l=Wm(),u=function(e){const t=[];return c.Children.forEach(e,(e=>{(0,c.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const p=(0,c.useRef)(new Map).current,h=(0,c.useRef)(d),f=(0,c.useRef)(new Map).current,m=(0,c.useRef)(!0);var g;if(kl((()=>{m.current=!1,function(e,t){e.forEach((e=>{const n=Xm(e);t.set(n,e)}))}(u,f),h.current=d})),g=()=>{m.current=!0,f.clear(),p.clear()},(0,c.useEffect)((()=>()=>g()),[]),m.current)return(0,ze.jsx)(ze.Fragment,{children:d.map((e=>(0,ze.jsx)(Ym,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:s,children:e},Xm(e))))});d=[...d];const v=h.current.map(Xm),b=u.map(Xm),x=v.length;for(let e=0;e<x;e++){const t=v[e];-1!==b.indexOf(t)||p.has(t)||p.set(t,void 0)}return"wait"===s&&p.size&&(d=[]),p.forEach(((e,n)=>{if(-1!==b.indexOf(n))return;const o=f.get(n);if(!o)return;const c=v.indexOf(n);let m=e;if(!m){const e=()=>{p.delete(n);const e=Array.from(f.keys()).filter((e=>!b.includes(e)));if(e.forEach((e=>f.delete(e))),h.current=u.filter((t=>{const r=Xm(t);return r===n||e.includes(r)})),!p.size){if(!1===l.current)return;a(),r&&r()}};m=(0,ze.jsx)(Ym,{isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:s,children:o},Xm(o)),p.set(n,m)}d.splice(c,0,m)})),d=d.map((e=>{const t=e.key;return p.has(t)?e:(0,ze.jsx)(Ym,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:e},Xm(e))})),(0,ze.jsx)(ze.Fragment,{children:p.size?d:d.map((e=>(0,c.cloneElement)(e)))})},Jm=["40em","52em","64em"],Qm=(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>Jm.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Jm.length} breakpoints, got index ${t}`);const[n,r]=(0,Uo.useState)(t);return(0,Uo.useEffect)((()=>{const e=()=>{const e=Jm.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};function eg(e,t={}){const n=Qm(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const tg="4px";function ng(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(${tg} * ${e})`}const rg={name:"zjik7",styles:"display:flex"},og={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},ig={name:"82a6rk",styles:"flex:1"},sg={name:"13nosa1",styles:">*{min-height:0;}"},ag={name:"1pwxzk4",styles:">*{min-width:0;}"};function lg(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:a=!1,...l}=ra(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Ko()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=eg(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=na();return{...l,className:(0,Uo.useMemo)((()=>{const e=Ea({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:a?"wrap":void 0,gap:ng(i),justifyContent:s,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(rg,e,u?sg:ag,n)}),[t,n,d,c,o,i,u,s,a]),isColumn:u}}const cg=(0,Uo.createContext)({flexItemDisplay:void 0}),ug=()=>(0,Uo.useContext)(cg);const dg=oa((function(e,t){const{children:n,isColumn:r,...o}=lg(e);return(0,ze.jsx)(cg.Provider,{value:{flexItemDisplay:r?"block":void 0},children:(0,ze.jsx)(ya,{...o,ref:t,children:n})})}),"Flex");function pg(e){const{className:t,display:n,isBlock:r=!1,...o}=ra(e,"FlexItem"),i={},s=ug().flexItemDisplay;i.Base=Ea({display:n||s},"","");return{...o,className:na()(og,i.Base,r&&ig,t)}}const hg=oa((function(e,t){const n=function(e){return pg({isBlock:!0,...ra(e,"FlexBlock")})}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"FlexBlock"),fg=new RegExp(/-left/g),mg=new RegExp(/-right/g),gg=new RegExp(/Left/g),vg=new RegExp(/Right/g);function bg(e){return"left"===e?"right":"right"===e?"left":fg.test(e)?e.replace(fg,"-right"):mg.test(e)?e.replace(mg,"-left"):gg.test(e)?e.replace(gg,"Right"):vg.test(e)?e.replace(vg,"Left"):e}const xg=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[bg(e),t])));function yg(e={},t){return()=>t?(0,a.isRTL)()?Ea(t,"",""):Ea(e,"",""):(0,a.isRTL)()?Ea(xg(e),"",""):Ea(e,"","")}yg.watch=()=>(0,a.isRTL)();const wg=e=>null!=e;const _g=oa((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:s,marginX:a,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:p,paddingTop:h,paddingX:f,paddingY:m,...g}=ra(e,"Spacer");return{...g,className:na()(wg(n)&&Ea("margin:",ng(n),";",""),wg(l)&&Ea("margin-bottom:",ng(l),";margin-top:",ng(l),";",""),wg(a)&&Ea("margin-left:",ng(a),";margin-right:",ng(a),";",""),wg(s)&&Ea("margin-top:",ng(s),";",""),wg(r)&&Ea("margin-bottom:",ng(r),";",""),wg(o)&&yg({marginLeft:ng(o)})(),wg(i)&&yg({marginRight:ng(i)})(),wg(c)&&Ea("padding:",ng(c),";",""),wg(m)&&Ea("padding-bottom:",ng(m),";padding-top:",ng(m),";",""),wg(f)&&Ea("padding-left:",ng(f),";padding-right:",ng(f),";",""),wg(h)&&Ea("padding-top:",ng(h),";",""),wg(u)&&Ea("padding-bottom:",ng(u),";",""),wg(d)&&yg({paddingLeft:ng(d)})(),wg(p)&&yg({paddingRight:ng(p)})(),t)}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Spacer"),Sg=_g,Cg=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),kg=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M7 11.5h10V13H7z"})});const jg=oa((function(e,t){const n=pg(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"FlexItem");const Eg={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function Pg(e){return null!=e}const Tg=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Ig="…",Mg={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Rg={ellipsis:Ig,ellipsizeMode:Mg.auto,limit:0,numberOfLines:0};function Ng(e="",t){const n={...Rg,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Mg.none)return e;let s,a;switch(o){case Mg.head:s=0,a=i;break;case Mg.middle:s=Math.floor(i/2),a=Math.floor(i/2);break;default:s=i,a=0}const l=o!==Mg.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,s=~~n,a=Pg(r)?r:Ig;return 0===i&&0===s||i>=o||s>=o||i+s>=o?e:0===s?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(o-s)}(e,s,a,r):e;return l}function Ag(e){const{className:t,children:n,ellipsis:r=Ig,ellipsizeMode:o=Mg.auto,limit:i=0,numberOfLines:s=0,...a}=ra(e,"Truncate"),l=na();let c;"string"==typeof n?c=n:"number"==typeof n&&(c=n.toString());const u=c?Ng(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}):n,d=!!c&&o===Mg.auto;return{...a,className:(0,Uo.useMemo)((()=>l(d&&!s&&Eg,d&&!!s&&Ea(1===s?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,s,d]),children:u}}var Dg={grad:.9,turn:360,rad:360/(2*Math.PI)},Og=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},zg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Lg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Fg=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Bg=function(e){return{r:Lg(e.r,0,255),g:Lg(e.g,0,255),b:Lg(e.b,0,255),a:Lg(e.a)}},Vg=function(e){return{r:zg(e.r),g:zg(e.g),b:zg(e.b),a:zg(e.a,3)}},$g=/^#([0-9a-f]{3,8})$/i,Hg=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Wg=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Ug=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},Gg=function(e){return{h:Fg(e.h),s:Lg(e.s,0,100),l:Lg(e.l,0,100),a:Lg(e.a)}},Kg=function(e){return{h:zg(e.h),s:zg(e.s),l:zg(e.l),a:zg(e.a,3)}},Yg=function(e){return Ug((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},qg=function(e){return{h:(t=Wg(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Xg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ev={string:[[function(e){var t=$g.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?zg(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?zg(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Jg.exec(e)||Qg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Bg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Xg.exec(e)||Zg.exec(e);if(!t)return null;var n,r,o=Gg({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Dg[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Yg(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return Og(t)&&Og(n)&&Og(r)?Bg({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!Og(t)||!Og(n)||!Og(r))return null;var s=Gg({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Yg(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Og(t)||!Og(n)||!Og(r))return null;var s=function(e){return{h:Fg(e.h),s:Lg(e.s,0,100),v:Lg(e.v,0,100),a:Lg(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Ug(s)},"hsv"]]},tv=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},nv=function(e){return"string"==typeof e?tv(e.trim(),ev.string):"object"==typeof e&&null!==e?tv(e,ev.object):[null,void 0]},rv=function(e,t){var n=qg(e);return{h:n.h,s:Lg(n.s+100*t,0,100),l:n.l,a:n.a}},ov=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},iv=function(e,t){var n=qg(e);return{h:n.h,s:n.s,l:Lg(n.l+100*t,0,100),a:n.a}},sv=function(){function e(e){this.parsed=nv(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return zg(ov(this.rgba),2)},e.prototype.isDark=function(){return ov(this.rgba)<.5},e.prototype.isLight=function(){return ov(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Vg(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Hg(zg(255*o)):"","#"+Hg(t)+Hg(n)+Hg(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Vg(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Vg(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Kg(qg(this.rgba))},e.prototype.toHslString=function(){return t=(e=Kg(qg(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Wg(this.rgba),{h:zg(e.h),s:zg(e.s),v:zg(e.v),a:zg(e.a,3)};var e},e.prototype.invert=function(){return av({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),av(rv(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),av(rv(this.rgba,-e))},e.prototype.grayscale=function(){return av(rv(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),av(iv(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),av(iv(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?av({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):zg(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=qg(this.rgba);return"number"==typeof e?av({h:e,s:t.s,l:t.l,a:t.a}):zg(t.h)},e.prototype.isEqual=function(e){return this.toHex()===av(e).toHex()},e}(),av=function(e){return e instanceof sv?e:new sv(e)},lv=[],cv=function(e){e.forEach((function(e){lv.indexOf(e)<0&&(e(sv,ev),lv.push(e))}))};function uv(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,s,a=r[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var p in n){var h=(o=l,s=i[p],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));h<c&&(c=h,u=p)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}let dv;cv([uv]);const pv=Ci((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&av(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!dv){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),dv=e}return dv}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function hv(e){const t=function(e){const t=pv(e);return av(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const fv="36px",mv="12px",gv={controlSurfaceColor:Na.white,controlTextActiveColor:Na.theme.accent,controlPaddingX:mv,controlPaddingXLarge:`calc(${mv} * 1.3334)`,controlPaddingXSmall:`calc(${mv} / 1.3334)`,controlBackgroundColor:Na.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Na.theme.accent}`,controlDestructiveBorderColor:Na.alert.red,controlHeight:fv,controlHeightXSmall:`calc( ${fv} * 0.6 )`,controlHeightSmall:`calc( ${fv} * 0.8 )`,controlHeightLarge:`calc( ${fv} * 1.2 )`,controlHeightXLarge:`calc( ${fv} * 1.4 )`},vv={toggleGroupControlBackgroundColor:gv.controlBackgroundColor,toggleGroupControlBorderColor:Na.ui.border,toggleGroupControlBackdropBackgroundColor:gv.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Na.ui.border,toggleGroupControlButtonColorActive:gv.controlBackgroundColor},bv=Object.assign({},gv,vv,{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,radiusBlockUi:"2px",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",cardBorderRadius:"2px",cardPaddingXSmall:`${ng(2)}`,cardPaddingSmall:`${ng(4)}`,cardPaddingMedium:`${ng(4)} ${ng(6)}`,cardPaddingLarge:`${ng(6)} ${ng(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Na.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:Na.white,surfaceColor:Na.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)"});const xv=Ea("color:",Na.gray[900],";line-height:",bv.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),yv={name:"4zleql",styles:"display:block"},wv=Ea("color:",Na.alert.green,";",""),_v=Ea("color:",Na.alert.red,";",""),Sv=Ea("color:",Na.gray[700],";",""),Cv=Ea("mark{background:",Na.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),kv={name:"50zrmy",styles:"text-transform:uppercase"};var jv=o(9664);const Ev=Ci((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Pv=13,Tv={body:Pv,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Iv=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Mv(e=Pv){if(e in Tv)return Mv(Tv[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Pv})`} * ${bv.fontSize})`}function Rv(e=3){if(!Iv.includes(e))return Mv(e);return bv[`fontSizeH${e}`]}var Nv={name:"50zrmy",styles:"text-transform:uppercase"};function Av(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:a,isDestructive:l=!1,display:c,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:p,highlightSanitize:h,isBlock:f=!1,letterSpacing:m,lineHeight:g,optimizeReadabilityFor:v,size:b,truncate:x=!1,upperCase:y=!1,variant:w,weight:_=bv.fontWeight,...S}=ra(t,"Text");let C=o;const k=Array.isArray(p),j="caption"===b;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");C=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:a="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:p="",unhighlightStyle:h}){if(!i)return null;if("string"!=typeof i)return i;const f=i,m=(0,jv.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:u,searchWords:d,textToHighlight:f}),g=c;let v,b=-1,x="";const y=m.map(((r,i)=>{const s=f.substr(r.start,r.end-r.start);if(r.highlight){let r;b++,r="object"==typeof a?o?a[s]:(a=Ev(a))[s.toLowerCase()]:a;const c=b===+t;x=`${r} ${c?e:""}`,v=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:s,className:x,key:i,style:v};return"string"!=typeof g&&(u.highlightIndex=b),(0,Uo.createElement)(g,u)}return(0,Uo.createElement)("span",{children:s,className:p,key:i,style:h})}));return y}({autoEscape:u,children:o,caseSensitive:d,searchWords:p,sanitize:h})}const E=na();let P;!0===x&&(P="auto"),!1===x&&(P="none");const T=Ag({...S,className:(0,Uo.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${bv.controlHeight} + ${ng(2)})`;switch(e){case"large":n=`calc(${bv.controlHeightLarge} + ${ng(2)})`;break;case"small":n=`calc(${bv.controlHeightSmall} + ${ng(2)})`;break;case"xSmall":n=`calc(${bv.controlHeightXSmall} + ${ng(2)})`}return n}(n,g);if(t.Base=Ea({color:s,display:c,fontSize:Mv(b),fontWeight:_,lineHeight:o,letterSpacing:m,textAlign:r},"",""),t.upperCase=Nv,t.optimalTextColor=null,v){const e="dark"===hv(v);t.optimalTextColor=Ea(e?{color:Na.gray[900]}:{color:Na.white},"","")}return E(xv,t.Base,t.optimalTextColor,l&&_v,!!k&&Cv,f&&yv,j&&Sv,w&&e[w],y&&t.upperCase,i)}),[n,r,i,s,E,c,f,j,l,k,m,g,v,b,y,w,_]),children:o,ellipsizeMode:a||P});return!x&&Array.isArray(o)&&(C=Uo.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return la(e,["Link"])?(0,Uo.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...T,children:x?T.children:C}}const Dv=oa((function(e,t){const n=Av(e);return(0,ze.jsx)(ya,{as:"span",...n,ref:t})}),"Text");const Ov={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};const zv=ba("span",{target:"em5sgkm7"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Lv=ba("span",{target:"em5sgkm6"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),Fv=({disabled:e,isBorderless:t})=>t?"transparent":e?Na.ui.borderDisabled:Na.ui.border,Bv=ba("div",{target:"em5sgkm5"})("&&&{box-sizing:border-box;border-color:",Fv,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",yg({paddingLeft:2}),";}"),Vv=ba(dg,{target:"em5sgkm4"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;&:focus-within:not( :has( :is( ",zv,", ",Lv," ):focus-within ) ){",Bv,"{border-color:",Na.ui.borderFocus,";box-shadow:",bv.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),$v=({disabled:e})=>Ea({backgroundColor:e?Na.ui.backgroundDisabled:Na.ui.background},"","");var Hv={name:"1d3w5wq",styles:"width:100%"};const Wv=({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Ea("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):Hv,Uv=ba("div",{target:"em5sgkm3"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",$v," ",Wv,";"),Gv=({disabled:e})=>e?Ea({color:Na.ui.textDisabled},"",""):"",Kv=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?Ea("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},Yv=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:ng(4),paddingRight:ng(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:ng(2),paddingRight:ng(2)},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:ng(2),paddingRight:ng(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:ng(4),paddingRight:ng(4)}};return t||(n.default=n.compact),n[e]||n.default},qv=e=>Ea(Yv(e),"",""),Xv=({paddingInlineStart:e,paddingInlineEnd:t})=>Ea({paddingInlineStart:e,paddingInlineEnd:t},"",""),Zv=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=Ea("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=Ea("&:active{cursor:",t,";}","")),Ea(n," ",r,";","")},Jv=ba("input",{target:"em5sgkm2"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Na.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",Zv," ",Gv," ",Kv," ",qv," ",Xv," &::-webkit-input-placeholder{line-height:normal;}}"),Qv=ba(Dv,{target:"em5sgkm1"})("&&&{",Ov,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),eb=e=>(0,ze.jsx)(Qv,{...e,as:"label"}),tb=ba(jg,{target:"em5sgkm0"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"});const nb=(0,Uo.memo)((function({disabled:e=!1,isBorderless:t=!1}){return(0,ze.jsx)(Bv,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})})),rb=nb;function ob({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,ze.jsx)(wa,{as:"label",htmlFor:n,children:e}):(0,ze.jsx)(tb,{children:(0,ze.jsx)(eb,{htmlFor:n,...r,children:e})}):null}function ib(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function sb(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function ab(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:s=!1,hideLabelFromVision:a=!1,labelPosition:c,id:u,isBorderless:d=!1,label:p,prefix:h,size:f="default",suffix:m,...g}=ib(ra(e,"InputBase")),v=function(e){const t=(0,l.useInstanceId)(ab);return e||`input-base-control-${t}`}(u),b=a||!p,{paddingLeft:x,paddingRight:y}=Yv({inputSize:f,__next40pxDefaultSize:n}),w=(0,Uo.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:x},InputControlSuffixWrapper:{paddingRight:y}})),[x,y]);return(0,ze.jsxs)(Vv,{...g,...sb(c),className:i,gap:2,ref:t,children:[(0,ze.jsx)(ob,{className:"components-input-control__label",hideLabelFromVision:a,labelPosition:c,htmlFor:v,children:p}),(0,ze.jsxs)(Uv,{__unstableInputWidth:r,className:"components-input-control__container",disabled:s,hideLabel:b,labelPosition:c,children:[(0,ze.jsxs)(hi,{value:w,children:[h&&(0,ze.jsx)(zv,{className:"components-input-control__prefix",children:h}),o,m&&(0,ze.jsx)(Lv,{className:"components-input-control__suffix",children:m})]}),(0,ze.jsx)(rb,{disabled:s,isBorderless:d})]})]})}const lb=oa(ab,"InputBase");const cb={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function ub(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function db(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-ub(t-e,n-t,r)+t:e>n?+ub(e-n,n-t,r)+n:e}function pb(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function hb(e,t,n){return(t=pb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){hb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gb={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function vb(e){return e?e[0].toUpperCase()+e.slice(1):""}const bb=["enter","leave"];function xb(e,t="",n=!1){const r=gb[e],o=r&&r[t]||t;return"on"+vb(e)+vb(o)+(function(e=!1,t){return e&&!bb.includes(t)}(n,o)?"Capture":"")}const yb=["gotpointercapture","lostpointercapture"];function wb(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=yb.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function _b(e){return"touches"in e}function Sb(e){return _b(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Cb(e){return _b(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function kb(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function jb(e){const t=Cb(e);return _b(e)?t.identifier:t.pointerId}function Eb(e){const t=Cb(e);return[t.clientX,t.clientY]}function Pb(e,...t){return"function"==typeof e?e(...t):e}function Tb(){}function Ib(...e){return 0===e.length?Tb:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Mb(e,t){return Object.assign({},t,e||{})}class Rb{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Pb(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);cb.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,s]=t._movement,[a,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=a&&u[0]),!1===c[1]&&(c[1]=Math.abs(s)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=a&&Math.sign(i)*a),!1===c[1]&&(c[1]=Math.abs(s)>=l&&Math.sign(s)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?s-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const p=t.offset,h=t._active&&!t._blocked||t.active;h&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Pb(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[f,m]=t.offset,[[g,v],[b,x]]=t._bounds;t.overflow=[f<g?-1:f>v?1:0,m<b?-1:m>x?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const y=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[db(t,i,s,r),db(n,a,l,o)]}(t._bounds,t.offset,y),t.delta=cb.sub(t.offset,p),this.computeMovement(),h&&(!t.last||o>32)){t.delta=cb.sub(t.offset,p);const e=t.delta.map(Math.abs);cb.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(mb(mb(mb({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Nb extends Rb{constructor(...e){super(...e),hb(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=cb.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=cb.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Sb(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Ab=e=>e,Db={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>mb(mb({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return cb.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?cb.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Ab},threshold:e=>cb.toVector(e,0)};const Ob=mb(mb({},Db),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>Ob.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),zb={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Lb="undefined"!=typeof window&&window.document&&window.document.createElement;function Fb(){return Lb&&"ontouchstart"in window}const Bb={isBrowser:Lb,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Fb(),touchscreen:Fb()||Lb&&window.navigator.maxTouchPoints>1,pointer:Lb&&"onpointerdown"in window,pointerLock:Lb&&"exitPointerLock"in window.document},Vb={mouse:0,touch:0,pen:8},$b=mb(mb({},Ob),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Bb.pointerLock,Bb.touch&&n?"touch":this.pointerLock?"mouse":Bb.pointer&&!o?"pointer":Bb.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Bb.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=cb.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(cb.toVector(e)),distance:this.transform(cb.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?mb(mb({},Vb),e):Vb,keyboardDisplacement:(e=10)=>e});mb(mb({},Db),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Bb.touch&&Bb.gesture)return"gesture";if(Bb.touch&&r)return"touch";if(Bb.touchscreen){if(Bb.pointer)return"pointer";if(Bb.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Mb(Pb(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Mb(Pb(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return cb.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});mb(mb({},Ob),{},{mouseOnly:(e=!0)=>e});mb(mb({},Ob),{},{mouseOnly:(e=!0)=>e});const Hb=new Map,Wb=new Map;const Ub={key:"drag",engine:class extends Nb{constructor(...e){super(...e),hb(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=Ob.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=jb(e),n._pointerActive=!0,this.computeValues(Eb(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Sb(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=jb(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Eb(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=cb.sub(o,t._values),this.computeValues(o)),cb.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=jb(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[s,a]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>s&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>a&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=zb[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,cb.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in zb&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:$b};function Gb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Kb={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(Bb.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},Yb=["target","eventOptions","window","enabled","transform"];function qb(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=qb(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class Xb{constructor(e,t){hb(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,s=function(e,t=""){const n=gb[e];return e+(n&&n[t]||t)}(t,n),a=mb(mb({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(s,r,a);const l=()=>{e.removeEventListener(s,r,a),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class Zb{constructor(){hb(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class Jb{constructor(e){hb(this,"gestures",new Set),hb(this,"_targetEventStore",new Xb(this)),hb(this,"gestureEventStores",{}),hb(this,"gestureTimeoutStores",{}),hb(this,"handlers",{}),hb(this,"config",{}),hb(this,"pointerIds",new Set),hb(this,"touchIds",new Set),hb(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&Qb(e,"drag");t.wheel&&Qb(e,"wheel");t.scroll&&Qb(e,"scroll");t.move&&Qb(e,"move");t.pinch&&Qb(e,"pinch");t.hover&&Qb(e,"hover")}(this,e)}setEventIds(e){return _b(e)?(this.touchIds=new Set(kb(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,c=Gb(r,Yb);if(n.shared=qb({target:o,eventOptions:i,window:s,enabled:a,transform:l},Kb),t){const e=Wb.get(t);n[t]=qb(mb({shared:n.shared},c),e)}else for(const e in c){const t=Wb.get(e);t&&(n[e]=qb(mb({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=ex(n,o.eventOptions,!!r);if(o.enabled){new(Hb.get(t))(this,e,t).bind(i)}}const o=ex(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](mb(mb({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Ib(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=wb(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function Qb(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Xb(e,t),e.gestureTimeoutStores[t]=new Zb}const ex=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const u=null!==(l=s.capture)&&void 0!==l?l:t.capture,d=null!==(c=s.passive)&&void 0!==c?c:t.passive;let p=a?r:xb(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function tx(e,t={},n,r){const o=d().useMemo((()=>new Jb(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),d().useEffect(o.effect.bind(o)),d().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function nx(e,t){var n;return n=Ub,Hb.set(n.key,n.engine),Wb.set(n.key,n.resolver),tx({drag:e},t||{},"drag")}const rx=e=>e,ox={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},ix="CHANGE",sx="COMMIT",ax="CONTROL",lx="DRAG_END",cx="DRAG_START",ux="DRAG",dx="INVALIDATE",px="PRESS_DOWN",hx="PRESS_ENTER",fx="PRESS_UP",mx="RESET";function gx(e=rx,t=ox,n){const[r,o]=(0,Uo.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case ax:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case fx:case px:n.isDirty=!1;break;case cx:n.isDragging=!0;break;case lx:n.isDragging=!1;break;case ix:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case sx:n.value=t.payload.value,n.isDirty=!1;break;case mx:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case dx:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=ox){const{value:t}=e;return{...ox,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},a=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=s(ix),u=s(mx),d=s(sx),p=l(cx),h=l(ux),f=l(lx),m=a(fx),g=a(px),v=a(hx),b=(0,Uo.useRef)(r),x=(0,Uo.useRef)({value:t.value,onChangeHandler:n});return(0,Uo.useLayoutEffect)((()=>{b.current=r,x.current={value:t.value,onChangeHandler:n}})),(0,Uo.useLayoutEffect)((()=>{var e;void 0===b.current._event||r.value===x.current.value||r.isDirty||x.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:b.current._event})}),[r.value,r.isDirty]),(0,Uo.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:ax,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:h,dragEnd:f,dragStart:p,invalidate:(e,t)=>o({type:dx,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:m,reset:u,state:r}}function vx(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||229===t.keyCode||e(t)}}const bx=()=>{};const xx=(0,Uo.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isPressEnterToChange:i=!1,onBlur:s=bx,onChange:a=bx,onDrag:l=bx,onDragEnd:c=bx,onDragStart:u=bx,onKeyDown:d=bx,onValidate:p=bx,size:h="default",stateReducer:f=(e=>e),value:m,type:g,...v},b){const{state:x,change:y,commit:w,drag:_,dragEnd:S,dragStart:C,invalidate:k,pressDown:j,pressEnter:E,pressUp:P,reset:T}=gx(f,{isDragEnabled:o,value:m,isPressEnterToChange:i},a),{value:I,isDragging:M,isDirty:R}=x,N=(0,Uo.useRef)(!1),A=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,Uo.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(M,t),D=e=>{const t=e.currentTarget.value;try{p(t),w(t,e)}catch(t){k(t,e)}},O=nx((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return c(e),void S(e);l(e),_(e),M||(u(e),C(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),z=o?O():{};let L;return"number"===g&&(L=e=>{v.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,ze.jsx)(Jv,{...v,...z,className:"components-input-control__input",disabled:e,dragCursor:A,isDragging:M,id:r,onBlur:e=>{s(e),!R&&e.target.validity.valid||(N.current=!0,D(e))},onChange:e=>{const t=e.target.value;y(t,e)},onKeyDown:vx((e=>{const{key:t}=e;switch(d(e),t){case"ArrowUp":P(e);break;case"ArrowDown":j(e);break;case"Enter":E(e),i&&(e.preventDefault(),D(e));break;case"Escape":i&&R&&(e.preventDefault(),T(m,e))}})),onMouseDown:L,ref:b,inputSize:h,value:null!=I?I:"",type:g})})),yx=xx,wx={"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 _x(e){var t;return null!==(t=wx[e])&&void 0!==t?t:""}const Sx={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Cx=ba("div",{target:"ej5x27r4"})("font-family:",_x("default.fontFamily"),";font-size:",_x("default.fontSize"),";",Sx,";"),kx=({__nextHasNoMarginBottom:e=!1})=>!e&&Ea("margin-bottom:",ng(2),";",""),jx=ba("div",{target:"ej5x27r3"})(kx," .components-panel__row &{margin-bottom:inherit;}"),Ex=Ea(Ov,";display:inline-block;margin-bottom:",ng(2),";padding:0;",""),Px=ba("label",{target:"ej5x27r2"})(Ex,";");var Tx={name:"11yad0w",styles:"margin-bottom:revert"};const Ix=({__nextHasNoMarginBottom:e=!1})=>!e&&Tx,Mx=ba("p",{target:"ej5x27r1"})("margin-top:",ng(2),";margin-bottom:0;font-size:",_x("helpText.fontSize"),";font-style:normal;color:",Na.gray[700],";",Ix,";"),Rx=ba("span",{target:"ej5x27r0"})(Ex,";"),Nx=({className:e,children:t,...n})=>(0,ze.jsx)(Rx,{...n,className:s("components-base-control__label",e),children:t}),Ax=Object.assign(ia((e=>{const{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:s,children:a}=ra(e,"BaseControl");return(0,ze.jsxs)(Cx,{className:s,children:[(0,ze.jsxs)(jx,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[r&&n&&(o?(0,ze.jsx)(wa,{as:"label",htmlFor:n,children:r}):(0,ze.jsx)(Px,{className:"components-base-control__label",htmlFor:n,children:r})),r&&!n&&(o?(0,ze.jsx)(wa,{as:"label",children:r}):(0,ze.jsx)(Nx,{children:r})),a]}),!!i&&(0,ze.jsx)(Mx,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:i})]})}),"BaseControl"),{VisualLabel:Nx}),Dx=Ax,Ox=()=>{};const zx=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:a=!1,help:c,hideLabelFromVision:u=!1,id:d,isPressEnterToChange:p=!1,label:h,labelPosition:f="top",onChange:m=Ox,onValidate:g=Ox,onKeyDown:v=Ox,prefix:b,size:x="default",style:y,suffix:w,value:_,...S}=ib(e),C=function(e){const t=(0,l.useInstanceId)(zx);return e||`inspector-input-control-${t}`}(d),k=s("components-input-control",i),j=function(e){const t=(0,Uo.useRef)(e.value),[n,r]=(0,Uo.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Uo.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:S.onBlur,onChange:m}),E=c?{"aria-describedby":`${C}__help`}:{};return(0,ze.jsx)(Dx,{className:k,help:c,id:C,__nextHasNoMarginBottom:!0,children:(0,ze.jsx)(lb,{__next40pxDefaultSize:n,__unstableInputWidth:o,disabled:a,gap:3,hideLabelFromVision:u,id:C,justify:"left",label:h,labelPosition:f,prefix:b,size:x,style:y,suffix:w,children:(0,ze.jsx)(yx,{...S,...E,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:C,isPressEnterToChange:p,onKeyDown:v,onValidate:g,paddingInlineStart:b?ng(2):void 0,paddingInlineEnd:w?ng(2):void 0,ref:t,size:x,stateReducer:r,...j})})})})),Lx=zx;const Fx=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,ze.jsx)("span",{className:i,style:s,...o})};const Bx=function({icon:e=null,size:t=("string"==typeof e?20:24),...r}){if("string"==typeof e)return(0,ze.jsx)(Fx,{icon:e,size:t,...r});if((0,Uo.isValidElement)(e)&&Fx===e.type)return(0,Uo.cloneElement)(e,{...r});if("function"==typeof e)return(0,Uo.createElement)(e,{size:t,...r});if(e&&("svg"===e.type||e.type===n.SVG)){const o={...e.props,width:t,height:t,...r};return(0,ze.jsx)(n.SVG,{...o})}return(0,Uo.isValidElement)(e)?(0,Uo.cloneElement)(e,{size:t,...r}):e},Vx=["onMouseDown","onClick"];const $x=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isBusy:r,isDestructive:o,className:i,disabled:a,icon:c,iconPosition:u="left",iconSize:d,showTooltip:p,tooltipPosition:h,shortcut:f,label:m,children:g,size:v="default",text:b,variant:x,__experimentalIsFocusable:y,describedBy:w,..._}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isPressed:i,isSmall:s,size:a,variant:l,...c}){let u=a,d=l;const p={"aria-pressed":i};var h,f,m,g,v,b;return s&&(null!==(h=u)&&void 0!==h||(u="small")),t&&(null!==(f=d)&&void 0!==f||(d="primary")),r&&(null!==(m=d)&&void 0!==m||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&(Ko()("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(v=d)&&void 0!==v||(d="secondary")),o&&(null!==(b=d)&&void 0!==b||(d="link")),{...p,...c,size:u,variant:d}}(e),{href:S,target:C,"aria-checked":k,"aria-pressed":j,"aria-selected":E,...P}="href"in _?_:{href:void 0,target:void 0,..._},T=(0,l.useInstanceId)($x,"components-button__description"),I="string"==typeof g&&!!g||Array.isArray(g)&&g?.[0]&&null!==g[0]&&"components-tooltip"!==g?.[0]?.props?.className,M=s("components-button",i,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===v,"is-compact":"compact"===v,"is-tertiary":"tertiary"===x,"is-pressed":[!0,"true","mixed"].includes(j),"is-pressed-mixed":"mixed"===j,"is-busy":r,"is-link":"link"===x,"is-destructive":o,"has-text":!!c&&(I||b),"has-icon":!!c}),R=a&&!y,N=void 0===S||R?"button":"a",A="button"===N?{type:"button",disabled:R,"aria-checked":k,"aria-pressed":j,"aria-selected":E}:{},D="a"===N?{href:S,target:C}:{},O={};if(a&&y){A["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of Vx)O[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const z=!R&&(p&&!!m||!!f||!!m&&!g?.length&&!1!==p),L=w?T:void 0,F=P["aria-describedby"]||L,B={className:M,"aria-label":P["aria-label"]||m,"aria-describedby":F,ref:t},V=(0,ze.jsxs)(ze.Fragment,{children:[c&&"left"===u&&(0,ze.jsx)(Bx,{icon:c,size:d}),b&&(0,ze.jsx)(ze.Fragment,{children:b}),g,c&&"right"===u&&(0,ze.jsx)(Bx,{icon:c,size:d})]}),$="a"===N?(0,ze.jsx)("a",{...D,...P,...O,...B,children:V}):(0,ze.jsx)("button",{...A,...P,...O,...B,children:V}),H=z?{text:g?.length&&w?w:m,shortcut:f,placement:h&&Xo(h)}:{};return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(ri,{...H,children:$}),w&&(0,ze.jsx)(wa,{children:(0,ze.jsx)("span",{id:L,children:w})})]})})),Hx=$x;var Wx={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Ux=({hideHTMLArrows:e})=>e?Wx:"",Gx=ba(Lx,{target:"ep09it41"})(Ux,";"),Kx=ba(Hx,{target:"ep09it40"})("&&&&&{color:",Na.theme.accent,";}"),Yx={smallSpinButtons:Ea("width:",ng(5),";min-width:",ng(5),";height:",ng(5),";","")};function qx(e){const t=Number(e);return isNaN(t)?0:t}function Xx(...e){return e.reduce(((e,t)=>e+qx(t)),0)}function Zx(e,t,n){const r=qx(e);return Math.max(t,Math.min(r,n))}function Jx(e=0,t=1/0,n=1/0,r=1){const o=qx(e),i=qx(r),s=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),a=Zx(Math.round(o/i)*i,t,n);return s?qx(a.toFixed(s)):a}const Qx={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"}},ey={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"}};function ty(e){return"string"==typeof e?[e]:Uo.Children.toArray(e).filter((e=>(0,Uo.isValidElement)(e)))}function ny(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=ra(e,"HStack"),s=function(e,t="row"){if(!Pg(e))return{};const n="column"===t?ey:Qx;return e in n?n[e]:{align:e}}(t,r),a=ty(n).map(((e,t)=>{if(la(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,ze.jsx)(jg,{isBlock:!0,...n.props},r)}return e})),l={children:a,direction:r,justify:"center",...s,...i,gap:o},{isColumn:c,...u}=lg(l);return u}const ry=oa((function(e,t){const n=ny(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"HStack"),oy=()=>{};const iy=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,spinControls:c=(i?"none":"native"),isDragEnabled:u=!0,isShiftStepEnabled:d=!0,label:p,max:h=1/0,min:f=-1/0,required:m=!1,shiftStep:g=10,step:v=1,spinFactor:b=1,type:x="number",value:y,size:w="default",suffix:_,onChange:S=oy,...C}=ib(e);i&&Ko()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const k=(0,Uo.useRef)(),j=(0,l.useMergeRefs)([k,t]),E="any"===v,P=E?1:Tg(v),T=Tg(b)*P,I=Jx(0,f,h,P),M=(e,t)=>E?""+Math.min(h,Math.max(f,Tg(e))):""+Jx(e,f,h,null!=t?t:P),R="number"===x?"off":void 0,N=s("components-number-control",r),A=na()("small"===w&&Yx.smallSpinButtons),D=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&d,o=r?Tg(g)*T:T;let i=function(e){const t=""===e;return!Pg(e)||t}(e)?I:e;return"up"===t?i=Xx(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=qx(t);return 0===n?r:e-r}),0)}(i,o)),M(i,r?o:void 0)},O=e=>t=>S(String(D(y,e,t)),{event:{...t,target:k.current}});return(0,ze.jsx)(Gx,{autoComplete:R,inputMode:"numeric",...C,className:N,dragDirection:o,hideHTMLArrows:"native"!==c,isDragEnabled:u,label:p,max:h,min:f,ref:j,required:m,step:v,type:x,value:y,__unstableStateReducer:(e,t)=>{var r;const i=((e,t)=>{const n={...e},{type:r,payload:i}=t,s=i.event,l=n.value;if(r!==fx&&r!==px||(n.value=D(l,r===fx?"up":"down",s)),r===ux&&u){const[e,t]=i.delta,r=i.shiftKey&&d,s=r?Tg(g)*T:T;let c,u;switch(o){case"n":u=t,c=-1;break;case"e":u=e,c=(0,a.isRTL)()?-1:1;break;case"s":u=t,c=1;break;case"w":u=e,c=(0,a.isRTL)()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*s*c;n.value=M(Xx(l,e),r?s:void 0)}}if(r===hx||r===sx){const e=!1===m&&""===l;n.value=e?l:M(l)}return n})(e,t);return null!==(r=n?.(i,t))&&void 0!==r?r:i},size:w,suffix:"custom"===c?(0,ze.jsxs)(ze.Fragment,{children:[_,(0,ze.jsx)(Sg,{marginBottom:0,marginRight:2,children:(0,ze.jsxs)(ry,{spacing:1,children:[(0,ze.jsx)(Kx,{className:A,icon:Cg,size:"small",label:(0,a.__)("Increment"),onClick:O("up")}),(0,ze.jsx)(Kx,{className:A,icon:kg,size:"small",label:(0,a.__)("Decrement"),onClick:O("down")})]})})]}):_,onChange:S})})),sy=iy;const ay=ba("div",{target:"eln3bjz3"})("border-radius:50%;border:",bv.borderWidth," solid ",Na.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),ly=ba("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),cy=ba("div",{target:"eln3bjz1"})("background:",Na.theme.accent,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),uy=ba(Dv,{target:"eln3bjz0"})("color:",Na.theme.accent,";margin-right:",ng(3),";");const dy=function({value:e,onChange:t,...n}){const r=(0,Uo.useRef)(null),o=(0,Uo.useRef)(),i=(0,Uo.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,s=Math.atan2(o,i),a=Math.round(s*(180/Math.PI))+90;if(a<0)return 360+a;return a}(n,r,e.clientX,e.clientY))}},{startDrag:a,isDragging:c}=(0,l.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,Uo.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,ze.jsx)(ay,{ref:r,onMouseDown:a,className:"components-angle-picker-control__angle-circle",...n,children:(0,ze.jsx)(ly,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1,children:(0,ze.jsx)(cy,{className:"components-angle-picker-control__angle-circle-indicator"})})})};const py=(0,Uo.forwardRef)((function(e,t){const{className:n,label:r=(0,a.__)("Angle"),onChange:o,value:i,...l}=e,c=s("components-angle-picker-control",n),u=(0,ze.jsx)(uy,{children:"°"}),[d,p]=(0,a.isRTL)()?[u,null]:[null,u];return(0,ze.jsxs)(dg,{...l,ref:t,className:c,gap:2,children:[(0,ze.jsx)(hg,{children:(0,ze.jsx)(sy,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===o)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,spinControls:"none",prefix:d,suffix:p})}),(0,ze.jsx)(Sg,{marginBottom:"1",marginTop:"auto",children:(0,ze.jsx)(dy,{"aria-hidden":"true",value:i,onChange:o})})]})}));var hy=o(9681),fy=o.n(hy);const my=window.wp.richText,gy=window.wp.a11y,vy=window.wp.keycodes,by=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),xy=e=>fy()(e).toLocaleLowerCase().replace(by,"-");function yy(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),Si(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function wy(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function _y(e){return t=>{const[n,r]=(0,Uo.useState)([]);return(0,Uo.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,l.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),s=new RegExp("(?:\\b|\\s|^)"+wy(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:s=[]}=i;if("string"==typeof i.label&&(s=[...s,i.label]),s.some((t=>e.test(fy()(t))))&&(r.push(i),r.length===n))break}return r}(s,i))}));return o}),o?250:0),s=i();return()=>{i.cancel(),s&&(s.canceled=!0)}}),[t]),[n]}}const Sy=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Eo({element:n.current,padding:r}).fn(t):{}:n?Eo({element:n,padding:r}).fn(t):{};var o}});var Cy="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function ky(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ky(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ky(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function jy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ey(e,t){const n=jy(e);return Math.round(t*n)/n}function Py(e){const t=c.useRef(e);return Cy((()=>{t.current=e})),t}const Ty=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})});let Iy=0;function My(e){const t=document.scrollingElement||document.body;e&&(Iy=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Iy)}let Ry=0;const Ny=function(){return(0,Uo.useEffect)((()=>(0===Ry&&My(!0),++Ry,()=>{1===Ry&&My(!1),--Ry})),[]),null},Ay={slots:(0,l.observableMap)(),fills:(0,l.observableMap)(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},Dy=(0,Uo.createContext)(Ay);function Oy(e){const t=(0,Uo.useContext)(Dy);return{...(0,l.useObservableValue)(t.slots,e),...(0,Uo.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}const zy={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},Ly=(0,Uo.createContext)(zy),Fy=e=>{const{getSlot:t,subscribe:n}=(0,Uo.useContext)(Ly);return(0,Uo.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function By({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Uo.useContext)(Ly),o=Fy(e),i=(0,Uo.useRef)({name:e,children:t});return(0,Uo.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Uo.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Uo.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Vy(e){return"function"==typeof e}class $y extends Uo.Component{constructor(e){super(e),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name,this),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=Vy(e.children)?e.children(r):e.children;return Uo.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,Uo.cloneElement)(e,{key:n})}))})).filter((e=>!(0,Uo.isEmptyElement)(e)));return(0,ze.jsx)(ze.Fragment,{children:Vy(t)?t(i):i})}}const Hy=e=>(0,ze.jsx)(Ly.Consumer,{children:({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,ze.jsx)($y,{...e,registerSlot:t,unregisterSlot:n,getFills:r})}),Wy={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Uy;const Gy=new Uint8Array(16);function Ky(){if(!Uy&&(Uy="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Uy))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Uy(Gy)}const Yy=[];for(let e=0;e<256;++e)Yy.push((e+256).toString(16).slice(1));function qy(e,t=0){return Yy[e[t+0]]+Yy[e[t+1]]+Yy[e[t+2]]+Yy[e[t+3]]+"-"+Yy[e[t+4]]+Yy[e[t+5]]+"-"+Yy[e[t+6]]+Yy[e[t+7]]+"-"+Yy[e[t+8]]+Yy[e[t+9]]+"-"+Yy[e[t+10]]+Yy[e[t+11]]+Yy[e[t+12]]+Yy[e[t+13]]+Yy[e[t+14]]+Yy[e[t+15]]}const Xy=function(e,t,n){if(Wy.randomUUID&&!t&&!e)return Wy.randomUUID();const r=(e=e||{}).random||(e.rng||Ky)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return qy(r)},Zy=new Set,Jy=new WeakMap;function Qy(e){const{children:t,document:n}=e;if(!n)return null;const r=(e=>{if(Jy.has(e))return Jy.get(e);let t=Xy().replace(/[0-9]/g,"");for(;Zy.has(t);)t=Xy().replace(/[0-9]/g,"");Zy.add(t);const n=Es({container:e,key:t});return Jy.set(e,n),n})(n.head);return(0,ze.jsx)(Ws,{value:r,children:t})}const ew=Qy;function tw(e){var t;const{name:n,children:r}=e,{registerFill:o,unregisterFill:i,...s}=Oy(n),a=function(){const[,e]=(0,Uo.useState)({}),t=(0,Uo.useRef)(!0);return(0,Uo.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),l=(0,Uo.useRef)({rerender:a});if((0,Uo.useEffect)((()=>(o(l),()=>{i(l)})),[o,i]),!s.ref||!s.ref.current)return null;const c=(0,ze.jsx)(ew,{document:s.ref.current.ownerDocument,children:"function"==typeof r?r(null!==(t=s.fillProps)&&void 0!==t?t:{}):r});return(0,Uo.createPortal)(c,s.ref.current)}const nw=(0,Uo.forwardRef)((function(e,t){const{name:n,fillProps:r={},as:o,children:i,...s}=e,{registerSlot:a,unregisterSlot:c,...u}=(0,Uo.useContext)(Dy),d=(0,Uo.useRef)(null);return(0,Uo.useLayoutEffect)((()=>(a(n,d,r),()=>{c(n,d)})),[a,c,n]),(0,Uo.useLayoutEffect)((()=>{u.updateSlot(n,r)})),(0,ze.jsx)(ya,{as:o,ref:(0,l.useMergeRefs)([t,d]),...s})})),rw=window.wp.isShallowEqual;var ow=o.n(rw);function iw(){const e=(0,l.observableMap)(),t=(0,l.observableMap)();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,{...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}})},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ow()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.forEach((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,[...t.get(e)||[],n])},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,r.filter((e=>e!==n)))}}}function sw({children:e}){const[t]=(0,Uo.useState)(iw);return(0,ze.jsx)(Dy.Provider,{value:t,children:e})}function aw(){const e={},t={};let n=[];function r(t){return e[t]}function o(e){const t=r(e);t&&t.forceUpdate()}function i(){n.forEach((e=>e()))}return{registerSlot:function(t,n){const r=e[t];e[t]=n,i(),o(t),r&&r.forceUpdate()},unregisterSlot:function(t,n){e[t]===n&&(delete e[t],i())},registerFill:function(e,n){t[e]=[...t[e]||[],n],o(e)},unregisterFill:function(e,n){var r;t[e]=null!==(r=t[e]?.filter((e=>e!==n)))&&void 0!==r?r:[],o(e)},getSlot:r,getFills:function(n,r){return e[n]!==r?[]:t[n]},subscribe:function(e){return n.push(e),()=>{n=n.filter((t=>t!==e))}}}}const lw=function({children:e}){const[t]=(0,Uo.useState)(aw);return(0,ze.jsx)(Ly.Provider,{value:t,children:e})};function cw(e){return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(By,{...e}),(0,ze.jsx)(tw,{...e})]})}const uw=(0,Uo.forwardRef)((function(e,t){const{bubblesVirtually:n,...r}=e;return n?(0,ze.jsx)(nw,{...r,ref:t}):(0,ze.jsx)(Hy,{...r})}));function dw({children:e,passthrough:t=!1}){return!(0,Uo.useContext)(Dy).isDefault&&t?(0,ze.jsx)(ze.Fragment,{children:e}):(0,ze.jsx)(lw,{children:(0,ze.jsx)(sw,{children:e})})}function pw(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,ze.jsx)(cw,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,ze.jsx)(uw,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const hw="Popover",fw=()=>(0,ze.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[(0,ze.jsx)(n.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,ze.jsx)(n.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),mw=(0,Uo.createContext)(void 0),gw="components-popover__fallback-container",vw=oa(((e,t)=>{const{animate:n=!0,headerTitle:r,constrainTabbing:o,onClose:i,children:a,className:u,noArrow:d=!0,position:p,placement:h="bottom-start",offset:f=0,focusOnMount:m="firstElement",anchor:g,expandOnMobile:v,onFocusOutside:b,__unstableSlotName:x=hw,flip:y=!0,resize:w=!0,shift:_=!1,inline:S=!1,variant:C,__unstableForcePosition:k,anchorRef:j,anchorRect:E,getAnchorRect:P,isAlternate:T,...I}=ra(e,"Popover");let M=y,R=w;void 0!==k&&(Ko()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),M=!k,R=!k),void 0!==j&&Ko()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==E&&Ko()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&Ko()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const N=T?"toolbar":C;void 0!==T&&Ko()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const A=(0,Uo.useRef)(null),[D,O]=(0,Uo.useState)(null),z=(0,Uo.useCallback)((e=>{O(e)}),[]),L=(0,l.useViewportMatch)("medium","<"),F=v&&L,B=!F&&!d,V=p?Xo(p):h,$=[..."overlay"===h?[{name:"overlay",fn:({rects:e})=>e.reference},jo({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],Lr(f),M&&ko(),R&&jo({apply(e){var t;const{firstElementChild:n}=null!==(t=X.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),_&&Co({crossAxis:!0,limiter:Po(),padding:1}),Sy({element:A})],H=(0,Uo.useContext)(mw)||x,W=Oy(H);let U;(i||b)&&(U=(e,t)=>{"focus-outside"===e&&b?b(t):i&&i()});const[G,K]=(0,l.__experimentalUseDialog)({constrainTabbing:o,focusOnMount:m,__unstableOnClose:U,onClose:U}),{x:Y,y:q,refs:X,strategy:Z,update:J,placement:Q,middlewareData:{arrow:ee}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=c.useState(r);ky(h,r)||f(r);const[m,g]=c.useState(null),[v,b]=c.useState(null),x=c.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),y=c.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),w=i||m,_=s||v,S=c.useRef(null),C=c.useRef(null),k=c.useRef(d),j=null!=l,E=Py(l),P=Py(o),T=c.useCallback((()=>{if(!S.current||!C.current)return;const e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),To(S.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};I.current&&!ky(k.current,t)&&(k.current=t,tr.flushSync((()=>{p(t)})))}))}),[h,t,n,P]);Cy((()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const I=c.useRef(!1);Cy((()=>(I.current=!0,()=>{I.current=!1})),[]),Cy((()=>{if(w&&(S.current=w),_&&(C.current=_),w&&_){if(E.current)return E.current(w,_,T);T()}}),[w,_,T,E,j]);const M=c.useMemo((()=>({reference:S,floating:C,setReference:x,setFloating:y})),[x,y]),R=c.useMemo((()=>({reference:w,floating:_})),[w,_]),N=c.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=Ey(R.floating,d.x),r=Ey(R.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...jy(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,R.floating,d.x,d.y]);return c.useMemo((()=>({...d,update:T,refs:M,elements:R,floatingStyles:N})),[d,T,M,R,N])}({placement:"overlay"===V?void 0:V,middleware:$,whileElementsMounted:(e,t,n)=>So(e,t,n,{layoutShift:!1,animationFrame:!0})}),te=(0,Uo.useCallback)((e=>{A.current=e,J()}),[J]),ne=j?.top,re=j?.bottom,oe=j?.startContainer,ie=j?.current;(0,Uo.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let s=null;return e?s=e:function(e){return!!e?.top}(t)?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:function(e){return!!e?.current}(t)?s=t.current:t?s=t:n?s={getBoundingClientRect:()=>n}:r?s={getBoundingClientRect(){var e,t,n,i;const s=r(o);return new window.DOMRect(null!==(e=s.x)&&void 0!==e?e:s.left,null!==(t=s.y)&&void 0!==t?t:s.top,null!==(n=s.width)&&void 0!==n?n:s.right-s.left,null!==(i=s.height)&&void 0!==i?i:s.bottom-s.top)}}:o&&(s=o.parentElement),null!==(i=s)&&void 0!==i?i:null})({anchor:g,anchorRef:j,anchorRect:E,getAnchorRect:P,fallbackReferenceElement:D});X.setReference(e)}),[g,j,ne,re,oe,ie,E,P,D,X]);const se=(0,l.useMergeRefs)([X.setFloating,G,t]),ae=F?void 0:{position:Z,top:0,left:0,x:Jo(Y),y:Jo(q)},le=(0,l.useReducedMotion)(),ce=n&&!F&&!le,[ue,de]=(0,Uo.useState)(!1),{style:pe,...he}=(0,Uo.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Zo[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(Q)),[Q]),fe=ce?{style:{...pe,...ae},onAnimationComplete:()=>de(!0),...he}:{animate:!1,style:ae},me=(!ce||ue)&&null!==Y&&null!==q;let ge=(0,ze.jsxs)(Hm.div,{className:s(u,{"is-expanded":F,"is-positioned":me,[`is-${"toolbar"===N?"alternate":N}`]:N}),...fe,...I,ref:se,...K,tabIndex:-1,children:[F&&(0,ze.jsx)(Ny,{}),F&&(0,ze.jsxs)("div",{className:"components-popover__header",children:[(0,ze.jsx)("span",{className:"components-popover__header-title",children:r}),(0,ze.jsx)(Hx,{className:"components-popover__close",icon:Ty,onClick:i})]}),(0,ze.jsx)("div",{className:"components-popover__content",children:a}),B&&(0,ze.jsx)("div",{ref:te,className:["components-popover__arrow",`is-${Q.split("-")[0]}`].join(" "),style:{left:void 0!==ee?.x&&Number.isFinite(ee.x)?`${ee.x}px`:"",top:void 0!==ee?.y&&Number.isFinite(ee.y)?`${ee.y}px`:""},children:(0,ze.jsx)(fw,{})})]});const ve=W.ref&&!S,be=j||E||g;return ve?ge=(0,ze.jsx)(cw,{name:H,children:ge}):S||(ge=(0,Uo.createPortal)((0,ze.jsx)(Qy,{document,children:ge}),(()=>{let e=document.body.querySelector("."+gw);return e||(e=document.createElement("div"),e.className=gw,document.body.append(e)),e})())),be?ge:(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)("span",{ref:z}),ge]})}),"Popover");vw.Slot=(0,Uo.forwardRef)((function({name:e=hw},t){return(0,ze.jsx)(uw,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),vw.__unstableSlotNameProvider=mw.Provider;const bw=vw;function xw({items:e,onSelect:t,selectedIndex:n,instanceId:r,listBoxId:o,className:i,Component:a="div"}){return(0,ze.jsx)(a,{id:o,role:"listbox",className:"components-autocomplete__results",children:e.map(((e,o)=>(0,ze.jsx)(Hx,{id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":o===n,disabled:e.isDisabled,className:s("components-autocomplete__result",i,{"is-selected":o===n}),onClick:()=>t(e),children:e.label},e.key)))})}function yw(e){var t;const n=null!==(t=e.useItems)&&void 0!==t?t:_y(e);return function({filterValue:e,instanceId:t,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:c,onReset:u,reset:d,contentRef:p}){const[h]=n(e),f=(0,my.useAnchor)({editableContentElement:p.current}),[m,g]=(0,Uo.useState)(!1),v=(0,Uo.useRef)(null),b=(0,l.useMergeRefs)([v,(0,l.useRefEffect)((e=>{p.current&&g(e.ownerDocument!==p.current.ownerDocument)}),[p])]);var x,y;x=v,y=d,(0,Uo.useEffect)((()=>{const e=e=>{x.current&&!x.current.contains(e.target)&&y(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[y]);const w=(0,l.useDebounce)(gy.speak,500);return(0,Uo.useLayoutEffect)((()=>{s(h),function(t){w&&(t.length?w(e?(0,a.sprintf)((0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length):(0,a.sprintf)((0,a._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):w((0,a.__)("No results."),"assertive"))}(h)}),[h]),0===h.length?null:(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(bw,{focusOnMount:!1,onClose:u,placement:"top-start",className:"components-autocomplete__popover",anchor:f,ref:b,children:(0,ze.jsx)(xw,{items:h,onSelect:c,selectedIndex:i,instanceId:t,listBoxId:r,className:o})}),p.current&&m&&(0,tr.createPortal)((0,ze.jsx)(xw,{items:h,onSelect:c,selectedIndex:i,instanceId:t,listBoxId:r,className:o,Component:wa}),p.current.ownerDocument.body)]})}}const ww=e=>{if(null===e)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":default:return"";case"object":if(e instanceof Array)return e.map(ww).join("");if("props"in e)return ww(e.props.children)}return""},_w=[];function Sw({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,l.useInstanceId)(Sw),[s,a]=(0,Uo.useState)(0),[c,u]=(0,Uo.useState)(_w),[d,p]=(0,Uo.useState)(""),[h,f]=(0,Uo.useState)(null),[m,g]=(0,Uo.useState)(null),v=(0,Uo.useRef)(!1);function b(r){const{getOptionCompletion:o}=h||{};if(!r.isDisabled){if(o){const i=o(r.value,d),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===h)return;const r=e.start,o=r-h.triggerPrefix.length-d.length,i=(0,my.create)({html:(0,Uo.renderToString)(n)});t((0,my.insert)(e,i,o,r))}(s.value)}x()}}function x(){a(0),u(_w),p(""),f(null),g(null)}const y=(0,Uo.useMemo)((()=>(0,my.isCollapsed)(e)?(0,my.getTextContent)((0,my.slice)(e,0)):""),[e]);(0,Uo.useEffect)((()=>{if(!y)return void(h&&x());const t=r.reduce(((e,t)=>y.lastIndexOf(t.triggerPrefix)>(null!==e?y.lastIndexOf(e.triggerPrefix):-1)?t:e),null);if(!t)return void(h&&x());const{allowContext:n,triggerPrefix:o}=t,i=y.lastIndexOf(o),s=y.slice(i+o.length);if(s.length>50)return;const a=0===c.length,l=s.split(/\s/),u=1===l.length,d=v.current&&l.length<=3;if(a&&!d&&!u)return void(h&&x());const b=(0,my.getTextContent)((0,my.slice)(e,void 0,(0,my.getTextContent)(e).length));if(n&&!n(y.slice(0,i),b))return void(h&&x());if(/^\s/.test(s)||/\s\s+$/.test(s))return void(h&&x());if(!/[\u0000-\uFFFF]*$/.test(s))return void(h&&x());const w=wy(t.triggerPrefix),_=fy()(y),S=_.slice(_.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${w}([\0-]*)$`)),C=S&&S[1];f(t),g((()=>t!==h?yw(t):m)),p(null===C?"":C)}),[y]);const{key:w=""}=c[s]||{},{className:_}=h||{},S=!!h&&c.length>0,C=S?`components-autocomplete-listbox-${i}`:void 0,k=S?`components-autocomplete-item-${i}-${w}`:null,j=void 0!==e.start;return{listBoxId:C,activeId:k,onKeyDown:vx((function(e){if(v.current="Backspace"===e.key,h&&0!==c.length&&!e.defaultPrevented){switch(e.key){case"ArrowUp":{const e=(0===s?c.length:s)-1;a(e),(0,vy.isAppleOS)()&&(0,gy.speak)(ww(c[e].label),"assertive");break}case"ArrowDown":{const e=(s+1)%c.length;a(e),(0,vy.isAppleOS)()&&(0,gy.speak)(ww(c[e].label),"assertive");break}case"Escape":f(null),g(null),e.preventDefault();break;case"Enter":b(c[s]);break;case"ArrowLeft":case"ArrowRight":return void x();default:return}e.preventDefault()}})),popover:j&&m&&(0,ze.jsx)(m,{className:_,filterValue:d,instanceId:i,listBoxId:C,selectedIndex:s,onChangeOptions:function(e){a(e.length===c.length?s:0),u(e)},onSelect:b,value:e,contentRef:o,reset:x})}}function Cw(e){const t=(0,Uo.useRef)(null),n=(0,Uo.useRef)(),{record:r}=e,o=function(e){const t=(0,Uo.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:a,onKeyDown:c}=Sw({...e,contentRef:t});n.current=c;const u=(0,l.useMergeRefs)([t,(0,l.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:u,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":a}:{ref:u}}function kw({children:e,isSelected:t,...n}){const{popover:r,...o}=Sw(n);return(0,ze.jsxs)(ze.Fragment,{children:[e(o),t&&r]})}function jw(e){const{help:t,id:n,...r}=e,o=(0,l.useInstanceId)(Dx,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{"aria-describedby":`${o}__help`}:{}}}}const Ew=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),Pw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});const Tw=Ea("",""),Iw={name:"bjn8wh",styles:"position:relative"},Mw=e=>{const{color:t=Na.gray[200],style:n="solid",width:r=bv.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==bv.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Rw={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Nw(e){const{className:t,size:n="default",...r}=ra(e,"BorderBoxControlLinkedButton"),o=na();return{...r,className:(0,Uo.useMemo)((()=>o((e=>Ea("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",yg({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Aw=oa(((e,t)=>{const{className:n,isLinked:r,...o}=Nw(e),i=r?(0,a.__)("Unlink sides"):(0,a.__)("Link sides");return(0,ze.jsx)(ri,{text:i,children:(0,ze.jsx)(ya,{className:n,children:(0,ze.jsx)(Hx,{...o,size:"small",icon:r?Ew:Pw,iconSize:24,"aria-label":i,ref:t})})})}),"BorderBoxControlLinkedButton");function Dw(e){const{className:t,value:n,size:r="default",...o}=ra(e,"BorderBoxControlVisualizer"),i=na(),s=(0,Uo.useMemo)((()=>i(((e,t)=>Ea("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Mw(e?.top),";border-bottom:",Mw(e?.bottom),";",yg({borderLeft:Mw(e?.left)})()," ",yg({borderRight:Mw(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}const Ow=oa(((e,t)=>{const{value:n,...r}=Dw(e);return(0,ze.jsx)(ya,{...r,ref:t})}),"BorderBoxControlVisualizer"),zw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),Lw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M5 11.25h14v1.5H5z"})}),Fw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})}),Bw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})}),Vw=(0,c.createContext)(null),$w=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Hw(){const e=new Set,t=new WeakMap,n=()=>e.forEach($w);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const Ww=e=>!0===e,Uw=({children:e,id:t,inherit:n=!0})=>{const r=(0,c.useContext)(Yl),o=(0,c.useContext)(Vw),[i,s]=Um(),a=(0,c.useRef)(null),l=r.id||o;null===a.current&&((e=>Ww(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:Ww(n)&&r.group||Hw()});const u=(0,c.useMemo)((()=>({...a.current,forceRender:i})),[s]);return(0,ze.jsx)(Yl.Provider,{value:u,children:e})};const Gw=e=>{const t=Ea("border-color:",Na.ui.border,";","");return Ea(e&&t," &:hover{border-color:",Na.ui.borderHover,";}&:focus-within{border-color:",Na.ui.borderFocus,";box-shadow:",bv.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Kw={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},Yw={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const qw=e=>({default:Yw,"__unstable-large":Kw}[e]),Xw={name:"7whenc",styles:"display:flex;width:100%"},Zw=ba("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function Jw(e={}){var t,n=R(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=tl(M(I({},n),{focusLoop:V(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=It(M(I({},o.getState()),{value:V(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return M(I(I({},o),i),{setValue:e=>i.setState("value",e)})}function Qw(e={}){const[t,n]=Ht(Jw,e);return function(e,t,n){return $t(e=nl(e,t,n),n,"value","setValue"),e}(t,n,e)}var e_=$e([kt],[jt]),t_=e_.useContext,n_=(e_.useScopedContext,e_.useProviderContext),r_=(e_.ContextProvider,e_.ScopedContextProvider),o_=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=n_();return L(n=n||o,!1),r=Pe(r,(e=>(0,ze.jsx)(r_,{value:n,children:e})),[n]),r=y({role:"radiogroup"},r),r=il(y({store:n},r))})),i_=Le((e=>Be("div",o_(e))));const s_=(0,Uo.createContext)({}),a_=s_;function l_(e){const t=(0,Uo.useRef)(!0),n=(0,l.usePrevious)(e),r=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,Uo.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const c_=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,...a},c){const u=(0,l.useInstanceId)(c_,"toggle-group-control-as-radio-group"),d=s||u,{value:p,defaultValue:h}=l_(i),f=r?e=>{r(null!=e?e:void 0)}:void 0,m=Qw({defaultValue:h,value:p,setValue:f}),g=m.useState("value"),v=m.setValue,b=(0,Uo.useMemo)((()=>({baseId:d,isBlock:!t,size:o,value:g,setValue:v})),[d,t,o,g,v]);return(0,ze.jsx)(a_.Provider,{value:b,children:(0,ze.jsx)(i_,{store:m,"aria-label":n,render:(0,ze.jsx)(ya,{}),...a,id:d,ref:c,children:e})})}));function u_({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,Uo.useState)(o);let a;return a=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,a]}const d_=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,...a},c){const u=(0,l.useInstanceId)(d_,"toggle-group-control-as-button-group"),d=s||u,{value:p,defaultValue:h}=l_(i),[f,m]=u_({defaultValue:h,value:p,onChange:r}),g=(0,Uo.useMemo)((()=>({baseId:d,value:f,setValue:m,isBlock:!t,isDeselectable:!0,size:o})),[d,f,m,t,o]);return(0,ze.jsx)(a_.Provider,{value:g,children:(0,ze.jsx)(ya,{"aria-label":n,...a,ref:c,role:"group",children:e})})}));const p_=oa((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,className:o,isAdaptiveWidth:i=!1,isBlock:s=!1,isDeselectable:a=!1,label:c,hideLabelFromVision:u=!1,help:d,onChange:p,size:h="default",value:f,children:m,...g}=ra(e,"ToggleGroupControl"),v=(0,l.useInstanceId)(p_,"toggle-group-control"),b=r&&"default"===h?"__unstable-large":h,x=na(),y=(0,Uo.useMemo)((()=>x((({isBlock:e,isDeselectable:t,size:n})=>Ea("background:",Na.ui.background,";border:1px solid transparent;border-radius:",bv.controlBorderRadius,";display:inline-flex;min-width:0;position:relative;",qw(n)," ",!t&&Gw(e),";",""))({isBlock:s,isDeselectable:a,size:b}),s&&Xw,o)),[o,x,s,a,b]),w=a?d_:c_;return(0,ze.jsxs)(Dx,{help:d,__nextHasNoMarginBottom:n,children:[!u&&(0,ze.jsx)(Zw,{children:(0,ze.jsx)(Dx.VisualLabel,{children:c})}),(0,ze.jsx)(w,{...g,className:y,isAdaptiveWidth:i,label:c,onChange:p,ref:t,size:b,value:f,children:(0,ze.jsx)(Uw,{id:v,children:m})})]})}),"ToggleGroupControl"),h_=p_;var f_=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i}=t,s=_(t,["store","name","value","checked"]);const a=t_();n=n||a;const l=Se(s.id),u=(0,c.useRef)(null),d=Vt(n,(e=>null!=i?i:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(o,null==e?void 0:e.value)));(0,c.useEffect)((()=>{if(!l)return;if(!d)return;(null==n?void 0:n.getState().activeId)===l||null==n||n.setActiveId(l)}),[n,d,l]);const p=s.onChange,h=function(e,t){return"input"===e&&(!t||"radio"===t)}(Ce(u,s.as||"input"),s.type),f=B(s),[m,g]=je();(0,c.useEffect)((()=>{const e=u.current;e&&(h||(void 0!==d&&(e.checked=d),void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[m,h,d,r,o]);const v=we((e=>{if(f)return e.preventDefault(),void e.stopPropagation();h||(e.currentTarget.checked=!0,g()),null==p||p(e),e.defaultPrevented||null==n||n.setValue(o)})),b=s.onClick,x=we((e=>{null==b||b(e),e.defaultPrevented||h||v(e)})),S=s.onFocus,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!h)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(l&&r!==l||v(e))}));return s=w(y({id:l,role:h?void 0:"radio",type:h?"radio":void 0,"aria-checked":d},s),{ref:_e(u,s.ref),onChange:v,onClick:x,onFocus:C}),s=Gt(y({store:n,clickOnEnter:!h},s)),y({name:h?r:void 0,value:h?o:void 0,checked:d},s)})),m_=Fe((e=>Be("input",f_(e))));const g_=ba("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),v_={name:"82a6rk",styles:"flex:1"},b_=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>Ea("align-items:center;appearance:none;background:transparent;border:none;border-radius:",bv.controlBorderRadius,";color:",Na.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",bv.transitionDurationFast," linear,color ",bv.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",bv.toggleGroupControlBackgroundColor,";}",e&&y_," ",t&&__({size:r})," ",n&&x_,";",""),x_=Ea("color:",Na.white,";&:active{background:transparent;}",""),y_=Ea("color:",Na.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Na.white,",0 0 0 ",bv.borderWidthFocus," ",Na.theme.accent,";outline:2px solid transparent;}",""),w_=ba("div",{target:"et6ln9s0"})("display:flex;font-size:",bv.fontSize,";line-height:1;"),__=({size:e="default"})=>Ea("color:",Na.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),S_=Ea("background:",Na.gray[900],";border-radius:",bv.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:C_,LabelView:k_}=t,j_={duration:0},E_=({showTooltip:e,text:t,children:n})=>e&&t?(0,ze.jsx)(ri,{text:t,placement:"top",children:n}):(0,ze.jsx)(ze.Fragment,{children:n});const P_=oa((function e(t,n){const r=(0,l.useReducedMotion)(),o=(0,Uo.useContext)(s_),i=ra({...t,id:(0,l.useInstanceId)(e,o.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:a=!1,size:c="default"}=o,{className:u,isIcon:d=!1,value:p,children:h,showTooltip:f=!1,onFocus:m,...g}=i,v=o.value===p,b=na(),x=(0,Uo.useMemo)((()=>b(s&&v_)),[b,s]),y=(0,Uo.useMemo)((()=>b(b_({isDeselectable:a,isIcon:d,isPressed:v,size:c}),u)),[b,a,d,v,c,u]),w=(0,Uo.useMemo)((()=>b(S_)),[b]),_={...g,className:y,"data-value":p,ref:n};return(0,ze.jsxs)(k_,{className:x,children:[(0,ze.jsx)(E_,{showTooltip:f,text:g["aria-label"],children:a?(0,ze.jsx)("button",{..._,onFocus:m,"aria-pressed":v,type:"button",onClick:()=>{a&&v?o.setValue(void 0):o.setValue(p)},children:(0,ze.jsx)(C_,{children:h})}):(0,ze.jsx)(m_,{render:(0,ze.jsx)("button",{type:"button",..._,onFocus:e=>{m?.(e),e.defaultPrevented||o.setValue(p)}}),value:p,children:(0,ze.jsx)(C_,{children:h})})}),v?(0,ze.jsx)(Hm.div,{layout:!0,layoutRoot:!0,children:(0,ze.jsx)(Hm.div,{className:w,transition:r?j_:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"})}):null]})}),"ToggleGroupControlOptionBase"),T_=P_;const I_=(0,Uo.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,ze.jsx)(T_,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t,children:(0,ze.jsx)(Bx,{icon:n})})})),M_=I_,R_=[{label:(0,a.__)("Solid"),icon:Lw,value:"solid"},{label:(0,a.__)("Dashed"),icon:Fw,value:"dashed"},{label:(0,a.__)("Dotted"),icon:Bw,value:"dotted"}];const N_=oa((function({onChange:e,...t},n){return(0,ze.jsx)(h_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t,children:R_.map((e=>(0,ze.jsx)(M_,{value:e.value,icon:e.icon,label:e.label},e.value)))})}),"BorderControlStylePicker");const A_=(0,Uo.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,ze.jsx)("span",{className:s("component-color-indicator",n),style:{background:r},ref:t,...o})}));var D_=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},O_=function(e){return.2126*D_(e.r)+.7152*D_(e.g)+.0722*D_(e.b)};function z_(e){e.prototype.luminance=function(){return e=O_(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,s,a,l,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),n=(a=O_(i))>(l=O_(s))?(a+.05)/(l+.05):(l+.05)/(a+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(s=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===s?7:"AA"===o&&"large"===s?3:4.5);var n,r,o,i,s}}const L_=oa(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:a,headerTitle:c,focusOnMount:u,popoverProps:d,onClose:p,onToggle:h,style:f,open:m,defaultOpen:g,position:v,variant:b}=ra(e,"Dropdown");void 0!==v&&Ko()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[x,y]=(0,Uo.useState)(null),w=(0,Uo.useRef)(),[_,S]=u_({defaultValue:g,value:m,onChange:h});function C(){p?.(),S(!1)}const k={isOpen:!!_,onToggle:()=>S(!_),onClose:C},j=!!(d?.anchor||d?.anchorRef||d?.getAnchorRect||d?.anchorRect);return(0,ze.jsxs)("div",{className:o,ref:(0,l.useMergeRefs)([w,t,y]),tabIndex:-1,style:f,children:[r(k),_&&(0,ze.jsx)(bw,{position:v,onClose:C,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||C()},expandOnMobile:a,headerTitle:c,focusOnMount:u,offset:13,anchor:j?void 0:x,variant:b,...d,className:s("components-dropdown__content",d?.className,i),children:n(k)})]})}),"Dropdown"),F_=L_;const B_=oa((function(e,t){const n=ra(e,"InputControlSuffixWrapper");return(0,ze.jsx)(Sg,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),V_=({disabled:e})=>e?Ea({color:Na.ui.textDisabled},"",""):"",$_=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);return Ea(r[n]||r.default,"","")},H_=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,compact:8,"__unstable-large":16};e||(r.default=r.compact);const o=r[n]||r.default;return yg({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})},W_=({multiple:e})=>({overflow:e?"auto":"hidden"}),U_=ba("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Na.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",V_,";",Kv,";",$_,";",H_,";",W_,";}"),G_=ba("div",{target:"e1mv6sxx1"})("margin-inline-end:",ng(-1),";line-height:0;"),K_=ba(B_,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",yg({right:0}),";");const Y_=(0,Uo.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Uo.cloneElement)(e,{width:t,height:t,...n,ref:r})})),q_=(0,ze.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),X_=()=>(0,ze.jsx)(K_,{children:(0,ze.jsx)(G_,{children:(0,ze.jsx)(Y_,{icon:q_,size:18})})});const Z_=(0,Uo.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:a,label:c,multiple:u=!1,onChange:d,options:p=[],size:h="default",value:f,labelPosition:m="top",children:g,prefix:v,suffix:b,__next40pxDefaultSize:x=!1,__nextHasNoMarginBottom:y=!1,...w}=ib(e),_=function(e){const t=(0,l.useInstanceId)(Z_);return e||`inspector-select-control-${t}`}(a),S=o?`${_}__help`:void 0;if(!p?.length&&!g)return null;const C=s("components-select-control",n);return(0,ze.jsx)(Dx,{help:o,id:_,__nextHasNoMarginBottom:y,children:(0,ze.jsx)(lb,{className:C,disabled:r,hideLabelFromVision:i,id:_,label:c,size:h,suffix:b||!u&&(0,ze.jsx)(X_,{}),prefix:v,labelPosition:m,__next40pxDefaultSize:x,children:(0,ze.jsx)(U_,{...w,__next40pxDefaultSize:x,"aria-describedby":S,className:"components-select-control__input",disabled:r,id:_,multiple:u,onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},ref:t,selectSize:h,value:f,children:g||p.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,ze.jsx)("option",{value:e.value,disabled:e.disabled,hidden:e.hidden,children:e.label},n)}))})})})})),J_=Z_,Q_={initial:void 0,fallback:""};const eS=function(e,t=Q_){const{initial:n,fallback:r}={...Q_,...t},[o,i]=(0,Uo.useState)(e),s=Pg(e);return(0,Uo.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(Pg))&&void 0!==n?n:t}([e,o,n],r),(0,Uo.useCallback)((e=>{s||i(e)}),[s])]};function tS(e,t,n){return"number"!=typeof e?null:parseFloat(`${Zx(e,t,n)}`)}const nS=30,rS=()=>Ea({height:nS,minHeight:nS},"",""),oS=12,iS=({__next40pxDefaultSize:e})=>!e&&Ea({minHeight:nS},"",""),sS=ba("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",iS,";"),aS=({color:e=Na.ui.borderFocus})=>Ea({color:e},"",""),lS=({marks:e,__nextHasNoMarginBottom:t})=>t?"":Ea({marginBottom:e?16:void 0},"",""),cS=ba("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",aS,";",rS,";",lS,";"),uS=ba("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",yg({marginRight:6}),";"),dS=ba("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",yg({marginLeft:6}),";"),pS=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Na.ui.backgroundDisabled),Ea({background:n},"","")},hS=ba("span",{target:"e1epgpqk10"})("background-color:",Na.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",pS,";"),fS=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Na.gray[400]),Ea({background:n},"","")},mS=ba("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",fS,";"),gS=ba("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),vS=({disabled:e,isFilled:t})=>{let n=t?"currentColor":Na.gray[300];return e&&(n=Na.gray[400]),Ea({backgroundColor:n},"","")},bS=ba("span",{target:"e1epgpqk7"})("height:",oS,"px;left:0;position:absolute;top:-4px;width:1px;",vS,";"),xS=({isFilled:e})=>Ea({color:e?Na.gray[700]:Na.gray[300]},"",""),yS=ba("span",{target:"e1epgpqk6"})("color:",Na.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",xS,";"),wS=({disabled:e})=>Ea("background-color:",e?Na.gray[400]:Na.theme.accent,";",""),_S=ba("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",oS,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",oS,"px;border-radius:50%;",wS,";",yg({marginLeft:-10}),";",yg({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),SS=({isFocused:e})=>e?Ea("&::before{content:' ';position:absolute;background-color:",Na.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):"",CS=ba("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",wS,";",SS,";"),kS=ba("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",oS,"px );"),jS=({show:e})=>Ea({opacity:e?1:0},"","");var ES={name:"1cypxip",styles:"top:-80%"},PS={name:"1lr98c4",styles:"bottom:-80%"};const TS=({position:e})=>"bottom"===e?PS:ES,IS=ba("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}",jS,";",TS,";",yg({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),MS=ba(sy,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",rS,";}",yg({marginLeft:`${ng(4)} !important`}),";"),RS=ba("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",rS,";}",yg({marginLeft:8}),";");const NS=(0,Uo.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,ze.jsx)(kS,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function AS(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,a=s("components-range-control__mark",n&&"is-filled",t),l=s("components-range-control__mark-label",n&&"is-filled");return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(bS,{...i,"aria-hidden":"true",className:a,isFilled:n,style:o}),r&&(0,ze.jsx)(yS,{"aria-hidden":"true",className:l,isFilled:n,style:o,children:r})]})}function DS(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...a}=e;return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(hS,{disabled:t,...a}),n&&(0,ze.jsx)(OS,{disabled:t,marks:n,min:r,max:o,step:i,value:s})]})}function OS(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const s=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const l=`mark-${r}`,c=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,a.isRTL)()?"right":"left"]:u};s.push({...e,isFilled:c,key:l,style:d})})),s}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,ze.jsx)(gS,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map((e=>(0,c.createElement)(AS,{...e,key:e.key,"aria-hidden":"true",disabled:t})))})}function zS(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:a=0,renderTooltipContent:l=(e=>e),zIndex:c=100,...u}=e,d=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,Uo.useState)(),o=(0,Uo.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Uo.useEffect)((()=>{o()}),[o]),(0,Uo.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=s("components-simple-tooltip",t),h={...i,zIndex:c};return(0,ze.jsx)(IS,{...u,"aria-hidden":o,className:p,position:d,show:o,role:"tooltip",style:h,children:l(a)})}const LS=()=>{};const FS=(0,Uo.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:c,className:u,color:d=Na.theme.accent,currentInput:p,disabled:h=!1,help:f,hideLabelFromVision:m=!1,initialPosition:g,isShiftStepEnabled:v=!0,label:b,marks:x=!1,max:y=100,min:w=0,onBlur:_=LS,onChange:S=LS,onFocus:C=LS,onMouseLeave:k=LS,onMouseMove:j=LS,railColor:E,renderTooltipContent:P=(e=>e),resetFallbackValue:T,__next40pxDefaultSize:I=!1,shiftStep:M=10,showTooltip:R,step:N=1,trackColor:A,value:D,withInputField:O=!0,...z}=t,[L,F]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=eS(tS(r,t,n),{initial:tS(null!=o?o:null,t,n),fallback:null});return[i,(0,Uo.useCallback)((e=>{s(null===e?null:tS(e,t,n))}),[t,n,s])]}({min:w,max:y,value:null!=D?D:null,initial:g}),B=(0,Uo.useRef)(!1);let V=R,$=O;"any"===N&&(V=!1,$=!1);const[H,W]=(0,Uo.useState)(V),[U,G]=(0,Uo.useState)(!1),K=(0,Uo.useRef)(),Y=K.current?.matches(":focus"),q=!h&&U,X=null===L,Z=X?"":void 0!==L?L:p,J=X?(y-w)/2+w:L,Q=`${Zx(X?50:(L-w)/(y-w)*100,0,100)}%`,ee=s("components-range-control",u),te=s("components-range-control__wrapper",!!x&&"is-marked"),ne=(0,l.useInstanceId)(e,"inspector-range-control"),re=f?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(L),ie=()=>{let e=parseFloat(`${T}`),t=e;isNaN(e)&&(e=null,t=void 0),F(e),S(t)},se={[(0,a.isRTL)()?"right":"left"]:Q};return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:r,className:ee,label:b,hideLabelFromVision:m,id:`${ne}`,help:f,children:(0,ze.jsxs)(sS,{className:"components-range-control__root",__next40pxDefaultSize:I,children:[c&&(0,ze.jsx)(uS,{children:(0,ze.jsx)(Bx,{icon:c})}),(0,ze.jsxs)(cS,{__nextHasNoMarginBottom:r,className:te,color:d,marks:!!x,children:[(0,ze.jsx)(NS,{...z,className:"components-range-control__slider",describedBy:re,disabled:h,id:`${ne}`,label:b,max:y,min:w,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);F(t),S(t)},onFocus:e=>{C(e),G(!0),W(!0)},onMouseMove:j,onMouseLeave:k,ref:(0,l.useMergeRefs)([K,n]),step:N,value:null!=Z?Z:void 0}),(0,ze.jsx)(DS,{"aria-hidden":!0,disabled:h,marks:x,max:y,min:w,railColor:E,step:N,value:J}),(0,ze.jsx)(mS,{"aria-hidden":!0,className:"components-range-control__track",disabled:h,style:{width:Q},trackColor:A}),(0,ze.jsx)(_S,{className:"components-range-control__thumb-wrapper",style:se,disabled:h,children:(0,ze.jsx)(CS,{"aria-hidden":!0,isFocused:q,disabled:h})}),oe&&(0,ze.jsx)(zS,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:Y||H,style:se,value:L})]}),o&&(0,ze.jsx)(dS,{children:(0,ze.jsx)(Bx,{icon:o})}),$&&(0,ze.jsx)(MS,{"aria-label":b,className:"components-range-control__number",disabled:h,inputMode:"decimal",isShiftStepEnabled:v,max:y,min:w,onBlur:()=>{B.current&&(ie(),B.current=!1)},onChange:e=>{let t=parseFloat(e);F(t),isNaN(t)?i&&(B.current=!0):((t<w||t>y)&&(t=tS(t,w,y)),S(t),B.current=!1)},shiftStep:M,size:I?"__unstable-large":"default",__unstableInputWidth:ng(I?20:16),step:N,value:Z}),i&&(0,ze.jsx)(RS,{children:(0,ze.jsx)(Hx,{className:"components-range-control__reset",disabled:h||void 0===L,variant:"secondary",size:"small",onClick:ie,children:(0,a.__)("Reset")})})]})})})),BS=FS,VS=ba(sy,{target:"ez9hsf47"})("width:",ng(24),";"),$S=ba(J_,{target:"ez9hsf46"})("margin-left:",ng(-2),";width:5em;"),HS=ba(BS,{target:"ez9hsf45"})("flex:1;margin-right:",ng(2),";"),WS=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${ng(2)} );\n\tmargin-left: ${ng(1)};\n}`,US=ba("div",{target:"ez9hsf44"})("padding-top:",ng(2),";padding-right:0;padding-left:0;padding-bottom:0;"),GS=ba(ry,{target:"ez9hsf43"})("padding-left:",ng(4),";padding-right:",ng(4),";"),KS=ba(dg,{target:"ez9hsf42"})("padding-top:",ng(4),";padding-left:",ng(4),";padding-right:",ng(3),";padding-bottom:",ng(5),";"),YS=ba("div",{target:"ez9hsf41"})(Sx,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",ng(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",ng(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",bv.borderWidthFocus," #fff;}",WS,";"),qS=ba(Hx,{target:"ez9hsf40"})("&&&&&{min-width:",ng(6),";padding:0;>svg{margin-right:0;}}"),XS=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),ZS=e=>{const{color:t,colorType:n}=e,[r,o]=(0,Uo.useState)(null),i=(0,Uo.useRef)(),s=(0,l.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,Uo.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,ze.jsx)(ri,{delay:0,hideOnClick:!1,text:r===t.toHex()?(0,a.__)("Copied!"):(0,a.__)("Copy"),children:(0,ze.jsx)(qS,{size:"small",ref:s,icon:XS,showTooltip:!1})})},JS=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,ze.jsxs)(ry,{spacing:4,children:[(0,ze.jsx)(VS,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,ze.jsx)(Sg,{as:Dv,paddingLeft:ng(4),color:Na.theme.accent,lineHeight:1,children:r}),spinControls:"none",size:"__unstable-large"}),(0,ze.jsx)(HS,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})]}),QS=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a:s}=e.toRgb();return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(JS,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(av({r:e,g:o,b:i,a:s}))}),(0,ze.jsx)(JS,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(av({r,g:e,b:i,a:s}))}),(0,ze.jsx)(JS,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(av({r,g:o,b:e,a:s}))}),n&&(0,ze.jsx)(JS,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(av({r,g:o,b:i,a:e/100}))})]})},eC=({color:e,onChange:t,enableAlpha:n})=>{const r=(0,Uo.useMemo)((()=>e.toHsl()),[e]),[o,i]=(0,Uo.useState)({...r}),s=e.isEqual(av(o));(0,Uo.useEffect)((()=>{s||i(r)}),[r,s]);const a=s?o:r,l=n=>{const r=av({...a,...n});e.isEqual(r)?i((e=>({...e,...n}))):t(r)};return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(JS,{min:0,max:359,label:"Hue",abbreviation:"H",value:a.h,onChange:e=>{l({h:e})}}),(0,ze.jsx)(JS,{min:0,max:100,label:"Saturation",abbreviation:"S",value:a.s,onChange:e=>{l({s:e})}}),(0,ze.jsx)(JS,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a.l,onChange:e=>{l({l:e})}}),n&&(0,ze.jsx)(JS,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a.a),onChange:e=>{l({a:e/100})}})]})},tC=({color:e,onChange:t,enableAlpha:n})=>(0,ze.jsx)(zx,{prefix:(0,ze.jsx)(Sg,{as:Dv,marginLeft:ng(4),color:Na.theme.accent,lineHeight:1,children:"#"}),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(av(n))},maxLength:n?9:7,label:(0,a.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),nC=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,ze.jsx)(eC,{...o});case"rgb":return(0,ze.jsx)(QS,{...o});default:return(0,ze.jsx)(tC,{...o})}};function rC(){return(rC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function oC(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function iC(e){var t=(0,c.useRef)(e),n=(0,c.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var sC=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},aC=function(e){return"touches"in e},lC=function(e){return e&&e.ownerDocument.defaultView||self},cC=function(e,t,n){var r=e.getBoundingClientRect(),o=aC(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:sC((o.pageX-(r.left+lC(e).pageXOffset))/r.width),top:sC((o.pageY-(r.top+lC(e).pageYOffset))/r.height)}},uC=function(e){!aC(e)&&e.preventDefault()},dC=c.memo((function(e){var t=e.onMove,n=e.onKey,r=oC(e,["onMove","onKey"]),o=(0,c.useRef)(null),i=iC(t),s=iC(n),a=(0,c.useRef)(null),l=(0,c.useRef)(!1),u=(0,c.useMemo)((function(){var e=function(e){uC(e),(aC(e)?e.touches.length>0:e.buttons>0)&&o.current?i(cC(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=lC(o.current),s=n?i.addEventListener:i.removeEventListener;s(r?"touchmove":"mousemove",e),s(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(uC(t),!function(e,t){return t&&!aC(e)}(t,l.current)&&r)){if(aC(t)){l.current=!0;var s=t.changedTouches||[];s.length&&(a.current=s[0].identifier)}r.focus(),i(cC(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,i]),d=u[0],p=u[1],h=u[2];return(0,c.useEffect)((function(){return h}),[h]),c.createElement("div",rC({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))})),pC=function(e){return e.filter(Boolean).join(" ")},hC=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=pC(["react-colorful__pointer",e.className]);return c.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},c.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},fC=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},mC=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:fC(e.h),s:fC(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:fC(o/2),a:fC(r,2)}}),gC=function(e){var t=mC(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},vC=function(e){var t=mC(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},bC=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:fC(255*[r,a,s,s,l,r][c]),g:fC(255*[l,r,r,a,s,s][c]),b:fC(255*[s,s,l,r,r,a][c]),a:fC(o,2)}},xC=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?wC({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},yC=xC,wC=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:fC(60*(a<0?a+6:a)),s:fC(i?s/i*100:0),v:fC(i/255*100),a:o}},_C=c.memo((function(e){var t=e.hue,n=e.onChange,r=pC(["react-colorful__hue",e.className]);return c.createElement("div",{className:r},c.createElement(dC,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:sC(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":fC(t),"aria-valuemax":"360","aria-valuemin":"0"},c.createElement(hC,{className:"react-colorful__hue-pointer",left:t/360,color:gC({h:t,s:100,v:100,a:1})})))})),SC=c.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:gC({h:t.h,s:100,v:100,a:1})};return c.createElement("div",{className:"react-colorful__saturation",style:r},c.createElement(dC,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:sC(t.s+100*e.left,0,100),v:sC(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+fC(t.s)+"%, Brightness "+fC(t.v)+"%"},c.createElement(hC,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:gC(t)})))})),CC=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},kC=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function jC(e,t,n){var r=iC(n),o=(0,c.useState)((function(){return e.toHsva(t)})),i=o[0],s=o[1],a=(0,c.useRef)({color:t,hsva:i});(0,c.useEffect)((function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},s(n)}}),[t,e]),(0,c.useEffect)((function(){var t;CC(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,c.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var EC,PC="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,TC=new Map,IC=function(e){PC((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!TC.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',TC.set(t,n);var r=EC||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},MC=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=oC(e,["className","colorModel","color","onChange"]),a=(0,c.useRef)(null);IC(a);var l=jC(n,o,i),u=l[0],d=l[1],p=pC(["react-colorful",t]);return c.createElement("div",rC({},s,{ref:a,className:p}),c.createElement(SC,{hsva:u,onChange:d}),c.createElement(_C,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},RC=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+vC(Object.assign({},n,{a:0}))+", "+vC(Object.assign({},n,{a:1}))+")"},i=pC(["react-colorful__alpha",t]),s=fC(100*n.a);return c.createElement("div",{className:i},c.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),c.createElement(dC,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:sC(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},c.createElement(hC,{className:"react-colorful__alpha-pointer",left:n.a,color:vC(n)})))},NC=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=oC(e,["className","colorModel","color","onChange"]),a=(0,c.useRef)(null);IC(a);var l=jC(n,o,i),u=l[0],d=l[1],p=pC(["react-colorful",t]);return c.createElement("div",rC({},s,{ref:a,className:p}),c.createElement(SC,{hsva:u,onChange:d}),c.createElement(_C,{hue:u.h,onChange:d}),c.createElement(RC,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},AC={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xC,fromHsva:function(e){var t=bC(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:kC},DC=function(e){return c.createElement(NC,rC({},e,{colorModel:AC}))},OC={defaultColor:"rgb(0, 0, 0)",toHsva:yC,fromHsva:function(e){var t=bC(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:kC},zC=function(e){return c.createElement(MC,rC({},e,{colorModel:OC}))};const LC=({color:e,enableAlpha:t,onChange:n})=>{const r=t?DC:zC,o=(0,Uo.useMemo)((()=>e.toRgbString()),[e]);return(0,ze.jsx)(r,{color:o,onChange:e=>{n(av(e))},onPointerDown:({currentTarget:e,pointerId:t})=>{e.setPointerCapture(t)},onPointerUp:({currentTarget:e,pointerId:t})=>{e.releasePointerCapture(t)}})};cv([uv]);const FC=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],BC={InputBase:{isBorderless:!0}},VC=oa(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...c}=ra(e,"ColorPicker"),[u,d]=u_({onChange:o,value:r,defaultValue:i}),p=(0,Uo.useMemo)((()=>av(u||"")),[u]),h=(0,l.useDebounce)(d),f=(0,Uo.useCallback)((e=>{h(e.toHex())}),[h]),[m,g]=(0,Uo.useState)(s||"hex");return(0,ze.jsxs)(YS,{ref:t,...c,children:[(0,ze.jsx)(LC,{onChange:f,color:p,enableAlpha:n}),(0,ze.jsxs)(US,{children:[(0,ze.jsxs)(GS,{justify:"space-between",children:[(0,ze.jsx)(hi,{value:BC,children:(0,ze.jsx)($S,{__nextHasNoMarginBottom:!0,options:FC,value:m,onChange:e=>g(e),label:(0,a.__)("Color format"),hideLabelFromVision:!0})}),(0,ze.jsx)(ZS,{color:p,colorType:s||m})]}),(0,ze.jsx)(KS,{direction:"column",gap:2,children:(0,ze.jsx)(nC,{colorType:m,color:p,onChange:f,enableAlpha:n})})]})]})}),"ColorPicker"),$C=VC;function HC(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const WC=Ci((e=>{const t=av(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function UC(e){const{onChangeComplete:t}=e,n=(0,Uo.useCallback)((e=>{t(WC(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:HC(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const GC=e=>(0,ze.jsx)($C,{...UC(e)}),KC=(0,Uo.createContext)({}),YC=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})});const qC=(0,Uo.forwardRef)((function(e,t){const{isPressed:n,...r}=e;return(0,ze.jsx)(Hx,{...r,"aria-pressed":n,ref:t})}));const XC=(0,Uo.forwardRef)((function(e,t){const{id:n,isSelected:r,compositeStore:o,...i}=e,s=o.useState("activeId");return r&&!s&&o.setActiveId(n),(0,ze.jsx)(Kt,{render:(0,ze.jsx)(Hx,{...i,role:"option","aria-selected":!!r,ref:t}),store:o,id:n})}));function ZC(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:s,...l}=e,c=rl({focusLoop:i,rtl:(0,a.isRTL)()}),u={baseId:r,compositeStore:c};return(0,ze.jsx)("div",{className:o,children:(0,ze.jsxs)(KC.Provider,{value:u,children:[(0,ze.jsx)(sl,{...l,id:r,store:c,role:"listbox",children:n}),s,t]})})}function JC(e){const{actions:t,options:n,children:r,baseId:o,...i}=e;return(0,ze.jsx)("div",{...i,id:o,children:(0,ze.jsxs)(KC.Provider,{value:{baseId:o},children:[n,r,t]})})}function QC(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...a}=e,c=(0,l.useInstanceId)(QC,"components-circular-option-picker",a.id),u=t?JC:ZC,d=n?(0,ze.jsx)("div",{className:"components-circular-option-picker__custom-clear-wrapper",children:n}):void 0,p=(0,ze.jsx)("div",{className:"components-circular-option-picker__swatches",children:r});return(0,ze.jsx)(u,{...a,baseId:c,className:s("components-circular-option-picker",i),actions:d,options:p,children:o})}QC.Option=function e({className:t,isSelected:n,selectedIconProps:r={},tooltipText:o,...i}){const{baseId:a,compositeStore:c}=(0,Uo.useContext)(KC),u={id:(0,l.useInstanceId)(e,a||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...i},d=c?(0,ze.jsx)(XC,{...u,compositeStore:c,isSelected:n}):(0,ze.jsx)(qC,{...u,isPressed:n});return(0,ze.jsxs)("div",{className:s(t,"components-circular-option-picker__option-wrapper"),children:[o?(0,ze.jsx)(ri,{text:o,children:d}):d,n&&(0,ze.jsx)(Y_,{icon:YC,...r})]})},QC.OptionGroup=function({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,ze.jsx)("div",{...n,role:r,className:s("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e),children:t})},QC.ButtonAction=function({className:e,children:t,...n}){return(0,ze.jsx)(Hx,{className:s("components-circular-option-picker__clear",e),variant:"tertiary",...n,children:t})},QC.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,ze.jsx)(F_,{className:s("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,ze.jsx)(Hx,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e,children:r}),...n})};const ek=QC;const tk=oa((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=ra(e,"VStack");return ny({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"VStack");const nk=oa((function(e,t){const n=Ag(e);return(0,ze.jsx)(ya,{as:"span",...n,ref:t})}),"Truncate");const rk=oa((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=Na.gray[900],isBlock:o=!0,weight:i=bv.fontWeightHeading,...s}=ra(e,"Heading"),a=t||`h${n}`,l={};return"string"==typeof a&&"h"!==a[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...Av({color:r,isBlock:o,weight:i,size:Rv(n),...s}),...l,as:a}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Heading"),ok=rk;const ik=ba(ok,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),sk=({paddingSize:e="small"})=>{if("none"===e)return;const t={small:ng(2),medium:ng(4)};return Ea("padding:",t[e]||t.small,";","")},ak=ba("div",{target:"eovvns30"})("margin-left:",ng(-2),";margin-right:",ng(-2),";&:first-of-type{margin-top:",ng(-2),";}&:last-of-type{margin-bottom:",ng(-2),";}",sk,";");const lk=oa((function(e,t){const{paddingSize:n="small",...r}=ra(e,"DropdownContentWrapper");return(0,ze.jsx)(ak,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");cv([uv,z_]);const ck=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function uk({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const s=(0,Uo.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=av(e),l=o===e;return(0,ze.jsx)(ek.Option,{isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,a.sprintf)((0,a.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,a.sprintf)((0,a.__)("Color: %s"),n):(0,a.sprintf)((0,a.__)("Color code: %s"),e)},`${e}-${i}`)}))),[n,o,r,t]);return(0,ze.jsx)(ek.OptionGroup,{className:e,options:s,...i})}function dk({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const s=(0,l.useInstanceId)(dk,"color-palette");return 0===n.length?null:(0,ze.jsx)(tk,{spacing:3,className:e,children:n.map((({name:e,colors:n},a)=>{const l=`${s}-${a}`;return(0,ze.jsxs)(tk,{spacing:2,children:[(0,ze.jsx)(ik,{id:l,level:i,children:e}),(0,ze.jsx)(uk,{clearColor:t,colors:n,onChange:e=>r(e,a),value:o,"aria-labelledby":l})]},a)}))})}function pk({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,Uo.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,ze.jsx)(F_,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}cv([uv,z_]);const hk=(0,Uo.forwardRef)((function(e,t){const{asButtons:n,loop:r,clearable:o=!0,colors:i=[],disableCustomColors:l=!1,enableAlpha:c=!1,onChange:u,value:d,__experimentalIsRenderedInSidebar:p=!1,headingLevel:h=2,"aria-label":f,"aria-labelledby":m,...g}=e,[v,b]=(0,Uo.useState)(d),x=(0,Uo.useCallback)((()=>u(void 0)),[u]),y=(0,Uo.useCallback)((e=>{b(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?av(o).toHex():e})(d,e))}),[d]),w=ck(i),_=(0,Uo.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:av(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:av(n).toHex()))return t;return(0,a.__)("Custom")})(d,i,w)),[d,i,w]),S=d?.startsWith("#"),C=d?.replace(/^var\((.+)\)$/,"$1"),k=C?(0,a.sprintf)((0,a.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),_,C):(0,a.__)("Custom color picker."),j={clearColor:x,onChange:u,value:d},E=!!o&&(0,ze.jsx)(ek.ButtonAction,{onClick:x,children:(0,a.__)("Clear")});let P;if(n)P={asButtons:!0};else{const e={asButtons:!1,loop:r};P=f?{...e,"aria-label":f}:m?{...e,"aria-labelledby":m}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}return(0,ze.jsxs)(tk,{spacing:3,ref:t,...g,children:[!l&&(0,ze.jsx)(pk,{isRenderedInSidebar:p,renderContent:()=>(0,ze.jsx)(lk,{paddingSize:"none",children:(0,ze.jsx)(GC,{color:v,onChange:e=>u(e),enableAlpha:c})}),renderToggle:({isOpen:e,onToggle:t})=>(0,ze.jsxs)(tk,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[(0,ze.jsx)("button",{ref:y,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":k,style:{background:d},type:"button"}),(0,ze.jsxs)(tk,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[(0,ze.jsx)(nk,{className:"components-color-palette__custom-color-name",children:d?_:(0,a.__)("No color selected")}),(0,ze.jsx)(nk,{className:s("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":S}),children:C})]})]})}),(0,ze.jsx)(ek,{...P,actions:E,options:w?(0,ze.jsx)(dk,{...j,headingLevel:h,colors:i,value:d}):(0,ze.jsx)(uk,{...j,colors:i,value:d})})]})})),fk=hk,mk=ba(sy,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",Bv,"{transition:box-shadow 0.1s linear;}}"),gk=({selectSize:e})=>({small:Ea("box-sizing:border-box;padding:2px 1px;width:20px;color:",Na.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:Ea("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",ng(2),";padding:",ng(1),";color:",Na.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),vk=ba("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",gk,";color:",Na.gray[900],";}"),bk=({selectSize:e="default"})=>({small:Ea("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",yg({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Na.gray[100],";}&:focus{border:1px solid ",Na.ui.borderFocus,";box-shadow:inset 0 0 0 ",bv.borderWidth+" "+Na.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:Ea("display:flex;justify-content:center;align-items:center;&:hover{color:",Na.ui.borderFocus,";box-shadow:inset 0 0 0 ",bv.borderWidth+" "+Na.ui.borderFocus,";outline:",bv.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",bv.borderWidthFocus+" "+Na.ui.borderFocus,";outline:",bv.borderWidthFocus," solid transparent;}","")}[e]),xk=ba("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",gk,";",bk,";&:not( :disabled ){cursor:pointer;}}");const yk={name:"f3vz0n",styles:"font-weight:500"},wk=Ea("box-shadow:inset ",bv.controlBoxShadowFocus,";",""),_k=Ea("border:0;padding:0;margin:0;",Sx,";",""),Sk=Ea(mk,"{flex:0 0 auto;}",""),Ck=Ea("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",yg({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",bv.borderWidth," solid ",Na.ui.border,";&:focus,&:hover:not( :disabled ){",wk," border-color:",Na.ui.borderFocus,";z-index:1;position:relative;}}",""),kk=(e,t)=>{const{style:n}=e||{};return Ea("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Na.gray[300]:void 0;return Ea("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",ng(4),";width:",ng(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},jk=Ea("width:",228,"px;>div:first-of-type>",Px,"{margin-bottom:0;",yk,";}&& ",Px,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Ek=Ea("",""),Pk=Ea("",""),Tk=Ea("justify-content:center;width:100%;&&{border-top:",bv.borderWidth," solid ",Na.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),Ik="web"===Uo.Platform.OS,Mk={px:{value:"px",label:Ik?"px":(0,a.__)("Pixels (px)"),a11yLabel:(0,a.__)("Pixels (px)"),step:1},"%":{value:"%",label:Ik?"%":(0,a.__)("Percentage (%)"),a11yLabel:(0,a.__)("Percent (%)"),step:.1},em:{value:"em",label:Ik?"em":(0,a.__)("Relative to parent font size (em)"),a11yLabel:(0,a._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:Ik?"rem":(0,a.__)("Relative to root font size (rem)"),a11yLabel:(0,a._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:Ik?"vw":(0,a.__)("Viewport width (vw)"),a11yLabel:(0,a.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:Ik?"vh":(0,a.__)("Viewport height (vh)"),a11yLabel:(0,a.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:Ik?"vmin":(0,a.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,a.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:Ik?"vmax":(0,a.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,a.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:Ik?"ch":(0,a.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,a.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:Ik?"ex":(0,a.__)("x-height of the font (ex)"),a11yLabel:(0,a.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:Ik?"cm":(0,a.__)("Centimeters (cm)"),a11yLabel:(0,a.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:Ik?"mm":(0,a.__)("Millimeters (mm)"),a11yLabel:(0,a.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:Ik?"in":(0,a.__)("Inches (in)"),a11yLabel:(0,a.__)("Inches (in)"),step:.001},pc:{value:"pc",label:Ik?"pc":(0,a.__)("Picas (pc)"),a11yLabel:(0,a.__)("Picas (pc)"),step:1},pt:{value:"pt",label:Ik?"pt":(0,a.__)("Points (pt)"),a11yLabel:(0,a.__)("Points (pt)"),step:1},svw:{value:"svw",label:Ik?"svw":(0,a.__)("Small viewport width (svw)"),a11yLabel:(0,a.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:Ik?"svh":(0,a.__)("Small viewport height (svh)"),a11yLabel:(0,a.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:Ik?"svi":(0,a.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,a.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:Ik?"svb":(0,a.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,a.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:Ik?"svmin":(0,a.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,a.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:Ik?"lvw":(0,a.__)("Large viewport width (lvw)"),a11yLabel:(0,a.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:Ik?"lvh":(0,a.__)("Large viewport height (lvh)"),a11yLabel:(0,a.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:Ik?"lvi":(0,a.__)("Large viewport width or height (lvi)"),a11yLabel:(0,a.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:Ik?"lvb":(0,a.__)("Large viewport width or height (lvb)"),a11yLabel:(0,a.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:Ik?"lvmin":(0,a.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,a.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:Ik?"dvw":(0,a.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,a.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:Ik?"dvh":(0,a.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,a.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:Ik?"dvi":(0,a.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,a.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:Ik?"dvb":(0,a.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,a.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:Ik?"dvmin":(0,a.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,a.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:Ik?"dvmax":(0,a.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,a.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:Ik?"svmax":(0,a.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,a.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:Ik?"lvmax":(0,a.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,a.__)("Large viewport largest dimension (lvmax)"),step:.1}},Rk=Object.values(Mk),Nk=[Mk.px,Mk["%"],Mk.em,Mk.rem,Mk.vw,Mk.vh],Ak=Mk.px;function Dk(e,t,n){return zk(t?`${null!=e?e:""}${t}`:e,n)}function Ok(e){return Array.isArray(e)&&!!e.length}function zk(e,t=Rk){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let s;if(Ok(t)){const e=t.find((e=>e.value===i));s=e?.value}else s=Ak.value;return[r,s]}const Lk=({units:e=Rk,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=zk(n[e.value]);r[t].default=o}})),r};const Fk=e=>e.replace(/^var\((.+)\)$/,"$1"),Bk=oa(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:c,indicatorWrapperClassName:u,isStyleSettable:d,onReset:p,onColorChange:h,onStyleChange:f,popoverContentClassName:m,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,size:x,__unstablePopoverProps:y,...w}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:a,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=ra(e,"BorderControlDropdown"),[d]=zk(t?.width),p=0===d,h=na(),f=(0,Uo.useMemo)((()=>h(Ck,n)),[n,h]),m=(0,Uo.useMemo)((()=>h(Pk)),[h]),g=(0,Uo.useMemo)((()=>h(kk(t,l))),[t,h,l]),v=(0,Uo.useMemo)((()=>h(jk)),[h]),b=(0,Uo.useMemo)((()=>h(Ek)),[h]),x=(0,Uo.useMemo)((()=>h(Tk)),[h]);return{...u,border:t,className:f,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:m,indicatorWrapperClassName:g,onColorChange:e=>{s({color:e,style:"none"===t?.style?a:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:b,popoverControlsClassName:v,resetButtonClassName:x,size:l,__experimentalIsRenderedInSidebar:c}}(e),{color:_,style:S}=r||{},C=((e,t)=>{if(e&&t){if(ck(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(_,o),k=((e,t,n,r)=>{if(r){if(t){const e=Fk(t.color);return n?(0,a.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,a.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=Fk(e);return n?(0,a.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,a.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,a.__)("Border color and style picker.")}return t?(0,a.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,Fk(t.color)):e?(0,a.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',Fk(e)):(0,a.__)("Border color picker.")})(_,C,S,l),j=_||S&&"none"!==S,E=n?"bottom left":void 0;return(0,ze.jsx)(F_,{renderToggle:({onToggle:e})=>(0,ze.jsx)(Hx,{onClick:e,variant:"tertiary","aria-label":k,tooltipPosition:E,label:(0,a.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===x,children:(0,ze.jsx)("span",{className:u,children:(0,ze.jsx)(A_,{className:c,colorValue:_})})}),renderContent:({onClose:e})=>(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(lk,{paddingSize:"medium",children:(0,ze.jsxs)(tk,{className:g,spacing:6,children:[b?(0,ze.jsxs)(ry,{children:[(0,ze.jsx)(Px,{children:(0,a.__)("Border color")}),(0,ze.jsx)(Hx,{size:"small",label:(0,a.__)("Close border color"),icon:zw,onClick:e})]}):void 0,(0,ze.jsx)(fk,{className:m,value:_,onChange:h,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&d&&(0,ze.jsx)(N_,{label:(0,a.__)("Style"),value:S,onChange:f})]})}),j&&(0,ze.jsx)(lk,{paddingSize:"none",children:(0,ze.jsx)(Hx,{className:v,variant:"tertiary",onClick:()=>{p(),e()},children:(0,a.__)("Reset")})})]}),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown"),Vk=Bk;const $k=(0,Uo.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=Nk,...a},l){if(!Ok(i)||1===i?.length)return(0,ze.jsx)(vk,{className:"components-unit-control__unit-label",selectSize:r,children:o});const c=s("components-unit-control__select",e);return(0,ze.jsx)(xk,{ref:l,className:c,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...a,children:i.map((e=>(0,ze.jsx)("option",{value:e.value,children:e.label},e.value)))})}));const Hk=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:l=!1,disableUnits:c=!1,isPressEnterToChange:u=!1,isResetValueOnUnitChange:d=!1,isUnitSelectTabbable:p=!0,label:h,onChange:f,onUnitChange:m,size:g="default",unit:v,units:b=Nk,value:x,onFocus:y,...w}=ib(e);"unit"in e&&Ko()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=x?x:void 0,[S,C]=(0,Uo.useMemo)((()=>{const e=function(e,t,n=Rk){const r=Array.isArray(n)?[...n]:[],[,o]=Dk(e,t,Rk);return o&&!r.some((e=>e.value===o))&&Mk[o]&&r.unshift(Mk[o]),r}(_,v,b),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=wy(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),wy(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,v,b]),[k,j]=Dk(_,v,S),[E,P]=eS(1===S.length?S[0].value:v,{initial:j,fallback:""});(0,Uo.useEffect)((()=>{void 0!==j&&P(j)}),[j,P]);const T=s("components-unit-control","components-unit-control-wrapper",i);let I;!c&&p&&S.length&&(I=e=>{w.onKeyDown?.(e),!e.metaKey&&C.test(e.key)&&M.current?.focus()});const M=(0,Uo.useRef)(null),R=c?null:(0,ze.jsx)($k,{ref:M,"aria-label":(0,a.__)("Select unit"),disabled:l,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;d&&void 0!==n?.default&&(r=`${n.default}${e}`),f?.(r,t),m?.(e,t),P(e)},size:["small","compact"].includes(g)||"default"===g&&!w.__next40pxDefaultSize?"small":"default",unit:E,units:S,onFocus:y,onBlur:e.onBlur});let N=w.step;if(!N&&S){var A;const e=S.find((e=>e.value===E));N=null!==(A=e?.step)&&void 0!==A?A:1}return(0,ze.jsx)(mk,{...w,autoComplete:r,className:T,disabled:l,spinControls:"none",isPressEnterToChange:u,label:h,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void f?.("",t);const n=function(e,t,n,r){const[o,i]=zk(e,t),s=null!=o?o:n;let a=i||r;return!a&&Ok(t)&&(a=t[0].value),[s,a]}(e,S,k,E).join("");f?.(n,t)},ref:t,size:g,suffix:R,type:u?"text":"number",value:null!=k?k:"",step:N,onFocus:y,__unstableStateReducer:n})})),Wk=Hk,Uk=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function Gk(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:a=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:p,...h}=ra(e,"BorderControl"),f="default"===l&&p?"__unstable-large":l,[m,g]=zk(c?.width),v=g||"px",b=0===m,[x,y]=(0,Uo.useState)(),[w,_]=(0,Uo.useState)(),S=!a||Uk(c),C=(0,Uo.useCallback)((e=>{!a||Uk(e)?o(e):o(void 0)}),[o,a]),k=(0,Uo.useCallback)((e=>{const t=""===e?void 0:e,[n]=zk(e),r=0===n,o={...c,width:t};r&&!b&&(y(c?.color),_(c?.style),o.color=void 0,o.style="none"),!r&&b&&(void 0===o.color&&(o.color=x),"none"===o.style&&(o.style=w)),C(o)}),[c,b,x,w,C]),j=(0,Uo.useCallback)((e=>{k(`${e}${v}`)}),[k,v]),E=na(),P=(0,Uo.useMemo)((()=>E(_k,t)),[t,E]);let T=u;r&&(T="__unstable-large"===l?"116px":"90px");const I=(0,Uo.useMemo)((()=>{const e=!!T&&Sk,t=(e=>Ea("height:","__unstable-large"===e?"40px":"30px",";",""))(f);return E(Ea(mk,"{flex:1 1 40%;}&& ",xk,"{min-height:0;}",""),e,t)}),[T,E,f]),M=(0,Uo.useMemo)((()=>E(Ea("flex:1 1 60%;",yg({marginRight:ng(3)})(),";",""))),[E]);return{...h,className:P,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:I,inputWidth:T,isStyleSettable:S,onBorderChange:C,onSliderChange:j,onWidthChange:k,previousStyleSelection:w,sliderClassName:M,value:c,widthUnit:v,widthValue:m,size:f,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:p}}const Kk=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,ze.jsx)(wa,{as:"legend",children:t}):(0,ze.jsx)(Px,{as:"legend",children:t}):null},Yk=oa(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:u,inputWidth:d,isStyleSettable:p,label:h,onBorderChange:f,onSliderChange:m,onWidthChange:g,placeholder:v,__unstablePopoverProps:b,previousStyleSelection:x,showDropdownHeader:y,size:w,sliderClassName:_,value:S,widthUnit:C,widthValue:k,withSlider:j,__experimentalIsRenderedInSidebar:E,...P}=Gk(e);return(0,ze.jsxs)(ya,{as:"fieldset",...P,ref:t,children:[(0,ze.jsx)(Kk,{label:h,hideLabelFromVision:c}),(0,ze.jsxs)(ry,{spacing:4,className:u,children:[(0,ze.jsx)(Wk,{prefix:(0,ze.jsx)(Vk,{border:S,colors:r,__unstablePopoverProps:b,disableCustomColors:o,enableAlpha:s,enableStyle:l,isStyleSettable:p,onChange:f,previousStyleSelection:x,showDropdownHeader:y,__experimentalIsRenderedInSidebar:E,size:w}),label:(0,a.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:g,value:S?.width||"",placeholder:v,disableUnits:i,__unstableInputWidth:d,size:w}),j&&(0,ze.jsx)(BS,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})]})]})}),"BorderControl"),qk=Yk,Xk={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function Zk(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:a=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:p,...h}=ra(e,"Grid"),f=eg(Array.isArray(i)?i:[i]),m=eg(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${f}, 1fr )`,v=p||!!u&&`repeat( ${m}, 1fr )`,b=na();return{...h,className:(0,Uo.useMemo)((()=>{const e=function(e){return e?Xk[e]:{}}(n),i=Ea({alignItems:t,display:a?"inline-grid":"grid",gap:`calc( ${bv.gridBase} * ${s} )`,gridTemplateColumns:g||void 0,gridTemplateRows:v||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:a?"middle":void 0,...e},"","");return b(i,r)}),[t,n,r,o,b,s,g,v,a,l,c])}}const Jk=oa((function(e,t){const n=Zk(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Grid");function Qk(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...a}=ra(e,"BorderBoxControlSplitControls"),l=na(),c=(0,Uo.useMemo)((()=>l((e=>Ea("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...a,centeredClassName:(0,Uo.useMemo)((()=>l(Rw,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Uo.useMemo)((()=>l(Ea(yg({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:s}}const ej=oa(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:c,popoverPlacement:u,popoverOffset:d,rightAlignedClassName:p,size:h="default",value:f,__experimentalIsRenderedInSidebar:m,...g}=Qk(e),[v,b]=(0,Uo.useState)(null),x=(0,Uo.useMemo)((()=>u?{placement:u,offset:d,anchor:v,shift:!0}:void 0),[u,d,v]),y={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:m,size:h},w=(0,l.useMergeRefs)([b,t]);return(0,ze.jsxs)(Jk,{...g,ref:w,gap:4,children:[(0,ze.jsx)(Ow,{value:f,size:h}),(0,ze.jsx)(qk,{className:n,hideLabelFromVision:!0,label:(0,a.__)("Top border"),onChange:e=>c(e,"top"),__unstablePopoverProps:x,value:f?.top,...y}),(0,ze.jsx)(qk,{hideLabelFromVision:!0,label:(0,a.__)("Left border"),onChange:e=>c(e,"left"),__unstablePopoverProps:x,value:f?.left,...y}),(0,ze.jsx)(qk,{className:p,hideLabelFromVision:!0,label:(0,a.__)("Right border"),onChange:e=>c(e,"right"),__unstablePopoverProps:x,value:f?.right,...y}),(0,ze.jsx)(qk,{className:n,hideLabelFromVision:!0,label:(0,a.__)("Bottom border"),onChange:e=>c(e,"bottom"),__unstablePopoverProps:x,value:f?.bottom,...y})]})}),"BorderBoxControlSplitControls"),tj=ej,nj=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;const rj=["top","right","bottom","left"],oj=["color","style","width"],ij=e=>!e||!oj.some((t=>void 0!==e[t])),sj=e=>{if(!e)return!1;if(aj(e)){return!rj.every((t=>ij(e[t])))}return!ij(e)},aj=(e={})=>Object.keys(e).some((e=>-1!==rj.indexOf(e))),lj=e=>{if(!aj(e))return!1;const t=rj.map((t=>cj(e?.[t])));return!t.every((e=>e===t[0]))},cj=(e,t)=>{if(ij(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:s=r,width:a=o}=e;return[a,!!a&&"0"!==a||!!i?s||"solid":s,i].filter(Boolean).join(" ")},uj=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(nj);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function dj(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:a,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:c,...u}=ra(e,"BorderBoxControl"),d="default"===s&&c?"__unstable-large":s,p=lj(a),h=aj(a),f=h?(e=>{if(!e)return;const t=[],n=[],r=[];rj.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),s=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:s?r[0]:uj(r)}})(a):a,m=h?a:(e=>{if(e&&!ij(e))return{top:e,right:e,bottom:e,left:e}})(a),g=!isNaN(parseFloat(`${f?.width}`)),[v,b]=(0,Uo.useState)(!p),x=na(),y=(0,Uo.useMemo)((()=>x(Tw,t)),[x,t]),w=(0,Uo.useMemo)((()=>x(Ea("flex:1;",yg({marginRight:"24px"})(),";",""))),[x]),_=(0,Uo.useMemo)((()=>x(Iw)),[x]);return{...u,className:y,colors:n,disableUnits:p&&!g,enableAlpha:o,enableStyle:i,hasMixedBorders:p,isLinked:v,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!p||(t=e)&&oj.every((e=>void 0!==t[e])))return r(ij(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(f,e),o={top:{...a?.top,...n},right:{...a?.right,...n},bottom:{...a?.bottom,...n},left:{...a?.left,...n}};if(lj(o))return r(o);const i=ij(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};lj(n)?r(n):r(e)},toggleLinked:()=>b(!v),linkedValue:f,size:d,splitValue:m,wrapperClassName:_,__experimentalIsRenderedInSidebar:l}}const pj=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,ze.jsx)(wa,{as:"label",children:t}):(0,ze.jsx)(Px,{children:t}):null},hj=oa(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:c,hasMixedBorders:u,hideLabelFromVision:d,isLinked:p,label:h,linkedControlClassName:f,linkedValue:m,onLinkedChange:g,onSplitChange:v,popoverPlacement:b,popoverOffset:x,size:y,splitValue:w,toggleLinked:_,wrapperClassName:S,__experimentalIsRenderedInSidebar:C,...k}=dj(e),[j,E]=(0,Uo.useState)(null),P=(0,Uo.useMemo)((()=>b?{placement:b,offset:x,anchor:j,shift:!0}:void 0),[b,x,j]),T=(0,l.useMergeRefs)([E,t]);return(0,ze.jsxs)(ya,{className:n,...k,ref:T,children:[(0,ze.jsx)(pj,{label:h,hideLabelFromVision:d}),(0,ze.jsxs)(ya,{className:S,children:[p?(0,ze.jsx)(qk,{className:f,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:c,onChange:g,placeholder:u?(0,a.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:m,withSlider:!0,width:"__unstable-large"===y?"116px":"110px",__experimentalIsRenderedInSidebar:C,size:y}):(0,ze.jsx)(tj,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:c,onChange:v,popoverPlacement:b,popoverOffset:x,value:w,__experimentalIsRenderedInSidebar:C,size:y}),(0,ze.jsx)(Aw,{onClick:_,isLinked:p,size:y})]})]})}),"BorderBoxControl"),fj=hj;const mj=ba("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),gj=ba("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),vj=({isFocused:e})=>Ea({backgroundColor:"currentColor",opacity:e?1:.3},"",""),bj=ba("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",vj,";"),xj=ba(bj,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),yj=ba(bj,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),wj=ba(yj,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),_j=ba(xj,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),Sj=ba(yj,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),Cj=ba(xj,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function kj({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),a=o("bottom")||o("vertical"),l=o("left")||o("horizontal"),c=e/24;return(0,ze.jsx)(mj,{style:{transform:`scale(${c})`},...r,children:(0,ze.jsxs)(gj,{children:[(0,ze.jsx)(wj,{isFocused:i}),(0,ze.jsx)(_j,{isFocused:s}),(0,ze.jsx)(Sj,{isFocused:a}),(0,ze.jsx)(Cj,{isFocused:l})]})})}const jj=ba(Wk,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),Ej=ba(ry,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),Pj=ba(Hx,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),Tj=ba("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),Ij=ba(kj,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),Mj=ba(BS,{target:"e1jovhle0"})("width:100%;margin-inline-end:",ng(2),";"),Rj={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},Nj={all:(0,a.__)("All sides"),top:(0,a.__)("Top side"),bottom:(0,a.__)("Bottom side"),left:(0,a.__)("Left side"),right:(0,a.__)("Right side"),mixed:(0,a.__)("Mixed"),vertical:(0,a.__)("Top and bottom sides"),horizontal:(0,a.__)("Left and right sides")},Aj={top:void 0,right:void 0,bottom:void 0,left:void 0},Dj=["top","right","bottom","left"];function Oj(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function zj(e={},t,n=Dj){const r=function(e){const t=[];if(!e?.length)return Dj;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=Dj.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>zk(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),s=o.every((e=>e===o[0]))?o[0]:"";let a;var l;"number"==typeof s?a=Oj(i):a=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return Oj(t)}(t))&&void 0!==l?l:Oj(i);return[s,a].join("")}function Lj(e={},t,n=Dj){const r=zj(e,t,n);return isNaN(parseFloat(r))}function Fj(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function Bj(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function Vj(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):Dj.forEach((e=>r[e]=t)),r}const $j=()=>{};function Hj({__next40pxDefaultSize:e,onChange:t=$j,onFocus:n=$j,values:r,sides:o,selectedUnits:i,setSelectedUnits:s,...a}){var c,u;const d=(0,l.useInstanceId)(Hj,"box-control-input-all"),p=zj(r,i,o),h=Fj(r)&&Lj(r,i,o),f=h?Nj.mixed:void 0,[m,g]=zk(p),v=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),i=Vj(r,n?e:void 0,o);t(i)};return(0,ze.jsxs)(ry,{children:[(0,ze.jsx)(jj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:h,id:d,isPressEnterToChange:!0,value:p,onChange:v,onUnitChange:e=>{const t=Vj(i,e,o);s(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:f,label:Nj.all,hideLabelFromVision:!0}),(0,ze.jsx)(Mj,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":d,label:Nj.all,hideLabelFromVision:!0,onChange:e=>{v(void 0!==e?[e,g].join(""):void 0)},min:0,max:null!==(c=Rj[null!=g?g:"px"]?.max)&&void 0!==c?c:10,step:null!==(u=Rj[null!=g?g:"px"]?.step)&&void 0!==u?u:.1,value:null!=m?m:0,withInputField:!1})]})}const Wj=()=>{};function Uj({__next40pxDefaultSize:e,onChange:t=Wj,onFocus:n=Wj,values:r,selectedUnits:o,setSelectedUnits:i,sides:s,...a}){const c=(0,l.useInstanceId)(Uj,"box-control-input"),u=e=>t=>{n(t,{side:e})},d=(e,n,o)=>{const i={...r},s=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=s,o?.event.altKey)switch(e){case"top":i.bottom=s;break;case"bottom":i.top=s;break;case"left":i.right=s;break;case"right":i.left=s}(e=>{t(e)})(i)},p=e=>t=>{const n={...o};n[e]=t,i(n)},h=s?.length?Dj.filter((e=>s.includes(e))):Dj;return(0,ze.jsx)(ze.Fragment,{children:h.map((t=>{var n,i;const[l,h]=zk(r[t]),f=r[t]?h:o[t],m=[c,t].join("-");return(0,ze.jsxs)(Ej,{expanded:!0,children:[(0,ze.jsx)(Ij,{side:t,sides:s}),(0,ze.jsx)(ri,{placement:"top-end",text:Nj[t],children:(0,ze.jsx)(jj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:m,isPressEnterToChange:!0,value:[l,f].join(""),onChange:(e,n)=>d(t,e,n),onUnitChange:p(t),onFocus:u(t),label:Nj[t],hideLabelFromVision:!0})}),(0,ze.jsx)(Mj,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":m,label:Nj[t],hideLabelFromVision:!0,onChange:e=>{d(t,void 0!==e?[e,f].join(""):void 0)},min:0,max:null!==(n=Rj[null!=f?f:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=Rj[null!=f?f:"px"]?.step)&&void 0!==i?i:.1,value:null!=l?l:0,withInputField:!1})]},`box-control-${t}`)}))})}const Gj=["vertical","horizontal"];function Kj({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:r,selectedUnits:o,setSelectedUnits:i,sides:s,...a}){const u=(0,l.useInstanceId)(Kj,"box-control-input"),d=e=>t=>{n&&n(t,{side:e})},p=(e,n)=>{if(!t)return;const o={...r},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(o.top=i,o.bottom=i),"horizontal"===e&&(o.left=i,o.right=i),t(o)},h=e=>t=>{const n={...o};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),i(n)},f=s?.length?Gj.filter((e=>s.includes(e))):Gj;return(0,ze.jsx)(ze.Fragment,{children:f.map((t=>{var n,i;const[l,f]=zk("vertical"===t?r.top:r.left),m="vertical"===t?o.top:o.left,g=[u,t].join("-");return(0,ze.jsxs)(Ej,{children:[(0,ze.jsx)(Ij,{side:t,sides:s}),(0,ze.jsx)(ri,{placement:"top-end",text:Nj[t],children:(0,c.createElement)(jj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[l,null!=m?m:f].join(""),onChange:e=>p(t,e),onUnitChange:h(t),onFocus:d(t),label:Nj[t],hideLabelFromVision:!0,key:t})}),(0,ze.jsx)(Mj,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:Nj[t],hideLabelFromVision:!0,onChange:e=>p(t,void 0!==e?[e,null!=m?m:f].join(""):void 0),min:0,max:null!==(n=Rj[null!=m?m:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=Rj[null!=m?m:"px"]?.step)&&void 0!==i?i:.1,value:null!=l?l:0,withInputField:!1})]},t)}))})}function Yj({isLinked:e,...t}){const n=e?(0,a.__)("Unlink sides"):(0,a.__)("Link sides");return(0,ze.jsx)(ri,{text:n,children:(0,ze.jsx)(Hx,{...t,className:"component-box-control__linked-button",size:"small",icon:e?Ew:Pw,iconSize:24,"aria-label":n})})}const qj={min:0},Xj=()=>{};function Zj({__next40pxDefaultSize:e=!1,id:t,inputProps:n=qj,onChange:r=Xj,label:o=(0,a.__)("Box Control"),values:i,units:s,sides:c,splitOnAxis:u=!1,allowReset:d=!0,resetValues:p=Aj,onMouseOver:h,onMouseOut:f}){const[m,g]=eS(i,{fallback:Aj}),v=m||Aj,b=Fj(i),x=1===c?.length,[y,w]=(0,Uo.useState)(b),[_,S]=(0,Uo.useState)(!b||!Lj(v)||x),[C,k]=(0,Uo.useState)(Bj(_,u)),[j,E]=(0,Uo.useState)({top:zk(i?.top)[1],right:zk(i?.right)[1],bottom:zk(i?.bottom)[1],left:zk(i?.left)[1]}),P=function(e){const t=(0,l.useInstanceId)(Zj,"inspector-box-control");return e||t}(t),T=`${P}-heading`,I={...n,onChange:e=>{r(e),g(e),w(!0)},onFocus:(e,{side:t})=>{k(t)},isLinked:_,units:s,selectedUnits:j,setSelectedUnits:E,sides:c,values:v,onMouseOver:h,onMouseOut:f,__next40pxDefaultSize:e};return(0,ze.jsxs)(Jk,{id:P,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":T,children:[(0,ze.jsx)(Ax.VisualLabel,{id:T,children:o}),_&&(0,ze.jsxs)(Ej,{children:[(0,ze.jsx)(Ij,{side:C,sides:c}),(0,ze.jsx)(Hj,{...I})]}),!x&&(0,ze.jsx)(Tj,{children:(0,ze.jsx)(Yj,{onClick:()=>{S(!_),k(Bj(!_,u))},isLinked:_})}),!_&&u&&(0,ze.jsx)(Kj,{...I}),!_&&!u&&(0,ze.jsx)(Uj,{...I}),d&&(0,ze.jsx)(Pj,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{r(p),g(p),E(p),w(!1)},disabled:!y,children:(0,a.__)("Reset")})]})}const Jj=Zj;const Qj=(0,Uo.forwardRef)((function(e,t){const{className:n,...r}=e,o=s("components-button-group",n);return(0,ze.jsx)("div",{ref:t,role:"group",className:o,...r})}));const eE={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function tE(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const nE=oa((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:a=0,value:l=0,...c}=ra(e,"Elevation"),u=na();return{...c,className:(0,Uo.useMemo)((()=>{let e=Pg(i)?i:2*l,c=Pg(t)?t:l/2;s||(e=Pg(i)?i:void 0,c=Pg(t)?t:void 0);const d=`box-shadow ${bv.transitionDuration} ${bv.transitionTimingFunction}`,p={};return p.Base=Ea({borderRadius:n,bottom:a,boxShadow:tE(l),opacity:bv.elevationIntensity,left:a,right:a,top:a},Ea("@media not ( prefers-reduced-motion ){transition:",d,";}",""),"",""),Pg(e)&&(p.hover=Ea("*:hover>&{box-shadow:",tE(e),";}","")),Pg(c)&&(p.active=Ea("*:active>&{box-shadow:",tE(c),";}","")),Pg(o)&&(p.focus=Ea("*:focus>&{box-shadow:",tE(o),";}","")),u(eE,p.Base,p.hover,p.focus,p.active,r)}),[t,n,r,u,o,i,s,a,l]),"aria-hidden":!0}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Elevation"),rE=nE;const oE=`calc(${bv.cardBorderRadius} - 1px)`,iE=Ea("box-shadow:0 0 0 1px ",bv.surfaceBorderColor,";outline:none;",""),sE={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},aE={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},lE={name:"13udsys",styles:"height:100%"},cE={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},uE={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},dE={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},pE=Ea("&:first-of-type{border-top-left-radius:",oE,";border-top-right-radius:",oE,";}&:last-of-type{border-bottom-left-radius:",oE,";border-bottom-right-radius:",oE,";}",""),hE=Ea("border-color:",bv.colorDivider,";",""),fE={name:"1t90u8d",styles:"box-shadow:none"},mE={name:"1e1ncky",styles:"border:none"},gE=Ea("border-radius:",oE,";",""),vE=Ea("padding:",bv.cardPaddingXSmall,";",""),bE={large:Ea("padding:",bv.cardPaddingLarge,";",""),medium:Ea("padding:",bv.cardPaddingMedium,";",""),small:Ea("padding:",bv.cardPaddingSmall,";",""),xSmall:vE,extraSmall:vE},xE=Ea("background-color:",Na.ui.backgroundDisabled,";",""),yE=Ea("background-color:",bv.surfaceColor,";color:",Na.gray[900],";position:relative;","");bv.surfaceBackgroundColor;function wE({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${bv.surfaceBorderColor}`;return Ea({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const _E=Ea("",""),SE=Ea("background:",bv.surfaceBackgroundTintColor,";",""),CE=Ea("background:",bv.surfaceBackgroundTertiaryColor,";",""),kE=e=>[e,e].join(" "),jE=e=>["90deg",[bv.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),EE=e=>[[bv.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),PE=(e,t)=>Ea("background:",(e=>[`linear-gradient( ${jE(e)} ) center`,`linear-gradient( ${EE(e)} ) center`,bv.surfaceBorderBoldColor].join(","))(t),";background-size:",kE(e),";",""),TE=[`linear-gradient( ${[`${bv.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${bv.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),IE=(e,t,n)=>{switch(e){case"dotted":return PE(t,n);case"grid":return(e=>Ea("background:",bv.surfaceBackgroundColor,";background-image:",TE,";background-size:",kE(e),";",""))(t);case"primary":return _E;case"secondary":return SE;case"tertiary":return CE}};function ME(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:a="primary",...l}=ra(e,"Surface"),c=na();return{...l,className:(0,Uo.useMemo)((()=>{const e={borders:wE({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return c(yE,e.borders,IE(a,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,c,a])}}function RE(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=ra(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(Ko()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),a=na();return{...ME({...s,className:(0,Uo.useMemo)((()=>a(iE,r&&fE,o&&gE,t)),[t,a,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const NE=oa((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...a}=RE(e),l=i?bv.cardBorderRadius:0,c=na(),u=(0,Uo.useMemo)((()=>c(Ea({borderRadius:l},"",""))),[c,l]),d=(0,Uo.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,ze.jsx)(hi,{value:d,children:(0,ze.jsxs)(ya,{...a,ref:t,children:[(0,ze.jsx)(ya,{className:c(lE),children:n}),(0,ze.jsx)(rE,{className:u,isInteractive:!1,value:r?1:0}),(0,ze.jsx)(rE,{className:u,isInteractive:!1,value:r})]})})}),"Card"),AE=NE;const DE=Ea("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",bv.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",bv.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",bv.colorScrollbarThumbHover,";}}",""),OE={name:"13udsys",styles:"height:100%"},zE={name:"7zq9w",styles:"scroll-behavior:smooth"},LE={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},FE={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},BE={name:"umwchj",styles:"overflow-y:auto"};const VE=oa((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=ra(e,"Scrollable"),i=na();return{...o,className:(0,Uo.useMemo)((()=>i(OE,DE,r&&zE,"x"===n&&LE,"y"===n&&FE,"auto"===n&&BE,t)),[t,i,n,r])}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Scrollable"),$E=VE;const HE=oa((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=ra(e,"CardBody"),s=na();return{...i,className:(0,Uo.useMemo)((()=>s(cE,pE,bE[o],r&&xE,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,ze.jsx)($E,{...r,ref:t}):(0,ze.jsx)(ya,{...r,ref:t})}),"CardBody"),WE=HE;var UE=Ve((e=>{var t=e,{orientation:n="horizontal"}=t,r=_(t,["orientation"]);return r=y({role:"separator","aria-orientation":n},r)})),GE=Le((e=>Be("hr",UE(e))));const KE={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}},YE=({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Ea(yg({[KE[e].start]:ng(null!=n?n:t),[KE[e].end]:ng(null!=r?r:t)})(),"","");var qE={name:"1u4hpl4",styles:"display:inline"};const XE=({"aria-orientation":e="horizontal"})=>"vertical"===e?qE:void 0,ZE=({"aria-orientation":e="horizontal"})=>Ea({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""),JE=({"aria-orientation":e="horizontal"})=>Ea({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""),QE=ba("hr",{target:"e19on6iw0"})("border:0;margin:0;",XE," ",ZE," ",JE," ",YE,";");const eP=oa((function(e,t){const n=ra(e,"Divider");return(0,ze.jsx)(GE,{render:(0,ze.jsx)(QE,{}),...n,ref:t})}),"Divider");const tP=oa((function(e,t){const n=function(e){const{className:t,...n}=ra(e,"CardDivider"),r=na();return{...n,className:(0,Uo.useMemo)((()=>r(dE,hE,"components-card__divider",t)),[t,r])}}(e);return(0,ze.jsx)(eP,{...n,ref:t})}),"CardDivider"),nP=tP;const rP=oa((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=ra(e,"CardFooter"),a=na();return{...s,className:(0,Uo.useMemo)((()=>a(aE,pE,hE,bE[i],r&&mE,o&&xE,"components-card__footer",t)),[t,a,r,o,i]),justify:n}}(e);return(0,ze.jsx)(dg,{...n,ref:t})}),"CardFooter"),oP=rP;const iP=oa((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=ra(e,"CardHeader"),s=na();return{...i,className:(0,Uo.useMemo)((()=>s(sE,pE,hE,bE[o],n&&mE,r&&xE,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,ze.jsx)(dg,{...n,ref:t})}),"CardHeader"),sP=iP;const aP=oa((function(e,t){const n=function(e){const{className:t,...n}=ra(e,"CardMedia"),r=na();return{...n,className:(0,Uo.useMemo)((()=>r(uE,pE,"components-card__media",t)),[t,r])}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"CardMedia"),lP=aP;const cP=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:a,indeterminate:c,help:u,id:d,onChange:p,...h}=t;i&&Ko()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[f,m]=(0,Uo.useState)(!1),[g,v]=(0,Uo.useState)(!1),b=(0,l.useRefEffect)((e=>{e&&(e.indeterminate=!!c,m(e.matches(":checked")),v(e.matches(":indeterminate")))}),[a,c]),x=(0,l.useInstanceId)(e,"inspector-checkbox-control",d);return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:n,label:i,id:x,help:u&&(0,ze.jsx)("span",{className:"components-checkbox-control__help",children:u}),className:s("components-checkbox-control",o),children:(0,ze.jsxs)(ry,{spacing:0,justify:"start",alignment:"top",children:[(0,ze.jsxs)("span",{className:"components-checkbox-control__input-container",children:[(0,ze.jsx)("input",{ref:b,id:x,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:a,"aria-describedby":u?x+"__help":void 0,...h}),g?(0,ze.jsx)(Y_,{icon:kg,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,f?(0,ze.jsx)(Y_,{icon:YC,className:"components-checkbox-control__checked",role:"presentation"}):null]}),r&&(0,ze.jsx)("label",{className:"components-checkbox-control__label",htmlFor:x,children:r})]})})},uP=4e3;function dP({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){Ko()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const a=(0,Uo.useRef)(),c=(0,l.useCopyToClipboard)(o,(()=>{n(),a.current&&clearTimeout(a.current),r&&(a.current=setTimeout((()=>r()),uP))}));(0,Uo.useEffect)((()=>{a.current&&clearTimeout(a.current)}),[]);const u=s("components-clipboard-button",e);return(0,ze.jsx)(Hx,{...i,className:u,ref:c,onCopy:e=>{e.target.focus()},children:t})}const pP=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});const hP=e=>Ea("font-size:",_x("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===e?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",Na.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),fP={name:"1bcj5ek",styles:"width:100%;display:block"},mP={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},gP=Ea("border:1px solid ",bv.surfaceBorderColor,";",""),vP=Ea(">*:not( marquee )>*{border-bottom:1px solid ",bv.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),bP=bv.controlBorderRadius,xP=Ea("border-radius:",bP,";",""),yP=Ea("border-radius:",bP,";>*:first-of-type>*{border-top-left-radius:",bP,";border-top-right-radius:",bP,";}>*:last-of-type>*{border-bottom-left-radius:",bP,";border-bottom-right-radius:",bP,";}",""),wP=`calc(${bv.fontSize} * ${bv.fontLineHeightBase})`,_P=`calc((${bv.controlHeight} - ${wP} - 2px) / 2)`,SP=`calc((${bv.controlHeightSmall} - ${wP} - 2px) / 2)`,CP=`calc((${bv.controlHeightLarge} - ${wP} - 2px) / 2)`,kP={small:Ea("padding:",SP," ",bv.controlPaddingXSmall,";",""),medium:Ea("padding:",_P," ",bv.controlPaddingX,";",""),large:Ea("padding:",CP," ",bv.controlPaddingXLarge,";","")};const jP=(0,Uo.createContext)({size:"medium"}),EP=()=>(0,Uo.useContext)(jP);const PP=oa((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...s}=ra(e,"ItemGroup");return{isBordered:n,className:na()(n&&gP,o&&vP,r&&yP,t),role:i,isSeparated:o,...s}}(e),{size:s}=EP(),a={spacedAround:!n&&!r,size:o||s};return(0,ze.jsx)(jP.Provider,{value:a,children:(0,ze.jsx)(ya,{...i,ref:t})})}),"ItemGroup"),TP=10,IP=0,MP=TP;function RP(e){return Math.max(0,Math.min(100,e))}function NP(e,t,n){const r=e.slice();return r[t]=n,r}function AP(e,t,n){if(function(e,t,n,r=IP){const o=e[t].position,i=Math.min(o,n),s=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<s)))}(e,t,n))return e;return NP(e,t,{...e[t],position:n})}function DP(e,t,n){return NP(e,t,{...e[t],color:n})}function OP(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(RP(100*o/r))}function zP({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${(0,l.useInstanceId)(zP)}`;return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Hx,{"aria-label":(0,a.sprintf)((0,a.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:s("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,ze.jsx)(wa,{id:o,children:(0,a.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")})]})}function LP({isRenderedInSidebar:e,className:t,...n}){const r=(0,Uo.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),o=s("components-custom-gradient-picker__control-point-dropdown",t);return(0,ze.jsx)(pk,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function FP({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:c}){const u=(0,Uo.useRef)(),d=e=>{if(void 0===u.current||null===n.current)return;const t=OP(e.clientX,n.current),{initialPosition:r,index:s,significantMoveHappened:a}=u.current;!a&&Math.abs(r-t)>=5&&(u.current.significantMoveHappened=!0),i(AP(o,s,t))},p=()=>{window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),l(),u.current.listenersActivated=!1)},h=(0,Uo.useRef)();return h.current=p,(0,Uo.useEffect)((()=>()=>{h.current?.()}),[]),(0,ze.jsx)(ze.Fragment,{children:o.map(((n,h)=>{const f=n?.position;return r!==f&&(0,ze.jsx)(LP,{isRenderedInSidebar:c,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,ze.jsx)(zP,{onClick:()=>{u.current&&u.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(u.current={initialPosition:f,index:h,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(AP(o,h,RP(n.position-MP)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(AP(o,h,RP(n.position+MP))))},isOpen:e,position:n.position,color:n.color},h),renderContent:({onClose:r})=>(0,ze.jsxs)(lk,{paddingSize:"none",children:[(0,ze.jsx)(GC,{enableAlpha:!t,color:n.color,onChange:e=>{i(DP(o,h,av(e).toRgbString()))}}),!e&&o.length>2&&(0,ze.jsx)(ry,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:(0,ze.jsx)(Hx,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,h)),r()},variant:"link",children:(0,a.__)("Remove Control Point")})})]}),style:{left:`${n.position}%`,transform:"translateX( -50% )"}},h)}))})}FP.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[a,l]=(0,Uo.useState)(!1);return(0,ze.jsx)(LP,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,ze.jsx)(Hx,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(l(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:Cg}),renderContent:()=>(0,ze.jsx)(lk,{paddingSize:"none",children:(0,ze.jsx)(GC,{enableAlpha:!i,onChange:n=>{a?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return DP(e,r,n)}(e,o,av(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,av(n).toRgbString())),l(!0))}})}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};const BP=FP,VP=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},$P={id:"IDLE"};function HP({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:a=!1}){const l=(0,Uo.useRef)(null),[c,u]=(0,Uo.useReducer)(VP,$P),d=e=>{if(!l.current)return;const t=OP(e.clientX,l.current);n.some((({position:e})=>Math.abs(t-e)<TP))?"MOVING_INSERTER"===c.id&&u({type:"STOP_INSERTER_MOVE"}):u({type:"MOVE_INSERTER",insertPosition:t})},p="MOVING_INSERTER"===c.id,h="INSERTING_CONTROL_POINT"===c.id;return(0,ze.jsxs)("div",{className:s("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:d,onMouseMove:d,onMouseLeave:()=>{u({type:"STOP_INSERTER_MOVE"})},children:[(0,ze.jsx)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,ze.jsxs)("div",{ref:l,className:"components-custom-gradient-picker__markers-container",children:[!o&&(p||h)&&(0,ze.jsx)(BP.InsertPoint,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,insertPosition:c.insertPosition,value:n,onChange:r,onOpenInserter:()=>{u({type:"OPEN_INSERTER"})},onCloseInserter:()=>{u({type:"CLOSE_INSERTER"})}}),(0,ze.jsx)(BP,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,disableRemove:o,gradientPickerDomRef:l,ignoreMarkerPosition:h?c.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{u({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{u({type:"STOP_CONTROL_CHANGE"})}})]})]})}var WP=o(8924);const UP="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",GP={type:"angular",value:"90"},KP=[{value:"linear-gradient",label:(0,a.__)("Linear")},{value:"radial-gradient",label:(0,a.__)("Radial")}],YP={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function qP({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function XP({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(qP)].filter(Boolean).join(",")})`}function ZP(e){return void 0===e.length||"%"!==e.length.type}function JP(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}cv([uv]);const QP=ba(hg,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),eT=ba(hg,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),tT=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,ze.jsx)(py,{onChange:t=>{n(XP({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},nT=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,ze.jsx)(J_,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,a.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(XP({...e,orientation:e.orientation?void 0:GP,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(XP({...r,type:"radial-gradient"}))})()},options:KP,size:"__unstable-large",value:t?r:void 0})};const rT=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:r,hasGradient:o}=function(e){let t,n=!!e;const r=null!=e?e:UP;try{t=WP.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=WP.parse(UP)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:YP[t.orientation.value].toString()}),t.colorStops.some(ZP)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(e),i=function(e){return XP({type:"linear-gradient",orientation:GP,colorStops:e.colorStops})}(r),s=r.colorStops.map((e=>({color:JP(e),position:parseInt(e.length.value)})));return(0,ze.jsxs)(tk,{spacing:4,className:"components-custom-gradient-picker",children:[(0,ze.jsx)(HP,{__experimentalIsRenderedInSidebar:n,background:i,hasGradient:o,value:s,onChange:e=>{t(XP(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=av(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(r,e)))}}),(0,ze.jsxs)(dg,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[(0,ze.jsx)(QP,{children:(0,ze.jsx)(nT,{gradientAST:r,hasGradient:o,onChange:t})}),(0,ze.jsx)(eT,{children:"linear-gradient"===r.type&&(0,ze.jsx)(tT,{gradientAST:r,hasGradient:o,onChange:t})})]})]})},oT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function iT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,...i}){const s=(0,Uo.useMemo)((()=>n.map((({gradient:e,name:n,slug:i},s)=>(0,ze.jsx)(ek.Option,{value:e,isSelected:o===e,tooltipText:n||(0,a.sprintf)((0,a.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,s),"aria-label":n?(0,a.sprintf)((0,a.__)("Gradient: %s"),n):(0,a.sprintf)((0,a.__)("Gradient code: %s"),e)},i)))),[n,o,r,t]);return(0,ze.jsx)(ek.OptionGroup,{className:e,options:s,...i})}function sT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,headingLevel:i}){const s=(0,l.useInstanceId)(sT);return(0,ze.jsx)(tk,{spacing:3,className:e,children:n.map((({name:e,gradients:n},a)=>{const l=`color-palette-${s}-${a}`;return(0,ze.jsxs)(tk,{spacing:2,children:[(0,ze.jsx)(ik,{level:i,id:l,children:e}),(0,ze.jsx)(iT,{clearGradient:t,gradients:n,onChange:e=>r(e,a),value:o,"aria-labelledby":l})]},a)}))})}function aT(e){const{asButtons:t,loop:n,actions:r,headingLevel:o,"aria-label":i,"aria-labelledby":s,...l}=e,c=oT(e.gradients)?(0,ze.jsx)(sT,{headingLevel:o,...l}):(0,ze.jsx)(iT,{...l});let u;if(t)u={asButtons:!0};else{const e={asButtons:!1,loop:n};u=i?{...e,"aria-label":i}:s?{...e,"aria-labelledby":s}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}return(0,ze.jsx)(ek,{...u,actions:r,options:c})}const lT=function({className:e,gradients:t=[],onChange:n,value:r,clearable:o=!0,disableCustomGradients:i=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...c}){const u=(0,Uo.useCallback)((()=>n(void 0)),[n]);return(0,ze.jsxs)(tk,{spacing:t.length?4:0,children:[!i&&(0,ze.jsx)(rT,{__experimentalIsRenderedInSidebar:s,value:r,onChange:n}),(t.length>0||o)&&(0,ze.jsx)(aT,{...c,className:e,clearGradient:u,gradients:t,onChange:n,value:r,actions:o&&!i&&(0,ze.jsx)(ek.ButtonAction,{onClick:u,children:(0,a.__)("Clear")}),headingLevel:l})]})},cT=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})}),uT=window.wp.dom,dT=()=>{},pT=["menuitem","menuitemradio","menuitemcheckbox"];class hT extends Uo.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?uT.focus.tabbable:uT.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=dT,stopNavigationEvents:i}=this.props,s=r(e);if(void 0!==s&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&pT.includes(t)&&e.preventDefault()}if(!s)return;const a=e.target?.ownerDocument?.activeElement;if(!a)return;const l=t(a);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,s):c+s;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:s,forwardedRef:a,...l}=this.props;return(0,ze.jsx)("div",{ref:this.bindContainer,...l,children:e})}}const fT=(e,t)=>(0,ze.jsx)(hT,{...e,forwardedRef:t});fT.displayName="NavigableContainer";const mT=(0,Uo.forwardRef)(fT);const gT=(0,Uo.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,ze.jsx)(mT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})})),vT=gT;function bT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=s(t.className,e.className)),n}function xT(e){return"function"==typeof e}const yT=ia((function(e){const{children:t,className:n,controls:r,icon:o=cT,label:i,popoverProps:a,toggleProps:l,menuProps:c,disableOpenOnArrowDown:u=!1,text:d,noIcons:p,open:h,defaultOpen:f,onToggle:m,variant:g}=ra(e,"DropdownMenu");if(!r?.length&&!xT(t))return null;let v;r?.length&&(v=r,Array.isArray(v[0])||(v=[r]));const b=bT({className:"components-dropdown-menu__popover",variant:g},a);return(0,ze.jsx)(F_,{className:n,popoverProps:b,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=Hx,...a}=null!=l?l:{},c=bT({className:s("components-dropdown-menu__toggle",{"is-opened":e})},a);return(0,ze.jsx)(r,{...c,icon:o,onClick:e=>{t(),c.onClick&&c.onClick(e)},onKeyDown:n=>{(n=>{u||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),c.onKeyDown&&c.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:d,showTooltip:null===(n=l?.showTooltip)||void 0===n||n,children:c.children})},renderContent:e=>{const n=bT({"aria-label":i,className:s("components-dropdown-menu__menu",{"no-icons":p})},c);return(0,ze.jsxs)(vT,{...n,role:"menu",children:[xT(t)?t(e):null,v?.flatMap(((t,n)=>t.map(((t,r)=>(0,ze.jsx)(Hx,{onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:s("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled,children:t.title},[n,r].join())))))]})},open:h,defaultOpen:f,onToggle:m})}),"DropdownMenu"),wT=yT;const _T=ba(A_,{target:"e1lpqc909"})("&&{flex-shrink:0;width:",ng(6),";height:",ng(6),";}"),ST=ba(Lx,{target:"e1lpqc908"})(Uv,"{background:",Na.gray[100],";border-radius:",bv.controlBorderRadius,";",Jv,Jv,Jv,Jv,"{height:",ng(8),";}",Bv,Bv,Bv,"{border-color:transparent;box-shadow:none;}}"),CT=({as:e})=>"button"===e?Ea("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:",Na.theme.accent,";}",""):null,kT=ba(ya,{target:"e1lpqc907"})(CT," padding-block:3px;padding-inline-start:",ng(3),";border:1px solid ",bv.surfaceBorderColor,";border-bottom-color:transparent;font-size:",_x("default.fontSize"),";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:",bv.controlBorderRadius,";border-top-right-radius:",bv.controlBorderRadius,";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:",bv.controlBorderRadius,";border-bottom-right-radius:",bv.controlBorderRadius,";border-bottom-color:",bv.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Na.theme.accent,";}"),jT=ba("div",{target:"e1lpqc906"})("line-height:",ng(8),";margin-left:",ng(2),";margin-right:",ng(2),";white-space:nowrap;overflow:hidden;"),ET=ba(ok,{target:"e1lpqc905"})("text-transform:uppercase;line-height:",ng(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),PT=ba(ya,{target:"e1lpqc904"})("height:",ng(6),";display:flex;"),TT=ba(ya,{target:"e1lpqc903"})("margin-top:",ng(2),";"),IT=ba(ya,{target:"e1lpqc902"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),MT=ba(Hx,{target:"e1lpqc901"})("&&{color:",Na.theme.accent,";}"),RT=ba(Hx,{target:"e1lpqc900"})("&&{margin-top:",ng(1),";}");function NT({value:e,onChange:t,label:n}){return(0,ze.jsx)(ST,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function AT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,Uo.useMemo)((()=>({shift:!0,offset:20,resize:!1,placement:"left-start",...r,className:s("components-palette-edit__popover",r?.className)})),[r]);return(0,ze.jsxs)(bw,{...i,onClose:o,children:[!e&&(0,ze.jsx)(GC,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,ze.jsx)("div",{className:"components-palette-edit__popover-gradient-picker",children:(0,ze.jsx)(rT,{__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})})]})}function DT({canOnlyChangeValues:e,element:t,onChange:n,onRemove:r,popoverProps:o,slugPrefix:i,isGradient:s}){const l=s?t.gradient:t.color,[c,u]=(0,Uo.useState)(!1),[d,p]=(0,Uo.useState)(null),h=(0,Uo.useMemo)((()=>({...o,anchor:d})),[d,o]);return(0,ze.jsxs)(kT,{ref:p,as:"div",children:[(0,ze.jsxs)(ry,{justify:"flex-start",children:[(0,ze.jsx)(Hx,{onClick:()=>{u(!0)},"aria-label":(0,a.sprintf)((0,a.__)("Edit: %s"),t.name.trim().length?t.name:l),style:{padding:0},children:(0,ze.jsx)(_T,{colorValue:l})}),(0,ze.jsx)(jg,{children:e?(0,ze.jsx)(jT,{children:t.name.trim().length?t.name:" "}):(0,ze.jsx)(NT,{label:s?(0,a.__)("Gradient name"):(0,a.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:i+yy(null!=e?e:"")})})}),!e&&(0,ze.jsx)(jg,{children:(0,ze.jsx)(RT,{size:"small",icon:Lw,label:(0,a.sprintf)((0,a.__)("Remove color: %s"),t.name.trim().length?t.name:l),onClick:r})})]}),c&&(0,ze.jsx)(AT,{isGradient:s,onChange:n,element:t,popoverProps:h,onClose:()=>u(!1)})]})}function OT({elements:e,onChange:t,canOnlyChangeValues:n,slugPrefix:r,isGradient:o,popoverProps:i,addColorRef:s}){const a=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{a.current=e}),[e]);const c=(0,l.useDebounce)(t,100);return(0,ze.jsx)(tk,{spacing:3,children:(0,ze.jsx)(PP,{isRounded:!0,children:e.map(((a,l)=>(0,ze.jsx)(DT,{isGradient:o,canOnlyChangeValues:n,element:a,onChange:t=>{c(e.map(((e,n)=>n===l?t:e)))},onRemove:()=>{const n=e.filter(((e,t)=>t!==l));t(n.length?n:void 0),s.current?.focus()},slugPrefix:r,popoverProps:i},l)))})})}const zT=[];const LT=function({gradients:e,colors:t=zT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:c,slugPrefix:u="",popoverProps:d}){const p=!!e,h=p?e:t,[f,m]=(0,Uo.useState)(!1),[g,v]=(0,Uo.useState)(null),b=f&&!!g&&h[g]&&!h[g].slug,x=h.length>0,y=(0,l.useDebounce)(n,100),w=(0,Uo.useCallback)(((e,t)=>{const n=void 0===t?void 0:h[t];n&&n[p?"gradient":"color"]===e?v(t):m(!0)}),[p,h]),_=(0,Uo.useRef)(null);return(0,ze.jsxs)(IT,{children:[(0,ze.jsxs)(ry,{children:[(0,ze.jsx)(ET,{level:o,children:r}),(0,ze.jsxs)(PT,{children:[x&&f&&(0,ze.jsx)(MT,{size:"small",onClick:()=>{m(!1),v(null)},children:(0,a.__)("Done")}),!s&&(0,ze.jsx)(Hx,{ref:_,size:"small",isPressed:b,icon:Cg,label:p?(0,a.__)("Add gradient"):(0,a.__)("Add color"),onClick:()=>{const{name:r,slug:o}=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return{name:(0,a.sprintf)((0,a.__)("Color %s"),r),slug:`${t}color-${r}`}}(h,u);n(e?[...e,{gradient:UP,name:r,slug:o}]:[...t,{color:"#000",name:r,slug:o}]),m(!0),v(h.length)}}),x&&(!f||!s||c)&&(0,ze.jsx)(wT,{icon:pP,label:p?(0,a.__)("Gradient options"):(0,a.__)("Color options"),toggleProps:{size:"small"},children:({onClose:e})=>(0,ze.jsx)(ze.Fragment,{children:(0,ze.jsxs)(vT,{role:"menu",children:[!f&&(0,ze.jsx)(Hx,{variant:"tertiary",onClick:()=>{m(!0),e()},className:"components-palette-edit__menu-button",children:(0,a.__)("Show details")}),!s&&(0,ze.jsx)(Hx,{variant:"tertiary",onClick:()=>{v(null),m(!1),n(),e()},className:"components-palette-edit__menu-button",children:p?(0,a.__)("Remove all gradients"):(0,a.__)("Remove all colors")}),c&&(0,ze.jsx)(Hx,{variant:"tertiary",onClick:()=>{v(null),n(),e()},children:p?(0,a.__)("Reset gradient"):(0,a.__)("Reset colors")})]})})})]})]}),x&&(0,ze.jsxs)(TT,{children:[f&&(0,ze.jsx)(OT,{canOnlyChangeValues:s,elements:h,onChange:n,slugPrefix:u,isGradient:p,popoverProps:d,addColorRef:_}),!f&&null!==g&&(0,ze.jsx)(AT,{isGradient:p,onClose:()=>v(null),onChange:e=>{y(h.map(((t,n)=>n===g?e:t)))},element:h[null!=g?g:-1],popoverProps:d}),!f&&(p?(0,ze.jsx)(lT,{gradients:e,onChange:w,clearable:!1,disableCustomGradients:!0}):(0,ze.jsx)(fk,{colors:t,onChange:w,clearable:!1,disableCustomColors:!0}))]}),!x&&i&&(0,ze.jsx)(TT,{children:i})]})},FT=({__next40pxDefaultSize:e})=>!e&&Ea("height:28px;padding-left:",ng(1),";padding-right:",ng(1),";",""),BT=ba(dg,{target:"evuatpg0"})("height:38px;padding-left:",ng(2),";padding-right:",ng(2),";",FT,";");const VT=(0,Uo.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:a,onChange:l,onFocus:c,onBlur:u,...d}=e,[p,h]=(0,Uo.useState)(!1),f=n?n.length+1:0;return(0,ze.jsx)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...d,value:n||"",onChange:e=>{l&&l({value:e.target.value})},onFocus:e=>{h(!0),c?.(e)},onBlur:e=>{h(!1),u?.(e)},size:f,className:s(a,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})})),$T=VT,HT=e=>{e.preventDefault()};const WT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:a,instanceId:c,__experimentalRenderItem:u}){const d=(0,l.useRefEffect)((n=>(e>-1&&t&&n.children[e]&&n.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),()=>{0})),[e,t]),p=e=>()=>{r?.(e)},h=e=>()=>{o?.(e)};return(0,ze.jsx)("ul",{ref:d,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox",children:i.map(((t,r)=>{const o=(e=>{const t=a(n).toLocaleLowerCase();if(0===t.length)return null;const r=a(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=r===e,l="object"==typeof t&&t?.disabled,d="object"==typeof t&&"value"in t?t?.value:a(t),f=s("components-form-token-field__suggestion",{"is-selected":i});let m;return m="function"==typeof u?u({item:t}):o?(0,ze.jsxs)("span",{"aria-label":a(t),children:[o.suggestionBeforeMatch,(0,ze.jsx)("strong",{className:"components-form-token-field__suggestion-match",children:o.suggestionMatch}),o.suggestionAfterMatch]}):a(t),(0,ze.jsx)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:f,onMouseDown:HT,onClick:h(t),onMouseEnter:p(t),"aria-selected":r===e,"aria-disabled":l,children:m},d)}))})},UT=(0,l.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,Uo.useState)(void 0),o=(0,Uo.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,ze.jsx)("div",{...(0,l.__experimentalUseFocusOutside)(n),children:(0,ze.jsx)(e,{ref:o,...t})})}),"withFocusOutside"),GT=()=>{},KT=UT(class extends Uo.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),YT=(e,t)=>null===e?-1:t.indexOf(e);const qT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:c,options:u,onChange:d,onFilterValueChange:p=GT,hideLabelFromVision:h,help:f,allowReset:m=!0,className:g,messages:v={selected:(0,a.__)("Item selected.")},__experimentalRenderItem:b,expandOnFocus:x=!0}=ib(t),[y,w]=u_({value:i,onChange:d}),_=u.find((e=>e.value===y)),S=null!==(n=_?.label)&&void 0!==n?n:"",C=(0,l.useInstanceId)(e,"combobox-control"),[k,j]=(0,Uo.useState)(_||null),[E,P]=(0,Uo.useState)(!1),[T,I]=(0,Uo.useState)(!1),[M,R]=(0,Uo.useState)(""),N=(0,Uo.useRef)(null),A=(0,Uo.useMemo)((()=>{const e=[],t=[],n=xy(M);return u.forEach((r=>{const o=xy(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,u]),D=e=>{e.disabled||(w(e.value),(0,gy.speak)(v.selected,"assertive"),j(e),R(""),P(!1))},O=(e=1)=>{let t=YT(k,A)+e;t<0?t=A.length-1:t>=A.length&&(t=0),j(A[t]),P(!0)},z=vx((e=>{let t=!1;if(!e.defaultPrevented){switch(e.code){case"Enter":k&&(D(k),t=!0);break;case"ArrowUp":O(-1),t=!0;break;case"ArrowDown":O(1),t=!0;break;case"Escape":P(!1),j(null),t=!0}t&&e.preventDefault()}}));return(0,Uo.useEffect)((()=>{const e=A.length>0,t=YT(k,A)>0;e&&!t&&j(A[0])}),[A,k]),(0,Uo.useEffect)((()=>{const e=A.length>0;if(E){const t=e?(0,a.sprintf)((0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):(0,a.__)("No results.");(0,gy.speak)(t,"polite")}}),[A,E]),(0,ze.jsx)(KT,{onFocusOutside:()=>{P(!1)},children:(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:r,className:s(g,"components-combobox-control"),label:c,id:`components-form-token-input-${C}`,hideLabelFromVision:h,help:f,children:(0,ze.jsxs)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:z,children:[(0,ze.jsxs)(BT,{__next40pxDefaultSize:o,children:[(0,ze.jsx)(hg,{children:(0,ze.jsx)($T,{className:"components-combobox-control__input",instanceId:C,ref:N,value:E?M:S,onFocus:()=>{I(!0),x&&P(!0),p(""),R("")},onBlur:()=>{I(!1)},onClick:()=>{P(!0)},isExpanded:E,selectedSuggestionIndex:YT(k,A),onChange:e=>{const t=e.value;R(t),p(t),T&&P(!0)}})}),m&&(0,ze.jsx)(jg,{children:(0,ze.jsx)(Hx,{className:"components-combobox-control__reset",icon:zw,disabled:!y,onClick:()=>{w(null),N.current?.focus()},label:(0,a.__)("Reset")})})]}),E&&(0,ze.jsx)(WT,{instanceId:C,match:{label:M,value:""},displayTransform:e=>e.label,suggestions:A,selectedIndex:YT(k,A),onHover:j,onSelect:D,scrollIntoView:!0,__experimentalRenderItem:b})]})})})};var XT=(0,c.createContext)(void 0),ZT=Ve((e=>{const[t,n]=(0,c.useState)();return e=Pe(e,(e=>(0,ze.jsx)(XT.Provider,{value:n,children:e})),[]),e=y({role:"group","aria-labelledby":t},e)}));Le((e=>Be("div",ZT(e))));var JT=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);return r=ZT(r)})),QT=Le((e=>Be("div",JT(e))));function eI(e){if(e.state){const{state:t,...n}=e,{store:r,...o}=eI(t);return{...n,...o,store:r}}return e}function tI(e,t={}){const n=e.displayName,r=n=>{const{store:r,...o}=eI(n),i=o;return i.id=(0,l.useInstanceId)(r,i.baseId,i.id),Object.entries(t).forEach((([e,t])=>{i.hasOwnProperty(e)&&(Object.assign(i,{[t]:i[e]}),delete i[e])})),delete i.baseId,(0,ze.jsx)(e,{...i,store:r})};return r.displayName=n,r}const nI=(0,Uo.forwardRef)((({role:e,...t},n)=>{const r="row"===e?ll:QT;return(0,ze.jsx)(r,{ref:n,role:e,...t})}));nI.displayName="CompositeGroup";const rI=tI(sl,{baseId:"id"}),oI=tI(nI),iI=tI(Kt,{focusable:"accessibleWhenDisabled"});function sI(e={}){const{baseId:t,currentId:n,orientation:r,rtl:o=!1,loop:i=!1,wrap:s=!1,shift:a=!1,unstable_virtual:c}=e;return{baseId:(0,l.useInstanceId)(rI,"composite",t),store:rl({defaultActiveId:n,rtl:o,orientation:r,focusLoop:i,focusShift:a,focusWrap:s,virtualFocus:c})}}const aI=new Set(["alert","status","log","marquee","timer"]),lI=[];function cI(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&aI.has(t))}const uI=(0,Uo.createContext)([]),dI=new Map;const pI=(0,Uo.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:c=!0,shouldCloseOnClickOutside:u=!0,isDismissible:d=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:h,icon:f,closeButtonLabel:m,children:g,style:v,overlayClassName:b,className:x,contentLabel:y,onKeyDown:w,isFullScreen:_=!1,size:S,headerActions:C=null,__experimentalHideHeader:k=!1}=e,j=(0,Uo.useRef)(),E=(0,l.useInstanceId)(pI),P=o?`components-modal-header-${E}`:p.labelledby,T=(0,l.useFocusOnMount)("firstContentElement"===i?"firstElement":i),I=(0,l.useConstrainedTabbing)(),M=(0,l.useFocusReturn)(),R=(0,Uo.useRef)(null),N=(0,Uo.useRef)(null),[A,D]=(0,Uo.useState)(!1),[O,z]=(0,Uo.useState)(!1);let L;_||"fill"===S?L="is-full-screen":S&&(L=`has-size-${S}`);const F=(0,Uo.useCallback)((()=>{if(!R.current)return;const e=(0,uT.getScrollContainer)(R.current);R.current===e?z(!0):z(!1)}),[R]);(0,Uo.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];lI.push(n);for(const r of t)r!==e&&cI(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(j.current),()=>function(){const e=lI.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const B=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{B.current=h}),[h]);const V=(0,Uo.useContext)(uI),$=(0,Uo.useRef)([]);(0,Uo.useEffect)((()=>{V.push(B);const[e,t]=V;t&&e?.current?.();const n=$.current;return()=>{n[0]?.current?.(),V.shift()}}),[V]),(0,Uo.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=dI.get(t))&&void 0!==e?e:0);return dI.set(t,r),document.body.classList.add(n),()=>{const e=dI.get(t)-1;0===e?(document.body.classList.remove(t),dI.delete(t)):dI.set(t,e)}}),[n]),(0,Uo.useLayoutEffect)((()=>{if(!window.ResizeObserver||!N.current)return;const e=new ResizeObserver(F);return e.observe(N.current),F(),()=>{e.disconnect()}}),[F,N]);const H=(0,Uo.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!A&&n>0?D(!0):A&&n<=0&&D(!1)}),[A]);let W=null;const U={onPointerDown:e=>{e.target===e.currentTarget&&(W=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===W;W=null,0===t&&n&&h()}},G=(0,ze.jsx)("div",{ref:(0,l.useMergeRefs)([j,t]),className:s("components-modal__screen-overlay",b),onKeyDown:vx((function(e){!c||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),h&&h(e))})),...u?U:{},children:(0,ze.jsx)(ew,{document,children:(0,ze.jsx)("div",{className:s("components-modal__frame",L,x),style:v,ref:(0,l.useMergeRefs)([I,M,"firstContentElement"!==i?T:null]),role:r,"aria-label":y,"aria-labelledby":y?void 0:P,"aria-describedby":p.describedby,tabIndex:-1,onKeyDown:w,children:(0,ze.jsxs)("div",{className:s("components-modal__content",{"hide-header":k,"is-scrollable":O,"has-scrolled-content":A}),role:"document",onScroll:H,ref:R,"aria-label":O?(0,a.__)("Scrollable section"):void 0,tabIndex:O?0:void 0,children:[!k&&(0,ze.jsxs)("div",{className:"components-modal__header",children:[(0,ze.jsxs)("div",{className:"components-modal__header-heading-container",children:[f&&(0,ze.jsx)("span",{className:"components-modal__icon-container","aria-hidden":!0,children:f}),o&&(0,ze.jsx)("h1",{id:P,className:"components-modal__header-heading",children:o})]}),C,d&&(0,ze.jsx)(Hx,{onClick:h,icon:Ty,label:m||(0,a.__)("Close")})]}),(0,ze.jsx)("div",{ref:(0,l.useMergeRefs)([N,"firstContentElement"===i?T:null]),children:g})]})})})});return(0,Uo.createPortal)((0,ze.jsx)(uI.Provider,{value:$.current,children:G}),document.body)})),hI=pI;const fI={name:"7g5ii0",styles:"&&{z-index:1000001;}"},mI=oa(((e,t)=>{const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...c}=ra(e,"ConfirmDialog"),u=na()(fI),d=(0,Uo.useRef)(),p=(0,Uo.useRef)(),[h,f]=(0,Uo.useState)(),[m,g]=(0,Uo.useState)();(0,Uo.useEffect)((()=>{const e=void 0!==n;f(!e||n),g(!e)}),[n]);const v=(0,Uo.useCallback)((e=>t=>{e?.(t),m&&f(!1)}),[m,f]),b=(0,Uo.useCallback)((e=>{e.target===d.current||e.target===p.current||"Enter"!==e.key||v(r)(e)}),[v,r]),x=null!=l?l:(0,a.__)("Cancel"),y=null!=s?s:(0,a.__)("OK");return(0,ze.jsx)(ze.Fragment,{children:h&&(0,ze.jsx)(hI,{onRequestClose:v(o),onKeyDown:b,closeButtonLabel:x,isDismissible:!0,ref:t,overlayClassName:u,__experimentalHideHeader:!0,...c,children:(0,ze.jsxs)(tk,{spacing:8,children:[(0,ze.jsx)(Dv,{children:i}),(0,ze.jsxs)(dg,{direction:"row",justify:"flex-end",children:[(0,ze.jsx)(Hx,{__next40pxDefaultSize:!0,ref:d,variant:"tertiary",onClick:v(o),children:x}),(0,ze.jsx)(Hx,{__next40pxDefaultSize:!0,ref:p,variant:"primary",onClick:v(r),children:y})]})]})})})}),"ConfirmDialog");var gI=o(5826),vI=o.n(gI);o(1915);function bI(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function xI(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function yI(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return xI(n.overflowY,t)||xI(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function wI(e,t,n,r,o,i,s,a){return i<e&&s>t||i>e&&s<t?0:i<=e&&a<=n||s>=t&&a>=n?i-e-r:s>t&&a<n||i<e&&a>n?s-t+o:0}let _I=0;function SI(){}function CI(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,a=t.skipOverflowHiddenElements,l="function"==typeof s?s:function(e){return e!==s};if(!bI(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],h=e;bI(h)&&l(h);){if((h=null==(u=(c=h).parentElement)?c.getRootNode().host||null:u)===d){p.push(h);break}null!=h&&h===document.body&&yI(h)&&!yI(document.documentElement)||null!=h&&yI(h,a)&&p.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),x=b.height,y=b.width,w=b.top,_=b.right,S=b.bottom,C=b.left,k="start"===o||"nearest"===o?w:"end"===o?S:w+x/2,j="center"===i?C+y/2:"end"===i?_:C,E=[],P=0;P<p.length;P++){var T=p[P],I=T.getBoundingClientRect(),M=I.height,R=I.width,N=I.top,A=I.right,D=I.bottom,O=I.left;if("if-needed"===r&&w>=0&&C>=0&&S<=m&&_<=f&&w>=N&&S<=D&&C>=O&&_<=A)return E;var z=getComputedStyle(T),L=parseInt(z.borderLeftWidth,10),F=parseInt(z.borderTopWidth,10),B=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),$=0,H=0,W="offsetWidth"in T?T.offsetWidth-T.clientWidth-L-B:0,U="offsetHeight"in T?T.offsetHeight-T.clientHeight-F-V:0,G="offsetWidth"in T?0===T.offsetWidth?0:R/T.offsetWidth:0,K="offsetHeight"in T?0===T.offsetHeight?0:M/T.offsetHeight:0;if(d===T)$="start"===o?k:"end"===o?k-m:"nearest"===o?wI(v,v+m,m,F,V,v+k,v+k+x,x):k-m/2,H="start"===i?j:"center"===i?j-f/2:"end"===i?j-f:wI(g,g+f,f,L,B,g+j,g+j+y,y),$=Math.max(0,$+v),H=Math.max(0,H+g);else{$="start"===o?k-N-F:"end"===o?k-D+V+U:"nearest"===o?wI(N,D,M,F,V+U,k,k+x,x):k-(N+M/2)+U/2,H="start"===i?j-O-L:"center"===i?j-(O+R/2)+W/2:"end"===i?j-A+B+W:wI(O,A,R,L,B+W,j,j+y,y);var Y=T.scrollLeft,q=T.scrollTop;k+=q-($=Math.max(0,Math.min(q+$/K,T.scrollHeight-M/K+U))),j+=Y-(H=Math.max(0,Math.min(Y+H/G,T.scrollWidth-R/G+W)))}E.push({el:T,top:$,left:H})}return E}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function kI(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function jI(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function EI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function PI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function TI(){return String(_I++)}function II(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function MI(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=RI(t,r)?t[r]:e[r],n)),{})}function RI(e,t){return void 0!==e[t]}function NI(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function AI(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let s=t+e;s<0?s=o?i:0:s>i&&(s=o?0:i);const a=DI(e,s,n,r,o);return-1===a?t>=n?-1:t:a}function DI(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?DI(1,0,n,r,!1):DI(-1,n-1,n,r,!1):-1}function OI(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(kI(t,e,n)||r&&kI(t,n.document.activeElement,n))))}const zI=jI((e=>{FI(e).textContent=""}),500);function LI(e,t){const n=FI(t);e&&(n.textContent=e,zI(t))}function FI(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const BI={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function VI(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,s=`on${KI(e)}Change`;o[s]&&void 0!==r[e]&&r[e]!==n[e]&&o[s]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const $I=jI(((e,t)=>{LI(e(),t)}),200),HI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function WI(e){let{id:t=`downshift-${TI()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:s}=e;const a=(0,c.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:s||`${t}-input`});return a.current}function UI(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function GI(e){return/^\S{1}$/.test(e)}function KI(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function YI(e){const t=(0,c.useRef)(e);return t.current=e,t}function qI(e,t,n){const r=(0,c.useRef)(),o=(0,c.useRef)(),i=(0,c.useCallback)(((t,n)=>{o.current=n,t=MI(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[s,a]=(0,c.useReducer)(i,t),l=YI(n),u=(0,c.useCallback)((e=>a({props:l.current,...e})),[l]),d=o.current;return(0,c.useEffect)((()=>{d&&r.current&&r.current!==s&&VI(d,MI(r.current,d.props),s),r.current=s}),[s,n,d]),[s,u]}function XI(e,t,n){const[r,o]=qI(e,t,n);return[MI(r,n),o]}const ZI={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:CI,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function JI(e,t,n){void 0===n&&(n=BI);const r=e[`default${KI(t)}`];return void 0!==r?r:n[t]}function QI(e,t,n){void 0===n&&(n=BI);const r=e[t];if(void 0!==r)return r;const o=e[`initial${KI(t)}`];return void 0!==o?o:JI(e,t,n)}function eM(e){const t=QI(e,"selectedItem"),n=QI(e,"isOpen"),r=QI(e,"highlightedIndex"),o=QI(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function tM(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:s}=e,{selectedItem:a,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==s?s:a?0===n?o.indexOf(a):AI(n,o.indexOf(a),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function nM(e,t,n,r){const o=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},s=i=>{o.current.isMouseDown=!1,e&&!OI(i.target,t.map((e=>e.current)),n)&&r()},a=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||OI(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",s),n.addEventListener("touchstart",a),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",s),n.removeEventListener("touchstart",a),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let rM=()=>SI;function oM(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:s,...a}=n;(0,c.useEffect)((()=>{r||$I((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...a})),s.document)}),t)}function iM(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:s}=e;const a=(0,c.useRef)(!0);return HI((()=>{t<0||!n||!Object.keys(r.current).length||(!1===a.current?a.current=!0:s(o(t),i))}),[t]),a}let sM=SI;function aM(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:tM(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:tM(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:JI(o,"highlightedIndex"),isOpen:JI(o,"isOpen"),selectedItem:JI(o,"selectedItem"),inputValue:JI(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function lM(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,s=t.toLowerCase(),a=0;a<r.length;a++){var l=(a+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(s)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}vI().array.isRequired,vI().func,vI().func,vI().func,vI().bool,vI().number,vI().number,vI().number,vI().bool,vI().bool,vI().bool,vI().any,vI().any,vI().any,vI().string,vI().string,vI().string,vI().func,vI().string,vI().func,vI().func,vI().func,vI().func,vI().func,vI().shape({addEventListener:vI().func,removeEventListener:vI().func,document:vI().shape({getElementById:vI().func,activeElement:vI().any,body:vI().any})});var cM=vi(vi({},ZI),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),uM=SI;const dM=0,pM=1,hM=2,fM=3,mM=4,gM=5,vM=6,bM=7,xM=8,yM=9,wM=10,_M=11,SM=12,CM=13,kM=14,jM=15,EM=16,PM=17,TM=18,IM=19,MM=20,RM=21,NM=22;var AM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:dM,MenuKeyDownArrowUp:pM,MenuKeyDownEscape:hM,MenuKeyDownHome:fM,MenuKeyDownEnd:mM,MenuKeyDownEnter:gM,MenuKeyDownSpaceButton:vM,MenuKeyDownCharacter:bM,MenuBlur:xM,MenuMouseLeave:yM,ItemMouseMove:wM,ItemClick:_M,ToggleButtonClick:SM,ToggleButtonKeyDownArrowDown:CM,ToggleButtonKeyDownArrowUp:kM,ToggleButtonKeyDownCharacter:jM,FunctionToggleMenu:EM,FunctionOpenMenu:PM,FunctionCloseMenu:TM,FunctionSetHighlightedIndex:IM,FunctionSelectItem:MM,FunctionSetInputValue:RM,FunctionReset:NM});function DM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case _M:i={isOpen:JI(r,"isOpen"),highlightedIndex:JI(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case jM:{const n=t.key,o=`${e.inputValue}${n}`,s=lM({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...s>=0&&{selectedItem:r.items[s]}}}break;case CM:i={highlightedIndex:tM(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case kM:i={highlightedIndex:tM(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case gM:case vM:i={isOpen:JI(r,"isOpen"),highlightedIndex:JI(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case fM:i={highlightedIndex:DI(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case mM:i={highlightedIndex:DI(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case hM:case xM:i={isOpen:!1,highlightedIndex:-1};break;case bM:{const n=t.key,o=`${e.inputValue}${n}`,s=lM({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...s>=0&&{highlightedIndex:s}}}break;case dM:i={highlightedIndex:AI(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case pM:i={highlightedIndex:AI(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case MM:i={selectedItem:t.selectedItem};break;default:return aM(e,t,AM)}return{...e,...i}}function OM(e){void 0===e&&(e={}),uM(e,OM);const t={...cM,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:s,itemToString:a,getA11ySelectionMessage:l,getA11yStatusMessage:u}=t,d=eM(t),[p,h]=XI(DM,d,t),{isOpen:f,highlightedIndex:m,selectedItem:g,inputValue:v}=p,b=(0,c.useRef)(null),x=(0,c.useRef)(null),y=(0,c.useRef)({}),w=(0,c.useRef)(!0),_=(0,c.useRef)(null),S=WI(t),C=(0,c.useRef)(),k=(0,c.useRef)(!0),j=YI({state:p,props:t}),E=(0,c.useCallback)((e=>y.current[S.getItemId(e)]),[S]);oM(u,[f,m,v,n],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:a,...p}),oM(l,[g],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:a,...p});const P=iM({menuElement:x.current,highlightedIndex:m,isOpen:f,itemRefs:y,scrollIntoView:r,getItemNodeFromIndex:E});(0,c.useEffect)((()=>(_.current=jI((e=>{e({type:RM,inputValue:""})}),500),()=>{_.current.cancel()})),[]),(0,c.useEffect)((()=>{v&&_.current(h)}),[h,v]),sM({isInitialMount:k.current,props:t,state:p}),(0,c.useEffect)((()=>{k.current?(i||s||f)&&x.current&&x.current.focus():f?x.current&&x.current.focus():o.document.activeElement===x.current&&b.current&&(w.current=!1,b.current.focus())}),[f]),(0,c.useEffect)((()=>{k.current||(C.current=n.length)}));const T=nM(f,[x,b],o,(()=>{h({type:xM})})),I=rM("getMenuProps","getToggleButtonProps");(0,c.useEffect)((()=>{k.current=!1}),[]),(0,c.useEffect)((()=>{f||(y.current={})}),[f]);const M=(0,c.useMemo)((()=>({ArrowDown(e){e.preventDefault(),h({type:CM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),h({type:kM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})}})),[h,E]),R=(0,c.useMemo)((()=>({ArrowDown(e){e.preventDefault(),h({type:dM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),h({type:pM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),h({type:fM,getItemNodeFromIndex:E})},End(e){e.preventDefault(),h({type:mM,getItemNodeFromIndex:E})},Escape(){h({type:hM})},Enter(e){e.preventDefault(),h({type:gM})}," "(e){e.preventDefault(),h({type:vM})}})),[h,E]),N=(0,c.useCallback)((()=>{h({type:EM})}),[h]),A=(0,c.useCallback)((()=>{h({type:TM})}),[h]),D=(0,c.useCallback)((()=>{h({type:PM})}),[h]),O=(0,c.useCallback)((e=>{h({type:IM,highlightedIndex:e})}),[h]),z=(0,c.useCallback)((e=>{h({type:MM,selectedItem:e})}),[h]),L=(0,c.useCallback)((()=>{h({type:NM})}),[h]),F=(0,c.useCallback)((e=>{h({type:RM,inputValue:e})}),[h]),B=(0,c.useCallback)((e=>({id:S.labelId,htmlFor:S.toggleButtonId,...e})),[S]),V=(0,c.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:s,...a}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=j.current.state;return I("getMenuProps",l,r,x),{[r]:PI(s,(e=>{x.current=e})),id:S.menuId,role:"listbox","aria-labelledby":S.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(c.highlightedIndex)},onMouseLeave:EI(n,(()=>{h({type:yM})})),onKeyDown:EI(o,(e=>{const t=NI(e);t&&R[t]?R[t](e):GI(t)&&h({type:bM,key:t,getItemNodeFromIndex:E})})),onBlur:EI(i,(()=>{if(!1===w.current)return void(w.current=!0);!T.current.isMouseDown&&h({type:xM})})),...a}}),[h,j,R,T,I,S,E]),$=(0,c.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...s}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===t?{}:t;const l=()=>{h({type:SM})},c=e=>{const t=NI(e);t&&M[t]?M[t](e):GI(t)&&h({type:jM,key:t,getItemNodeFromIndex:E})},u={[o]:PI(i,(e=>{b.current=e})),id:S.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":j.current.state.isOpen,"aria-labelledby":`${S.labelId} ${S.toggleButtonId}`,...s};return s.disabled||(u.onClick=EI(n,l),u.onKeyDown=EI(r,c)),I("getToggleButtonProps",a,o,b),u}),[h,j,M,I,S,E]),H=(0,c.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:s,disabled:a,...l}=void 0===e?{}:e;const{state:c,props:u}=j.current,d=()=>{h({type:_M,index:n})},p=UI(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const f={disabled:a,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:S.getItemId(p),[i]:PI(s,(e=>{e&&(y.current[S.getItemId(p)]=e)})),...l};return a||(f.onClick=EI(o,d)),f.onMouseMove=EI(r,(()=>{n!==c.highlightedIndex&&(P.current=!1,h({type:wM,index:n,disabled:a}))})),f}),[h,j,P,S]);return{getToggleButtonProps:$,getLabelProps:B,getMenuProps:V,getItemProps:H,toggleMenu:N,openMenu:D,closeMenu:A,setHighlightedIndex:O,selectItem:z,reset:L,setInputValue:F,highlightedIndex:m,isOpen:f,selectedItem:g,inputValue:v}}OM.stateChangeTypes=AM;vI().array.isRequired,vI().func,vI().func,vI().func,vI().bool,vI().number,vI().number,vI().number,vI().bool,vI().bool,vI().bool,vI().any,vI().any,vI().any,vI().string,vI().string,vI().string,vI().string,vI().string,vI().string,vI().func,vI().string,vI().string,vI().func,vI().func,vI().func,vI().func,vI().func,vI().func,vI().shape({addEventListener:vI().func,removeEventListener:vI().func,document:vI().shape({getElementById:vI().func,activeElement:vI().any,body:vI().any})});vI().array,vI().array,vI().array,vI().func,vI().func,vI().func,vI().number,vI().number,vI().number,vI().func,vI().func,vI().string,vI().string,vI().shape({addEventListener:vI().func,removeEventListener:vI().func,document:vI().shape({getElementById:vI().func,activeElement:vI().any,body:vI().any})});const zM=e=>e?.name,LM=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case OM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case OM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function FM(e){const{__next40pxDefaultSize:t=!1,className:n,hideLabelFromVision:r,label:o,describedBy:i,options:l,onChange:c,size:u="default",value:d,onMouseOver:p,onMouseOut:h,onFocus:f,onBlur:m,__experimentalShowSelectedHint:g=!1}=ib(e),{getLabelProps:v,getToggleButtonProps:b,getMenuProps:x,getItemProps:y,isOpen:w,highlightedIndex:_,selectedItem:S}=OM({initialSelectedItem:l[0],items:l,itemToString:zM,onSelectedItemChange:c,...null!=d?{selectedItem:d}:void 0,stateReducer:LM});let C=x({className:"components-custom-select-control__menu","aria-hidden":!w});const k=(0,Uo.useCallback)((e=>{e.stopPropagation(),C?.onKeyDown?.(e)}),[C]);if(C["aria-activedescendant"]?.startsWith("downshift-null")){const{"aria-activedescendant":e,...t}=C;C=t}return(0,ze.jsxs)("div",{className:s("components-custom-select-control",n),children:[r?(0,ze.jsx)(wa,{as:"label",...v(),children:o}):(0,ze.jsx)(Px,{...v({className:"components-custom-select-control__label"}),children:o}),(0,ze.jsxs)(lb,{__next40pxDefaultSize:t,size:u,suffix:(0,ze.jsx)(X_,{}),children:[(0,ze.jsxs)(U_,{onMouseOver:p,onMouseOut:h,as:"button",onFocus:f,onBlur:m,selectSize:u,__next40pxDefaultSize:t,...b({"aria-label":o,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:i||(S?(0,a.sprintf)((0,a.__)("Currently selected: %s"),S.name):(0,a.__)("No selection"))}),children:[zM(S),g&&S.__experimentalHint&&(0,ze.jsx)("span",{className:"components-custom-select-control__hint",children:S.__experimentalHint})]}),(0,ze.jsx)("div",{className:"components-custom-select-control__menu-wrapper",children:(0,ze.jsx)("ul",{...C,onKeyDown:k,children:w&&l.map(((e,n)=>(0,ze.jsxs)("li",{...y({item:e,index:n,className:s(e.className,"components-custom-select-control__item",{"is-highlighted":n===_,"has-hint":!!e.__experimentalHint,"is-next-40px-default-size":t}),style:e.style}),children:[e.name,e.__experimentalHint&&(0,ze.jsx)("span",{className:"components-custom-select-control__item-hint",children:e.__experimentalHint}),e===S&&(0,ze.jsx)(Y_,{icon:YC,className:"components-custom-select-control__item-icon"})]},e.key)))})})]})]})}function BM(e){return(0,ze.jsx)(FM,{...e,__experimentalShowSelectedHint:!1})}function VM(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function $M(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function HM(e,t){const n=VM(e);if(isNaN(t))return $M(e,NaN);if(!t)return n;const r=n.getDate(),o=$M(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}let WM={};function UM(){return WM}function GM(e,t){const n=UM(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=VM(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function KM(e,t){return function(e,t){const n=VM(e);return isNaN(t)?$M(e,NaN):t?(n.setDate(n.getDate()+t),n):n}(e,7*t)}function YM(e,t){return HM(e,12*t)}function qM(e){const t=VM(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function XM(e,t){const n=VM(e.start),r=VM(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(VM(s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}function ZM(e){const t=VM(e);return t.setDate(1),t.setHours(0,0,0,0),t}function JM(e,t){const n=UM(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=VM(e),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function QM(e,t){return+VM(e)==+VM(t)}function eR(e,t){const n=VM(e),r=n.getFullYear(),o=n.getDate(),i=$M(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=function(e){const t=VM(e),n=t.getFullYear(),r=t.getMonth(),o=$M(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(i);return n.setMonth(t,Math.min(o,s)),n}function tR(){return function(e){const t=VM(e);return t.setHours(0,0,0,0),t}(Date.now())}var nR,rR;!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(nR||(nR={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(rR||(rR={}));var oR=function(e,t,n){return(QM(e,t)||function(e,t){const n=VM(e),r=VM(t);return n.getTime()>r.getTime()}(e,t))&&(QM(e,n)||function(e,t){return+VM(e)<+VM(t)}(e,n))},iR=function(e){return function(e,t){let n=VM(e);return isNaN(+n)?$M(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=eR(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},sR=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?rR.SUNDAY:n,o=t.viewing,i=void 0===o?new Date:o,s=t.selected,a=void 0===s?[]:s,l=t.numberOfMonths,u=void 0===l?1:l,d=(0,c.useState)(i),p=d[0],h=d[1],f=(0,c.useCallback)((function(){return h(tR())}),[h]),m=(0,c.useCallback)((function(e){return h((function(t){return eR(t,e)}))}),[]),g=(0,c.useCallback)((function(){return h((function(e){return function(e,t){return HM(e,-t)}(e,1)}))}),[]),v=(0,c.useCallback)((function(){return h((function(e){return HM(e,1)}))}),[]),b=(0,c.useCallback)((function(e){return h((function(t){return function(e,t){const n=VM(e);return isNaN(+n)?$M(e,NaN):(n.setFullYear(t),n)}(t,e)}))}),[]),x=(0,c.useCallback)((function(){return h((function(e){return function(e,t){return YM(e,-t)}(e,1)}))}),[]),y=(0,c.useCallback)((function(){return h((function(e){return YM(e,1)}))}),[]),w=(0,c.useState)(a.map(iR)),_=w[0],S=w[1],C=(0,c.useCallback)((function(e){return _.findIndex((function(t){return QM(t,e)}))>-1}),[_]),k=(0,c.useCallback)((function(e,t){S(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),j=(0,c.useCallback)((function(e){return S((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!QM(t,e)}))}))}),[]),E=(0,c.useCallback)((function(e,t){return C(e)?j(e):k(e,t)}),[j,C,k]),P=(0,c.useCallback)((function(e,t,n){S(n?XM({start:e,end:t}):function(n){return n.concat(XM({start:e,end:t}))})}),[]),T=(0,c.useCallback)((function(e,t){S((function(n){return n.filter((function(n){return!XM({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),I=(0,c.useMemo)((function(){return function(e,t){const n=VM(e.start),r=VM(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(VM(s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}({start:ZM(p),end:qM(HM(p,u-1))}).map((function(e){return function(e,t){const n=VM(e.start),r=VM(e.end);let o=+n>+r;const i=GM(o?r:n,t),s=GM(o?n:r,t);i.setHours(15),s.setHours(15);const a=+s.getTime();let l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);const u=[];for(;+l<=a;)l.setHours(0),u.push(VM(l)),l=KM(l,c),l.setHours(15);return o?u.reverse():u}({start:ZM(e),end:qM(e)},{weekStartsOn:r}).map((function(e){return XM({start:GM(e,{weekStartsOn:r}),end:JM(e,{weekStartsOn:r})})}))}))}),[p,r,u]);return{clearTime:iR,inRange:oR,viewing:p,setViewing:h,viewToday:f,viewMonth:m,viewPreviousMonth:g,viewNextMonth:v,viewYear:b,viewPreviousYear:x,viewNextYear:y,selected:_,setSelected:S,clearSelected:function(){return S([])},isSelected:C,select:k,deselect:j,toggle:E,selectRange:P,deselectRange:T,calendar:I}};function aR(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function lR(e){const t=aR(e);return t.setHours(0,0,0,0),t}function cR(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function uR(e,t){const n=aR(e);if(isNaN(t))return cR(e,NaN);if(!t)return n;const r=n.getDate(),o=cR(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function dR(e,t){return uR(e,-t)}const pR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function hR(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fR={date:hR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:hR({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:hR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},mR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function gR(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const vR={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:gR({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:gR({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:gR({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:gR({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:gR({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function bR(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(a,(e=>e.test(s))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(a,(e=>e.test(s)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(s.length)}}}const xR={ordinalNumber:(yR={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(yR.matchPattern);if(!n)return null;const r=n[0],o=e.match(yR.parsePattern);if(!o)return null;let i=yR.valueCallback?yR.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:bR({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:bR({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:bR({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bR({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bR({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var yR;const wR={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=pR[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:fR,formatRelative:(e,t,n,r)=>mR[e],localize:vR,match:xR,options:{weekStartsOn:0,firstWeekContainsDate:1}};let _R={};function SR(){return _R}Math.pow(10,8);const CR=6048e5,kR=864e5;function jR(e){const t=aR(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ER(e,t){const n=lR(e),r=lR(t),o=+n-jR(n),i=+r-jR(r);return Math.round((o-i)/kR)}function PR(e){const t=aR(e),n=cR(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function TR(e){const t=aR(e);return ER(t,PR(t))+1}function IR(e,t){const n=SR(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=aR(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function MR(e){return IR(e,{weekStartsOn:1})}function RR(e){const t=aR(e),n=t.getFullYear(),r=cR(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=MR(r),i=cR(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=MR(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function NR(e){const t=RR(e),n=cR(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),MR(n)}function AR(e){const t=aR(e),n=+MR(t)-+NR(t);return Math.round(n/CR)+1}function DR(e,t){const n=aR(e),r=n.getFullYear(),o=SR(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=cR(e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=IR(s,t),l=cR(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=IR(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function OR(e,t){const n=SR(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=DR(e,t),i=cR(e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return IR(i,t)}function zR(e,t){const n=aR(e),r=+IR(n,t)-+OR(n,t);return Math.round(r/CR)+1}function LR(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const FR={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return LR("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):LR(n+1,2)},d:(e,t)=>LR(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>LR(e.getHours()%12||12,t.length),H:(e,t)=>LR(e.getHours(),t.length),m:(e,t)=>LR(e.getMinutes(),t.length),s:(e,t)=>LR(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return LR(Math.trunc(r*Math.pow(10,n-3)),t.length)}},BR="midnight",VR="noon",$R="morning",HR="afternoon",WR="evening",UR="night",GR={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return FR.y(e,t)},Y:function(e,t,n,r){const o=DR(e,r),i=o>0?o:1-o;if("YY"===t){return LR(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):LR(i,t.length)},R:function(e,t){return LR(RR(e),t.length)},u:function(e,t){return LR(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return LR(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return LR(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return FR.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return LR(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=zR(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):LR(o,t.length)},I:function(e,t,n){const r=AR(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):LR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):FR.d(e,t)},D:function(e,t,n){const r=TR(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):LR(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return LR(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return LR(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return LR(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?VR:0===r?BR:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?WR:r>=12?HR:r>=4?$R:UR,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return FR.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):FR.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):LR(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):LR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):FR.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):FR.s(e,t)},S:function(e,t){return FR.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return YR(r);case"XXXX":case"XX":return qR(r);default:return qR(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return YR(r);case"xxxx":case"xx":return qR(r);default:return qR(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+KR(r,":");default:return"GMT"+qR(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+KR(r,":");default:return"GMT"+qR(r,":")}},t:function(e,t,n){return LR(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return LR(e.getTime(),t.length)}};function KR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+LR(i,2)}function YR(e,t){if(e%60==0){return(e>0?"-":"+")+LR(Math.abs(e)/60,2)}return qR(e,t)}function qR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+LR(Math.trunc(r/60),2)+t+LR(r%60,2)}const XR=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ZR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},JR={p:ZR,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return XR(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",XR(r,t)).replace("{{time}}",ZR(o,t))}},QR=/^D+$/,eN=/^Y+$/,tN=["D","DD","YY","YYYY"];function nN(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function rN(e){if(!nN(e)&&"number"!=typeof e)return!1;const t=aR(e);return!isNaN(Number(t))}const oN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sN=/^'([^]*?)'?$/,aN=/''/g,lN=/[a-zA-Z]/;function cN(e,t,n){const r=SR(),o=n?.locale??r.locale??wR,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=aR(e);if(!rN(a))throw new RangeError("Invalid time value");let l=t.match(iN).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,JR[t])(e,o.formatLong)}return e})).join("").match(oN).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:uN(e)};if(GR[t])return{isToken:!0,value:e};if(t.match(lN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return eN.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return QR.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),tN.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,GR[i[0]])(a,i,o.localize,c)})).join("")}function uN(e){const t=e.match(sN);return t?t[1].replace(aN,"'"):e}function dN(e,t){const n=aR(e),r=aR(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function pN(e,t){return+aR(e)==+aR(t)}function hN(e,t){return+lR(e)==+lR(t)}function fN(e,t){const n=aR(e);return isNaN(t)?cR(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function mN(e,t){return fN(e,7*t)}function gN(e,t){return mN(e,-t)}function vN(e,t){const n=SR(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=aR(e),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}const bN=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),xN=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),yN=window.wp.date;const wN=ba("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),_N=ba(ry,{target:"e105ri6r4"})("margin-bottom:",ng(4),";"),SN=ba(ok,{target:"e105ri6r3"})("font-size:",bv.fontSize,";font-weight:",bv.fontWeight,";strong{font-weight:",bv.fontWeightHeading,";}"),CN=ba("div",{target:"e105ri6r2"})("column-gap:",ng(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",ng(2),";"),kN=ba("div",{target:"e105ri6r1"})("color:",Na.gray[700],";font-size:",bv.fontSize,";line-height:",bv.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),jN=ba(Hx,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",ng(7),";width:",ng(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Na.theme.accent};\n\t\t\tcolor: ${Na.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Na.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Na.white:Na.theme.accent};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 2px;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function EN(e){return"string"==typeof e?new Date(e):aR(e)}const PN="yyyy-MM-dd'T'HH:mm:ss";function TN({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:a,onClick:l,onKeyDown:c}){const u=(0,Uo.useRef)();return(0,Uo.useEffect)((()=>{u.current&&r&&o&&u.current.focus()}),[r]),(0,ze.jsx)(jN,{ref:u,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":IN(e,n,a),column:t,isSelected:n,isToday:i,hasEvents:a>0,onClick:l,onKeyDown:c,children:(0,yN.dateI18n)("j",e,-e.getTimezoneOffset())})}function IN(e,t,n){const{formats:r}=(0,yN.getSettings)(),o=(0,yN.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,a.sprintf)((0,a._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,a.sprintf)((0,a.__)("%1$s. Selected"),o):n>0?(0,a.sprintf)((0,a._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}const MN=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?EN(e):new Date,{calendar:l,viewing:c,setSelected:u,setViewing:d,isSelected:p,viewPreviousMonth:h,viewNextMonth:f}=sR({selected:[lR(s)],viewing:lR(s),weekStartsOn:i}),[m,g]=(0,Uo.useState)(lR(s)),[v,b]=(0,Uo.useState)(!1),[x,y]=(0,Uo.useState)(e);return e!==x&&(y(e),u([lR(s)]),d(lR(s)),g(lR(s))),(0,ze.jsxs)(wN,{className:"components-datetime__date",role:"application","aria-label":(0,a.__)("Calendar"),children:[(0,ze.jsxs)(_N,{children:[(0,ze.jsx)(Hx,{icon:(0,a.isRTL)()?bN:xN,variant:"tertiary","aria-label":(0,a.__)("View previous month"),onClick:()=>{h(),g(dR(m,1)),o?.(cN(dR(c,1),PN))}}),(0,ze.jsxs)(SN,{level:3,children:[(0,ze.jsx)("strong",{children:(0,yN.dateI18n)("F",c,-c.getTimezoneOffset())})," ",(0,yN.dateI18n)("Y",c,-c.getTimezoneOffset())]}),(0,ze.jsx)(Hx,{icon:(0,a.isRTL)()?xN:bN,variant:"tertiary","aria-label":(0,a.__)("View next month"),onClick:()=>{f(),g(uR(m,1)),o?.(cN(uR(c,1),PN))}})]}),(0,ze.jsxs)(CN,{onFocus:()=>b(!0),onBlur:()=>b(!1),children:[l[0][0].map((e=>(0,ze.jsx)(kN,{children:(0,yN.dateI18n)("D",e,-e.getTimezoneOffset())},e.toString()))),l[0].map((e=>e.map(((e,i)=>dN(e,c)?(0,ze.jsx)(TN,{day:e,column:i+1,isSelected:p(e),isFocusable:pN(e,m),isFocusAllowed:v,isToday:hN(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>hN(t.date,e))).length,onClick:()=>{u([e]),g(e),t?.(cN(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),PN))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=fN(e,(0,a.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=fN(e,(0,a.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=gN(e,1)),"ArrowDown"===t.key&&(n=mN(e,1)),"PageUp"===t.key&&(n=dR(e,1)),"PageDown"===t.key&&(n=uR(e,1)),"Home"===t.key&&(n=IR(e)),"End"===t.key&&(n=lR(vN(e))),n&&(t.preventDefault(),g(n),dN(n,c)||(d(n),o?.(cN(n,PN))))}},e.toString()):null))))]})]})};function RN(e){const t=aR(e);return t.setSeconds(0,0),t}function NN(e){const t=aR(e),n=t.getFullYear(),r=t.getMonth(),o=cR(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function AN(e,t){const n=aR(e),r=n.getFullYear(),o=n.getDate(),i=cR(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=NN(i);return n.setMonth(t,Math.min(o,s)),n}function DN(e,t){let n=aR(e);return isNaN(+n)?cR(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=AN(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function ON(e,t){const n=aR(e);return n.setHours(t),n}const zN=ba("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",bv.fontSize,";"),LN=ba("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",ng(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),FN=ba("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),BN=Ea("&&& ",Jv,"{padding-left:",ng(2),";padding-right:",ng(2),";text-align:center;}",""),VN=ba(sy,{target:"evcr2316"})(BN," width:",ng(9),";&&& ",Jv,"{padding-right:0;}&&& ",Bv,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),$N=ba("span",{target:"evcr2315"})("border-top:",bv.borderWidth," solid ",Na.gray[700],";border-bottom:",bv.borderWidth," solid ",Na.gray[700],";line-height:calc(\n\t\t",bv.controlHeight," - ",bv.borderWidth," * 2\n\t);display:inline-block;"),HN=ba(sy,{target:"evcr2314"})(BN," width:",ng(9),";&&& ",Jv,"{padding-left:0;}&&& ",Bv,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),WN=ba("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),UN=ba(sy,{target:"evcr2312"})(BN," width:",ng(9),";"),GN=ba(sy,{target:"evcr2311"})(BN," width:",ng(14),";"),KN=ba("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),YN=()=>{const{timezone:e}=(0,yN.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,o=e.string.replace("_"," "),i="UTC"===e.string?(0,a.__)("Coordinated Universal Time"):`(${r}) ${o}`;return 0===o.trim().length?(0,ze.jsx)(KN,{className:"components-datetime__timezone",children:r}):(0,ze.jsx)(ri,{placement:"top",text:i,children:(0,ze.jsx)(KN,{className:"components-datetime__timezone",children:r})})};function qN(e,t){return t?(e%12+12)%24:e%12}function XN(e){return(t,n)=>{const r={...t};return n.type!==sx&&n.type!==fx&&n.type!==px||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}const ZN=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,Uo.useState)((()=>t?RN(EN(t)):new Date));(0,Uo.useEffect)((()=>{o(t?RN(EN(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:c,hours:u,am:d}=(0,Uo.useMemo)((()=>({day:cN(r,"dd"),month:cN(r,"MM"),year:cN(r,"yyyy"),minutes:cN(r,"mm"),hours:cN(r,e?"hh":"HH"),am:cN(r,"a")})),[r,e]),p=t=>(i,{event:s})=>{var a;const l=null!==(a=s.target?.ownerDocument.defaultView?.HTMLInputElement)&&void 0!==a?a:HTMLInputElement;if(!(s.target instanceof l))return;if(!s.target.validity.valid)return;let c=Number(i);"hours"===t&&e&&(c=qN(c,"PM"===d));const u=DN(r,{[t]:c});o(u),n?.(cN(u,PN))};function h(e){return()=>{if(d===e)return;const t=parseInt(u,10),i=ON(r,qN(t,"PM"===e));o(i),n?.(cN(i,PN))}}const f=(0,ze.jsx)(UN,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,a.__)("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),m=(0,ze.jsx)(WN,{children:(0,ze.jsx)(J_,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,a.__)("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,a.__)("January")},{value:"02",label:(0,a.__)("February")},{value:"03",label:(0,a.__)("March")},{value:"04",label:(0,a.__)("April")},{value:"05",label:(0,a.__)("May")},{value:"06",label:(0,a.__)("June")},{value:"07",label:(0,a.__)("July")},{value:"08",label:(0,a.__)("August")},{value:"09",label:(0,a.__)("September")},{value:"10",label:(0,a.__)("October")},{value:"11",label:(0,a.__)("November")},{value:"12",label:(0,a.__)("December")}],onChange:e=>{const t=AN(r,Number(e)-1);o(t),n?.(cN(t,PN))}})});return(0,ze.jsxs)(zN,{className:"components-datetime__time",children:[(0,ze.jsxs)(LN,{children:[(0,ze.jsx)(Dx.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:(0,a.__)("Time")}),(0,ze.jsxs)(ry,{className:"components-datetime__time-wrapper",children:[(0,ze.jsxs)(FN,{className:"components-datetime__time-field components-datetime__time-field-time",children:[(0,ze.jsx)(VN,{className:"components-datetime__time-field-hours-input",label:(0,a.__)("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:u,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:XN(2)}),(0,ze.jsx)($N,{className:"components-datetime__time-separator","aria-hidden":"true",children:":"}),(0,ze.jsx)(HN,{className:"components-datetime__time-field-minutes-input",label:(0,a.__)("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:c,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:XN(2)})]}),e&&(0,ze.jsxs)(Qj,{className:"components-datetime__time-field components-datetime__time-field-am-pm",children:[(0,ze.jsx)(Hx,{className:"components-datetime__time-am-button",variant:"AM"===d?"primary":"secondary",__next40pxDefaultSize:!0,onClick:h("AM"),children:(0,a.__)("AM")}),(0,ze.jsx)(Hx,{className:"components-datetime__time-pm-button",variant:"PM"===d?"primary":"secondary",__next40pxDefaultSize:!0,onClick:h("PM"),children:(0,a.__)("PM")})]}),(0,ze.jsx)(Sg,{}),(0,ze.jsx)(YN,{})]})]}),(0,ze.jsxs)(LN,{children:[(0,ze.jsx)(Dx.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:(0,a.__)("Date")}),(0,ze.jsxs)(ry,{className:"components-datetime__time-wrapper",children:[e?(0,ze.jsxs)(ze.Fragment,{children:[m,f]}):(0,ze.jsxs)(ze.Fragment,{children:[f,m]}),(0,ze.jsx)(GN,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,a.__)("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:XN(4)})]})]})]})};const JN=ba(tk,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),QN=()=>{};const eA=(0,Uo.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=QN,onChange:o,events:i,startOfWeek:s},a){return(0,ze.jsx)(JN,{ref:a,className:"components-datetime",spacing:4,children:(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(ZN,{currentTime:e,onChange:o,is12Hour:t}),(0,ze.jsx)(MN,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})]})})})),tA=eA,nA=[{name:(0,a._x)("None","Size of a UI element"),slug:"none"},{name:(0,a._x)("Small","Size of a UI element"),slug:"small"},{name:(0,a._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,a._x)("Large","Size of a UI element"),slug:"large"},{name:(0,a._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];const rA=function(e){const{__next40pxDefaultSize:t=!1,label:n,value:r,sizes:o=nA,icon:i,onChange:l,className:c=""}=e,u=(0,ze.jsxs)(ze.Fragment,{children:[i&&(0,ze.jsx)(Bx,{icon:i}),n]});return(0,ze.jsx)(J_,{__next40pxDefaultSize:t,className:s(c,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:r,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(o,e);t&&r!==t.slug?"function"==typeof l&&l(t.slug):l?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,a.__)("Default"),value:""},...t]})(o)})};const oA={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},iA=(0,Uo.createContext)(!1),{Consumer:sA,Provider:aA}=iA;function lA({className:e,children:t,isDisabled:n=!0,...r}){const o=na();return(0,ze.jsx)(aA,{value:n,children:(0,ze.jsx)("div",{inert:n?"true":void 0,className:n?o(oA,e,"components-disabled"):void 0,...r,children:t})})}lA.Context=iA,lA.Consumer=sA;const cA=lA,uA=(0,Uo.forwardRef)((({visible:e,children:t,...n},r)=>{const o=Xt({open:e});return(0,ze.jsx)(Zn,{store:o,ref:r,...n,children:t})})),dA="is-dragging-components-draggable";const pA=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:a,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}){const d=(0,Uo.useRef)(null),p=(0,Uo.useRef)((()=>{}));return(0,Uo.useEffect)((()=>()=>{p.current()}),[]),(0,ze.jsxs)(ze.Fragment,{children:[e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(a));const u=r.createElement("div");u.style.top="0",u.style.left="0";const h=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(h.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(h),e.dataTransfer.setDragImage(h,0,0)),u.classList.add("components-draggable__clone"),i&&u.classList.add(i);let f=0,m=0;if(d.current){f=e.clientX,m=e.clientY,u.style.transform=`translate( ${f}px, ${m}px )`;const t=r.createElement("div");t.innerHTML=d.current.innerHTML,u.appendChild(t),r.body.appendChild(u)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,a=t.left;u.style.width=`${t.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${s}`,f=a-0,m=i-0,u.style.transform=`translate( ${f}px, ${m}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),u.appendChild(l),o?r.body.appendChild(u):n?.appendChild(u)}let g=e.clientX,v=e.clientY;const b=(0,l.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=f+e.clientX-g,r=m+e.clientY-v;u.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,f=t,m=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(dA),t&&t(e),p.current=()=>{u&&u.parentNode&&u.parentNode.removeChild(u),h&&h.parentNode&&h.parentNode.removeChild(h),r.body.classList.remove(dA),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),u&&(0,ze.jsx)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:d,children:u})]})},hA=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})}),fA={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},mA={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};function gA({label:e}){const t=(0,l.useReducedMotion)(),n=(0,ze.jsx)(Hm.div,{variants:fA,initial:t?"show":"hidden",animate:"show",exit:t?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"},children:(0,ze.jsxs)(Hm.div,{variants:mA,children:[(0,ze.jsx)(Y_,{icon:hA,className:"components-drop-zone__content-icon"}),(0,ze.jsx)("span",{className:"components-drop-zone__content-text",children:e||(0,a.__)("Drop files to upload")})]})});return t?n:(0,ze.jsx)(Zm,{children:n})}const vA=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[a,c]=(0,Uo.useState)(),[u,d]=(0,Uo.useState)(),[p,h]=(0,Uo.useState)(),f=(0,l.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,uT.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){c(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,uT.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){c(!1),h(void 0)},onDragEnter(){d(!0)},onDragLeave(){d(!1)}}),m=s("components-drop-zone",e,{"is-active":(a||u)&&("file"===p&&n||"html"===p&&r||"default"===p&&o),"is-dragging-over-document":a,"is-dragging-over-element":u,[`is-dragging-${p}`]:!!p});return(0,ze.jsx)("div",{...i,ref:f,className:m,children:u&&(0,ze.jsx)(gA,{label:t})})};function bA({children:e}){return Ko()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}const xA=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"})});function yA(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}cv([uv]);const wA=function({values:e}){return e?(0,ze.jsx)(A_,{colorValue:yA(e,"135deg")}):(0,ze.jsx)(Bx,{icon:xA})};function _A({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,c]=(0,Uo.useState)(!1),u=(0,l.useInstanceId)(_A,"color-list-picker-option"),d=`${u}__label`,p=`${u}__content`;return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Hx,{className:"components-color-list-picker__swatch-button",onClick:()=>c((e=>!e)),"aria-expanded":s,"aria-controls":p,children:(0,ze.jsxs)(ry,{justify:"flex-start",spacing:2,children:[t?(0,ze.jsx)(A_,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,ze.jsx)(Bx,{icon:xA}),(0,ze.jsx)("span",{id:d,children:e})]})}),(0,ze.jsx)("div",{role:"group",id:p,"aria-labelledby":d,"aria-hidden":!s,children:s&&(0,ze.jsx)(fk,{"aria-label":(0,a.__)("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o})})]})}const SA=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,ze.jsx)("div",{className:"components-color-list-picker",children:t.map(((t,s)=>(0,ze.jsx)(_A,{label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}},s)))})},CA=["#333","#CCC"];function kA({value:e,onChange:t}){const n=!!e,r=n?e:CA,o=yA(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,ze.jsx)(HP,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const jA=function({asButtons:e,loop:t,clearable:n=!0,unsetable:r=!0,colorPalette:o,duotonePalette:i,disableCustomColors:s,disableCustomDuotone:l,value:c,onChange:u,"aria-label":d,"aria-labelledby":p,...h}){const[f,m]=(0,Uo.useMemo)((()=>{return!(e=o)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:av(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[o]),g="unset"===c,v=(0,a.__)("Unset"),b=(0,ze.jsx)(ek.Option,{value:"unset",isSelected:g,tooltipText:v,"aria-label":v,className:"components-duotone-picker__color-indicator",onClick:()=>{u(g?void 0:"unset")}},"unset"),x=i.map((({colors:e,slug:t,name:n})=>{const r={background:yA(e,"135deg"),color:"transparent"},o=null!=n?n:(0,a.sprintf)((0,a.__)("Duotone code: %s"),t),i=n?(0,a.sprintf)((0,a.__)("Duotone: %s"),n):o,s=ai()(e,c);return(0,ze.jsx)(ek.Option,{value:e,isSelected:s,"aria-label":i,tooltipText:o,style:r,onClick:()=>{u(s?void 0:e)}},t)}));let y;if(e)y={asButtons:!0};else{const e={asButtons:!1,loop:t};y=d?{...e,"aria-label":d}:p?{...e,"aria-labelledby":p}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}const w=r?[b,...x]:x;return(0,ze.jsx)(ek,{...h,...y,options:w,actions:!!n&&(0,ze.jsx)(ek.ButtonAction,{onClick:()=>u(void 0),children:(0,a.__)("Clear")}),children:(0,ze.jsx)(Sg,{paddingTop:0===w.length?0:4,children:(0,ze.jsxs)(tk,{spacing:3,children:[!s&&!l&&(0,ze.jsx)(kA,{value:g?void 0:c,onChange:u}),!l&&(0,ze.jsx)(SA,{labels:[(0,a.__)("Shadows"),(0,a.__)("Highlights")],colors:o,value:g?void 0:c,disableCustomColors:s,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=f),e[1]||(e[1]=m);const t=e.length>=2?e:void 0;u(t)}})]})})})};const EA=(0,Uo.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...l}=e,c=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),u=s("components-external-link",o),d=!!n?.startsWith("#");return(0,ze.jsxs)("a",{...l,className:u,href:n,onClick:t=>{d&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:c,ref:t,children:[(0,ze.jsx)("span",{className:"components-external-link__contents",children:r}),(0,ze.jsx)("span",{className:"components-external-link__icon","aria-label":(0,a.__)("(opens in a new tab)"),children:"↗"})]})})),PA={width:200,height:170},TA=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function IA(e){return Math.round(100*e)}const MA=ba("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),RA=ba("div",{target:"eeew7dm7"})("align-items:center;border-radius:",bv.radiusBlockUi,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),NA=ba("div",{target:"eeew7dm6"})("background:",Na.gray[100],";border-radius:inherit;box-sizing:border-box;height:",PA.height,"px;max-width:280px;min-width:",PA.width,"px;width:100%;"),AA=ba(Wk,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var DA={name:"1mn7kwb",styles:"padding-bottom:1em"};const OA=({__nextHasNoMarginBottom:e})=>e?void 0:DA;var zA={name:"1mn7kwb",styles:"padding-bottom:1em"};const LA=({hasHelpText:e=!1})=>e?zA:void 0,FA=ba(dg,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",LA," ",OA,";"),BA=ba("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:",(({showOverlay:e})=>e?1:0),";"),VA=ba("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),$A=ba(VA,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),HA=ba(VA,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),WA=0,UA=100,GA=()=>{};function KA({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,hasHelpText:n,onChange:r=GA,point:o={x:.5,y:.5}}){const i=IA(o.x),s=IA(o.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||r({...o,[t]:n/100})};return(0,ze.jsxs)(FA,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:n,gap:4,children:[(0,ze.jsx)(YA,{__next40pxDefaultSize:t,label:(0,a.__)("Left"),"aria-label":(0,a.__)("Focal point left position"),value:[i,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,ze.jsx)(YA,{__next40pxDefaultSize:t,label:(0,a.__)("Top"),"aria-label":(0,a.__)("Focal point top position"),value:[s,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"})]})}function YA(e){return(0,ze.jsx)(AA,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:UA,min:WA,units:[{value:"%",label:"%"}],...e})}const qA=ba("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}",(({isDragging:e})=>e&&"\n\t\t\tbox-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;\n\t\t\ttransform: scale( 1.1 );\n\t\t\tcursor: grabbing;\n\t\t\t"),";");function XA({left:e="50%",top:t="50%",...n}){const r={left:e,top:t};return(0,ze.jsx)(qA,{...n,className:"components-focal-point-picker__icon_container",style:r})}function ZA({bounds:e,...t}){return(0,ze.jsxs)(BA,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height},children:[(0,ze.jsx)($A,{style:{top:"33%"}}),(0,ze.jsx)($A,{style:{top:"66%"}}),(0,ze.jsx)(HA,{style:{left:"33%"}}),(0,ze.jsx)(HA,{style:{left:"66%"}})]})}function JA({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,ze.jsx)(NA,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||TA.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,ze.jsx)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,ze.jsx)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}const QA=function e({__nextHasNoMarginBottom:t,__next40pxDefaultSize:n=!1,autoPlay:r=!0,className:o,help:i,label:c,onChange:u,onDrag:d,onDragEnd:p,onDragStart:h,resolvePoint:f,url:m,value:g={x:.5,y:.5},...v}){const[b,x]=(0,Uo.useState)(g),[y,w]=(0,Uo.useState)(!1),{startDrag:_,endDrag:S,isDragging:C}=(0,l.__experimentalUseDragging)({onDragStart:e=>{E.current?.focus();const t=M(e);t&&(h?.(t,e),x(t))},onDragMove:e=>{e.preventDefault();const t=M(e);t&&(d?.(t,e),x(t))},onDragEnd:()=>{p?.(),u?.(b)}}),{x:k,y:j}=C?b:g,E=(0,Uo.useRef)(null),[P,T]=(0,Uo.useState)(PA),I=(0,Uo.useRef)((()=>{if(!E.current)return;const{clientWidth:e,clientHeight:t}=E.current;T(e>0&&t>0?{width:e,height:t}:{...PA})}));(0,Uo.useEffect)((()=>{const e=I.current;if(!E.current)return;const{defaultView:t}=E.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,l.useIsomorphicLayoutEffect)((()=>{I.current()}),[]);const M=({clientX:e,clientY:t,shiftKey:n})=>{if(!E.current)return;const{top:r,left:o}=E.current.getBoundingClientRect();let i=(e-o)/P.width,s=(t-r)/P.height;return n&&(i=.1*Math.round(i/.1),s=.1*Math.round(s/.1)),R({x:i,y:s})},R=e=>{var t;const n=null!==(t=f?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},N={left:void 0!==k?k*P.width:.5*P.width,top:void 0!==j?j*P.height:.5*P.height},A=s("components-focal-point-picker-control",o),D=`inspector-focal-point-picker-control-${(0,l.useInstanceId)(e)}`;return ui((()=>{w(!0);const e=window.setTimeout((()=>{w(!1)}),600);return()=>window.clearTimeout(e)}),[k,j]),(0,ze.jsxs)(Dx,{...v,__nextHasNoMarginBottom:t,label:c,id:D,help:i,className:A,children:[(0,ze.jsx)(MA,{className:"components-focal-point-picker-wrapper",children:(0,ze.jsxs)(RA,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:k,y:j},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,s="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[s]=r[s]+i,u?.(R(r))},onMouseDown:_,onBlur:()=>{C&&S()},ref:E,role:"button",tabIndex:-1,children:[(0,ze.jsx)(ZA,{bounds:P,showOverlay:y}),(0,ze.jsx)(JA,{alt:(0,a.__)("Media preview"),autoPlay:r,onLoad:I.current,src:m}),(0,ze.jsx)(XA,{...N,isDragging:C})]})}),(0,ze.jsx)(KA,{__nextHasNoMarginBottom:t,__next40pxDefaultSize:n,hasHelpText:!!i,point:{x:k,y:j},onChange:e=>{u?.(R(e))}})]})};function eD({iframeRef:e,...t}){const n=(0,l.useMergeRefs)([e,(0,l.useFocusableIframe)()]);return Ko()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,ze.jsx)("iframe",{ref:n,...t})}const tD=(0,ze.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,ze.jsx)(n.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,ze.jsx)(n.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]});function nD(e){const[t,...n]=e;if(!t)return null;const[,r]=zk(t.size);return n.every((e=>{const[,t]=zk(e.size);return t===r}))?r:null}const rD=ba("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),oD=ba(ry,{target:"e8tqeku3"})("height:",ng(4),";"),iD=ba(Hx,{target:"e8tqeku2"})("margin-top:",ng(-1),";"),sD=ba(Dx.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",ng(1),";justify-content:flex-start;margin-bottom:0;"),aD=ba("span",{target:"e8tqeku0"})("color:",Na.gray[700],";"),lD={key:"default",name:(0,a.__)("Default"),value:void 0},cD={key:"custom",name:(0,a.__)("Custom")},uD=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:r,value:o,disableCustomFontSizes:i,size:s,onChange:l,onSelectCustom:c}=e,u=!!nD(r),d=[lD,...r.map((e=>{let t;if(u){const[n]=zk(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...i?[]:[cD]],p=o?null!==(t=d.find((e=>e.value===o)))&&void 0!==t?t:cD:lD;return(0,ze.jsx)(FM,{__next40pxDefaultSize:n,className:"components-font-size-picker__select",label:(0,a.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,a.sprintf)((0,a.__)("Currently selected font size: %s"),p.name),options:d,value:p,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===cD?c():l(e.value)},size:s})};const dD=(0,Uo.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,ze.jsx)(T_,{...r,"aria-label":o,ref:t,children:n})})),pD=[(0,a.__)("S"),(0,a.__)("M"),(0,a.__)("L"),(0,a.__)("XL"),(0,a.__)("XXL")],hD=[(0,a.__)("Small"),(0,a.__)("Medium"),(0,a.__)("Large"),(0,a.__)("Extra Large"),(0,a.__)("Extra Extra Large")],fD=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:r,size:o,onChange:i}=e;return(0,ze.jsx)(h_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:r,label:(0,a.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o,children:t.map(((e,t)=>(0,ze.jsx)(dD,{value:e.size,label:pD[t],"aria-label":e.name||hD[t],showTooltip:!0},e.slug)))})},mD=["px","em","rem","vw","vh"],gD=(0,Uo.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:c=mD,value:u,withSlider:d=!1,withReset:p=!0}=e,h=Lk({availableUnits:c}),f=o.length>5,m=o.find((e=>e.size===u)),g=!!u&&!m,[v,b]=(0,Uo.useState)(!i&&g),x=(0,Uo.useMemo)((()=>{if(v)return(0,a.__)("Custom");if(!f)return m?m.name||hD[o.indexOf(m)]:"";const e=nD(o);return e?`(${e})`:""}),[v,f,m,o]);if(0===o.length&&i)return null;const y="string"==typeof u||"string"==typeof o[0]?.size,[w,_]=zk(u,h),S=!!_&&["em","rem","vw","vh"].includes(_),C=void 0===u;return(0,ze.jsxs)(rD,{ref:t,className:"components-font-size-picker",children:[(0,ze.jsx)(wa,{as:"legend",children:(0,a.__)("Font size")}),(0,ze.jsx)(Sg,{children:(0,ze.jsxs)(oD,{className:"components-font-size-picker__header",children:[(0,ze.jsxs)(sD,{"aria-label":`${(0,a.__)("Size")} ${x||""}`,children:[(0,a.__)("Size"),x&&(0,ze.jsx)(aD,{className:"components-font-size-picker__header__hint",children:x})]}),!i&&(0,ze.jsx)(iD,{label:v?(0,a.__)("Use size preset"):(0,a.__)("Set custom size"),icon:tD,onClick:()=>{b(!v)},isPressed:v,size:"small"})]})}),(0,ze.jsxs)("div",{children:[!!o.length&&f&&!v&&(0,ze.jsx)(uD,{__next40pxDefaultSize:n,fontSizes:o,value:u,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(y?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>b(!0)}),!f&&!v&&(0,ze.jsx)(fD,{fontSizes:o,value:u,__next40pxDefaultSize:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(y?e:Number(e),o.find((t=>t.size===e)))}}),!i&&v&&(0,ze.jsxs)(dg,{className:"components-font-size-picker__custom-size-control",children:[(0,ze.jsx)(jg,{isBlock:!0,children:(0,ze.jsx)(Wk,{__next40pxDefaultSize:n,label:(0,a.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:u,onChange:e=>{s?.(void 0===e?void 0:y?e:parseInt(e,10))},size:l,units:y?h:[],min:0})}),d&&(0,ze.jsx)(jg,{isBlock:!0,children:(0,ze.jsx)(Sg,{marginX:2,marginBottom:0,children:(0,ze.jsx)(BS,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:(0,a.__)("Custom Size"),hideLabelFromVision:!0,value:w,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:y?e+(null!=_?_:"px"):e)},min:0,max:S?10:100,step:S?.1:1})})}),p&&(0,ze.jsx)(jg,{children:(0,ze.jsx)($x,{disabled:C,__experimentalIsFocusable:!0,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===l||e.__next40pxDefaultSize?"default":"small",children:(0,a.__)("Reset")})})]})]})]})})),vD=gD;const bD=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const a=(0,Uo.useRef)(null),l=()=>{a.current?.click()},c=i?i({openFileDialog:l}):(0,ze.jsx)(Hx,{onClick:l,...s,children:t});return(0,ze.jsxs)("div",{className:"components-form-file-upload",children:[c,(0,ze.jsx)("input",{type:"file",ref:a,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"})]})},xD=()=>{};const yD=(0,Uo.forwardRef)((function(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:a=xD,...l}=e,c=s("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return(0,ze.jsxs)("span",{className:c,children:[(0,ze.jsx)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:a,disabled:i,...l,ref:t}),(0,ze.jsx)("span",{className:"components-form-toggle__track"}),(0,ze.jsx)("span",{className:"components-form-toggle__thumb"})]})})),wD=()=>{};function _D({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:c=wD,onMouseEnter:u,onMouseLeave:d,messages:p,termPosition:h,termsCount:f}){const m=(0,l.useInstanceId)(_D),g=s("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),v=r(e),b=(0,a.sprintf)((0,a.__)("%1$s (%2$s of %3$s)"),v,h,f);return(0,ze.jsxs)("span",{className:g,onMouseEnter:u,onMouseLeave:d,title:n,children:[(0,ze.jsxs)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${m}`,children:[(0,ze.jsx)(wa,{as:"span",children:b}),(0,ze.jsx)("span",{"aria-hidden":"true",children:v})]}),(0,ze.jsx)(Hx,{className:"components-form-token-field__remove-token",icon:zw,onClick:i?void 0:()=>c({value:e}),disabled:i,label:p.remove,"aria-describedby":`components-form-token-field__token-text-${m}`})]})}const SD=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&Ea("padding-top:",ng(t?1:.5),";padding-bottom:",ng(t?1:.5),";",""),CD=ba(dg,{target:"ehq8nmi0"})("padding:7px;",Sx," ",SD,";"),kD=e=>e;const jD=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:c=(0,a.__)("Add item"),className:u,suggestions:d=[],maxSuggestions:p=100,value:h=[],displayTransform:f=kD,saveTransform:m=(e=>e.trim()),onChange:g=(()=>{}),onInputChange:v=(()=>{}),onFocus:b,isBorderless:x=!1,disabled:y=!1,tokenizeOnSpace:w=!1,messages:_={added:(0,a.__)("Item added."),removed:(0,a.__)("Item removed."),remove:(0,a.__)("Remove item"),__experimentalInvalid:(0,a.__)("Invalid item")},__experimentalRenderItem:S,__experimentalExpandOnFocus:C=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:j=!0,__next40pxDefaultSize:E=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:T=!1,tokenizeOnBlur:I=!1}=ib(t),M=(0,l.useInstanceId)(e),[R,N]=(0,Uo.useState)(""),[A,D]=(0,Uo.useState)(0),[O,z]=(0,Uo.useState)(!1),[L,F]=(0,Uo.useState)(!1),[B,V]=(0,Uo.useState)(-1),[$,H]=(0,Uo.useState)(!1),W=(0,l.usePrevious)(d),U=(0,l.usePrevious)(h),G=(0,Uo.useRef)(null),K=(0,Uo.useRef)(null),Y=(0,l.useDebounce)(gy.speak,500);function q(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(e){if(pe()&&k(R))z(!1),I&&pe()&&se(R);else{if(N(""),D(0),z(!1),C){const t=e.relatedTarget===K.current;F(t)}else F(!1);V(-1),H(!1)}}function J(e){e.target===K.current&&O&&e.preventDefault()}function Q(e){ae(e.value),q()}function ee(e){const t=e.value,n=w?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),N(o),v(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&ae(h[e])}function re(){const e=ue();e<h.length&&(ae(h[e]),function(e){D(h.length-Math.max(e,-1)-1)}(e))}function oe(){let e=!1;const t=function(){if(-1!==B)return ce()[B];return}();return t?(se(t),e=!0):pe()&&(se(R),e=!0),e}function ie(e){const t=[...new Set(e.map(m).filter(Boolean).filter((e=>!function(e){return h.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...h];e.splice(ue(),0,...t),g(e)}}function se(e){k(e)?(ie([e]),(0,gy.speak)(_.added,"assertive"),N(""),V(-1),H(!1),F(!C),O&&!I&&q()):(0,gy.speak)(_.__experimentalInvalid,"assertive")}function ae(e){const t=h.filter((t=>le(t)!==le(e)));g(t),(0,gy.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=R,t=d,n=h,r=p,o=m){let i=o(e);const s=[],a=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?s.push(e):t>0&&a.push(e))})),t=s.concat(a)),t.slice(0,r)}function ue(){return h.length-A}function de(){return 0===R.length}function pe(){return m(R).length>0}function he(e=!0){const t=R.trim().length>1,n=ce(R),r=n.length>0,o=X()&&C;if(F(o||t&&r),e&&(P&&t&&r?(V(0),H(!0)):(V(-1),H(!1))),t){const e=r?(0,a.sprintf)((0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,a.__)("No results.");Y(e,"assertive")}}function fe(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,ze.jsx)(jg,{children:(0,ze.jsx)(_D,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:f,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||x,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&y,messages:_,termsCount:s,termPosition:i})},"token-"+r)}(0,Uo.useEffect)((()=>{O&&!X()&&q()}),[O]),(0,Uo.useEffect)((()=>{const e=!ow()(d,W||[]);(e||h!==U)&&he(e)}),[d,W,h,U]),(0,Uo.useEffect)((()=>{he()}),[R]),(0,Uo.useEffect)((()=>{he()}),[P]),y&&O&&(z(!1),N(""));const me=s(u,"components-form-token-field__input-container",{"is-active":O,"is-disabled":y});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return y||(ge=Object.assign({},ge,{onKeyDown:vx((function(e){let t=!1;if(!e.defaultPrevented){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(D((e=>Math.min(e+1,h.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(R,d,h,p,m).length:e)-1)),H(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(D((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(R,d,h,p,m).length)),H(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":w&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(N(e.target.value),F(!1),V(-1),H(!1)),!0}(e)}t&&e.preventDefault()}})),onKeyPress:function(e){let t=!1;","===e.key&&(pe()&&se(R),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),F(C||L)):z(!1),"function"==typeof b&&b(e)}})),(0,ze.jsxs)("div",{...ge,children:[c&&(0,ze.jsx)(Px,{htmlFor:`components-form-token-input-${M}`,className:"components-form-token-field__label",children:c}),(0,ze.jsxs)("div",{ref:K,className:me,tabIndex:-1,onMouseDown:J,onTouchStart:J,children:[(0,ze.jsx)(CD,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:E,hasTokens:!!h.length,children:function(){const e=h.map(fe);return e.splice(ue(),0,function(){const e={instanceId:M,autoCapitalize:n,autoComplete:r,placeholder:0===h.length?i:"",disabled:y,value:R,onBlur:Z,isExpanded:L,selectedSuggestionIndex:B};return(0,ze.jsx)($T,{...e,onChange:o&&h.length>=o?void 0:ee,ref:G},"input")}()),e}()}),L&&(0,ze.jsx)(WT,{instanceId:M,match:m(R),displayTransform:f,suggestions:ve,selectedIndex:B,scrollIntoView:$,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),H(!1))},onSelect:function(e){se(e)},__experimentalRenderItem:S})]}),!T&&(0,ze.jsx)(Sg,{marginBottom:2}),j&&(0,ze.jsx)(Mx,{id:`components-form-token-suggestions-howto-${M}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:T,children:w?(0,a.__)("Separate with commas, spaces, or the Enter key."):(0,a.__)("Separate with commas or the Enter key.")})]})},ED=()=>(0,ze.jsx)(n.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)(n.Circle,{cx:"4",cy:"4",r:"4"})});function PD({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,ze.jsx)("ul",{className:"components-guide__page-control","aria-label":(0,a.__)("Guide controls"),children:Array.from({length:t}).map(((r,o)=>(0,ze.jsx)("li",{"aria-current":o===e?"step":void 0,children:(0,ze.jsx)(Hx,{icon:(0,ze.jsx)(ED,{}),"aria-label":(0,a.sprintf)((0,a.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)},o)},o)))})}const TD=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,a.__)("Finish"),onFinish:o,pages:i=[]}){const l=(0,Uo.useRef)(null),[c,u]=(0,Uo.useState)(0);var d;(0,Uo.useEffect)((()=>{const e=l.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[c]),(0,Uo.useEffect)((()=>{Uo.Children.count(e)&&Ko()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),Uo.Children.count(e)&&(i=null!==(d=Uo.Children.map(e,(e=>({content:e}))))&&void 0!==d?d:[]);const p=c>0,h=c<i.length-1,f=()=>{p&&u(c-1)},m=()=>{h&&u(c+1)};return 0===i.length?null:(0,ze.jsx)(hI,{className:s("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(f(),e.preventDefault()):"ArrowRight"===e.code&&(m(),e.preventDefault())},ref:l,children:(0,ze.jsxs)("div",{className:"components-guide__container",children:[(0,ze.jsxs)("div",{className:"components-guide__page",children:[i[c].image,i.length>1&&(0,ze.jsx)(PD,{currentPage:c,numberOfPages:i.length,setCurrentPage:u}),i[c].content]}),(0,ze.jsxs)("div",{className:"components-guide__footer",children:[p&&(0,ze.jsx)(Hx,{className:"components-guide__back-button",variant:"tertiary",onClick:f,children:(0,a.__)("Previous")}),h&&(0,ze.jsx)(Hx,{className:"components-guide__forward-button",variant:"primary",onClick:m,children:(0,a.__)("Next")}),!h&&(0,ze.jsx)(Hx,{className:"components-guide__finish-button",variant:"primary",onClick:o,children:r})]})]})})};function ID(e){return(0,Uo.useEffect)((()=>{Ko()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,ze.jsx)("div",{...e})}const MD=(0,Uo.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return Ko()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,ze.jsx)(Hx,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const RD=oa((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=ra(e,"Item"),{spacedAround:a,size:l}=EP(),c=i||l,u=t||(void 0!==r?"button":"div"),d=na(),p=(0,Uo.useMemo)((()=>d(("button"===u||"a"===u)&&hP(u),kP[c]||kP.medium,mP,a&&xP,n)),[u,n,d,c,a]),h=d(fP);return{as:u,className:p,onClick:r,wrapperClassName:h,role:o,...s}}(e);return(0,ze.jsx)("div",{role:n,className:r,children:(0,ze.jsx)(ya,{...o,ref:t})})}),"Item"),ND=RD;const AD=oa((function(e,t){const n=ra(e,"InputControlPrefixWrapper");return(0,ze.jsx)(Sg,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function DD({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,l.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}const OD=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,Uo.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,ze.jsx)(DD,{shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o},e)));return Uo.Children.count(e)?(0,ze.jsxs)("div",{ref:o,children:[i,e]}):(0,ze.jsx)(ze.Fragment,{children:i})};const zD=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=(0,l.useInstanceId)(e);if(!Uo.Children.count(n))return null;const c=`components-menu-group-label-${a}`,u=s(r,"components-menu-group",{"has-hidden-separator":i});return(0,ze.jsxs)("div",{className:u,children:[o&&(0,ze.jsx)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true",children:o}),(0,ze.jsx)("div",{role:"group","aria-labelledby":o?c:void 0,children:n})]})};const LD=(0,Uo.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:a="right",shortcut:l,isSelected:c,role:u="menuitem",suffix:d,...p}=e;return o=s("components-menu-item__button",o),r&&(n=(0,ze.jsxs)("span",{className:"components-menu-item__info-wrapper",children:[(0,ze.jsx)("span",{className:"components-menu-item__item",children:n}),(0,ze.jsx)("span",{className:"components-menu-item__info",children:r})]})),i&&"string"!=typeof i&&(i=(0,Uo.cloneElement)(i,{className:s("components-menu-items__item-icon",{"has-icon-right":"right"===a})})),(0,ze.jsxs)(Hx,{ref:t,"aria-checked":"menuitemcheckbox"===u||"menuitemradio"===u?c:void 0,role:u,icon:"left"===a?i:void 0,className:o,...p,children:[(0,ze.jsx)("span",{className:"components-menu-item__item",children:n}),!d&&(0,ze.jsx)(Yo,{className:"components-menu-item__shortcut",shortcut:l}),!d&&i&&"right"===a&&(0,ze.jsx)(Bx,{icon:i}),d]})})),FD=LD,BD=()=>{};const VD=function({choices:e=[],onHover:t=BD,onSelect:n,value:r}){return(0,ze.jsx)(ze.Fragment,{children:e.map((e=>{const o=r===e.value;return(0,ze.jsx)(FD,{role:"menuitemradio",disabled:e.disabled,icon:o?YC:null,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"],children:e.label},e.value)}))})};const $D=(0,Uo.forwardRef)((function({eventToOffset:e,...t},n){return(0,ze.jsx)(mT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})})),HD="root",WD=100,UD=()=>{},GD=()=>{},KD=(0,Uo.createContext)({activeItem:void 0,activeMenu:HD,setActiveMenu:UD,navigationTree:{items:{},getItem:GD,addItem:UD,removeItem:UD,menus:{},getMenu:GD,addMenu:UD,removeMenu:UD,childMenu:{},traverseMenu:UD,isMenuEmpty:()=>!1}}),YD=()=>(0,Uo.useContext)(KD);const qD=ba("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",ng(4),";overflow:hidden;"),XD=ba("div",{target:"eeiismy10"})("margin-top:",ng(6),";margin-bottom:",ng(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",ng(6),";}.components-navigation__group+.components-navigation__group{margin-top:",ng(6),";}"),ZD=ba(Hx,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),JD=ba("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),QD=ba("div",{target:"eeiismy7"})({name:"rgorny",styles:"margin:11px 0;padding:1px"}),eO=ba("span",{target:"eeiismy6"})("height:",ng(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",ng(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),tO=ba(ok,{target:"eeiismy5"})("min-height:",ng(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",ng(2),";padding:",(()=>(0,a.isRTL)()?`${ng(1)} ${ng(4)} ${ng(1)} ${ng(2)}`:`${ng(1)} ${ng(2)} ${ng(1)} ${ng(4)}`),";"),nO=ba("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",ng(2)," ",ng(4),";",yg({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Na.theme.accent,";color:",Na.white,";>button,>a{color:",Na.white,";opacity:1;}}>svg path{color:",Na.gray[600],";}"),rO=ba("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",ng(1.5)," ",ng(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),oO=ba("span",{target:"eeiismy2"})("display:flex;margin-right:",ng(2),";"),iO=ba("span",{target:"eeiismy1"})("margin-left:",(()=>(0,a.isRTL)()?"0":ng(2)),";margin-right:",(()=>(0,a.isRTL)()?ng(2):"0"),";display:inline-flex;padding:",ng(1)," ",ng(3),";border-radius:2px;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}@media not ( prefers-reduced-motion ){animation:fade-in 250ms ease-out;}"),sO=ba(Dv,{target:"eeiismy0"})((()=>(0,a.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function aO(){const[e,t]=(0,Uo.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const lO=()=>{};const cO=function({activeItem:e,activeMenu:t=HD,children:n,className:r,onActivateMenu:o=lO}){const[i,l]=(0,Uo.useState)(t),[c,u]=(0,Uo.useState)(),d=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=aO(),{nodes:o,getNode:i,addNode:s,removeNode:a}=aO(),[l,c]=(0,Uo.useState)({}),u=e=>l[e]||[],d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...u(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{c((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:a,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,a.isRTL)()?"right":"left",h=(e,t=p)=>{d.getMenu(e)&&(u(t),l(e),o(e))},f=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{f.current||(f.current=!0)}),[]),(0,Uo.useEffect)((()=>{t!==i&&h(t)}),[t]);const m={activeItem:e,activeMenu:i,setActiveMenu:h,navigationTree:d},g=s("components-navigation",r),v=xl({type:"slide-in",origin:c});return(0,ze.jsx)(qD,{className:g,children:(0,ze.jsx)("div",{className:v?s({[v]:f.current&&c}):void 0,children:(0,ze.jsx)(KD.Provider,{value:m,children:n})},i)})},uO=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),dO=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});const pO=(0,Uo.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:l,navigationTree:c}=YD(),u=s("components-navigation__back-button",t),d=void 0!==o?c.getMenu(o)?.title:void 0,p=(0,a.isRTL)()?uO:dO;return(0,ze.jsxs)(ZD,{className:u,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,a.isRTL)()?"left":"right";o&&!e.defaultPrevented&&l(o,t)},children:[(0,ze.jsx)(Y_,{icon:p}),e||d||(0,a.__)("Back")]})})),hO=pO,fO=(0,Uo.createContext)({group:void 0});let mO=0;const gO=function({children:e,className:t,title:n}){const[r]=(0,Uo.useState)("group-"+ ++mO),{navigationTree:{items:o}}=YD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,ze.jsx)(fO.Provider,{value:i,children:e});const a=`components-navigation__group-title-${r}`,l=s("components-navigation__group",t);return(0,ze.jsx)(fO.Provider,{value:i,children:(0,ze.jsxs)("li",{className:l,children:[n&&(0,ze.jsx)(tO,{className:"components-navigation__group-title",id:a,level:3,children:n}),(0,ze.jsx)("ul",{"aria-labelledby":a,role:"group",children:e})]})})};function vO(e){const{badge:t,title:n}=e;return(0,ze.jsxs)(ze.Fragment,{children:[n&&(0,ze.jsx)(sO,{className:"components-navigation__item-title",as:"span",children:n}),t&&(0,ze.jsx)(iO,{className:"components-navigation__item-badge",children:t})]})}const bO=(0,Uo.createContext)({menu:void 0,search:""}),xO=()=>(0,Uo.useContext)(bO),yO=e=>fy()(e).replace(/^\//,"").toLowerCase(),wO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=YD(),{group:i}=(0,Uo.useContext)(fO),{menu:s,search:a}=xO();(0,Uo.useEffect)((()=>{const l=n===s,c=!a||void 0!==t.title&&((e,t)=>-1!==yO(e).indexOf(yO(t)))(t.title,a);return r(e,{...t,group:i,menu:s,_isVisible:l&&c}),()=>{o(e)}}),[n,a])};let _O=0;function SO(e){const{children:t,className:n,title:r,href:o,...i}=e,[a]=(0,Uo.useState)("item-"+ ++_O);wO(a,e);const{navigationTree:l}=YD();if(!l.getItem(a)?._isVisible)return null;const c=s("components-navigation__item",n);return(0,ze.jsx)(nO,{className:c,...i,children:t})}const CO=()=>{};const kO=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:l,onClick:c=CO,title:u,icon:d,hideIfTargetMenuEmpty:p,isText:h,...f}=e,{activeItem:m,setActiveMenu:g,navigationTree:{isMenuEmpty:v}}=YD();if(p&&l&&v(l))return null;const b=i&&m===i,x=s(r,{"is-active":b}),y=(0,a.isRTL)()?dO:uO,w=n?e:{...e,onClick:void 0},_=h?f:{as:Hx,href:o,onClick:e=>{l&&g(l),c(e)},"aria-current":b?"page":void 0,...f};return(0,ze.jsx)(SO,{...w,className:x,children:n||(0,ze.jsxs)(rO,{..._,children:[d&&(0,ze.jsx)(oO,{children:(0,ze.jsx)(Y_,{icon:d})}),(0,ze.jsx)(vO,{title:u,badge:t}),l&&(0,ze.jsx)(Y_,{icon:y})]})})},jO=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),EO=(0,l.createHigherOrderComponent)((e=>t=>(0,ze.jsx)(e,{...t,speak:gy.speak,debouncedSpeak:(0,l.useDebounce)(gy.speak,500)})),"withSpokenMessages"),PO=({size:e})=>ng("compact"===e?1:2),TO=ba("div",{target:"effl84m1"})("display:flex;padding-inline-end:",PO,";svg{fill:currentColor;}"),IO=ba(Lx,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",Na.theme.gray[100],";}");function MO({searchRef:e,value:t,onChange:n,onClose:r}){if(!r&&!t)return(0,ze.jsx)(Y_,{icon:jO});return(0,ze.jsx)(Hx,{size:"small",icon:zw,label:r?(0,a.__)("Close search"):(0,a.__)("Reset search"),onClick:null!=r?r:()=>{n(""),e.current?.focus()}})}const RO=(0,Uo.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:r,label:o=(0,a.__)("Search"),placeholder:i=(0,a.__)("Search"),hideLabelFromVision:c=!0,onClose:u,size:d="default",...p},h){delete p.disabled;const f=(0,Uo.useRef)(null),m=(0,l.useInstanceId)(RO,"components-search-control"),g=(0,Uo.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e}},InputBase:{isBorderless:!0}})),[e]);return(0,ze.jsx)(hi,{value:g,children:(0,ze.jsx)(IO,{__next40pxDefaultSize:!0,id:m,hideLabelFromVision:c,label:o,ref:(0,l.useMergeRefs)([f,h]),type:"search",size:d,className:s("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:i,value:null!=r?r:"",suffix:(0,ze.jsx)(TO,{size:d,children:(0,ze.jsx)(MO,{searchRef:f,value:r,onChange:n,onClose:u})}),...p})})})),NO=RO;const AO=EO((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=YD(),{menu:s}=xO(),l=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),WD);return()=>{clearTimeout(e)}}),[]),(0,Uo.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,a.sprintf)((0,a._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const c=()=>{n?.(""),t()},u=`components-navigation__menu-title-search-${s}`,d=(0,a.sprintf)((0,a.__)("Search %s"),o?.toLowerCase()).trim();return(0,ze.jsx)(QD,{children:(0,ze.jsx)(NO,{__nextHasNoMarginBottom:!0,className:"components-navigation__menu-search-input",id:u,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),c())},placeholder:d,onClose:c,ref:l,value:r})})}));function DO({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,Uo.useState)(!1),{menu:l}=xO(),c=(0,Uo.useRef)(null);if(!r)return null;const u=`components-navigation__menu-title-${l}`,d=(0,a.sprintf)((0,a.__)("Search in %s"),r);return(0,ze.jsxs)(JD,{className:"components-navigation__menu-title",children:[!i&&(0,ze.jsxs)(tO,{as:"h2",className:"components-navigation__menu-title-heading",level:3,children:[(0,ze.jsx)("span",{id:u,children:r}),(e||o)&&(0,ze.jsxs)(eO,{children:[o,e&&(0,ze.jsx)(Hx,{size:"small",variant:"tertiary",label:d,onClick:()=>s(!0),ref:c,children:(0,ze.jsx)(Y_,{icon:jO})})]})]}),i&&(0,ze.jsx)("div",{className:xl({type:"slide-in",origin:"left"}),children:(0,ze.jsx)(AO,{onCloseSearch:()=>{s(!1),setTimeout((()=>{c.current?.focus()}),WD)},onSearch:t,search:n,title:r})})]})}function OO({search:e}){const{navigationTree:{items:t}}=YD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,ze.jsx)(nO,{children:(0,ze.jsxs)(rO,{children:[(0,a.__)("No results found.")," "]})})}const zO=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=HD,onBackButtonClick:a,onSearch:l,parentMenu:c,search:u,isSearchDebouncing:d,title:p,titleAction:h}=e,[f,m]=(0,Uo.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=YD(),r=e.menu||HD;(0,Uo.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:g}=YD(),v={menu:i,search:f};if(g!==i)return(0,ze.jsx)(bO.Provider,{value:v,children:n});const b=!!l,x=b?u:f,y=b?l:m,w=`components-navigation__menu-title-${i}`,_=s("components-navigation__menu",r);return(0,ze.jsx)(bO.Provider,{value:v,children:(0,ze.jsxs)(XD,{className:_,children:[(c||a)&&(0,ze.jsx)(hO,{backButtonLabel:t,parentMenu:c,onClick:a}),p&&(0,ze.jsx)(DO,{hasSearch:o,onSearch:y,search:x,title:p,titleAction:h}),(0,ze.jsx)(vT,{children:(0,ze.jsxs)("ul",{"aria-labelledby":w,children:[n,x&&!d&&(0,ze.jsx)(OO,{search:x})]})})]})})};function LO(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[a=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0==--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var s="",a=n+1;a<e.length;){var l=e.charCodeAt(a);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;s+=e[a++]}if(!s)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:s}),n=a}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(BO(t.delimiter||"/#?"),"]+?"),s=[],a=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var h=u("CHAR"),f=u("NAME"),m=u("PATTERN");if(f||m){var g=h||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(s.push(c),c=""),s.push({name:f||a++,prefix:g,suffix:"",pattern:m||i,modifier:u("MODIFIER")||""})}else{var v=h||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(s.push(c),c=""),u("OPEN")){g=p();var b=u("NAME")||"",x=u("PATTERN")||"",y=p();d("CLOSE"),s.push({name:b||(x?a++:""),pattern:b&&!x?i:x,prefix:g,suffix:y,modifier:u("MODIFIER")||""})}else d("END")}}return s}function FO(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],s=r.index,a=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?a[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):a[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:s,params:a}}}(HO(e,n,t),n,t)}function BO(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function VO(e){return e&&e.sensitive?"":"i"}function $O(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,s=void 0===i||i,a=n.end,l=void 0===a||a,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(BO(void 0===h?"":h),"]|$"),m="[".concat(BO(p),"]"),g=s?"^":"",v=0,b=e;v<b.length;v++){var x=b[v];if("string"==typeof x)g+=BO(u(x));else{var y=BO(u(x.prefix)),w=BO(u(x.suffix));if(x.pattern)if(t&&t.push(x),y||w)if("+"===x.modifier||"*"===x.modifier){var _="*"===x.modifier?"?":"";g+="(?:".concat(y,"((?:").concat(x.pattern,")(?:").concat(w).concat(y,"(?:").concat(x.pattern,"))*)").concat(w,")").concat(_)}else g+="(?:".concat(y,"(").concat(x.pattern,")").concat(w,")").concat(x.modifier);else"+"===x.modifier||"*"===x.modifier?g+="((?:".concat(x.pattern,")").concat(x.modifier,")"):g+="(".concat(x.pattern,")").concat(x.modifier);else g+="(?:".concat(y).concat(w,")").concat(x.modifier)}}if(l)o||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(f,")"):"$";else{var S=e[e.length-1],C="string"==typeof S?m.indexOf(S[S.length-1])>-1:void 0===S;o||(g+="(?:".concat(m,"(?=").concat(f,"))?")),C||(g+="(?=".concat(m,"|").concat(f,")"))}return new RegExp(g,VO(n))}(LO(e,n),t,n)}function HO(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return HO(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),VO(n))}(e,t,n):$O(e,t,n)}function WO(e,t){return FO(t,{decode:decodeURIComponent})(e)}const UO=(0,Uo.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const GO={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},KO=Pa({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),YO=Pa({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),qO=e=>Ea("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return Ea("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?KO:YO,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";",""),XO=50;function ZO({locationHistory:e}){return e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]}function JO(e,t,n={}){const{locationHistory:r}=e,{focusTargetSelector:o,isBack:i=!1,skipFocus:s=!1,replace:a=!1,...l}=n;if(r.length>0&&r[r.length-1].path===t)return r;if(i&&r.length>1&&r[r.length-2].path===t)return ZO(e);const c={...l,path:t,isBack:i,hasRestoredFocus:!1,skipFocus:s};if(0===r.length)return a?[]:[c];const u=r.slice(r.length>XO-1?1:0,-1);return a||u.push({...r[r.length-1],focusTargetSelector:o}),u.push(c),u}function QO(e,t={}){const{locationHistory:n,screens:r}=e,o=n[n.length-1].path;if(void 0===o)return n;const i=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==WO(e,t.path)))&&(r=e)}return r}(o,r);return void 0===i?n:JO(e,i,{...t,isBack:!0})}function ez(e,t){let{screens:n,locationHistory:r,matchedPath:o}=e;switch(t.type){case"add":n=function({screens:e},t){return[...e,t]}(e,t.screen);break;case"remove":n=function({screens:e},t){return e.filter((e=>e.id!==t.id))}(e,t.screen);break;case"goback":r=ZO(e);break;case"goto":r=JO(e,t.path,t.options);break;case"gotoparent":r=QO(e,t.options)}if(n===e.screens&&r===e.locationHistory)return e;const i=r.length>0?r[r.length-1].path:void 0;return o=void 0!==i?function(e,t){for(const n of t){const t=WO(e,n.path);if(t)return{params:t.params,id:n.id}}}(i,n):void 0,o&&e.matchedPath&&o.id===e.matchedPath.id&&ow()(o.params,e.matchedPath.params)&&(o=e.matchedPath),{screens:n,locationHistory:r,matchedPath:o}}const tz=oa((function(e,t){const{initialPath:n,children:r,className:o,...i}=ra(e,"NavigatorProvider"),[s,a]=(0,Uo.useReducer)(ez,n,(e=>({screens:[],locationHistory:[{path:e}],matchedPath:void 0}))),l=(0,Uo.useMemo)((()=>({goBack:()=>a({type:"goback"}),goTo:(e,t)=>a({type:"goto",path:e,options:t}),goToParent:e=>a({type:"gotoparent",options:e}),addScreen:e=>a({type:"add",screen:e}),removeScreen:e=>a({type:"remove",screen:e})})),[]),{locationHistory:c,matchedPath:u}=s,d=(0,Uo.useMemo)((()=>{var e;return{location:{...c[c.length-1],isInitial:1===c.length},params:null!==(e=u?.params)&&void 0!==e?e:{},match:u?.id,...l}}),[c,u,l]),p=na(),h=(0,Uo.useMemo)((()=>p(GO,o)),[o,p]);return(0,ze.jsx)(ya,{ref:t,className:h,...i,children:(0,ze.jsx)(UO.Provider,{value:d,children:r})})}),"NavigatorProvider"),nz=tz,rz=window.wp.escapeHtml;const oz=oa((function(e,t){const n=(0,Uo.useId)(),{children:r,className:o,path:i,...s}=ra(e,"NavigatorScreen"),{location:c,match:u,addScreen:d,removeScreen:p}=(0,Uo.useContext)(UO),h=u===n,f=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e={id:n,path:(0,rz.escapeAttribute)(i)};return d(e),()=>p(e)}),[n,i,d,p]);const m=(0,a.isRTL)(),{isInitial:g,isBack:v}=c,b=na(),x=(0,Uo.useMemo)((()=>b(qO({isInitial:g,isBack:v,isRTL:m}),o)),[o,b,g,v,m]),y=(0,Uo.useRef)(c);(0,Uo.useEffect)((()=>{y.current=c}),[c]);const w=c.isInitial&&!c.isBack;(0,Uo.useEffect)((()=>{if(w||!h||!f.current||y.current.hasRestoredFocus||c.skipFocus)return;const e=f.current.ownerDocument.activeElement;if(f.current.contains(e))return;let t=null;if(c.isBack&&c.focusTargetSelector&&(t=f.current.querySelector(c.focusTargetSelector)),!t){const[e]=uT.focus.tabbable.find(f.current);t=null!=e?e:f.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,c.isBack,c.focusTargetSelector,c.skipFocus]);const _=(0,l.useMergeRefs)([t,f]);return h?(0,ze.jsx)(ya,{ref:_,className:x,...s,children:r}):null}),"NavigatorScreen"),iz=oz;const sz=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Uo.useContext)(UO);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}},az=(e,t)=>`[${e}="${t}"]`;const lz=oa((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=Hx,attributeName:o="id",...i}=ra(e,"NavigatorButton"),s=(0,rz.escapeAttribute)(t),{goTo:a}=sz();return{as:r,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),a(s,{focusTargetSelector:az(o,s)}),n?.(e)}),[a,n,o,s]),...i,[o]:s}}(e);return(0,ze.jsx)(ya,{ref:t,...n})}),"NavigatorButton"),cz=lz;function uz(e){const{onClick:t,as:n=Hx,goToParent:r=!1,...o}=ra(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=sz();return{as:n,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}const dz=oa((function(e,t){const n=uz(e);return(0,ze.jsx)(ya,{ref:t,...n})}),"NavigatorBackButton");const pz=oa((function(e,t){const n=uz({...e,goToParent:!0});return(0,ze.jsx)(ya,{ref:t,...n})}),"NavigatorToParentButton"),hz=()=>{};function fz(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function mz(e){switch(e){case"warning":return(0,a.__)("Warning notice");case"info":return(0,a.__)("Information notice");case"error":return(0,a.__)("Error notice");default:return(0,a.__)("Notice")}}const gz=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=hz,isDismissible:i=!0,actions:l=[],politeness:c=fz(t),__unstableHTML:u,onDismiss:d=hz}){!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,gy.speak)(n,t)}),[n,t])}(r,c);const p=s(e,"components-notice","is-"+t,{"is-dismissible":i});return u&&"string"==typeof n&&(n=(0,ze.jsx)(Uo.RawHTML,{children:n})),(0,ze.jsxs)("div",{className:p,children:[(0,ze.jsx)(wa,{children:mz(t)}),(0,ze.jsxs)("div",{className:"components-notice__content",children:[n,(0,ze.jsx)("div",{className:"components-notice__actions",children:l.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:a},l)=>{let c=r;return"primary"===r||o||(c=a?"link":"secondary"),void 0===c&&n&&(c="primary"),(0,ze.jsx)(Hx,{href:a,variant:c,onClick:a?void 0:i,className:s("components-notice__action",e),children:t},l)}))})]}),i&&(0,ze.jsx)(Hx,{className:"components-notice__dismiss",icon:Ty,label:(0,a.__)("Close"),onClick:()=>{d(),o()}})]})},vz=()=>{};const bz=function({notices:e,onRemove:t=vz,className:n,children:r}){const o=e=>()=>t(e);return n=s("components-notice-list",n),(0,ze.jsxs)("div",{className:n,children:[r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,c.createElement)(gz,{...n,key:e.id,onRemove:o(e.id)},e.content)}))]})};const xz=function({label:e,children:t}){return(0,ze.jsxs)("div",{className:"components-panel__header",children:[e&&(0,ze.jsx)("h2",{children:e}),t]})};const yz=(0,Uo.forwardRef)((function({header:e,className:t,children:n},r){const o=s(t,"components-panel");return(0,ze.jsxs)("div",{className:o,ref:r,children:[e&&(0,ze.jsx)(xz,{label:e}),n]})})),wz=(0,ze.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),_z=()=>{};const Sz=(0,Uo.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,ze.jsx)("h2",{className:"components-panel__body-title",children:(0,ze.jsxs)(Hx,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r,children:[(0,ze.jsx)("span",{"aria-hidden":"true",children:(0,ze.jsx)(Bx,{className:"components-panel__arrow",icon:e?wz:q_})}),n,t&&(0,ze.jsx)(Bx,{icon:t,className:"components-panel__icon",size:20})]})}):null)),Cz=(0,Uo.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:c=_z,opened:u,title:d,scrollAfterOpen:p=!0}=e,[h,f]=eS(u,{initial:void 0===a||a,fallback:!1}),m=(0,Uo.useRef)(null),g=(0,l.useReducedMotion)()?"auto":"smooth",v=(0,Uo.useRef)();v.current=p,ui((()=>{h&&v.current&&m.current?.scrollIntoView&&m.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:g})}),[h,g]);const b=s("components-panel__body",o,{"is-opened":h});return(0,ze.jsxs)("div",{className:b,ref:(0,l.useMergeRefs)([m,t]),children:[(0,ze.jsx)(Sz,{icon:i,isOpened:Boolean(h),onClick:e=>{e.preventDefault();const t=!h;f(t),c(t)},title:d,...n}),"function"==typeof r?r({opened:Boolean(h)}):h&&r]})})),kz=Cz;const jz=(0,Uo.forwardRef)((function({className:e,children:t},n){return(0,ze.jsx)("div",{className:s("components-panel__row",e),ref:n,children:t})})),Ez=(0,ze.jsx)(n.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",children:(0,ze.jsx)(n.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})});const Pz=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:a,preview:c,isColumnLayout:u,withIllustration:d,...p}=e,[h,{width:f}]=(0,l.useResizeObserver)();let m;"number"==typeof f&&(m={"is-large":f>=480,"is-medium":f>=160&&f<480,"is-small":f<160});const g=s("components-placeholder",i,m,d?"has-illustration":null),v=s("components-placeholder__fieldset",{"is-column-layout":u});return(0,Uo.useEffect)((()=>{o&&(0,gy.speak)(o)}),[o]),(0,ze.jsxs)("div",{...p,className:g,children:[d?Ez:null,h,a,c&&(0,ze.jsx)("div",{className:"components-placeholder__preview",children:c}),(0,ze.jsxs)("div",{className:"components-placeholder__label",children:[(0,ze.jsx)(Bx,{icon:t}),r]}),!!o&&(0,ze.jsx)("div",{className:"components-placeholder__instructions",children:o}),(0,ze.jsx)("div",{className:v,children:n})]})};const Tz=Pa({"0%":{left:"-50%"},"100%":{left:"100%"}}),Iz=ba("div",{target:"e15u147w2"})("position:relative;overflow:hidden;height:",bv.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\t",Na.theme.foreground,",\n\t\ttransparent 90%\n\t);border-radius:",bv.radiusBlockUi,";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}");var Mz={name:"152sa26",styles:"width:var(--indicator-width);transition:width 0.4s ease-in-out"};const Rz=ba("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",bv.radiusBlockUi,";background-color:color-mix(\n\t\tin srgb,\n\t\t",Na.theme.foreground,",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e})=>e?Ea({animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:Tz,width:"50%"},"",""):Mz),";"),Nz=ba("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const Az=(0,Uo.forwardRef)((function(e,t){const{className:n,value:r,...o}=e,i=!Number.isFinite(r);return(0,ze.jsxs)(Iz,{className:n,children:[(0,ze.jsx)(Rz,{style:{"--indicator-width":i?void 0:`${r}%`},isIndeterminate:i}),(0,ze.jsx)(Nz,{max:100,value:r,"aria-label":(0,a.__)("Loading …"),ref:t,...o})]})})),Dz=e=>e.every((e=>null!==e.parent));function Oz(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!Dz(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}const zz=window.wp.htmlEntities;function Lz(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,zz.decodeEntities)(e.name)},...Lz(e.children||[],t+1)]))}const Fz=function(e){const{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:i=[],...s}=ib(e),a=(0,Uo.useMemo)((()=>[n&&{value:"",label:n},...Lz(i)].filter((e=>!!e))),[n,i]);return(0,ze.jsx)(Z_,{label:t,options:a,onChange:r,value:o,...s})};function Bz({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:i}){if(!r)return null;const s=Oz(r);return(0,ze.jsx)(Fz,{label:t,noOptionLabel:n,onChange:i,tree:s,selectedId:void 0!==o?String(o):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function Vz({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:i,...s}){const a=(0,Uo.useMemo)((()=>Oz(r)),[r]);return(0,ze.jsx)(Fz,{label:t,noOptionLabel:n,onChange:i,tree:a,selectedId:void 0!==o?String(o):void 0,...s,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function $z(e){return"categoriesList"in e}function Hz(e){return"categorySuggestions"in e}const Wz=function({__next40pxDefaultSize:e=!1,authorList:t,selectedAuthorId:n,numberOfItems:r,order:o,orderBy:i,maxItems:s=100,minItems:l=1,onAuthorChange:c,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:p,...h}){return(0,ze.jsx)(tk,{spacing:"4",className:"components-query-controls",children:[d&&p&&(0,ze.jsx)(J_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,label:(0,a.__)("Order by"),value:`${i}/${o}`,options:[{label:(0,a.__)("Newest to oldest"),value:"date/desc"},{label:(0,a.__)("Oldest to newest"),value:"date/asc"},{label:(0,a.__)("A → Z"),value:"title/asc"},{label:(0,a.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==o&&d(n),t!==i&&p(t)}},"query-controls-order-select"),$z(h)&&h.categoriesList&&h.onCategoryChange&&(0,ze.jsx)(Vz,{__next40pxDefaultSize:e,categoriesList:h.categoriesList,label:(0,a.__)("Category"),noOptionLabel:(0,a._x)("All","categories"),selectedCategoryId:h.selectedCategoryId,onChange:h.onCategoryChange},"query-controls-category-select"),Hz(h)&&h.categorySuggestions&&h.onCategoryChange&&(0,ze.jsx)(jD,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:!0,label:(0,a.__)("Categories"),value:h.selectedCategories&&h.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(h.categorySuggestions),onChange:h.onCategoryChange,maxSuggestions:20},"query-controls-categories-select"),c&&(0,ze.jsx)(Bz,{__next40pxDefaultSize:e,authorList:t,label:(0,a.__)("Author"),noOptionLabel:(0,a._x)("All","authors"),selectedAuthorId:n,onChange:c},"query-controls-author-select"),u&&(0,ze.jsx)(BS,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,label:(0,a.__)("Number of items"),value:r,onChange:u,min:l,max:s,required:!0},"query-controls-range-control")]})},Uz=(0,Uo.createContext)({store:void 0,disabled:void 0});const Gz=(0,Uo.forwardRef)((function({value:e,children:t,...n},r){const{store:o,disabled:i}=(0,Uo.useContext)(Uz),s=o?.useState("value"),a=void 0!==s&&s===e;return(0,ze.jsx)(m_,{disabled:i,store:o,ref:r,value:e,render:(0,ze.jsx)(Hx,{variant:a?"primary":"secondary",...n}),children:t||e})})),Kz=Gz;const Yz=(0,Uo.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,children:i,...s},a){const l=Qw({value:t,defaultValue:n,setValue:e=>{o?.(null!=e?e:void 0)}}),c=(0,Uo.useMemo)((()=>({store:l,disabled:r})),[l,r]);return(0,ze.jsx)(Uz.Provider,{value:c,children:(0,ze.jsx)(i_,{store:l,render:(0,ze.jsx)(Qj,{children:i}),"aria-label":e,ref:a,...s})})})),qz=Yz;const Xz=function e(t){const{label:n,className:r,selected:o,help:i,onChange:a,hideLabelFromVision:c,options:u=[],...d}=t,p=`inspector-radio-control-${(0,l.useInstanceId)(e)}`,h=e=>a(e.target.value);return u?.length?(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:s(r,"components-radio-control"),children:(0,ze.jsx)(tk,{spacing:1,children:u.map(((e,t)=>(0,ze.jsxs)("div",{className:"components-radio-control__option",children:[(0,ze.jsx)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:h,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...d}),(0,ze.jsx)("label",{className:"components-radio-control__label",htmlFor:`${p}-${t}`,children:e.label})]},`${p}-${t}`)))})}):null};var Zz=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jz=function(){return Jz=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},Jz.apply(this,arguments)},Qz={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},eL={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},tL={width:"20px",height:"20px",position:"absolute"},nL={top:Jz(Jz({},Qz),{top:"-5px"}),right:Jz(Jz({},eL),{left:void 0,right:"-5px"}),bottom:Jz(Jz({},Qz),{top:void 0,bottom:"-5px"}),left:Jz(Jz({},eL),{left:"-5px"}),topRight:Jz(Jz({},tL),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Jz(Jz({},tL),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Jz(Jz({},tL),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Jz(Jz({},tL),{left:"-10px",top:"-10px",cursor:"nw-resize"})},rL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Zz(t,e),t.prototype.render=function(){return c.createElement("div",{className:this.props.className||"",style:Jz(Jz({position:"absolute",userSelect:"none"},nL[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(c.PureComponent),oL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iL=function(){return iL=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},iL.apply(this,arguments)},sL={width:"auto",height:"auto"},aL=function(e,t,n){return Math.max(Math.min(e,n),t)},lL=function(e,t){return Math.round(e/t)*t},cL=function(e,t){return new RegExp(e,"i").test(t)},uL=function(e){return Boolean(e.touches&&e.touches.length)},dL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},pL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},hL=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},fL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],mL="__resizable_base__",gL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(mL):t.className+=mL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return oL(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||sL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return pL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?pL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?pL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,s=o&&cL("left",i),a=o&&cL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,s=o.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,u=a.lockAspectRatioExtraWidth,d=s.width,p=s.height,h=c||0,f=u||0;return cL("right",i)&&(d=s.width+(e-s.x)*r/n,l&&(p=(d-f)/this.ratio+h)),cL("left",i)&&(d=s.width-(e-s.x)*r/n,l&&(p=(d-f)/this.ratio+h)),cL("bottom",i)&&(p=s.height+(t-s.y)*r/n,l&&(d=(p-h)*this.ratio+f)),cL("top",i)&&(p=s.height-(t-s.y)*r/n,l&&(d=(p-h)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,s=o.lockAspectRatioExtraHeight,a=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=s||0,h=a||0;if(i){var f=(u-p)*this.ratio+h,m=(d-p)*this.ratio+h,g=(l-h)/this.ratio+p,v=(c-h)/this.ratio+p,b=Math.max(l,f),x=Math.min(c,m),y=Math.max(u,g),w=Math.min(d,v);e=aL(e,b,x),t=aL(t,y,w)}else e=aL(e,l,c),t=aL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,s=r.right,a=r.bottom;this.resizableLeft=o,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&uL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:iL(iL({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&uL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,s=n.minHeight,a=uL(e)?e.touches[0].clientX:e.clientX,l=uL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,p=c.width,h=c.height,f=this.getParentSize(),m=function(e,t,n,r,o,i,s){return r=hL(r,e.width,t,n),o=hL(o,e.height,t,n),i=hL(i,e.width,t,n),s=hL(s,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}}(f,this.window.innerWidth,this.window.innerHeight,r,o,i,s);r=m.maxWidth,o=m.maxHeight,i=m.minWidth,s=m.minHeight;var g=this.calculateNewSizeFromDirection(a,l),v=g.newHeight,b=g.newWidth,x=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=dL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=dL(v,this.props.snap.y,this.props.snapGap));var y=this.calculateNewSizeFromAspectRatio(b,v,{width:x.maxWidth,height:x.maxHeight},{width:i,height:s});if(b=y.newWidth,v=y.newHeight,this.props.grid){var w=lL(b,this.props.grid[0]),_=lL(v,this.props.grid[1]),S=this.props.snapGap||0;b=0===S||Math.abs(w-b)<=S?w:b,v=0===S||Math.abs(_-v)<=S?_:v}var C={width:b-d.width,height:v-d.height};if(p&&"string"==typeof p)if(p.endsWith("%"))b=b/f.width*100+"%";else if(p.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(h.endsWith("%"))v=v/f.height*100+"%";else if(h.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(h.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var k={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?k.flexBasis=k.width:"column"===this.flexDir&&(k.flexBasis=k.height),(0,tr.flushSync)((function(){t.setState(k)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:iL(iL({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,s=t.handleWrapperClass,a=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?c.createElement(rL,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},a&&a[t]?a[t]:null):null}));return c.createElement("div",{className:s,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==fL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=iL(iL(iL({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return c.createElement(r,iL({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&c.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(c.PureComponent);const vL=()=>{},bL={bottom:"bottom",corner:"corner"};function xL({axis:e,fadeTimeout:t=180,onResize:n=vL,position:r=bL.bottom,showPx:o=!1}){const[i,s]=(0,l.useResizeObserver)(),a=!!e,[c,u]=(0,Uo.useState)(!1),[d,p]=(0,Uo.useState)(!1),{width:h,height:f}=s,m=(0,Uo.useRef)(f),g=(0,Uo.useRef)(h),v=(0,Uo.useRef)(),b=(0,Uo.useCallback)((()=>{v.current&&window.clearTimeout(v.current),v.current=window.setTimeout((()=>{a||(u(!1),p(!1))}),t)}),[t,a]);(0,Uo.useEffect)((()=>{if(!(null!==h||null!==f))return;const e=h!==g.current,t=f!==m.current;if(e||t){if(h&&!g.current&&f&&!m.current)return g.current=h,void(m.current=f);e&&(u(!0),g.current=h),t&&(p(!0),m.current=f),n({width:h,height:f}),b()}}),[h,f,n,b]);const x=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=bL.bottom,showPx:i=!1,width:s}){if(!n&&!r)return;if(o===bL.corner)return`${s} x ${t}`;const a=i?" px":"";if(e){if("x"===e&&n)return`${s}${a}`;if("y"===e&&r)return`${t}${a}`}if(n&&r)return`${s} x ${t}`;if(n)return`${s}${a}`;if(r)return`${t}${a}`;return}({axis:e,height:f,moveX:c,moveY:d,position:r,showPx:o,width:h});return{label:x,resizeListener:i}}const yL=ba("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),wL=ba("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),_L=ba("div",{target:"e1wq7y4k1"})("background:",Na.theme.foreground,";border-radius:2px;box-sizing:border-box;font-family:",_x("default.fontFamily"),";font-size:12px;color:",Na.theme.foregroundInverted,";padding:4px 8px;position:relative;"),SL=ba(Dv,{target:"e1wq7y4k0"})("&&&{color:",Na.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const CL=(0,Uo.forwardRef)((function({label:e,position:t=bL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===bL.bottom,l=t===bL.corner;if(!i)return null;let c={opacity:i?1:void 0,zIndex:n},u={};return s&&(c={...c,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},u={transform:"translate(0, 100%)"}),l&&(c={...c,position:"absolute",top:4,right:(0,a.isRTL)()?void 0:4,left:(0,a.isRTL)()?4:void 0}),(0,ze.jsx)(wL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:c,...r,children:(0,ze.jsx)(_L,{className:"components-resizable-tooltip__tooltip",style:u,children:(0,ze.jsx)(SL,{as:"span",children:e})})})})),kL=CL,jL=()=>{};const EL=(0,Uo.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=jL,position:a=bL.bottom,showPx:l=!0,zIndex:c=1e3,...u},d){const{label:p,resizeListener:h}=xL({axis:e,fadeTimeout:n,onResize:i,showPx:l,position:a});if(!r)return null;const f=s("components-resize-tooltip",t);return(0,ze.jsxs)(yL,{"aria-hidden":"true",className:f,ref:d,...u,children:[h,(0,ze.jsx)(kL,{"aria-hidden":u["aria-hidden"],label:p,position:a,ref:o,zIndex:c})]})})),PL=EL,TL="components-resizable-box__handle",IL="components-resizable-box__side-handle",ML="components-resizable-box__corner-handle",RL={top:s(TL,IL,"components-resizable-box__handle-top"),right:s(TL,IL,"components-resizable-box__handle-right"),bottom:s(TL,IL,"components-resizable-box__handle-bottom"),left:s(TL,IL,"components-resizable-box__handle-left"),topLeft:s(TL,ML,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:s(TL,ML,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:s(TL,ML,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:s(TL,ML,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},NL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},AL={top:NL,right:NL,bottom:NL,left:NL,topLeft:NL,topRight:NL,bottomRight:NL,bottomLeft:NL};const DL=(0,Uo.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},a){return(0,ze.jsxs)(gL,{className:s("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:RL,handleStyles:AL,ref:a,...i,children:[t,r&&(0,ze.jsx)(PL,{...o})]})}));const OL=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==Uo.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,ze.jsx)(o,{className:"components-responsive-wrapper",children:(0,ze.jsx)("div",{children:(0,Uo.cloneElement)(n,{className:s("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})})})},zL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};const LL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i,tabIndex:s}){const a=(0,Uo.useRef)(),[c,u]=(0,Uo.useState)(0),[d,p]=(0,Uo.useState)(0);function h(i=!1){if(!function(){try{return!!a.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:s,ownerDocument:l}=a.current;if(!i&&null!==s?.body.getAttribute("data-resizable-iframe-connected"))return;const c=(0,ze.jsxs)("html",{lang:l.documentElement.lang,className:n,children:[(0,ze.jsxs)("head",{children:[(0,ze.jsx)("title",{children:t}),(0,ze.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,ze.jsx)("style",{dangerouslySetInnerHTML:{__html:e}},t)))]}),(0,ze.jsxs)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n,children:[(0,ze.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,ze.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${zL.toString()})();`}}),o.map((e=>(0,ze.jsx)("script",{src:e},e)))]})]});s.open(),s.write("<!DOCTYPE html>"+(0,Uo.renderToString)(c)),s.close()}return(0,Uo.useEffect)((()=>{function e(){h(!1)}function t(e){const t=a.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),p(n.height))}h();const n=a.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.removeEventListener("message",t)}}),[]),(0,Uo.useEffect)((()=>{h()}),[t,r,o]),(0,Uo.useEffect)((()=>{h(!0)}),[e,n]),(0,ze.jsx)("iframe",{ref:(0,l.useMergeRefs)([a,(0,l.useFocusableIframe)()]),title:t,tabIndex:s,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(c),height:Math.ceil(d)})};const FL=(0,Uo.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:l=null,explicitDismiss:c=!1,onDismiss:u,listRef:d},p){function h(e){e&&e.preventDefault&&e.preventDefault(),d?.current?.focus(),u?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,gy.speak)(n,t)}),[n,t])}(n,r);const f=(0,Uo.useRef)({onDismiss:u,onRemove:i});(0,Uo.useLayoutEffect)((()=>{f.current={onDismiss:u,onRemove:i}})),(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{c||(f.current.onDismiss?.(),f.current.onRemove?.())}),1e4);return()=>clearTimeout(e)}),[c]);const m=s(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!c});o&&o.length>1&&(o=[o[0]]);const g=s("components-snackbar__content",{"components-snackbar__content-with-icon":!!l});return(0,ze.jsx)("div",{ref:p,className:m,onClick:c?void 0:h,tabIndex:0,role:c?void 0:"button",onKeyPress:c?void 0:h,"aria-label":c?void 0:(0,a.__)("Dismiss this notice"),"data-testid":"snackbar",children:(0,ze.jsxs)("div",{className:g,children:[l&&(0,ze.jsx)("div",{className:"components-snackbar__icon",children:l}),t,o.map((({label:e,onClick:t,url:n},r)=>(0,ze.jsx)(Hx,{href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action",children:e},r))),c&&(0,ze.jsx)("span",{role:"button","aria-label":(0,a.__)("Dismiss this notice"),tabIndex:0,className:"components-snackbar__dismiss-button",onClick:h,onKeyPress:h,children:"✕"})]})})})),BL=FL,VL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{type:"tween",duration:.3,ease:[0,0,.2,1]},opacity:{type:"tween",duration:.25,delay:.05,ease:[0,0,.2,1]}}},exit:{opacity:0,transition:{type:"tween",duration:.1,ease:[0,0,.2,1]}}};const $L=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,Uo.useRef)(null),i=(0,l.useReducedMotion)();t=s("components-snackbar-list",t);const a=e=>()=>r?.(e.id);return(0,ze.jsxs)("div",{className:t,tabIndex:-1,ref:o,"data-testid":"snackbar-list",children:[n,(0,ze.jsx)(Zm,{children:e.map((e=>{const{content:t,...n}=e;return(0,ze.jsx)(Hm.div,{layout:!i,initial:"init",animate:"open",exit:"exit",variants:i?void 0:VL,children:(0,ze.jsx)("div",{className:"components-snackbar-list__notice-container",children:(0,ze.jsx)(BL,{...n,onRemove:a(e),listRef:o,children:e.content})})},e.id)}))})]})};const HL=Pa` from { transform: rotate(0deg); } to { transform: rotate(360deg); } - `,lF=bs("svg",{target:"ea4tfvq2"})("width:",Xg.spinnerSize,"px;height:",Xg.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Ds.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),cF={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},uF=bs("circle",{target:"ea4tfvq1"})(cF,";stroke:",Ds.gray[300],";"),dF=bs("path",{target:"ea4tfvq0"})(cF,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",sF,";");const fF=(0,Uo.forwardRef)((function({className:e,...t},n){return(0,r.createElement)(lF,{className:c()("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},(0,r.createElement)(uF,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,r.createElement)(dF,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));const mF=os((function(e,t){const n=mP(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Surface");function pF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tl(M(R({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=Us(),i=Rt(M(R({},r.getState()),{selectedId:V(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:V(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return Mt(i,(()=>At(i,["moves"],(()=>{const{activeId:e,selectOnMove:t}=i.getState();if(!t)return;if(!e)return;const n=r.item(e);n&&(n.dimmed||n.disabled||i.setState("selectedId",n.id))})))),Mt(i,(()=>Ot(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),Mt(i,(()=>At(i,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=i.getState(),o=r.item(t);if(!o||o.disabled||o.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));i.setState("selectedId",null==e?void 0:e.id)}else i.setState("selectedId",o.id)})))),Mt(i,(()=>At(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return At(o,["renderedItems"],(e=>{const n=e.renderedItems,r=n.some((e=>!e.tabId));r&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&o.renderItem(M(R({},e),{tabId:r.id}))}))}))})))),M(R(R({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function hF(e={}){const[t,n]=$t(pF,e);return function(e,t,n){Ht(e=nl(e,t,n),n,"selectedId","setSelectedId"),Ht(e,n,"selectOnMove");const[o,i]=$t((()=>e.panels),{});return Ce(i,[e,i]),(0,r.useMemo)((()=>w(x({},e),{panels:o})),[e,o])}(t,n,e)}var gF=He([Ct],[kt]),vF=(gF.useContext,gF.useScopedContext),bF=gF.useProviderContext,yF=(gF.ContextProvider,gF.ScopedContextProvider),xF=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=bF();F(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Te(r,(e=>(0,Le.jsx)(yF,{value:n,children:e})),[n]),r=x({role:"tablist","aria-orientation":i},r),r=il(x({store:n},r))})),wF=Fe((e=>je("div",xF(e))));var EF=Ve((e=>{var t=e,{store:n,accessibleWhenDisabled:o=!0,getItem:i}=t,a=E(t,["store","accessibleWhenDisabled","getItem"]);const s=vF();F(n=n||s,!1);const l=_e(),c=a.id||l,u=j(a),d=(0,r.useCallback)((e=>{const t=w(x({},e),{dimmed:u});return i?i(t):t}),[u,i]),f=a.onClick,m=we((e=>{null==f||f(e),e.defaultPrevented||null==n||n.setSelectedId(c)})),p=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===c)))?void 0:t.id})),h=n.useState((e=>!!c&&e.selectedId===c));return a=w(x({id:c,role:"tab","aria-selected":h,"aria-controls":p||void 0},a),{onClick:m}),a=Gt(w(x({store:n},a),{accessibleWhenDisabled:o,getItem:d,shouldRegisterItem:!!l&&a.shouldRegisterItem}))})),_F=Be((e=>je("button",EF(e))));var SF=Ve((e=>{var t=e,{store:n,tabId:o,getItem:i}=t,a=E(t,["store","tabId","getItem"]);const s=bF();F(n=n||s,!1);const l=(0,r.useRef)(null),c=_e(a.id),[u,d]=(0,r.useState)(!1);(0,r.useEffect)((()=>{const e=l.current;if(!e)return;const t=qe(e);d(!!t.length)}),[]);const f=(0,r.useCallback)((e=>{const t=w(x({},e),{id:c||e.id,tabId:o});return i?i(t):t}),[c,o,i]);a=Te(a,(e=>(0,Le.jsx)(yF,{value:n,children:e})),[n]);const m=n.panels.useState((()=>{var e;return o||(null==(e=null==n?void 0:n.panels.item(c))?void 0:e.tabId)})),p=n.useState((e=>!!m&&e.selectedId===m));a=w(x({id:c,role:"tabpanel","aria-labelledby":m||void 0},a),{ref:Ee(l,a.ref)});const h=Xt({open:p});return a=ct(x({focusable:!u},a)),a=Kn(x({store:h},a)),a=vt(w(x({store:n.panels},a),{getItem:f}))})),CF=Fe((e=>je("div",SF(e))));const kF=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},PF=(0,Uo.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:o=!0,initialTabName:i,orientation:a="horizontal",activeClass:s="is-active",onSelect:l},u)=>{const f=(0,d.useInstanceId)(PF,"tab-panel"),m=(0,Uo.useCallback)((e=>{if(void 0!==e)return`${f}-${e}`}),[f]),p=hF({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>m(t.name)===e));if(t?.disabled||t===v)return;const r=kF(e);void 0!==r&&l?.(r)},orientation:a,selectOnMove:o,defaultSelectedId:m(i)}),h=kF(p.useState("selectedId")),g=(0,Uo.useCallback)((e=>{p.setState("selectedId",m(e))}),[m,p]),v=n.find((({name:e})=>e===h)),b=(0,d.usePrevious)(h);return(0,Uo.useEffect)((()=>{b!==h&&h===i&&h&&l?.(h)}),[h,i,l,b]),(0,Uo.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===i));if(!i||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,i,f,g]),(0,Uo.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g,f]),(0,r.createElement)("div",{className:e,ref:u},(0,r.createElement)(wF,{store:p,className:"components-tab-panel__tabs"},n.map((e=>(0,r.createElement)(_F,{key:e.name,id:m(e.name),className:c()("components-tab-panel__tabs-item",e.className,{[s]:e.name===h}),disabled:e.disabled,"aria-controls":`${m(e.name)}-view`,render:(0,r.createElement)(my,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon})},!e.icon&&e.title)))),v&&(0,r.createElement)(CF,{id:`${m(v.name)}-view`,store:p,tabId:m(v.name),className:"components-tab-panel__tab-content"},t(v)))})),TF=PF;const IF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:o=!1,label:i,hideLabelFromVision:a,value:s,help:l,id:u,className:f,onChange:m,type:p="text",...h}=e,g=(0,d.useInstanceId)(IF,"inspector-text-control",u);return(0,r.createElement)(iy,{__nextHasNoMarginBottom:n,label:i,hideLabelFromVision:a,id:g,help:l,className:f},(0,r.createElement)("input",{className:c()("components-text-control__input",{"is-next-40px-default-size":o}),type:p,id:g,value:s,onChange:e=>m(e.target.value),"aria-describedby":l?g+"__help":void 0,ref:t,...h}))})),RF=IF,MF=Ps("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Xg.radiusBlockUi,";border:",Xg.borderWidth," solid ",Ds.ui.border,";",""),NF=Ps("border-color:",Ds.theme.accent,";box-shadow:0 0 0 calc( ",Xg.borderWidthFocus," - ",Xg.borderWidth," ) ",Ds.theme.accent,";outline:2px solid transparent;",""),DF={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},AF=Ps("display:block;font-family:",Yb("default.fontFamily"),";padding:6px 8px;",MF,";font-size:",Yb("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${DF["small"]})`,"{font-size:",Yb("default.fontSize"),";line-height:normal;}&:focus{",NF,";}&::-webkit-input-placeholder{color:",Ds.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Ds.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Ds.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Ds.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Ds.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Ds.ui.lightGrayPlaceholder,";}}","");const OF=bs("textarea",{target:"e1w5nnrk0"})("width:100%;",AF,";");const zF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,value:a,help:s,onChange:l,rows:c=4,className:u,...f}=e,m=`inspector-textarea-control-${(0,d.useInstanceId)(zF)}`;return(0,r.createElement)(iy,{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,id:m,help:s,className:u},(0,r.createElement)(OF,{className:"components-textarea-control__input",id:m,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?m+"__help":void 0,value:a,ref:t,...f}))})),LF=zF,FF=e=>{const{text:t="",highlight:n=""}=e,o=n.trim();if(!o)return(0,r.createElement)(r.Fragment,null,t);const i=new RegExp(`(${Uy(o)})`,"gi");return(0,Uo.createInterpolateElement)(t.replace(i,"<mark>$&</mark>"),{mark:(0,r.createElement)("mark",null)})},BF=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));const jF=function(e){const{children:t}=e;return(0,r.createElement)("div",{className:"components-tip"},(0,r.createElement)($E,{icon:BF}),(0,r.createElement)("p",null,t))};const VF=function e({__nextHasNoMarginBottom:t,label:n,checked:o,help:i,className:a,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,d.useInstanceId)(e)}`,u=ns()("components-toggle-control",a,!t&&Ps({marginBottom:Ah(3)},"",""));let f,m;return i&&("function"==typeof i?void 0!==o&&(m=i(o)):m=i,m&&(f=c+"__help")),(0,r.createElement)(iy,{id:c,help:m,className:u,__nextHasNoMarginBottom:!0},(0,r.createElement)(Py,{justify:"flex-start",spacing:3},(0,r.createElement)(ZA,{id:c,checked:o,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,r.createElement)(Uh,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};var HF=He([Ct],[kt]),$F=HF.useContext,WF=(HF.useScopedContext,HF.useProviderContext),UF=(HF.ContextProvider,HF.ScopedContextProvider),GF=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=$F();return r=Gt(x({store:n=n||o},r))})),qF=Be((e=>je("button",GF(e))));const YF=(0,Uo.createContext)(void 0);const KF=(0,Uo.forwardRef)((function({children:e,as:t,...n},o){const i=(0,Uo.useContext)(YF),a="function"==typeof e;if(!a&&!t)return null;const s={...n,ref:o,"data-toolbar-item":!0};if(!i)return t?(0,r.createElement)(t,{...s},e):a?e(s):null;const l=a?e:t&&(0,r.createElement)(t,null,e);return(0,r.createElement)(qF,{...s,store:i,render:l})})),XF=({children:e,className:t})=>(0,r.createElement)("div",{className:t},e);const ZF=(0,Uo.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:o,isActive:i,isDisabled:a,title:s,...l},u){return(0,Uo.useContext)(YF)?(0,r.createElement)(KF,{className:c()("components-toolbar-button",t),...o,...l,ref:u},(t=>(0,r.createElement)(my,{label:s,isPressed:i,disabled:a,...t},e))):(0,r.createElement)(XF,{className:n},(0,r.createElement)(my,{ref:u,icon:l.icon,label:s,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:e=>{e.stopPropagation(),l.onClick&&l.onClick(e)},className:c()("components-toolbar__control",t),isPressed:i,disabled:a,"data-toolbar-item":!0,...o,...l},e))})),JF=({className:e,children:t,...n})=>(0,r.createElement)("div",{className:e,...n},t);const QF=function({controls:e=[],toggleProps:t,...n}){const o=t=>(0,r.createElement)(QT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Uo.useContext)(YF)?(0,r.createElement)(KF,{...t},o):o(t)};const eB=function({controls:e=[],children:t,className:n,isCollapsed:o,title:i,...a}){const s=(0,Uo.useContext)(YF);if(!(e&&e.length||t))return null;const l=c()(s?"components-toolbar-group":"components-toolbar",n);let u;var d;return d=e,u=Array.isArray(d)&&Array.isArray(d[0])?e:[e],o?(0,r.createElement)(QF,{label:i,controls:u,className:l,children:t,...a}):(0,r.createElement)(JF,{className:l,...a},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,r.createElement)(ZF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":void 0,...e}))))),t)};function tB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return tl(M(R({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}function nB(e={}){const[t,n]=$t(tB,e);return function(e,t,n){return nl(e,t,n)}(t,n,e)}var rB=Ve((e=>{var t=e,{store:n,orientation:r,virtualFocus:o,focusLoop:i,rtl:a}=t,s=E(t,["store","orientation","virtualFocus","focusLoop","rtl"]);const l=WF(),c=nB({store:n=n||l,orientation:r,virtualFocus:o,focusLoop:i,rtl:a}),u=c.useState((e=>"both"===e.orientation?void 0:e.orientation));return s=Te(s,(e=>(0,Le.jsx)(UF,{value:c,children:e})),[c]),s=x({role:"toolbar","aria-orientation":u},s),s=il(x({store:c},s))})),oB=Fe((e=>je("div",rB(e))));const iB=(0,Uo.forwardRef)((function({label:e,...t},n){const o=nB({focusLoop:!0,rtl:(0,u.isRTL)()});return(0,r.createElement)(YF.Provider,{value:o},(0,r.createElement)(oB,{ref:n,"aria-label":e,store:o,...t}))}));const aB=(0,Uo.forwardRef)((function({className:e,label:t,variant:n,...o},i){const a=void 0!==n,s=(0,Uo.useMemo)((()=>a?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}}),[a]);if(!t){qo()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=o;return(0,r.createElement)(eB,{isCollapsed:!1,...n,className:e})}const l=c()("components-accessible-toolbar",e,n&&`is-${n}`);return(0,r.createElement)(mi,{value:s},(0,r.createElement)(iB,{className:l,label:t,ref:i,...o}))}));const sB=(0,Uo.forwardRef)((function(e,t){return(0,Uo.useContext)(YF)?(0,r.createElement)(KF,{ref:t,...e.toggleProps},(t=>(0,r.createElement)(QT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,r.createElement)(QT,{...e})}));const lB={columns:e=>Ps("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Ps("column-gap:",Ah(2),";row-gap:",Ah(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},cB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},uB=Ps(lB.item.fullWidth," gap:",Ah(2),";.components-dropdown-menu{margin:",Ah(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Ah(6),";}",""),dB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},fB=Ps(lB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Xb,"{margin-bottom:0;",Zb,":last-child{margin-bottom:0;}}",ty,"{margin-bottom:0;}&& ",Cv,"{label{line-height:1.4em;}}",""),mB={name:"eivff4",styles:"display:none"},pB={name:"16gsvie",styles:"min-width:200px"},hB=bs("span",{target:"ews648u0"})("color:",Ds.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",Jh({marginLeft:Ah(3)})," text-transform:uppercase;"),gB=Ps("color:",Ds.gray[900],";&&[aria-disabled='true']{color:",Ds.gray[700],";opacity:1;&:hover{color:",Ds.gray[700],";}",hB,"{opacity:0.3;}}",""),vB=()=>{},bB=(0,Uo.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:vB,deregisterPanelItem:vB,flagItemCustomization:vB,registerResetAllFilter:vB,deregisterResetAllFilter:vB,areAllOptionalControlsHidden:!0}),yB=()=>(0,Uo.useContext)(bB);const xB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const o=(0,r.createElement)(hB,{"aria-hidden":!0},(0,u.__)("Reset"));return(0,r.createElement)(r.Fragment,null,t.map((([t,i])=>i?(0,r.createElement)(gO,{key:t,className:e,role:"menuitem",label:(0,u.sprintf)((0,u.__)("Reset %s"),t),onClick:()=>{n(t),(0,jy.speak)((0,u.sprintf)((0,u.__)("%s reset to default"),t),"assertive")},suffix:o},t):(0,r.createElement)(gO,{key:t,icon:DS,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},wB=({items:e,toggleItem:t})=>e.length?(0,r.createElement)(r.Fragment,null,e.map((([e,n])=>{const o=n?(0,u.sprintf)((0,u.__)("Hide and reset %s"),e):(0,u.sprintf)((0,u.__)("Show %s"),e);return(0,r.createElement)(gO,{key:e,icon:n?DS:null,isSelected:n,label:o,onClick:()=>{n?(0,jy.speak)((0,u.sprintf)((0,u.__)("%s hidden and reset to default"),e),"assertive"):(0,jy.speak)((0,u.sprintf)((0,u.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,EB=os(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:o,dropdownMenuClassName:i,hasMenuItems:a,headingClassName:s,headingLevel:l=2,label:c,menuItems:d,resetAll:f,toggleItem:m,dropdownMenuProps:p,...h}=function(e){const{className:t,headingLevel:n=2,...r}=rs(e,"ToolsPanelHeader"),o=ns(),i=(0,Uo.useMemo)((()=>o(uB,t)),[t,o]),a=(0,Uo.useMemo)((()=>o(pB)),[o]),s=(0,Uo.useMemo)((()=>o(dB)),[o]),l=(0,Uo.useMemo)((()=>o(gB)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=yB();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:a,hasMenuItems:u,headingClassName:s,headingLevel:n,menuItems:c,className:i}}(e);if(!c)return null;const g=Object.entries(d?.default||{}),v=Object.entries(d?.optional||{}),b=n?ng:WP,y=(0,u.sprintf)((0,u._x)("%s options","Button label to reveal tool panel options"),c),x=n?(0,u.__)("All options are currently hidden"):void 0,w=[...g,...v].some((([,e])=>e));return(0,r.createElement)(Py,{...h,ref:t},(0,r.createElement)($S,{level:l,className:s},c),a&&(0,r.createElement)(QT,{...p,icon:b,label:y,menuProps:{className:i},toggleProps:{isSmall:!0,describedBy:x}},(()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(pO,{label:c},(0,r.createElement)(xB,{items:g,toggleItem:m,itemClassName:o}),(0,r.createElement)(wB,{items:v,toggleItem:m})),(0,r.createElement)(pO,null,(0,r.createElement)(gO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,jy.speak)((0,u.__)("All options reset"),"assertive"))}},(0,u.__)("Reset all")))))))}),"ToolsPanelHeader"),_B=EB,SB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},CB=e=>e&&0===Object.keys(e).length;function kB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:a=!1,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l,...c}=rs(e,"ToolsPanel"),u=(0,Uo.useRef)(!1),d=u.current;(0,Uo.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,m]=(0,Uo.useState)([]),[p,h]=(0,Uo.useState)([]),[g,v]=(0,Uo.useState)([]),b=(0,Uo.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),h((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,h]),y=(0,Uo.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,Uo.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Uo.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[E,_]=(0,Uo.useState)({default:{},optional:{}});(0,Uo.useEffect)((()=>{_((e=>SB({panelItems:f,shouldReset:!1,currentMenuItems:e,menuItemOrder:p})))}),[f,_,p]);const S=(0,Uo.useCallback)(((e,t="default")=>{_((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[_]),[C,k]=(0,Uo.useState)(!1);(0,Uo.useEffect)((()=>{if(CB(E?.default)&&!CB(E?.optional)){const e=!Object.entries(E.optional).some((([,e])=>e));k(e)}}),[E,k]);const P=ns(),T=(0,Uo.useMemo)((()=>{const e=i&&Ps(">div:not( :first-of-type ){display:grid;",lB.columns(2)," ",lB.spacing," ",lB.item.fullWidth,";}","");const n=CB(E?.default)&&C&&cB;return P((e=>Ps(lB.columns(e)," ",lB.spacing," border-top:",Xg.borderWidth," solid ",Ds.gray[300],";margin-top:-1px;padding:",Ah(4),";",""))(2),e,n,t)}),[C,t,P,i,E]),I=(0,Uo.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...E,[n]:{...E[n],[e]:!E[n][e]}};_(r)}),[E,f,_]),R=(0,Uo.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=SB({panelItems:f,menuItemOrder:p,shouldReset:!0});_(e)}),[f,g,r,_,p]),M=e=>{const t=E.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},N=M(f),D=M([...f].reverse());return{...c,headingLevel:n,panelContext:(0,Uo.useMemo)((()=>({areAllOptionalControlsHidden:C,deregisterPanelItem:y,deregisterResetAllFilter:w,firstDisplayedItem:N,flagItemCustomization:S,hasMenuItems:!!f.length,isResetting:u.current,lastDisplayedItem:D,menuItems:E,panelId:o,registerPanelItem:b,registerResetAllFilter:x,shouldRenderPlaceholderItems:a,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l})),[C,y,w,N,S,D,E,o,f,x,b,a,s,l]),resetAllItems:R,toggleItem:I,className:T}}const PB=os(((e,t)=>{const{children:n,label:o,panelContext:i,resetAllItems:a,toggleItem:s,headingLevel:l,dropdownMenuProps:c,...u}=kB(e);return(0,r.createElement)(OC,{...u,columns:2,ref:t},(0,r.createElement)(bB.Provider,{value:i},(0,r.createElement)(_B,{label:o,resetAll:a,toggleItem:s,headingLevel:l,dropdownMenuProps:c}),n))}),"ToolsPanel"),TB=()=>{};const IB=os(((e,t)=>{const{children:n,isShown:o,shouldRenderPlaceholder:i,...a}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:a=TB,onDeselect:s,onSelect:l,...c}=rs(e,"ToolsPanelItem"),{panelId:u,menuItems:f,registerResetAllFilter:m,deregisterResetAllFilter:p,registerPanelItem:h,deregisterPanelItem:g,flagItemCustomization:v,isResetting:b,shouldRenderPlaceholderItems:y,firstDisplayedItem:x,lastDisplayedItem:w,__experimentalFirstVisibleItemClass:E,__experimentalLastVisibleItemClass:_}=yB(),S=(0,Uo.useCallback)(n,[i]),C=(0,Uo.useCallback)(a,[i]),k=(0,d.usePrevious)(u),P=u===i||null===u;(0,Uo.useLayoutEffect)((()=>(P&&null!==k&&h({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===k&&u||u===i)&&g(o)})),[u,P,r,o,S,i,k,h,g]),(0,Uo.useEffect)((()=>(P&&m(C),()=>{P&&p(C)})),[m,p,C,P]);const T=r?"default":"optional",I=f?.[T]?.[o],R=(0,d.usePrevious)(I),M=void 0!==f?.[T]?.[o],N=n(),D=(0,d.usePrevious)(N),A=N&&!D;(0,Uo.useEffect)((()=>{A&&v(o,T)}),[A,T,o,v]),(0,Uo.useEffect)((()=>{M&&!b&&P&&(!I||N||R||l?.(),!I&&R&&s?.())}),[P,I,M,b,N,R,l,s]);const O=r?void 0!==f?.[T]?.[o]:I,z=ns(),L=(0,Uo.useMemo)((()=>{const e=y&&!O;return z(fB,e&&mB,!e&&t,x===o&&E,w===o&&_)}),[O,y,t,z,x,w,E,_,o]);return{...c,isShown:O,shouldRenderPlaceholder:y,className:L}}(e);return o?(0,r.createElement)(xs,{...a,ref:t},n):i?(0,r.createElement)(xs,{...a,ref:t}):null}),"ToolsPanelItem"),RB=IB,MB=(0,Uo.createContext)(void 0),NB=MB.Provider;function DB({children:e}){const[t,n]=(0,Uo.useState)(),o=(0,Uo.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,r.createElement)(NB,{value:o},e)}function AB(e){return HT.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const OB=(0,Uo.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:o=(()=>{}),applicationAriaLabel:i,...a},s){const l=(0,Uo.useCallback)((e=>{const{keyCode:r,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![Vy.UP,Vy.DOWN,Vy.LEFT,Vy.RIGHT,Vy.HOME,Vy.END].includes(r))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=AB(u),f=d.indexOf(l),m=0===f,p=m&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&r===Vy.RIGHT;if([Vy.LEFT,Vy.RIGHT].includes(r)){let o;if(o=r===Vy.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),m){if(r===Vy.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}AB(o)?.[0]?.focus()}if(r===Vy.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=AB(u);n.length>0&&n[o]?.focus()}return void e.preventDefault()}if(p)return;d[o].focus(),e.preventDefault()}else if([Vy.UP,Vy.DOWN].includes(r)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=r===Vy.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=AB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),o(e,u,t[i]),e.preventDefault()}else if([Vy.HOME,Vy.END].includes(r)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=r===Vy.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=AB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),o(e,u,t[i]),e.preventDefault()}}),[t,n,o]);return(0,r.createElement)(DB,null,(0,r.createElement)("div",{role:"application","aria-label":i},(0,r.createElement)("table",{...a,role:"treegrid",onKeyDown:l,ref:s},(0,r.createElement)("tbody",null,e))))})),zB=OB;const LB=(0,Uo.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:o,isExpanded:i,...a},s){return(0,r.createElement)("tr",{...a,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":o,"aria-expanded":i},e)})),FB=(0,Uo.forwardRef)((function({children:e,as:t,...n},o){const i=(0,Uo.useRef)(),a=o||i,{lastFocusedElement:s,setLastFocusedElement:l}=(0,Uo.useContext)(MB);let c;s&&(c=s===("current"in a?a.current:void 0)?0:-1);const u={ref:a,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,r.createElement)(t,{...u},e):null}));const BB=(0,Uo.forwardRef)((function({children:e,...t},n){return(0,r.createElement)(FB,{ref:n,...t},e)}));const jB=(0,Uo.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},o){return(0,r.createElement)("td",{...n,role:"gridcell"},t?(0,r.createElement)(r.Fragment,null,e):(0,r.createElement)(BB,{ref:o},e))}));function VB(e){e.stopPropagation()}const HB=(0,Uo.forwardRef)(((e,t)=>(qo()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,r.createElement)("div",{...e,ref:t,onMouseDown:VB}))));function $B(e){return Nx((0,Uo.useContext)(Ox).fills,{sync:!0}).get(e)}const WB=bs("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>Ps({marginInlineStart:e},"","")),";}",(({zIndex:e})=>Ps({zIndex:e},"","")),";");var UB={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const GB=bs("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",WB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?UB:void 0),";}");const qB=os((function(e,t){const{children:n,className:o,isLayered:i=!0,isReversed:a=!1,offset:s=0,...l}=rs(e,"ZStack"),c=Cy(n),u=c.length-1,d=c.map(((e,t)=>{const n=a?u-t:t,o=i?s*t:s,l=(0,Uo.isValidElement)(e)?e.key:t;return(0,r.createElement)(WB,{offsetAmount:o,zIndex:n,key:l},e)}));return(0,r.createElement)(GB,{...l,className:o,isLayered:i,ref:t},d)}),"ZStack"),YB=qB,KB={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function XB(e=KB){const t=(0,Uo.useRef)(null),[n,r]=(0,Uo.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,d.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,d.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>Vy.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>Vy.isKeyboardEvent[e](t,n)))&&o(1)}}}const ZB=(0,d.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,r.createElement)("div",{...XB(t)},(0,r.createElement)(e,{...n}))),"navigateRegions"),JB=(0,d.createHigherOrderComponent)((e=>function(t){const n=(0,d.useConstrainedTabbing)();return(0,r.createElement)("div",{ref:n,tabIndex:-1},(0,r.createElement)(e,{...t}))}),"withConstrainedTabbing"),QB=e=>(0,d.createHigherOrderComponent)((t=>class extends Uo.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);si()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,r.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,r.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),ej=window.wp.hooks,tj=16;function nj(e){return(0,d.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let o;class i extends Uo.Component{constructor(n){super(n),void 0===o&&(o=(0,ej.applyFilters)(e,t))}componentDidMount(){i.instances.push(this),1===i.instances.length&&((0,ej.addAction)("hookRemoved",n,s),(0,ej.addAction)("hookAdded",n,s))}componentWillUnmount(){i.instances=i.instances.filter((e=>e!==this)),0===i.instances.length&&((0,ej.removeAction)("hookRemoved",n),(0,ej.removeAction)("hookAdded",n))}render(){return(0,r.createElement)(o,{...this.props})}}i.instances=[];const a=(0,d.debounce)((()=>{o=(0,ej.applyFilters)(e,t),i.instances.forEach((e=>{e.forceUpdate()}))}),tj);function s(t){t===e&&a()}return i}),"withFilters")}const rj=(0,d.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const o=(0,d.useFocusReturn)(e);return(0,r.createElement)("div",{ref:o},(0,r.createElement)(t,{...n}))};if((n=e)instanceof Uo.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn"),oj=({children:e})=>(qo()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e),ij=(0,d.createHigherOrderComponent)((e=>{function t(t,o){const[i,a]=(0,Uo.useState)([]),s=(0,Uo.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:Xx()};a((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{a((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{a([])}}}),[]),l={...t,noticeList:i,noticeOperations:s,noticeUI:i.length>0&&(0,r.createElement)(Hz,{className:"components-with-notices-ui",notices:i,onRemove:s.removeNotice})};return n?(0,r.createElement)(e,{...l,ref:o}):(0,r.createElement)(e,{...l})}let n;const{render:o}=e;return"function"==typeof o?(n=!0,(0,Uo.forwardRef)(t)):t}),"withNotices");const aj=Ts({"0%":{left:"-50%"},"100%":{left:"100%"}}),sj=bs("div",{target:"e15u147w2"})("position:relative;overflow:hidden;width:100%;max-width:160px;height:",Xg.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ",Ds.gray[900]," ),\n\t\ttransparent 90%\n\t);border-radius:",Xg.radiusBlockUi,";outline:2px solid transparent;outline-offset:2px;"),lj=bs("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",Xg.radiusBlockUi,";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ",Ds.gray[900]," ),\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e,value:t})=>Ps(e?{animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:aj,width:"50%"}:{width:`${t}%`,transition:"width 0.4s ease-in-out"},"","")),";"),cj=bs("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const uj=(0,Uo.forwardRef)((function(e,t){const{className:n,value:o,...i}=e,a=!Number.isFinite(o);return(0,r.createElement)(sj,{className:n},(0,r.createElement)(lj,{isIndeterminate:a,value:o}),(0,r.createElement)(cj,{max:100,value:o,"aria-label":(0,u.__)("Loading …"),ref:t,...i}))}));var dj=He([Ct,xn],[kt,wn]),fj=dj.useContext,mj=dj.useScopedContext,pj=dj.useProviderContext,hj=dj.ContextProvider,gj=dj.ScopedContextProvider,vj=(0,r.createContext)(void 0),bj=(0,r.createContext)(!1),yj=(0,Le.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5pt",viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,Le.jsx)("polyline",{points:"4,8 7,12 12,4"})});var xj=Ve((e=>{var t=e,{store:n,checked:o}=t,i=E(t,["store","checked"]);const a=(0,r.useContext)(bj),s=function(e){return e.checked?e.children||yj:"function"==typeof e.children?e.children:null}({checked:o=null!=o?o:a,children:i.children});return i=w(x({"aria-hidden":!0},i),{children:s,style:x({width:"1em",height:"1em",pointerEvents:"none"},i.style)})}));Fe((e=>je("span",xj(e))));var wj=Ve((e=>{var t=e,{store:n,checked:o}=t,i=E(t,["store","checked"]);const a=(0,r.useContext)(vj);return o=null!=o?o:a,i=xj(w(x({},i),{checked:o}))})),Ej=Fe((e=>je("span",wj(e))));var _j=He([Ct],[kt]),Sj=_j.useContext,Cj=_j.useScopedContext,kj=(_j.useProviderContext,_j.ContextProvider,_j.ScopedContextProvider,(0,r.createContext)(void 0),He([gn,Ct],[vn,kt])),Pj=(kj.useContext,kj.useScopedContext,kj.useProviderContext);kj.ContextProvider,kj.ScopedContextProvider,(0,r.createContext)(void 0),(0,r.createContext)(!1);function Tj(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=N(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=Lt(i.store,function(e,...t){if(e)return It(e,"pick")(...t)}(r,["values"]),zt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=tl(M(R({},i),{store:s,orientation:V(i.orientation,l.orientation,"vertical")})),u=tn(M(R({},i),{store:s,placement:V(i.placement,l.placement,"bottom-start"),timeout:V(i.timeout,l.timeout,a?0:150),hideTimeout:V(i.hideTimeout,l.hideTimeout,0)})),d=Rt(M(R(R({},c.getState()),u.getState()),{initialFocus:V(l.initialFocus,"container"),values:V(i.values,l.values,i.defaultValues,{})}),c,u,s);return Mt(d,(()=>At(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Mt(d,(()=>At(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),M(R(R(R({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=A(t,r);return o===r?n:M(R({},n),{[e]:void 0!==o&&o})})))}})}function Ij(e={}){const t=fj(),n=Sj(),r=Pj();e=w(x({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=$t(Tj,e);return function(e,t,n){return Ce(t,[n.combobox,n.parent,n.menubar]),Ht(e=en(e=nl(e,t,n),t,n),n,"values","setValues"),Object.assign(e,{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}var Rj=Ve((e=>{const t=(0,r.useRef)(null),n=Se(t,e.as||"button"),[o,i]=(0,r.useState)((()=>!!n&&X({tagName:n,type:e.type})));return(0,r.useEffect)((()=>{t.current&&i(X(t.current))}),[]),e=w(x({role:o||"a"===n?void 0:"button"},e),{ref:Ee(t,e.ref)}),e=ft(e)}));Fe((e=>je("button",Rj(e))));var Mj=Symbol("disclosure"),Nj=Ve((e=>{var t=e,{store:n,toggleOnClick:o=!0}=t,i=E(t,["store","toggleOnClick"]);const a=sn();F(n=n||a,!1);const s=(0,r.useRef)(null),[l,c]=(0,r.useState)(!1),u=n.useState("disclosureElement"),d=n.useState("open");(0,r.useEffect)((()=>{let e=u===s.current;(null==u?void 0:u.isConnected)||(null==n||n.setDisclosureElement(s.current),e=!0),c(d&&e)}),[u,n,d]);const f=i.onClick,m=Pe(o),[p,h]=Re(i,Mj,!0),g=we((e=>{null==f||f(e),e.defaultPrevented||p||m(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),v=n.useState("contentElement");return i=w(x(x({"aria-expanded":l,"aria-controls":null==v?void 0:v.id},h),i),{ref:Ee(s,i.ref),onClick:g}),i=Rj(i)}));Fe((e=>je("button",Nj(e))));var Dj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=cn();F(n=n||o,!1);const i=n.useState("contentElement");return r=x({"aria-haspopup":ne(i,"dialog")},r),r=Nj(x({store:n},r))}));Fe((e=>je("button",Dj(e))));var Aj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=hn();return n=n||o,r=w(x({},r),{ref:Ee(null==n?void 0:n.setAnchorElement,r.ref)})}));Fe((e=>je("div",Aj(e))));var Oj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=hn();F(n=n||o,!1);const i=r.onClick,a=we((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=Te(r,(e=>(0,Le.jsx)(vn,{value:n,children:e})),[n]),r=w(x({},r),{onClick:a}),r=Aj(x({store:n},r)),r=Dj(x({store:n},r))}));Fe((e=>je("button",Oj(e))));var zj="";function Lj(){zj=""}function Fj(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function Bj(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&Fj(r,t)?zj!==t&&Fj(r,zj)?e:(zj=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[bt]:[],...e.slice(0,r)]}(e.filter((e=>Fj(e,zj))),n).filter((e=>e.id!==n))):e}var jj=Ve((e=>{var t=e,{store:n,typeahead:o=!0}=t,i=E(t,["store","typeahead"]);const a=_t();F(n=n||a,!1);const s=i.onKeyDownCapture,l=(0,r.useRef)(0),c=we((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!o)return;if(!n)return;const{items:t,activeId:r}=n.getState();if(!function(e){const t=e.target;return(!t||!te(t))&&(!(" "!==e.key||!zj.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Lj();let i=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(ce(e))return!0;const n=e.target;if(!n)return!1;const r=t.some((e=>e.element===n));return r}(e,i))return Lj();e.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout((()=>{zj=""}),500);const a=e.key.toLowerCase();zj+=a,i=Bj(i,a,r);const c=i.find((e=>Fj(e,zj)));c?n.move(c.id):Lj()}));return i=w(x({},i),{onKeyDownCapture:c})}));Fe((e=>je("div",jj(e))));function Vj(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var Hj=Ve((e=>{var t=e,{store:n,focusable:o,accessibleWhenDisabled:i,showOnHover:a}=t,s=E(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const l=pj();F(n=n||l,!1);const c=(0,r.useRef)(null),u=n.parent,d=n.menubar,f=!!u,m=!!d&&!f,p=j(s),h=()=>{const e=c.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},g=s.onFocus,v=we((e=>{if(null==g||g(e),p)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!d)return;if(!m)return;const{items:t}=d.getState();Vj(t,e.currentTarget)&&h()})),b=n.useState((e=>e.placement.split("-")[0])),y=s.onKeyDown,_=we((e=>{if(null==y||y(e),p)return;if(e.defaultPrevented)return;const t=function(e,t){return{ArrowDown:("bottom"===t||"top"===t)&&"first",ArrowUp:("bottom"===t||"top"===t)&&"last",ArrowRight:"right"===t&&"first",ArrowLeft:"left"===t&&"first"}[e.key]}(e,b);t&&(e.preventDefault(),h(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),S=s.onClick,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(f&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),f&&h()}));s=Te(s,(e=>(0,Le.jsx)(hj,{value:n,children:e})),[n]),f&&(s=w(x({},s),{render:(0,Le.jsx)(on.div,{render:s.render})}));const k=_e(s.id),P=Vt((null==u?void 0:u.combobox)||u,"contentElement"),T=f||m?re(P,"menuitem"):void 0,I=n.useState("contentElement");return s=w(x({id:k,role:T,"aria-haspopup":ne(I,"menu")},s),{ref:Ee(c,s.ref),onFocus:v,onKeyDown:_,onClick:C}),s=En(w(x({store:n,focusable:o,accessibleWhenDisabled:i},s),{showOnHover:e=>{if(!(()=>{if("function"==typeof a)return a(e);if(null!=a)return a;if(f)return!0;if(!d)return!1;const{items:t}=d.getState();return m&&Vj(t)})())return!1;const t=m?d:u;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),s=Oj(x({store:n,toggleOnClick:!f,focusable:o,accessibleWhenDisabled:i},s)),s=jj(x({store:n,typeahead:m},s))})),$j=Fe((e=>je("button",Hj(e))));const Wj=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var Uj=Ve((e=>{var t=e,{store:n,alwaysVisible:o,composite:i}=t,a=E(t,["store","alwaysVisible","composite"]);const s=pj();F(n=n||s,!1);const l=n.parent,c=n.menubar,u=!!l,d=_e(a.id),f=a.onKeyDown,m=n.useState((e=>e.placement.split("-")[0])),p=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),h="vertical"!==p,g=Vt(c,(e=>!!e&&"vertical"!==e.orientation)),v=we((e=>{if(null==f||f(e),!e.defaultPrevented){if(u||c&&!h){const t={ArrowRight:()=>"left"===m&&!h,ArrowLeft:()=>"right"===m&&!h,ArrowUp:()=>"bottom"===m&&h,ArrowDown:()=>"top"===m&&h}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(c){const t={ArrowRight:()=>{if(g)return c.next()},ArrowLeft:()=>{if(g)return c.previous()},ArrowDown:()=>{if(!g)return c.next()},ArrowUp:()=>{if(!g)return c.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),c.move(n))}}}));a=Te(a,(e=>(0,Le.jsx)(gj,{value:n,children:e})),[n]);const b=function(e){var t=e,{store:n}=t,o=E(t,["store"]);const[i,a]=(0,r.useState)(void 0),s=o["aria-label"],l=Vt(n,"disclosureElement"),c=Vt(n,"contentElement");return(0,r.useEffect)((()=>{const e=l;e&&c&&(s||c.hasAttribute("aria-label")?a(void 0):e.id&&a(e.id))}),[s,l,c]),i}(x({store:n},a)),y=Yn(n.useState("mounted"),a.hidden,o),_=y?w(x({},a.style),{display:"none"}):a.style;a=w(x({id:d,"aria-labelledby":b,hidden:y},a),{ref:Ee(d?n.setContentElement:null,a.ref),style:_,onKeyDown:v});const S=!!n.combobox;return(i=null!=i?i:!S)&&(a=x({role:"menu","aria-orientation":p},a)),a=il(x({store:n,composite:i},a)),a=jj(x({store:n,typeahead:!S},a))}));Fe((e=>je("div",Uj(e))));var Gj=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:c}=t,u=E(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=pj();F(n=n||d,!1);const f=(0,r.useRef)(null),m=n.parent,p=n.menubar,h=!!m,g=!!p&&!h;u=w(x({},u),{ref:Ee(f,u.ref)});const v=Uj(x({store:n,alwaysVisible:c},u)),{"aria-labelledby":b}=v;u=E(v,["aria-labelledby"]);const[y,_]=(0,r.useState)(),S=n.useState("autoFocusOnShow"),C=n.useState("initialFocus"),k=n.useState("baseElement"),P=n.useState("renderedItems");(0,r.useEffect)((()=>{let e=!1;return _((t=>{var n,o,i;if(e)return;if(!S)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const a=(0,r.createRef)();switch(C){case"first":a.current=(null==(o=P.find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;case"last":a.current=(null==(i=[...P].reverse().find((e=>!e.disabled&&e.element)))?void 0:i.element)||null;break;default:a.current=k}return a})),()=>{e=!0}}),[n,S,C,P,k]);const T=!h&&o,I=!!s,R=!!y||!!u.initialFocus||!!T,M=Vt(n.combobox||n,"contentElement"),N=Vt((null==m?void 0:m.combobox)||m,"contentElement"),D=(0,r.useMemo)((()=>{if(!N)return;if(!M)return;const e=M.getAttribute("role"),t=N.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?N:void 0}),[M,N]);return void 0!==D&&(u=x({preserveTabOrderAnchor:D},u)),u=Ho(w(x({store:n,alwaysVisible:c,initialFocus:y,autoFocusOnShow:I?R&&s:S||!!T},u),{hideOnEscape:e=>!B(a,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside:e=>{const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:h||g&&(!t||!Je(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Je(t)||(requestAnimationFrame((()=>{Je(t)||null==n||n.hide()})),!1)))))},modal:T,portal:i,backdrop:!h&&u.backdrop})),u=x({"aria-labelledby":b},u)})),qj=yr(Fe((e=>je("div",Gj(e)))),pj);function Yj(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Kj=Symbol("composite-hover");var Xj=Ve((e=>{var t=e,{store:n,focusOnHover:o=!0,blurOnHoverEnd:i=!!o}=t,a=E(t,["store","focusOnHover","blurOnHoverEnd"]);const s=_t();F(n=n||s,!1);const l=Me(),c=a.onMouseMove,u=Pe(o),d=we((e=>{if(null==c||c(e),!e.defaultPrevented&&l()&&u(e)){if(!Je(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Ze(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),f=a.onMouseLeave,m=Pe(i),p=we((e=>{var t;null==f||f(e),e.defaultPrevented||l()&&(function(e){const t=Yj(e);return!!t&&Y(e.currentTarget,t)}(e)||function(e){let t=Yj(e);if(!t)return!1;do{if(O(t,Kj)&&t[Kj])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&m(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),h=(0,r.useCallback)((e=>{e&&(e[Kj]=!0)}),[]);return a=w(x({},a),{ref:Ee(h,a.ref),onMouseMove:d,onMouseLeave:p})}));Be((e=>je("div",Xj(e))));var Zj=Ve((e=>{var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=E(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=mj(!0),c=Cj();F(n=n||l||c,!1);const u=s.onClick,d=Pe(r),f="hideAll"in n?n.hideAll:void 0,m=!!f,p=we((e=>{if(null==u||u(e),e.defaultPrevented)return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e))return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=ie();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),h=re(Vt(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=w(x({role:h},s),{onClick:p}),s=Gt(x({store:n,preventScrollOnKeyDown:o},s)),s=Xj(w(x({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return m?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Je(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=G(e).getElementById(i);return!(!a||!Je(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:m})),s})),Jj=Be((e=>je("div",Zj(e))));function Qj(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Rt({value:V(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return M(R({},r),{setValue:e=>r.setState("value",e)})}function eV(e={}){const[t,n]=$t(Qj,e);return function(e,t,n){return Ce(t,[n.store]),Ht(e,n,"value","setValue"),e}(t,n,e)}var tV=He(),nV=tV.useContext;tV.useScopedContext,tV.useProviderContext,tV.ContextProvider,tV.ScopedContextProvider;function rV(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function oV(e){return Array.isArray(e)?e.toString():e}var iV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,defaultChecked:s}=t,l=E(t,["store","name","value","checked","defaultChecked"]);const c=nV();n=n||c;const[u,d]=(0,r.useState)(null!=s&&s),f=Vt(n,(e=>{if(void 0!==a)return a;if(void 0===(null==e?void 0:e.value))return u;if(null!=i){if(Array.isArray(e.value)){const t=oV(i);return e.value.includes(t)}return e.value===i}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),m=(0,r.useRef)(null),p=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Se(m,l.as||"input"),l.type),h=f?"mixed"===f:void 0,g="mixed"!==f&&f,v=j(l),[b,y]=ke();(0,r.useEffect)((()=>{const e=m.current;e&&(rV(e,h),p||(e.checked=g,void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[b,h,p,g,o,i]);const _=l.onChange,S=we((e=>{if(v)return e.stopPropagation(),void e.preventDefault();if(rV(e.currentTarget,h),p||(e.currentTarget.checked=!e.currentTarget.checked,y()),null==_||_(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==n||n.setValue((e=>{if(null==i)return t;const n=oV(i);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),C=l.onClick,k=we((e=>{null==C||C(e),e.defaultPrevented||p||S(e)}));return l=Te(l,(e=>(0,Le.jsx)(bj.Provider,{value:g,children:e})),[g]),l=w(x({role:p?void 0:"checkbox",type:p?"checkbox":void 0,"aria-checked":f},l),{ref:Ee(m,l.ref),onChange:S,onClick:k}),l=ft(x({clickOnEnter:!p},l)),x({name:p?o:void 0,value:p?i:void 0,checked:g},l)}));Fe((e=>je("input",iV(e))));function aV(e,t,n){if(void 0===t)return Array.isArray(e)?e:!!n;const r=function(e){return Array.isArray(e)?e.toString():e}(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter((e=>e!==r)):n?r:e!==r&&e}var sV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,defaultChecked:s,hideOnClick:l=!1}=t,c=E(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const u=mj();F(n=n||u,!1);const d=ye(s);(0,r.useEffect)((()=>{null==n||n.setValue(o,((e=[])=>d?aV(e,i,!0):e))}),[n,o,i,d]),(0,r.useEffect)((()=>{void 0!==a&&(null==n||n.setValue(o,(e=>aV(e,i,a))))}),[n,o,i,a]);const f=eV({value:n.useState((e=>e.values[o])),setValue(e){null==n||n.setValue(o,(()=>{if(void 0===a)return e;const t=aV(e,i,a);return Array.isArray(t)&&Array.isArray(e)&&function(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}(e,t)?e:t}))}});return c=x({role:"menuitemcheckbox"},c),c=iV(x({store:f,name:o,value:i,checked:a},c)),c=Zj(x({store:n,hideOnClick:l},c))})),lV=Be((e=>je("div",sV(e))));function cV(e,t,n){return void 0===n?e:n?t:e}var uV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,onChange:s,hideOnClick:l=!1}=t,c=E(t,["store","name","value","checked","onChange","hideOnClick"]);const u=mj();F(n=n||u,!1);const d=ye(c.defaultChecked);(0,r.useEffect)((()=>{null==n||n.setValue(o,((e=!1)=>cV(e,i,d)))}),[n,o,i,d]),(0,r.useEffect)((()=>{void 0!==a&&(null==n||n.setValue(o,(e=>cV(e,i,a))))}),[n,o,i,a]);const f=n.useState((e=>e.values[o]===i));return c=Te(c,(e=>(0,Le.jsx)(vj.Provider,{value:!!f,children:e})),[f]),c=x({role:"menuitemradio"},c),c=mE(x({name:o,value:i,checked:f,onChange:e=>{if(null==s||s(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(o,(e=>cV(e,i,null!=a?a:t.checked)))}},c)),c=Zj(x({store:n,hideOnClick:l},c))})),dV=Be((e=>je("div",uV(e))));var fV=Ve((e=>e=NI(e))),mV=Fe((e=>je("div",fV(e))));var pV=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=_t();F(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=PP(w(x({},r),{orientation:i}))}));Fe((e=>je("hr",pV(e))));var hV=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=fj();return r=pV(x({store:n=n||o},r))})),gV=Fe((e=>je("hr",hV(e))));const vV="2px",bV="400ms",yV="cubic-bezier( 0.16, 1, 0.3, 1 )",xV=Ah(1),wV=Ah(2),EV=Ah(3),_V=Ds.gray[300],SV=Ds.gray[200],CV=Ds.gray[900],kV=`0 0 0 ${Xg.borderWidth} ${_V}, ${Xg.popoverShadow}`,PV=`0 0 0 ${Xg.borderWidth} ${CV}`,TV="minmax( 0, max-content ) 1fr",IV=Ts({"0%":{opacity:0,transform:`translateY(${vV})`},"100%":{opacity:1,transform:"translateY(0)"}}),RV=Ts({"0%":{opacity:0,transform:`translateX(-${vV})`},"100%":{opacity:1,transform:"translateX(0)"}}),MV=Ts({"0%":{opacity:0,transform:`translateY(-${vV})`},"100%":{opacity:1,transform:"translateY(0)"}}),NV=Ts({"0%":{opacity:0,transform:`translateX(${vV})`},"100%":{opacity:1,transform:"translateX(0)"}}),DV=bs(qj,{target:"e1kdzosf12"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",TV,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",xV,";background-color:",Ds.ui.background,";border-radius:4px;",(e=>Ps("box-shadow:","toolbar"===e.variant?PV:kV,";",""))," overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:",bV,";animation-timing-function:",yV,";will-change:transform,opacity;animation-name:",MV,";&[data-side='right']{animation-name:",NV,";}&[data-side='bottom']{animation-name:",IV,";}&[data-side='left']{animation-name:",RV,";}@media ( prefers-reduced-motion ){animation-duration:0s;}"),AV=Ps("all:unset;position:relative;min-height:",Ah(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",TV,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",Yb("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Ds.gray[900],";border-radius:",Xg.radiusBlockUi,";padding-block:",wV,";padding-inline:",EV,";scroll-margin:",xV,";user-select:none;outline:none;&[aria-disabled='true']{color:",Ds.ui.textDisabled,";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:",Ds.theme.accent,";color:",Ds.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",Ds.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",DV,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',Ds.gray[100],";color:",Ds.gray[900],";}svg{fill:currentColor;}",""),OV=bs(Jj,{target:"e1kdzosf11"})(AV,";"),zV=bs(lV,{target:"e1kdzosf10"})(AV,";"),LV=bs(dV,{target:"e1kdzosf9"})(AV,";"),FV=bs("span",{target:"e1kdzosf8"})("grid-column:1;",zV,">&,",LV,">&{min-width:",Ah(6),";}",zV,">&,",LV,">&,&:not( :empty ){margin-inline-end:",Ah(2),";}display:flex;align-items:center;justify-content:center;color:",Ds.gray[700],";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),BV=bs("div",{target:"e1kdzosf7"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",Ah(3),";pointer-events:none;"),jV=bs("div",{target:"e1kdzosf6"})("flex:1;display:inline-flex;flex-direction:column;gap:",Ah(1),";"),VV=bs("span",{target:"e1kdzosf5"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",Ah(3),";color:",Ds.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not(",DV,") &,[aria-disabled='true'] *:not(",DV,") &{color:inherit;}"),HV=bs(mV,{target:"e1kdzosf4"})({name:"49aokf",styles:"display:contents"}),$V=bs(gV,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",Xg.borderWidth,";background-color:",(e=>"toolbar"===e.variant?CV:SV),";margin-block:",Ah(2),";margin-inline:",EV,";outline:2px solid transparent;"),WV=bs(uy,{target:"e1kdzosf2"})("width:",Ah(1.5),";",Jh({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),UV=bs(VS,{target:"e1kdzosf1"})("font-size:",Yb("default.fontSize"),";line-height:20px;color:inherit;"),GV=bs(VS,{target:"e1kdzosf0"})("font-size:",Yb("helpText.fontSize"),";line-height:16px;color:",Ds.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not( ",DV," ) &,[aria-disabled='true'] *:not( ",DV," ) &{color:inherit;}"),qV=(0,Uo.createContext)(void 0),YV=(0,Uo.forwardRef)((function({prefix:e,suffix:t,children:n,hideOnClick:o=!0,...i},a){const s=(0,Uo.useContext)(qV);return(0,r.createElement)(OV,{ref:a,...i,accessibleWhenDisabled:!0,hideOnClick:o,store:s?.store},(0,r.createElement)(FV,null,e),(0,r.createElement)(BV,null,(0,r.createElement)(jV,null,n),t&&(0,r.createElement)(VV,null,t)))})),KV=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...o},i){const a=(0,Uo.useContext)(qV);return(0,r.createElement)(zV,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:n,store:a?.store},(0,r.createElement)(Ej,{store:a?.store,render:(0,r.createElement)(FV,null),style:{width:"auto",height:"auto"}},(0,r.createElement)(uy,{icon:DS,size:24})),(0,r.createElement)(BV,null,(0,r.createElement)(jV,null,t),e&&(0,r.createElement)(VV,null,e)))})),XV=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Circle,{cx:12,cy:12,r:3})),ZV=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...o},i){const a=(0,Uo.useContext)(qV);return(0,r.createElement)(LV,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:n,store:a?.store},(0,r.createElement)(Ej,{store:a?.store,render:(0,r.createElement)(FV,null),style:{width:"auto",height:"auto"}},(0,r.createElement)(uy,{icon:XV,size:24})),(0,r.createElement)(BV,null,(0,r.createElement)(jV,null,t),e&&(0,r.createElement)(VV,null,e)))})),JV=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(qV);return(0,r.createElement)(HV,{ref:t,...e,store:n?.store})})),QV=os(((e,t)=>{var n;const{open:o,defaultOpen:i=!1,onOpenChange:a,placement:s,trigger:l,gutter:c,children:d,shift:f,modal:m=!0,variant:p,...h}=rs(e,"DropdownMenu"),g=(0,Uo.useContext)(qV),v=(0,u.isRTL)()?"rtl":"ltr";let b=null!==(n=e.placement)&&void 0!==n?n:g?.store?"right-start":"bottom-start";"rtl"===v&&(/right/.test(b)?b=b.replace("right","left"):/left/.test(b)&&(b=b.replace("left","right")));const y=Ij({parent:g?.store,open:o,defaultOpen:i,placement:b,focusLoop:!0,setOpen(e){a?.(e)},rtl:"rtl"===v}),x=(0,Uo.useMemo)((()=>({store:y,variant:p})),[y,p]),w=y.useState("placement").split("-")[0];!y.parent||(0,Uo.isValidElement)(l)&&YV===l.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const E=(0,Uo.useCallback)((e=>(e.preventDefault(),!0)),[]),_=(0,Uo.useMemo)((()=>({dir:v,style:{direction:v}})),[v]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)($j,{ref:t,store:y,render:y.parent?(0,Uo.cloneElement)(l,{suffix:(0,r.createElement)(r.Fragment,null,l.props.suffix,(0,r.createElement)(WV,{"aria-hidden":"true",icon:Wj,size:24,preserveAspectRatio:"xMidYMid slice"}))}):l}),(0,r.createElement)(DV,{...h,modal:m,store:y,gutter:null!=c?c:y.parent?0:8,shift:null!=f?f:y.parent?-4:0,hideOnHoverOutside:!1,"data-side":w,variant:p,wrapperProps:_,hideOnEscape:E,unmountOnHide:!0},(0,r.createElement)(qV.Provider,{value:x},d)))}),"DropdownMenu"),eH=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(qV);return(0,r.createElement)($V,{ref:t,...e,store:n?.store,variant:n?.variant})})),tH=(0,Uo.forwardRef)((function(e,t){return(0,r.createElement)(UV,{numberOfLines:1,ref:t,...e})})),nH=(0,Uo.forwardRef)((function(e,t){return(0,r.createElement)(GV,{numberOfLines:2,ref:t,...e})}));const rH=bs("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function oH(e){!function(e){for(const[t,n]of Object.entries(e))void 0!==n&&Bg(n).isValid()}(e);const t={...iH(e.accent),...aH(e.background)};return function(e){for(const t of Object.values(e));}(function(e,t){const n=e.background||Ds.white,r=e.accent||"#3858e9",o=t.foreground||Ds.gray[900],i=t.gray||Ds.gray;return{accent:Bg(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:Bg(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:Bg(n).contrast(i[600])>=3&&Bg(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function iH(e){return e?{accent:e,accentDarker10:Bg(e).darken(.1).toHex(),accentDarker20:Bg(e).darken(.2).toHex(),accentInverted:sH(e)}:{}}function aH(e){if(!e)return{};const t=sH(e);return{background:e,foreground:t,foregroundInverted:sH(t),gray:lH(e,t)}}function sH(e){return Bg(e).isDark()?Ds.white:Ds.gray[900]}function lH(e,t){const n=Bg(e).isDark()?"lighten":"darken",r=Math.abs(Bg(e).toHsl().l-Bg(t).toHsl().l)/100,o={};return Object.entries({100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821}).forEach((([t,i])=>{o[parseInt(t)]=Bg(e)[n](i/.884*r).toHex()})),o}Vg([Hg,zE]);const cH=function({accent:e,background:t,className:n,...o}){const i=ns(),a=(0,Uo.useMemo)((()=>i(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[Ps("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(oH({accent:e,background:t})),n)),[e,t,n,i]);return(0,r.createElement)(rH,{className:a,...o})},uH=(0,Uo.createContext)(void 0),dH=()=>(0,Uo.useContext)(uH);const fH=bs("div",{target:"enfox0g2"})({name:"xbm4q1",styles:"display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}"}),mH=bs(_F,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:",Ah(12),";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ",Ah(4),";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:",Ds.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::after{content:'';position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:",Ds.theme.accent,";height:calc( 0 * var( --wp-admin-border-width-focus ) );border-radius:0;transition:all 0.1s linear;",As("transition"),";}&[aria-selected='true']::after{height:calc( 1 * var( --wp-admin-border-width-focus ) );outline:2px solid transparent;outline-offset:-1px;}&::before{content:'';position:absolute;top:",Ah(3),";right:",Ah(3),";bottom:",Ah(3),";left:",Ah(3),";pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all 0.1s linear;",As("transition"),";}&:focus-visible::before{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;}}"),pH=bs(CF,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),hH=(0,Uo.forwardRef)((function({children:e,tabId:t,disabled:n,render:o,...i},a){const s=dH();if(!s)return null;const{store:l,instanceId:c}=s,u=`${c}-${t}`;return(0,r.createElement)(mH,{ref:a,store:l,id:u,disabled:n,render:o,...i},e)})),gH=(0,Uo.forwardRef)((function({children:e,...t},n){const o=dH();if(!o)return null;const{store:i}=o,{selectedId:a,activeId:s,selectOnMove:l}=i.useState(),{setActiveId:c}=i;return(0,r.createElement)(wF,{ref:n,store:i,render:(0,r.createElement)(fH,null),onBlur:()=>{l&&a!==s&&c(a)},...t},e)})),vH=(0,Uo.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...o},i){const a=dH();if(!a)return null;const{store:s,instanceId:l}=a,c=`${l}-${t}`,u=s.useState((e=>e.selectedId));return(0,r.createElement)(pH,{ref:i,store:s,id:`${c}-view`,tabId:c,focusable:n,...o},u===c&&e)}));function bH({selectOnMove:e=!0,initialTabId:t,orientation:n="horizontal",onSelect:o,children:i,selectedTabId:a}){const s=(0,d.useInstanceId)(bH,"tabs"),l=hF({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${s}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${s}-`,""):e;o?.(t)},selectedId:a&&`${s}-${a}`}),c=void 0!==a,{items:u,selectedId:f,activeId:m}=l.useState(),{setSelectedId:p,setActiveId:h}=l,g=(0,Uo.useRef)(!1);u.length>0&&(g.current=!0);const v=u.find((e=>e.id===f)),b=u.find((e=>!e.dimmed)),y=u.find((e=>e.id===`${s}-${t}`));(0,Uo.useLayoutEffect)((()=>{if(!c&&(!t||y)&&!u.find((e=>e.id===f))){if(y&&!y.dimmed)return void p(y?.id);b?p(b.id):g.current&&p(null)}}),[b,y,t,c,u,f,p]),(0,Uo.useLayoutEffect)((()=>{v?.dimmed&&(c?p(null):!y||y.dimmed?b&&p(b.id):p(y.id))}),[b,y,c,v?.dimmed,p]),(0,Uo.useLayoutEffect)((()=>{c&&g.current&&a&&!v&&p(null)}),[c,v,a,p]),(0,Uo.useEffect)((()=>{c&&requestAnimationFrame((()=>{const e=u?.[0]?.element?.ownerDocument.activeElement;e&&u.some((t=>e===t.element))&&m!==e.id&&h(e.id)}))}),[m,c,u,h]);const x=(0,Uo.useMemo)((()=>({store:l,instanceId:s})),[l,s]);return(0,r.createElement)(uH.Provider,{value:x},i)}bH.TabList=gH,bH.Tab=hH,bH.TabPanel=vH,bH.Context=uH;const yH=bH,xH=window.wp.privateApis,{lock:wH,unlock:EH}=(0,xH.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/components"),_H={};wH(_H,{CompositeV2:al,CompositeGroupV2:DI,CompositeItemV2:qt,CompositeRowV2:ll,useCompositeStoreV2:rl,CustomSelectControl:wM,__experimentalPopoverLegacyPositionToPlacement:Xo,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...fw(t)}},ComponentsContext:di,ProgressBar:uj,Tabs:yH,Theme:cH,DropdownMenuV2:QV,DropdownMenuGroupV2:JV,DropdownMenuItemV2:YV,DropdownMenuCheckboxItemV2:KV,DropdownMenuRadioItemV2:ZV,DropdownMenuSeparatorV2:eH,DropdownMenuItemLabelV2:tH,DropdownMenuItemHelpTextV2:nH,kebabCase:Wy})})(),(window.wp=window.wp||{}).components=i})();
\ No newline at end of file + `,WL=ba("svg",{target:"ea4tfvq2"})("width:",bv.spinnerSize,"px;height:",bv.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Na.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),UL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},GL=ba("circle",{target:"ea4tfvq1"})(UL,";stroke:",Na.gray[300],";"),KL=ba("path",{target:"ea4tfvq0"})(UL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",HL,";");const YL=(0,Uo.forwardRef)((function({className:e,...t},n){return(0,ze.jsxs)(WL,{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,ze.jsx)(GL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,ze.jsx)(KL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}));const qL=oa((function(e,t){const n=ME(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Surface");function XL(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tl(M(I({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=Ua(),i=It(M(I({},r.getState()),{selectedId:V(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:V(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return Mt(i,(()=>At(i,["moves"],(()=>{const{activeId:e,selectOnMove:t}=i.getState();if(!t)return;if(!e)return;const n=r.item(e);n&&(n.dimmed||n.disabled||i.setState("selectedId",n.id))})))),Mt(i,(()=>Dt(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),Mt(i,(()=>At(i,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=i.getState(),o=r.item(t);if(!o||o.disabled||o.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));i.setState("selectedId",null==e?void 0:e.id)}else i.setState("selectedId",o.id)})))),Mt(i,(()=>At(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return At(o,["renderedItems"],(e=>{const n=e.renderedItems,r=n.some((e=>!e.tabId));r&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&o.renderItem(M(I({},e),{tabId:r.id}))}))}))})))),M(I(I({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function ZL(e={}){const[t,n]=Ht(XL,e);return function(e,t,n){$t(e=nl(e,t,n),n,"selectedId","setSelectedId"),$t(e,n,"selectOnMove");const[r,o]=Ht((()=>e.panels),{});return ke(o,[e,o]),(0,c.useMemo)((()=>w(y({},e),{panels:r})),[e,r])}(t,n,e)}var JL=$e([kt],[jt]),QL=(JL.useContext,JL.useScopedContext),eF=JL.useProviderContext,tF=(JL.ContextProvider,JL.ScopedContextProvider),nF=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=eF();L(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Pe(r,(e=>(0,ze.jsx)(tF,{value:n,children:e})),[n]),r=y({role:"tablist","aria-orientation":i},r),r=il(y({store:n},r))})),rF=Le((e=>Be("div",nF(e))));var oF=Ve((e=>{var t=e,{store:n,accessibleWhenDisabled:r=!0,getItem:o}=t,i=_(t,["store","accessibleWhenDisabled","getItem"]);const s=QL();L(n=n||s,!1);const a=Se(),l=i.id||a,u=B(i),d=(0,c.useCallback)((e=>{const t=w(y({},e),{dimmed:u});return o?o(t):t}),[u,o]),p=i.onClick,h=we((e=>{null==p||p(e),e.defaultPrevented||null==n||n.setSelectedId(l)})),f=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===l)))?void 0:t.id})),m=n.useState((e=>!!l&&e.selectedId===l));return i=w(y({id:l,role:"tab","aria-selected":m,"aria-controls":f||void 0},i),{onClick:h}),i=Gt(w(y({store:n},i),{accessibleWhenDisabled:r,getItem:d,shouldRegisterItem:!!a&&i.shouldRegisterItem}))})),iF=Fe((e=>Be("button",oF(e))));var sF=Ve((e=>{var t=e,{store:n,tabId:r,getItem:o}=t,i=_(t,["store","tabId","getItem"]);const s=eF();L(n=n||s,!1);const a=(0,c.useRef)(null),l=Se(i.id),[u,d]=(0,c.useState)(!1);(0,c.useEffect)((()=>{const e=a.current;if(!e)return;const t=Ke(e);d(!!t.length)}),[]);const p=(0,c.useCallback)((e=>{const t=w(y({},e),{id:l||e.id,tabId:r});return o?o(t):t}),[l,r,o]);i=Pe(i,(e=>(0,ze.jsx)(tF,{value:n,children:e})),[n]);const h=n.panels.useState((()=>{var e;return r||(null==(e=null==n?void 0:n.panels.item(l))?void 0:e.tabId)})),f=n.useState((e=>!!h&&e.selectedId===h));i=w(y({id:l,role:"tabpanel","aria-labelledby":h||void 0},i),{ref:_e(a,i.ref)});const m=Xt({open:f});return i=ct(y({focusable:!u},i)),i=qn(y({store:m},i)),i=vt(w(y({store:n.panels},i),{getItem:p}))})),aF=Le((e=>Be("div",sF(e))));const lF=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},cF=(0,Uo.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:a="is-active",onSelect:c},u)=>{const d=(0,l.useInstanceId)(cF,"tab-panel"),p=(0,Uo.useCallback)((e=>{if(void 0!==e)return`${d}-${e}`}),[d]),h=ZL({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>p(t.name)===e));if(t?.disabled||t===g)return;const r=lF(e);void 0!==r&&c?.(r)},orientation:i,selectOnMove:r,defaultSelectedId:p(o)}),f=lF(h.useState("selectedId")),m=(0,Uo.useCallback)((e=>{h.setState("selectedId",p(e))}),[p,h]),g=n.find((({name:e})=>e===f)),v=(0,l.usePrevious)(f);return(0,Uo.useEffect)((()=>{v!==f&&f===o&&f&&c?.(f)}),[f,o,c,v]),(0,Uo.useLayoutEffect)((()=>{if(g)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)m(e.name);else{const e=n.find((e=>!e.disabled));e&&m(e.name)}}),[n,g,o,d,m]),(0,Uo.useEffect)((()=>{if(!g?.disabled)return;const e=n.find((e=>!e.disabled));e&&m(e.name)}),[n,g?.disabled,m,d]),(0,ze.jsxs)("div",{className:e,ref:u,children:[(0,ze.jsx)(rF,{store:h,className:"components-tab-panel__tabs",children:n.map((e=>(0,ze.jsx)(iF,{id:p(e.name),className:s("components-tab-panel__tabs-item",e.className,{[a]:e.name===f}),disabled:e.disabled,"aria-controls":`${p(e.name)}-view`,render:(0,ze.jsx)(Hx,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon}),children:!e.icon&&e.title},e.name)))}),g&&(0,ze.jsx)(aF,{id:`${p(g.name)}-view`,store:h,tabId:p(g.name),className:"components-tab-panel__tab-content",children:t(g)})]})})),uF=cF;const dF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:r=!1,label:o,hideLabelFromVision:i,value:a,help:c,id:u,className:d,onChange:p,type:h="text",...f}=e,m=(0,l.useInstanceId)(dF,"inspector-text-control",u);return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,id:m,help:c,className:d,children:(0,ze.jsx)("input",{className:s("components-text-control__input",{"is-next-40px-default-size":r}),type:h,id:m,value:a,onChange:e=>p(e.target.value),"aria-describedby":c?m+"__help":void 0,ref:t,...f})})})),pF=dF,hF=Ea("box-shadow:0 0 0 transparent;border-radius:",bv.radiusBlockUi,";border:",bv.borderWidth," solid ",Na.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),fF=Ea("border-color:",Na.theme.accent,";box-shadow:0 0 0 calc( ",bv.borderWidthFocus," - ",bv.borderWidth," ) ",Na.theme.accent,";outline:2px solid transparent;",""),mF={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},gF=Ea("display:block;font-family:",_x("default.fontFamily"),";padding:6px 8px;",hF,";font-size:",_x("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${mF["small"]})`,"{font-size:",_x("default.fontSize"),";line-height:normal;}&:focus{",fF,";}&::-webkit-input-placeholder{color:",Na.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Na.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Na.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Na.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Na.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Na.ui.lightGrayPlaceholder,";}}","");const vF=ba("textarea",{target:"e1w5nnrk0"})("width:100%;",gF,";");const bF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:a,rows:c=4,className:u,...d}=e,p=`inspector-textarea-control-${(0,l.useInstanceId)(bF)}`;return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:u,children:(0,ze.jsx)(vF,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>a(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,ref:t,...d})})})),xF=bF,yF=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,ze.jsx)(ze.Fragment,{children:t});const o=new RegExp(`(${wy(r)})`,"gi");return(0,Uo.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,ze.jsx)("mark",{})})},wF=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})});const _F=function(e){const{children:t}=e;return(0,ze.jsxs)("div",{className:"components-tip",children:[(0,ze.jsx)(Y_,{icon:wF}),(0,ze.jsx)("p",{children:t})]})};const SF=(0,Uo.forwardRef)((function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:a},c){const u=`inspector-toggle-control-${(0,l.useInstanceId)(e)}`,d=na()("components-toggle-control",i,!t&&Ea({marginBottom:ng(3)},"",""));let p,h;return o&&("function"==typeof o?void 0!==r&&(h=o(r)):h=o,h&&(p=u+"__help")),(0,ze.jsx)(Dx,{id:u,help:h,className:d,__nextHasNoMarginBottom:!0,children:(0,ze.jsxs)(ry,{justify:"flex-start",spacing:3,children:[(0,ze.jsx)(yD,{id:u,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":p,disabled:a,ref:c}),(0,ze.jsx)(hg,{as:"label",htmlFor:u,className:"components-toggle-control__label",children:n})]})})}));var CF=$e([kt],[jt]),kF=CF.useContext,jF=(CF.useScopedContext,CF.useProviderContext),EF=(CF.ContextProvider,CF.ScopedContextProvider),PF=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=kF();return r=Gt(y({store:n=n||o},r))})),TF=Fe((e=>Be("button",PF(e))));const IF=(0,Uo.createContext)(void 0);const MF=(0,Uo.forwardRef)((function({children:e,as:t,...n},r){const o=(0,Uo.useContext)(IF),i="function"==typeof e;if(!i&&!t)return null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,ze.jsx)(t,{...s,children:e}):i?e(s):null;const a=i?e:t&&(0,ze.jsx)(t,{children:e});return(0,ze.jsx)(TF,{...s,store:o,render:a})})),RF=({children:e,className:t})=>(0,ze.jsx)("div",{className:t,children:e});const NF=(0,Uo.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:a,...l},c){return(0,Uo.useContext)(IF)?(0,ze.jsx)(MF,{className:s("components-toolbar-button",t),...r,...l,ref:c,children:t=>(0,ze.jsx)(Hx,{label:a,isPressed:o,disabled:i,...t,children:e})}):(0,ze.jsx)(RF,{className:n,children:(0,ze.jsx)(Hx,{ref:c,icon:l.icon,label:a,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:e=>{e.stopPropagation(),l.onClick&&l.onClick(e)},className:s("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...l,children:e})})})),AF=({className:e,children:t,...n})=>(0,ze.jsx)("div",{className:e,...n,children:t});const DF=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,ze.jsx)(wT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Uo.useContext)(IF)?(0,ze.jsx)(MF,{...t,children:r}):r(t)};const OF=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const a=(0,Uo.useContext)(IF);if(!(e&&e.length||t))return null;const l=s(a?"components-toolbar-group":"components-toolbar",n);let c;var u;return u=e,c=Array.isArray(u)&&Array.isArray(u[0])?e:[e],r?(0,ze.jsx)(DF,{label:o,controls:c,className:l,children:t,...i}):(0,ze.jsxs)(AF,{className:l,...i,children:[c?.flatMap(((e,t)=>e.map(((e,n)=>(0,ze.jsx)(NF,{containerClassName:t>0&&0===n?"has-left-divider":void 0,...e},[t,n].join()))))),t]})};function zF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return tl(M(I({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}function LF(e={}){const[t,n]=Ht(zF,e);return function(e,t,n){return nl(e,t,n)}(t,n,e)}var FF=Ve((e=>{var t=e,{store:n,orientation:r,virtualFocus:o,focusLoop:i,rtl:s}=t,a=_(t,["store","orientation","virtualFocus","focusLoop","rtl"]);const l=jF(),c=LF({store:n=n||l,orientation:r,virtualFocus:o,focusLoop:i,rtl:s}),u=c.useState((e=>"both"===e.orientation?void 0:e.orientation));return a=Pe(a,(e=>(0,ze.jsx)(EF,{value:c,children:e})),[c]),a=y({role:"toolbar","aria-orientation":u},a),a=il(y({store:c},a))})),BF=Le((e=>Be("div",FF(e))));const VF=(0,Uo.forwardRef)((function({label:e,...t},n){const r=LF({focusLoop:!0,rtl:(0,a.isRTL)()});return(0,ze.jsx)(IF.Provider,{value:r,children:(0,ze.jsx)(BF,{ref:n,"aria-label":e,store:r,...t})})}));const $F=(0,Uo.forwardRef)((function({className:e,label:t,variant:n,...r},o){const i=void 0!==n,a=(0,Uo.useMemo)((()=>i?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}}),[i]);if(!t){Ko()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=r;return(0,ze.jsx)(OF,{isCollapsed:!1,...n,className:e})}const l=s("components-accessible-toolbar",e,n&&`is-${n}`);return(0,ze.jsx)(hi,{value:a,children:(0,ze.jsx)(VF,{className:l,label:t,ref:o,...r})})}));const HF=(0,Uo.forwardRef)((function(e,t){return(0,Uo.useContext)(IF)?(0,ze.jsx)(MF,{ref:t,...e.toggleProps,children:t=>(0,ze.jsx)(wT,{...e,popoverProps:{...e.popoverProps},toggleProps:t})}):(0,ze.jsx)(wT,{...e})}));const WF={columns:e=>Ea("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Ea("column-gap:",ng(2),";row-gap:",ng(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},UF={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},GF=Ea(WF.item.fullWidth," gap:",ng(2),";.components-dropdown-menu{margin:",ng(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",ng(6),";}",""),KF={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},YF=Ea(WF.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Cx,"{margin-bottom:0;",jx,":last-child{margin-bottom:0;}}",Mx,"{margin-bottom:0;}&& ",tb,"{label{line-height:1.4em;}}",""),qF={name:"eivff4",styles:"display:none"},XF={name:"16gsvie",styles:"min-width:200px"},ZF=ba("span",{target:"ews648u0"})("color:",Na.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",yg({marginLeft:ng(3)})," text-transform:uppercase;"),JF=Ea("color:",Na.gray[900],";&&[aria-disabled='true']{color:",Na.gray[700],";opacity:1;&:hover{color:",Na.gray[700],";}",ZF,"{opacity:0.3;}}",""),QF=()=>{},eB=(0,Uo.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:QF,deregisterPanelItem:QF,flagItemCustomization:QF,registerResetAllFilter:QF,deregisterResetAllFilter:QF,areAllOptionalControlsHidden:!0}),tB=()=>(0,Uo.useContext)(eB);const nB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,ze.jsx)(ZF,{"aria-hidden":!0,children:(0,a.__)("Reset")});return(0,ze.jsx)(ze.Fragment,{children:t.map((([t,o])=>o?(0,ze.jsx)(FD,{className:e,role:"menuitem",label:(0,a.sprintf)((0,a.__)("Reset %s"),t),onClick:()=>{n(t),(0,gy.speak)((0,a.sprintf)((0,a.__)("%s reset to default"),t),"assertive")},suffix:r,children:t},t):(0,ze.jsx)(FD,{icon:YC,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0,children:t},t)))})},rB=({items:e,toggleItem:t})=>e.length?(0,ze.jsx)(ze.Fragment,{children:e.map((([e,n])=>{const r=n?(0,a.sprintf)((0,a.__)("Hide and reset %s"),e):(0,a.sprintf)((0,a.__)("Show %s"),e);return(0,ze.jsx)(FD,{icon:n?YC:null,isSelected:n,label:r,onClick:()=>{n?(0,gy.speak)((0,a.sprintf)((0,a.__)("%s hidden and reset to default"),e),"assertive"):(0,gy.speak)((0,a.sprintf)((0,a.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox",children:e},e)}))}):null,oB=oa(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:c,menuItems:u,resetAll:d,toggleItem:p,dropdownMenuProps:h,...f}=function(e){const{className:t,headingLevel:n=2,...r}=ra(e,"ToolsPanelHeader"),o=na(),i=(0,Uo.useMemo)((()=>o(GF,t)),[t,o]),s=(0,Uo.useMemo)((()=>o(XF)),[o]),a=(0,Uo.useMemo)((()=>o(KF)),[o]),l=(0,Uo.useMemo)((()=>o(JF)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=tB();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:s,hasMenuItems:u,headingClassName:a,headingLevel:n,menuItems:c,className:i}}(e);if(!c)return null;const m=Object.entries(u?.default||{}),g=Object.entries(u?.optional||{}),v=n?Cg:pP,b=(0,a.sprintf)((0,a._x)("%s options","Button label to reveal tool panel options"),c),x=n?(0,a.__)("All options are currently hidden"):void 0,y=[...m,...g].some((([,e])=>e));return(0,ze.jsxs)(ry,{...f,ref:t,children:[(0,ze.jsx)(ok,{level:l,className:s,children:c}),i&&(0,ze.jsx)(wT,{...h,icon:v,label:b,menuProps:{className:o},toggleProps:{size:"small",describedBy:x},children:()=>(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsxs)(zD,{label:c,children:[(0,ze.jsx)(nB,{items:m,toggleItem:p,itemClassName:r}),(0,ze.jsx)(rB,{items:g,toggleItem:p})]}),(0,ze.jsx)(zD,{children:(0,ze.jsx)(FD,{"aria-disabled":!y,variant:"tertiary",onClick:()=>{y&&(d(),(0,gy.speak)((0,a.__)("All options reset"),"assertive"))},children:(0,a.__)("Reset all")})})]})})]})}),"ToolsPanelHeader"),iB=oB,sB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const s=r?"default":"optional",a=n?.[s]?.[i],l=a||e();o[s][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},aB=e=>e&&0===Object.keys(e).length;function lB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l,...c}=ra(e,"ToolsPanel"),u=(0,Uo.useRef)(!1),d=u.current;(0,Uo.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[p,h]=(0,Uo.useState)([]),[f,m]=(0,Uo.useState)([]),[g,v]=(0,Uo.useState)([]),b=(0,Uo.useCallback)((e=>{h((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),m((t=>t.includes(e.label)?t:[...t,e.label]))}),[h,m]),x=(0,Uo.useCallback)((e=>{h((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[h]),y=(0,Uo.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Uo.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[_,S]=(0,Uo.useState)({default:{},optional:{}});(0,Uo.useEffect)((()=>{S((e=>sB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:f})))}),[p,S,f]);const C=(0,Uo.useCallback)(((e,t,n="default")=>{S((r=>({...r,[n]:{...r[n],[t]:e}})))}),[S]),[k,j]=(0,Uo.useState)(!1);(0,Uo.useEffect)((()=>{if(aB(_?.default)&&!aB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));j(e)}}),[_,j]);const E=na(),P=(0,Uo.useMemo)((()=>{const e=i&&Ea(">div:not( :first-of-type ){display:grid;",WF.columns(2)," ",WF.spacing," ",WF.item.fullWidth,";}","");const n=aB(_?.default)&&k&&UF;return E((e=>Ea(WF.columns(e)," ",WF.spacing," border-top:",bv.borderWidth," solid ",Na.gray[300],";margin-top:-1px;padding:",ng(4),";",""))(2),e,n,t)}),[k,t,E,i,_]),T=(0,Uo.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};S(r)}),[_,p,S]),I=(0,Uo.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=sB({panelItems:p,menuItemOrder:f,shouldReset:!0});S(e)}),[p,g,r,S,f]),M=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},R=M(p),N=M([...p].reverse());return{...c,headingLevel:n,panelContext:(0,Uo.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:x,deregisterResetAllFilter:w,firstDisplayedItem:R,flagItemCustomization:C,hasMenuItems:!!p.length,isResetting:u.current,lastDisplayedItem:N,menuItems:_,panelId:o,registerPanelItem:b,registerResetAllFilter:y,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l})),[k,x,w,R,C,N,_,o,p,y,b,s,a,l]),resetAllItems:I,toggleItem:T,className:P}}const cB=oa(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:a,dropdownMenuProps:l,...c}=lB(e);return(0,ze.jsx)(Jk,{...c,columns:2,ref:t,children:(0,ze.jsxs)(eB.Provider,{value:o,children:[(0,ze.jsx)(iB,{label:r,resetAll:i,toggleItem:s,headingLevel:a,dropdownMenuProps:l}),n]})})}),"ToolsPanel"),uB=()=>{};const dB=oa(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=uB,onDeselect:a,onSelect:c,...u}=ra(e,"ToolsPanelItem"),{panelId:d,menuItems:p,registerResetAllFilter:h,deregisterResetAllFilter:f,registerPanelItem:m,deregisterPanelItem:g,flagItemCustomization:v,isResetting:b,shouldRenderPlaceholderItems:x,firstDisplayedItem:y,lastDisplayedItem:w,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:S}=tB(),C=(0,Uo.useCallback)(n,[i]),k=(0,Uo.useCallback)(s,[i]),j=(0,l.usePrevious)(d),E=d===i||null===d;(0,Uo.useLayoutEffect)((()=>(E&&null!==j&&m({hasValue:C,isShownByDefault:r,label:o,panelId:i}),()=>{(null===j&&d||d===i)&&g(o)})),[d,E,r,o,C,i,j,m,g]),(0,Uo.useEffect)((()=>(E&&h(k),()=>{E&&f(k)})),[h,f,k,E]);const P=r?"default":"optional",T=p?.[P]?.[o],I=(0,l.usePrevious)(T),M=void 0!==p?.[P]?.[o],R=n();(0,Uo.useEffect)((()=>{(r||R)&&v(R,o,P)}),[R,P,o,v,r]),(0,Uo.useEffect)((()=>{M&&!b&&E&&(!T||R||I||c?.(),!T&&R&&I&&a?.())}),[E,T,M,b,R,I,c,a]);const N=r?void 0!==p?.[P]?.[o]:T,A=na(),D=(0,Uo.useMemo)((()=>{const e=x&&!N;return A(YF,e&&qF,!e&&t,y===o&&_,w===o&&S)}),[N,x,t,A,y,w,_,S,o]);return{...u,isShown:N,shouldRenderPlaceholder:x,className:D}}(e);return r?(0,ze.jsx)(ya,{...i,ref:t,children:n}):o?(0,ze.jsx)(ya,{...i,ref:t}):null}),"ToolsPanelItem"),pB=dB,hB=(0,Uo.createContext)(void 0),fB=hB.Provider;function mB({children:e}){const[t,n]=(0,Uo.useState)(),r=(0,Uo.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,ze.jsx)(fB,{value:r,children:e})}function gB(e){return uT.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const vB=(0,Uo.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const a=(0,Uo.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:s,altKey:a}=e;if(i||s||a||![vy.UP,vy.DOWN,vy.LEFT,vy.RIGHT,vy.HOME,vy.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=gB(u),p=d.indexOf(l),h=0===p,f=h&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===vy.RIGHT;if([vy.LEFT,vy.RIGHT].includes(o)){let r;if(r=o===vy.LEFT?Math.max(0,p-1):Math.min(p+1,d.length-1),h){if(o===vy.LEFT){var m;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(m=u?.getAttribute("aria-level"))&&void 0!==m?m:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}gB(o)?.[0]?.focus()}if(o===vy.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=gB(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(f)return;d[r].focus(),e.preventDefault()}else if([vy.UP,vy.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===vy.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const s=gB(t[i]);if(!s||!s.length)return void e.preventDefault();s[Math.min(p,s.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([vy.HOME,vy.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===vy.HOME?0:t.length-1,i===n)return void e.preventDefault();const s=gB(t[i]);if(!s||!s.length)return void e.preventDefault();s[Math.min(p,s.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,ze.jsx)(mB,{children:(0,ze.jsx)("div",{role:"application","aria-label":o,children:(0,ze.jsx)("table",{...i,role:"treegrid",onKeyDown:a,ref:s,children:(0,ze.jsx)("tbody",{children:e})})})})})),bB=vB;const xB=(0,Uo.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,ze.jsx)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o,children:e})})),yB=(0,Uo.forwardRef)((function({children:e,as:t,...n},r){const o=(0,Uo.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:a}=(0,Uo.useContext)(hB);let l;s&&(l=s===("current"in i?i.current:void 0)?0:-1);const c={ref:i,tabIndex:l,onFocus:e=>a?.(e.target),...n};return"function"==typeof e?e(c):t?(0,ze.jsx)(t,{...c,children:e}):null}));const wB=(0,Uo.forwardRef)((function({children:e,...t},n){return(0,ze.jsx)(yB,{ref:n,...t,children:e})}));const _B=(0,Uo.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,ze.jsx)("td",{...n,role:"gridcell",children:t?(0,ze.jsx)(ze.Fragment,{children:e}):(0,ze.jsx)(wB,{ref:r,children:e})})}));function SB(e){e.stopPropagation()}const CB=(0,Uo.forwardRef)(((e,t)=>(Ko()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,ze.jsx)("div",{...e,ref:t,onMouseDown:SB}))));function kB(e){const t=(0,Uo.useContext)(Dy);return(0,l.useObservableValue)(t.fills,e)}const jB=ba("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>Ea({marginInlineStart:e},"","")),";}",(({zIndex:e})=>Ea({zIndex:e},"","")),";");var EB={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const PB=ba("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",jB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?EB:void 0),";}");const TB=oa((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...a}=ra(e,"ZStack"),l=ty(n),c=l.length-1,u=l.map(((e,t)=>{const n=i?c-t:t,r=o?s*t:s,a=(0,Uo.isValidElement)(e)?e.key:t;return(0,ze.jsx)(jB,{offsetAmount:r,zIndex:n,children:e},a)}));return(0,ze.jsx)(PB,{...a,className:r,isLayered:o,ref:t,children:u})}),"ZStack"),IB=TB,MB={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function RB(e=MB){const t=(0,Uo.useRef)(null),[n,r]=(0,Uo.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const s=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),a=s?o.indexOf(s):-1;if(-1!==a){let t=a+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,l.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,l.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>vy.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>vy.isKeyboardEvent[e](t,n)))&&o(1)}}}const NB=(0,l.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,ze.jsx)("div",{...RB(t),children:(0,ze.jsx)(e,{...n})})),"navigateRegions"),AB=(0,l.createHigherOrderComponent)((e=>function(t){const n=(0,l.useConstrainedTabbing)();return(0,ze.jsx)("div",{ref:n,tabIndex:-1,children:(0,ze.jsx)(e,{...t})})}),"withConstrainedTabbing"),DB=e=>(0,l.createHigherOrderComponent)((t=>class extends Uo.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);ai()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,ze.jsx)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,ze.jsxs)("div",{ref:this.bindRef,children:[" ",e," "]})}}),"withFallbackStyles"),OB=window.wp.hooks,zB=16;function LB(e){return(0,l.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends Uo.Component{constructor(n){super(n),void 0===r&&(r=(0,OB.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,OB.addAction)("hookRemoved",n,s),(0,OB.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,OB.removeAction)("hookRemoved",n),(0,OB.removeAction)("hookAdded",n))}render(){return(0,ze.jsx)(r,{...this.props})}}o.instances=[];const i=(0,l.debounce)((()=>{r=(0,OB.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),zB);function s(t){t===e&&i()}return o}),"withFilters")}const FB=(0,l.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,l.useFocusReturn)(e);return(0,ze.jsx)("div",{ref:r,children:(0,ze.jsx)(t,{...n})})};if((n=e)instanceof Uo.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn"),BB=({children:e})=>(Ko()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e),VB=(0,l.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,Uo.useState)([]),s=(0,Uo.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:Xy()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),a={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,ze.jsx)(bz,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,ze.jsx)(e,{...a,ref:r}):(0,ze.jsx)(e,{...a})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,Uo.forwardRef)(t)):t}),"withNotices");var $B=$e([kt,yn],[jt,wn]),HB=$B.useContext,WB=$B.useScopedContext,UB=$B.useProviderContext,GB=$B.ContextProvider,KB=$B.ScopedContextProvider,YB=(0,c.createContext)(void 0),qB=(0,c.createContext)(!1),XB=(0,ze.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5pt",viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,ze.jsx)("polyline",{points:"4,8 7,12 12,4"})});var ZB=Ve((e=>{var t=e,{store:n,checked:r}=t,o=_(t,["store","checked"]);const i=(0,c.useContext)(qB),s=function(e){return e.checked?e.children||XB:"function"==typeof e.children?e.children:null}({checked:r=null!=r?r:i,children:o.children});return o=w(y({"aria-hidden":!0},o),{children:s,style:y({width:"1em",height:"1em",pointerEvents:"none"},o.style)})}));Le((e=>Be("span",ZB(e))));var JB=Ve((e=>{var t=e,{store:n,checked:r}=t,o=_(t,["store","checked"]);const i=(0,c.useContext)(YB);return r=null!=r?r:i,o=ZB(w(y({},o),{checked:r}))})),QB=Le((e=>Be("span",JB(e))));var eV=$e([kt],[jt]),tV=eV.useContext,nV=eV.useScopedContext,rV=(eV.useProviderContext,eV.ContextProvider,eV.ScopedContextProvider,(0,c.createContext)(void 0),$e([gn,kt],[vn,jt])),oV=(rV.useContext,rV.useScopedContext,rV.useProviderContext);rV.ContextProvider,rV.ScopedContextProvider,(0,c.createContext)(void 0),(0,c.createContext)(!1);function iV(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=R(t,["combobox","parent","menubar"]);const s=!!o&&!r,a=zt(i.store,function(e,...t){if(e)return Tt(e,"pick")(...t)}(r,["values"]),Ot(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=a.getState(),c=tl(M(I({},i),{store:a,orientation:V(i.orientation,l.orientation,"vertical")})),u=tn(M(I({},i),{store:a,placement:V(i.placement,l.placement,"bottom-start"),timeout:V(i.timeout,l.timeout,s?0:150),hideTimeout:V(i.hideTimeout,l.hideTimeout,0)})),d=It(M(I(I({},c.getState()),u.getState()),{initialFocus:V(l.initialFocus,"container"),values:V(i.values,l.values,i.defaultValues,{})}),c,u,a);return Mt(d,(()=>At(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Mt(d,(()=>At(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),M(I(I(I({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=A(t,r);return o===r?n:M(I({},n),{[e]:void 0!==o&&o})})))}})}function sV(e={}){const t=HB(),n=tV(),r=oV();e=w(y({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=Ht(iV,e);return function(e,t,n){return ke(t,[n.combobox,n.parent,n.menubar]),$t(e=en(e=nl(e,t,n),t,n),n,"values","setValues"),Object.assign(e,{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}var aV=Ve((e=>{const t=(0,c.useRef)(null),n=Ce(t,e.as||"button"),[r,o]=(0,c.useState)((()=>!!n&&X({tagName:n,type:e.type})));return(0,c.useEffect)((()=>{t.current&&o(X(t.current))}),[]),e=w(y({role:r||"a"===n?void 0:"button"},e),{ref:_e(t,e.ref)}),e=pt(e)}));Le((e=>Be("button",aV(e))));var lV=Symbol("disclosure"),cV=Ve((e=>{var t=e,{store:n,toggleOnClick:r=!0}=t,o=_(t,["store","toggleOnClick"]);const i=an();L(n=n||i,!1);const s=(0,c.useRef)(null),[a,l]=(0,c.useState)(!1),u=n.useState("disclosureElement"),d=n.useState("open");(0,c.useEffect)((()=>{let e=u===s.current;(null==u?void 0:u.isConnected)||(null==n||n.setDisclosureElement(s.current),e=!0),l(d&&e)}),[u,n,d]);const p=o.onClick,h=Ee(r),[f,m]=Ie(o,lV,!0),g=we((e=>{null==p||p(e),e.defaultPrevented||f||h(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),v=n.useState("contentElement");return o=w(y(y({"aria-expanded":a,"aria-controls":null==v?void 0:v.id},m),o),{ref:_e(s,o.ref),onClick:g}),o=aV(o)}));Le((e=>Be("button",cV(e))));var uV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=cn();L(n=n||o,!1);const i=n.useState("contentElement");return r=y({"aria-haspopup":ne(i,"dialog")},r),r=cV(y({store:n},r))}));Le((e=>Be("button",uV(e))));var dV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=mn();return n=n||o,r=w(y({},r),{ref:_e(null==n?void 0:n.setAnchorElement,r.ref)})}));Le((e=>Be("div",dV(e))));var pV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=mn();L(n=n||o,!1);const i=r.onClick,s=we((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=Pe(r,(e=>(0,ze.jsx)(vn,{value:n,children:e})),[n]),r=w(y({},r),{onClick:s}),r=dV(y({store:n},r)),r=uV(y({store:n},r))}));Le((e=>Be("button",pV(e))));var hV="";function fV(){hV=""}function mV(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function gV(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&mV(r,t)?hV!==t&&mV(r,hV)?e:(hV=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[bt]:[],...e.slice(0,r)]}(e.filter((e=>mV(e,hV))),n).filter((e=>e.id!==n))):e}var vV=Ve((e=>{var t=e,{store:n,typeahead:r=!0}=t,o=_(t,["store","typeahead"]);const i=St();L(n=n||i,!1);const s=o.onKeyDownCapture,a=(0,c.useRef)(0),l=we((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{items:t,activeId:o}=n.getState();if(!function(e){const t=e.target;return(!t||!te(t))&&(!(" "!==e.key||!hV.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return fV();let i=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(ce(e))return!0;const n=e.target;if(!n)return!1;const r=t.some((e=>e.element===n));return r}(e,i))return fV();e.preventDefault(),window.clearTimeout(a.current),a.current=window.setTimeout((()=>{hV=""}),500);const l=e.key.toLowerCase();hV+=l,i=gV(i,l,o);const c=i.find((e=>mV(e,hV)));c?n.move(c.id):fV()}));return o=w(y({},o),{onKeyDownCapture:l})}));Le((e=>Be("div",vV(e))));function bV(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var xV=Ve((e=>{var t=e,{store:n,focusable:r,accessibleWhenDisabled:o,showOnHover:i}=t,s=_(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const a=UB();L(n=n||a,!1);const l=(0,c.useRef)(null),u=n.parent,d=n.menubar,p=!!u,h=!!d&&!p,f=B(s),m=()=>{const e=l.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},g=s.onFocus,v=we((e=>{if(null==g||g(e),f)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!d)return;if(!h)return;const{items:t}=d.getState();bV(t,e.currentTarget)&&m()})),b=n.useState((e=>e.placement.split("-")[0])),x=s.onKeyDown,S=we((e=>{if(null==x||x(e),f)return;if(e.defaultPrevented)return;const t=function(e,t){return{ArrowDown:("bottom"===t||"top"===t)&&"first",ArrowUp:("bottom"===t||"top"===t)&&"last",ArrowRight:"right"===t&&"first",ArrowLeft:"left"===t&&"first"}[e.key]}(e,b);t&&(e.preventDefault(),m(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),C=s.onClick,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(p&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),p&&m()}));s=Pe(s,(e=>(0,ze.jsx)(GB,{value:n,children:e})),[n]),p&&(s=w(y({},s),{render:(0,ze.jsx)(on.div,{render:s.render})}));const j=Se(s.id),E=Vt((null==u?void 0:u.combobox)||u,"contentElement"),P=p||h?re(E,"menuitem"):void 0,T=n.useState("contentElement");return s=w(y({id:j,role:P,"aria-haspopup":ne(T,"menu")},s),{ref:_e(l,s.ref),onFocus:v,onKeyDown:S,onClick:k}),s=_n(w(y({store:n,focusable:r,accessibleWhenDisabled:o},s),{showOnHover:e=>{if(!(()=>{if("function"==typeof i)return i(e);if(null!=i)return i;if(p)return!0;if(!d)return!1;const{items:t}=d.getState();return h&&bV(t)})())return!1;const t=h?d:u;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),s=pV(y({store:n,toggleOnClick:!p,focusable:r,accessibleWhenDisabled:o},s)),s=vV(y({store:n,typeahead:h},s))})),yV=Le((e=>Be("button",xV(e))));const wV=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var _V=Ve((e=>{var t=e,{store:n,alwaysVisible:r,composite:o}=t,i=_(t,["store","alwaysVisible","composite"]);const s=UB();L(n=n||s,!1);const a=n.parent,l=n.menubar,u=!!a,d=Se(i.id),p=i.onKeyDown,h=n.useState((e=>e.placement.split("-")[0])),f=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),m="vertical"!==f,g=Vt(l,(e=>!!e&&"vertical"!==e.orientation)),v=we((e=>{if(null==p||p(e),!e.defaultPrevented){if(u||l&&!m){const t={ArrowRight:()=>"left"===h&&!m,ArrowLeft:()=>"right"===h&&!m,ArrowUp:()=>"bottom"===h&&m,ArrowDown:()=>"top"===h&&m}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(l){const t={ArrowRight:()=>{if(g)return l.next()},ArrowLeft:()=>{if(g)return l.previous()},ArrowDown:()=>{if(!g)return l.next()},ArrowUp:()=>{if(!g)return l.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),l.move(n))}}}));i=Pe(i,(e=>(0,ze.jsx)(KB,{value:n,children:e})),[n]);const b=function(e){var t=e,{store:n}=t,r=_(t,["store"]);const[o,i]=(0,c.useState)(void 0),s=r["aria-label"],a=Vt(n,"disclosureElement"),l=Vt(n,"contentElement");return(0,c.useEffect)((()=>{const e=a;e&&l&&(s||l.hasAttribute("aria-label")?i(void 0):e.id&&i(e.id))}),[s,a,l]),o}(y({store:n},i)),x=Yn(n.useState("mounted"),i.hidden,r),S=x?w(y({},i.style),{display:"none"}):i.style;i=w(y({id:d,"aria-labelledby":b,hidden:x},i),{ref:_e(d?n.setContentElement:null,i.ref),style:S,onKeyDown:v});const C=!!n.combobox;return(o=null!=o?o:!C)&&(i=y({role:"menu","aria-orientation":f},i)),i=il(y({store:n,composite:o},i)),i=vV(y({store:n,typeahead:!C},i))}));Le((e=>Be("div",_V(e))));var SV=Ve((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:a,alwaysVisible:l}=t,u=_(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=UB();L(n=n||d,!1);const p=(0,c.useRef)(null),h=n.parent,f=n.menubar,m=!!h,g=!!f&&!m;u=w(y({},u),{ref:_e(p,u.ref)});const v=_V(y({store:n,alwaysVisible:l},u)),{"aria-labelledby":b}=v;u=_(v,["aria-labelledby"]);const[x,S]=(0,c.useState)(),C=n.useState("autoFocusOnShow"),k=n.useState("initialFocus"),j=n.useState("baseElement"),E=n.useState("renderedItems");(0,c.useEffect)((()=>{let e=!1;return S((t=>{var n,r,o;if(e)return;if(!C)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const i=(0,c.createRef)();switch(k){case"first":i.current=(null==(r=E.find((e=>!e.disabled&&e.element)))?void 0:r.element)||null;break;case"last":i.current=(null==(o=[...E].reverse().find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;default:i.current=j}return i})),()=>{e=!0}}),[n,C,k,E,j]);const P=!m&&r,T=!!s,I=!!x||!!u.initialFocus||!!P,M=Vt(n.combobox||n,"contentElement"),R=Vt((null==h?void 0:h.combobox)||h,"contentElement"),N=(0,c.useMemo)((()=>{if(!R)return;if(!M)return;const e=M.getAttribute("role"),t=R.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?R:void 0}),[M,R]);return void 0!==N&&(u=y({preserveTabOrderAnchor:N},u)),u=$o(w(y({store:n,alwaysVisible:l,initialFocus:x,autoFocusOnShow:T?I&&s:C||!!P},u),{hideOnEscape:e=>!F(i,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside:e=>{const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof a?a(e):null!=a?a:m||g&&(!t||!Je(t)))&&(!!e.defaultPrevented||(!m||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Je(t)||(requestAnimationFrame((()=>{Je(t)||null==n||n.hide()})),!1)))))},modal:P,portal:o,backdrop:!m&&u.backdrop})),u=y({"aria-labelledby":b},u)})),CV=xr(Le((e=>Be("div",SV(e)))),UB);function kV(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var jV=Symbol("composite-hover");var EV=Ve((e=>{var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:o=!!r}=t,i=_(t,["store","focusOnHover","blurOnHoverEnd"]);const s=St();L(n=n||s,!1);const a=Me(),l=i.onMouseMove,u=Ee(r),d=we((e=>{if(null==l||l(e),!e.defaultPrevented&&a()&&u(e)){if(!Je(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Ze(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),p=i.onMouseLeave,h=Ee(o),f=we((e=>{var t;null==p||p(e),e.defaultPrevented||a()&&(function(e){const t=kV(e);return!!t&&Y(e.currentTarget,t)}(e)||function(e){let t=kV(e);if(!t)return!1;do{if(D(t,jV)&&t[jV])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&h(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),m=(0,c.useCallback)((e=>{e&&(e[jV]=!0)}),[]);return i=w(y({},i),{ref:_e(m,i.ref),onMouseMove:d,onMouseLeave:f})}));Fe((e=>Be("div",EV(e))));var PV=Ve((e=>{var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:s}=t,a=_(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=WB(!0),c=nV();L(n=n||l||c,!1);const u=a.onClick,d=Ee(r),p="hideAll"in n?n.hideAll:void 0,h=!!p,f=we((e=>{if(null==u||u(e),e.defaultPrevented)return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e))return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=ie();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e))return;if(!p)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&p()})),m=re(Vt(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return a=w(y({role:m},a),{onClick:f}),a=Gt(y({store:n,preventScrollOnKeyDown:o},a)),a=EV(w(y({store:n},a),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return h?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Je(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const s=G(e).getElementById(i);return!(!s||!Je(s)&&!s.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof s?s(e):null!=s?s:h})),a})),TV=Fe((e=>Be("div",PV(e))));function IV(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=It({value:V(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return M(I({},r),{setValue:e=>r.setState("value",e)})}function MV(e={}){const[t,n]=Ht(IV,e);return function(e,t,n){return ke(t,[n.store]),$t(e,n,"value","setValue"),e}(t,n,e)}var RV=$e(),NV=RV.useContext;RV.useScopedContext,RV.useProviderContext,RV.ContextProvider,RV.ScopedContextProvider;function AV(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function DV(e){return Array.isArray(e)?e.toString():e}var OV=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:s}=t,a=_(t,["store","name","value","checked","defaultChecked"]);const l=NV();n=n||l;const[u,d]=(0,c.useState)(null!=s&&s),p=Vt(n,(e=>{if(void 0!==i)return i;if(void 0===(null==e?void 0:e.value))return u;if(null!=o){if(Array.isArray(e.value)){const t=DV(o);return e.value.includes(t)}return e.value===o}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),h=(0,c.useRef)(null),f=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Ce(h,a.as||"input"),a.type),m=p?"mixed"===p:void 0,g="mixed"!==p&&p,v=B(a),[b,x]=je();(0,c.useEffect)((()=>{const e=h.current;e&&(AV(e,m),f||(e.checked=g,void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[b,m,f,g,r,o]);const S=a.onChange,C=we((e=>{if(v)return e.stopPropagation(),void e.preventDefault();if(AV(e.currentTarget,m),f||(e.currentTarget.checked=!e.currentTarget.checked,x()),null==S||S(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==n||n.setValue((e=>{if(null==o)return t;const n=DV(o);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),k=a.onClick,j=we((e=>{null==k||k(e),e.defaultPrevented||f||C(e)}));return a=Pe(a,(e=>(0,ze.jsx)(qB.Provider,{value:g,children:e})),[g]),a=w(y({role:f?void 0:"checkbox",type:f?"checkbox":void 0,"aria-checked":p},a),{ref:_e(h,a.ref),onChange:C,onClick:j}),a=pt(y({clickOnEnter:!f},a)),y({name:f?r:void 0,value:f?o:void 0,checked:g},a)}));Le((e=>Be("input",OV(e))));function zV(e,t,n){if(void 0===t)return Array.isArray(e)?e:!!n;const r=function(e){return Array.isArray(e)?e.toString():e}(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter((e=>e!==r)):n?r:e!==r&&e}var LV=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:s,hideOnClick:a=!1}=t,l=_(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const u=WB();L(n=n||u,!1);const d=xe(s);(0,c.useEffect)((()=>{null==n||n.setValue(r,((e=[])=>d?zV(e,o,!0):e))}),[n,r,o,d]),(0,c.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>zV(e,o,i))))}),[n,r,o,i]);const p=MV({value:n.useState((e=>e.values[r])),setValue(e){null==n||n.setValue(r,(()=>{if(void 0===i)return e;const t=zV(e,o,i);return Array.isArray(t)&&Array.isArray(e)&&function(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}(e,t)?e:t}))}});return l=y({role:"menuitemcheckbox"},l),l=OV(y({store:p,name:r,value:o,checked:i},l)),l=PV(y({store:n,hideOnClick:a},l))})),FV=Fe((e=>Be("div",LV(e))));function BV(e,t,n){return void 0===n?e:n?t:e}var VV=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i,onChange:s,hideOnClick:a=!1}=t,l=_(t,["store","name","value","checked","onChange","hideOnClick"]);const u=WB();L(n=n||u,!1);const d=xe(l.defaultChecked);(0,c.useEffect)((()=>{null==n||n.setValue(r,((e=!1)=>BV(e,o,d)))}),[n,r,o,d]),(0,c.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>BV(e,o,i))))}),[n,r,o,i]);const p=n.useState((e=>e.values[r]===o));return l=Pe(l,(e=>(0,ze.jsx)(YB.Provider,{value:!!p,children:e})),[p]),l=y({role:"menuitemradio"},l),l=f_(y({name:r,value:o,checked:p,onChange:e=>{if(null==s||s(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(r,(e=>BV(e,o,null!=i?i:t.checked)))}},l)),l=PV(y({store:n,hideOnClick:a},l))})),$V=Fe((e=>Be("div",VV(e))));var HV=Ve((e=>e=JT(e))),WV=Le((e=>Be("div",HV(e))));var UV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=St();L(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=UE(w(y({},r),{orientation:i}))}));Le((e=>Be("hr",UV(e))));var GV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=HB();return r=UV(y({store:n=n||o},r))})),KV=Le((e=>Be("hr",GV(e))));const YV="2px",qV="400ms",XV="cubic-bezier( 0.16, 1, 0.3, 1 )",ZV=ng(1),JV=ng(2),QV=ng(3),e$=Na.gray[300],t$=Na.gray[200],n$=Na.gray[900],r$=`0 0 0 ${bv.borderWidth} ${e$}, ${bv.popoverShadow}`,o$=`0 0 0 ${bv.borderWidth} ${n$}`,i$="minmax( 0, max-content ) 1fr",s$=Pa({"0%":{opacity:0,transform:`translateY(${YV})`},"100%":{opacity:1,transform:"translateY(0)"}}),a$=Pa({"0%":{opacity:0,transform:`translateX(-${YV})`},"100%":{opacity:1,transform:"translateX(0)"}}),l$=Pa({"0%":{opacity:0,transform:`translateY(-${YV})`},"100%":{opacity:1,transform:"translateY(0)"}}),c$=Pa({"0%":{opacity:0,transform:`translateX(${YV})`},"100%":{opacity:1,transform:"translateX(0)"}}),u$=ba(CV,{target:"e1kdzosf12"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",i$,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",ZV,";background-color:",Na.ui.background,";border-radius:4px;",(e=>Ea("box-shadow:","toolbar"===e.variant?o$:r$,";",""))," overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:",qV,";animation-timing-function:",XV,";will-change:transform,opacity;animation-name:",l$,";&[data-side='right']{animation-name:",c$,";}&[data-side='bottom']{animation-name:",s$,";}&[data-side='left']{animation-name:",a$,";}@media ( prefers-reduced-motion ){animation-duration:0s;}"),d$=Ea("all:unset;position:relative;min-height:",ng(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",i$,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",_x("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Na.gray[900],";border-radius:",bv.radiusBlockUi,";padding-block:",JV,";padding-inline:",QV,";scroll-margin:",ZV,";user-select:none;outline:none;&[aria-disabled='true']{color:",Na.ui.textDisabled,";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:",Na.theme.accent,";color:",Na.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",Na.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",u$,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',Na.gray[100],";color:",Na.gray[900],";}svg{fill:currentColor;}",""),p$=ba(TV,{target:"e1kdzosf11"})(d$,";"),h$=ba(FV,{target:"e1kdzosf10"})(d$,";"),f$=ba($V,{target:"e1kdzosf9"})(d$,";"),m$=ba("span",{target:"e1kdzosf8"})("grid-column:1;",h$,">&,",f$,">&{min-width:",ng(6),";}",h$,">&,",f$,">&,&:not( :empty ){margin-inline-end:",ng(2),";}display:flex;align-items:center;justify-content:center;color:",Na.gray[700],";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),g$=ba("div",{target:"e1kdzosf7"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",ng(3),";pointer-events:none;"),v$=ba("div",{target:"e1kdzosf6"})("flex:1;display:inline-flex;flex-direction:column;gap:",ng(1),";"),b$=ba("span",{target:"e1kdzosf5"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",ng(3),";color:",Na.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not(",u$,") &,[aria-disabled='true'] *:not(",u$,") &{color:inherit;}"),x$=ba(WV,{target:"e1kdzosf4"})({name:"49aokf",styles:"display:contents"}),y$=ba(KV,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",bv.borderWidth,";background-color:",(e=>"toolbar"===e.variant?n$:t$),";margin-block:",ng(2),";margin-inline:",QV,";outline:2px solid transparent;"),w$=ba(Bx,{target:"e1kdzosf2"})("width:",ng(1.5),";",yg({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),_$=ba(nk,{target:"e1kdzosf1"})("font-size:",_x("default.fontSize"),";line-height:20px;color:inherit;"),S$=ba(nk,{target:"e1kdzosf0"})("font-size:",_x("helpText.fontSize"),";line-height:16px;color:",Na.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not( ",u$," ) &,[aria-disabled='true'] *:not( ",u$," ) &{color:inherit;}"),C$=(0,Uo.createContext)(void 0),k$=(0,Uo.forwardRef)((function({prefix:e,suffix:t,children:n,hideOnClick:r=!0,...o},i){const s=(0,Uo.useContext)(C$);return(0,ze.jsxs)(p$,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:r,store:s?.store,children:[(0,ze.jsx)(m$,{children:e}),(0,ze.jsxs)(g$,{children:[(0,ze.jsx)(v$,{children:n}),t&&(0,ze.jsx)(b$,{children:t})]})]})})),j$=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...r},o){const i=(0,Uo.useContext)(C$);return(0,ze.jsxs)(h$,{ref:o,...r,accessibleWhenDisabled:!0,hideOnClick:n,store:i?.store,children:[(0,ze.jsx)(QB,{store:i?.store,render:(0,ze.jsx)(m$,{}),style:{width:"auto",height:"auto"},children:(0,ze.jsx)(Bx,{icon:YC,size:24})}),(0,ze.jsxs)(g$,{children:[(0,ze.jsx)(v$,{children:t}),e&&(0,ze.jsx)(b$,{children:e})]})]})})),E$=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Circle,{cx:12,cy:12,r:3})}),P$=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...r},o){const i=(0,Uo.useContext)(C$);return(0,ze.jsxs)(f$,{ref:o,...r,accessibleWhenDisabled:!0,hideOnClick:n,store:i?.store,children:[(0,ze.jsx)(QB,{store:i?.store,render:(0,ze.jsx)(m$,{}),style:{width:"auto",height:"auto"},children:(0,ze.jsx)(Bx,{icon:E$,size:24})}),(0,ze.jsxs)(g$,{children:[(0,ze.jsx)(v$,{children:t}),e&&(0,ze.jsx)(b$,{children:e})]})]})})),T$=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(C$);return(0,ze.jsx)(x$,{ref:t,...e,store:n?.store})})),I$=oa(((e,t)=>{var n;const{open:r,defaultOpen:o=!1,onOpenChange:i,placement:s,trigger:l,gutter:c,children:u,shift:d,modal:p=!0,variant:h,...f}=ra(e,"DropdownMenu"),m=(0,Uo.useContext)(C$),g=(0,a.isRTL)()?"rtl":"ltr";let v=null!==(n=e.placement)&&void 0!==n?n:m?.store?"right-start":"bottom-start";"rtl"===g&&(/right/.test(v)?v=v.replace("right","left"):/left/.test(v)&&(v=v.replace("left","right")));const b=sV({parent:m?.store,open:r,defaultOpen:o,placement:v,focusLoop:!0,setOpen(e){i?.(e)},rtl:"rtl"===g}),x=(0,Uo.useMemo)((()=>({store:b,variant:h})),[b,h]),y=b.useState("placement").split("-")[0];!b.parent||(0,Uo.isValidElement)(l)&&k$===l.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const w=(0,Uo.useCallback)((e=>(e.preventDefault(),!0)),[]),_=(0,Uo.useMemo)((()=>({dir:g,style:{direction:g}})),[g]);return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(yV,{ref:t,store:b,render:b.parent?(0,Uo.cloneElement)(l,{suffix:(0,ze.jsxs)(ze.Fragment,{children:[l.props.suffix,(0,ze.jsx)(w$,{"aria-hidden":"true",icon:wV,size:24,preserveAspectRatio:"xMidYMid slice"})]})}):l}),(0,ze.jsx)(u$,{...f,modal:p,store:b,gutter:null!=c?c:b.parent?0:8,shift:null!=d?d:b.parent?-4:0,hideOnHoverOutside:!1,"data-side":y,variant:h,wrapperProps:_,hideOnEscape:w,unmountOnHide:!0,children:(0,ze.jsx)(C$.Provider,{value:x,children:u})})]})}),"DropdownMenu"),M$=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(C$);return(0,ze.jsx)(y$,{ref:t,...e,store:n?.store,variant:n?.variant})})),R$=(0,Uo.forwardRef)((function(e,t){return(0,ze.jsx)(_$,{numberOfLines:1,ref:t,...e})})),N$=(0,Uo.forwardRef)((function(e,t){return(0,ze.jsx)(S$,{numberOfLines:2,ref:t,...e})}));const A$=ba("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function D$(e){!function(e){for(const[t,n]of Object.entries(e))void 0!==n&&av(n).isValid()}(e);const t={...O$(e.accent),...z$(e.background)};return function(e){for(const t of Object.values(e));}(function(e,t){const n=e.background||Na.white,r=e.accent||"#3858e9",o=t.foreground||Na.gray[900],i=t.gray||Na.gray;return{accent:av(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:av(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:av(n).contrast(i[600])>=3&&av(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function O$(e){return e?{accent:e,accentDarker10:av(e).darken(.1).toHex(),accentDarker20:av(e).darken(.2).toHex(),accentInverted:L$(e)}:{}}function z$(e){if(!e)return{};const t=L$(e);return{background:e,foreground:t,foregroundInverted:L$(t),gray:F$(e,t)}}function L$(e){return av(e).isDark()?Na.white:Na.gray[900]}function F$(e,t){const n=av(e).isDark()?"lighten":"darken",r=Math.abs(av(e).toHsl().l-av(t).toHsl().l)/100,o={};return Object.entries({100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821}).forEach((([t,i])=>{o[parseInt(t)]=av(e)[n](i/.884*r).toHex()})),o}cv([uv,z_]);const B$=function({accent:e,background:t,className:n,...r}){const o=na(),i=(0,Uo.useMemo)((()=>o(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[Ea("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(D$({accent:e,background:t})),n)),[e,t,n,o]);return(0,ze.jsx)(A$,{className:i,...r})},V$=(0,Uo.createContext)(void 0),$$=()=>(0,Uo.useContext)(V$),H$=ba("div",{target:"enfox0g2"})("position:relative;display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{left:var( --indicator-left );bottom:0;width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ",Na.theme.accent,";}&[aria-orientation='vertical']::after{opacity:0;right:0;top:var( --indicator-top );height:var( --indicator-height );border-right:var( --wp-admin-border-width-focus ) solid ",Na.theme.accent,";}"),W$=ba(iF,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:",ng(12),";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ",ng(4),";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:",Na.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:",ng(3),";right:",ng(3),";bottom:",ng(3),";left:",ng(3),";pointer-events:none;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";border-radius:2px;opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;outline:2px solid transparent;}}"),U$=ba(aF,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),G$=(0,Uo.forwardRef)((function({children:e,tabId:t,disabled:n,render:r,...o},i){const s=$$();if(!s)return null;const{store:a,instanceId:l}=s,c=`${l}-${t}`;return(0,ze.jsx)(W$,{ref:i,store:a,id:c,disabled:n,render:r,...o,children:e})}));const K$=(0,Uo.forwardRef)((function({children:e,...t},n){const r=$$(),o=r?.store.useState("selectedId"),i=function(e,t){const[n,r]=(0,Uo.useState)({left:0,top:0,width:0,height:0}),o=(0,Uo.useRef)(t);(0,Uo.useLayoutEffect)((()=>{o.current=t}));const i=(0,Uo.useRef)(),s=(0,Uo.useRef)();return(0,Uo.useEffect)((()=>{if(e===i.current)return;function t(e){r({left:Math.max(e.offsetLeft-1,0),top:Math.max(e.offsetTop-1,0),width:parseFloat(getComputedStyle(e).width),height:parseFloat(getComputedStyle(e).height)}),o.current?.()}i.current=null!=e?e:void 0,s.current||(s.current=new ResizeObserver((()=>{i.current&&t(i.current)})));const{current:n}=s;return e&&(t(e),n.observe(e)),()=>{i.current&&n.unobserve(i.current)}}),[e]),n}(r?.store.item(o)?.element),[a,l]=(0,Uo.useState)(!1);if(function(e,t){const n=(0,Uo.useRef)(e),r=(0,Uo.useRef)(t);(0,Uo.useLayoutEffect)((()=>{r.current=t})),(0,Uo.useEffect)((()=>{n.current!==e&&(r.current({previousValue:n.current}),n.current=e)}),[e])}(o,(({previousValue:e})=>e&&l(!0))),!r)return null;const{store:c}=r,{activeId:u,selectOnMove:d}=c.useState(),{setActiveId:p}=c;return(0,ze.jsx)(rF,{ref:n,store:c,render:(0,ze.jsx)(H$,{onTransitionEnd:e=>{"::after"===e.pseudoElement&&l(!1)}}),onBlur:()=>{d&&o!==u&&p(o)},...t,style:{"--indicator-left":`${i.left}px`,"--indicator-top":`${i.top}px`,"--indicator-width":`${i.width}px`,"--indicator-height":`${i.height}px`,...t.style},className:s(a?"is-animation-enabled":"",t.className),children:e})})),Y$=(0,Uo.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...r},o){const i=$$();if(!i)return null;const{store:s,instanceId:a}=i,l=`${a}-${t}`,c=s.useState((e=>e.selectedId));return(0,ze.jsx)(U$,{ref:o,store:s,id:`${l}-view`,tabId:l,focusable:n,...r,children:c===l&&e})}));function q$({selectOnMove:e=!0,defaultTabId:t,orientation:n="horizontal",onSelect:r,children:o,selectedTabId:i}){const s=(0,l.useInstanceId)(q$,"tabs"),a=ZL({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${s}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${s}-`,""):e;r?.(t)},selectedId:i&&`${s}-${i}`}),c=void 0!==i,{items:u,selectedId:d,activeId:p}=a.useState(),{setSelectedId:h,setActiveId:f}=a,m=(0,Uo.useRef)(!1);u.length>0&&(m.current=!0);const g=u.find((e=>e.id===d)),v=u.find((e=>!e.dimmed)),b=u.find((e=>e.id===`${s}-${t}`));(0,Uo.useLayoutEffect)((()=>{if(!c&&(!t||b)&&!u.find((e=>e.id===d))){if(b&&!b.dimmed)return void h(b?.id);v?h(v.id):m.current&&h(null)}}),[v,b,t,c,u,d,h]),(0,Uo.useLayoutEffect)((()=>{g?.dimmed&&(c?h(null):!b||b.dimmed?v&&h(v.id):h(b.id))}),[v,b,c,g?.dimmed,h]),(0,Uo.useLayoutEffect)((()=>{c&&m.current&&i&&!g&&h(null)}),[c,g,i,h]),(0,Uo.useEffect)((()=>{null===i&&!p&&v?.id&&f(v.id)}),[i,p,v?.id,f]),(0,Uo.useEffect)((()=>{c&&requestAnimationFrame((()=>{const e=u?.[0]?.element?.ownerDocument.activeElement;e&&u.some((t=>e===t.element))&&p!==e.id&&f(e.id)}))}),[p,c,u,f]);const x=(0,Uo.useMemo)((()=>({store:a,instanceId:s})),[a,s]);return(0,ze.jsx)(V$.Provider,{value:x,children:o})}q$.TabList=K$,q$.Tab=G$,q$.TabPanel=Y$,q$.Context=V$;const X$=q$,Z$=window.wp.privateApis,{lock:J$,unlock:Q$}=(0,Z$.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components"),eH={};J$(eH,{CompositeV2:sl,CompositeGroupV2:QT,CompositeItemV2:Kt,CompositeRowV2:ll,useCompositeStoreV2:rl,CustomSelectControl:FM,__experimentalPopoverLegacyPositionToPlacement:Xo,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...pw(t)}},ComponentsContext:di,Tabs:X$,Theme:B$,DropdownMenuV2:I$,DropdownMenuGroupV2:T$,DropdownMenuItemV2:k$,DropdownMenuCheckboxItemV2:j$,DropdownMenuRadioItemV2:P$,DropdownMenuSeparatorV2:M$,DropdownMenuItemLabelV2:R$,DropdownMenuItemHelpTextV2:N$,kebabCase:yy})})(),(window.wp=window.wp||{}).components=i})();
\ No newline at end of file |