%PDF- %PDF-
Direktori : /var/www/projetos/beta.gracafilmes.com.br/wp-includes/js/dist/ |
Current File : /var/www/projetos/beta.gracafilmes.com.br/wp-includes/js/dist/components.min.js |
/*! This file is auto-generated */ !function(){var e={1345:function(e,t,n){"use strict";var r=n(5022);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),p=r.offset(e),m=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,b=void 0,y=void 0,w=void 0,x=void 0,_=void 0,E=void 0,C=void 0,k=void 0;f?(_=t,k=r.height(_),C=r.width(_),E={left:r.scrollLeft(_),top:r.scrollTop(_)},w={left:p.left-E.left-c,top:p.top-E.top-l},x={left:p.left+h-(E.left+C)+d,top:p.top+m-(E.top+k)+u},y=E):(g=r.offset(t),v=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},w={left:p.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:p.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},x={left:p.left+h-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),w.top<0||x.top>0?!0===a?r.scrollTop(t,y.top+w.top):!1===a?r.scrollTop(t,y.top+x.top):w.top<0?r.scrollTop(t,y.top+w.top):r.scrollTop(t,y.top+x.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+w.top):r.scrollTop(t,y.top+x.top)),o&&(w.left<0||x.left>0?!0===s?r.scrollLeft(t,y.left+w.left):!1===s?r.scrollLeft(t,y.left+x.left):w.left<0?r.scrollLeft(t,y.left+w.left):r.scrollLeft(t,y.left+x.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+w.left):r.scrollLeft(t,y.left+x.left)))}},5425:function(e,t,n){"use strict";e.exports=n(1345)},5022:function(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)$/;var c=void 0;function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function d(e){return"border-box"===c(e,"boxSizing")}"undefined"!=typeof window&&(c=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.currentStyle&&e.currentStyle[t];if(s.test(n)&&!l.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var f=["margin","border","padding"];function p(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])}function m(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(c(e,s))||0}return r}function h(e){return null!=e&&e==e.window}var g={};function v(e,t,n){if(h(e))return"width"===t?g.viewportWidth(e):g.viewportHeight(e);if(9===e.nodeType)return"width"===t?g.docWidth(e):g.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(c(e),d(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=c(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?1:-1);var s=void 0!==o||i,l=o||a;if(-1===n)return s?l-m(e,["border","padding"],r):a;if(s){var u=2===n?-m(e,["border"],r):m(e,["margin"],r);return l+(1===n?0:u)}return a+m(e,f.slice(n),r)}u(["Width","Height"],(function(e){g["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],g["viewport"+e](n))},g["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 b={position:"absolute",visibility:"hidden",display:"block"};function y(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=v.apply(void 0,n):p(e,b,(function(){t=v.apply(void 0,n)})),t}function w(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)):c(e,t);for(var i in t)t.hasOwnProperty(i)&&w(e,i,t[i])}u(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);g["outer"+t]=function(t,n){return t&&y(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];g[e]=function(t,r){if(void 0===r)return t&&y(t,e,-1);if(t){c(t);return d(t)&&(r+=m(t,["padding","border"],n)),w(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"===w(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(w(e,i))||0,r[i]=o+t[i]-n[i]);w(e,r)}(e,t)},isWindow:h,each:u,css:w,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(h(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(h(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},g)},9214:function(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,p=60116,m=60121,h=60122,g=60117,v=60129,b=60131; /** @license React v17.0.2 * react-is.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. */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"),p=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(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 p:case f:case s:return e;default:return t}}case r:return t}}}},2797:function(e,t,n){"use strict";n(9214)},5619:function(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}},7115:function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,i=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,m=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,g=/^rgb/i,v=/^rgba/i,b=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,y="";function w(e){var t=new Error(y+": "+e);throw t.source=y,t}function x(){var e=I(_);return y.length>0&&w("Invalid input not EOF"),e}function _(){return E("linear-gradient",e,k)||E("repeating-linear-gradient",t,k)||E("radial-gradient",n,S)||E("repeating-radial-gradient",r,S)}function E(e,t,n){return C(t,(function(t){var r=n();return r&&(L(p)||w("Missing comma before color stops")),{type:e,orientation:r,colorStops:I(M)}}))}function C(e,t){var n=L(e);if(n)return L(d)||w("Missing ("),result=t(n),L(f)||w("Missing )"),result}function k(){return A("directional",o,1)||A("angular",u,1)}function S(){var e,t,n=T();return n&&((e=[]).push(n),t=y,L(p)&&((n=T())?e.push(n):y=t)),e}function T(){var e=function(){var e=A("shape",/^(circle)/i,0);e&&(e.style=D()||N());return e}()||function(){var e=A("shape",/^(ellipse)/i,0);e&&(e.style=O()||N());return e}();if(e)e.at=function(){if(A("position",/^at/,0)){var e=R();return e||w("Missing positioning value"),e}}();else{var t=R();t&&(e={type:"default-radial",at:t})}return e}function N(){return A("extent-keyword",i,1)}function R(){var e={x:O(),y:O()};if(e.x||e.y)return{type:"position",value:e}}function I(e){var t=e(),n=[];if(t)for(n.push(t);L(p);)(t=e())?n.push(t):w("One extra comma");return n}function M(){var e=A("hex",m,1)||C(v,(function(){return{type:"rgba",value:I(P)}}))||C(g,(function(){return{type:"rgb",value:I(P)}}))||A("literal",h,0);return e||w("Expected color definition"),e.length=O(),e}function P(){return L(b)[1]}function O(){return A("%",l,1)||A("position-keyword",a,1)||D()}function D(){return A("px",s,1)||A("em",c,1)}function A(e,t,n){var r=L(t);if(r)return{type:e,value:r[n]}}function L(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(y))&&z(n[0].length),(t=e.exec(y))&&z(t[0].length),t}function z(e){y=y.substr(e)}return function(e){return y=e.toString(),x()}}(),t.parse=(n||{}).parse},3138:function(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}}])},1281:function(e,t,n){"use strict";var r=n(338),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,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&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}},9756:function(e){e.exports=function(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}},5372:function(e,t,n){"use strict";var r=n(9567);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}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4821:function(e,t){"use strict"; /** @license React v16.13.1 * react-is.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 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,p=n?Symbol.for("react.suspense"):60113,m=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,w=n?Symbol.for("react.scope"):60119;function x(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 p: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){return x(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=p,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===m||"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===w||e.$$typeof===v)},t.typeOf=x},338:function(e,t,n){"use strict";e.exports=n(4821)},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"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","ß":"ss","Ţ":"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},7755:function(e,t,n){"use strict"; /** * @license React * use-sync-external-store-shim.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(9196);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},635:function(e,t,n){"use strict";e.exports=n(7755)},9196:function(e){"use strict";e.exports=window.React},7153:function(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];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};!function(){"use strict";n.r(r),n.d(r,{AnglePickerControl:function(){return sb},Animate:function(){return Rm},Autocomplete:function(){return yb},BaseControl:function(){return Iv},BlockQuotation:function(){return i.BlockQuotation},Button:function(){return ad},ButtonGroup:function(){return PC},Card:function(){return pk},CardBody:function(){return _k},CardDivider:function(){return Rk},CardFooter:function(){return Mk},CardHeader:function(){return Ok},CardMedia:function(){return Dk},CheckboxControl:function(){return Ak},Circle:function(){return i.Circle},ClipboardButton:function(){return Lk},ColorIndicator:function(){return Qb},ColorPalette:function(){return tE},ColorPicker:function(){return H_},ComboboxControl:function(){return gT},CustomGradientPicker:function(){return kS},CustomSelectControl:function(){return IN},Dashicon:function(){return Ql},DatePicker:function(){return RI},DateTimePicker:function(){return QI},Disabled:function(){return sM},Draggable:function(){return cM},DropZone:function(){return dM},DropZoneProvider:function(){return fM},Dropdown:function(){return oy},DropdownMenu:function(){return VS},DuotonePicker:function(){return wM},DuotoneSwatch:function(){return hM},ExternalLink:function(){return EM},Fill:function(){return gf},Flex:function(){return Qm},FlexBlock:function(){return Wm},FlexItem:function(){return Um},FocalPointPicker:function(){return qM},FocusReturnProvider:function(){return Sz},FocusableIframe:function(){return KM},FontSizePicker:function(){return WP},FormFileUpload:function(){return UP},FormToggle:function(){return YP},FormTokenField:function(){return QP},G:function(){return i.G},GradientPicker:function(){return RS},Guide:function(){return nO},GuidePage:function(){return rO},HorizontalRule:function(){return i.HorizontalRule},Icon:function(){return ec},IconButton:function(){return oO},IsolatedEventContainer:function(){return uz},KeyboardShortcuts:function(){return cO},Line:function(){return i.Line},MenuGroup:function(){return uO},MenuItem:function(){return dO},MenuItemsChoice:function(){return pO},Modal:function(){return ET},NavigableMenu:function(){return zS},Notice:function(){return SD},NoticeList:function(){return ND},Panel:function(){return ID},PanelBody:function(){return AD},PanelHeader:function(){return RD},PanelRow:function(){return LD},Path:function(){return i.Path},Placeholder:function(){return BD},Polygon:function(){return i.Polygon},Popover:function(){return Of},QueryControls:function(){return KD},RadioControl:function(){return QD},RangeControl:function(){return Uy},Rect:function(){return i.Rect},ResizableBox:function(){return FA},ResponsiveWrapper:function(){return VA},SVG:function(){return i.SVG},SandBox:function(){return $A},ScrollLock:function(){return ud},SearchControl:function(){return xO},SelectControl:function(){return my},Slot:function(){return vf},SlotFillProvider:function(){return bf},Snackbar:function(){return UA},SnackbarList:function(){return YA},Spinner:function(){return eL},TabPanel:function(){return rL},TabbableContainer:function(){return mO},TextControl:function(){return iL},TextHighlight:function(){return fL},TextareaControl:function(){return dL},TimePicker:function(){return qI},Tip:function(){return mL},ToggleControl:function(){return hL},Toolbar:function(){return ML},ToolbarButton:function(){return CL},ToolbarDropdownMenu:function(){return PL},ToolbarGroup:function(){return TL},ToolbarItem:function(){return _L},Tooltip:function(){return Vf},TreeSelect:function(){return jD},VisuallyHidden:function(){return rd},__experimentalAlignmentMatrixControl:function(){return Sm},__experimentalApplyValueToSides:function(){return dC},__experimentalBorderBoxControl:function(){return VE},__experimentalBorderControl:function(){return xE},__experimentalBoxControl:function(){return MC},__experimentalConfirmDialog:function(){return kT},__experimentalDimensionControl:function(){return tM},__experimentalDivider:function(){return Nk},__experimentalDropdownContentWrapper:function(){return K_},__experimentalElevation:function(){return LC},__experimentalGrid:function(){return CE},__experimentalHStack:function(){return qv},__experimentalHasSplitBorders:function(){return OE},__experimentalHeading:function(){return G_},__experimentalInputControl:function(){return Ov},__experimentalInputControlPrefixWrapper:function(){return sO},__experimentalInputControlSuffixWrapper:function(){return iy},__experimentalIsDefinedBorder:function(){return PE},__experimentalIsEmptyBorder:function(){return ME},__experimentalItem:function(){return aO},__experimentalItemGroup:function(){return Qk},__experimentalNavigation:function(){return LO},__experimentalNavigationBackButton:function(){return FO},__experimentalNavigationGroup:function(){return jO},__experimentalNavigationItem:function(){return ZO},__experimentalNavigationMenu:function(){return nD},__experimentalNavigatorBackButton:function(){return _D},__experimentalNavigatorButton:function(){return wD},__experimentalNavigatorProvider:function(){return mD},__experimentalNavigatorScreen:function(){return bD},__experimentalNavigatorToParentButton:function(){return ED},__experimentalNumberControl:function(){return eb},__experimentalPaletteEdit:function(){return oT},__experimentalParseQuantityAndUnitFromRawValue:function(){return cE},__experimentalRadio:function(){return ZD},__experimentalRadioGroup:function(){return JD},__experimentalScrollable:function(){return wk},__experimentalSpacer:function(){return Zv},__experimentalStyleProvider:function(){return lf},__experimentalSurface:function(){return tL},__experimentalText:function(){return Ph},__experimentalToggleGroupControl:function(){return _P},__experimentalToggleGroupControlOption:function(){return FP},__experimentalToggleGroupControlOptionIcon:function(){return vL},__experimentalToolbarContext:function(){return xL},__experimentalToolsPanel:function(){return ZL},__experimentalToolsPanelContext:function(){return $L},__experimentalToolsPanelItem:function(){return JL},__experimentalTreeGrid:function(){return oz},__experimentalTreeGridCell:function(){return lz},__experimentalTreeGridItem:function(){return sz},__experimentalTreeGridRow:function(){return iz},__experimentalTruncate:function(){return U_},__experimentalUnitControl:function(){return vE},__experimentalUseCustomUnits:function(){return dE},__experimentalUseNavigator:function(){return yD},__experimentalUseSlot:function(){return jd},__experimentalUseSlotFills:function(){return dz},__experimentalVStack:function(){return W_},__experimentalView:function(){return nd},__experimentalZStack:function(){return vz},__unstableAnimatePresence:function(){return Lm},__unstableComposite:function(){return hm},__unstableCompositeGroup:function(){return bm},__unstableCompositeItem:function(){return Se},__unstableDisclosureContent:function(){return Mx},__unstableGetAnimateClassName:function(){return Nm},__unstableMotion:function(){return Kl},__unstableUseAutocompleteProps:function(){return bb},__unstableUseCompositeState:function(){return am},__unstableUseNavigateRegions:function(){return yz},createSlotFill:function(){return yf},navigateRegions:function(){return wz},privateApis:function(){return Mz},useBaseControlProps:function(){return wb},withConstrainedTabbing:function(){return xz},withFallbackStyles:function(){return _z},withFilters:function(){return Cz},withFocusOutside:function(){return pT},withFocusReturn:function(){return kz},withNotices:function(){return Tz},withSpokenMessages:function(){return JO}});var e={};n.r(e),n.d(e,{Text:function(){return vh},block:function(){return bh},destructive:function(){return wh},highlighterText:function(){return _h},muted:function(){return xh},positive:function(){return yh},upperCase:function(){return Eh}});var t={};n.r(t),n.d(t,{TooltipContent:function(){return Fx},TooltipPopoverView:function(){return Vx},TooltipShortcut:function(){return jx},noOutline:function(){return Hx}});var o={};n.r(o),n.d(o,{ButtonContentView:function(){return PP},LabelView:function(){return TP},buttonView:function(){return RP},labelBlock:function(){return NP}});var i=window.wp.primitives;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var s=window.wp.element,l=n(7153),c=n.n(l),u=window.wp.i18n,d=window.wp.compose;function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(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}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var b=n(9196),y=n.n(b);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(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}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var S=(0,b.createContext)({});var T,N=function(e,t,n){void 0===n&&(n=t.children);var r=(0,b.useContext)(S);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(E(t,["children"]))}return(0,b.createElement)(e,t,n)};function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function O(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!P(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=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}(r,["state"]);return[M(M({},i),a),o]}function A(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;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}function L(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return P(t.state)&&P(n.state)?e(M(M({},t.state),t),M(M({},n.state),n)):e(t,n)}}function z(e){var t=e.as,n=e.useHook,r=e.memo,o=e.propsAreEqual,i=void 0===o?null==n?void 0:n.unstable_propsAreEqual:o,a=e.keys,s=void 0===a?(null==n?void 0:n.__keys)||[]:a,l=e.useCreateElement,c=void 0===l?N:l,u=function(e,r){var o=e.as,i=void 0===o?t:o,a=E(e,["as"]);if(n){var l,u=D(a,s),d=u[0],f=u[1],p=n(d,_({ref:r},f)),m=p.wrapElement,h=E(p,["wrapElement"]),g=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,v=g&&D(a,g)[0],b=v?_(_({},h),v):h,y=c(i,b);return m?m(y):y}return c(i,_({ref:r},a))};return u=function(e){return(0,b.forwardRef)(e)}(u),r&&(u=function(e,t){return(0,b.memo)(e,t)}(u,i&&L(i))),u.__keys=s,u.unstable_propsAreEqual=L(i||A),u}function B(e,t){(0,b.useDebugValue)(e);var n=(0,b.useContext)(S);return null!=n[e]?n[e]:t}function F(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),i=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,b.useDebugValue)(r);var o=B(r);return o?_(_({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=k(o);!(r=i()).done;){t=r.value.__useOptions(t,n)}return t},a=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=i(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,b.useDebugValue)(r);var o=B(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,s=k(o);!(a=s()).done;){n=(0,a.value)(t,n,!0)}var l={},c=n||{};for(var u in c)void 0!==c[u]&&(l[u]=c[u]);return l};a.__useOptions=i;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return a.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),a.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||A,a}function V(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function H(e,t){return(0,b.useMemo)((function(){return null==e&&null==t?null:function(n){V(e,n),V(t,n)}}),[e,t])}function j(e){return e?e.ownerDocument||e:document}try{T=window}catch(e){}function $(e){return e&&j(e).defaultView||T}var W=function(){var e=$();return Boolean(void 0!==e&&e.document&&e.document.createElement)}(),U=W?b.useLayoutEffect:b.useEffect;function G(e){var t=(0,b.useRef)(e);return U((function(){t.current=e})),t}function Y(e){return e.target===e.currentTarget}function q(e){var t=j(e).activeElement;return null!=t&&t.nodeName?t:null}function K(e,t){return e===t||e.contains(t)}function X(e){var t=q(e);if(!t)return!1;if(K(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function Z(e){return!K(e.currentTarget,e.target)}var J=["button","color","file","image","reset","submit"];function Q(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==J.indexOf(t.type)}return!1}function ee(e){return!!W&&-1!==window.navigator.userAgent.indexOf(e)}var te="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 ne(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,te)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=F({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=h(e,["unstable_system"]),o=t.unstable_system,i=h(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,b.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=F({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return m({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=h(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,b.useRef)(null),d=G(o),f=G(i),p=G(a),g=G(s),v=!!e.disabled&&!e.focusable,y=(0,b.useState)(!0),w=y[0],x=y[1],_=(0,b.useState)(!0),E=_[0],C=_[1],k=e.disabled?m({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var S=se(d,e.disabled),T=se(f,e.disabled),N=se(g,e.disabled),R=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return m({ref:H(u,n),style:k,tabIndex:ae(v,w,E,r),disabled:!(!v||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:S,onMouseDownCapture:T,onMouseDown:R,onKeyPressCapture:N},c)}});z({as:"div",useHook:le});var ce=F({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return m({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},h(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=h(t,["onKeyDown","onKeyUp"]),i=(0,b.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,b.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Y(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,b.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return m({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ge(e,t){e.userFocus=t}function ve(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}function be(e){var t=q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,b.createContext)(ye);var xe=F({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,b.useContext)(we),r=(0,b.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,b.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return m(m({},e),{},{id:i})},useProps:function(e,t){return m({id:e.id},t)}});z({as:"div",useHook:xe});function _e(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=j(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function Ee(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(_e(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var ke=F({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=h(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=h(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return m(m({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=h(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,b.useRef)(null),p=e.id,g=e.disabled&&!e.focusable,y=e.currentId===p,w=G(y),x=(0,b.useRef)(!1),_=function(e){return(0,b.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),E=G(a),C=G(s),k=G(l),S=G(c),T=G(u),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,b.useEffect)((function(){var t;if(p)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:p,ref:f,disabled:!!g}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,p)}}),[p,g,e.registerItem,e.unregisterItem]),(0,b.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var R=(0,b.useCallback)((function(e){var t;null===(t=E.current)||void 0===t||t.call(E,e),ge(e.currentTarget,!0)}),[]),I=(0,b.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ge(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&p&&!function(e,t){if(Y(e))return!1;for(var n,r=v(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,p),o&&e.unstable_virtual&&e.baseId&&Y(t))){var i=j(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[p,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=(0,b.useCallback)((function(t){var n;null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),P=(0,b.useCallback)((function(t){var n;if(Y(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==_||!_.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=S.current)||void 0===n||n.call(S,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ve(s)&&(s.focus(),Ee(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ve(l)&&(t.preventDefault(),Ee(l,""))}}}),[e.orientation,_,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,b.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return m({ref:H(f,r),id:p,tabIndex:N?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:R,onFocus:I,onBlurCapture:M,onKeyDown:P,onClick:O},d)}}),Se=z({as:"button",memo:!0,useHook:ke});const Te=Math.min,Ne=Math.max,Re=Math.round,Ie=Math.floor,Me=e=>({x:e,y:e}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function De(e,t,n){return Ne(e,Te(t,n))}function Ae(e,t){return"function"==typeof e?e(t):e}function Le(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Be(e){return"x"===e?"y":"x"}function Fe(e){return"y"===e?"height":"width"}function Ve(e){return["top","bottom"].includes(Le(e))?"y":"x"}function He(e){return Be(Ve(e))}function je(e){return e.replace(/start|end/g,(e=>Oe[e]))}function $e(e){return e.replace(/left|right|bottom|top/g,(e=>Pe[e]))}function We(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 Ue(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ge(e,t,n){let{reference:r,floating:o}=e;const i=Ve(t),a=He(t),s=Fe(a),l=Le(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 p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ze(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Ye(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:p=0}=Ae(t,e),m=We(p),h=s[f?"floating"===d?"reference":"floating":d],g=Ue(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?{x:r,y:o,width:a.floating.width,height:a.floating.height}: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},w=Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function qe(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function Ke(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xe(e){var t;return null==(t=(Ze(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ze(e){return e instanceof Node||e instanceof Ke(e).Node}function Je(e){return e instanceof Element||e instanceof Ke(e).Element}function Qe(e){return e instanceof HTMLElement||e instanceof Ke(e).HTMLElement}function et(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ke(e).ShadowRoot)}function tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function nt(e){return["table","td","th"].includes(qe(e))}function rt(e){const t=ot(),n=at(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 ot(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function it(e){return["html","body","#document"].includes(qe(e))}function at(e){return Ke(e).getComputedStyle(e)}function st(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if("html"===qe(e))return e;const t=e.assignedSlot||e.parentNode||et(e)&&e.host||Xe(e);return et(t)?t.host:t}function ct(e){const t=lt(e);return it(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qe(t)&&tt(t)?t:ct(t)}function ut(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ct(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ke(o);return i?t.concat(a,a.visualViewport||[],tt(o)?o:[],a.frameElement&&n?ut(a.frameElement):[]):t.concat(o,ut(o,[],n))}function dt(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Re(n)!==i||Re(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ft(e){return Je(e)?e:e.contextElement}function pt(e){const t=ft(e);if(!Qe(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=dt(t);let a=(i?Re(n.width):n.width)/r,s=(i?Re(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const mt=Me(0);function ht(e){const t=Ke(e);return ot()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mt}function gt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ft(e);let a=Me(1);t&&(r?Je(r)&&(a=pt(r)):a=pt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ke(e))&&t}(i,n,r)?ht(i):Me(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=Ke(i),t=r&&Je(r)?Ke(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=pt(o),t=o.getBoundingClientRect(),r=at(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=Ke(o),o=n.frameElement}}return Ue({width:u,height:d,x:l,y:c})}const vt=[":popover-open",":modal"];function bt(e){return vt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function yt(e){return gt(Xe(e)).left+st(e).scrollLeft}function wt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ke(e),r=Xe(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=ot();(!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=Xe(e),n=st(e),r=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yt(e);const s=-n.scrollTop;return"rtl"===at(r).direction&&(a+=Ne(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xe(e));else if(Je(t))r=function(e,t){const n=gt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qe(e)?pt(e):Me(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=ht(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ue(r)}function xt(e,t){const n=lt(e);return!(n===t||!Je(n)||it(n))&&("fixed"===at(n).position||xt(n,t))}function _t(e,t,n){const r=Qe(t),o=Xe(t),i="fixed"===n,a=gt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Me(0);if(r||!r&&!i)if(("body"!==qe(t)||tt(o))&&(s=st(t)),r){const e=gt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=yt(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Et(e){return"static"===at(e).position}function Ct(e,t){return Qe(e)&&"fixed"!==at(e).position?t?t(e):e.offsetParent:null}function kt(e,t){const n=Ke(e);if(bt(e))return n;if(!Qe(e)){let t=lt(e);for(;t&&!it(t);){if(Je(t)&&!Et(t))return t;t=lt(t)}return n}let r=Ct(e,t);for(;r&&nt(r)&&Et(r);)r=Ct(r,t);return r&&it(r)&&Et(r)&&!rt(r)?n:r||function(e){let t=lt(e);for(;Qe(t)&&!it(t);){if(rt(t))return t;t=lt(t)}return null}(e)||n}const St={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Xe(r),s=!!t&&bt(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Me(1);const u=Me(0),d=Qe(r);if((d||!d&&!i)&&(("body"!==qe(r)||tt(a))&&(l=st(r)),Qe(r))){const e=gt(r);c=pt(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:Xe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?bt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ut(e,[],!1).filter((e=>Je(e)&&"body"!==qe(e))),o=null;const i="fixed"===at(e).position;let a=i?lt(e):e;for(;Je(a)&&!it(a);){const t=at(a),n=rt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||tt(a)&&!n&&xt(e,a))?r=r.filter((e=>e!==a)):o=t,a=lt(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=wt(t,n,o);return e.top=Ne(r.top,e.top),e.right=Te(r.right,e.right),e.bottom=Te(r.bottom,e.bottom),e.left=Ne(r.left,e.left),e}),wt(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:kt,getElementRects:async function(e){const t=this.getOffsetParent||kt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=dt(e);return{width:t,height:n}},getScale:pt,isElement:Je,isRTL:function(e){return"rtl"===at(e).direction}};function Tt(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=ft(e),u=o||i?[...c?ut(c):[],...ut(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=Xe(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 p={rootMargin:-Ie(u)+"px "+-Ie(o.clientWidth-(c+d))+"px "+-Ie(o.clientHeight-(u+f))+"px "+-Ie(c)+"px",threshold:Ne(0,Te(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?gt(e):null;return l&&function t(){const r=gt(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=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Nt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=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=Le(n),s=ze(n),l="y"===Ve(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Ae(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Rt=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}=Ae(e,t),c={x:n,y:r},u=await Ye(t,l),d=Ve(Le(o)),f=Be(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=De(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=De(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},It=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:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ae(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Le(o),b=Le(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[$e(s)]:function(e){const t=$e(e);return[je(e),t,je(t)]}(s));f||"none"===m||w.push(...function(e,t,n,r){const o=ze(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[]}}(Le(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(je)))),i}(s,h,m,y));const x=[s,...w],_=await Ye(t,g),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(_[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ze(e),o=He(e),i=Fe(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$e(a)),[a,$e(a)]}(o,a,y);E.push(_[e[0]],_[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every((e=>e<=0))){var k,S;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(S=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=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:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Mt=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}=Ae(e,t),l=await Ye(t,s),c=Le(n),u=ze(n),d="y"===Ve(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-l.top-l.bottom,v=f-l.left-l.right,b=Te(p-l[m],g),y=Te(f-l[h],v),w=!t.middlewareData.shift;let x=b,_=y;if(d?_=u||w?Te(y,v):v:x=u||w?Te(b,g):g,w&&!u){const e=Ne(l.left,0),t=Ne(l.right,0),n=Ne(l.top,0),r=Ne(l.bottom,0);d?_=f-2*(0!==e||0!==t?e+t:Ne(l.left,l.right)):x=p-2*(0!==n||0!==r?n+r:Ne(l.top,l.bottom))}await a({...t,availableWidth:_,availableHeight:x});const E=await o.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}},Pt=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}=Ae(e,t)||{};if(null==c)return{};const d=We(u),f={x:n,y:r},p=He(o),m=Fe(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=_?_[y]:0;E&&await(null==a.isElement?void 0:a.isElement(_))||(E=s.floating[y]||i.floating[m]);const C=w/2-x/2,k=E/2-h[m]/2-1,S=Te(d[v],k),T=Te(d[b],k),N=S,R=E-h[m]-T,I=E/2-h[m]/2+C,M=De(N,I,R),P=!l.arrow&&null!=ze(o)&&I!==M&&i.reference[m]/2-(I<N?S:T)-h[m]/2<0,O=P?I<N?I-N:I-R:0;return{[p]:f[p]+O,data:{[p]:M,centerOffset:I-M-O,...P&&{alignmentOffset:O}},reset:P}}}),Ot=(e,t,n)=>{const r=new Map,o={platform:St,...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}=Ge(c,r,l),f=r,p={},m=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:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"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}=Ge(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Dt=window.ReactDOM,At="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function Lt(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(!Lt(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(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Lt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function zt(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const[i,a]=b.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[s,l]=b.useState(t);Lt(null==s?void 0:s.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(i),p=function(e){const t=b.useRef(e);return At((()=>{t.current=e})),t}(o),m=b.useCallback((()=>{c.current&&u.current&&Ot(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!Lt(f.current,e)&&(f.current=e,Dt.flushSync((()=>{a(e)})))}))}),[s,n,r]);At((()=>{h.current&&m()}),[m]);const h=b.useRef(!1);At((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=b.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),v=b.useCallback((e=>{c.current=e,g()}),[g]),y=b.useCallback((e=>{u.current=e,g()}),[g]),w=b.useMemo((()=>({reference:c,floating:u})),[]);return b.useMemo((()=>({...i,update:m,refs:w,reference:v,floating:y})),[i,m,w,v,y])}const Bt=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Pt({element:t.current,padding:n}).fn(e):{}:t?Pt({element:t,padding:n}).fn(e):{};var r}}},Ft="undefined"!=typeof document,Vt={current:null},Ht={current:!1};function jt(){if(Ht.current=!0,Ft)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vt.current=e.matches;e.addListener(t),t()}else Vt.current=!1}const $t=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wt=(0,b.createContext)({});const Ut=(0,b.createContext)(null),Gt=Ft?b.useLayoutEffect:b.useEffect,Yt=(0,b.createContext)({strict:!1});function qt(e,t,n,r){const o=(0,b.useContext)(Wt).visualElement,i=(0,b.useContext)(Yt),a=(0,b.useContext)(Ut),s=(0,b.useContext)($t).reducedMotion,l=(0,b.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return Gt((()=>{c&&c.render()})),Gt((()=>{c&&c.animationState&&c.animationState.animateChanges()})),Gt((()=>()=>c&&c.notify("Unmount")),[]),c}function Kt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xt(e){return"string"==typeof e||Array.isArray(e)}function Zt(e){return"object"==typeof e&&"function"==typeof e.start}const Jt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Qt(e){return Zt(e.animate)||Jt.some((t=>Xt(e[t])))}function en(e){return Boolean(Qt(e)||e.variants)}function tn(e){const{initial:t,animate:n}=function(e,t){if(Qt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Xt(t)?t:void 0,animate:Xt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(Wt));return(0,b.useMemo)((()=>({initial:t,animate:n})),[nn(t),nn(n)])}function nn(e){return Array.isArray(e)?e.join(" "):e}const rn=e=>({isEnabled:t=>e.some((e=>!!t[e]))}),on={measureLayout:rn(["layout","layoutId","drag"]),animation:rn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:rn(["exit"]),drag:rn(["drag","dragControls"]),focus:rn(["whileFocus"]),hover:rn(["whileHover","onHoverStart","onHoverEnd"]),tap:rn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:rn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:rn(["whileInView","onViewportEnter","onViewportLeave"])};function an(e){const t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}const sn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ln=1;const cn=(0,b.createContext)({});class un extends b.Component{getSnapshotBeforeUpdate(){const{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}const dn=(0,b.createContext)({}),fn=Symbol.for("motionComponentSymbol");function pn({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)"projectionNodeConstructor"===t?on.projectionNodeConstructor=e[t]:on[t].Component=e[t]}(e);const a=(0,b.forwardRef)((function(a,s){const l={...(0,b.useContext)($t),...a,layoutId:mn(a)},{isStatic:c}=l;let u=null;const d=tn(a),f=c?void 0:an((()=>{if(sn.hasEverUpdated)return ln++})),p=o(a,c);if(!c&&Ft){d.visualElement=qt(i,p,l,t);const r=(0,b.useContext)(Yt).strict,o=(0,b.useContext)(dn);d.visualElement&&(u=d.visualElement.loadFeatures(l,r,e,f,n||on.projectionNodeConstructor,o))}return b.createElement(un,{visualElement:d.visualElement,props:l},u,b.createElement(Wt.Provider,{value:d},r(i,a,f,function(e,t,n){return(0,b.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Kt(n)&&(n.current=r))}),[t])}(p,d.visualElement,s),p,c,d.visualElement)))}));return a[fn]=i,a}function mn({layoutId:e}){const t=(0,b.useContext)(cn).id;return t&&void 0!==e?t+"-"+e:e}function hn(e){function t(t,n={}){return pn(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 gn=["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 vn(e){return"string"==typeof e&&!e.includes("-")&&!!(gn.indexOf(e)>-1||/[A-Z]/.test(e))}const bn={};const yn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(yn);function xn(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!bn[e]||"opacity"===e)}const _n=e=>!!(null==e?void 0:e.getVelocity),En={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cn=(e,t)=>yn.indexOf(e)-yn.indexOf(t);function kn(e){return e.startsWith("--")}const Sn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Tn=(e,t,n)=>Math.min(Math.max(n,e),t),Nn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Rn={...Nn,transform:e=>Tn(0,1,e)},In={...Nn,default:1},Mn=e=>Math.round(1e5*e)/1e5,Pn=/(-)?([\d]*\.?[\d])+/g,On=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Dn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function An(e){return"string"==typeof e}const Ln=e=>({test:t=>An(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),zn=Ln("deg"),Bn=Ln("%"),Fn=Ln("px"),Vn=Ln("vh"),Hn=Ln("vw"),jn={...Bn,parse:e=>Bn.parse(e)/100,transform:e=>Bn.transform(100*e)},$n={...Nn,transform:Math.round},Wn={borderWidth:Fn,borderTopWidth:Fn,borderRightWidth:Fn,borderBottomWidth:Fn,borderLeftWidth:Fn,borderRadius:Fn,radius:Fn,borderTopLeftRadius:Fn,borderTopRightRadius:Fn,borderBottomRightRadius:Fn,borderBottomLeftRadius:Fn,width:Fn,maxWidth:Fn,height:Fn,maxHeight:Fn,size:Fn,top:Fn,right:Fn,bottom:Fn,left:Fn,padding:Fn,paddingTop:Fn,paddingRight:Fn,paddingBottom:Fn,paddingLeft:Fn,margin:Fn,marginTop:Fn,marginRight:Fn,marginBottom:Fn,marginLeft:Fn,rotate:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scale:In,scaleX:In,scaleY:In,scaleZ:In,skew:zn,skewX:zn,skewY:zn,distance:Fn,translateX:Fn,translateY:Fn,translateZ:Fn,x:Fn,y:Fn,z:Fn,perspective:Fn,transformPerspective:Fn,opacity:Rn,originX:jn,originY:jn,originZ:Fn,zIndex:$n,fillOpacity:Rn,strokeOpacity:Rn,numOctaves:$n};function Un(e,t,n,r){const{style:o,vars:i,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let c=!1,u=!1,d=!0;for(const e in t){const n=t[e];if(kn(e)){i[e]=n;continue}const r=Wn[e],f=Sn(n,r);if(wn.has(e)){if(c=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(u=!0,l[e]=f):o[e]=f}if(t.transform||(c||r?o.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let a="";t.sort(Cn);for(const n of t)a+=`${En[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,o?"":a):r&&o&&(a="none"),a}(e,n,d,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=l;o.transformOrigin=`${e} ${t} ${n}`}}const Gn=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Yn(e,t,n){for(const r in t)_n(t[r])||xn(r,n)||(e[r]=t[r])}function qn(e,t,n){const r={};return Yn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,b.useMemo)((()=>{const r={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return Un(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Kn(e,t,n){const r={},o=qn(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")),r.style=o,r}const Xn=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function Zn(e){return Xn.has(e)}let Jn=e=>!Zn(e);try{(Qn=require("@emotion/is-prop-valid").default)&&(Jn=e=>e.startsWith("on")?!Zn(e):Qn(e))}catch(e){}var Qn;function er(e,t,n){return"string"==typeof e?e:Fn.transform(t+n*e)}const tr={offset:"stroke-dashoffset",array:"stroke-dasharray"},nr={offset:"strokeDashoffset",array:"strokeDasharray"};function rr(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Un(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${er(t,e.x,e.width)} ${er(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?tr:nr;e[i.offset]=Fn.transform(-r);const a=Fn.transform(t),s=Fn.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const or=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),ir=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ar(e,t,n,r){const o=(0,b.useMemo)((()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return rr(n,t,{enableHardwareAcceleration:!1},ir(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Yn(t,e.style,e),o.style={...t,...o.style}}return o}function sr(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(vn(t)?ar:Kn)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)(Jn(o)||!0===n&&Zn(o)||!t&&!Zn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o};return r&&(c["data-projection-id"]=r),(0,b.createElement)(t,c)}}const lr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function cr(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 ur=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 dr(e,t,n,r){cr(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(ur.has(n)?n:lr(n),t.attrs[n])}function fr(e){const{style:t}=e,n={};for(const r in t)(_n(t[r])||xn(r,e))&&(n[r]=t[r]);return n}function pr(e){const t=fr(e);for(const n in e)if(_n(e[n])){t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function mr(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}const hr=e=>Array.isArray(e),gr=e=>hr(e)?e[e.length-1]||0:e;function vr(e){const t=_n(e)?e.get():e;return(e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue))(t)?t.toValue():t}const br=e=>(t,n)=>{const r=(0,b.useContext)(Wt),o=(0,b.useContext)(Ut),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:yr(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():an(i)};function yr(e,t,n,r){const o={},i=r(e);for(const e in i)o[e]=vr(i[e]);let{initial:a,animate:s}=e;const l=Qt(e),c=en(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&&!Zt(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=mr(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 wr={useVisualState:br({scrapeMotionValuesFromProps:pr,createRenderState:or,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rr(n,r,{enableHardwareAcceleration:!1},ir(t.tagName),e.transformTemplate),dr(t,n)}})},xr={useVisualState:br({scrapeMotionValuesFromProps:fr,createRenderState:Gn})};var _r;function Er(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Cr(e,t,n,r){(0,b.useEffect)((()=>{const o=e.current;if(n&&o)return Er(o,t,n,r)}),[e,t,n,r])}function kr(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Sr(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(_r||(_r={}));const Tr={pageX:0,pageY:0};function Nr(e,t="page"){const n=e.touches[0]||e.changedTouches[0]||Tr;return{x:n[t+"X"],y:n[t+"Y"]}}function Rr(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Ir(e,t="page"){return{point:Sr(e)?Nr(e,t):Rr(e,t)}}const Mr=(e,t=!1)=>{const n=t=>e(t,Ir(t));return t?(r=n,e=>{const t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n;var r},Pr={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Or={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Dr(e){return Ft&&null===window.onpointerdown?e:Ft&&null===window.ontouchstart?Or[e]:Ft&&null===window.onmousedown?Pr[e]:e}function Ar(e,t,n,r){return Er(e,Dr(t),Mr(n,"pointerdown"===t),r)}function Lr(e,t,n,r){return Cr(e,Dr(t),n&&Mr(n,"pointerdown"===t),r)}function zr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Br=zr("dragHorizontal"),Fr=zr("dragVertical");function Vr(e){let t=!1;if("y"===e)t=Fr();else if("x"===e)t=Br();else{const e=Br(),n=Fr();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Hr(){const e=Vr(!0);return!e||(e(),!1)}function jr(e,t,n){return(r,o)=>{kr(r)&&!Hr()&&(e.animationState&&e.animationState.setActive(_r.Hover,t),n&&n(r,o))}}const $r=(e,t)=>!!t&&(e===t||$r(e,t.parentElement));function Wr(e){return(0,b.useEffect)((()=>()=>e()),[])}const Ur=(e,t)=>n=>t(e(n)),Gr=(...e)=>e.reduce(Ur);const Yr=("undefined"==typeof process||process.env,"production"),qr=new Set;function Kr(e,t,n){e||qr.has(t)||(console.warn(t),n&&console.warn(n),qr.add(t))}const Xr=new WeakMap,Zr=new WeakMap,Jr=e=>{const t=Xr.get(e.target);t&&t(e)},Qr=e=>{e.forEach(Jr)};function eo(e,t,n){const r=function({root:e,...t}){const n=e||document;Zr.has(n)||Zr.set(n,{});const r=Zr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Qr,{root:e,...t})),r[o]}(t);return Xr.set(e,n),r.observe(e),()=>{Xr.delete(e),r.unobserve(e)}}const to={some:0,all:1};function no(e,t,n,{root:r,margin:o,amount:i="some",once:a}){(0,b.useEffect)((()=>{if(!e||!n.current)return;const s={root:null==r?void 0:r.current,rootMargin:o,threshold:"number"==typeof i?i:to[i]};return eo(n.current,s,(e=>{const{isIntersecting:r}=e;if(t.isInView===r)return;if(t.isInView=r,a&&!r&&t.hasEnteredView)return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(_r.InView,r);const o=n.getProps(),i=r?o.onViewportEnter:o.onViewportLeave;i&&i(e)}))}),[e,r,o,i])}function ro(e,t,n,{fallback:r=!0}){(0,b.useEffect)((()=>{e&&r&&("production"!==Yr&&Kr(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame((()=>{t.hasEnteredView=!0;const{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(_r.InView,!0)})))}),[e])}const oo=e=>t=>(e(t),null),io={inView:oo((function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=(0,b.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ro:no)(a,i.current,e,o)})),tap:oo((function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,a=(0,b.useRef)(!1),s=(0,b.useRef)(null),l={passive:!(t||e||n||p)};function c(){s.current&&s.current(),s.current=null}function u(){return c(),a.current=!1,o.animationState&&o.animationState.setActive(_r.Tap,!1),!Hr()}function d(t,r){u()&&($r(o.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){u()&&n&&n(e,t)}function p(e,n){c(),a.current||(a.current=!0,s.current=Gr(Ar(window,"pointerup",d,l),Ar(window,"pointercancel",f,l)),o.animationState&&o.animationState.setActive(_r.Tap,!0),t&&t(e,n))}Lr(o,"pointerdown",i?p:void 0,l),Wr(c)})),focus:oo((function({whileFocus:e,visualElement:t}){const{animationState:n}=t;Cr(t,"focus",e?()=>{n&&n.setActive(_r.Focus,!0)}:void 0),Cr(t,"blur",e?()=>{n&&n.setActive(_r.Focus,!1)}:void 0)})),hover:oo((function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){Lr(r,"pointerenter",e||n?jr(r,!0,e):void 0,{passive:!e}),Lr(r,"pointerleave",t||n?jr(r,!1,t):void 0,{passive:!t})}))};function ao(){const e=(0,b.useContext)(Ut);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,b.useId)();(0,b.useEffect)((()=>r(o)),[]);return!t&&n?[!1,()=>n&&n(o)]:[!0]}function so(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}const lo=e=>/^\-?\d*\.?\d+$/.test(e),co=e=>/^0[^.\s]+$/.test(e),uo={delta:0,timestamp:0},fo=1/60*1e3,po="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),mo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(po())),fo);let ho=!0,go=!1,vo=!1;const bo=["read","update","preRender","render","postRender"],yo=bo.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],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),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>go=!0)),e)),{}),wo=bo.reduce(((e,t)=>{const n=yo[t];return e[t]=(e,t=!1,r=!1)=>(go||ko(),n.schedule(e,t,r)),e}),{}),xo=bo.reduce(((e,t)=>(e[t]=yo[t].cancel,e)),{}),_o=bo.reduce(((e,t)=>(e[t]=()=>yo[t].process(uo),e)),{}),Eo=e=>yo[e].process(uo),Co=e=>{go=!1,uo.delta=ho?fo:Math.max(Math.min(e-uo.timestamp,40),1),uo.timestamp=e,vo=!0,bo.forEach(Eo),vo=!1,go&&(ho=!1,mo(Co))},ko=()=>{go=!0,ho=!0,vo||mo(Co)};function So(e,t){-1===e.indexOf(t)&&e.push(t)}function To(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class No{constructor(){this.subscriptions=[]}add(e){return So(this.subscriptions,e),()=>To(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}}function Ro(e,t){return t?e*(1e3/t):0}class Io{constructor(e,t={}){var n;this.version="7.10.3",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}=uo;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,wo.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=()=>wo.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){return this.events[e]||(this.events[e]=new No),this.events[e].add(t)}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e){this.passiveEffect=e}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}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ro(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.stopAnimation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function Mo(e,t){return new Io(e,t)}const Po=(e,t)=>n=>Boolean(An(n)&&Dn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Oo=(e,t,n)=>r=>{if(!An(r))return r;const[o,i,a,s]=r.match(Pn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Do={...Nn,transform:e=>Math.round((e=>Tn(0,255,e))(e))},Ao={test:Po("rgb","red"),parse:Oo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Do.transform(e)+", "+Do.transform(t)+", "+Do.transform(n)+", "+Mn(Rn.transform(r))+")"};const Lo={test:Po("#"),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:Ao.transform},zo={test:Po("hsl","hue"),parse:Oo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bn.transform(Mn(t))+", "+Bn.transform(Mn(n))+", "+Mn(Rn.transform(r))+")"},Bo={test:e=>Ao.test(e)||Lo.test(e)||zo.test(e),parse:e=>Ao.test(e)?Ao.parse(e):zo.test(e)?zo.parse(e):Lo.parse(e),transform:e=>An(e)?e:e.hasOwnProperty("red")?Ao.transform(e):zo.transform(e)},Fo="${c}",Vo="${n}";function Ho(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(On);o&&(n=o.length,e=e.replace(On,Fo),t.push(...o.map(Bo.parse)));const i=e.match(Pn);return i&&(r=i.length,e=e.replace(Pn,Vo),t.push(...i.map(Nn.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function jo(e){return Ho(e).values}function $o(e){const{values:t,numColors:n,tokenised:r}=Ho(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Fo:Vo,r<n?Bo.transform(e[r]):Mn(e[r]));return t}}const Wo=e=>"number"==typeof e?0:e;const Uo={test:function(e){var t,n;return isNaN(e)&&An(e)&&((null===(t=e.match(Pn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(On))||void 0===n?void 0:n.length)||0)>0},parse:jo,createTransformer:$o,getAnimatableNone:function(e){const t=jo(e);return $o(e)(t.map(Wo))}},Go=new Set(["brightness","contrast","saturate","opacity"]);function Yo(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Pn)||[];if(!r)return e;const o=n.replace(r,"");let i=Go.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const qo=/([a-z-]*)\(.*?\)/g,Ko={...Uo,getAnimatableNone:e=>{const t=e.match(qo);return t?t.map(Yo).join(" "):e}},Xo={...Wn,color:Bo,backgroundColor:Bo,outlineColor:Bo,fill:Bo,stroke:Bo,borderColor:Bo,borderTopColor:Bo,borderRightColor:Bo,borderBottomColor:Bo,borderLeftColor:Bo,filter:Ko,WebkitFilter:Ko},Zo=e=>Xo[e];function Jo(e,t){var n;let r=Zo(e);return r!==Ko&&(r=Uo),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}const Qo=e=>t=>t.test(e),ei=[Nn,Fn,Bn,zn,Hn,Vn,{test:e=>"auto"===e,parse:e=>e}],ti=e=>ei.find(Qo(e)),ni=[...ei,Bo,Uo],ri=e=>ni.find(Qo(e));function oi(e,t,n){const r=e.getProps();return mr(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))}function ii(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mo(n))}function ai(e,t){const n=oi(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){ii(e,t,gr(i[t]))}}function si(e,t){if(!t)return;return(t[e]||t.default||t).from}function li(e){return Boolean(_n(e)&&e.add)}function ci(e,t){const{MotionAppearAnimations:n}=window,r=((e,t)=>`${e}: ${t}`)(e,wn.has(t)?"transform":t),o=n&&n.get(r);return o?(wo.render((()=>{try{o.cancel(),n.delete(r)}catch(e){}})),o.currentTime||0):0}const ui="data-"+lr("framerAppearId");const di=e=>1e3*e,fi=!1,pi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mi=e=>t=>1-e(1-t),hi=e=>e*e,gi=mi(hi),vi=pi(hi),bi=(e,t,n)=>-n*e+n*t+e;function yi(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 wi=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},xi=[Lo,Ao,zo];function _i(e){const t=(e=>xi.find((t=>t.test(e))))(e);Boolean(t);let n=t.parse(e);return t===zo&&(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=yi(s,r,e+1/3),i=yi(s,r,e),a=yi(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 Ei=(e,t)=>{const n=_i(e),r=_i(t),o={...n};return e=>(o.red=wi(n.red,r.red,e),o.green=wi(n.green,r.green,e),o.blue=wi(n.blue,r.blue,e),o.alpha=bi(n.alpha,r.alpha,e),Ao.transform(o))};function Ci(e,t){return"number"==typeof e?n=>bi(e,t,n):Bo.test(e)?Ei(e,t):Ti(e,t)}const ki=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Ci(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Si=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ci(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Ti=(e,t)=>{const n=Uo.createTransformer(t),r=Ho(e),o=Ho(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Gr(ki(r.values,o.values),n):n=>`${n>0?t:e}`},Ni=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ri=(e,t)=>n=>bi(e,t,n);function Ii(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Ri:"string"==typeof e?Bo.test(e)?Ei:Ti:Array.isArray(e)?ki:"object"==typeof e?Si:Ri}(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]:t;i=Gr(e,i)}r.push(i)}return r}function Mi(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ii(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=Ni(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Tn(e[0],e[i-1],t)):l}const Pi=e=>e,Oi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Di(e,t,n,r){if(e===t&&n===r)return Pi;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Oi(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Oi(o(e),t,r)}const Ai=e=>1-Math.sin(Math.acos(e)),Li=mi(Ai),zi=pi(Li),Bi=Di(.33,1.53,.69,.99),Fi=mi(Bi),Vi=pi(Fi),Hi={linear:Pi,easeIn:hi,easeInOut:vi,easeOut:gi,circIn:Ai,circInOut:zi,circOut:Li,backIn:Fi,backInOut:Vi,backOut:Bi,anticipate:e=>(e*=2)<1?.5*Fi(e):.5*(2-Math.pow(2,-10*(e-1)))},ji=e=>{if(Array.isArray(e)){e.length;const[t,n,r,o]=e;return Di(t,n,r,o)}return"string"==typeof e?Hi[e]:e};function $i({keyframes:e,ease:t=vi,times:n,duration:r=300}){e=[...e];const o=$i[0],i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(t)?t.map(ji):ji(t),a={done:!1,value:o},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===$i.length?n:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(e),r);function l(){return Mi(s,e,{ease:Array.isArray(i)?i:(t=e,n=i,t.map((()=>n||vi)).splice(0,t.length-1))});var t,n}let c=l();return{next:e=>(a.value=c(e),a.done=e>=r,a),flipTarget:()=>{e.reverse(),c=l()}}}const Wi=.001;function Ui({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Tn(.05,1,a),e=Tn(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Gi(t,a),l=Math.exp(-o);return Wi-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=Gi(Math.pow(t,2),a);return(-o(t)+Wi>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,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}}}function Gi(e,t){return e*Math.sqrt(1-t*t)}const Yi=["duration","bounce"],qi=["stiffness","damping","mass"];function Ki(e,t){return t.some((t=>void 0!==e[t]))}function Xi({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let o=e[0],i=e[e.length-1];const 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(!Ki(e,qi)&&Ki(e,Yi)){const n=Ui(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r);let p=Zi,m=u?-u/1e3:0;const h=l/(2*Math.sqrt(s*c));function g(){const e=i-o,t=Math.sqrt(s/c)/1e3;if(void 0===n&&(n=Math.min(Math.abs(i-o)/100,.4)),h<1){const n=Gi(t,h);p=r=>{const o=Math.exp(-h*t*r);return i-o*((m+h*t*e)/n*Math.sin(n*r)+e*Math.cos(n*r))}}else if(1===h)p=n=>i-Math.exp(-t*n)*(e+(m+t*e)*n);else{const n=t*Math.sqrt(h*h-1);p=r=>{const o=Math.exp(-h*t*r),a=Math.min(n*r,300);return i-o*((m+h*t*e)*Math.sinh(a)+n*e*Math.cosh(a))/n}}}return g(),{next:e=>{const r=p(e);if(f)a.done=e>=d;else{let o=m;if(0!==e)if(h<1){const t=Math.max(0,e-5);o=Ro(r-p(t),e-t)}else o=0;const s=Math.abs(o)<=t,l=Math.abs(i-r)<=n;a.done=s&&l}return a.value=a.done?i:r,a},flipTarget:()=>{m=-m,[o,i]=[i,o],g()}}}Xi.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Zi=e=>0;const Ji={decay:function({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a=e[0],s={done:!1,value:a};let l=n*t;const c=a+l,u=void 0===i?c:i(c);return u!==c&&(l=u-a),{next:e=>{const t=-l*Math.exp(-e/r);return s.done=!(t>o||t<-o),s.value=s.done?u:u+t,s},flipTarget:()=>{}}},keyframes:$i,tween:$i,spring:Xi};function Qi(e,t,n=0){return e-t-n}const ea=e=>{const t=({delta:t})=>e(t);return{start:()=>wo.update(t,!0),stop:()=>xo.update(t)}};function ta({duration:e,driver:t=ea,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:i=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:d,onUpdate:f,type:p="keyframes",...m}){var h,g;let v,b,y,w=0,x=e,_=!1,E=!0;const C=Ji[a.length>2?"keyframes":p],k=a[0],S=a[a.length-1];(null===(g=(h=C).needsInterpolation)||void 0===g?void 0:g.call(h,k,S))&&(y=Mi([0,100],[k,S],{clamp:!1}),a=[0,100]);const T=C({...m,duration:e,keyframes:a});function N(){w++,"reverse"===o?(E=w%2==0,n=function(e,t=0,n=0,r=!0){return r?Qi(t+-e,t,n):t-(e-t)+n}(n,x,i,E)):(n=Qi(n,x,i),"mirror"===o&&T.flipTarget()),_=!1,d&&d()}function R(e){if(E||(e=-e),n+=e,!_){const e=T.next(Math.max(0,n));b=e.value,y&&(b=y(b)),_=E?e.done:n<=0}f&&f(b),_&&(0===w&&(x=void 0!==x?x:n),w<r?function(e,t,n,r){return r?e>=t+n:e<=-n}(n,x,i,E)&&N():(v.stop(),u&&u()))}return s&&(l&&l(),v=t(R),v.start()),{stop:()=>{c&&c(),v.stop()},sample:e=>T.next(Math.max(0,e))}}const na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ra={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:na([0,.65,.55,1]),circOut:na([.55,0,1,.45]),backIn:na([.31,.01,.66,-.59]),backOut:na([.33,1.53,.69,.99])};function oa(e){if(e)return Array.isArray(e)?na(e):ra[e]}function ia(e,t,{onUpdate:n,onComplete:r,...o}){let{keyframes:i,duration:a=.3,elapsed:s=0,ease:l}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&ra[c])){const e=ta(o);let t={done:!1,value:i[0]};const n=[];let r=0;for(;!t.done;)t=e.sample(r),n.push(t.value),r+=10;i=n,a=r-10,l="linear"}var c;const u=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:o,easing:oa(s),fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,i,{...o,delay:-s,duration:a,ease:l});return u.onfinish=()=>{e.set(i[i.length-1]),r&&r()},()=>{const{currentTime:t}=u;if(t){const n=ta(o);e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}wo.update((()=>u.cancel()))}}function aa(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(xo.read(r),e(i-t))};return wo.read(r,!0),()=>xo.read(r)}function sa({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),()=>{});return t?aa(o,-t):o()}const la=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ca=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ua=()=>({type:"keyframes",ease:"linear",duration:.3}),da={type:"keyframes",duration:.8},fa={x:la,y:la,z:la,rotate:la,rotateX:la,rotateY:la,rotateZ:la,scaleX:ca,scaleY:ca,scale:ca,opacity:ua,backgroundColor:ua,color:ua,default:ca},pa=(e,{keyframes:t})=>{if(t.length>2)return da;return(fa[e]||fa.default)(t[1])},ma=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Uo.test(t)||t.startsWith("url(")));function ha(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function ga(e){return"number"==typeof e?0:Jo("",e)}function va(e,t){return e[t]||e.default||e}const ba={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ya={},wa={};for(const e in ba)wa[e]=()=>(void 0===ya[e]&&(ya[e]=ba[e]()),ya[e]);const xa=new Set(["opacity"]),_a=(e,t,n,r={})=>o=>{const i=va(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=di(a);const l=function(e,t,n,r){const o=ma(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=Jo(t,n):ha(i)&&"string"==typeof n?i=ga(n):!Array.isArray(n)&&ha(n)&&"string"==typeof i&&(n=ga(i)),Array.isArray(n)?(null===n[0]&&(n[0]=i),n):[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=ma(e,c),f=ma(e,u);let p={keyframes:l,velocity:t.getVelocity(),...i,elapsed:s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(!d||!f||fi||!1===i.type)return sa(p);if("inertia"===i.type){const e=function({keyframes:e,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){const m=e[0];let h;function g(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function b(e){null==h||h.stop(),h=ta({keyframes:[0,1],velocity:0,...e,driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p})}function y(e){b({type:"spring",stiffness:a,damping:s,restDelta:l,...e})}if(g(m))y({velocity:t,keyframes:[m,v(m)]});else{let e=o*t+m;void 0!==c&&(e=c(e));const r=v(e),a=r===n?-1:1;let s,u;const d=e=>{s=u,u=e,t=Ro(e-s,uo.delta),(1===a&&e>r||-1===a&&e<r)&&y({keyframes:[e,r],velocity:t})};b({type:"decay",keyframes:[m,0],velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:g(e)?d:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(p);return()=>e.stop()}(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,...c}){return!!Object.keys(c).length})(i)||(p={...p,...pa(e,p)}),p.duration&&(p.duration=di(p.duration)),p.repeatDelay&&(p.repeatDelay=di(p.repeatDelay));const m=t.owner,h=m&&m.current;if(wa.waapi()&&xa.has(e)&&!p.repeatDelay&&"mirror"!==p.repeatType&&0!==p.damping&&m&&h instanceof HTMLElement&&!m.getProps().onUpdate)return ia(t,e,p);{const e=ta(p);return()=>e.stop()}};function Ea(e,t,n={}){var r;const o=oi(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Ca(e,o,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;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(ka).forEach(((e,r)=>{a.push(Ea(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}return Promise.all([a(),s(n.delay)])}function Ca(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(a=r);const u=[],d=o&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[o]);for(const t in l){const r=e.getValue(t),o=l[t];if(!r||void 0===o||d&&Sa(d,t))continue;let i={delay:n,elapsed:0,...a};if(e.shouldReduceMotion&&wn.has(t)&&(i={...i,type:!1,delay:0}),!r.hasAnimated){const n=e.getProps()[ui];n&&(i.elapsed=ci(n,t))}let s=r.start(_a(t,r,o,i));li(c)&&(c.add(t),s=s.then((()=>c.remove(t)))),u.push(s)}return Promise.all(u).then((()=>{s&&ai(e,s)}))}function ka(e,t){return e.sortNodePosition(t)}function Sa({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}const Ta=[_r.Animate,_r.InView,_r.Focus,_r.Hover,_r.Tap,_r.Drag,_r.Exit],Na=[...Ta].reverse(),Ra=Ta.length;function Ia(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=>Ea(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Ea(e,t,n);else{const o="function"==typeof t?oi(e,t,n.custom):t;r=Ca(e,o,n)}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Ma(e){let t=Ia(e);const n={[_r.Animate]:Oa(!0),[_r.InView]:Oa(),[_r.Hover]:Oa(),[_r.Tap]:Oa(),[_r.Drag]:Oa(),[_r.Focus]:Oa(),[_r.Exit]:Oa()};let r=!0;const o=(t,n)=>{const r=oi(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<Ra;t++){const p=Na[t],m=n[p],h=void 0!==s[p]?s[p]:l[p],g=Xt(h),v=p===a?m.isActive:null;!1===v&&(f=t);let b=h===l[p]&&h!==s[p]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===v||!h&&!m.prevProp||Zt(h)||"boolean"==typeof h)continue;const y=Pa(m.prevProp,h);let w=y||p===a&&m.isActive&&!b&&g||t>f&&g;const x=Array.isArray(h)?h:[h];let _=x.reduce(o,{});!1===v&&(_={});const{prevResolvedValues:E={}}=m,C={...E,..._},k=e=>{w=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in C){const t=_[e],n=E[e];d.hasOwnProperty(e)||(t!==n?hr(t)&&hr(n)?!so(t,n)||y?k(e):m.protectedKeys[e]=!0:void 0!==t?k(e):u.add(e):void 0!==t&&u.has(e)?k(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=_,m.isActive&&(d={...d,..._}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&c.push(...x.map((e=>({animation:e,options:{type:p,...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 p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?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 Pa(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!so(t,e)}function Oa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const Da={animation:oo((({visualElement:e,animate:t})=>{e.animationState||(e.animationState=Ma(e)),Zt(t)&&(0,b.useEffect)((()=>t.subscribe(e)),[t])})),exit:oo((e=>{const{custom:t,visualElement:n}=e,[r,o]=ao(),i=(0,b.useContext)(Ut);(0,b.useEffect)((()=>{n.isPresent=r;const e=n.animationState&&n.animationState.setActive(_r.Exit,!r,{custom:i&&i.custom||t});e&&!r&&e.then(o)}),[r])}))},Aa=(e,t)=>Math.abs(e-t);class La{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=Fa(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Aa(e.x,t.x),r=Aa(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}=uo;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=za(t,this.transformPagePoint),kr(e)&&0===e.buttons?this.handlePointerUp(e,t):wo.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r}=this.handlers,o=Fa(za(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},Sr(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;const r=za(Ir(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=uo;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Fa(r,this.history)),this.removeListeners=Gr(Ar(window,"pointermove",this.handlePointerMove),Ar(window,"pointerup",this.handlePointerUp),Ar(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xo.update(this.updatePoint)}}function za(e,t){return t?{point:t(e.point)}:e}function Ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fa({point:e},t){return{point:e,delta:Ba(e,Ha(t)),offset:Ba(e,Va(t)),velocity:ja(t,.1)}}function Va(e){return e[0]}function Ha(e){return e[e.length-1]}function ja(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ha(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;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 $a(e){return e.max-e.min}function Wa(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ua(e,t,n,r=.5){e.origin=r,e.originPoint=bi(t.min,t.max,e.origin),e.scale=$a(n)/$a(t),(Wa(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=bi(n.min,n.max,e.origin)-e.originPoint,(Wa(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ga(e,t,n,r){Ua(e.x,t.x,n.x,null==r?void 0:r.originX),Ua(e.y,t.y,n.y,null==r?void 0:r.originY)}function Ya(e,t,n){e.min=n.min+t.min,e.max=e.min+$a(t)}function qa(e,t,n){e.min=t.min-n.min,e.max=e.min+$a(t)}function Ka(e,t,n){qa(e.x,t.x,n.x),qa(e.y,t.y,n.y)}function Xa(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 Za(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 Ja=.35;function Qa(e,t,n){return{min:es(e,t),max:es(e,n)}}function es(e,t){return"number"==typeof e?e:e[t]||0}function ts(e){return[e("x"),e("y")]}function ns({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rs(e){return void 0===e||1===e}function os({scale:e,scaleX:t,scaleY:n}){return!rs(e)||!rs(t)||!rs(n)}function is(e){return os(e)||as(e)||e.z||e.rotate||e.rotateX||e.rotateY}function as(e){return ss(e.x)||ss(e.y)}function ss(e){return e&&"0%"!==e}function ls(e,t,n){return n+t*(e-n)}function cs(e,t,n,r,o){return void 0!==o&&(e=ls(e,o,r)),ls(e,n,r)+t}function us(e,t=0,n=1,r,o){e.min=cs(e.min,t,n,r,o),e.max=cs(e.max,t,n,r,o)}function ds(e,{x:t,y:n}){us(e.x,t.translate,t.scale,t.originPoint),us(e.y,n.translate,n.scale,n.originPoint)}function fs(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ps(e,t){e.min=e.min+t,e.max=e.max+t}function ms(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=bi(e.min,e.max,i);us(e,t[n],t[r],a,t.scale)}const hs=["x","scaleX","originX"],gs=["y","scaleY","originY"];function vs(e,t){ms(e.x,t,hs),ms(e.y,t,gs)}function bs(e,t){return ns(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 ys=new WeakMap;class ws{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={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new La(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Ir(e,"page").point)},onStart:(e,t)=>{var n;const{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();(!r||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Vr(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ts((e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(Bn.test(r)){const o=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.layoutBox[e];if(o){r=$a(o)*(parseFloat(r)/100)}}this.originPoint[e]=r})),null==i||i(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(_r.Drag,!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&&(null==o||o(this.currentDirection)));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==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();null==o||o(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(_r.Drag,!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!xs(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?bi(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?bi(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&&Kt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Xa(e.x,n,o),y:Xa(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ja){return!1===e?e=0:!0===e&&(e=Ja),{x:Qa(e,"left","right"),y:Qa(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ts((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||!Kt(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=bs(e,n),{scroll:o}=t;return o&&(ps(r.x,o.offset.x),ps(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Za(e.x,t.x),y:Za(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=ns(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ts((a=>{if(!xs(a,t,this.currentDirection))return;let l=(null==s?void 0: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(_a(e,n,0,t))}stopAnimation(){ts((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){var t;const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(e,(null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])||0)}snapToCursor(e){ts((t=>{const{drag:n}=this.getProps();if(!xs(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]-bi(n,i,.5))}}))}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ts((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();o[e]=function(e,t){let n=.5;const r=$a(e),o=$a(t);return o>r?n=Ni(t.min,t.max-r,e.min):r>o&&(n=Ni(e.min,e.max-o,t.min)),Tn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),ts((e=>{if(!xs(e,t,null))return;const n=this.getAxisMotionValue(e),{min:r,max:i}=this.constraints[e];n.set(bi(r,i,o[e]))}))}addListeners(){var e;if(!this.visualElement.current)return;ys.set(this.visualElement,this);const t=Ar(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),n=()=>{const{dragConstraints:e}=this.getProps();Kt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();const i=Er(window,"resize",(()=>this.scalePositionWithinConstraints())),a=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ts((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),t(),o(),null==a||a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ja,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function xs(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const _s={pan:oo((function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,a=(0,b.useRef)(null),{transformPagePoint:s}=(0,b.useContext)($t),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,b.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(l)})),Lr(o,"pointerdown",i&&function(e){a.current=new La(e,l,{transformPagePoint:s})}),Wr((()=>a.current&&a.current.end()))})),drag:oo((function(e){const{dragControls:t,visualElement:n}=e,r=an((()=>new ws(n)));(0,b.useEffect)((()=>t&&t.subscribe(r)),[r,t]),(0,b.useEffect)((()=>r.addListeners()),[r])}))};function Es(e){return"string"==typeof e&&e.startsWith("var(--")}const Cs=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ks(e,t,n=1){const[r,o]=function(e){const t=Cs.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Es(o)?ks(o,t,n+1):o}const Ss=new Set(["width","height","top","left","right","bottom","x","y"]),Ts=e=>Ss.has(e),Ns=(e,t)=>{e.set(t,!1),e.set(t)},Rs=e=>e===Nn||e===Fn;var Is;!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Is||(Is={}));const Ms=(e,t)=>parseFloat(e.split(", ")[t]),Ps=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ms(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Ms(t[1],e):0}},Os=new Set(["x","y","z"]),Ds=yn.filter((e=>!Os.has(e)));const As={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:Ps(4,13),y:Ps(5,14)},Ls=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Ts);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=ti(c);const d=t[o];let f;if(hr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=ti(c);for(let n=t;n<e;n++)f?ti(d[n]):(f=ti(d[n]),f===u||Rs(u)&&Rs(f))}else f=ti(d);if(u!==f)if(Rs(u)&&Rs(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Fn&&(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 Ds.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],Ns(l,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]=As[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);Ns(r,s[n]),e[n]=As[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Ft&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function zs(e,t,n,r){return(e=>Object.keys(e).some(Ts))(t)?Ls(e,t,n,r):{target:t,transitionEnd:r}}const Bs=(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(!Es(t))return;const n=ks(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Es(o))continue;const i=ks(o,r);i&&(t[e]=i,n&&void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return zs(e,t=o.target,n,r=o.transitionEnd)};const Fs=Object.keys(on),Vs=Fs.length,Hs=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const js=["initial",...Ta],$s=js.length;class Ws extends class{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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=()=>wo.render(this.render,!1,!0);const{latestValues:i,renderState:a}=r;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Qt(t),this.isVariantNode=en(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(const e in l){const t=l[e];void 0!==i[e]&&_n(t)&&(t.set(i[e],!1),li(s)&&s.add(e))}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ht.current||jt(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Vt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;null===(e=this.projection)||void 0===e||e.unmount(),xo.update(this.notifyUpdate),xo.render(this.render),this.valueSubscriptions.forEach((e=>e())),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const e in this.events)this.events[e].clear();this.current=null}bindToMotionValue(e,t){const n=wn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&wo.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(e,t,n,r,o,i){const a=[];for(let t=0;t<Vs;t++){const n=Fs[t],{isEnabled:r,Component:o}=on[n];r(e)&&o&&a.push((0,b.createElement)(o,{key:n,...e,visualElement:this}))}if(!this.projection&&o){this.projection=new o(r,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:a,dragConstraints:s,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(a)||s&&Kt(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;t<Hs.length;t++){const n=Hs[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(_n(i))e.addValue(o,i),li(r)&&r.add(o);else if(_n(a))e.addValue(o,Mo(i,{owner:e})),li(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,Mo(void 0!==t?t:i))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e),this.prevMotionValues)}getProps(){return this.props}getVariant(e){var t;return null===(t=this.props.variants)||void 0===t?void 0:t[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var e;return this.isVariantNode?this:null===(e=this.parent)||void 0===e?void 0:e.getClosestVariantNode()}getVariantContext(e=!1){var t,n;if(e)return null===(t=this.parent)||void 0===t?void 0:t.getVariantContext();if(!this.isControllingVariants){const e=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const r={};for(let e=0;e<$s;e++){const t=js[e],n=this.props[t];(Xt(n)||!1===n)&&(r[t]=n)}return r}addVariantChild(e){var t;const n=this.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),()=>n.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===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=Mo(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?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=mr(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||_n(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 No),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}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){var r;const o={};for(const i in e){const e=si(i,t);o[i]=void 0!==e?e:null===(r=n.getValue(i))||void 0===r?void 0:r.get()}return o}(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&&(lo(c)||co(c))?c=parseFloat(c):!ri(c)&&Uo.test(l)&&(c=Jo(a,l)),e.addValue(a,Mo(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Bs(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Us extends Ws{readValueFromInstance(e,t){if(wn.has(t)){const e=Zo(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(kn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return bs(e,t)}build(e,t,n,r){Un(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e){return fr(e)}renderInstance(e,t,n,r){cr(e,t,n,r)}}class Gs extends Ws{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){var n;return wn.has(t)?(null===(n=Zo(t))||void 0===n?void 0:n.default)||0:(t=ur.has(t)?t:lr(t),e.getAttribute(t))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e){return pr(e)}build(e,t,n,r){rr(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){dr(e,t,0,r)}mount(e){this.isSVGTag=ir(e.tagName),super.mount(e)}}const Ys=(e,t)=>vn(e)?new Gs(t,{enableHardwareAcceleration:!1}):new Us(t,{enableHardwareAcceleration:!0});function qs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ks={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Fn.test(e))return e;e=parseFloat(e)}return`${qs(e,t.target.x)}% ${qs(e,t.target.y)}%`}},Xs="_$css",Zs={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(Cs,(e=>(i.push(e),Xs))));const a=Uo.parse(e);if(a.length>5)return r;const s=Uo.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=bi(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(Xs,(()=>{const t=i[e];return e++,t}))}return f}};class Js extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Qs,Object.assign(bn,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()})),sn.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()||wo.postRender((()=>{var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;null==e||e()}render(){return null}}const Qs={borderRadius:{...Ks,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ks,borderTopRightRadius:Ks,borderBottomLeftRadius:Ks,borderBottomRightRadius:Ks,boxShadow:Zs},el={measureLayout:function(e){const[t,n]=ao(),r=(0,b.useContext)(cn);return b.createElement(Js,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(dn),isPresent:t,safeToRemove:n})}};const tl=["TopLeft","TopRight","BottomLeft","BottomRight"],nl=tl.length,rl=e=>"string"==typeof e?parseFloat(e):e,ol=e=>"number"==typeof e||Fn.test(e);function il(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const al=ll(0,.5,Li),sl=ll(.5,.95,Pi);function ll(e,t,n){return r=>r<e?0:r>t?1:n(Ni(e,t,r))}function cl(e,t){e.min=t.min,e.max=t.max}function ul(e,t){cl(e.x,t.x),cl(e.y,t.y)}function dl(e,t,n,r,o){return e=ls(e-=t,1/n,r),void 0!==o&&(e=ls(e,1/o,r)),e}function fl(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Bn.test(t)&&(t=parseFloat(t),t=bi(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=bi(i.min,i.max,r);e===i&&(s-=t),e.min=dl(e.min,t,n,s,o),e.max=dl(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const pl=["x","scaleX","originX"],ml=["y","scaleY","originY"];function hl(e,t,n,r){fl(e.x,t,pl,null==n?void 0:n.x,null==r?void 0:r.x),fl(e.y,t,ml,null==n?void 0:n.y,null==r?void 0:r.y)}function gl(e){return 0===e.translate&&1===e.scale}function vl(e){return gl(e.x)&&gl(e.y)}function bl(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}function yl(e){return $a(e.x)/$a(e.y)}class wl{constructor(){this.members=[]}add(e){So(this.members,e),e.scheduleRender()}remove(e){if(To(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){var n;const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xl(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 _l=(e,t)=>e.depth-t.depth;class El{constructor(){this.children=[],this.isDirty=!1}add(e){So(this.children,e),this.isDirty=!0}remove(e){To(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_l),this.isDirty=!1,this.children.forEach(e)}}const Cl=["","X","Y","Z"];let kl=0;function Sl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=kl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Rl),this.nodes.forEach(Dl),this.nodes.forEach(Al)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new El)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new No),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);null==n||n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){var r;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.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),null===(r=this.parent)||void 0===r||r.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=aa(r,250),sn.hasAnimatedSinceResize&&(sn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ol))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var o,i,s,l,c;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const u=null!==(i=null!==(o=this.options.transition)&&void 0!==o?o:a.getDefaultTransition())&&void 0!==i?i:Hl,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),p=!this.targetLayout||!bl(this.targetLayout,r)||n,m=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||m||t&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,m);const t={...va(u,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||Ol(this),this.isLead()&&(null===(c=(l=this.options).onExitComplete)||void 0===c||c.call(l));this.targetLayout=r}))}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,xo.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Ll),this.animationId++)}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked())return void(null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t));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")}const{layoutId:o,layout:i}=this.options;if(void 0===o&&!i)return;const a=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==a?void 0:a(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ml);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jl),this.potentialNodes.clear()),this.nodes.forEach(Pl),this.nodes.forEach(Tl),this.nodes.forEach(Nl),this.clearAllSnapshots(),_o.update(),_o.preRender(),_o.render())}clearAllSnapshots(){this.nodes.forEach(Il),this.sharedNodes.forEach(zl)}scheduleUpdateProjection(){wo.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){wo.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var e;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 t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(e=this.options.visualElement)||void 0===e||e.notify("LayoutMeasure",this.layout.layoutBox,null==t?void 0:t.layoutBox)}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(){var e;if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!vl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||is(this.latestValues)||a)&&(o(this.instance,i),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)),$l((r=n).x),$l(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(ps(t.x,n.offset.x),ps(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ul(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){ul(t,e);const{scroll:n}=this.root;n&&(ps(t.x,-n.offset.x),ps(t.y,-n.offset.y))}ps(t.x,o.offset.x),ps(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ul(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&&vs(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),is(r.latestValues)&&vs(n,r.latestValues)}return is(this.latestValues)&&vs(n,this.latestValues),n}removeTransform(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};ul(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!is(r.latestValues))continue;os(r.latestValues)&&r.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};ul(o,r.measurePageBox()),hl(n,r.latestValues,null===(t=r.snapshot)||void 0===t?void 0:t.layoutBox,o)}return is(this.latestValues)&&hl(n,this.latestValues),n}setTargetDelta(e){this.targetDelta=e,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}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}resolveTargetDelta(){var e;const t=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ka(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ul(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,i,a;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(o=this.target,i=this.relativeTarget,a=this.relativeParent.target,Ya(o.x,i.x,a.x),Ya(o.y,i.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ul(this.target,this.layout.layoutBox),ds(this.target,this.targetDelta)):ul(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?(this.relativeParent=e,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ka(this.relativeTargetOrigin,this.target,e.target),ul(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!os(this.parent.latestValues)&&!as(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var e;const{isProjectionDirty:t,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const r=this.getLead(),o=Boolean(this.resumingFrom)||this!==r;let i=!0;if(t&&(i=!1),o&&n&&(i=!1),i)return;const{layout:a,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!a&&!s)return;ul(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){var o,i;const a=n.length;if(!a)return;let s,l;t.x=t.y=1;for(let c=0;c<a;c++)s=n[c],l=s.projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&vs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,ds(e,l)),r&&is(s.latestValues)&&vs(e,s.latestValues));t.x=fs(t.x),t.y=fs(t.y)}(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=r;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.treeScale.x,u=this.treeScale.y,d=this.projectionTransform;Ga(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=xl(this.projectionDelta,this.treeScale),this.projectionTransform===d&&this.treeScale.x===c&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t,n,r;null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){var n,r;const o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;const l={x:{min:0,max:0},y:{min:0,max:0}},c=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),u=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Vl));this.animationProgress=0,this.mixTargetDelta=t=>{var n;const r=t/1e3;Bl(s.x,e.x,r),Bl(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Ka(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Fl(e.x,t.x,n.x,r),Fl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,l,r)),c&&(this.animationValues=a,function(e,t,n,r,o,i){o?(e.opacity=bi(0,void 0!==n.opacity?n.opacity:1,al(r)),e.opacityExit=bi(void 0!==t.opacity?t.opacity:1,0,sl(r))):i&&(e.opacity=bi(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<nl;o++){const i=`border${tl[o]}Radius`;let a=il(t,i),s=il(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||ol(a)===ol(s)?(e[i]=Math.max(bi(rl(a),rl(s),r),0),(Bn.test(s)||Bn.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=bi(t.rotate||0,n.rotate||0,r))}(a,i,this.latestValues,r,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(xo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wo.update((()=>{sn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){const r=_n(e)?e:Mo(e);return r.start(_a("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,1e3,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,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&&Wl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=$a(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=$a(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ul(t,n),vs(t,o),Ga(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new wl);this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})}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<Cl.length;t++){const o="rotate"+Cl[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}null==e||e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n,r;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=vr(e.pointerEvents)||"",o.transform=i?i(this.latestValues,""):"none",o;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=vr(e.pointerEvents)||""),this.hasProjected&&!is(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),o.transform=xl(this.projectionDeltaWithTransform,this.treeScale,s),i&&(o.transform=i(s,o.transform));const{x:l,y:c}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*c.origin}% 0`,a.animationValues?o.opacity=a===this?null!==(r=null!==(n=s.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:o.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in bn){if(void 0===s[e])continue;const{correct:t,applyTo:n}=bn[e],r=t(s[e],a);if(n){const e=n.length;for(let t=0;t<e;t++)o[n[t]]=r}else o[e]=r}return this.options.layoutId&&(o.pointerEvents=a===this?vr(e.pointerEvents)||"":"none"),o}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(Ml),this.root.sharedNodes.clear()}}}function Tl(e){e.updateLayout()}function Nl(e){var t,n,r;const o=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:r}=e.options,i=o.source!==e.layout.source;"size"===r?ts((e=>{const n=i?o.measuredBox[e]:o.layoutBox[e],r=$a(n);n.min=t[e].min,n.max=n.min+r})):Wl(r,o.layoutBox,t)&&ts((e=>{const n=i?o.measuredBox[e]:o.layoutBox[e],r=$a(t[e]);n.max=n.min+r}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ga(a,t,o.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Ga(s,e.applyTransform(n,!0),o.measuredBox):Ga(s,t,o.layoutBox);const l=!vl(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:e,layout:r}=n;if(e&&r){const n={x:{min:0,max:0},y:{min:0,max:0}};Ka(n,o.layoutBox,e.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};Ka(i,t,r.layoutBox),bl(n,i)||(c=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:o,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function Rl(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function Il(e){e.clearSnapshot()}function Ml(e){e.clearMeasurements()}function Pl(e){const{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ol(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Dl(e){e.resolveTargetDelta()}function Al(e){e.calcProjection()}function Ll(e){e.resetRotation()}function zl(e){e.removeLeadSnapshot()}function Bl(e,t,n){e.translate=bi(t.translate,0,n),e.scale=bi(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fl(e,t,n,r){e.min=bi(t.min,n.min,r),e.max=bi(t.max,n.max,r)}function Vl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Hl={duration:.45,ease:[.4,0,.1,1]};function jl(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(Boolean(e.path[t].instance)){n=e.path[t];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function $l(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Wl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Wa(yl(t),yl(n),.2)}const Ul=Sl({attachResizeListener:(e,t)=>Er(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gl={current:void 0},Yl=Sl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gl.current){const e=new Ul(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Gl.current=e}return Gl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ql={...Da,...io,..._s,...el},Kl=hn(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r,o){return{...vn(e)?wr:xr,preloadedFeatures:n,useRender:sr(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}(e,t,ql,Ys,Yl)));var Xl=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"})),Zl=window.wp.deprecated,Jl=n.n(Zl);var Ql=function(e){let{icon:t,className:n,size:r=20,style:o={},...i}=e;const l=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" "),c={...20!=r?{fontSize:`${r}px`,width:`${r}px`,height:`${r}px`}:{},...o};return(0,s.createElement)("span",a({className:l,style:c},i))};var ec=function(e){let{icon:t=null,size:n=("string"==typeof t?20:24),...r}=e;if("string"==typeof t)return(0,s.createElement)(Ql,a({icon:t,size:n},r));if((0,s.isValidElement)(t)&&Ql===t.type)return(0,s.cloneElement)(t,{...r});if("function"==typeof t)return t.prototype instanceof s.Component?(0,s.createElement)(t,{size:n,...r}):t({size:n,...r});if(t&&("svg"===t.type||t.type===i.SVG)){const e={...t.props,width:n,height:n,...r};return(0,s.createElement)(i.SVG,e)}return(0,s.isValidElement)(t)?(0,s.cloneElement)(t,{size:n,...r}):t},tc=(window.wp.warning,n(5619)),nc=n.n(tc),rc=window.lodash;var oc=function(e,t){const n=(0,s.useRef)(!1);(0,s.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};const ic=(0,s.createContext)({}),ac=()=>(0,s.useContext)(ic);const sc=(0,s.memo)((e=>{let{children:t,value:n}=e;const r=function(e){let{value:t}=e;const n=ac(),r=(0,s.useRef)(t);return oc((()=>{nc()(r.current,t)&&r.current!==t&&"undefined"!=typeof process&&process.env}),[t]),(0,s.useMemo)((()=>(0,rc.merge)(JSON.parse(JSON.stringify(n)),t)),[n,t])}({value:n});return(0,s.createElement)(ic.Provider,{value:r},t)})),lc="__contextSystemKey__";var cc=n(9756),uc=n.n(cc);const dc=uc()((function(e){return`components-${(0,rc.kebabCase)(e)}`}));var fc=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}(),pc=Math.abs,mc=String.fromCharCode,hc=Object.assign;function gc(e){return e.trim()}function vc(e,t,n){return e.replace(t,n)}function bc(e,t){return e.indexOf(t)}function yc(e,t){return 0|e.charCodeAt(t)}function wc(e,t,n){return e.slice(t,n)}function xc(e){return e.length}function _c(e){return e.length}function Ec(e,t){return t.push(e),e}var Cc=1,kc=1,Sc=0,Tc=0,Nc=0,Rc="";function Ic(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Cc,column:kc,length:a,return:""}}function Mc(e,t){return hc(Ic("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pc(){return Nc=Tc>0?yc(Rc,--Tc):0,kc--,10===Nc&&(kc=1,Cc--),Nc}function Oc(){return Nc=Tc<Sc?yc(Rc,Tc++):0,kc++,10===Nc&&(kc=1,Cc++),Nc}function Dc(){return yc(Rc,Tc)}function Ac(){return Tc}function Lc(e,t){return wc(Rc,e,t)}function zc(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 Bc(e){return Cc=kc=1,Sc=xc(Rc=e),Tc=0,[]}function Fc(e){return Rc="",e}function Vc(e){return gc(Lc(Tc-1,$c(91===e?e+2:40===e?e+1:e)))}function Hc(e){for(;(Nc=Dc())&&Nc<33;)Oc();return zc(e)>2||zc(Nc)>3?"":" "}function jc(e,t){for(;--t&&Oc()&&!(Nc<48||Nc>102||Nc>57&&Nc<65||Nc>70&&Nc<97););return Lc(e,Ac()+(t<6&&32==Dc()&&32==Oc()))}function $c(e){for(;Oc();)switch(Nc){case e:return Tc;case 34:case 39:34!==e&&39!==e&&$c(Nc);break;case 40:41===e&&$c(e);break;case 92:Oc()}return Tc}function Wc(e,t){for(;Oc()&&e+Nc!==57&&(e+Nc!==84||47!==Dc()););return"/*"+Lc(t,Tc-1)+"*"+mc(47===e?e:Oc())}function Uc(e){for(;!zc(Dc());)Oc();return Lc(e,Tc)}var Gc="-ms-",Yc="-moz-",qc="-webkit-",Kc="comm",Xc="rule",Zc="decl",Jc="@keyframes";function Qc(e,t){for(var n="",r=_c(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Zc:return e.return=e.return||e.value;case Kc:return"";case Jc:return e.return=e.value+"{"+Qc(e.children,r)+"}";case Xc:e.value=e.props.join(",")}return xc(n=Qc(e.children,r))?e.return=e.value+"{"+n+"}":""}function tu(e){return Fc(nu("",null,null,null,[""],e=Bc(e),0,[0],e))}function nu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,x=i,_=r,E=y;g;)switch(m=b,b=Oc()){case 40:if(108!=m&&58==yc(E,d-1)){-1!=bc(E+=vc(Vc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Vc(b);break;case 9:case 10:case 13:case 32:E+=Hc(m);break;case 92:E+=jc(Ac()-1,7);continue;case 47:switch(Dc()){case 42:case 47:Ec(ou(Wc(Oc(),Ac()),t,n),l);break;default:E+="/"}break;case 123*h:s[c++]=xc(E)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=vc(E,/\f/g,"")),p>0&&xc(E)-d&&Ec(p>32?iu(E+";",r,n,d-1):iu(vc(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Ec(_=ru(E,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)nu(E,t,_,_,w,i,d,s,x);else switch(99===f&&110===yc(E,3)?100:f){case 100:case 108:case 109:case 115:nu(e,_,_,r&&Ec(ru(e,_,_,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:nu(E,_,_,_,[""],x,0,s,x)}}c=u=p=0,h=v=1,y=E="",d=a;break;case 58:d=1+xc(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Pc())continue;switch(E+=mc(b),b*h){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(xc(E)-1)*v,v=1;break;case 64:45===Dc()&&(E+=Vc(Oc())),f=Dc(),u=d=xc(y=E+=Uc(Ac())),b++;break;case 45:45===m&&2==xc(E)&&(h=0)}}return i}function ru(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=_c(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=wc(e,d+1,d=pc(h=a[m])),y=e;v<p;++v)(y=gc(h>0?f[v]+" "+b:vc(b,/&\f/g,f[v])))&&(l[g++]=y);return Ic(e,t,n,0===o?Xc:s,l,c,u)}function ou(e,t,n){return Ic(e,t,n,Kc,mc(Nc),wc(e,2,-2),0)}function iu(e,t,n,r){return Ic(e,t,n,Zc,wc(e,0,r),wc(e,r+1,-1),r)}var au=function(e,t,n){for(var r=0,o=0;r=o,o=Dc(),38===r&&12===o&&(t[n]=1),!zc(o);)Oc();return Lc(e,Tc)},su=function(e,t){return Fc(function(e,t){var n=-1,r=44;do{switch(zc(r)){case 0:38===r&&12===Dc()&&(t[n]=1),e[n]+=au(Tc-1,t,n);break;case 2:e[n]+=Vc(r);break;case 4:if(44===r){e[++n]=58===Dc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=mc(r)}}while(r=Oc());return e}(Bc(e),t))},lu=new WeakMap,cu=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)||lu.get(n))&&!r){lu.set(e,!0);for(var o=[],i=su(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]}}},uu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function du(e,t){switch(function(e,t){return 45^yc(e,0)?(((t<<2^yc(e,0))<<2^yc(e,1))<<2^yc(e,2))<<2^yc(e,3):0}(e,t)){case 5103:return"-webkit-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 qc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qc+e+Yc+e+Gc+e+e;case 6828:case 4268:return qc+e+Gc+e+e;case 6165:return qc+e+Gc+"flex-"+e+e;case 5187:return qc+e+vc(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return qc+e+Gc+"flex-item-"+vc(e,/flex-|-self/,"")+e;case 4675:return qc+e+Gc+"flex-line-pack"+vc(e,/align-content|flex-|-self/,"")+e;case 5548:return qc+e+Gc+vc(e,"shrink","negative")+e;case 5292:return qc+e+Gc+vc(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+vc(e,"-grow","")+qc+e+Gc+vc(e,"grow","positive")+e;case 4554:return qc+vc(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return vc(vc(vc(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return vc(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return vc(vc(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+qc+e+e;case 4095:case 3583:case 4068:case 2532:return vc(e,/(.+)-inline(.+)/,"-webkit-$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(xc(e)-1-t>6)switch(yc(e,t+1)){case 109:if(45!==yc(e,t+4))break;case 102:return vc(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==yc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bc(e,"stretch")?du(vc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yc(e,t+1))break;case 6444:switch(yc(e,xc(e)-3-(~bc(e,"!important")&&10))){case 107:return vc(e,":",":-webkit-")+e;case 101:return vc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===yc(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(yc(e,t+11)){case 114:return qc+e+Gc+vc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qc+e+Gc+vc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qc+e+Gc+vc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qc+e+Gc+e+e}return e}var fu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zc:e.return=du(e.value,e.length);break;case Jc:return Qc([Mc(e,{value:vc(e.value,"@","@-webkit-")})],r);case Xc: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 Qc([Mc(e,{props:[vc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Qc([Mc(e,{props:[vc(t,/:(plac\w+)/,":-webkit-input-$1")]}),Mc(e,{props:[vc(t,/:(plac\w+)/,":-moz-$1")]}),Mc(e,{props:[vc(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],pu=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||fu;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=[eu,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[cu,uu].concat(r,f),u=_c(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){Qc(tu(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new fc({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 m.sheet.hydrate(s),m};var mu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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 hu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var gu=/[A-Z]|^ms/g,vu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bu=function(e){return 45===e.charCodeAt(1)},yu=function(e){return null!=e&&"boolean"!=typeof e},wu=hu((function(e){return bu(e)?e:e.replace(gu,"-$&").toLowerCase()})),xu=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vu,(function(e,t,n){return Eu={name:t,styles:n,next:Eu},t}))}return 1===mu[e]||bu(e)||"number"!=typeof t||0===t?t:t+"px"};function _u(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 Eu={name:n.name,styles:n.styles,next:Eu},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Eu={name:r.name,styles:r.styles,next:Eu},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+=_u(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]+"}":yu(a)&&(r+=wu(i)+":"+xu(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=_u(e,t,a);switch(i){case"animation":case"animationName":r+=wu(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)yu(a[l])&&(r+=wu(i)+":"+xu(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Eu,i=n(e);return Eu=o,_u(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Eu,Cu=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ku=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="";Eu=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=_u(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=_u(n,t,e[a]),r&&(o+=i[a]);Cu.lastIndex=0;for(var s,l="";null!==(s=Cu.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Eu}},Su=!!b.useInsertionEffect&&b.useInsertionEffect,Tu=Su||function(e){return e()},Nu=(Su||b.useLayoutEffect,b.createContext("undefined"!=typeof HTMLElement?pu({key:"css"}):null));var Ru=Nu.Provider,Iu=function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(Nu);return e(t,r,n)}))};var Mu=b.createContext({});function Pu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ou=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Du=function(e,t,n){Ou(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 Au(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Lu(e,t,n){var r=[],o=Pu(e,r,n);return r.length<2?n:o+t(r)}var zu=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},Bu=function(e){var t=pu(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=ku(n,t.registered,void 0);return Du(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 Lu(t.registered,n,zu(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ku(n,t.registered);Au(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ku(n,t.registered),i="animation-"+o.name;return Au(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:Pu.bind(null,t.registered),merge:Lu.bind(null,t.registered,n)}}({key:"css"}),Fu=(Bu.flush,Bu.hydrate,Bu.cx);Bu.merge,Bu.getRegisteredStyles,Bu.injectGlobal,Bu.keyframes,Bu.css,Bu.sheet,Bu.cache;const Vu=e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])),Hu=()=>{const e=(0,b.useContext)(Nu),t=(0,s.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fu(...n.map((t=>Vu(t)?(Du(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function ju(e,t){const n=ac();void 0===t&&"undefined"!=typeof process&&process.env;const r=(null==n?void 0:n[t])||{},o={"data-wp-c16t":!0,...(i=t,{"data-wp-component":i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Hu()(dc(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 $u(e,t){return Wu(e,t,{forwardsRef:!0})}function Wu(e,t,n){const r=null!=n&&n.forwardsRef?(0,s.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r.__contextSystemKey__||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[lc]:[...new Set(o)],displayName:t,selector:`.${dc(t)}`})}function Uu(e){if(!e)return[];let t=[];return e.__contextSystemKey__&&(t=e.__contextSystemKey__),e.type&&e.type.__contextSystemKey__&&(t=e.type.__contextSystemKey__),t}function Gu(e,t){return!!e&&("string"==typeof t?Uu(e).includes(t):!!Array.isArray(t)&&t.some((t=>Uu(e).includes(t))))}const Yu={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"};var qu=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,Ku=hu((function(e){return qu.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Xu=function(e){return"theme"!==e},Zu=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ku:Xu},Ju=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},Qu=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ou(t,n,r),Tu((function(){return Du(t,n,r)})),null},ed=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 l=Ju(t,n,i),c=l||Zu(s),u=!c("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var p=d.length,m=1;m<p;m++)f.push(d[m],d[0][m])}var h=Iu((function(e,t,n){var r=u&&e.as||s,i="",a=[],d=e;if(null==e.theme){for(var p in d={},e)d[p]=e[p];d.theme=b.useContext(Mu)}"string"==typeof e.className?i=Pu(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var m=ku(f.concat(a),t.registered,d);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=u&&void 0===l?Zu(r):c,g={};for(var v in e)u&&"as"===v||h(v)&&(g[v]=e[v]);return g.className=i,g.ref=n,b.createElement(b.Fragment,null,b.createElement(Qu,{cache:t,serialized:m,isStringTag:"string"==typeof r}),b.createElement(r,g))}));return h.displayName=void 0!==r?r:"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"."+o}}),h.withComponent=function(t,r){return e(t,a({},n,r,{shouldForwardProp:Ju(h,r,!0)})).apply(void 0,f)},h}};const td=ed("div",{target:"e19lxcc00"})("");td.selector=".components-view",td.displayName="View";var nd=td;var rd=$u((function(e,t){const{style:n,...r}=ju(e,"VisuallyHidden");return(0,s.createElement)(nd,a({ref:t},r,{style:{...Yu,...n||{}}}))}),"VisuallyHidden");const od=["onMouseDown","onClick"];const id=(0,s.forwardRef)((function(e,t){var n,r;const{isSmall:o,isPressed:i,isBusy:l,isDestructive:u,className:f,disabled:p,icon:m,iconPosition:h="left",iconSize:g,showTooltip:v,tooltipPosition:b,shortcut:y,label:w,children:x,text:_,variant:E,__experimentalIsFocusable:C,describedBy:k,...S}=function(e){let{isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,variant:a,...s}=e,l=a;var c,u,d,f,p;return n&&(null!==(c=l)&&void 0!==c||(l="primary")),o&&(null!==(u=l)&&void 0!==u||(l="tertiary")),r&&(null!==(d=l)&&void 0!==d||(l="secondary")),t&&(Jl()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(f=l)&&void 0!==f||(l="secondary")),i&&(null!==(p=l)&&void 0!==p||(l="link")),{...s,variant:l}}(e),{href:T,target:N,...R}="href"in S?S:{href:void 0,target:void 0,...S},I=(0,d.useInstanceId)(id,"components-button__description"),M="string"==typeof x&&!!x||Array.isArray(x)&&(null==x?void 0:x[0])&&null!==x[0]&&"components-tooltip"!==(null==x||null===(n=x[0])||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),P=c()("components-button",f,{"is-secondary":"secondary"===E,"is-primary":"primary"===E,"is-small":o,"is-tertiary":"tertiary"===E,"is-pressed":i,"is-busy":l,"is-link":"link"===E,"is-destructive":u,"has-text":!!m&&M,"has-icon":!!m}),O=p&&!C,D=void 0===T||O?"button":"a",A="button"===D?{type:"button",disabled:O,"aria-pressed":i}:{},L="a"===D?{href:T,target:N}:{};if(p&&C){A["aria-disabled"]=!0,L["aria-disabled"]=!0;for(const e of od)R[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const z=!O&&(v&&w||y||!!w&&!(null!=x&&x.length)&&!1!==v),B=k?I:void 0,F=R["aria-describedby"]||B,V={className:P,"aria-label":R["aria-label"]||w,"aria-describedby":F,ref:t},H=(0,s.createElement)(s.Fragment,null,m&&"left"===h&&(0,s.createElement)(ec,{icon:m,size:g}),_&&(0,s.createElement)(s.Fragment,null,_),m&&"right"===h&&(0,s.createElement)(ec,{icon:m,size:g}),x),j="a"===D?(0,s.createElement)("a",a({},L,R,V),H):(0,s.createElement)("button",a({},A,R,V),H);return z?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Vf,{text:null!=x&&x.length&&k?k:w,shortcut:y,position:b},j),k&&(0,s.createElement)(rd,null,(0,s.createElement)("span",{id:B},k))):(0,s.createElement)(s.Fragment,null,j,k&&(0,s.createElement)(rd,null,(0,s.createElement)("span",{id:B},k)))}));var ad=id;let sd=0;function ld(e){const t=document.scrollingElement||document.body;e&&(sd=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=sd)}let cd=0;var ud=function(){return(0,s.useEffect)((()=>(0===cd&&ld(!0),++cd,()=>{1===cd&&ld(!1),--cd})),[]),null};const dd=Symbol(),fd=Symbol(),pd=Symbol();let md=(e,t)=>new Proxy(e,t);const hd=Object.getPrototypeOf,gd=new WeakMap,vd=e=>e&&(gd.has(e)?gd.get(e):hd(e)===Object.prototype||hd(e)===Array.prototype),bd=e=>"object"==typeof e&&null!==e,yd=new WeakMap,wd=e=>e[pd]||e,xd=(e,t,n)=>{if(!vd(e))return e;const r=wd(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(dd)||r.add(t)}},i={get:(t,r)=>r===pd?e:(o(r),xd(t[r],n.a,n.c)),has:(t,i)=>i===fd?(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(dd),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=md(o?(e=>{let t=yd.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(hd(e),n)}yd.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},_d=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},Ed=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!bd(e)||!bd(t))return!0;const o=n.get(wd(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===dd?_d(e,t):Ed(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},Cd=(e,t=!0)=>{gd.set(e,t)};var kd=n(635);const Sd=e=>"object"==typeof e&&null!==e,Td=new WeakSet,Nd=Symbol("VERSION"),Rd=Symbol("LISTENERS"),Id=Symbol("SNAPSHOT"),Md=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>Sd(e)&&!Td.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 Cd(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(Td.has(i))Cd(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[Rd])?s[e]=i[Id]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!Sd(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))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get(e,t,n){return t===Nd?u:t===Rd?d:t===Id?a(u,e,n):Reflect.get(e,t,n)},deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Rd];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[Rd];let p;return d&&d.delete(h(i)),Sd(a)&&(a=(e=>vd(e)&&e[pd]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Rd])?(p=a,p[Rd].add(m(i))):n(a)?(p=Od(a),p[Rd].add(m(i))):p=a,Reflect.set(t,i,p,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,Td,Nd,Rd,Id,e,t,n,r,o,i,a,s,l],[Pd]=Md();function Od(e={}){return Pd(e)}function Dd(e,t,n){let r;(null==e?void 0:e[Rd])||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[Rd].add(i),()=>{e[Rd].delete(i)}}function Ad(e){return(null==e?void 0:e[Id])||console.warn("Please use proxy object"),e[Id]}function Ld(e){return Td.add(e),e}const{useSyncExternalStore:zd}=kd,Bd=(e,t)=>{const n=(0,b.useRef)();(0,b.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;bd(e)&&r.add(e);const a=bd(e)&&t.get(wd(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,b.useDebugValue)(n.current)};function Fd(e,t){const n=null==t?void 0:t.sync,r=(0,b.useRef)(),o=(0,b.useRef)();let i=!0;const a=zd((0,b.useCallback)((t=>{const r=Dd(e,t,n);return t(),r}),[e,n]),(()=>{const t=Ad(e);try{if(!i&&r.current&&o.current&&!Ed(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>Ad(e)));i=!1;const s=new WeakMap;(0,b.useEffect)((()=>{r.current=a,o.current=s})),Bd(a,s);const l=(0,b.useMemo)((()=>new WeakMap),[]);return xd(a,s,l)}Symbol();function Vd(e){const t=Od({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(){return{}},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}var Hd=(0,s.createContext)({slots:Vd(),fills:Vd(),registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function jd(e){const{updateSlot:t,unregisterSlot:n,registerFill:r,unregisterFill:o,...i}=(0,s.useContext)(Hd);return{...Fd(i.slots,{sync:!0}).get(e),updateSlot:(0,s.useCallback)((n=>{t(e,n)}),[e,t]),unregisterSlot:(0,s.useCallback)((t=>{n(e,t)}),[e,n]),registerFill:(0,s.useCallback)((t=>{r(e,t)}),[e,r]),unregisterFill:(0,s.useCallback)((t=>{o(e,t)}),[e,o])}}var $d=(0,s.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var Wd=e=>{const{getSlot:t,subscribe:n}=(0,s.useContext)($d);return(0,s.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function Ud(e){let{name:t,children:n,registerFill:r,unregisterFill:o}=e;const i=Wd(t),a=(0,s.useRef)({name:t,children:n});return(0,s.useLayoutEffect)((()=>{const e=a.current;return r(t,e),()=>o(t,e)}),[]),(0,s.useLayoutEffect)((()=>{a.current.children=n,i&&i.forceUpdate()}),[n]),(0,s.useLayoutEffect)((()=>{t!==a.current.name&&(o(a.current.name,a.current),a.current.name=t,r(t,a.current))}),[t]),i&&i.node?("function"==typeof n&&(n=n(i.props.fillProps)),(0,s.createPortal)(n,i.node)):null}var Gd=e=>(0,s.createElement)($d.Consumer,null,(t=>{let{registerFill:n,unregisterFill:r}=t;return(0,s.createElement)(Ud,a({},e,{registerFill:n,unregisterFill:r}))}));function Yd(e){return"function"==typeof e}class qd extends s.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}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),r(t,this))}bindNode(e){this.node=e}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=Yd(e.children)?e.children(r):e.children;return s.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,s.cloneElement)(e,{key:n})}))})).filter((e=>!(0,s.isEmptyElement)(e)));return(0,s.createElement)(s.Fragment,null,Yd(t)?t(i):i)}}var Kd,Xd=e=>(0,s.createElement)($d.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:r,getFills:o}=t;return(0,s.createElement)(qd,a({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))})),Zd=new Uint8Array(16);function Jd(){if(!Kd&&!(Kd="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kd(Zd)}var Qd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var ef=function(e){return"string"==typeof e&&Qd.test(e)},tf=[],nf=0;nf<256;++nf)tf.push((nf+256).toString(16).substr(1));var rf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(tf[e[t+0]]+tf[e[t+1]]+tf[e[t+2]]+tf[e[t+3]]+"-"+tf[e[t+4]]+tf[e[t+5]]+"-"+tf[e[t+6]]+tf[e[t+7]]+"-"+tf[e[t+8]]+tf[e[t+9]]+"-"+tf[e[t+10]]+tf[e[t+11]]+tf[e[t+12]]+tf[e[t+13]]+tf[e[t+14]]+tf[e[t+15]]).toLowerCase();if(!ef(n))throw TypeError("Stringified UUID is invalid");return n};var of=function(e,t,n){var r=(e=e||{}).random||(e.rng||Jd)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return rf(r)};const af=new Set,sf=uc()((e=>{let t=of().replace(/[0-9]/g,"");for(;af.has(t);)t=of().replace(/[0-9]/g,"");return af.add(t),pu({container:e,key:t})}));var lf=function(e){const{children:t,document:n}=e;if(!n)return null;const r=sf(n.head);return(0,s.createElement)(Ru,{value:r},t)};function cf(){const[,e]=(0,s.useState)({}),t=(0,s.useRef)(!0);return(0,s.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}function uf(e){let{name:t,children:n}=e;const{registerFill:r,unregisterFill:o,...i}=jd(t),a=(0,s.useRef)({rerender:cf()});if((0,s.useEffect)((()=>(r(a),()=>{o(a)})),[r,o]),!i.ref||!i.ref.current)return null;"function"==typeof n&&(n=n(i.fillProps));const l=(0,s.createElement)(lf,{document:i.ref.current.ownerDocument},n);return(0,s.createPortal)(l,i.ref.current)}var df=(0,s.forwardRef)((function(e,t){let{name:n,fillProps:r={},as:o="div",...i}=e;const{registerSlot:l,unregisterSlot:c,...u}=(0,s.useContext)(Hd),f=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(l(n,f,r),()=>{c(n,f)})),[l,c,n]),(0,s.useLayoutEffect)((()=>{u.updateSlot(n,r)})),(0,s.createElement)(o,a({ref:(0,d.useMergeRefs)([t,f])},i))})),ff=window.wp.isShallowEqual,pf=n.n(ff);function mf(e){let{children:t}=e;const n=function(){const e=(0,s.useRef)(Vd()),t=(0,s.useRef)(Vd()),n=(0,s.useCallback)(((t,n,r)=>{const o=e.current.get(t)||{};e.current.set(t,Ld({...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}))}),[]),r=(0,s.useCallback)(((t,n)=>{var r;(null===(r=e.current.get(t))||void 0===r?void 0:r.ref)===n&&e.current.delete(t)}),[]),o=(0,s.useCallback)(((n,r)=>{const o=e.current.get(n);if(o&&!pf()(o.fillProps,r)){o.fillProps=r;const e=t.current.get(n);e&&e.map((e=>e.current.rerender()))}}),[]),i=(0,s.useCallback)(((e,n)=>{t.current.set(e,Ld([...t.current.get(e)||[],n]))}),[]),a=(0,s.useCallback)(((e,n)=>{t.current.get(e)&&t.current.set(e,Ld(t.current.get(e).filter((e=>e!==n))))}),[]);return(0,s.useMemo)((()=>({slots:e.current,fills:t.current,registerSlot:n,updateSlot:o,unregisterSlot:r,registerFill:i,unregisterFill:a})),[n,o,r,i,a])}();return(0,s.createElement)(Hd.Provider,{value:n},t)}class hf extends s.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.hasFills=this.hasFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,hasFills:this.hasFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n,r;this.fills[e]=null!==(n=null===(r=this.fills[e])||void 0===r?void 0:r.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}hasFills(e){return this.fills[e]&&!!this.fills[e].length}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,s.createElement)($d.Provider,{value:this.contextValue},this.props.children)}}function gf(e){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Gd,e),(0,s.createElement)(uf,e))}const vf=(0,s.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...r}=e;return n?(0,s.createElement)(df,a({},r,{ref:t})):(0,s.createElement)(Xd,r)}));function bf(e){let{children:t,...n}=e;return(0,s.createElement)(hf,n,(0,s.createElement)(mf,null,t))}function yf(e){const t=t=>(0,s.createElement)(gf,a({name:e},t));t.displayName=e+"Fill";const n=t=>(0,s.createElement)(vf,a({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}const wf={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"},xf=e=>{var t;return null!==(t=wf[e])&&void 0!==t?t:"bottom"},_f={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}},Ef=e=>{var t;const n=null==e||null===(t=e.defaultView)||void 0===t?void 0:t.frameElement;if(!n)return;const r=n.getBoundingClientRect();return{x:r.left,y:r.top}};function Cf(e){return e.split("-")[0]}function kf(e){return["top","bottom"].includes(Cf(e))?"x":"y"}function Sf(e){return"x"===e?"y":"x"}const Tf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{options:e,fn(t){var n;const{x:r,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=e,d={x:r,y:o},f=kf(i),p=Sf(f);let m=d[f],h=d[p];const g="function"==typeof l?l(t):l,v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g},b={x:0,y:0,...null===(n=s.frameOffset)||void 0===n?void 0:n.amount};if(c){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis+b[f],n=a.reference[f]+a.reference[e]-v.mainAxis+b[f];m<t?m=t:m>n&&(m=n)}if(u){var y,w,x,_;const e="y"===f?"width":"height",t=["top","left"].includes(Cf(i)),n=a.reference[p]-a.floating[e]+(t&&null!==(y=null===(w=s.offset)||void 0===w?void 0:w[p])&&void 0!==y?y:0)+(t?0:v.crossAxis)+b[p],r=a.reference[p]+a.reference[e]+(t?0:null!==(x=null===(_=s.offset)||void 0===_?void 0:_[p])&&void 0!==x?x:0)-(t?v.crossAxis:0)+b[p];h<n?h=n:h>r&&(h=r)}return{[f]:m,[p]:h}}}},Nf="Popover",Rf=()=>(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,s.createElement)(i.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,s.createElement)(i.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),If=(0,s.forwardRef)(((e,t)=>{let{style:n,placement:r,shouldAnimate:o=!1,...i}=e;const[l,c]=(0,s.useState)(!1),u=function(){!Ht.current&&jt();const[e]=(0,b.useState)(Vt.current);return e}(),{style:d,...f}=(0,s.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:_f[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]}}})(r)),[r]),p=(0,s.useCallback)((()=>c(!0)),[]),m=o&&!u?{style:{...d,...n},...f,onAnimationComplete:p,animate:!l&&f.animate}:{animate:!1,style:n};return(0,s.createElement)(Kl.div,a({},m,i,{ref:t}))})),Mf=(0,s.createContext)(void 0),Pf=(0,s.forwardRef)(((e,t)=>{var n,r,o,i;const{animate:l=!0,headerTitle:u,onClose:f,children:p,className:m,noArrow:h=!0,position:g,placement:v="bottom-start",offset:b=0,focusOnMount:y="firstElement",anchor:w,expandOnMobile:x,onFocusOutside:_,__unstableSlotName:E=Nf,flip:C=!0,resize:k=!0,shift:S=!1,variant:T,__unstableForcePosition:N,anchorRef:R,anchorRect:I,getAnchorRect:M,isAlternate:P,...O}=e;let D=C,A=k;void 0!==N&&(Jl()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),D=!N,A=!N),void 0!==R&&Jl()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==I&&Jl()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==M&&Jl()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const L=P?"toolbar":T;void 0!==P&&Jl()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const z=(0,s.useRef)(null),[B,F]=(0,s.useState)(null),[V,H]=(0,s.useState)(),j=(0,s.useCallback)((e=>{F(e)}),[]),$=(0,d.useViewportMatch)("medium","<"),W=x&&$,U=!W&&!h,G=g?xf(g):v,Y=(0,s.useRef)(Ef(V)),q=[{name:"frameOffset",fn(e){let{x:t,y:n}=e;return Y.current?{x:t+Y.current.x,y:n+Y.current.y,data:{amount:Y.current}}:{x:t,y:n}}},Nt(b),D?It():void 0,A?Mt({apply(e){var t;const{firstElementChild:n}=null!==(t=oe.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,S?Rt({crossAxis:!0,limiter:Tf(),padding:1}):void 0,Bt({element:z})].filter((e=>void 0!==e)),K=(0,s.useContext)(Mf)||E,X=jd(K);let Z;(f||_)&&(Z=(e,t)=>{"focus-outside"===e&&_?_(t):f&&f()});const[J,Q]=(0,d.__experimentalUseDialog)({focusOnMount:y,__unstableOnClose:Z,onClose:Z}),{x:ee,y:te,reference:ne,floating:re,refs:oe,strategy:ie,update:ae,placement:se,middlewareData:{arrow:le}}=zt({placement:G,middleware:q,whileElementsMounted:(e,t,n)=>Tt(e,t,n,{animationFrame:!0})}),ce=(0,s.useCallback)((e=>{z.current=e,ae()}),[ae]),ue=null==R?void 0:R.top,de=null==R?void 0:R.bottom,fe=null==R?void 0:R.startContainer,pe=null==R?void 0:R.current;(0,s.useLayoutEffect)((()=>{const e=(e=>{var t;let n,{anchor:r,anchorRef:o,anchorRect:i,getAnchorRect:a,fallbackReferenceElement:s,fallbackDocument:l}=e;if(r)n=r.ownerDocument;else if(null!=o&&o.top)n=null==o?void 0:o.top.ownerDocument;else if(null!=o&&o.startContainer)n=o.startContainer.ownerDocument;else if(null!=o&&o.current)n=o.current.ownerDocument;else if(o)n=o.ownerDocument;else if(i&&null!=i&&i.ownerDocument)n=i.ownerDocument;else if(a){var c;n=null===(c=a(s))||void 0===c?void 0:c.ownerDocument}return null!==(t=n)&&void 0!==t?t:l})({anchor:w,anchorRef:R,anchorRect:I,getAnchorRect:M,fallbackReferenceElement:B,fallbackDocument:document}),t=(e=>{var t;let{anchor:n,anchorRef:r,anchorRect:o,getAnchorRect:i,fallbackReferenceElement:a}=e,s=null;return n?s=n:null!=r&&r.top?s={getBoundingClientRect(){const e=r.top.getBoundingClientRect(),t=r.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,t.bottom-e.top)}}:null!=r&&r.current?s=r.current:r?s=r:o?s={getBoundingClientRect(){return o}}:i?s={getBoundingClientRect(){var e,t,n,r;const o=i(a);return new window.DOMRect(null!==(e=o.x)&&void 0!==e?e:o.left,null!==(t=o.y)&&void 0!==t?t:o.top,null!==(n=o.width)&&void 0!==n?n:o.right-o.left,null!==(r=o.height)&&void 0!==r?r:o.bottom-o.top)}}:a&&(s=a.parentElement),null!==(t=s)&&void 0!==t?t:null})({anchor:w,anchorRef:R,anchorRect:I,getAnchorRect:M,fallbackReferenceElement:B});ne(t),H(e)}),[w,R,ue,de,fe,pe,I,M,B,ne]),(0,s.useLayoutEffect)((()=>{var e,t;if(V===document||V===(null===(e=oe.floating.current)||void 0===e?void 0:e.ownerDocument)||null==V||null===(t=V.defaultView)||void 0===t||!t.frameElement)return void(Y.current=void 0);const{defaultView:n}=V,r=()=>{Y.current=Ef(V),ae()};return n.addEventListener("resize",r),r(),()=>{n.removeEventListener("resize",r)}}),[V,ae,oe.floating]);const me=(0,d.useMergeRefs)([re,J,t]);let he=(0,s.createElement)(If,a({shouldAnimate:l&&!W,placement:se,className:c()("components-popover",m,{"is-expanded":W,"is-positioned":null!==ee&&null!==te,[`is-${"toolbar"===L?"alternate":L}`]:L})},O,{ref:me},Q,{tabIndex:-1,style:W?void 0:{position:ie,top:0,left:0,x:Math.round(null!=ee?ee:0)||void 0,y:Math.round(null!=te?te:0)||void 0}}),W&&(0,s.createElement)(ud,null),W&&(0,s.createElement)("div",{className:"components-popover__header"},(0,s.createElement)("span",{className:"components-popover__header-title"},u),(0,s.createElement)(ad,{className:"components-popover__close",icon:Xl,onClick:f})),(0,s.createElement)("div",{className:"components-popover__content"},p),U&&(0,s.createElement)("div",{ref:ce,className:["components-popover__arrow",`is-${se.split("-")[0]}`].join(" "),style:{left:void 0!==(null==le?void 0:le.x)&&Number.isFinite(le.x)?`${le.x+(null!==(n=null===(r=Y.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)}px`:"",top:void 0!==(null==le?void 0:le.y)&&Number.isFinite(le.y)?`${le.y+(null!==(o=null===(i=Y.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0)}px`:""}},(0,s.createElement)(Rf,null)));return X.ref&&(he=(0,s.createElement)(gf,{name:K},he)),R||I||w?he:(0,s.createElement)("span",{ref:j},he)}));Pf.Slot=(0,s.forwardRef)((function(e,t){let{name:n=Nf}=e;return(0,s.createElement)(vf,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),Pf.__unstableSlotNameProvider=Mf.Provider;var Of=Pf;var Df=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,s.createElement)("span",{className:n,"aria-label":o},r)};const Af=700,Lf=(0,s.createElement)("div",{className:"event-catcher"}),zf=e=>{let{eventHandlers:t,child:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)((0,s.createElement)("span",{className:"disabled-element-wrapper"},(0,s.cloneElement)(Lf,t),(0,s.cloneElement)(n,{children:r,ref:o})),{...t})},Bf=e=>{let{child:t,eventHandlers:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)(t,{...n,children:r,ref:o})},Ff=(e,t,n)=>{if(1!==s.Children.count(e))return;const r=s.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var Vf=function(e){var t;const{children:n,position:r="bottom middle",text:o,shortcut:i,delay:l=Af,...u}=e,[f,p]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!1),g=(0,d.useDebounce)(h,l),[v,b]=(0,s.useState)(null),y=null===(t=s.Children.toArray(n)[0])||void 0===t?void 0:t.ref,w=(0,d.useMergeRefs)([b,y]),x=e=>{"OPTION"!==e.target.tagName&&(Ff(n,"onMouseDown",e),document.addEventListener("mouseup",C),p(!0))},_=e=>{"OPTION"!==e.target.tagName&&(Ff(n,"onMouseUp",e),document.removeEventListener("mouseup",C),p(!1))},E=e=>"mouseUp"===e?_:"mouseDown"===e?x:void 0,C=E("mouseUp"),k=(e,t)=>r=>{if(Ff(n,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&f)return;g.cancel();const o=["focus","mouseenter"].includes(r.type);o!==m&&(t?g(o):h(o))},S=()=>{g.cancel(),document.removeEventListener("mouseup",C)};if((0,s.useEffect)((()=>S),[]),1!==s.Children.count(n))return n;const T={onMouseEnter:k("onMouseEnter",!0),onMouseLeave:k("onMouseLeave"),onClick:k("onClick"),onFocus:k("onFocus"),onBlur:k("onBlur"),onMouseDown:E("mouseDown")},N=s.Children.only(n),{children:R,disabled:I}=N.props,M=I?zf:Bf,P=(e=>{let{anchor:t,grandchildren:n,isOver:r,offset:o,position:i,shortcut:l,text:u,className:d,...f}=e;return(0,s.concatChildren)(n,r&&(0,s.createElement)(Of,a({focusOnMount:!1,position:i,className:c()("components-tooltip",d),"aria-hidden":"true",animate:!1,offset:o,anchor:t,shift:!0},f),u,(0,s.createElement)(Df,{className:"components-tooltip__shortcut",shortcut:l})))})({grandchildren:R,...{anchor:v,isOver:m,offset:4,position:r,shortcut:i,text:o},...u});return M({child:N,eventHandlers:T,childrenWithPopover:P,mergedRefs:w})};const Hf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],jf={"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")},$f=Hf.flat();function Wf(e){return("center"===e?"center center":e).replace("-"," ")}function Uf(e,t){return`${e}-${Wf(t).replace(" ","-")}`}n(1281);function Gf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ku(t)}var Yf={grad:.9,turn:360,rad:360/(2*Math.PI)},qf=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Kf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Zf=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Jf=function(e){return{r:Xf(e.r,0,255),g:Xf(e.g,0,255),b:Xf(e.b,0,255),a:Xf(e.a)}},Qf=function(e){return{r:Kf(e.r),g:Kf(e.g),b:Kf(e.b),a:Kf(e.a,3)}},ep=/^#([0-9a-f]{3,8})$/i,tp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},np=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}},rp=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}},op=function(e){return{h:Zf(e.h),s:Xf(e.s,0,100),l:Xf(e.l,0,100),a:Xf(e.a)}},ip=function(e){return{h:Kf(e.h),s:Kf(e.s),l:Kf(e.l),a:Kf(e.a,3)}},ap=function(e){return rp((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},sp=function(e){return{h:(t=np(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},lp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,cp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,up=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,dp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fp={string:[[function(e){var t=ep.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?Kf(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?Kf(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=up.exec(e)||dp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Jf({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=lp.exec(e)||cp.exec(e);if(!t)return null;var n,r,o=op({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Yf[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ap(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 qf(t)&&qf(n)&&qf(r)?Jf({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(!qf(t)||!qf(n)||!qf(r))return null;var a=op({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return ap(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!qf(t)||!qf(n)||!qf(r))return null;var a=function(e){return{h:Zf(e.h),s:Xf(e.s,0,100),v:Xf(e.v,0,100),a:Xf(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return rp(a)},"hsv"]]},pp=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]},mp=function(e){return"string"==typeof e?pp(e.trim(),fp.string):"object"==typeof e&&null!==e?pp(e,fp.object):[null,void 0]},hp=function(e,t){var n=sp(e);return{h:n.h,s:Xf(n.s+100*t,0,100),l:n.l,a:n.a}},gp=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},vp=function(e,t){var n=sp(e);return{h:n.h,s:n.s,l:Xf(n.l+100*t,0,100),a:n.a}},bp=function(){function e(e){this.parsed=mp(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 Kf(gp(this.rgba),2)},e.prototype.isDark=function(){return gp(this.rgba)<.5},e.prototype.isLight=function(){return gp(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Qf(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?tp(Kf(255*o)):"","#"+tp(t)+tp(n)+tp(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Qf(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Qf(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 ip(sp(this.rgba))},e.prototype.toHslString=function(){return t=(e=ip(sp(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=np(this.rgba),{h:Kf(e.h),s:Kf(e.s),v:Kf(e.v),a:Kf(e.a,3)};var e},e.prototype.invert=function(){return yp({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),yp(hp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),yp(hp(this.rgba,-e))},e.prototype.grayscale=function(){return yp(hp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),yp(vp(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),yp(vp(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?yp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Kf(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=sp(this.rgba);return"number"==typeof e?yp({h:e,s:t.s,l:t.l,a:t.a}):Kf(t.h)},e.prototype.isEqual=function(e){return this.toHex()===yp(e).toHex()},e}(),yp=function(e){return e instanceof bp?e:new bp(e)},wp=[],xp=function(e){e.forEach((function(e){wp.indexOf(e)<0&&(e(bp,fp),wp.push(e))}))};function _p(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 p=(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));p<c&&(c=p,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"])}function Ep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return yp(e).alpha(t).toRgbString()}xp([_p]);const Cp="#fff",kp={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Sp="var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #006ba1))",Tp={theme:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba))",themeDark10:Sp,background:Cp,backgroundDisabled:kp[100],border:kp[600],borderHover:kp[700],borderFocus:Sp,borderDisabled:kp[400],textDisabled:kp[600],textDark:Cp,darkGrayPlaceholder:Ep(kp[900],.62),lightGrayPlaceholder:Ep(Cp,.65)},Np=Object.freeze({gray:kp,white:Cp,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:Tp});function Rp(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\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${e};\n\t\t}\n\t`}var Ip={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const Mp=()=>Ip,Pp=ed("div",{target:"ecapk1j3"})(Mp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(e=>{let{size:t=92}=e;return Gf("grid-template-rows:repeat( 3, calc( ",t,"px / 3 ) );width:",t,"px;","")}),";"),Op=ed("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Dp=e=>Gf("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Rp("transition")," ",(e=>{let{isActive:t}=e;return Gf("box-shadow:",t?`0 0 0 2px ${Np.gray[900]}`:null,";color:",t?Np.gray[900]:Np.gray[400],";*:hover>&{color:",t?Np.gray[900]:Np.ui.theme,";}","")})(e),";",""),Ap=ed("span",{target:"ecapk1j1"})("height:6px;width:6px;",Dp,";"),Lp=ed("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 zp(e){let{isActive:t=!1,value:n,...r}=e;const o=jf[n];return(0,s.createElement)(Vf,{text:o},(0,s.createElement)(Se,a({as:Lp,role:"gridcell"},r),(0,s.createElement)(rd,null,n),(0,s.createElement)(Ap,{isActive:t,role:"presentation"})))}function Bp(e){return(0,b.useState)(e)[0]}function Fp(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=v(e);!(t=o()).done;)r();return n}function Vp(e){for(var t,n=[],r=v(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Hp(e){return e.slice().reverse()}function jp(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function $p(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function Wp(e){void 0===e&&(e={});var t=Bp(e).baseId,n=(0,b.useContext)(we),r=(0,b.useRef)(0),o=(0,b.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function Up(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Gp(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Up(t.ref.current,e.ref.current)}))}function Yp(e){for(var t,n=0,r=v(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function qp(e){for(var t=Fp(e),n=Yp(t),r=[],o=0;o<n;o+=1)for(var i,a=v(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(m(m({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function Kp(e,t,n){for(var r,o=Yp(e),i=v(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var l=a[s];if(!l||n&&l.disabled){var c=0===s&&n?ue(a):a[s-1];a[s]=c&&t!==(null==c?void 0:c.id)&&n?c:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==c?void 0:c.groupId}}}return e}var Xp={id:null,ref:{current:null}};function Zp(e,t){return e.filter((function(e){return e.groupId===t}))}var Jp={horizontal:"vertical",vertical:"horizontal"};function Qp(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function em(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,l=a.ref.current;return s&&l?Up(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function tm(e,t){var n=em(e);e!==n&&t(n)}function nm(e,t){var n=(0,b.useRef)([]);(0,b.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return j(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&tm(e,t),n.current=e}),{root:o}),a=v(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function rm(e,t){"function"==typeof IntersectionObserver?nm(e,t):function(e,t){(0,b.useEffect)((function(){var n=setTimeout((function(){return tm(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function om(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,l=e.loop,c=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,p=e.unstable_includesBaseElement,h=e.initialVirtual,g=e.initialRTL,v=e.initialOrientation,b=e.initialCurrentId,y=e.initialLoop,w=e.initialWrap,x=e.initialShift,_=e.hasSetCurrentId;switch(t.type){case"registerGroup":var E=t.group;if(0===a.length)return m(m({},e),{},{groups:[E]});var C=Gp(a,E);return m(m({},e),{},{groups:Qp(a,E,C)});case"unregisterGroup":var k=t.id,S=a.filter((function(e){return e.id!==k}));return S.length===a.length?e:m(m({},e),{},{groups:S});case"registerItem":var T,N=t.item,R=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(N.ref.current)})),I=m({groupId:null==R?void 0:R.id},N),M=Gp(i,I),P=m(m({},e),{},{items:Qp(i,I,M)});return _||f||void 0!==b?P:m(m({},P),{},{currentId:null===(T=ue(P.items))||void 0===T?void 0:T.id});case"unregisterItem":var O=t.id,D=i.filter((function(e){return e.id!==O}));if(D.length===i.length)return e;var A=u.filter((function(e){return e!==O})),L=m(m({},e),{},{pastIds:A,items:D});if(s&&s===O){var z=p?null:de(m(m({},L),{},{currentId:A[0]}));return m(m({},L),{},{currentId:z})}return L;case"move":var B=t.id;if(void 0===B)return e;var F=u.filter((function(e){return e!==s&&e!==B})),V=s?[s].concat(F):F,H=m(m({},e),{},{pastIds:V});if(null===B)return m(m({},H),{},{unstable_moves:f+1,currentId:de(H,B)});var j=jp(i,B);return m(m({},H),{},{unstable_moves:j?f+1:f,currentId:de(H,null==j?void 0:j.id)});case"next":if(null==s)return om(e,m(m({},t),{},{type:"first"}));var $=r&&"vertical"!==o,W=$?Hp(i):i,U=W.find((function(e){return e.id===s}));if(!U)return om(e,m(m({},t),{},{type:"first"}));var G=!!U.groupId,Y=W.indexOf(U),q=W.slice(Y+1),K=Zp(q,U.groupId);if(t.allTheWay){var X=ue($?Zp(W,U.groupId):Hp(K));return om(e,m(m({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&Jp[e]}(G?o||"horizontal":o),J=l&&l!==Z,Q=G&&c&&c!==Z,ee=t.hasNullItem||!G&&J&&p;if(J){var te=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[Xp]:[],e.slice(0,r))}(Q&&!ee?W:Zp(W,U.groupId),s,ee),ne=ue(te,s);return om(e,m(m({},t),{},{type:"move",id:null==ne?void 0:ne.id}))}if(Q){var re=ue(ee?K:q,s),oe=ee?(null==re?void 0:re.id)||null:null==re?void 0:re.id;return om(e,m(m({},t),{},{type:"move",id:oe}))}var ie=ue(K,s);return om(e,!ie&&ee?m(m({},t),{},{type:"move",id:null}):m(m({},t),{},{type:"move",id:null==ie?void 0:ie.id}));case"previous":var ae=!!!a.length&&p,se=om(m(m({},e),{},{items:Hp(i)}),m(m({},t),{},{type:"next",hasNullItem:ae}));return m(m({},se),{},{items:i});case"down":var le=d&&!t.allTheWay,ce=qp(Vp(Kp(Fp(i),s,le))),fe=l&&"horizontal"!==l&&p,pe=om(m(m({},e),{},{orientation:"vertical",items:ce}),m(m({},t),{},{type:"next",hasNullItem:fe}));return m(m({},pe),{},{orientation:o,items:i});case"up":var me=d&&!t.allTheWay,he=qp(Hp(Vp(Kp(Fp(i),s,me)))),ge=p,ve=om(m(m({},e),{},{orientation:"vertical",items:he}),m(m({},t),{},{type:"next",hasNullItem:ge}));return m(m({},ve),{},{orientation:o,items:i});case"first":var be=ue(i);return om(e,m(m({},t),{},{type:"move",id:null==be?void 0:be.id}));case"last":var ye=om(m(m({},e),{},{items:Hp(i)}),m(m({},t),{},{type:"first"}));return m(m({},ye),{},{items:i});case"sort":return m(m({},e),{},{items:em(i),groups:em(a)});case"setVirtual":return m(m({},e),{},{unstable_virtual:$p(t.virtual,n)});case"setRTL":return m(m({},e),{},{rtl:$p(t.rtl,r)});case"setOrientation":return m(m({},e),{},{orientation:$p(t.orientation,o)});case"setCurrentId":var we=de(m(m({},e),{},{currentId:$p(t.currentId,s)}));return m(m({},e),{},{currentId:we,hasSetCurrentId:!0});case"setLoop":return m(m({},e),{},{loop:$p(t.loop,l)});case"setWrap":return m(m({},e),{},{wrap:$p(t.wrap,c)});case"setShift":return m(m({},e),{},{shift:$p(t.shift,d)});case"setIncludesBaseElement":return m(m({},e),{},{unstable_includesBaseElement:$p(t.includesBaseElement,p)});case"reset":return m(m({},e),{},{unstable_virtual:h,rtl:g,orientation:v,currentId:de(m(m({},e),{},{currentId:b})),loop:y,wrap:w,shift:x,unstable_moves:0,pastIds:[]});case"setItems":return m(m({},e),{},{items:t.items});default:throw new Error}}function im(e){return(0,b.useCallback)(e,[])}function am(e){void 0===e&&(e={});var t=Bp(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,i=void 0!==o&&o,a=t.orientation,s=t.currentId,l=t.loop,c=void 0!==l&&l,u=t.wrap,d=void 0!==u&&u,f=t.shift,p=void 0!==f&&f,g=t.unstable_includesBaseElement,v=Wp(h(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),y=(0,b.useReducer)(om,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:p,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=g?g:null===s,initialVirtual:r,initialRTL:i,initialOrientation:a,initialCurrentId:s,initialLoop:c,initialWrap:d,initialShift:p}),w=y[0],x=(w.pastIds,w.initialVirtual,w.initialRTL,w.initialOrientation,w.initialCurrentId,w.initialLoop,w.initialWrap,w.initialShift,w.hasSetCurrentId,h(w,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),_=y[1],E=(0,b.useState)(!1),C=E[0],k=E[1],S=function(){var e=(0,b.useRef)(!1);return U((function(){return function(){e.current=!0}}),[]),e}(),T=(0,b.useCallback)((function(e){return _({type:"setItems",items:e})}),[]);return rm(x.items,T),m(m(m({},v),x),{},{unstable_hasActiveWidget:C,unstable_setHasActiveWidget:k,registerItem:im((function(e){S.current||_({type:"registerItem",item:e})})),unregisterItem:im((function(e){S.current||_({type:"unregisterItem",id:e})})),registerGroup:im((function(e){S.current||_({type:"registerGroup",group:e})})),unregisterGroup:im((function(e){S.current||_({type:"unregisterGroup",id:e})})),move:im((function(e){return _({type:"move",id:e})})),next:im((function(e){return _({type:"next",allTheWay:e})})),previous:im((function(e){return _({type:"previous",allTheWay:e})})),up:im((function(e){return _({type:"up",allTheWay:e})})),down:im((function(e){return _({type:"down",allTheWay:e})})),first:im((function(){return _({type:"first"})})),last:im((function(){return _({type:"last"})})),sort:im((function(){return _({type:"sort"})})),unstable_setVirtual:im((function(e){return _({type:"setVirtual",virtual:e})})),setRTL:im((function(e){return _({type:"setRTL",rtl:e})})),setOrientation:im((function(e){return _({type:"setOrientation",orientation:e})})),setCurrentId:im((function(e){return _({type:"setCurrentId",currentId:e})})),setLoop:im((function(e){return _({type:"setLoop",loop:e})})),setWrap:im((function(e){return _({type:"setWrap",wrap:e})})),setShift:im((function(e){return _({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:im((function(e){return _({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:im((function(){return _({type:"reset"})}))})}function sm(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):_e(e,t,n)}function lm(e,t){var n=sm(e,"blur",t),r=e.dispatchEvent(n),o=M(M({},t),{},{bubbles:!0});return e.dispatchEvent(sm(e,"focusout",o)),r}function cm(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=j(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,$(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var um=W&&"msCrypto"in window;var dm=W&&"msCrypto"in window;function fm(e,t,n){var r=G(n);return(0,b.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!Y(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(cm(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function pm(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var mm=F({name:"Composite",compose:[le],keys:fe,useOptions:function(e){return m(m({},e),{},{currentId:de(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,i=t.onBlurCapture,a=t.onKeyDown,s=t.onKeyDownCapture,l=t.onKeyUpCapture,c=h(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=(0,b.useRef)(null),d=jp(e.items,e.currentId),f=(0,b.useRef)(null),p=G(r),g=G(o),v=G(i),y=G(a),w=function(e){var t=G(e),n=(0,b.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,b.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&he(n)}),[r]),o}(d),x=dm?function(e){var t=(0,b.useRef)(null);return(0,b.useEffect)((function(){var n=j(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;(0,b.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var _=fm(e.unstable_virtual,d,s),E=fm(e.unstable_virtual,d,l),C=(0,b.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==x?void 0:x.current)||t.relatedTarget,o=pm(e.items,r);Y(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),k=(0,b.useCallback)((function(t){var n;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented)if(e.unstable_virtual)Y(t)&&w();else if(Y(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),S=(0,b.useCallback)((function(t){var n;if(null===(n=v.current)||void 0===n||n.call(v,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return um?q(e.currentTarget):e.relatedTarget}(t),i=pm(e.items,o);if(Y(t)&&i)o===r?f.current&&f.current!==o&&lm(f.current,t):r&&lm(r,t),t.stopPropagation();else!pm(e.items,t.target)&&r&&lm(r,t)}}),[e.unstable_virtual,e.items,d]),T=(0,b.useCallback)((function(t){var n,r;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented&&null===e.currentId&&Y(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=ue(Vp(Hp(Fp(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last},l=s[t.key];l&&(t.preventDefault(),l())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return m({ref:H(u,n),id:e.baseId,onFocus:k,onFocusCapture:C,onBlurCapture:S,onKeyDownCapture:_,onKeyDown:T,onKeyUpCapture:E,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},c)},useComposeProps:function(e,t){t=re(e,t,!0);var n=le(e,t,!0);return e.unstable_virtual||null===e.currentId?m({tabIndex:0},n):m(m({},t),{},{ref:n.ref})}}),hm=z({as:"div",useHook:mm,useCreateElement:function(e,t,n){return N(e,t,n)}}),gm=F({name:"Group",compose:re,keys:[],useProps:function(e,t){return m({role:"group"},t)}}),vm=(z({as:"div",useHook:gm}),F({name:"CompositeGroup",compose:[gm,xe],keys:pe,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return gm.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,h(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,h(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=jp(e.items,n),s=jp(t.items,o),l=null==a?void 0:a.groupId,c=null==s?void 0:s.groupId;if(t.id===c||t.id===l)return!1}return gm.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=h(t,["ref"]),o=(0,b.useRef)(null),i=e.id;return U((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),m({ref:H(o,n)},r)}})),bm=z({as:"div",useHook:vm});ed("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const ym=ed("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",Mp,";",(()=>Gf({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(e=>{let{disablePointerEvents:t}=e;return Gf({pointerEvents:t?"none":void 0},"","")}),";"),wm=ed("span",{target:"erowt50"})("height:2px;width:2px;",Dp,";",(e=>{let{isActive:t}=e;return Gf("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")}),";"),xm=Lp,_m=24;var Em=function(e){let{className:t,disablePointerEvents:n=!0,size:r=_m,style:o={},value:i="center",...l}=e;const u=function(){const e=Wf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center"),t=$f.indexOf(e);return t>-1?t:void 0}(i),d=(r/_m).toFixed(2),f=c()("component-alignment-matrix-control-icon",t),p={...o,transform:`scale(${d})`};return(0,s.createElement)(ym,a({},l,{className:f,disablePointerEvents:n,role:"presentation",style:p}),$f.map(((e,t)=>{const n=u===t;return(0,s.createElement)(xm,{key:e},(0,s.createElement)(wm,{isActive:n}))})))};const Cm=()=>{};function km(e){let{className:t,id:n,label:r=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:l=Cm,width:f=92,...p}=e;const[m]=(0,s.useState)(null!=i?i:o),h=function(e){const t=(0,d.useInstanceId)(km,"alignment-matrix-control");return e||t}(n),g=Uf(h,m),v=am({baseId:h,currentId:g,rtl:(0,u.isRTL)()}),{setCurrentId:b}=v;(0,s.useEffect)((()=>{void 0!==i&&b(Uf(h,i))}),[i,b,h]);const y=c()("component-alignment-matrix-control",t);return(0,s.createElement)(hm,a({},p,v,{"aria-label":r,as:Pp,className:y,role:"grid",size:f}),Hf.map(((e,t)=>(0,s.createElement)(bm,a({},v,{as:Op,role:"row",key:t}),e.map((e=>{const t=Uf(h,e),n=v.currentId===t;return(0,s.createElement)(zp,a({},v,{id:t,isActive:n,key:e,value:e,onFocus:()=>{l(e)},tabIndex:n?0:-1}))}))))))}km.Icon=Em;var Sm=km;function Tm(e){return"appear"===e?"top":"left"}function Nm(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=Tm(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}function Rm(e){let{type:t,options:n={},children:r}=e;return r({className:Nm({type:t,...n})})}function Im(){const e=(0,b.useRef)(!1);return Gt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class Mm extends b.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 Pm({children:e,isPresent:t}){const n=(0,b.useId)(),r=(0,b.useRef)(null),o=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.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: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),b.createElement(Mm,{isPresent:t,childRef:r,sizeRef:o},b.cloneElement(e,{ref:r}))}const Om=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=an(Dm),l=(0,b.useId)(),c=(0,b.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,b.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),b.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=b.createElement(Pm,{isPresent:n},e)),b.createElement(Ut.Provider,{value:c},e)};function Dm(){return new Map}const Am=e=>e.key||"";const Lm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{o&&(a="wait",Kr(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){const e=Im(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,b.useCallback)((()=>wo.postRender(r)),[r]),t]}();const l=(0,b.useContext)(cn).forceRender;l&&(s=l);const c=Im(),u=function(e){const t=[];return b.Children.forEach(e,(e=>{(0,b.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=new Set,p=(0,b.useRef)(d),m=(0,b.useRef)(new Map).current,h=(0,b.useRef)(!0);if(Gt((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Am(e);t.set(n,e)}))}(u,m),p.current=d})),Wr((()=>{h.current=!0,m.clear(),f.clear()})),h.current)return b.createElement(b.Fragment,null,d.map((e=>b.createElement(Om,{key:Am(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const g=p.current.map(Am),v=u.map(Am),y=g.length;for(let e=0;e<y;e++){const t=g[e];-1===v.indexOf(t)&&f.add(t)}return"wait"===a&&f.size&&(d=[]),f.forEach((e=>{if(-1!==v.indexOf(e))return;const n=m.get(e);if(!n)return;const o=g.indexOf(e);d.splice(o,0,b.createElement(Om,{key:Am(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);const t=p.current.findIndex((t=>t.key===e));if(p.current.splice(t,1),!f.size){if(p.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a},n))})),d=d.map((e=>{const t=e.key;return f.has(t)?e:b.createElement(Om,{key:Am(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),"production"!==Yr&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),b.createElement(b.Fragment,null,f.size?d:d.map((e=>(0,b.cloneElement)(e))))},zm=(0,s.createContext)({flexItemDisplay:void 0});const Bm={name:"zjik7",styles:"display:flex"},Fm={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Vm={name:"82a6rk",styles:"flex:1"},Hm={name:"13nosa1",styles:">*{min-height:0;}"},jm={name:"1pwxzk4",styles:">*{min-width:0;}"};function $m(e){const{className:t,display:n,isBlock:r=!1,...o}=ju(e,"FlexItem"),i={},a=(0,s.useContext)(zm).flexItemDisplay;i.Base=Gf({display:n||a},"","");return{...o,className:Hu()(Fm,i.Base,r&&Vm,t)}}var Wm=$u((function(e,t){const n=function(e){return $m({isBlock:!0,...ju(e,"FlexBlock")})}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"FlexBlock");var Um=$u((function(e,t){const n=$m(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"FlexItem");var Gm=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var Ym=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M7 11.5h10V13H7z"}));const qm=["40em","52em","64em"],Km=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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>qm.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${qm.length} breakpoints, got index ${t}`);const[n,r]=(0,s.useState)(t);return(0,s.useEffect)((()=>{const e=()=>{const e=qm.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 Xm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Km(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function Zm(e){var t,n;if(void 0===e)return;if(!e)return"0";const r="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(r)?e.toString():`calc(4px * ${e})`}function Jm(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:l=!1,...c}=ju(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Jl()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=Xm(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f=Hu();return{...c,className:(0,s.useMemo)((()=>{const e=Gf({alignItems:d?"normal":t,flexDirection:u,flexWrap:l?"wrap":void 0,gap:Zm(i),justifyContent:a,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Bm,e,d?Hm:jm,n)}),[t,n,f,u,o,i,d,a,l]),isColumn:d}}var Qm=$u((function(e,t){const{children:n,isColumn:r,...o}=Jm(e);return(0,s.createElement)(zm.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,s.createElement)(nd,a({},o,{ref:t}),n))}),"Flex");const eh={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function th(e){return null!=e}function nh(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(th))&&void 0!==e?e:n}const rh=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,oh="…",ih={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},ah={ellipsis:oh,ellipsizeMode:ih.auto,limit:0,numberOfLines:0};function sh(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=th(r)?r:oh;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)}function lh(e){const{className:t,children:n,ellipsis:r=oh,ellipsizeMode:o=ih.auto,limit:i=0,numberOfLines:a=0,...l}=ju(e,"Truncate"),c=Hu(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={...ah,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===ih.none)return e;let a,s;switch(o){case ih.head:a=0,s=i;break;case ih.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}return o!==ih.auto?sh(e,a,s,r):e}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}),d=o===ih.auto;return{...l,className:(0,s.useMemo)((()=>c(d&&!a&&eh,d&&!!a&&Gf("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,a,d]),children:u}}let ch;xp([_p]);const uh=uc()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&yp(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!ch){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),ch=e}return ch}}();if(!r)return"";r.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(r).background;return r.style.background="",o||""}));function dh(e){const t=function(e){const t=uh(e);return yp(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const fh="36px",ph="12px",mh={controlSurfaceColor:Np.white,controlTextActiveColor:Np.ui.theme,controlPaddingX:ph,controlPaddingXLarge:"calc(12px * 1.3334)",controlPaddingXSmall:"calc(12px / 1.3334)",controlBackgroundColor:Np.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Np.ui.theme}`,controlDestructiveBorderColor:Np.alert.red,controlHeight:fh,controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},hh={toggleGroupControlBackgroundColor:mh.controlBackgroundColor,toggleGroupControlBorderColor:Np.ui.border,toggleGroupControlBackdropBackgroundColor:mh.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Np.ui.border,toggleGroupControlButtonColorActive:mh.controlBackgroundColor};var gh=Object.assign({},mh,hh,{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:`${Zm(2)}`,cardPaddingSmall:`${Zm(4)}`,cardPaddingMedium:`${Zm(4)} ${Zm(6)}`,cardPaddingLarge:`${Zm(6)} ${Zm(8)}`,surfaceBackgroundColor:Np.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:Np.white,surfaceColor:Np.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 vh=Gf("color:",Np.gray[900],";line-height:",gh.fontLineHeightBase,";margin:0;",""),bh={name:"4zleql",styles:"display:block"},yh=Gf("color:",Np.alert.green,";",""),wh=Gf("color:",Np.alert.red,";",""),xh=Gf("color:",Np.gray[700],";",""),_h=Gf("mark{background:",Np.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;}",""),Eh={name:"50zrmy",styles:"text-transform:uppercase"};var Ch=n(3138);const kh=uc()((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Sh={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Th=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Nh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:13;if(e in Sh)return Nh(Sh[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}const t=`(${e} / 13)`;return`calc(${t} * ${gh.fontSize})`}function Rh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!Th.includes(e))return Nh(e);const t=`fontSizeH${e}`;return gh[t]}var Ih={name:"50zrmy",styles:"text-transform:uppercase"};function Mh(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:a,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:_,weight:E=gh.fontWeight,...C}=ju(t,"Text");let k=o;const S=Array.isArray(p),T="caption"===y;if(S){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:r,autoEscape:o,caseSensitive:i=!1,children:a,findChunks:l,highlightClassName:c="",highlightStyle:u={},highlightTag:d="mark",sanitize:f,searchWords:p=[],unhighlightClassName:m="",unhighlightStyle:h}=e;if(!a)return null;if("string"!=typeof a)return a;const g=a,v=(0,Ch.findAll)({autoEscape:o,caseSensitive:i,findChunks:l,sanitize:f,searchWords:p,textToHighlight:g}),b=d;let y,w=-1,x="";const _=v.map(((e,o)=>{const a=g.substr(e.start,e.end-e.start);if(e.highlight){let e;w++,"object"==typeof c?i?e=c[a]:(c=kh(c),e=c[a.toLowerCase()]):e=c;const l=w===+n;x=`${e} ${l?t:""}`,y=!0===l&&null!==r?Object.assign({},u,r):u;const d={children:a,className:x,key:o,style:y};return"string"!=typeof b&&(d.highlightIndex=w),(0,s.createElement)(b,d)}return(0,s.createElement)("span",{children:a,className:m,key:o,style:h})}));return _}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const N=Hu();let R;!0===w&&(R="auto"),!1===w&&(R="none");const I=lh({...C,className:(0,s.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${gh.controlHeight} + ${Zm(2)})`;switch(e){case"large":n=`calc(${gh.controlHeightLarge} + ${Zm(2)})`;break;case"small":n=`calc(${gh.controlHeightSmall} + ${Zm(2)})`;break;case"xSmall":n=`calc(${gh.controlHeightXSmall} + ${Zm(2)})`}return n}(n,v);if(t.Base=Gf({color:a,display:u,fontSize:Nh(y),fontWeight:E,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=Ih,t.optimalTextColor=null,b){const e="dark"===dh(b);t.optimalTextColor=Gf(e?{color:Np.gray[900]}:{color:Np.white},"","")}return N(vh,t.Base,t.optimalTextColor,c&&wh,!!S&&_h,h&&bh,T&&xh,_&&e[_],x&&t.upperCase,i)}),[n,r,i,a,N,u,h,T,c,S,g,v,b,y,x,_,E]),children:o,ellipsizeMode:l||R});return!w&&Array.isArray(o)&&(k=s.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return Gu(e,["Link"])?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...I,children:w?I.children:k}}var Ph=$u((function(e,t){const n=Mh(e);return(0,s.createElement)(nd,a({as:"span"},n,{ref:t}))}),"Text");const Oh={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},Dh=new RegExp(/-left/g),Ah=new RegExp(/-right/g),Lh=new RegExp(/Left/g),zh=new RegExp(/Right/g);function Bh(e){return"left"===e?"right":"right"===e?"left":Dh.test(e)?e.replace(Dh,"-right"):Ah.test(e)?e.replace(Ah,"-left"):Lh.test(e)?e.replace(Lh,"Right"):zh.test(e)?e.replace(zh,"Left"):e}const Fh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[Bh(t),n]})))};function Vh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,u.isRTL)()?Gf(t,""):Gf(e,""):(0,u.isRTL)()?Gf(Fh(e),""):Gf(e,"")}Vh.watch=()=>(0,u.isRTL)();var Hh={name:"1739oy8",styles:"z-index:1"};const jh=e=>{let{isFocused:t}=e;return t?Hh:""},$h=ed(Qm,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",jh,";");var Wh={name:"1d3w5wq",styles:"width:100%"};const Uh=ed("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return Gf({backgroundColor:t?Np.ui.backgroundDisabled:Np.ui.background},"","")})," ",(e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":Gf("edge"===n?{flex:`0 0 ${t}`}:{width:t},"",""):Wh}),";"),Gh=e=>{let{inputSize:t,__next36pxDefaultSize:n}=e;const r={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:Zm(4),paddingRight:Zm(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Zm(2),paddingRight:Zm(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Zm(4),paddingRight:Zm(4)}};return n||(r.default={height:30,lineHeight:1,minHeight:30,paddingLeft:Zm(2),paddingRight:Zm(2)}),r[t]||r.default},Yh=ed("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Np.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,n,{isDragging:r,dragCursor:o}=e;return r&&(t=Gf("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=Gf("&:active{cursor:",o,";}","")),Gf(t," ",n,";","")})," ",(e=>{let{disabled:t}=e;return t?Gf({color:Np.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"},r=n[t]||n.default;return r?Gf("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""})," ",(e=>Gf(Gh(e),"",""))," ",(e=>{let{paddingInlineStart:t,paddingInlineEnd:n}=e;return Gf({paddingInlineStart:t,paddingInlineEnd:n},"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),qh=ed(Ph,{target:"em5sgkm4"})("&&&{",Oh,";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;}"),Kh=e=>(0,s.createElement)(qh,a({},e,{as:"label"})),Xh=ed(Um,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Zh=ed("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;",(e=>{let t,{disabled:n,isFocused:r}=e,o=r?Np.ui.borderFocus:Np.ui.border;return r&&(t=`0 0 0 1px ${Np.ui.borderFocus} inset`),n&&(o=Np.ui.borderDisabled),Gf({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",Vh({paddingLeft:2}),";}"),Jh=ed("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Qh=ed("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const eg=(0,s.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return(0,s.createElement)(Zh,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})}));var tg=eg;function ng(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?(0,s.createElement)(rd,{as:"label",htmlFor:r},t):(0,s.createElement)(Xh,null,(0,s.createElement)(Kh,a({htmlFor:r},o),t)):null}function rg(e,t){let{__next36pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:l=!1,hideLabelFromVision:c=!1,labelPosition:u,id:f,isFocused:p=!1,label:m,prefix:h,size:g="default",suffix:v,...b}=e;const y=function(e){const t=(0,d.useInstanceId)(rg);return e||`input-base-control-${t}`}(f),w=c||!m,{paddingLeft:x,paddingRight:_}=Gh({inputSize:g,__next36pxDefaultSize:n}),E=(0,s.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:x},InputControlSuffixWrapper:{paddingRight:_}})),[x,_]);return(0,s.createElement)($h,a({},b,function(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}(u),{className:i,gap:2,isFocused:p,labelPosition:u,ref:t}),(0,s.createElement)(ng,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:u,htmlFor:y},m),(0,s.createElement)(Uh,{__unstableInputWidth:r,className:"components-input-control__container",disabled:l,hideLabel:w,labelPosition:u},(0,s.createElement)(sc,{value:E},h&&(0,s.createElement)(Jh,{className:"components-input-control__prefix"},h),o,v&&(0,s.createElement)(Qh,{className:"components-input-control__suffix"},v)),(0,s.createElement)(tg,{disabled:l,isFocused:p})))}var og=(0,s.forwardRef)(rg);const ig={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[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 ag(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function sg(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?-ag(t-e,n-t,r)+t:e>n?+ag(e-n,n-t,r)+n:e}function lg(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 cg(e,t,n){return(t=lg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ug(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 dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){cg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fg={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 pg(e){return e?e[0].toUpperCase()+e.slice(1):""}const mg=["enter","leave"];function hg(e,t="",n=!1){const r=fg[e],o=r&&r[t]||t;return"on"+pg(e)+pg(o)+(function(e=!1,t){return e&&!mg.includes(t)}(n,o)?"Capture":"")}const gg=["gotpointercapture","lostpointercapture"];function vg(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=gg.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function bg(e){return"touches"in e}function yg(e){return bg(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function wg(e){return bg(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function xg(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 _g(e){const t=wg(e);return bg(e)?t.identifier:t.pointerId}function Eg(e){const t=wg(e);return[t.clientX,t.clientY]}function Cg(e,...t){return"function"==typeof e?e(...t):e}function kg(){}function Sg(...e){return 0===e.length?kg:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Tg(e,t){return Object.assign({},t,e||{})}class Ng{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?Cg(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);ig.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,p=t._active&&!t._blocked||t.active;p&&(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=Cg(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[m<g?-1:m>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 w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[sg(t,i,a,r),sg(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=ig.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=ig.sub(t.offset,f);const e=t.delta.map(Math.abs);ig.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(dg(dg(dg({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Rg extends Ng{constructor(...e){super(...e),cg(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=ig.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ig.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[yg(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 Ig=e=>e,Mg={enabled(e=!0){return e},eventOptions(e,t,n){return dg(dg({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return ig.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?ig.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Ig},threshold(e){return ig.toVector(e,0)}};const Pg=dg(dg({},Mg),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>Pg.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]]}}),Og={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 Dg="undefined"!=typeof window&&window.document&&window.document.createElement;function Ag(){return Dg&&"ontouchstart"in window}const Lg={isBrowser:Dg,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Ag(),touchscreen:Ag()||Dg&&window.navigator.maxTouchPoints>1,pointer:Dg&&"onpointerdown"in window,pointerLock:Dg&&"exitPointerLock"in window.document},zg={mouse:0,touch:0,pen:8},Bg=dg(dg({},Pg),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Lg.pointerLock,Lg.touch&&n?"touch":this.pointerLock?"mouse":Lg.pointer&&!o?"pointer":Lg.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Lg.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=ig.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(ig.toVector(e)),distance:this.transform(ig.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?dg(dg({},zg),e):zg},keyboardDisplacement(e=10){return e}});dg(dg({},Mg),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Lg.touch&&Lg.gesture)return"gesture";if(Lg.touch&&r)return"touch";if(Lg.touchscreen){if(Lg.pointer)return"pointer";if(Lg.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Tg(Cg(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Tg(Cg(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 ig.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});dg(dg({},Pg),{},{mouseOnly:(e=!0)=>e});const Fg=dg(dg({},Pg),{},{mouseOnly:(e=!0)=>e}),Vg=new Map,Hg=new Map;function jg(e){Vg.set(e.key,e.engine),Hg.set(e.key,e.resolver)}const $g={key:"drag",engine:class extends Rg{constructor(...e){super(...e),cg(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=Pg.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=_g(e),n._pointerActive=!0,this.computeValues(Eg(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==yg(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=_g(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Eg(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=ig.sub(o,t._values),this.computeValues(o)),ig.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=_g(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,[a,s]=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>a&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&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=Og[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,ig.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Og&&(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:Bg},Wg={key:"hover",engine:class extends Rg{constructor(...e){super(...e),cg(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Eg(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Eg(e);t._movement=t._delta=ig.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:Fg};function Ug(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 Gg={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(Lg.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},Yg=["target","eventOptions","window","enabled","transform"];function qg(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]=qg(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class Kg{constructor(e,t){cg(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=fg[e];return e+(n&&n[t]||t)}(t,n),s=dg(dg({},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 Xg{constructor(){cg(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 Zg{constructor(e){cg(this,"gestures",new Set),cg(this,"_targetEventStore",new Kg(this)),cg(this,"gestureEventStores",{}),cg(this,"gestureTimeoutStores",{}),cg(this,"handlers",{}),cg(this,"config",{}),cg(this,"pointerIds",new Set),cg(this,"touchIds",new Set),cg(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&Jg(e,"drag");t.wheel&&Jg(e,"wheel");t.scroll&&Jg(e,"scroll");t.move&&Jg(e,"move");t.pinch&&Jg(e,"pinch");t.hover&&Jg(e,"hover")}(this,e)}setEventIds(e){return bg(e)?(this.touchIds=new Set(xg(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=Ug(r,Yg);if(n.shared=qg({target:o,eventOptions:i,window:a,enabled:s,transform:l},Gg),t){const e=Hg.get(t);n[t]=qg(dg({shared:n.shared},c),e)}else for(const e in c){const t=Hg.get(e);t&&(n[e]=qg(dg({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=Qg(n,o.eventOptions,!!r);if(o.enabled){new(Vg.get(t))(this,e,t).bind(i)}}const o=Qg(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](dg(dg({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Sg(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=vg(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function Jg(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Kg(e,t),e.gestureTimeoutStores[t]=new Xg}const Qg=(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:hg(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function ev(e,t={},n,r){const o=y().useMemo((()=>new Zg(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const tv=e=>e,nv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},rv="CHANGE",ov="COMMIT",iv="CONTROL",av="DRAG_END",sv="DRAG_START",lv="DRAG",cv="INVALIDATE",uv="PRESS_DOWN",dv="PRESS_ENTER",fv="PRESS_UP",pv="RESET";function mv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nv;const{value:t}=e;return{...nv,...e,initialValue:t}}function hv(e){return(t,n)=>{const r={...t};switch(n.type){case iv:return r.value=n.payload.value,r.isDirty=!1,r._event=void 0,r;case fv:case uv:r.isDirty=!1;break;case sv:r.isDragging=!0;break;case av:r.isDragging=!1;break;case rv:r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case ov:r.value=n.payload.value,r.isDirty=!1;break;case pv:r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case cv:r.error=n.payload.error}return r._event=n.payload.event,e(r,n)}}const gv=()=>{};const vv=(0,s.forwardRef)((function(e,t){let{disabled:n=!1,dragDirection:r="n",dragThreshold:o=10,id:i,isDragEnabled:l=!1,isFocused:c,isPressEnterToChange:u=!1,onBlur:d=gv,onChange:f=gv,onDrag:p=gv,onDragEnd:m=gv,onDragStart:h=gv,onFocus:g=gv,onKeyDown:v=gv,onValidate:b=gv,size:y="default",setIsFocused:w,stateReducer:x=(e=>e),value:_,type:E,...C}=e;const{state:k,change:S,commit:T,drag:N,dragEnd:R,dragStart:I,invalidate:M,pressDown:P,pressEnter:O,pressUp:D,reset:A}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tv,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nv,n=arguments.length>2?arguments[2]:void 0;const[r,o]=(0,s.useReducer)(hv(e),mv(t)),i=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=i(rv),u=(e,t)=>o({type:cv,payload:{error:e,event:t}}),d=i(pv),f=i(ov),p=l(sv),m=l(lv),h=l(av),g=a(fv),v=a(uv),b=a(dv),y=(0,s.useRef)(r),w=(0,s.useRef)({value:t.value,onChangeHandler:n});return(0,s.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,s.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,s.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:iv,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:u,pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}(x,{isDragEnabled:l,value:_,isPressEnterToChange:u},f),{value:L,isDragging:z,isDirty:B}=k,F=(0,s.useRef)(!1),V=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,s.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(z,r),H=e=>{const t=e.currentTarget.value;try{b(t),T(t,e)}catch(t){M(t,e)}},j=($=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return m(e),void R(e);p(e),N(e),z||(h(e),I(e))}},W={axis:"e"===r||"w"===r?"x":"y",threshold:o,enabled:l,pointer:{capture:!1}},jg($g),ev({drag:$},W||{},"drag"));var $,W;const U=l?j():{};let G;return"number"===E&&(G=e=>{var t;null===(t=C.onMouseDown)||void 0===t||t.call(C,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,s.createElement)(Yh,a({},C,U,{className:"components-input-control__input",disabled:n,dragCursor:V,isDragging:z,id:i,onBlur:e=>{d(e),null==w||w(!1),!B&&e.target.validity.valid||(F.current=!0,H(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{g(e),null==w||w(!0)},onKeyDown:e=>{const{key:t}=e;switch(v(e),t){case"ArrowUp":D(e);break;case"ArrowDown":P(e);break;case"Enter":O(e),u&&(e.preventDefault(),H(e));break;case"Escape":u&&B&&(e.preventDefault(),A(_,e))}},onMouseDown:G,ref:t,inputSize:y,value:null!=L?L:"",type:E}))}));var bv=vv,yv={"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 wv(e){return(0,rc.get)(yv,e,"")}const xv={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const _v=ed("div",{target:"ej5x27r4"})("font-family:",wv("default.fontFamily"),";font-size:",wv("default.fontSize"),";",xv,";"),Ev=ed("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Gf("margin-bottom:",Zm(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),Cv=Gf(Oh,";display:inline-block;margin-bottom:",Zm(2),";padding:0;",""),kv=ed("label",{target:"ej5x27r2"})(Cv,";");var Sv={name:"11yad0w",styles:"margin-bottom:revert"};const Tv=ed("p",{target:"ej5x27r1"})("margin-top:",Zm(2),";margin-bottom:0;font-size:",wv("helpText.fontSize"),";font-style:normal;color:",Np.gray[700],";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Sv}),";"),Nv=ed("span",{target:"ej5x27r0"})(Cv,";"),Rv=e=>{let{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:a,children:l}=e;return(0,s.createElement)(_v,{className:c()("components-base-control",a)},(0,s.createElement)(Ev,{className:"components-base-control__field",__nextHasNoMarginBottom:t},r&&n&&(o?(0,s.createElement)(rd,{as:"label",htmlFor:n},r):(0,s.createElement)(kv,{className:"components-base-control__label",htmlFor:n},r)),r&&!n&&(o?(0,s.createElement)(rd,{as:"label"},r):(0,s.createElement)(Rv.VisualLabel,null,r)),l),!!i&&(0,s.createElement)(Tv,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},i))};Rv.VisualLabel=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)(Nv,a({},r,{className:c()("components-base-control__label",t)}),n)};var Iv=Rv;const Mv=()=>{};const Pv=(0,s.forwardRef)((function(e,t){let{__next36pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:l=!1,help:u,hideLabelFromVision:f=!1,id:p,isPressEnterToChange:m=!1,label:h,labelPosition:g="top",onChange:v=Mv,onValidate:b=Mv,onKeyDown:y=Mv,prefix:w,size:x="default",style:_,suffix:E,value:C,...k}=e;const[S,T]=(0,s.useState)(!1),N=function(e){const t=(0,d.useInstanceId)(Pv);return e||`inspector-input-control-${t}`}(p),R=c()("components-input-control",i),I=function(e){const t=(0,s.useRef)(e.value),[n,r]=(0,s.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,s.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=>{var n;r({}),null===(n=e.onBlur)||void 0===n||n.call(e,t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:C,onBlur:k.onBlur,onChange:v}),M=u?{["string"==typeof u?"aria-describedby":"aria-details"]:`${N}__help`}:{};return(0,s.createElement)(Iv,{className:R,help:u,id:N,__nextHasNoMarginBottom:!0},(0,s.createElement)(og,{__next36pxDefaultSize:n,__unstableInputWidth:o,disabled:l,gap:3,hideLabelFromVision:f,id:N,isFocused:S,justify:"left",label:h,labelPosition:g,prefix:w,size:x,style:_,suffix:E},(0,s.createElement)(bv,a({},k,M,{__next36pxDefaultSize:n,className:"components-input-control__input",disabled:l,id:N,isFocused:S,isPressEnterToChange:m,onKeyDown:y,onValidate:b,paddingInlineStart:w?Zm(2):void 0,paddingInlineEnd:E?Zm(2):void 0,ref:t,setIsFocused:T,size:x,stateReducer:r},I))))}));var Ov=Pv;var Dv={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 Av=e=>{let{hideHTMLArrows:t}=e;return t?Dv:""},Lv=ed(Ov,{target:"ep09it41"})(Av,";"),zv=e=>{let{size:t}=e;return"small"!==t?"":Gf("width:",Zm(5),";min-width:",Zm(5),";height:",Zm(5),";","")},Bv=ed(ad,{target:"ep09it40"})("&&&&&{color:",Np.ui.theme,";",zv,";}");function Fv(e){const t=Number(e);return isNaN(t)?0:t}function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>e+Fv(t)),0)}function Hv(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function jv(e,t,n){const r=Fv(e);return Math.max(t,Math.min(r,n))}function $v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=Fv(e),i=Fv(r),a=Hv(r),s=Math.round(o/i)*i,l=jv(s,t,n);return a?Fv(l.toFixed(a)):l}const Wv={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-start",justify:"flex-end"},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"}},Uv={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-start",align:"flex-end"},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:{justify:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function Gv(e){return"string"==typeof e?[e]:s.Children.toArray(e).filter((e=>(0,s.isValidElement)(e)))}function Yv(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=ju(e,"HStack"),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if(!th(e))return{};const n="column"===t?Uv:Wv;return e in n?n[e]:{align:e}}(t,r),c=Gv(n).map(((e,t)=>{if(Gu(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,s.createElement)(Um,a({isBlock:!0,key:r},n.props))}return e}));return Jm({children:c,direction:r,justify:"center",...l,...i,gap:o})}var qv=$u((function(e,t){const n=Yv(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"HStack");const Kv=e=>null!=e;const Xv=$u((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:p,paddingX:m,paddingY:h,...g}=ju(e,"Spacer");return{...g,className:Hu()(Kv(n)&&Gf("margin:",Zm(n),";",""),Kv(l)&&Gf("margin-bottom:",Zm(l),";margin-top:",Zm(l),";",""),Kv(s)&&Gf("margin-left:",Zm(s),";margin-right:",Zm(s),";",""),Kv(a)&&Gf("margin-top:",Zm(a),";",""),Kv(r)&&Gf("margin-bottom:",Zm(r),";",""),Kv(o)&&Vh({marginLeft:Zm(o)})(),Kv(i)&&Vh({marginRight:Zm(i)})(),Kv(c)&&Gf("padding:",Zm(c),";",""),Kv(h)&&Gf("padding-bottom:",Zm(h),";padding-top:",Zm(h),";",""),Kv(m)&&Gf("padding-left:",Zm(m),";padding-right:",Zm(m),";",""),Kv(p)&&Gf("padding-top:",Zm(p),";",""),Kv(u)&&Gf("padding-bottom:",Zm(u),";",""),Kv(d)&&Vh({paddingLeft:Zm(d)})(),Kv(f)&&Vh({paddingRight:Zm(f)})(),t)}}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"Spacer");var Zv=Xv;const Jv=()=>{};const Qv=(0,s.forwardRef)((function(e,t){let{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,spinControls:l="native",isDragEnabled:f=!0,isShiftStepEnabled:p=!0,label:m,max:h=1/0,min:g=-1/0,required:v=!1,shiftStep:b=10,step:y=1,type:w="number",value:x,size:_="default",suffix:E,onChange:C=Jv,...k}=e;i&&(Jl()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"}),l="none");const S=(0,s.useRef)(),T=(0,d.useMergeRefs)([S,t]),N="any"===y,R=N?1:rh(y),I=$v(0,g,h,R),M=(e,t)=>N?Math.min(h,Math.max(g,rh(e))):$v(e,g,h,null!=t?t:R),P="number"===w?"off":void 0,O=c()("components-number-control",r),D=(e,t,n)=>{null==n||n.preventDefault();const r=(null==n?void 0:n.shiftKey)&&p,o=r?rh(b)*R:R;let i=function(e){const t=""===e;return!th(e)||t}(e)?I:e;return"up"===t?i=Vv(i,o):"down"===t&&(i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t,n)=>{const r=Fv(t);return 0===n?r:e-r}),0)}(i,o)),M(i,r?o:void 0)},A=e=>t=>C(String(D(x,e,t)),{event:{...t,target:S.current}});return(0,s.createElement)(Lv,a({autoComplete:P,inputMode:"numeric"},k,{className:O,dragDirection:o,hideHTMLArrows:"native"!==l,isDragEnabled:f,label:m,max:h,min:g,ref:T,required:v,step:y,type:w,value:x,__unstableStateReducer:(e,t)=>{var r;const i=((e,t)=>{const n={...e},{type:r,payload:i}=t,a=i.event,s=n.value;if(r!==fv&&r!==uv||(n.value=D(s,r===fv?"up":"down",a)),r===lv&&f){const[e,t]=i.delta,r=i.shiftKey&&p,a=r?rh(b)*R:R;let l,c;switch(o){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=M(Vv(s,e),r?a:void 0)}}if(r===dv||r===ov){const e=!1===v&&""===s;n.value=e?s:M(s)}return n})(e,t);return null!==(r=null==n?void 0:n(i,t))&&void 0!==r?r:i},size:_,suffix:"custom"===l?(0,s.createElement)(s.Fragment,null,E,(0,s.createElement)(Zv,{marginBottom:0,marginRight:2},(0,s.createElement)(qv,{spacing:1},(0,s.createElement)(Bv,{icon:Gm,isSmall:!0,"aria-hidden":"true","aria-label":(0,u.__)("Increment"),tabIndex:-1,onClick:A("up"),size:_}),(0,s.createElement)(Bv,{icon:Ym,isSmall:!0,"aria-hidden":"true","aria-label":(0,u.__)("Decrement"),tabIndex:-1,onClick:A("down"),size:_})))):E,onChange:C}))}));var eb=Qv;const tb=e=>{let{__nextHasNoMarginBottom:t}=e;return t?"":Gf("margin-bottom:",Zm(2),";","")},nb=ed(Qm,{target:"e65ony43"})(tb,";"),rb=ed("div",{target:"e65ony42"})("border-radius:50%;border:",gh.borderWidth," solid ",Np.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),ob=ed("div",{target:"e65ony41"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),ib=ed("div",{target:"e65ony40"})("background:",Np.ui.theme,";border-radius:50%;border:",3,"px solid ",Np.ui.theme,";bottom:0;box-sizing:border-box;display:block;height:0px;left:0;margin:auto;position:absolute;right:0;top:-",16,"px;width:0px;");var ab=function(e){let{value:t,onChange:n,...r}=e;const o=(0,s.useRef)(),i=(0,s.useRef)(),l=(0,s.useRef)(),c=e=>{const{x:t,y:r}=i.current;e.preventDefault(),e.target.focus(),n(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}(t,r,e.clientX,e.clientY))},{startDrag:u,isDragging:f}=(0,d.__experimentalUseDragging)({onDragStart:e=>{(()=>{const e=o.current.getBoundingClientRect();i.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),c(e)},onDragMove:c,onDragEnd:c});return(0,s.useEffect)((()=>{f?(void 0===l.current&&(l.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=l.current||null,l.current=void 0)}),[f]),(0,s.createElement)(rb,a({ref:o,onMouseDown:u,className:"components-angle-picker-control__angle-circle",style:f?{cursor:"grabbing"}:void 0},r),(0,s.createElement)(ob,{style:t?{transform:`rotate(${t}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,s.createElement)(ib,{className:"components-angle-picker-control__angle-circle-indicator"})))};function sb(e){let{__nextHasNoMarginBottom:t=!1,className:n,label:r=(0,u.__)("Angle"),onChange:o,value:i}=e;t||Jl()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const a=c()("components-angle-picker-control",n);return(0,s.createElement)(nb,{__nextHasNoMarginBottom:t,className:a,gap:4},(0,s.createElement)(Wm,null,(0,s.createElement)(eb,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{const t=""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,spinControls:"none",suffix:(0,s.createElement)(Zv,{as:Ph,marginBottom:0,marginRight:Zm(3),style:{color:Np.ui.theme}},"°")})),(0,s.createElement)(Um,{style:{marginBottom:Zm(1),marginTop:"auto"}},(0,s.createElement)(ab,{"aria-hidden":"true",value:i,onChange:o})))}var lb=n(4793),cb=n.n(lb),ub=window.wp.richText,db=window.wp.a11y;const fb=new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),pb=e=>cb()(e).toLocaleLowerCase().replace(fb,"-");function mb(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function hb(e){return t=>{const[n,r]=(0,s.useState)([]);return(0,s.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|^)"+mb(t),"i");r(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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(cb()(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]}}function gb(e){const t=e.useItems?e.useItems:hb(e);return function(e){let{filterValue:n,instanceId:r,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:l,onSelect:u,onReset:d,reset:f,value:p,contentRef:m}=e;const[h]=t(n),g=(0,ub.useAnchor)({editableContentElement:m.current,value:p}),v=(0,s.useRef)();return function(e,t){(0,s.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])}(v,f),(0,s.useLayoutEffect)((()=>{l(h)}),[h]),!h.length>0?null:(0,s.createElement)(Of,{focusOnMount:!1,onClose:d,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:v},(0,s.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,s.createElement)(ad,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:c()("components-autocomplete__result",i,{"is-selected":t===a}),onClick:()=>u(e)},e.label)))))}}function vb(e){let{record:t,onChange:n,onReplace:r,completers:o,contentRef:i}=e;const a=(0,d.useDebounce)(db.speak,500),l=(0,d.useInstanceId)(vb),[c,f]=(0,s.useState)(0),[p,m]=(0,s.useState)([]),[h,g]=(0,s.useState)(""),[v,b]=(0,s.useState)(null),[y,w]=(0,s.useState)(null),x=(0,s.useRef)(!1);function _(e){const{getOptionCompletion:o}=v||{};if(!e.isDisabled){if(o){const i=o(e.value,h),{action:a,value:l}=void 0===i.action||void 0===i.value?{action:"insert-at-caret",value:i}:i;if("replace"===a)return void r([l]);"insert-at-caret"===a&&function(e){const r=t.start,o=r-v.triggerPrefix.length-h.length,i=(0,ub.create)({html:(0,s.renderToString)(e)});n((0,ub.insert)(t,i,o,r))}(l)}E()}}function E(){f(0),m([]),g(""),b(null),w(null)}const C=(0,s.useMemo)((()=>{if((0,ub.isCollapsed)(t))return(0,ub.getTextContent)((0,ub.slice)(t,0))}),[t]);(0,s.useEffect)((()=>{if(!C)return void E();const e=cb()(C),n=(0,ub.getTextContent)((0,ub.slice)(t,void 0,(0,ub.getTextContent)(t).length)),r=null==o?void 0:o.find((t=>{let{triggerPrefix:r,allowContext:o}=t;const i=e.lastIndexOf(r);if(-1===i)return!1;const a=e.slice(i+r.length);if(a.length>50)return!1;const s=0===p.length,l=1===a.split(/\s/).length,c=x.current&&a.split(/\s/).length<=3;return!(s&&!c&&!l)&&(!(o&&!o(e.slice(0,i),n))&&(!/^\s/.test(a)&&!/\s\s+$/.test(a)&&/[\u0000-\uFFFF]*$/.test(a)))}));if(!r)return void E();const i=mb(r.triggerPrefix),a=e.slice(e.lastIndexOf(r.triggerPrefix)).match(new RegExp(`${i}([\0-]*)$`)),s=a&&a[1];b(r),w((()=>r!==v?gb(r):y)),g(s)}),[C]);const{key:k=""}=p[c]||{},{className:S}=v||{},T=!!v&&p.length>0,N=T?`components-autocomplete-listbox-${l}`:null;return{listBoxId:N,activeId:T?`components-autocomplete-item-${l}-${k}`:null,onKeyDown:function(e){if(x.current="Backspace"===e.key,v&&0!==p.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":f((0===c?p.length:c)-1);break;case"ArrowDown":f((c+1)%p.length);break;case"Escape":b(null),w(null),e.preventDefault();break;case"Enter":_(p[c]);break;case"ArrowLeft":case"ArrowRight":return void E();default:return}e.preventDefault()}},popover:void 0!==t.start&&y&&(0,s.createElement)(y,{className:S,filterValue:h,instanceId:l,listBoxId:N,selectedIndex:c,onChangeOptions:function(e){f(e.length===p.length?c:0),m(e),function(e){a&&(e.length?a((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.",e.length),e.length),"assertive"):a((0,u.__)("No results."),"assertive"))}(e)},onSelect:_,value:t,contentRef:i,reset:E})}}function bb(e){const[t,n]=(0,s.useState)(!1),r=(0,s.useRef)(),o=(0,s.useRef)(),i=(0,s.useRef)(),{popover:a,listBoxId:l,activeId:c,onKeyDown:u}=vb({...e,contentRef:r});i.current=u,(0,s.useEffect)((()=>{t&&(o.current?o.current.start===e.record.start&&o.current.end===e.record.end||(n(!1),o.current=null):o.current=e.record)}),[e.record]);const f=(0,d.useMergeRefs)([r,(0,d.useRefEffect)((e=>{function t(e){i.current(e)}function r(){n(!0),o.current=null}return e.addEventListener("keydown",t),e.addEventListener("input",r),()=>{e.removeEventListener("keydown",t),e.removeEventListener("input",r)}}),[])]);return t?{ref:f,children:a,"aria-autocomplete":l?"list":void 0,"aria-owns":l,"aria-activedescendant":c}:{ref:f}}function yb(e){let{children:t,isSelected:n,...r}=e;const{popover:o,...i}=vb(r);return(0,s.createElement)(s.Fragment,null,t(i),n&&o)}function wb(e){const{help:t,id:n,...r}=e,o=(0,d.useInstanceId)(Iv,"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`}:{}}}}var xb=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));var _b=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));const Eb=Gf("",""),Cb={name:"bjn8wh",styles:"position:relative"},kb=e=>{const{color:t=Np.gray[200],style:n="solid",width:r=gh.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==gh.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Sb={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Tb(e){const{className:t,size:n="default",...r}=ju(e,"BorderBoxControlLinkedButton"),o=Hu();return{...r,className:(0,s.useMemo)((()=>o((e=>Gf("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",Vh({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}var Nb=$u(((e,t)=>{const{className:n,isLinked:r,...o}=Tb(e),i=r?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(Vf,{text:i},(0,s.createElement)(nd,{className:n},(0,s.createElement)(ad,a({},o,{isSmall:!0,icon:r?xb:_b,iconSize:24,"aria-label":i,ref:t}))))}),"BorderBoxControlLinkedButton");function Rb(e){const{className:t,value:n,size:r="default",...o}=ju(e,"BorderBoxControlVisualizer"),i=Hu(),a=(0,s.useMemo)((()=>i(((e,t)=>Gf("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:",kb(null==e?void 0:e.top),";border-bottom:",kb(null==e?void 0:e.bottom),";",Vh({borderLeft:kb(null==e?void 0:e.left)})()," ",Vh({borderRight:kb(null==e?void 0:e.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}var Ib=$u(((e,t)=>{const{value:n,...r}=Rb(e);return(0,s.createElement)(nd,a({},r,{ref:t}))}),"BorderBoxControlVisualizer");var Mb=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var Pb=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M5 11.25h14v1.5H5z"}));var Ob=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Db=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));const Ab=ed(eb,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",Zh,"{transition:box-shadow 0.1s linear;}}"),Lb=e=>{let{selectSize:t}=e;const n={default:Gf("box-sizing:border-box;padding:2px 1px;width:20px;color:",Np.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:Gf("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Zm(2),";padding:",Zm(1),";color:",Np.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===t?n.large:n.default},zb=ed("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Lb,";color:",Np.gray[900],";}"),Bb=ed("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Lb,";",(e=>{let{selectSize:t="default"}=e;const n={default:Gf("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",Vh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Np.gray[100],";}&:focus{border:1px solid ",Np.ui.borderFocus,";box-shadow:inset 0 0 0 ",gh.borderWidth+" "+Np.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:Gf("display:flex;justify-content:center;align-items:center;&:hover{color:",Np.ui.borderFocus,";box-shadow:inset 0 0 0 ",gh.borderWidth+" "+Np.ui.borderFocus,";outline:",gh.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",gh.borderWidthFocus+" "+Np.ui.borderFocus,";outline:",gh.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===t?n.large:n.default}),";&:not( :disabled ){cursor:pointer;}}");const Fb={name:"f3vz0n",styles:"font-weight:500"},Vb=Gf("box-shadow:inset 0 0 0 ",gh.borderWidth," ",Np.ui.borderFocus,";",""),Hb=Gf("border:0;padding:0;margin:0;",xv,";",""),jb=Gf(Ab,"{flex:0 0 auto;}",""),$b=(e,t)=>{const{style:n}=e||{};return Gf("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Np.gray[300]:void 0;return Gf("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:",Zm(4),";width:",Zm(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);}","")},Wb=Gf("width:",228,"px;>div:first-of-type>",kv,"{margin-bottom:0;",Fb,";}&& ",kv,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Ub=Gf("",""),Gb=Gf("",""),Yb=Gf("justify-content:center;width:100%;&&{border-top:",gh.borderWidth," solid ",Np.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),qb=Gf(kv,"{",Fb,";}",""),Kb={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const Xb=[{label:(0,u.__)("Solid"),icon:Pb,value:"solid"},{label:(0,u.__)("Dashed"),icon:Ob,value:"dashed"},{label:(0,u.__)("Dotted"),icon:Db,value:"dotted"}],Zb=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(rd,{as:"label"},t):(0,s.createElement)(kv,null,t):null};var Jb=$u(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:l,...c}=function(e){const{className:t,...n}=ju(e,"BorderControlStylePicker"),r=Hu();return{...n,className:(0,s.useMemo)((()=>r(qb,t)),[t,r]),buttonClassName:(0,s.useMemo)((()=>r(Kb)),[r])}}(e);return(0,s.createElement)(nd,a({},c,{ref:t}),(0,s.createElement)(Zb,{label:o,hideLabelFromVision:r}),(0,s.createElement)(Qm,{justify:"flex-start",gap:1},Xb.map((e=>(0,s.createElement)(ad,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===l,onClick:()=>i(e.value===l?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var Qb=(0,s.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,s.createElement)("span",a({className:c()("component-color-indicator",n),style:{background:r},ref:t},o))})),ey=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},ty=function(e){return.2126*ey(e.r)+.7152*ey(e.g)+.0722*ey(e.b)};function ny(e){e.prototype.luminance=function(){return e=ty(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=ty(i))>(l=ty(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 ry=(0,s.forwardRef)((function(e,t){let{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:l,headerTitle:u,focusOnMount:f,popoverProps:p,onClose:m,onToggle:h,style:g,position:v}=e;void 0!==v&&Jl()("`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[b,y]=(0,s.useState)(null),w=(0,s.useRef)(),[x,_]=function(e,t){const[n,r]=(0,s.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,h);function E(){m&&m(),_(!1)}(0,s.useEffect)((()=>()=>{h&&x&&h(!1)}),[h,x]);const C={isOpen:x,onToggle:function(){_(!x)},onClose:E},k=!!(null!=p&&p.anchor||null!=p&&p.anchorRef||null!=p&&p.getAnchorRect||null!=p&&p.anchorRect);return(0,s.createElement)("div",{className:c()("components-dropdown",o),ref:(0,d.useMergeRefs)([w,t,y]),tabIndex:-1,style:g},r(C),x&&(0,s.createElement)(Of,a({position:v,onClose:E,onFocusOutside:function(){var e;if(!w.current)return;const{ownerDocument:t}=w.current,n=null==t||null===(e=t.activeElement)||void 0===e?void 0:e.closest('[role="dialog"]');w.current.contains(t.activeElement)||n&&!n.contains(w.current)||E()},expandOnMobile:l,headerTitle:u,focusOnMount:f,offset:13,anchor:k?void 0:b},p,{className:c()("components-dropdown__content",null==p?void 0:p.className,i)}),n(C)))}));var oy=ry;var iy=$u((function(e,t){const n=ju(e,"InputControlSuffixWrapper");return(0,s.createElement)(Zv,a({marginBottom:0},n,{ref:t}))}),"InputControlSuffixWrapper");const ay=ed("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Np.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(e=>{let{disabled:t}=e;return t?Gf({color:Np.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t="default"}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"}[t];return n?Gf("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""}),";",(e=>{let{__next36pxDefaultSize:t,multiple:n,selectSize:r="default"}=e;if(n)return;const o={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};t||(o.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return Gf(o[r]||o.default,"","")}),";",(e=>{let{__next36pxDefaultSize:t,multiple:n,selectSize:r="default"}=e;const o={default:16,small:8,"__unstable-large":16};t||(o.default=8);const i=o[r]||o.default;return Vh({paddingLeft:i,paddingRight:i+18,...n?{paddingTop:i,paddingBottom:i}:{}})}),";",(e=>{let{multiple:t}=e;return{overflow:t?"auto":"hidden"}}),";}"),sy=ed("div",{target:"e1mv6sxx1"})("margin-inline-end:",Zm(-1),";line-height:0;"),ly=ed(iy,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Vh({right:0}),";");var cy=function(e){let{icon:t,size:n=24,...r}=e;return(0,s.cloneElement)(t,{width:n,height:n,...r})};var uy=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var dy=()=>(0,s.createElement)(ly,null,(0,s.createElement)(sy,null,(0,s.createElement)(cy,{icon:uy,size:18})));const fy=()=>{};const py=(0,s.forwardRef)((function(e,t){let{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:l,label:u,multiple:f=!1,onBlur:p=fy,onChange:m=fy,onFocus:h=fy,options:g=[],size:v="default",value:b,labelPosition:y="top",children:w,prefix:x,suffix:_,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:C=!1,...k}=e;const[S,T]=(0,s.useState)(!1),N=function(e){const t=(0,d.useInstanceId)(py);return e||`inspector-select-control-${t}`}(l),R=o?`${N}__help`:void 0;if(!(null!=g&&g.length||w))return null;const I=c()("components-select-control",n);return(0,s.createElement)(Iv,{help:o,id:N,__nextHasNoMarginBottom:C},(0,s.createElement)(og,{className:I,disabled:r,hideLabelFromVision:i,id:N,isFocused:S,label:u,size:v,suffix:_||!f&&(0,s.createElement)(dy,null),prefix:x,labelPosition:y,__next36pxDefaultSize:E},(0,s.createElement)(ay,a({},k,{__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:N,multiple:f,onBlur:e=>{p(e),T(!1)},onChange:e=>{if(f){const t=Array.from(e.target.options).filter((e=>{let{selected:t}=e;return t})),n=t.map((e=>{let{value:t}=e;return t}));m(n)}else m(e.target.value,{event:e})},onFocus:e=>{h(e),T(!0)},ref:t,selectSize:v,value:b}),w||g.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))}));var my=py;const hy={initial:void 0,fallback:""};var gy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hy;const{initial:n,fallback:r}={...hy,...t},[o,i]=(0,s.useState)(e),a=th(e);(0,s.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]);const l=nh([e,o,n],r),c=(0,s.useCallback)((e=>{a||i(e)}),[a]);return[l,c]};function vy(e,t,n){return"number"!=typeof e?null:parseFloat(`${jv(e,t,n)}`)}const by=()=>Gf({height:30,minHeight:30},"",""),yy=12,wy=ed("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),xy=ed("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(e=>{let{color:t=Np.ui.borderFocus}=e;return Gf({color:t},"","")}),";",by,";",(e=>{let{marks:t,__nextHasNoMarginBottom:n}=e;return n?"":Gf({marginBottom:t?16:void 0},"","")}),";"),_y=ed("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",Vh({marginRight:6}),";"),Ey=ed("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",Vh({marginLeft:6}),";"),Cy=ed("span",{target:"e1epgpqk10"})("background-color:",Np.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;",(e=>{let{disabled:t,railColor:n}=e,r=n||"";return t&&(r=Np.ui.backgroundDisabled),Gf({background:r},"","")}),";"),ky=ed("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;",(e=>{let{disabled:t,trackColor:n}=e,r=n||"currentColor";return t&&(r=Np.gray[400]),Gf({background:r},"","")}),";"),Sy=ed("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Ty=ed("span",{target:"e1epgpqk7"})("height:",yy,"px;left:0;position:absolute;top:-4px;width:1px;",(e=>{let{disabled:t,isFilled:n}=e,r=n?"currentColor":Np.gray[300];return t&&(r=Np.gray[400]),Gf({backgroundColor:r},"","")}),";"),Ny=ed("span",{target:"e1epgpqk6"})("color:",Np.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(e=>{let{isFilled:t}=e;return Gf({color:t?Np.gray[700]:Np.gray[300]},"","")}),";"),Ry=e=>{let{disabled:t}=e;return Gf("background-color:",t?Np.gray[400]:Np.ui.theme,";","")},Iy=ed("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",yy,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",yy,"px;border-radius:50%;",Ry,";",Vh({marginLeft:-10}),";",Vh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),My=ed("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Ry,";",(e=>{let{isFocused:t}=e;return t?Gf("&::before{content:' ';position:absolute;background-color:",Np.ui.theme,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""}),";"),Py=ed("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% + ",yy,"px );");var Oy={name:"1cypxip",styles:"top:-80%"},Dy={name:"1lr98c4",styles:"bottom:-80%"};const Ay=ed("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;",(e=>{let{show:t}=e;return Gf({opacity:t?1:0},"","")}),";",(e=>{let{position:t}=e;return"bottom"===t?Dy:Oy}),";",Rp("transition"),";",Vh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Ly=ed(eb,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",Zm(16),"!important;input[type='number']&{",by,";}",Vh({marginLeft:`${Zm(4)} !important`}),";"),zy=ed("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",by,";}",Vh({marginLeft:8}),";");var By=(0,s.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,s.createElement)(Py,a({},i,{"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o}))}));function Fy(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,l=c()("components-range-control__mark",n&&"is-filled",t),u=c()("components-range-control__mark-label",n&&"is-filled");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ty,a({},i,{"aria-hidden":"true",className:l,isFilled:n,style:o})),r&&(0,s.createElement)(Ny,{"aria-hidden":"true",className:u,isFilled:n,style:o},r))}function Vy(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:l=0,...c}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Cy,a({disabled:t},c)),n&&(0,s.createElement)(Hy,{disabled:t,marks:n,min:r,max:o,step:i,value:l}))}function Hy(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:l=0}=e,c=function(e){let{marks:t,min:n=0,max:r=100,step:o=1,value:i=0}=e;if(!t)return[];const a=r-n;if(!Array.isArray(t)){t=[];const e=1+Math.round(a/o);for(;e>t.push({value:o*t.length+n}););}const s=[];return t.forEach(((e,t)=>{if(e.value<n||e.value>r)return;const o=`mark-${t}`,l=e.value<=i,c=(e.value-n)/a*100+"%",d={[(0,u.isRTL)()?"right":"left"]:c};s.push({...e,isFilled:l,key:o,style:d})})),s}({marks:n,min:r,max:o,step:"any"===i?1:i,value:l});return(0,s.createElement)(Sy,{"aria-hidden":"true",className:"components-range-control__marks"},c.map((e=>(0,s.createElement)(Fy,a({},e,{key:e.key,"aria-hidden":"true",disabled:t})))))}function jy(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:l=0,renderTooltipContent:u=(e=>e),zIndex:d=100,...f}=e,p=function(e){let{inputRef:t,tooltipPosition:n}=e;const[r,o]=(0,s.useState)(),i=(0,s.useCallback)((()=>{t&&t.current&&o(n)}),[n,t]);return(0,s.useEffect)((()=>{i()}),[i]),(0,s.useEffect)((()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}))),r}({inputRef:n,tooltipPosition:r}),m=c()("components-simple-tooltip",t),h={...i,zIndex:d};return(0,s.createElement)(Ay,a({},f,{"aria-hidden":o,className:m,position:p,show:o,role:"tooltip",style:h}),u(l))}const $y=()=>{};const Wy=(0,s.forwardRef)((function e(t,n){var r;const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:l=!1,beforeIcon:f,className:p,color:m=Np.ui.theme,currentInput:h,disabled:g=!1,help:v,hideLabelFromVision:b=!1,initialPosition:y,isShiftStepEnabled:w=!0,label:x,marks:_=!1,max:E=100,min:C=0,onBlur:k=$y,onChange:S=$y,onFocus:T=$y,onMouseLeave:N=$y,onMouseMove:R=$y,railColor:I,renderTooltipContent:M=(e=>e),resetFallbackValue:P,shiftStep:O=10,showTooltip:D,step:A=1,trackColor:L,value:z,withInputField:B=!0,...F}=t,[V,H]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=gy(vy(r,t,n),{initial:vy(null!=o?o:null,t,n),fallback:null});return[i,(0,s.useCallback)((e=>{a(null===e?null:vy(e,t,n))}),[t,n,a])]}({min:C,max:E,value:null!=z?z:null,initial:y}),j=(0,s.useRef)(!1);let $=D,W=B;"any"===A&&($=!1,W=!1);const[U,G]=(0,s.useState)($),[Y,q]=(0,s.useState)(!1),K=(0,s.useRef)(),X=null===(r=K.current)||void 0===r?void 0:r.matches(":focus"),Z=!g&&Y,J=null===V,Q=J?"":void 0!==V?V:h,ee=J?(E-C)/2+C:V,te=`${jv(J?50:(V-C)/(E-C)*100,0,100)}%`,ne=c()("components-range-control",p),re=c()("components-range-control__wrapper",!!_&&"is-marked"),oe=(0,d.useInstanceId)(e,"inspector-range-control"),ie=v?`${oe}__help`:void 0,ae=!1!==$&&Number.isFinite(V),se=()=>{let e=parseFloat(`${P}`),t=e;isNaN(e)&&(e=null,t=void 0),H(e),S(t)},le={[(0,u.isRTL)()?"right":"left"]:te};return(0,s.createElement)(Iv,{__nextHasNoMarginBottom:o,className:ne,label:x,hideLabelFromVision:b,id:`${oe}`,help:v},(0,s.createElement)(wy,{className:"components-range-control__root"},f&&(0,s.createElement)(_y,null,(0,s.createElement)(ec,{icon:f})),(0,s.createElement)(xy,{__nextHasNoMarginBottom:o,className:re,color:m,marks:!!_},(0,s.createElement)(By,a({},F,{className:"components-range-control__slider",describedBy:ie,disabled:g,id:`${oe}`,label:x,max:E,min:C,onBlur:e=>{k(e),q(!1),G(!1)},onChange:e=>{const t=parseFloat(e.target.value);H(t),S(t)},onFocus:e=>{T(e),q(!0),G(!0)},onMouseMove:R,onMouseLeave:N,ref:(0,d.useMergeRefs)([K,n]),step:A,value:null!=Q?Q:void 0})),(0,s.createElement)(Vy,{"aria-hidden":!0,disabled:g,marks:_,max:E,min:C,railColor:I,step:A,value:ee}),(0,s.createElement)(ky,{"aria-hidden":!0,className:"components-range-control__track",disabled:g,style:{width:te},trackColor:L}),(0,s.createElement)(Iy,{className:"components-range-control__thumb-wrapper",style:le,disabled:g},(0,s.createElement)(My,{"aria-hidden":!0,isFocused:Z,disabled:g})),ae&&(0,s.createElement)(jy,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:M,show:X||U,style:le,value:V})),i&&(0,s.createElement)(Ey,null,(0,s.createElement)(ec,{icon:i})),W&&(0,s.createElement)(Ly,{"aria-label":x,className:"components-range-control__number",disabled:g,inputMode:"decimal",isShiftStepEnabled:w,max:E,min:C,onBlur:()=>{j.current&&(se(),j.current=!1)},onChange:e=>{let t=parseFloat(e);H(t),isNaN(t)?l&&(j.current=!0):((t<C||t>E)&&(t=vy(t,C,E)),S(t),j.current=!1)},shiftStep:O,step:A,value:Q}),l&&(0,s.createElement)(zy,null,(0,s.createElement)(ad,{className:"components-range-control__reset",disabled:g||void 0===V,variant:"secondary",isSmall:!0,onClick:se},(0,u.__)("Reset")))))}));var Uy=Wy;const Gy=ed(eb,{target:"ez9hsf47"})(Uh,"{width:",Zm(24),";}"),Yy=ed(my,{target:"ez9hsf46"})("margin-left:",Zm(-2),";width:5em;",Zh,"{display:none;}"),qy=ed(Uy,{target:"ez9hsf45"})("flex:1;margin-right:",Zm(2),";"),Ky=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${Zm(2)} );\n\tmargin-left: ${Zm(1)};\n}`,Xy=ed("div",{target:"ez9hsf44"})("padding-top:",Zm(2),";padding-right:0;padding-left:0;padding-bottom:0;"),Zy=ed(qv,{target:"ez9hsf43"})("padding-left:",Zm(4),";padding-right:",Zm(4),";"),Jy=ed(Qm,{target:"ez9hsf42"})("padding-top:",Zm(4),";padding-left:",Zm(4),";padding-right:",Zm(3),";padding-bottom:",Zm(5),";"),Qy=ed("div",{target:"ez9hsf41"})(xv,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Zm(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",Zm(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 ",gh.borderWidthFocus," #fff;}",Ky,";"),ew=ed(ad,{target:"ez9hsf40"})("&&&&&{min-width:",Zm(6),";padding:0;>svg{margin-right:0;}}");var tw=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function nw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rw(e){return e instanceof nw(e).Element||e instanceof Element}function ow(e){return e instanceof nw(e).HTMLElement||e instanceof HTMLElement}function iw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof nw(e).ShadowRoot||e instanceof ShadowRoot)}var aw=Math.max,sw=Math.min,lw=Math.round;function cw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function uw(){return!/^((?!chrome|android).)*safari/i.test(cw())}function dw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ow(e)&&(o=e.offsetWidth>0&&lw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lw(r.height)/e.offsetHeight||1);var a=(rw(e)?nw(e):window).visualViewport,s=!uw()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function fw(e){var t=nw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pw(e){return e?(e.nodeName||"").toLowerCase():null}function mw(e){return((rw(e)?e.ownerDocument:e.document)||window.document).documentElement}function hw(e){return dw(mw(e)).left+fw(e).scrollLeft}function gw(e){return nw(e).getComputedStyle(e)}function vw(e){var t=gw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function bw(e,t,n){void 0===n&&(n=!1);var r=ow(t),o=ow(t)&&function(e){var t=e.getBoundingClientRect(),n=lw(t.width)/e.offsetWidth||1,r=lw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=mw(t),a=dw(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==pw(t)||vw(i))&&(s=function(e){return e!==nw(e)&&ow(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:fw(e);var t}(t)),ow(t)?((l=dw(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=hw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yw(e){var t=dw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ww(e){return"html"===pw(e)?e:e.assignedSlot||e.parentNode||(iw(e)?e.host:null)||mw(e)}function xw(e){return["html","body","#document"].indexOf(pw(e))>=0?e.ownerDocument.body:ow(e)&&vw(e)?e:xw(ww(e))}function _w(e,t){var n;void 0===t&&(t=[]);var r=xw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=nw(r),a=o?[i].concat(i.visualViewport||[],vw(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(_w(ww(a)))}function Ew(e){return["table","td","th"].indexOf(pw(e))>=0}function Cw(e){return ow(e)&&"fixed"!==gw(e).position?e.offsetParent:null}function kw(e){for(var t=nw(e),n=Cw(e);n&&Ew(n)&&"static"===gw(n).position;)n=Cw(n);return n&&("html"===pw(n)||"body"===pw(n)&&"static"===gw(n).position)?t:n||function(e){var t=/firefox/i.test(cw());if(/Trident/i.test(cw())&&ow(e)&&"fixed"===gw(e).position)return null;var n=ww(e);for(iw(n)&&(n=n.host);ow(n)&&["html","body"].indexOf(pw(n))<0;){var r=gw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Sw="top",Tw="bottom",Nw="right",Rw="left",Iw="auto",Mw=[Sw,Tw,Nw,Rw],Pw="start",Ow="end",Dw="viewport",Aw="popper",Lw=Mw.reduce((function(e,t){return e.concat([t+"-"+Pw,t+"-"+Ow])}),[]),zw=[].concat(Mw,[Iw]).reduce((function(e,t){return e.concat([t,t+"-"+Pw,t+"-"+Ow])}),[]),Bw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Fw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Vw={placement:"bottom",modifiers:[],strategy:"absolute"};function Hw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function jw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Vw:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vw,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:rw(e)?_w(e):e.contextElement?_w(e.contextElement):[],popper:_w(t)};var a,c,f=function(e){var t=Fw(e);return Bw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};l.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Hw(t,n)){s.rects={reference:bw(t,kw(n),"fixed"===s.options.strategy),popper:yw(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!Hw(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var $w={passive:!0};var Ww={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=nw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,$w)})),s&&l.addEventListener("resize",n.update,$w),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,$w)})),s&&l.removeEventListener("resize",n.update,$w)}},data:{}};function Uw(e){return e.split("-")[0]}function Gw(e){return e.split("-")[1]}function Yw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qw(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Uw(o):null,a=o?Gw(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Sw:t={x:s,y:n.y-r.height};break;case Tw:t={x:s,y:n.y+n.height};break;case Nw:t={x:n.x+n.width,y:l};break;case Rw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Yw(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Pw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ow:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Kw={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=qw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Xw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Rw,w=Sw,x=window;if(c){var _=kw(n),E="clientHeight",C="clientWidth";if(_===nw(n)&&"static"!==gw(_=mw(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),o===Sw||(o===Rw||o===Nw)&&i===Ow)w=Tw,h-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[E])-r.height,h*=l?1:-1;if(o===Rw||(o===Sw||o===Tw)&&i===Ow)y=Nw,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[C])-r.width,p*=l?1:-1}var k,S=Object.assign({position:s},c&&Xw),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:lw(n*o)/o||0,y:lw(r*o)/o||0}}({x:p,y:h},nw(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},S,((k={})[w]=b?"0":"",k[y]=v?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Jw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Uw(t.placement),variation:Gw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Zw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qw={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];ow(o)&&pw(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ow(r)&&pw(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ex={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=zw.reduce((function(e,n){return e[n]=function(e,t,n){var r=Uw(e),o=[Rw,Sw].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Rw,Nw].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},tx={left:"right",right:"left",bottom:"top",top:"bottom"};function nx(e){return e.replace(/left|right|bottom|top/g,(function(e){return tx[e]}))}var rx={start:"end",end:"start"};function ox(e){return e.replace(/start|end/g,(function(e){return rx[e]}))}function ix(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ax(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sx(e,t,n){return t===Dw?ax(function(e,t){var n=nw(e),r=mw(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=uw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+hw(e),y:l}}(e,n)):rw(t)?function(e,t){var n=dw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ax(function(e){var t,n=mw(e),r=fw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=aw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=aw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+hw(e),l=-r.scrollTop;return"rtl"===gw(o||n).direction&&(s+=aw(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(mw(e)))}function lx(e,t,n,r){var o="clippingParents"===t?function(e){var t=_w(ww(e)),n=["absolute","fixed"].indexOf(gw(e).position)>=0&&ow(e)?kw(e):e;return rw(n)?t.filter((function(e){return rw(e)&&ix(e,n)&&"body"!==pw(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=sx(e,n,r);return t.top=aw(o.top,t.top),t.right=sw(o.right,t.right),t.bottom=sw(o.bottom,t.bottom),t.left=aw(o.left,t.left),t}),sx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function cx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ux(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function dx(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Dw:c,d=n.elementContext,f=void 0===d?Aw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=cx("number"!=typeof g?g:ux(g,Mw)),b=f===Aw?"reference":Aw,y=e.rects.popper,w=e.elements[m?b:f],x=lx(rw(w)?w:w.contextElement||mw(e.elements.popper),l,u,a),_=dw(e.elements.reference),E=qw({reference:_,element:y,strategy:"absolute",placement:o}),C=ax(Object.assign({},y,E)),k=f===Aw?C:_,S={top:x.top-k.top+v.top,bottom:k.bottom-x.bottom+v.bottom,left:x.left-k.left+v.left,right:k.right-x.right+v.right},T=e.modifiersData.offset;if(f===Aw&&T){var N=T[o];Object.keys(S).forEach((function(e){var t=[Nw,Tw].indexOf(e)>=0?1:-1,n=[Sw,Tw].indexOf(e)>=0?"y":"x";S[e]+=N[n]*t}))}return S}var fx={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=Uw(g),b=l||(v===g||!m?[nx(g)]:function(e){if(Uw(e)===Iw)return[];var t=nx(e);return[ox(e),t,ox(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Uw(n)===Iw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?zw:l,u=Gw(r),d=u?s?Lw:Lw.filter((function(e){return Gw(e)===u})):Mw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=dx(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Uw(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var S=y[k],T=Uw(S),N=Gw(S)===Pw,R=[Sw,Tw].indexOf(T)>=0,I=R?"width":"height",M=dx(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=R?N?Nw:Rw:N?Tw:Sw;w[I]>x[I]&&(P=nx(P));var O=nx(P),D=[];if(i&&D.push(M[T]<=0),s&&D.push(M[P]<=0,M[O]<=0),D.every((function(e){return e}))){C=S,E=!1;break}_.set(S,D)}if(E)for(var A=function(e){var t=y.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function px(e,t,n){return aw(e,sw(t,n))}var mx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=dx(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Uw(t.placement),b=Gw(t.placement),y=!b,w=Yw(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(i){var R,I="y"===w?Sw:Rw,M="y"===w?Tw:Nw,P="y"===w?"height":"width",O=_[w],D=O+g[I],A=O-g[M],L=p?-C[P]/2:0,z=b===Pw?E[P]:C[P],B=b===Pw?-C[P]:-E[P],F=t.elements.arrow,V=p&&F?yw(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[I],$=H[M],W=px(0,E[P],V[P]),U=y?E[P]/2-L-W-j-S.mainAxis:z-W-j-S.mainAxis,G=y?-E[P]/2+L+W+$+S.mainAxis:B+W+$+S.mainAxis,Y=t.elements.arrow&&kw(t.elements.arrow),q=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(R=null==T?void 0:T[w])?R:0,X=O+G-K,Z=px(p?sw(D,O+U-K-q):D,O,p?aw(A,X):A);_[w]=Z,N[w]=Z-O}if(s){var J,Q="x"===w?Sw:Rw,ee="x"===w?Tw:Nw,te=_[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[Sw,Rw].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-E[ne]-C[ne]-ae+S.altAxis,le=ie?te+E[ne]+C[ne]-ae-S.altAxis:oe,ce=p&&ie?function(e,t,n){var r=px(e,t,n);return r>n?n:r}(se,te,le):px(p?se:re,te,p?le:oe);_[x]=ce,N[x]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};var hx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Uw(n.placement),l=Yw(s),c=[Rw,Nw].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return cx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ux(e,Mw))}(o.padding,n),d=yw(i),f="y"===l?Sw:Rw,p="y"===l?Tw:Nw,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=kw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,_=px(y,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ix(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vx(e){return[Sw,Nw,Tw,Rw].some((function(t){return e[t]>=0}))}var bx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=dx(t,{elementContext:"reference"}),s=dx(t,{altBoundary:!0}),l=gx(a,r),c=gx(s,o,i),u=vx(l),d=vx(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},yx=jw({defaultModifiers:[Ww,Kw,Jw,Qw,ex,fx,mx,hx,bx]});function wx(e){void 0===e&&(e={});var t,n,r=Bp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=Wp(h(r,["visible","animated"])),c=(0,b.useState)(i),u=c[0],d=c[1],f=(0,b.useState)(s),p=f[0],g=f[1],v=(0,b.useState)(!1),y=v[0],w=v[1],x=(t=u,n=(0,b.useRef)(null),U((function(){n.current=t}),[t]),n),_=null!=x.current&&x.current!==u;p&&!y&&_&&w(!0),(0,b.useEffect)((function(){if("number"==typeof p&&y){var e=setTimeout((function(){return w(!1)}),p);return function(){clearTimeout(e)}}return function(){}}),[p,y]);var E=(0,b.useCallback)((function(){return d(!0)}),[]),C=(0,b.useCallback)((function(){return d(!1)}),[]),k=(0,b.useCallback)((function(){return d((function(e){return!e}))}),[]),S=(0,b.useCallback)((function(){return w(!1)}),[]);return m(m({},l),{},{visible:u,animated:p,animating:y,show:E,hide:C,toggle:k,setVisible:d,setAnimated:g,stopAnimation:S})}var xx=ee("Mac")&&!ee("Chrome")&&ee("Safari");function _x(e){return function(t){return e&&!A(t,e)?e:t}}function Ex(e){void 0===e&&(e={});var t=Bp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,p=t.modal,g=void 0!==p&&p,v=h(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,b.useRef)(null),w=(0,b.useRef)(null),x=(0,b.useRef)(null),_=(0,b.useRef)(null),E=(0,b.useState)(i),C=E[0],k=E[1],S=(0,b.useState)(i),T=S[0],N=S[1],R=(0,b.useState)(l||[0,r])[0],I=(0,b.useState)({position:"fixed",left:"100%",top:"100%"}),M=I[0],P=I[1],O=(0,b.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=Bp(e),n=t.modal,r=void 0===n||n,o=wx(h(t,["modal"])),i=(0,b.useState)(r),a=i[0],s=i[1],l=(0,b.useRef)(null);return m(m({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(m({modal:g},v)),z=(0,b.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),B=(0,b.useCallback)((function(e){e.placement&&N(e.placement),e.styles&&(P(_x(e.styles.popper)),_.current&&A(_x(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=yx(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:xx?B:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:R}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=_.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!_.current,options:{element:_.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return B(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,R,u]),(0,b.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),m(m({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:_,unstable_popoverStyles:M,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:k})}var Cx={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var kx=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],Sx=[].concat(kx,["unstable_portal"]),Tx=F({name:"TooltipReference",compose:re,keys:kx,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=h(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,b.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),p=(0,b.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),g=(0,b.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),v=(0,b.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return m({ref:H(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:p,onMouseEnter:g,onMouseLeave:v,"aria-describedby":e.baseId},s)}}),Nx=z({as:"div",useHook:Tx});const Rx=(0,s.createContext)({});var Ix=F({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=h(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,b.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?m({display:"none"},o):o,f=G(n),p=G(r),g=(0,b.useRef)(0);(0,b.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var v=(0,b.useCallback)((function(t){var n;Y(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,b.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),v(e)}),[v]),w=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),v(e)}),[v]);return m({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Mx=z({as:"div",useHook:Ix});function Px(){return W?document.body:null}var Ox=(0,b.createContext)(Px());function Dx(e){var t=e.children,n=(0,b.useContext)(Ox)||Px(),r=(0,b.useState)((function(){if(W){var e=document.createElement("div");return e.className=Dx.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,Dt.createPortal)((0,b.createElement)(Ox.Provider,{value:r},t),r):null}function Ax(e){e.defaultPrevented||"Escape"===e.key&&Cx.show(null)}Dx.__className="__reakit-portal",Dx.__selector="."+Dx.__className;var Lx=F({name:"Tooltip",compose:Ix,keys:Sx,useOptions:function(e){var t=e.unstable_portal;return m({unstable_portal:void 0===t||t},h(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=h(t,["ref","style","wrapElement"]);(0,b.useEffect)((function(){var t;j(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",Ax)}),[]);var a=(0,b.useCallback)((function(t){return e.unstable_portal&&(t=(0,b.createElement)(Dx,null,t)),o?o(t):t}),[e.unstable_portal,o]);return m({ref:H(e.unstable_popoverRef,n),role:"tooltip",style:m(m({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),zx=z({as:"div",memo:!0,useHook:Lx});var Bx=$u((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=ju(e,"Shortcut");if(!r)return null;let l,c;return"string"==typeof r?l=r:(l=r.display,c=r.ariaLabel),(0,s.createElement)(nd,a({as:n,className:o,"aria-label":c,ref:t},i),l)}),"Shortcut");const Fx=Gf("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",gh.transitionDurationFastest," ease;font-size:",gh.fontSize,";&[data-enter]{opacity:1;}",""),Vx=ed("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",Np.white,";padding:4px 8px;"),Hx={name:"12mkfdx",styles:"outline:none"},jx=ed(Bx,{target:"e7tfjmw0"})("display:inline-block;margin-left:",Zm(1),";"),{TooltipPopoverView:$x}=t;var Wx=$u((function(e,t){const{children:n,className:r,...o}=ju(e,"TooltipContent"),{tooltip:i}=(0,s.useContext)(Rx),l=Hu()(Fx,r);return(0,s.createElement)(zx,a({as:nd},o,i,{className:l,ref:t}),(0,s.createElement)($x,null,n))}),"TooltipContent");const Ux=$u((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:l,focusable:c=!0,gutter:u=4,id:d,modal:f=!0,placement:p,visible:g=!1,shortcut:v,...y}=ju(e,"Tooltip"),w=function(e){void 0===e&&(e={});var t=Bp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=h(t,["placement","unstable_timeout"]),s=(0,b.useState)(i),l=s[0],c=s[1],u=(0,b.useRef)(null),d=(0,b.useRef)(null),f=Ex(m(m({},a),{},{placement:r})),p=(f.modal,f.setModal,h(f,["modal","setModal"])),g=(0,b.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),v=(0,b.useCallback)((function(){g(),p.hide(),d.current=window.setTimeout((function(){Cx.hide(p.baseId)}),l)}),[g,p.hide,l,p.baseId]),y=(0,b.useCallback)((function(){g(),!l||Cx.currentTooltipId?(Cx.show(p.baseId),p.show()):(Cx.show(null),u.current=window.setTimeout((function(){Cx.show(p.baseId),p.show()}),l))}),[g,l,p.show,p.baseId]);return(0,b.useEffect)((function(){return Cx.subscribe((function(e){e!==p.baseId&&(g(),p.visible&&p.hide())}))}),[p.baseId,g,p.visible,p.hide]),(0,b.useEffect)((function(){return function(){g(),Cx.hide(p.baseId)}}),[g,p.baseId]),m(m({},p),{},{hide:v,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||d,gutter:u,placement:p,visible:g,...y}),x=(0,s.useMemo)((()=>({tooltip:w})),[w]);return(0,s.createElement)(Rx.Provider,{value:x},l&&(0,s.createElement)(Wx,{unstable_portal:f,ref:t},l,v&&(0,s.createElement)(jx,{shortcut:v})),i&&(0,s.createElement)(Nx,a({},w,i.props,{ref:null==i?void 0:i.ref}),(e=>(c||(e.tabIndex=void 0),(0,s.cloneElement)(i,e)))))}),"Tooltip");var Gx=Ux;const Yx=e=>{const{color:t,colorType:n}=e,[r,o]=(0,s.useState)(null),i=(0,s.useRef)(),a=(0,d.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,s.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,s.createElement)(Gx,{content:(0,s.createElement)(Ph,{color:"white"},r===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")),placement:"bottom"},(0,s.createElement)(ew,{isSmall:!0,ref:a,icon:tw,showTooltip:!1}))},qx=e=>{let{min:t,max:n,label:r,abbreviation:o,onChange:i,value:a}=e;return(0,s.createElement)(qv,{spacing:4},(0,s.createElement)(Gy,{min:t,max:n,label:r,hideLabelFromVision:!0,value:a,onChange:e=>{i(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,s.createElement)(Zv,{as:Ph,paddingLeft:Zm(4),color:Np.ui.theme,lineHeight:1},o),spinControls:"none",size:"__unstable-large"}),(0,s.createElement)(qy,{__nextHasNoMarginBottom:!0,label:r,hideLabelFromVision:!0,min:t,max:n,value:a,onChange:i,withInputField:!1}))},Kx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{r:o,g:i,b:a,a:l}=t.toRgb();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qx,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>n(yp({r:e,g:i,b:a,a:l}))}),(0,s.createElement)(qx,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>n(yp({r:o,g:e,b:a,a:l}))}),(0,s.createElement)(qx,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>n(yp({r:o,g:i,b:e,a:l}))}),r&&(0,s.createElement)(qx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>n(yp({r:o,g:i,b:a,a:e/100}))}))},Xx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{h:o,s:i,l:a,a:l}=t.toHsl();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qx,{min:0,max:359,label:"Hue",abbreviation:"H",value:o,onChange:e=>{n(yp({h:e,s:i,l:a,a:l}))}}),(0,s.createElement)(qx,{min:0,max:100,label:"Saturation",abbreviation:"S",value:i,onChange:e=>{n(yp({h:o,s:e,l:a,a:l}))}}),(0,s.createElement)(qx,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a,onChange:e=>{n(yp({h:o,s:i,l:e,a:l}))}}),r&&(0,s.createElement)(qx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>{n(yp({h:o,s:i,l:a,a:e/100}))}}))},Zx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;return(0,s.createElement)(Pv,{prefix:(0,s.createElement)(Zv,{as:Ph,marginLeft:Zm(4),color:Np.ui.theme,lineHeight:1},"#"),value:t.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const t=e.startsWith("#")?e:"#"+e;n(yp(t))},maxLength:r?9:7,label:(0,u.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{var n,r,o,i;const a=null===(n=t.payload)||void 0===n||null===(r=n.event)||void 0===r?void 0:r.nativeEvent;if("insertFromPaste"!==(null==a?void 0:a.inputType))return{...e};const s=null!==(o=e.value)&&void 0!==o&&o.startsWith("#")?e.value.slice(1).toUpperCase():null===(i=e.value)||void 0===i?void 0:i.toUpperCase();return{...e,value:s}},__unstableInputWidth:"9em"})},Jx=e=>{let{colorType:t,color:n,onChange:r,enableAlpha:o}=e;const i={color:n,onChange:r,enableAlpha:o};switch(t){case"hsl":return(0,s.createElement)(Xx,i);case"rgb":return(0,s.createElement)(Kx,i);default:return(0,s.createElement)(Zx,i)}};function Qx(){return(Qx=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 e_(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 t_(e){var t=(0,b.useRef)(e),n=(0,b.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var n_=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},r_=function(e){return"touches"in e},o_=function(e){return e&&e.ownerDocument.defaultView||self},i_=function(e,t,n){var r=e.getBoundingClientRect(),o=r_(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:n_((o.pageX-(r.left+o_(e).pageXOffset))/r.width),top:n_((o.pageY-(r.top+o_(e).pageYOffset))/r.height)}},a_=function(e){!r_(e)&&e.preventDefault()},s_=b.memo((function(e){var t=e.onMove,n=e.onKey,r=e_(e,["onMove","onKey"]),o=(0,b.useRef)(null),i=t_(t),a=t_(n),s=(0,b.useRef)(null),l=(0,b.useRef)(!1),c=(0,b.useMemo)((function(){var e=function(e){a_(e),(r_(e)?e.touches.length>0:e.buttons>0)&&o.current?i(i_(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=o_(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(a_(t),!function(e,t){return t&&!r_(e)}(t,l.current)&&r)){if(r_(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(i_(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,b.useEffect)((function(){return f}),[f]),b.createElement("div",Qx({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),l_=function(e){return e.filter(Boolean).join(" ")},c_=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=l_(["react-colorful__pointer",e.className]);return b.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},b.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},u_=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},d_=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:u_(e.h),s:u_(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:u_(o/2),a:u_(r,2)}}),f_=function(e){var t=d_(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},p_=function(e){var t=d_(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},m_=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:u_(255*[r,s,a,a,l,r][c]),g:u_(255*[l,r,r,s,a,a][c]),b:u_(255*[a,a,l,r,r,s][c]),a:u_(o,2)}},h_=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?v_({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}},g_=h_,v_=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:u_(60*(s<0?s+6:s)),s:u_(i?a/i*100:0),v:u_(i/255*100),a:o}},b_=b.memo((function(e){var t=e.hue,n=e.onChange,r=l_(["react-colorful__hue",e.className]);return b.createElement("div",{className:r},b.createElement(s_,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:n_(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":u_(t),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(c_,{className:"react-colorful__hue-pointer",left:t/360,color:f_({h:t,s:100,v:100,a:1})})))})),y_=b.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:f_({h:t.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(s_,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:n_(t.s+100*e.left,0,100),v:n_(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+u_(t.s)+"%, Brightness "+u_(t.v)+"%"},b.createElement(c_,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:f_(t)})))})),w_=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},x_=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function __(e,t,n){var r=t_(n),o=(0,b.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,b.useRef)({color:t,hsva:i});(0,b.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,b.useEffect)((function(){var t;w_(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,b.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var E_,C_="undefined"!=typeof window?b.useLayoutEffect:b.useEffect,k_=new Map,S_=function(e){C_((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!k_.has(t)){var r=t.createElement("style");r.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}',k_.set(t,r);var o=E_||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[])},T_=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=e_(e,["className","colorModel","color","onChange"]),s=(0,b.useRef)(null);S_(s);var l=__(n,o,i),c=l[0],u=l[1],d=l_(["react-colorful",t]);return b.createElement("div",Qx({},a,{ref:s,className:d}),b.createElement(y_,{hsva:c,onChange:u}),b.createElement(b_,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},N_=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+p_(Object.assign({},n,{a:0}))+", "+p_(Object.assign({},n,{a:1}))+")"},i=l_(["react-colorful__alpha",t]),a=u_(100*n.a);return b.createElement("div",{className:i},b.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),b.createElement(s_,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:n_(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},b.createElement(c_,{className:"react-colorful__alpha-pointer",left:n.a,color:p_(n)})))},R_=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=e_(e,["className","colorModel","color","onChange"]),s=(0,b.useRef)(null);S_(s);var l=__(n,o,i),c=l[0],u=l[1],d=l_(["react-colorful",t]);return b.createElement("div",Qx({},a,{ref:s,className:d}),b.createElement(y_,{hsva:c,onChange:u}),b.createElement(b_,{hue:c.h,onChange:u}),b.createElement(N_,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},I_={defaultColor:"rgba(0, 0, 0, 1)",toHsva:h_,fromHsva:function(e){var t=m_(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:x_},M_=function(e){return b.createElement(R_,Qx({},e,{colorModel:I_}))},P_={defaultColor:"rgb(0, 0, 0)",toHsva:g_,fromHsva:function(e){var t=m_(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:x_},O_=function(e){return b.createElement(T_,Qx({},e,{colorModel:P_}))};const D_=e=>{let{color:t,enableAlpha:n,onChange:r}=e;const o=n?M_:O_,i=(0,s.useMemo)((()=>t.toRgbString()),[t]);return(0,s.createElement)(o,{color:i,onChange:e=>{r(yp(e))}})};function A_(e){let{defaultValue:t,onChange:n,value:r}=e;const o=void 0!==r,i=o?r:t,[a,l]=(0,s.useState)(i);let c;return c=o&&"function"==typeof n?n:o||"function"!=typeof n?l:e=>{n(e),l(e)},[o?r:a,c]}xp([_p]);const L_=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],z_=$u(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:l,...c}=ju(e,"ColorPicker"),[f,p]=A_({onChange:o,value:r,defaultValue:i}),m=(0,s.useMemo)((()=>yp(f||"")),[f]),h=(0,d.useDebounce)(p),g=(0,s.useCallback)((e=>{h(e.toHex())}),[h]),[v,b]=(0,s.useState)(l||"hex");return(0,s.createElement)(Qy,a({ref:t},c),(0,s.createElement)(D_,{onChange:g,color:m,enableAlpha:n}),(0,s.createElement)(Xy,null,(0,s.createElement)(Zy,{justify:"space-between"},(0,s.createElement)(Yy,{__nextHasNoMarginBottom:!0,options:L_,value:v,onChange:e=>b(e),label:(0,u.__)("Color format"),hideLabelFromVision:!0}),(0,s.createElement)(Yx,{color:m,colorType:l||v})),(0,s.createElement)(Jy,{direction:"column",gap:2},(0,s.createElement)(Jx,{colorType:v,color:m,onChange:g,enableAlpha:n}))))}),"ColorPicker");var B_=z_;function F_(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const V_=uc()((e=>{const t=yp(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}}));const H_=e=>(0,s.createElement)(B_,function(e){const{onChangeComplete:t}=e,n=(0,s.useCallback)((e=>{t(V_(e))}),[t]);return function(e){var t;return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof(null===(t=e.color)||void 0===t?void 0:t.hex)}(e)?{color:F_(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}(e));var j_=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function $_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,s.createElement)("div",{className:c()("components-circular-option-picker",n)},(0,s.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,s.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}$_.Option=function(e){const{className:t,isSelected:n,selectedIconProps:r,tooltipText:o,...i}=e,l=(0,s.createElement)(ad,a({isPressed:n,className:"components-circular-option-picker__option"},i));return(0,s.createElement)("div",{className:c()(t,"components-circular-option-picker__option-wrapper")},o?(0,s.createElement)(Vf,{text:o},l):l,n&&(0,s.createElement)(cy,a({icon:j_},r||{})))},$_.ButtonAction=function(e){const{className:t,children:n,...r}=e;return(0,s.createElement)(ad,a({className:c()("components-circular-option-picker__clear",t),variant:"tertiary"},r),n)},$_.DropdownLinkAction=function(e){const{buttonProps:t,className:n,dropdownProps:r,linkText:o}=e;return(0,s.createElement)(oy,a({className:c()("components-circular-option-picker__dropdown-link-action",n),renderToggle:e=>{let{isOpen:n,onToggle:r}=e;return(0,s.createElement)(ad,a({"aria-expanded":n,"aria-haspopup":"true",onClick:r,variant:"link"},t),o)}},r))};var W_=$u((function(e,t){const n=function(e){const{expanded:t=!1,...n}=ju(e,"VStack");return Yv({direction:"column",expanded:t,...n})}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"VStack");var U_=$u((function(e,t){const n=lh(e);return(0,s.createElement)(nd,a({as:"span"},n,{ref:t}))}),"Truncate");var G_=$u((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=ju(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...Mh({color:Np.gray[900],size:Rh(n),isBlock:!0,weight:gh.fontWeightHeading,...r}),...i,as:o}}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"Heading");const Y_=ed(G_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),q_=ed("div",{target:"eovvns30"})("margin-left:",Zm(-2),";margin-right:",Zm(-2),";&:first-of-type{margin-top:",Zm(-2),";}&:last-of-type{margin-bottom:",Zm(-2),";}",(e=>{let{paddingSize:t="small"}=e;if("none"===t)return;const n={small:Zm(2),medium:Zm(4)};return Gf("padding:",n[t]||n.small,";","")}),";");var K_=$u((function(e,t){const{paddingSize:n="small",...r}=ju(e,"DropdownContentWrapper");return(0,s.createElement)(q_,a({},r,{paddingSize:n,ref:t}))}),"DropdownContentWrapper");xp([_p,ny]);const X_=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function Z_(e){let{className:t,clearColor:n,colors:r,onChange:o,value:i,actions:a}=e;const l=(0,s.useMemo)((()=>r.map(((e,t)=>{let{color:r,name:a}=e;const l=yp(r),c=i===r;return(0,s.createElement)($_.Option,{key:`${r}-${t}`,isSelected:c,selectedIconProps:c?{fill:l.contrast()>l.contrast("#000")?"#fff":"#000"}:{},tooltipText:a||(0,u.sprintf)((0,u.__)("Color code: %s"),r),style:{backgroundColor:r,color:r},onClick:c?n:()=>o(r,t),"aria-label":a?(0,u.sprintf)((0,u.__)("Color: %s"),a):(0,u.sprintf)((0,u.__)("Color code: %s"),r)})}))),[r,i,o,n]);return(0,s.createElement)($_,{className:t,options:l,actions:a})}function J_(e){let{className:t,clearColor:n,colors:r,onChange:o,value:i,actions:a}=e;return 0===r.length?null:(0,s.createElement)(W_,{spacing:3,className:t},r.map(((e,t)=>{let{name:l,colors:c}=e;return(0,s.createElement)(W_,{spacing:2,key:t},(0,s.createElement)(Y_,null,l),(0,s.createElement)(Z_,{clearColor:n,colors:c,onChange:e=>o(e,t),value:i,actions:r.length===t+1?a:null}))})))}function Q_(e){let{isRenderedInSidebar:t,popoverProps:n,...r}=e;const o=(0,s.useMemo)((()=>({shift:!0,...t?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...n})),[t,n]);return(0,s.createElement)(oy,a({contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o},r))}xp([_p,ny]);const eE=(0,s.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i=!1,onChange:l,value:c,__experimentalIsRenderedInSidebar:d=!1,...f}=e,[p,m]=(0,s.useState)(c),h=(0,s.useCallback)((()=>l(void 0)),[l]),g=(0,s.useCallback)((e=>{m(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=null==r?void 0:r.getComputedStyle(t).backgroundColor;return o?yp(o).toHex():e})(c,e))}),[c]),v=X_(r),b=(0,s.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return"";const r=/^var\(/.test(e),o=r?e:yp(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:yp(n).toHex()))return t;return(0,u.__)("Custom")}(c,r,v)),[c,r,v]),y=yp(null!=p?p:""),w=null!=c&&c.startsWith("#")?c.substring(1):null!=c?c:"",x=w?(0,u.sprintf)((0,u.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),b,w):(0,u.__)("Custom color picker."),_={clearable:n,clearColor:h,onChange:l,value:c,actions:!!n&&(0,s.createElement)($_.ButtonAction,{onClick:h},(0,u.__)("Clear"))};return(0,s.createElement)(W_,a({spacing:3,ref:t},f),!o&&(0,s.createElement)(Q_,{isRenderedInSidebar:d,renderContent:()=>(0,s.createElement)(K_,{paddingSize:"none"},(0,s.createElement)(H_,{color:p,onChange:e=>l(e),enableAlpha:i})),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(Qm,{as:"button",ref:g,justify:"space-between",align:"flex-start",className:"components-color-palette__custom-color","aria-expanded":t,"aria-haspopup":"true",onClick:n,"aria-label":x,style:(r=c,void 0===r||0===yp(r).alpha()?{color:"#000"}:{background:c,color:y.contrast()>y.contrast("#000")?"#fff":"#000"})},(0,s.createElement)(Um,{isBlock:!0,as:U_,className:"components-color-palette__custom-color-name"},b),(0,s.createElement)(Um,{as:"span",className:"components-color-palette__custom-color-value"},w));var r}}),v?(0,s.createElement)(J_,a({},_,{colors:r})):(0,s.createElement)(Z_,a({},_,{colors:r})))}));var tE=eE;const nE="web"===s.Platform.OS,rE={px:{value:"px",label:nE?"px":(0,u.__)("Pixels (px)"),a11yLabel:(0,u.__)("Pixels (px)"),step:1},"%":{value:"%",label:nE?"%":(0,u.__)("Percentage (%)"),a11yLabel:(0,u.__)("Percent (%)"),step:.1},em:{value:"em",label:nE?"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:nE?"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:nE?"vw":(0,u.__)("Viewport width (vw)"),a11yLabel:(0,u.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:nE?"vh":(0,u.__)("Viewport height (vh)"),a11yLabel:(0,u.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:nE?"vmin":(0,u.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,u.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:nE?"vmax":(0,u.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,u.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:nE?"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:nE?"ex":(0,u.__)("x-height of the font (ex)"),a11yLabel:(0,u.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:nE?"cm":(0,u.__)("Centimeters (cm)"),a11yLabel:(0,u.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:nE?"mm":(0,u.__)("Millimeters (mm)"),a11yLabel:(0,u.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:nE?"in":(0,u.__)("Inches (in)"),a11yLabel:(0,u.__)("Inches (in)"),step:.001},pc:{value:"pc",label:nE?"pc":(0,u.__)("Picas (pc)"),a11yLabel:(0,u.__)("Picas (pc)"),step:1},pt:{value:"pt",label:nE?"pt":(0,u.__)("Points (pt)"),a11yLabel:(0,u.__)("Points (pt)"),step:1}},oE=Object.values(rE),iE=[rE.px,rE["%"],rE.em,rE.rem,rE.vw,rE.vh],aE=rE.px;function sE(e,t,n){return cE(t?`${null!=e?e:""}${t}`:e,n)}function lE(e){return Array.isArray(e)&&!!e.length}function cE(e){var t,n;let r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oE;if(void 0!==e||null===e){r=`${e}`.trim();const t=parseFloat(r);o=isFinite(t)?t:void 0}const a=null===(t=r)||void 0===t?void 0:t.match(/[\d.\-\+]*\s*(.*)/),s=null==a||null===(n=a[1])||void 0===n?void 0:n.toLowerCase();let l;if(lE(i)){const e=i.find((e=>e.value===s));l=null==e?void 0:e.value}else l=aE.value;return[o,l]}function uE(e,t,n,r){const[o,i]=cE(e,t),a=null!=o?o:n;let s=i||r;return!s&&lE(t)&&(s=t[0].value),[a,s]}const dE=e=>{let{units:t=oE,availableUnits:n=[],defaultValues:r}=e;const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(n,t);return r&&o.forEach(((e,t)=>{if(r[e.value]){const[n]=cE(r[e.value]);o[t].default=n}})),o};function fE(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:a,previousStyleSelection:l,size:c="default",__experimentalIsRenderedInSidebar:u=!1,...d}=ju(e,"BorderControlDropdown"),[f]=cE(null==t?void 0:t.width),p=0===f,m=Hu(),h=(0,s.useMemo)((()=>m((e=>Gf("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",Vh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",gh.borderWidth," solid ",Np.ui.border,";&:focus,&:hover:not( :disabled ){",Vb," border-color:",Np.ui.borderFocus,";z-index:1;position:relative;}}",""))(c),n)),[n,m,c]),g=(0,s.useMemo)((()=>m(Gb)),[m]),v=(0,s.useMemo)((()=>m($b(t,c))),[t,m,c]),b=(0,s.useMemo)((()=>m(Wb)),[m]),y=(0,s.useMemo)((()=>m(Ub)),[m]),w=(0,s.useMemo)((()=>m(Yb)),[m]);return{...d,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{const n="none"===(null==t?void 0:t.style)?l:null==t?void 0:t.style,r=p&&e?"1px":null==t?void 0:t.width;a({color:e,style:n,width:r})},onStyleChange:e=>{const n=p&&e?"1px":null==t?void 0:t.width;a({...t,style:e,width:n})},onReset:()=>{a({...t,color:void 0,style:void 0})},popoverContentClassName:y,popoverControlsClassName:b,resetButtonClassName:w,__experimentalIsRenderedInSidebar:u}}const pE=$u(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:l,enableStyle:c,indicatorClassName:d,indicatorWrapperClassName:f,onReset:p,onColorChange:m,onStyleChange:h,popoverContentClassName:g,popoverControlsClassName:v,resetButtonClassName:b,showDropdownHeader:y,__unstablePopoverProps:w,...x}=fE(e),{color:_,style:E}=r||{},C=((e,t)=>{if(e&&t){if(X_(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)=>r?t?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,t.color,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,t.color):e?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".',e,n):(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',e):(0,u.__)("Border color and style picker."):t?(0,u.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,t.color):e?(0,u.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',e):(0,u.__)("Border color picker."))(_,C,E,c),S=_||E&&"none"!==E,T=n?"bottom left":void 0;return(0,s.createElement)(oy,a({renderToggle:e=>{let{onToggle:t}=e;return(0,s.createElement)(ad,{onClick:t,variant:"tertiary","aria-label":k,tooltipPosition:T,label:(0,u.__)("Border color and style picker"),showTooltip:!0},(0,s.createElement)("span",{className:f},(0,s.createElement)(Qb,{className:d,colorValue:_})))},renderContent:e=>{let{onClose:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(K_,{paddingSize:"medium"},(0,s.createElement)(W_,{className:v,spacing:6},y?(0,s.createElement)(qv,null,(0,s.createElement)(kv,null,(0,u.__)("Border color")),(0,s.createElement)(ad,{isSmall:!0,label:(0,u.__)("Close border color"),icon:Mb,onClick:t})):void 0,(0,s.createElement)(tE,{className:g,value:_,onChange:m,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:l}),c&&(0,s.createElement)(Jb,{label:(0,u.__)("Style"),value:E,onChange:h}))),S&&(0,s.createElement)(K_,{paddingSize:"none"},(0,s.createElement)(ad,{className:b,variant:"tertiary",onClick:()=>{p(),t()}},(0,u.__)("Reset to default"))))},popoverProps:{...w}},x,{ref:t}))}),"BorderControlDropdown");var mE=pE;function hE(e){let{className:t,isUnitSelectTabbable:n=!0,onChange:r,size:o="default",unit:i="px",units:l=iE,...u}=e;if(!lE(l)||1===(null==l?void 0:l.length))return(0,s.createElement)(zb,{className:"components-unit-control__unit-label",selectSize:o},i);const d=c()("components-unit-control__select",t);return(0,s.createElement)(Bb,a({className:d,onChange:e=>{const{value:t}=e.target,n=l.find((e=>e.value===t));null==r||r(t,{event:e,data:n})},selectSize:o,tabIndex:n?void 0:-1,value:i},u),l.map((e=>(0,s.createElement)("option",{value:e.value,key:e.value},e.label))))}const gE=(0,s.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:l=!1,disableUnits:d=!1,isPressEnterToChange:f=!1,isResetValueOnUnitChange:p=!1,isUnitSelectTabbable:m=!0,label:h,onChange:g,onUnitChange:v,size:b="default",unit:y,units:w=iE,value:x,onBlur:_,onFocus:E,...C}=e;"unit"in e&&Jl()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const k=null!=x?x:void 0,S=(0,s.useMemo)((()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oE;const r=Array.isArray(n)?[...n]:[],[,o]=sE(e,t,oE);return o&&!r.some((e=>e.value===o))&&rE[o]&&r.unshift(rE[o]),r}(k,y,w)),[k,y,w]),[T,N]=sE(k,y,S),[R,I]=gy(1===S.length?S[0].value:y,{initial:N,fallback:""});(0,s.useEffect)((()=>{void 0!==N&&I(N)}),[N,I]);const M=(0,s.useRef)(void 0),P=c()("components-unit-control","components-unit-control-wrapper",i),O=e=>{if(!isNaN(Number(e.currentTarget.value)))return void(M.current=void 0);const[t,n]=uE(e.currentTarget.value,S,T,R);if(M.current=t,f&&n!==R){const t={event:e,data:Array.isArray(S)?S.find((e=>e.value===n)):void 0};null==v||v(n,t),I(n)}},D=(e,t)=>{const n={...e};var r;t.type===ov&&(void 0!==M.current&&(n.value=(null!==(r=M.current)&&void 0!==r?r:"").toString(),M.current=void 0));return n};let A=D;n&&(A=(e,t)=>{const r=D(e,t);return n(r,t)});const L=d?null:(0,s.createElement)(hE,{"aria-label":(0,u.__)("Select unit"),disabled:l,isUnitSelectTabbable:m,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=T?T:""}${e}`;p&&void 0!==(null==n?void 0:n.default)&&(r=`${n.default}${e}`),null==g||g(r,t),null==v||v(e,t),I(e)},size:b,unit:R,units:S,onBlur:_,onFocus:E});let z=C.step;if(!z&&S){var B;const e=S.find((e=>e.value===R));z=null!==(B=null==e?void 0:e.step)&&void 0!==B?B:1}return(0,s.createElement)(Ab,a({type:f?"text":"number"},C,{autoComplete:r,className:P,disabled:l,spinControls:"none",isPressEnterToChange:f,label:h,onBlur:e=>{O(e),null==_||_(e)},onKeyDown:e=>{const{key:t}=e;"Enter"===t&&O(e)},onChange:(e,t)=>{if(""===e||null==e)return void(null==g||g("",t));const n=uE(e,S,T,R).join("");null==g||g(n,t)},ref:t,size:b,suffix:L,value:null!=T?T:"",step:z,__unstableStateReducer:A,onFocus:E}))}));var vE=gE;function bE(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:a=!0,shouldSanitizeBorder:l=!0,size:c="default",value:u,width:d,__experimentalIsRenderedInSidebar:f=!1,...p}=ju(e,"BorderControl"),[m,h]=cE(null==u?void 0:u.width),g=h||"px",v=0===m,[b,y]=(0,s.useState)(),[w,x]=(0,s.useState)(),_=(0,s.useCallback)((e=>{if(l)return o((e=>{const t=void 0===(null==e?void 0:e.width)||""===e.width,n=void 0===(null==e?void 0:e.color);if(!t||!n)return e})(e));o(e)}),[o,l]),E=(0,s.useCallback)((e=>{const t=""===e?void 0:e,[n]=cE(e),r=0===n,o={...u,width:t};r&&!v&&(y(null==u?void 0:u.color),x(null==u?void 0:u.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=b),"none"===o.style&&(o.style=w)),_(o)}),[u,v,b,w,_]),C=(0,s.useCallback)((e=>{E(`${e}${g}`)}),[E,g]),k=Hu(),S=(0,s.useMemo)((()=>k(Hb,t)),[t,k]);let T=d;r&&(T="__unstable-large"===c?"116px":"90px");const N=(0,s.useMemo)((()=>{const e=!!T&&jb,t=(e=>Gf("height:","__unstable-large"===e?"40px":"30px",";",""))(c);return k(Gf(Ab,"{flex:1 1 40%;}&& ",Bb,"{min-height:0;}",""),e,t)}),[T,k,c]),R=(0,s.useMemo)((()=>k(Gf("flex:1 1 60%;",Vh({marginRight:Zm(3)})(),";",""))),[k]);return{...p,className:S,colors:n,enableAlpha:i,enableStyle:a,innerWrapperClassName:N,inputWidth:T,onBorderChange:_,onSliderChange:C,onWidthChange:E,previousStyleSelection:w,sliderClassName:R,value:u,widthUnit:g,widthValue:m,size:c,__experimentalIsRenderedInSidebar:f}}const yE=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(rd,{as:"legend"},t):(0,s.createElement)(kv,{as:"legend"},t):null},wE=$u(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:d,inputWidth:f,label:p,onBorderChange:m,onSliderChange:h,onWidthChange:g,placeholder:v,__unstablePopoverProps:b,previousStyleSelection:y,showDropdownHeader:w,size:x,sliderClassName:_,value:E,widthUnit:C,widthValue:k,withSlider:S,__experimentalIsRenderedInSidebar:T,...N}=bE(e);return(0,s.createElement)(nd,a({as:"fieldset"},N,{ref:t}),(0,s.createElement)(yE,{label:p,hideLabelFromVision:c}),(0,s.createElement)(qv,{spacing:4,className:d},(0,s.createElement)(vE,{prefix:(0,s.createElement)(mE,{border:E,colors:n,__unstablePopoverProps:b,disableCustomColors:r,enableAlpha:i,enableStyle:l,onChange:m,previousStyleSelection:y,showDropdownHeader:w,__experimentalIsRenderedInSidebar:T,size:x}),label:(0,u.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:g,value:(null==E?void 0:E.width)||"",placeholder:v,disableUnits:o,__unstableInputWidth:f,size:x}),S&&(0,s.createElement)(Uy,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:h,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1})))}),"BorderControl");var xE=wE;const _E={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 EE(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:a=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=ju(e,"Grid"),h=Xm(Array.isArray(i)?i:[i]),g=Xm(Array.isArray(d)?d:[d]),v=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${g}, 1fr )`,y=Hu();return{...m,className:(0,s.useMemo)((()=>{const e=function(e){return e?_E[e]:{}}(n),i=Gf({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${gh.gridBase} * ${a} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,a,v,b,l,c,u])}}var CE=$u((function(e,t){const n=EE(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"Grid");function kE(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...l}=ju(e,"BorderBoxControlSplitControls"),c=Hu(),u=(0,s.useMemo)((()=>c((e=>Gf("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[c,t,i]);return{...l,centeredClassName:(0,s.useMemo)((()=>c(Sb,t)),[c,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,s.useMemo)((()=>c(Gf(Vh({marginLeft:"auto"})(),";",""),t)),[c,t]),size:i,__experimentalIsRenderedInSidebar:a}}const SE=$u(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:c,popoverPlacement:f,popoverOffset:p,rightAlignedClassName:m,size:h="default",value:g,__experimentalIsRenderedInSidebar:v,...b}=kE(e),[y,w]=(0,s.useState)(null),x=(0,s.useMemo)((()=>f?{placement:f,offset:p,anchor:y,shift:!0}:void 0),[f,p,y]),_={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,isCompact:!0,__experimentalIsRenderedInSidebar:v,size:h},E=(0,d.useMergeRefs)([w,t]);return(0,s.createElement)(CE,a({},b,{ref:E,gap:4}),(0,s.createElement)(Ib,{value:g,size:h}),(0,s.createElement)(xE,a({className:n,hideLabelFromVision:!0,label:(0,u.__)("Top border"),onChange:e=>c(e,"top"),__unstablePopoverProps:x,value:null==g?void 0:g.top},_)),(0,s.createElement)(xE,a({hideLabelFromVision:!0,label:(0,u.__)("Left border"),onChange:e=>c(e,"left"),__unstablePopoverProps:x,value:null==g?void 0:g.left},_)),(0,s.createElement)(xE,a({className:m,hideLabelFromVision:!0,label:(0,u.__)("Right border"),onChange:e=>c(e,"right"),__unstablePopoverProps:x,value:null==g?void 0:g.right},_)),(0,s.createElement)(xE,a({className:n,hideLabelFromVision:!0,label:(0,u.__)("Bottom border"),onChange:e=>c(e,"bottom"),__unstablePopoverProps:x,value:null==g?void 0:g.bottom},_)))}),"BorderBoxControlSplitControls");var TE=SE;const NE=/^([\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)?$/;const RE=["top","right","bottom","left"],IE=["color","style","width"],ME=e=>!e||!IE.some((t=>void 0!==e[t])),PE=e=>{if(!e)return!1;if(OE(e)){return!RE.every((t=>ME(e[t])))}return!ME(e)},OE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).some((e=>-1!==RE.indexOf(e)))},DE=e=>{if(!OE(e))return!1;const t=RE.map((t=>AE(null==e?void 0:e[t])));return!t.every((e=>e===t[0]))},AE=(e,t)=>{if(ME(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(" ")},LE=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(NE);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 zE(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:l,__experimentalIsRenderedInSidebar:c=!1,...u}=ju(e,"BorderBoxControl"),d=DE(l),f=OE(l),p=f?(e=>{if(!e)return;const t=[],n=[],r=[];RE.forEach((o=>{var i,a,s;t.push(null===(i=e[o])||void 0===i?void 0:i.color),n.push(null===(a=e[o])||void 0===a?void 0:a.style),r.push(null===(s=e[o])||void 0===s?void 0:s.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]:LE(r)}})(l):l,m=f?l:(e=>{if(e&&!ME(e))return{top:e,right:e,bottom:e,left:e}})(l),h=!isNaN(parseFloat(`${null==p?void 0:p.width}`)),[g,v]=(0,s.useState)(!d),b=Hu(),y=(0,s.useMemo)((()=>b(Eb,t)),[b,t]),w=(0,s.useMemo)((()=>b(Gf("flex:1;",Vh({marginRight:"24px"})(),";",""))),[b]),x=(0,s.useMemo)((()=>b(Cb)),[b]);return{...u,className:y,colors:n,disableUnits:d&&!h,enableAlpha:o,enableStyle:i,hasMixedBorders:d,isLinked:g,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!d||(t=e)&&IE.every((e=>void 0!==t[e])))return r(ME(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:{...null==l?void 0:l.top,...n},right:{...null==l?void 0:l.right,...n},bottom:{...null==l?void 0:l.bottom,...n},left:{...null==l?void 0:l.left,...n}};if(DE(o))return r(o);const i=ME(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};DE(n)?r(n):r(e)},toggleLinked:()=>v(!g),linkedValue:p,size:a,splitValue:m,wrapperClassName:x,__experimentalIsRenderedInSidebar:c}}const BE=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(rd,{as:"label"},t):(0,s.createElement)(kv,null,t):null},FE=$u(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:l,enableStyle:c,hasMixedBorders:f,hideLabelFromVision:p,isLinked:m,label:h,linkedControlClassName:g,linkedValue:v,onLinkedChange:b,onSplitChange:y,popoverPlacement:w,popoverOffset:x,size:_,splitValue:E,toggleLinked:C,wrapperClassName:k,__experimentalIsRenderedInSidebar:S,...T}=zE(e),[N,R]=(0,s.useState)(null),I=(0,s.useMemo)((()=>w?{placement:w,offset:x,anchor:N,shift:!0}:void 0),[w,x,N]),M=(0,d.useMergeRefs)([R,t]);return(0,s.createElement)(nd,a({className:n},T,{ref:M}),(0,s.createElement)(BE,{label:h,hideLabelFromVision:p}),(0,s.createElement)(nd,{className:k},m?(0,s.createElement)(xE,{className:g,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:l,enableStyle:c,onChange:b,placeholder:f?(0,u.__)("Mixed"):void 0,__unstablePopoverProps:I,shouldSanitizeBorder:!1,value:v,withSlider:!0,width:"__unstable-large"===_?"116px":"110px",__experimentalIsRenderedInSidebar:S,size:_}):(0,s.createElement)(TE,{colors:r,disableCustomColors:o,enableAlpha:l,enableStyle:c,onChange:y,popoverPlacement:w,popoverOffset:x,value:E,__experimentalIsRenderedInSidebar:S,size:_}),(0,s.createElement)(Nb,{onClick:C,isLinked:m,size:_})))}),"BorderBoxControl");var VE=FE;const HE=ed("div",{target:"e7pk0lh6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),jE=ed(Qm,{target:"e7pk0lh5"})({name:"5bhc30",styles:"margin-bottom:8px"}),$E=ed(Qm,{target:"e7pk0lh4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),WE=ed("div",{target:"e7pk0lh3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),UE=ed(Qm,{target:"e7pk0lh2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),GE=ed(Qm,{target:"e7pk0lh1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var YE={name:"1ch9yvl",styles:"border-radius:0"},qE={name:"tg3mx0",styles:"border-radius:2px"};const KE=e=>{let{isFirst:t,isLast:n,isOnly:r}=e;return t?Vh({borderTopRightRadius:0,borderBottomRightRadius:0})():n?Vh({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?qE:YE},XE=e=>{let{isFirst:t,isOnly:n}=e;return Vh({marginLeft:t||n?0:-1})()},ZE=ed(vE,{target:"e7pk0lh0"})("max-width:60px;",KE,";",XE,";"),JE=()=>{};function QE(e){let{isFirst:t,isLast:n,isOnly:r,onHoverOn:o=JE,onHoverOff:i=JE,label:l,value:c,...u}=e;const d=(f=e=>{let{event:t,...n}=e;n.hovering?o(t,n):i(t,n)},jg(Wg),ev({hover:f},p||{},"hover"));var f,p;return(0,s.createElement)(WE,d(),(0,s.createElement)(eC,{text:l},(0,s.createElement)(ZE,a({"aria-label":l,className:"component-box-control__unit-control",isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:c},u))))}function eC(e){let{children:t,text:n}=e;return n?(0,s.createElement)(Vf,{text:n,position:"top"},(0,s.createElement)("div",null,t)):t}const tC={all:(0,u.__)("All"),top:(0,u.__)("Top"),bottom:(0,u.__)("Bottom"),left:(0,u.__)("Left"),right:(0,u.__)("Right"),mixed:(0,u.__)("Mixed"),vertical:(0,u.__)("Vertical"),horizontal:(0,u.__)("Horizontal")},nC={top:void 0,right:void 0,bottom:void 0,left:void 0},rC=["top","right","bottom","left"];function oC(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function iC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rC;const r=uC(n),o=r.map((t=>cE(e[t]))),i=o.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),a=o.map((e=>e[1])),s=i.every((e=>e===i[0]))?i[0]:"";let l;var c;"number"==typeof s?l=oC(a):l=null!==(c=aC(t))&&void 0!==c?c:oC(a);return[s,l].join("")}function aC(e){if(!e||"object"!=typeof e)return;return oC(Object.values(e).filter(Boolean))}function sC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rC;const r=iC(e,t,n),o=isNaN(parseFloat(r));return o}function lC(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function cC(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function uC(e){const t=[];if(null==e||!e.length)return rC;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=rC.filter((t=>e.includes(t)));t.push(...n)}return t}function dC(e,t,n){const r={...e};return null!=n&&n.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):rC.forEach((e=>r[e]=t)),r}const fC=()=>{};function pC(e){let{onChange:t=fC,onFocus:n=fC,onHoverOn:r=fC,onHoverOff:o=fC,values:i,sides:l,selectedUnits:c,setSelectedUnits:u,...d}=e;const f=iC(i,c,l),p=lC(i)&&sC(i,c,l),m=p?tC.mixed:null;return(0,s.createElement)(QE,a({},d,{disableUnits:p,isOnly:!0,value:f,onChange:e=>{const n=!isNaN(parseFloat(e)),r=dC(i,n?e:void 0,l);t(r)},onUnitChange:e=>{const t=dC(c,e,l);u(t)},onFocus:e=>{n(e,{side:"all"})},onHoverOn:()=>{r({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{o({top:!1,bottom:!1,left:!1,right:!1})},placeholder:m}))}const mC=()=>{};function hC(e){let{onChange:t=mC,onFocus:n=mC,onHoverOn:r=mC,onHoverOff:o=mC,values:i,selectedUnits:l,setSelectedUnits:c,sides:u,...d}=e;const f=e=>t=>{n(t,{side:e})},p=e=>()=>{r({[e]:!0})},m=e=>()=>{o({[e]:!1})},h=e=>(n,r)=>{let{event:o}=r;const{altKey:a}=o,s={...i},l=!isNaN(parseFloat(n))?n:void 0;if(s[e]=l,a)switch(e){case"top":s.bottom=l;break;case"bottom":s.top=l;break;case"left":s.right=l;break;case"right":s.left=l}(e=>{t(e)})(s)},g=e=>t=>{const n={...l};n[e]=t,c(n)},v=null!=u&&u.length?rC.filter((e=>u.includes(e))):rC,b=v[0],y=v[v.length-1],w=b===y&&b;return(0,s.createElement)(UE,{className:"component-box-control__input-controls-wrapper"},(0,s.createElement)(GE,{gap:0,align:"top",className:"component-box-control__input-controls"},v.map((e=>{const[t,n]=cE(i[e]),r=i[e]?n:l[e];return(0,s.createElement)(QE,a({},d,{isFirst:b===e,isLast:y===e,isOnly:w===e,value:[t,r].join(""),onChange:h(e),onUnitChange:g(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:m(e),label:tC[e],key:`box-control-${e}`}))}))))}const gC=["vertical","horizontal"];function vC(e){let{onChange:t,onFocus:n,onHoverOn:r,onHoverOff:o,values:i,selectedUnits:l,setSelectedUnits:c,sides:u,...d}=e;const f=e=>t=>{n&&n(t,{side:e})},p=e=>()=>{r&&("vertical"===e&&r({top:!0,bottom:!0}),"horizontal"===e&&r({left:!0,right:!0}))},m=e=>()=>{o&&("vertical"===e&&o({top:!1,bottom:!1}),"horizontal"===e&&o({left:!1,right:!1}))},h=e=>n=>{if(!t)return;const r={...i},o=!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=o,r.bottom=o),"horizontal"===e&&(r.left=o,r.right=o),t(r)},g=e=>t=>{const n={...l};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),c(n)},v=null!=u&&u.length?gC.filter((e=>u.includes(e))):gC,b=v[0],y=v[v.length-1],w=b===y&&b;return(0,s.createElement)(GE,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},v.map((e=>{const[t,n]=cE("vertical"===e?i.top:i.left),r="vertical"===e?l.top:l.left;return(0,s.createElement)(QE,a({},d,{isFirst:b===e,isLast:y===e,isOnly:w===e,value:[t,null!=r?r:n].join(""),onChange:h(e),onUnitChange:g(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:m(e),label:tC[e],key:e}))})))}const bC=ed("span",{target:"eaw9yqk8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),yC=ed("span",{target:"eaw9yqk7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),wC=ed("span",{target:"eaw9yqk6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(e=>{let{isFocused:t}=e;return Gf({backgroundColor:"currentColor",opacity:t?1:.3},"","")}),";"),xC=ed(wC,{target:"eaw9yqk5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),_C=ed(wC,{target:"eaw9yqk4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),EC=ed(_C,{target:"eaw9yqk3"})({name:"abcix4",styles:"top:0"}),CC=ed(xC,{target:"eaw9yqk2"})({name:"1wf8jf",styles:"right:0"}),kC=ed(_C,{target:"eaw9yqk1"})({name:"8tapst",styles:"bottom:0"}),SC=ed(xC,{target:"eaw9yqk0"})({name:"1ode3cm",styles:"left:0"});function TC(e){let{size:t=24,side:n="all",sides:r,...o}=e;const i=e=>!(e=>(null==r?void 0:r.length)&&!r.includes(e))(e)&&("all"===n||n===e),l=i("top")||i("vertical"),c=i("right")||i("horizontal"),u=i("bottom")||i("vertical"),d=i("left")||i("horizontal"),f=t/24;return(0,s.createElement)(bC,a({style:{transform:`scale(${f})`}},o),(0,s.createElement)(yC,null,(0,s.createElement)(EC,{isFocused:l}),(0,s.createElement)(CC,{isFocused:c}),(0,s.createElement)(kC,{isFocused:u}),(0,s.createElement)(SC,{isFocused:d})))}function NC(e){let{isLinked:t,...n}=e;const r=t?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(Vf,{text:r},(0,s.createElement)(ad,a({},n,{className:"component-box-control__linked-button",isSmall:!0,icon:t?xb:_b,iconSize:24,"aria-label":r})))}const RC={min:0},IC=()=>{};function MC(e){let{id:t,inputProps:n=RC,onChange:r=IC,label:o=(0,u.__)("Box Control"),values:i,units:l,sides:c,splitOnAxis:f=!1,allowReset:p=!0,resetValues:m=nC,onMouseOver:h,onMouseOut:g}=e;const[v,b]=gy(i,{fallback:nC}),y=v||nC,w=lC(i),x=1===(null==c?void 0:c.length),[_,E]=(0,s.useState)(w),[C,k]=(0,s.useState)(!w||!sC(y)||x),[S,T]=(0,s.useState)(cC(C,f)),[N,R]=(0,s.useState)({top:cE(null==i?void 0:i.top)[1],right:cE(null==i?void 0:i.right)[1],bottom:cE(null==i?void 0:i.bottom)[1],left:cE(null==i?void 0:i.left)[1]}),I=function(e){const t=(0,d.useInstanceId)(MC,"inspector-box-control");return e||t}(t),M=`${I}-heading`,P={...n,onChange:e=>{r(e),b(e),E(!0)},onFocus:(e,t)=>{let{side:n}=t;T(n)},isLinked:C,units:l,selectedUnits:N,setSelectedUnits:R,sides:c,values:y,onMouseOver:h,onMouseOut:g};return(0,s.createElement)(HE,{id:I,role:"group","aria-labelledby":M},(0,s.createElement)(jE,{className:"component-box-control__header"},(0,s.createElement)(Um,null,(0,s.createElement)(Rv.VisualLabel,{id:M},o)),p&&(0,s.createElement)(Um,null,(0,s.createElement)(ad,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:()=>{r(m),b(m),R(m),E(!1)},disabled:!_},(0,u.__)("Reset")))),(0,s.createElement)($E,{className:"component-box-control__header-control-wrapper"},(0,s.createElement)(Um,null,(0,s.createElement)(TC,{side:S,sides:c})),C&&(0,s.createElement)(Wm,null,(0,s.createElement)(pC,a({"aria-label":o},P))),!C&&f&&(0,s.createElement)(Wm,null,(0,s.createElement)(vC,P)),!x&&(0,s.createElement)(Um,null,(0,s.createElement)(NC,{onClick:()=>{k(!C),T(cC(!C,f))},isLinked:C}))),!C&&!f&&(0,s.createElement)(hC,P))}var PC=(0,s.forwardRef)((function(e,t){const{className:n,...r}=e,o=c()("components-button-group",n);return(0,s.createElement)("div",a({ref:t,role:"group",className:o},r))}));const OC={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function DC(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const AC=$u((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:a=!1,offset:l=0,value:c=0,...u}=ju(e,"Elevation"),d=Hu();return{...u,className:(0,s.useMemo)((()=>{let e=th(i)?i:2*c,s=th(t)?t:c/2;a||(e=th(i)?i:void 0,s=th(t)?t:void 0);const u=`box-shadow ${gh.transitionDuration} ${gh.transitionTimingFunction}`,f={};return f.Base=Gf({borderRadius:n,bottom:l,boxShadow:DC(c),opacity:gh.elevationIntensity,left:l,right:l,top:l,transition:u},Rp("transition"),"",""),th(e)&&(f.hover=Gf("*:hover>&{box-shadow:",DC(e),";}","")),th(s)&&(f.active=Gf("*:active>&{box-shadow:",DC(s),";}","")),th(o)&&(f.focus=Gf("*:focus>&{box-shadow:",DC(o),";}","")),d(OC,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,a,l,c]),"aria-hidden":!0}}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"Elevation");var LC=AC;const zC=`calc(${gh.cardBorderRadius} - 1px)`,BC=Gf("box-shadow:0 0 0 1px ",gh.surfaceBorderColor,";outline:none;",""),FC={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},VC={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},HC={name:"13udsys",styles:"height:100%"},jC={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},$C={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},WC={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},UC=Gf("&:first-of-type{border-top-left-radius:",zC,";border-top-right-radius:",zC,";}&:last-of-type{border-bottom-left-radius:",zC,";border-bottom-right-radius:",zC,";}",""),GC=Gf("border-color:",gh.colorDivider,";",""),YC={name:"1t90u8d",styles:"box-shadow:none"},qC={name:"1e1ncky",styles:"border:none"},KC=Gf("border-radius:",zC,";",""),XC=Gf("padding:",gh.cardPaddingXSmall,";",""),ZC={large:Gf("padding:",gh.cardPaddingLarge,";",""),medium:Gf("padding:",gh.cardPaddingMedium,";",""),small:Gf("padding:",gh.cardPaddingSmall,";",""),xSmall:XC,extraSmall:XC},JC=Gf("background-color:",Np.ui.backgroundDisabled,";",""),QC=Gf("background-color:",gh.surfaceColor,";color:",Np.gray[900],";position:relative;","");gh.surfaceBackgroundColor;function ek(e){let{borderBottom:t,borderLeft:n,borderRight:r,borderTop:o}=e;const i=`1px solid ${gh.surfaceBorderColor}`;return Gf({borderBottom:t?i:void 0,borderLeft:n?i:void 0,borderRight:r?i:void 0,borderTop:o?i:void 0},"","")}const tk=Gf("",""),nk=Gf("background:",gh.surfaceBackgroundTintColor,";",""),rk=Gf("background:",gh.surfaceBackgroundTertiaryColor,";",""),ok=e=>[e,e].join(" "),ik=e=>["90deg",[gh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),ak=e=>[[gh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),sk=(e,t)=>Gf("background:",(e=>[`linear-gradient( ${ik(e)} ) center`,`linear-gradient( ${ak(e)} ) center`,gh.surfaceBorderBoldColor].join(","))(t),";background-size:",ok(e),";",""),lk=[`linear-gradient( ${[`${gh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${gh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),ck=(e,t,n)=>{switch(e){case"dotted":return sk(t,n);case"grid":return(e=>Gf("background:",gh.surfaceBackgroundColor,";background-image:",lk,";background-size:",ok(e),";",""))(t);case"primary":return tk;case"secondary":return nk;case"tertiary":return rk}};function uk(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:a,variant:l="primary",...c}=ju(e,"Surface"),u=Hu();return{...c,className:(0,s.useMemo)((()=>{const e={borders:ek({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(QC,e.borders,ck(l,`${t}px`,t-1+"px"),a)}),[t,n,r,o,i,a,u,l])}}function dk(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...a}=ju(function(e){let{elevation:t,isElevated:n,...r}=e;const o={...r};let i=t;var a;return n&&(Jl()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(a=i)&&void 0!==a||(i=2)),void 0!==i&&(o.elevation=i),o}(e),"Card"),l=Hu();return{...uk({...a,className:(0,s.useMemo)((()=>l(BC,r&&YC,o&&KC,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const fk=$u((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:l,...c}=dk(e),u=i?gh.cardBorderRadius:0,d=Hu(),f=(0,s.useMemo)((()=>d(Gf({borderRadius:u},"",""))),[d,u]),p=(0,s.useMemo)((()=>{const e={size:l,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,l]);return(0,s.createElement)(sc,{value:p},(0,s.createElement)(nd,a({},c,{ref:t}),(0,s.createElement)(nd,{className:d(HC)},n),(0,s.createElement)(LC,{className:f,isInteractive:!1,value:r?1:0}),(0,s.createElement)(LC,{className:f,isInteractive:!1,value:r})))}),"Card");var pk=fk;const mk=Gf("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",gh.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",gh.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",gh.colorScrollbarThumbHover,";}}",""),hk={name:"13udsys",styles:"height:100%"},gk={name:"7zq9w",styles:"scroll-behavior:smooth"},vk={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},bk={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},yk={name:"umwchj",styles:"overflow-y:auto"};var wk=$u((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=ju(e,"Scrollable"),i=Hu();return{...o,className:(0,s.useMemo)((()=>i(hk,mk,r&&gk,"x"===n&&vk,"y"===n&&bk,"auto"===n&&yk,t)),[t,i,n,r])}}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"Scrollable");const xk=$u((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=ju(e,"CardBody"),a=Hu();return{...i,className:(0,s.useMemo)((()=>a(jC,UC,ZC[o],r&&JC,"components-card__body",t)),[t,a,r,o]),isScrollable:n}}(e);return n?(0,s.createElement)(wk,a({},r,{ref:t})):(0,s.createElement)(nd,a({},r,{ref:t}))}),"CardBody");var _k=xk,Ek=F({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return m({orientation:void 0===t?"horizontal":t},h(e,["orientation"]))},useProps:function(e,t){return m({role:"separator","aria-orientation":e.orientation},t)}}),Ck=z({as:"hr",memo:!0,useHook:Ek});const kk={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var Sk={name:"1u4hpl4",styles:"display:inline"};const Tk=ed("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?Sk:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return Gf({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return Gf({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:n,marginStart:r,marginEnd:o}=e;return Gf(Vh({[kk[t].start]:Zm(null!=r?r:n),[kk[t].end]:Zm(null!=o?o:n)})(),"","")}),";");var Nk=$u((function(e,t){const n=ju(e,"Divider");return(0,s.createElement)(Ck,a({as:Tk},n,{ref:t}))}),"Divider");var Rk=$u((function(e,t){const n=function(e){const{className:t,...n}=ju(e,"CardDivider"),r=Hu();return{...n,className:(0,s.useMemo)((()=>r(WC,GC,"components-card__divider",t)),[t,r])}}(e);return(0,s.createElement)(Nk,a({},n,{ref:t}))}),"CardDivider");const Ik=$u((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...a}=ju(e,"CardFooter"),l=Hu();return{...a,className:(0,s.useMemo)((()=>l(VC,UC,GC,ZC[i],r&&qC,o&&JC,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,s.createElement)(Qm,a({},n,{ref:t}))}),"CardFooter");var Mk=Ik;const Pk=$u((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=ju(e,"CardHeader"),a=Hu();return{...i,className:(0,s.useMemo)((()=>a(FC,UC,GC,ZC[o],n&&qC,r&&JC,"components-card__header",t)),[t,a,n,r,o])}}(e);return(0,s.createElement)(Qm,a({},n,{ref:t}))}),"CardHeader");var Ok=Pk;var Dk=$u((function(e,t){const n=function(e){const{className:t,...n}=ju(e,"CardMedia"),r=Hu();return{...n,className:(0,s.useMemo)((()=>r($C,UC,"components-card__media",t)),[t,r])}}(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"CardMedia");var Ak=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:l,indeterminate:u,help:f,onChange:p,...m}=t;i&&Jl()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,s.useState)(!1),[v,b]=(0,s.useState)(!1),y=(0,d.useRefEffect)((e=>{e&&(e.indeterminate=!!u,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[l,u]),w=`inspector-checkbox-control-${(0,d.useInstanceId)(e)}`;return(0,s.createElement)(Iv,{__nextHasNoMarginBottom:n,label:i,id:w,help:f,className:c()("components-checkbox-control",o)},(0,s.createElement)("span",{className:"components-checkbox-control__input-container"},(0,s.createElement)("input",a({ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:l,"aria-describedby":f?w+"__help":void 0},m)),v?(0,s.createElement)(cy,{icon:Ym,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,s.createElement)(cy,{icon:j_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};function Lk(e){let{className:t,children:n,onCopy:r,onFinishCopy:o,text:i,...l}=e;Jl()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const u=(0,s.useRef)(),f=(0,d.useCopyToClipboard)(i,(()=>{r(),clearTimeout(u.current),o&&(u.current=setTimeout((()=>o()),4e3))}));(0,s.useEffect)((()=>{clearTimeout(u.current)}),[]);const p=c()("components-clipboard-button",t);return(0,s.createElement)(ad,a({},l,{className:p,ref:f,onCopy:e=>{e.target.focus()}}),n)}var zk=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const Bk=Gf("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;&:hover{color:",Np.ui.theme,";}&:focus{background-color:transparent;color:",Np.ui.theme,";border-color:",Np.ui.theme,";outline:3px solid transparent;}",""),Fk={name:"1bcj5ek",styles:"width:100%;display:block"},Vk={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},Hk=Gf("border:1px solid ",gh.surfaceBorderColor,";",""),jk=Gf(">*:not( marquee )>*{border-bottom:1px solid ",gh.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),$k=gh.controlBorderRadius,Wk=Gf("border-radius:",$k,";",""),Uk=Gf("border-radius:",$k,";>*:first-of-type>*{border-top-left-radius:",$k,";border-top-right-radius:",$k,";}>*:last-of-type>*{border-bottom-left-radius:",$k,";border-bottom-right-radius:",$k,";}",""),Gk=`calc(${gh.fontSize} * ${gh.fontLineHeightBase})`,Yk=`calc((${gh.controlHeight} - ${Gk} - 2px) / 2)`,qk=`calc((${gh.controlHeightSmall} - ${Gk} - 2px) / 2)`,Kk=`calc((${gh.controlHeightLarge} - ${Gk} - 2px) / 2)`,Xk={small:Gf("padding:",qk," ",gh.controlPaddingXSmall,";",""),medium:Gf("padding:",Yk," ",gh.controlPaddingX,";",""),large:Gf("padding:",Kk," ",gh.controlPaddingXLarge,";","")};const Zk=(0,s.createContext)({size:"medium"}),Jk=()=>(0,s.useContext)(Zk);var Qk=$u((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",...a}=ju(e,"ItemGroup");return{isBordered:n,className:Hu()(n&&Hk,o&&jk,r&&Uk,t),role:i,isSeparated:o,...a}}(e),{size:l}=Jk(),c={spacedAround:!n&&!r,size:o||l};return(0,s.createElement)(Zk.Provider,{value:c},(0,s.createElement)(nd,a({},i,{ref:t})))}),"ItemGroup");function eS(e){return Math.max(0,Math.min(100,e))}function tS(e,t,n){const r=e.slice();return r[t]=n,r}function nS(e,t,n){if(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some(((e,o)=>{let{position:s}=e;return o!==t&&(Math.abs(s-n)<r||i<s&&s<a)}))}(e,t,n))return e;return tS(e,t,{...e[t],position:n})}function rS(e,t,n){return tS(e,t,{...e[t],color:n})}function oS(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(eS(100*o/r))}function iS(e){let{isOpen:t,position:n,color:r,...o}=e;const i=`components-custom-gradient-picker__control-point-button-description-${(0,d.useInstanceId)(iS)}`;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(ad,a({"aria-label":(0,u.sprintf)((0,u.__)("Gradient control point at position %1$s%% with color code %2$s."),n,r),"aria-describedby":i,"aria-haspopup":"true","aria-expanded":t,className:c()("components-custom-gradient-picker__control-point-button",{"is-active":t})},o)),(0,s.createElement)(rd,{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 aS(e){let{isRenderedInSidebar:t,className:n,...r}=e;const o=(0,s.useMemo)((()=>({placement:"bottom",offset:8})),[]),i=c()("components-custom-gradient-picker__control-point-dropdown",n);return(0,s.createElement)(Q_,a({isRenderedInSidebar:t,popoverProps:o,className:i},r))}function sS(e){let{disableRemove:t,disableAlpha:n,gradientPickerDomRef:r,ignoreMarkerPosition:o,value:i,onChange:a,onStartControlPointChange:l,onStopControlPointChange:c,__experimentalIsRenderedInSidebar:d}=e;const f=(0,s.useRef)(),p=e=>{const t=oS(e.clientX,r.current),{initialPosition:n,index:o,significantMoveHappened:s}=f.current;!s&&Math.abs(n-t)>=5&&(f.current.significantMoveHappened=!0),a(nS(i,o,t))},m=()=>{window&&window.removeEventListener&&f.current&&f.current.listenersActivated&&(window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",m),c(),f.current.listenersActivated=!1)},h=(0,s.useRef)();return h.current=m,(0,s.useEffect)((()=>()=>{h.current()}),[]),i.map(((e,r)=>{const h=null==e?void 0:e.position;return o!==h&&(0,s.createElement)(aS,{isRenderedInSidebar:d,key:r,onClose:c,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return(0,s.createElement)(iS,{key:r,onClick:()=>{f.current&&f.current.significantMoveHappened||(n?c():l(),o())},onMouseDown:()=>{window&&window.addEventListener&&(f.current={initialPosition:h,index:r,significantMoveHappened:!1,listenersActivated:!0},l(),window.addEventListener("mousemove",p),window.addEventListener("mouseup",m))},onKeyDown:t=>{"ArrowLeft"===t.code?(t.stopPropagation(),a(nS(i,r,eS(e.position-10)))):"ArrowRight"===t.code&&(t.stopPropagation(),a(nS(i,r,eS(e.position+10))))},isOpen:n,position:e.position,color:e.color})},renderContent:o=>{let{onClose:l}=o;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(H_,{enableAlpha:!n,color:e.color,onChange:e=>{a(rS(i,r,yp(e).toRgbString()))}}),!t&&i.length>2&&(0,s.createElement)(qv,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,s.createElement)(ad,{onClick:()=>{a(function(e,t){return e.filter(((e,n)=>n!==t))}(i,r)),l()},variant:"link"},(0,u.__)("Remove Control Point"))))},style:{left:`${e.position}%`,transform:"translateX( -50% )"}})}))}sS.InsertPoint=function(e){let{value:t,onChange:n,onOpenInserter:r,onCloseInserter:o,insertPosition:i,disableAlpha:a,__experimentalIsRenderedInSidebar:l}=e;const[c,u]=(0,s.useState)(!1);return(0,s.createElement)(aS,{isRenderedInSidebar:l,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(ad,{"aria-expanded":t,"aria-haspopup":"true",onClick:()=>{t?o():(u(!1),r()),n()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:Gm})},renderContent:()=>(0,s.createElement)(H_,{enableAlpha:!a,onChange:e=>{c?n(function(e,t,n){const r=e.findIndex((e=>e.position===t));return rS(e,r,n)}(t,i,yp(e).toRgbString())):(n(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}(t,i,yp(e).toRgbString())),u(!0))}}),style:null!==i?{left:`${i}%`,transform:"translateX( -50% )"}:void 0})};var lS=sS;function cS(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}const uS={id:"IDLE"};function dS(e){let{background:t,hasGradient:n,value:r,onChange:o,disableInserter:i=!1,disableAlpha:a=!1,__experimentalIsRenderedInSidebar:l}=e;const u=(0,s.useRef)(),[d,f]=(0,s.useReducer)(cS,uS),p=e=>{const t=oS(e.clientX,u.current);r.some((e=>{let{position:n}=e;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===d.id&&f({type:"STOP_INSERTER_MOVE"}):f({type:"MOVE_INSERTER",insertPosition:t})},m="MOVING_INSERTER"===d.id,h="INSERTING_CONTROL_POINT"===d.id;return(0,s.createElement)("div",{className:c()("components-custom-gradient-picker__gradient-bar",{"has-gradient":n}),onMouseEnter:p,onMouseMove:p,style:{background:t},onMouseLeave:()=>{f({type:"STOP_INSERTER_MOVE"})}},(0,s.createElement)("div",{ref:u,className:"components-custom-gradient-picker__markers-container"},!i&&(m||h)&&(0,s.createElement)(lS.InsertPoint,{__experimentalIsRenderedInSidebar:l,disableAlpha:a,insertPosition:d.insertPosition,value:r,onChange:o,onOpenInserter:()=>{f({type:"OPEN_INSERTER"})},onCloseInserter:()=>{f({type:"CLOSE_INSERTER"})}}),(0,s.createElement)(lS,{__experimentalIsRenderedInSidebar:l,disableAlpha:a,disableRemove:i,gradientPickerDomRef:u,ignoreMarkerPosition:h?d.insertPosition:void 0,value:r,onChange:o,onStartControlPointChange:()=>{f({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{f({type:"STOP_CONTROL_CHANGE"})}})))}var fS=n(7115);const pS="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",mS={type:"angular",value:90},hS=[{value:"linear-gradient",label:(0,u.__)("Linear")},{value:"radial-gradient",label:(0,u.__)("Radial")}],gS={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 vS(e){let{type:t,value:n,length:r}=e;return`${function(e){let{type:t,value:n}=e;return"literal"===t?n:"hex"===t?`#${n}`:`${t}(${n.join(",")})`}({type:t,value:n})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(r)}`}function bS(e){let{type:t,orientation:n,colorStops:r}=e;const o=function(e){if(e&&"angular"===e.type)return`${e.value}deg`}(n);return`${t}(${[o,...r.sort(((e,t)=>{var n,r,o,i;return(null!==(n=null==e||null===(r=e.length)||void 0===r?void 0:r.value)&&void 0!==n?n:0)-(null!==(o=null==t||null===(i=t.length)||void 0===i?void 0:i.value)&&void 0!==o?o:0)})).map(vS)].filter(Boolean).join(",")})`}function yS(e){return void 0===e.length||"%"!==e.length.type}function wS(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"}}xp([_p]);const xS=ed(Wm,{target:"e99xvul1"})({name:"1gvx10y",styles:"flex-grow:5"}),_S=ed(Wm,{target:"e99xvul0"})({name:"1gvx10y",styles:"flex-grow:5"}),ES=e=>{var t,n;let{gradientAST:r,hasGradient:o,onChange:i}=e;const a=null!==(t=null==r||null===(n=r.orientation)||void 0===n?void 0:n.value)&&void 0!==t?t:180;return(0,s.createElement)(sb,{__nextHasNoMarginBottom:!0,onChange:e=>{i(bS({...r,orientation:{type:"angular",value:e}}))},labelPosition:"top",value:o?a:""})},CS=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const{type:o}=t;return(0,s.createElement)(my,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,u.__)("Type"),labelPosition:"top",onChange:e=>{"linear-gradient"===e&&r(bS({...t,...t.orientation?{}:{orientation:mS},type:"linear-gradient"})),"radial-gradient"===e&&(()=>{const{orientation:e,...n}=t;r(bS({...n,type:"radial-gradient"}))})()},options:hS,size:"__unstable-large",value:n&&o})};function kS(e){let{__nextHasNoMargin:t=!1,value:n,onChange:r,__experimentalIsRenderedInSidebar:o}=e;const i=function(e){var t;let n;try{n=fS.parse(e)[0],n.value=e}catch(e){n=fS.parse(pS)[0],n.value=pS}if("directional"===(null===(t=n.orientation)||void 0===t?void 0:t.type)&&(n.orientation.type="angular",n.orientation.value=gS[n.orientation.value].toString()),n.colorStops.some(yS)){const{colorStops:e}=n,t=100/(e.length-1);e.forEach(((e,n)=>{e.length={value:t*n,type:"%"}})),n.value=bS(n)}return n}(n),a=function(e){return bS({type:"linear-gradient",orientation:mS,colorStops:e.colorStops})}(i),l=i.value!==pS,u=i.colorStops.map((e=>({color:wS(e),position:parseInt(e.length.value)})));return t||Jl()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,s.createElement)(W_,{spacing:4,className:c()("components-custom-gradient-picker",{"is-next-has-no-margin":t})},(0,s.createElement)(dS,{__experimentalIsRenderedInSidebar:o,background:a,hasGradient:l,value:u,onChange:e=>{r(bS(function(e,t){return{...e,colorStops:t.map((e=>{let{position:t,color:n}=e;const{r:r,g:o,b:i,a:a}=yp(n).toRgb();return{length:{type:"%",value:null==t?void 0:t.toString()},type:a<1?"rgba":"rgb",value:a<1?[r,o,i,a]:[r,o,i]}}))}}(i,e)))}}),(0,s.createElement)(Qm,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,s.createElement)(xS,null,(0,s.createElement)(CS,{gradientAST:i,hasGradient:l,onChange:r})),(0,s.createElement)(_S,null,"linear-gradient"===i.type&&(0,s.createElement)(ES,{gradientAST:i,hasGradient:l,onChange:r}))))}const SS=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function TS(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:i,actions:a}=e;const l=(0,s.useMemo)((()=>r.map(((e,t)=>{let{gradient:r,name:a}=e;return(0,s.createElement)($_.Option,{key:r,value:r,isSelected:i===r,tooltipText:a||(0,u.sprintf)((0,u.__)("Gradient code: %s"),r),style:{color:"rgba( 0,0,0,0 )",background:r},onClick:i===r?n:()=>o(r,t),"aria-label":a?(0,u.sprintf)((0,u.__)("Gradient: %s"),a):(0,u.sprintf)((0,u.__)("Gradient code: %s"),r)})}))),[r,i,o,n]);return(0,s.createElement)($_,{className:t,options:l,actions:a})}function NS(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:i,actions:l}=e;return(0,s.createElement)(W_,{spacing:3,className:t},r.map(((e,t)=>{let{name:c,gradients:u}=e;return(0,s.createElement)(W_,{spacing:2,key:t},(0,s.createElement)(Y_,null,c),(0,s.createElement)(TS,a({clearGradient:n,gradients:u,onChange:e=>o(e,t),value:i},r.length===t+1?{actions:l}:{})))})))}function RS(e){let{__nextHasNoMargin:t=!1,className:n,gradients:r,onChange:o,value:i,clearable:l=!0,disableCustomGradients:c=!1,__experimentalIsRenderedInSidebar:d}=e;const f=(0,s.useCallback)((()=>o(void 0)),[o]),p=SS(r)?NS:TS;t||Jl()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const m=t?{}:{marginTop:null!=r&&r.length?void 0:3,marginBottom:l?0:6};return(0,s.createElement)(Zv,a({marginBottom:0},m),(0,s.createElement)(W_,{spacing:null!=r&&r.length?4:0},!c&&(0,s.createElement)(kS,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:d,value:i,onChange:o}),((null==r?void 0:r.length)||l)&&(0,s.createElement)(p,{className:n,clearable:l,clearGradient:f,gradients:r,onChange:o,value:i,actions:l&&!c&&(0,s.createElement)($_.ButtonAction,{onClick:f},(0,u.__)("Clear"))})))}var IS=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),MS=window.wp.dom;const PS=()=>{},OS=["menuitem","menuitemradio","menuitemcheckbox"];class DS extends s.Component{constructor(){super(...arguments),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.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?MS.focus.tabbable:MS.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=PS,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target.getAttribute("role"),n=OS.includes(t),r="Tab"===e.code;(n||r)&&e.preventDefault()}if(!a)return;const s=t(e.target.ownerDocument.activeElement);if(!s)return;const{index:l,focusables:c}=s,u=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(l,c.length,a):l+a;u>=0&&u<c.length&&(c[u].focus(),o(u,c[u]))}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:l,forwardedRef:c,...u}=this.props;return(0,s.createElement)("div",a({ref:this.bindContainer},u),e)}}const AS=(e,t)=>(0,s.createElement)(DS,a({},e,{forwardedRef:t}));AS.displayName="NavigableContainer";var LS=(0,s.forwardRef)(AS);var zS=(0,s.forwardRef)((function(e,t){let{role:n="menu",orientation:r="vertical",...o}=e;return(0,s.createElement)(LS,a({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:r,eventToOffset:e=>{const{code:t}=e;let n=["ArrowDown"],o=["ArrowUp"];return"horizontal"===r&&(n=["ArrowRight"],o=["ArrowLeft"]),"both"===r&&(n=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),n.includes(t)?1:o.includes(t)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(t)?0:void 0}},o))}));function BS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,...t};return t.className&&e.className&&(n.className=c()(t.className,e.className)),n}function FS(e){return"function"==typeof e}var VS=function(e){const{children:t,className:n,controls:r,icon:o=IS,label:i,popoverProps:l,toggleProps:u,menuProps:d,disableOpenOnArrowDown:f=!1,text:p,noIcons:m}=e;if(!(null!=r&&r.length||FS(t)))return null;let h;null!=r&&r.length&&(h=r,Array.isArray(h[0])||(h=[h]));const g=BS({className:"components-dropdown-menu__popover"},l);return(0,s.createElement)(oy,{className:c()("components-dropdown-menu",n),popoverProps:g,renderToggle:e=>{var t;let{isOpen:n,onToggle:r}=e;const{as:l=ad,...d}=null!=u?u:{},m=BS({className:c()("components-dropdown-menu__toggle",{"is-opened":n})},d);return(0,s.createElement)(l,a({},m,{icon:o,onClick:e=>{r(e),m.onClick&&m.onClick(e)},onKeyDown:e=>{(e=>{f||n||"ArrowDown"!==e.code||(e.preventDefault(),r())})(e),m.onKeyDown&&m.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:i,text:p,showTooltip:null===(t=null==u?void 0:u.showTooltip)||void 0===t||t}),m.children)},renderContent:e=>{var n;const r=BS({"aria-label":i,className:c()("components-dropdown-menu__menu",{"no-icons":m})},d);return(0,s.createElement)(zS,a({},r,{role:"menu"}),FS(t)?t(e):null,null===(n=h)||void 0===n?void 0:n.flatMap(((t,n)=>t.map(((t,r)=>(0,s.createElement)(ad,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:c()("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},t.title))))))}})};const HS=ed($_.Option,{target:"e5bw3229"})("width:",Zm(6),";height:",Zm(6),";pointer-events:none;"),jS=ed(Ov,{target:"e5bw3228"})(Uh,"{background:",Np.gray[100],";border-radius:",gh.controlBorderRadius,";",Yh,Yh,Yh,Yh,"{height:",Zm(8),";}",Zh,Zh,Zh,"{border-color:transparent;box-shadow:none;}}"),$S=ed(nd,{target:"e5bw3227"})("padding:3px 0 3px ",Zm(3),";height:calc( 40px - ",gh.borderWidth," );border:1px solid ",gh.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",gh.controlBorderRadius,";border-top-right-radius:",gh.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",gh.controlBorderRadius,";border-bottom-right-radius:",gh.controlBorderRadius,";border-bottom-color:",gh.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Np.ui.theme,";}"),WS=ed("div",{target:"e5bw3226"})("line-height:",Zm(8),";margin-left:",Zm(2),";margin-right:",Zm(2),";white-space:nowrap;overflow:hidden;",$S,":hover &{color:",Np.ui.theme,";}"),US=ed(G_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",Zm(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),GS=ed(nd,{target:"e5bw3224"})("height:",Zm(6),";display:flex;"),YS=ed(qv,{target:"e5bw3223"})("margin-bottom:",Zm(2),";"),qS=ed(nd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),KS=ed(ad,{target:"e5bw3221"})("&&{color:",Np.ui.theme,";}"),XS=ed(ad,{target:"e5bw3220"})("&&{margin-top:",Zm(1),";}"),ZS="#000";function JS(e){let{value:t,onChange:n,label:r}=e;return(0,s.createElement)(jS,{label:r,hideLabelFromVision:!0,value:t,onChange:n})}function QS(e){let{isGradient:t,element:n,onChange:r,onClose:o=(()=>{})}=e;return(0,s.createElement)(Of,{placement:"left-start",offset:20,className:"components-palette-edit__popover",onClose:o},!t&&(0,s.createElement)(H_,{color:n.color,enableAlpha:!0,onChange:e=>r({...n,color:e})}),t&&(0,s.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,s.createElement)(kS,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:n.gradient,onChange:e=>r({...n,gradient:e})})))}function eT(e){let{canOnlyChangeValues:t,element:n,onChange:r,isEditing:o,onStartEditing:i,onRemove:l,onStopEditing:c,slugPrefix:f,isGradient:p}=e;const m=(0,d.__experimentalUseFocusOutside)(c),h=p?n.gradient:n.color;return(0,s.createElement)($S,a({className:o?"is-selected":void 0,as:"div",onClick:i},o?{...m}:{style:{cursor:"pointer"}}),(0,s.createElement)(qv,{justify:"flex-start"},(0,s.createElement)(Um,null,(0,s.createElement)(HS,{style:{background:h,color:"transparent"}})),(0,s.createElement)(Um,null,o&&!t?(0,s.createElement)(JS,{label:p?(0,u.__)("Gradient name"):(0,u.__)("Color name"),value:n.name,onChange:e=>r({...n,name:e,slug:f+(0,rc.kebabCase)(e)})}):(0,s.createElement)(WS,null,n.name)),o&&!t&&(0,s.createElement)(Um,null,(0,s.createElement)(XS,{isSmall:!0,icon:Pb,label:(0,u.__)("Remove color"),onClick:l}))),o&&(0,s.createElement)(QS,{isGradient:p,onChange:r,element:n}))}function tT(e,t){let{slug:n,color:r,gradient:o}=t;return new RegExp(`^${e}color-([\\d]+)$`).test(n)&&(!!r&&r===ZS||!!o&&o===pS)}function nT(e){let{elements:t,onChange:n,editingElement:r,setEditingElement:o,canOnlyChangeValues:i,slugPrefix:a,isGradient:l}=e;const c=(0,s.useRef)();(0,s.useEffect)((()=>{c.current=t}),[t]),(0,s.useEffect)((()=>()=>{if(c.current.some(((e,t)=>tT(a,e)))){const e=c.current.filter((e=>!tT(a,e)));n(e.length?e:void 0)}}),[]);const u=(0,d.useDebounce)(n,100);return(0,s.createElement)(W_,{spacing:3},(0,s.createElement)(Qk,{isRounded:!0},t.map(((e,c)=>(0,s.createElement)(eT,{isGradient:l,canOnlyChangeValues:i,key:c,element:e,onStartEditing:()=>{r!==c&&o(c)},onChange:e=>{u(t.map(((t,n)=>n===c?e:t)))},onRemove:()=>{o(null);const e=t.filter(((e,t)=>t!==c));n(e.length?e:void 0)},isEditing:c===r,onStopEditing:()=>{c===r&&o(null)},slugPrefix:a})))))}const rT=[];function oT(e){let{gradients:t,colors:n=rT,onChange:r,paletteLabel:o,emptyMessage:i,canOnlyChangeValues:a,canReset:l,slugPrefix:c=""}=e;const f=!!t,p=f?t:n,[m,h]=(0,s.useState)(!1),[g,v]=(0,s.useState)(null),b=m&&g&&p[g]&&!p[g].slug,y=p.length>0,w=(0,d.useDebounce)(r,100),x=(0,s.useCallback)(((e,t)=>{const n=p[t];n&&n[f?"gradient":"color"]===e?v(t):h(!0)}),[f,p]);return(0,s.createElement)(qS,null,(0,s.createElement)(YS,null,(0,s.createElement)(US,null,o),(0,s.createElement)(GS,null,y&&m&&(0,s.createElement)(KS,{isSmall:!0,onClick:()=>{h(!1),v(null)}},(0,u.__)("Done")),!a&&(0,s.createElement)(ad,{isSmall:!0,isPressed:b,icon:Gm,label:f?(0,u.__)("Add gradient"):(0,u.__)("Add color"),onClick:()=>{const e=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof(null==t?void 0:t.slug)){const r=null==t?void 0: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);r([...p,{...f?{gradient:pS}:{color:ZS},name:e,slug:c+(0,rc.kebabCase)(e)}]),h(!0),v(p.length)}}),y&&(!m||!a||l)&&(0,s.createElement)(VS,{icon:zk,label:f?(0,u.__)("Gradient options"):(0,u.__)("Color options"),toggleProps:{isSmall:!0}},(e=>{let{onClose:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(zS,{role:"menu"},!m&&(0,s.createElement)(ad,{variant:"tertiary",onClick:()=>{h(!0),t()},className:"components-palette-edit__menu-button"},(0,u.__)("Show details")),!a&&(0,s.createElement)(ad,{variant:"tertiary",onClick:()=>{v(null),h(!1),r(),t()},className:"components-palette-edit__menu-button"},f?(0,u.__)("Remove all gradients"):(0,u.__)("Remove all colors")),l&&(0,s.createElement)(ad,{variant:"tertiary",onClick:()=>{v(null),r(),t()}},f?(0,u.__)("Reset gradient"):(0,u.__)("Reset colors"))))})))),y&&(0,s.createElement)(s.Fragment,null,m&&(0,s.createElement)(nT,{canOnlyChangeValues:a,elements:p,onChange:r,editingElement:g,setEditingElement:v,slugPrefix:c,isGradient:f}),!m&&null!==g&&(0,s.createElement)(QS,{isGradient:f,onClose:()=>v(null),onChange:e=>{w(p.map(((t,n)=>n===g?e:t)))},element:p[g]}),!m&&(f?(0,s.createElement)(RS,{__nextHasNoMargin:!0,gradients:t,onChange:x,clearable:!1,disableCustomGradients:!0}):(0,s.createElement)(tE,{colors:n,onChange:x,clearable:!1,disableCustomColors:!0}))),!y&&i)}const iT=e=>{let{__next36pxDefaultSize:t}=e;return!t&&Gf("height:28px;padding-left:",Zm(1),";padding-right:",Zm(1),";","")},aT=ed(Qm,{target:"evuatpg0"})("height:34px;padding-left:",Zm(2),";padding-right:",Zm(2),";",iT,";");const sT=(0,s.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:l,onChange:u,onFocus:d,onBlur:f,...p}=e,[m,h]=(0,s.useState)(!1),g=n?n.length+1:0;return(0,s.createElement)("input",a({ref:t,id:`components-form-token-input-${o}`,type:"text"},p,{value:n||"",onChange:e=>{u&&u({value:e.target.value})},onFocus:e=>{h(!0),null==d||d(e)},onBlur:e=>{h(!1),null==f||f(e)},size:g,className:c()(l,"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":m&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`}))}));var lT=sT,cT=n(5425),uT=n.n(cT);const dT=e=>{e.preventDefault()};var fT=function(e){let{selectedIndex:t,scrollIntoView:n,match:r,onHover:o,onSelect:i,suggestions:a=[],displayTransform:l,instanceId:u,__experimentalRenderItem:f}=e;const[p,m]=(0,s.useState)(!1),h=(0,d.useRefEffect)((e=>{let r;return t>-1&&n&&e.children[t]&&(m(!0),uT()(e.children[t],e,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{m(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[t,n]),g=e=>()=>{p||null==o||o(e)},v=e=>()=>{null==i||i(e)};return(0,s.createElement)("ul",{ref:h,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${u}`,role:"listbox"},a.map(((e,n)=>{const o=(e=>{const t=l(r).toLocaleLowerCase();if(0===t.length)return null;const n=l(e),o=n.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:n.substring(0,o),suggestionMatch:n.substring(o,o+t.length),suggestionAfterMatch:n.substring(o+t.length)}})(e),i=c()("components-form-token-field__suggestion",{"is-selected":n===t});let a;return a="function"==typeof f?f({item:e}):o?(0,s.createElement)("span",{"aria-label":l(e)},o.suggestionBeforeMatch,(0,s.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):l(e),(0,s.createElement)("li",{id:`components-form-token-suggestions-${u}-${n}`,role:"option",className:i,key:"object"==typeof e&&"value"in e?null==e?void 0:e.value:l(e),onMouseDown:dT,onClick:v(e),onMouseEnter:g(e),"aria-selected":n===t},a)})))},pT=(0,d.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,s.useState)(),o=(0,s.useCallback)((e=>r((()=>null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,s.createElement)("div",(0,d.__experimentalUseFocusOutside)(n),(0,s.createElement)(e,a({ref:o},t)))}),"withFocusOutside");const mT=()=>{},hT=pT(class extends s.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}});var gT=function e(t){var n;let{__nextHasNoMarginBottom:r=!1,__next36pxDefaultSize:o,value:i,label:a,options:l,onChange:f,onFilterValueChange:p=mT,hideLabelFromVision:m,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,u.__)("Item selected.")},__experimentalRenderItem:y}=t;const[w,x]=A_({value:i,onChange:f}),_=l.find((e=>e.value===w)),E=null!==(n=null==_?void 0:_.label)&&void 0!==n?n:"",C=(0,d.useInstanceId)(e,"combobox-control"),[k,S]=(0,s.useState)(_||null),[T,N]=(0,s.useState)(!1),[R,I]=(0,s.useState)(!1),[M,P]=(0,s.useState)(""),O=(0,s.useRef)(),D=(0,s.useMemo)((()=>{const e=[],t=[],n=pb(M);return l.forEach((r=>{const o=pb(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,l]),A=e=>{x(e.value),(0,db.speak)(b.selected,"assertive"),S(e),P(""),N(!1)},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=D.indexOf(k);let n=t+e;n<0?n=D.length-1:n>=D.length&&(n=0),S(D[n]),N(!0)};return(0,s.useEffect)((()=>{const e=D.length>0,t=D.indexOf(k)>0;e&&!t&&S(D[0])}),[D,k]),(0,s.useEffect)((()=>{const e=D.length>0;if(T){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.",D.length),D.length):(0,u.__)("No results.");(0,db.speak)(t,"polite")}}),[D,T]),(0,s.createElement)(hT,{onFocusOutside:()=>{N(!1)}},(0,s.createElement)(Iv,{__nextHasNoMarginBottom:r,className:c()(v,"components-combobox-control"),tabIndex:"-1",label:a,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,s.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":k&&(A(k),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":N(!1),S(null),t=!0}t&&e.preventDefault()}}},(0,s.createElement)(aT,{__next36pxDefaultSize:o},(0,s.createElement)(Wm,null,(0,s.createElement)(lT,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?M:E,onFocus:()=>{I(!0),N(!0),p(""),P("")},onBlur:()=>{I(!1)},isExpanded:T,selectedSuggestionIndex:D.indexOf(k),onChange:e=>{const t=e.value;P(t),p(t),R&&N(!0)}})),g&&(0,s.createElement)(Um,null,(0,s.createElement)(ad,{className:"components-combobox-control__reset",icon:Mb,disabled:!w,onClick:()=>{x(null),O.current.focus()},label:(0,u.__)("Reset")}))),T&&(0,s.createElement)(fT,{instanceId:C,match:{label:M},displayTransform:e=>e.label,suggestions:D,selectedIndex:D.indexOf(k),onHover:S,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const vT=new Set(["alert","status","log","marquee","timer"]);let bT=[],yT=!1;function wT(e){if(yT)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&vT.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),bT.push(t))})),yT=!0}let xT=0;const _T=(0,s.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:l=!0,shouldCloseOnClickOutside:f=!0,isDismissible:p=!0,aria:m={labelledby:void 0,describedby:void 0},onRequestClose:h,icon:g,closeButtonLabel:v,children:b,style:y,overlayClassName:w,className:x,contentLabel:_,onKeyDown:E,isFullScreen:C=!1,__experimentalHideHeader:k=!1}=e,S=(0,s.useRef)(),T=(0,d.useInstanceId)(_T),N=o?`components-modal-header-${T}`:m.labelledby,R=(0,d.useFocusOnMount)(i),I=(0,d.useConstrainedTabbing)(),M=(0,d.useFocusReturn)(),P=(0,d.__experimentalUseFocusOutside)(h),[O,D]=(0,s.useState)(!1);(0,s.useEffect)((()=>(xT++,1===xT&&(wT(S.current),document.body.classList.add(n)),()=>{xT--,0===xT&&(document.body.classList.remove(n),yT&&(bT.forEach((e=>{e.removeAttribute("aria-hidden")})),bT=[],yT=!1))})),[n]);const A=(0,s.useCallback)((e=>{var t,n;const r=null!==(t=null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.scrollTop)&&void 0!==t?t:-1;!O&&r>0?D(!0):O&&r<=0&&D(!1)}),[O]);return(0,s.createPortal)((0,s.createElement)("div",{ref:(0,d.useMergeRefs)([S,t]),className:c()("components-modal__screen-overlay",w),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||l&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),h&&h(e))}},(0,s.createElement)(lf,{document:document},(0,s.createElement)("div",a({className:c()("components-modal__frame",x,{"is-full-screen":C}),style:y,ref:(0,d.useMergeRefs)([I,M,R]),role:r,"aria-label":_,"aria-labelledby":_?void 0:N,"aria-describedby":m.describedby,tabIndex:-1},f?P:{},{onKeyDown:E}),(0,s.createElement)("div",{className:c()("components-modal__content",{"hide-header":k,"has-scrolled-content":O}),role:"document",onScroll:A},!k&&(0,s.createElement)("div",{className:"components-modal__header"},(0,s.createElement)("div",{className:"components-modal__header-heading-container"},g&&(0,s.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},g),o&&(0,s.createElement)("h1",{id:N,className:"components-modal__header-heading"},o)),p&&(0,s.createElement)(ad,{onClick:h,icon:Xl,label:v||(0,u.__)("Close")})),b)))),document.body)}));var ET=_T;const CT={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var kT=$u((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:l,cancelButtonText:c,...d}=ju(e,"ConfirmDialog"),f=Hu()(CT),[p,m]=(0,s.useState)(),[h,g]=(0,s.useState)();(0,s.useEffect)((()=>{const e=void 0!==n;m(!e||n),g(!e)}),[n]);const v=(0,s.useCallback)((e=>t=>{null==e||e(t),h&&m(!1)}),[h,m]),b=(0,s.useCallback)((e=>{"Enter"===e.key&&v(r)(e)}),[v,r]),y=null!=c?c:(0,u.__)("Cancel"),w=null!=l?l:(0,u.__)("OK");return(0,s.createElement)(s.Fragment,null,p&&(0,s.createElement)(ET,a({onRequestClose:v(o),onKeyDown:b,closeButtonLabel:y,isDismissible:!0,ref:t,overlayClassName:f,__experimentalHideHeader:!0},d),(0,s.createElement)(W_,{spacing:8},(0,s.createElement)(Ph,null,i),(0,s.createElement)(Qm,{direction:"row",justify:"flex-end"},(0,s.createElement)(ad,{variant:"tertiary",onClick:v(o)},y),(0,s.createElement)(ad,{variant:"primary",onClick:v(r)},w)))))}),"ConfirmDialog"),ST=n(2652),TT=n.n(ST);n(2797);function NT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function RT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function IT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return RT(n.overflowY,t)||RT(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 MT(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}var PT=function(){return PT=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},PT.apply(this,arguments)};Object.create;Object.create;let OT=0;function DT(){}function AT(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(!NT(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;NT(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&IT(p)&&!IT(document.documentElement)||null!=p&&IT(p,s)&&f.push(p)}for(var m=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,w=b.width,x=b.top,_=b.right,E=b.bottom,C=b.left,k="start"===o||"nearest"===o?x:"end"===o?E:x+y/2,S="center"===i?C+w/2:"end"===i?_:C,T=[],N=0;N<f.length;N++){var R=f[N],I=R.getBoundingClientRect(),M=I.height,P=I.width,O=I.top,D=I.right,A=I.bottom,L=I.left;if("if-needed"===r&&x>=0&&C>=0&&E<=h&&_<=m&&x>=O&&E<=A&&C>=L&&_<=D)return T;var z=getComputedStyle(R),B=parseInt(z.borderLeftWidth,10),F=parseInt(z.borderTopWidth,10),V=parseInt(z.borderRightWidth,10),H=parseInt(z.borderBottomWidth,10),j=0,$=0,W="offsetWidth"in R?R.offsetWidth-R.clientWidth-B-V:0,U="offsetHeight"in R?R.offsetHeight-R.clientHeight-F-H:0,G="offsetWidth"in R?0===R.offsetWidth?0:P/R.offsetWidth:0,Y="offsetHeight"in R?0===R.offsetHeight?0:M/R.offsetHeight:0;if(d===R)j="start"===o?k:"end"===o?k-h:"nearest"===o?MT(v,v+h,h,F,H,v+k,v+k+y,y):k-h/2,$="start"===i?S:"center"===i?S-m/2:"end"===i?S-m:MT(g,g+m,m,B,V,g+S,g+S+w,w),j=Math.max(0,j+v),$=Math.max(0,$+g);else{j="start"===o?k-O-F:"end"===o?k-A+H+U:"nearest"===o?MT(O,A,M,F,H+U,k,k+y,y):k-(O+M/2)+U/2,$="start"===i?S-L-B:"center"===i?S-(L+P/2)+W/2:"end"===i?S-D+V+W:MT(L,D,P,B,V+W,S,S+w,w);var q=R.scrollLeft,K=R.scrollTop;k+=K-(j=Math.max(0,Math.min(K+j/Y,R.scrollHeight-M/Y+U))),S+=q-($=Math.max(0,Math.min(q+$/G,R.scrollWidth-P/G+W)))}T.push({el:R,top:j,left:$})}return T}(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 LT(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function zT(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 BT(){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 FT(){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 VT(){return String(OT++)}function HT(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 jT(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=$T(t,r)?t[r]:e[r],n)),{})}function $T(e,t){return void 0!==e[t]}function WT(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function UT(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=GT(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function GT(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?GT(1,0,n,r,!1):GT(-1,n-1,n,r,!1):-1}function YT(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(LT(t,e,n)||r&<(t,n.document.activeElement,n))))}const qT=zT((e=>{XT(e).textContent=""}),500);function KT(e,t){const n=XT(t);e&&(n.textContent=e,qT(t))}function XT(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 ZT={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function JT(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${oN(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 QT=zT(((e,t)=>{KT(e(),t)}),200),eN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?b.useLayoutEffect:b.useEffect;function tN(e){let{id:t=`downshift-${VT()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,b.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function nN(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function rN(e){return/^\S{1}$/.test(e)}function oN(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function iN(e){const t=(0,b.useRef)(e);return t.current=e,t}function aN(e,t,n){const r=(0,b.useRef)(),o=(0,b.useRef)(),i=(0,b.useCallback)(((t,n)=>{o.current=n,t=jT(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,b.useReducer)(i,t),l=iN(n),c=(0,b.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,b.useEffect)((()=>{u&&r.current&&r.current!==a&&JT(u,jT(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function sN(e,t,n){const[r,o]=aN(e,t,n);return[jT(r,n),o]}const lN={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:AT,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function cN(e,t,n){void 0===n&&(n=ZT);const r=e[`default${oN(t)}`];return void 0!==r?r:n[t]}function uN(e,t,n){void 0===n&&(n=ZT);const r=e[t];if(void 0!==r)return r;const o=e[`initial${oN(t)}`];return void 0!==o?o:cN(e,t,n)}function dN(e){const t=uN(e,"selectedItem"),n=uN(e,"isOpen"),r=uN(e,"highlightedIndex"),o=uN(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function fN(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):UT(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function pN(e,t,n,r){const o=(0,b.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,b.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!YT(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||YT(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let mN=()=>DT;function hN(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,b.useEffect)((()=>{r||QT((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function gN(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,b.useRef)(!0);return eN((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let vN=DT;function bN(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:fN(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:fN(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:cN(o,"highlightedIndex"),isOpen:cN(o,"isOpen"),selectedItem:cN(o,"selectedItem"),inputValue:cN(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function yN(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}TT().array.isRequired,TT().func,TT().func,TT().func,TT().bool,TT().number,TT().number,TT().number,TT().bool,TT().bool,TT().bool,TT().any,TT().any,TT().any,TT().string,TT().string,TT().string,TT().func,TT().string,TT().func,TT().func,TT().func,TT().func,TT().func,TT().shape({addEventListener:TT().func,removeEventListener:TT().func,document:TT().shape({getElementById:TT().func,activeElement:TT().any,body:TT().any})});var wN=PT(PT({},lN),{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.":""}}),xN=DT;var _N=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function EN(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case 11:i={isOpen:cN(r,"isOpen"),highlightedIndex:cN(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case 15:{const n=t.key,o=`${e.inputValue}${n}`,a=yN({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 13:i={highlightedIndex:fN(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:i={highlightedIndex:fN(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:i={isOpen:cN(r,"isOpen"),highlightedIndex:cN(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case 3:i={highlightedIndex:GT(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case 4:i={highlightedIndex:GT(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:i={isOpen:!1,highlightedIndex:-1};break;case 7:{const n=t.key,o=`${e.inputValue}${n}`,a=yN({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case 0:i={highlightedIndex:UT(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case 1:i={highlightedIndex:UT(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case 20:i={selectedItem:t.selectedItem};break;default:return bN(e,t,_N)}return{...e,...i}}function CN(e){void 0===e&&(e={}),xN(e,CN);const t={...wN,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=dN(t),[d,f]=sN(EN,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,v=(0,b.useRef)(null),y=(0,b.useRef)(null),w=(0,b.useRef)({}),x=(0,b.useRef)(!0),_=(0,b.useRef)(null),E=tN(t),C=(0,b.useRef)(),k=(0,b.useRef)(!0),S=iN({state:d,props:t}),T=(0,b.useCallback)((e=>w.current[E.getItemId(e)]),[E]);hN(c,[p,m,g,n],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),hN(l,[h],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const N=gN({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,b.useEffect)((()=>(_.current=zT((e=>{e({type:21,inputValue:""})}),500),()=>{_.current.cancel()})),[]),(0,b.useEffect)((()=>{g&&_.current(f)}),[f,g]),vN({isInitialMount:k.current,props:t,state:d}),(0,b.useEffect)((()=>{k.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&v.current&&(x.current=!1,v.current.focus())}),[p]),(0,b.useEffect)((()=>{k.current||(C.current=n.length)}));const R=pN(p,[y,v],o,(()=>{f({type:8})})),I=mN();(0,b.useEffect)((()=>{k.current=!1}),[]),(0,b.useEffect)((()=>{p||(w.current={})}),[p]);const M=(0,b.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:13,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:14,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),P=(0,b.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:0,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:1,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:3,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:4,getItemNodeFromIndex:T})},Escape(){f({type:2})},Enter(e){e.preventDefault(),f({type:5})}," "(e){e.preventDefault(),f({type:6})}})),[f,T]),O=(0,b.useCallback)((()=>{f({type:16})}),[f]),D=(0,b.useCallback)((()=>{f({type:18})}),[f]),A=(0,b.useCallback)((()=>{f({type:17})}),[f]),L=(0,b.useCallback)((e=>{f({type:19,highlightedIndex:e})}),[f]),z=(0,b.useCallback)((e=>{f({type:20,selectedItem:e})}),[f]),B=(0,b.useCallback)((()=>{f({type:22})}),[f]),F=(0,b.useCallback)((e=>{f({type:21,inputValue:e})}),[f]),V=(0,b.useCallback)((e=>({id:E.labelId,htmlFor:E.toggleButtonId,...e})),[E]),H=(0,b.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=S.current.state;return I("getMenuProps",l,r,y),{[r]:FT(a,(e=>{y.current=e})),id:E.menuId,role:"listbox","aria-labelledby":E.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":E.getItemId(c.highlightedIndex)},onMouseLeave:BT(n,(()=>{f({type:9})})),onKeyDown:BT(o,(e=>{const t=WT(e);t&&P[t]?P[t](e):rN(t)&&f({type:7,key:t,getItemNodeFromIndex:T})})),onBlur:BT(i,(()=>{if(!1===x.current)return void(x.current=!0);!R.current.isMouseDown&&f({type:8})})),...s}}),[f,S,P,R,I,E,T]),j=(0,b.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=()=>{f({type:12})},c=e=>{const t=WT(e);t&&M[t]?M[t](e):rN(t)&&f({type:15,key:t,getItemNodeFromIndex:T})},u={[o]:FT(i,(e=>{v.current=e})),id:E.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":S.current.state.isOpen,"aria-labelledby":`${E.labelId} ${E.toggleButtonId}`,...a};return a.disabled||(u.onClick=BT(n,l),u.onKeyDown=BT(r,c)),I("getToggleButtonProps",s,o,v),u}),[f,S,M,I,E,T]),$=(0,b.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}=S.current,d=()=>{f({type:11,index:n})},p=nN(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:E.getItemId(p),[i]:FT(a,(e=>{e&&(w.current[E.getItemId(p)]=e)})),...l};return s||(m.onClick=BT(o,d)),m.onMouseMove=BT(r,(()=>{n!==c.highlightedIndex&&(N.current=!1,f({type:10,index:n,disabled:s}))})),m}),[f,S,N,E]);return{getToggleButtonProps:j,getLabelProps:V,getMenuProps:H,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:B,setInputValue:F,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}CN.stateChangeTypes=_N;TT().array.isRequired,TT().func,TT().func,TT().func,TT().bool,TT().number,TT().number,TT().number,TT().bool,TT().bool,TT().bool,TT().any,TT().any,TT().any,TT().string,TT().string,TT().string,TT().string,TT().string,TT().string,TT().func,TT().string,TT().string,TT().func,TT().func,TT().func,TT().func,TT().func,TT().func,TT().shape({addEventListener:TT().func,removeEventListener:TT().func,document:TT().shape({getElementById:TT().func,activeElement:TT().any,body:TT().any})});TT().array,TT().array,TT().array,TT().func,TT().func,TT().func,TT().number,TT().number,TT().number,TT().func,TT().func,TT().string,TT().string,TT().shape({addEventListener:TT().func,removeEventListener:TT().func,document:TT().shape({getElementById:TT().func,activeElement:TT().any,body:TT().any})});const kN=e=>e.__nextUnconstrainedWidth?"":Gf(Uh,"{min-width:130px;}",""),SN=ed(og,{target:"eswuck60"})(kN,";"),TN=e=>null==e?void 0:e.name,NN=(e,t)=>{let{selectedItem:n}=e,{type:r,changes:o,props:{items:i}}=t;switch(r){case CN.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case CN.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function RN(e){var t;const{__next36pxDefaultSize:n=!1,__nextUnconstrainedWidth:r=!1,className:o,hideLabelFromVision:i,label:l,describedBy:d,options:f,onChange:p,size:m="default",value:h,onMouseOver:g,onMouseOut:v,onFocus:b,onBlur:y,__experimentalShowSelectedHint:w=!1}=e,{getLabelProps:x,getToggleButtonProps:_,getMenuProps:E,getItemProps:C,isOpen:k,highlightedIndex:S,selectedItem:T}=CN({initialSelectedItem:f[0],items:f,itemToString:TN,onSelectedItemChange:p,...null!=h?{selectedItem:h}:void 0,stateReducer:NN}),[N,R]=(0,s.useState)(!1);r||Jl()("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 I=E({className:"components-custom-select-control__menu","aria-hidden":!k}),M=(0,s.useCallback)((e=>{var t;e.stopPropagation(),null==I||null===(t=I.onKeyDown)||void 0===t||t.call(I,e)}),[I]);return null!==(t=I["aria-activedescendant"])&&void 0!==t&&t.startsWith("downshift-null")&&delete I["aria-activedescendant"],(0,s.createElement)("div",{className:c()("components-custom-select-control",o)},i?(0,s.createElement)(rd,a({as:"label"},x()),l):(0,s.createElement)(kv,x({className:"components-custom-select-control__label"}),l),(0,s.createElement)(SN,{__next36pxDefaultSize:n,__nextUnconstrainedWidth:r,isFocused:k||N,__unstableInputWidth:r?void 0:"auto",labelPosition:r?void 0:"top",size:m,suffix:(0,s.createElement)(dy,null)},(0,s.createElement)(ay,a({onMouseOver:g,onMouseOut:v,as:"button",onFocus:function(e){R(!0),null==b||b(e)},onBlur:function(e){R(!1),null==y||y(e)},selectSize:m,__next36pxDefaultSize:n},_({"aria-label":l,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:d||(T?(0,u.sprintf)((0,u.__)("Currently selected: %s"),T.name):(0,u.__)("No selection"))})),TN(T),w&&T.__experimentalHint&&(0,s.createElement)("span",{className:"components-custom-select-control__hint"},T.__experimentalHint))),(0,s.createElement)("ul",a({},I,{onKeyDown:M}),k&&f.map(((e,t)=>(0,s.createElement)("li",C({item:e,index:t,key:e.key,className:c()(e.className,"components-custom-select-control__item",{"is-highlighted":t===S,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":n}),style:e.style}),e.name,e.__experimentalHint&&(0,s.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===T&&(0,s.createElement)(cy,{icon:j_,className:"components-custom-select-control__item-icon"}))))))}function IN(e){return(0,s.createElement)(RN,a({},e,{__experimentalShowSelectedHint:!1}))}function MN(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 PN(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ON(e,t){const n=MN(e);if(isNaN(t))return PN(e,NaN);if(!t)return n;const r=n.getDate(),o=PN(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}let DN={};function AN(){return DN}function LN(e,t){const n=AN(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=MN(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function zN(e,t){return function(e,t){const n=MN(e);return isNaN(t)?PN(e,NaN):t?(n.setDate(n.getDate()+t),n):n}(e,7*t)}function BN(e,t){return ON(e,12*t)}function FN(e){const t=MN(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function VN(e,t){const n=MN(e.start),r=MN(e.end);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(MN(a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?l.reverse():l}function HN(e){const t=MN(e);return t.setDate(1),t.setHours(0,0,0,0),t}function jN(e,t){const n=AN(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=MN(e),i=o.getDay(),a=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function $N(e,t){return+MN(e)==+MN(t)}function WN(e,t){const n=MN(e),r=n.getFullYear(),o=n.getDate(),i=PN(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=function(e){const t=MN(e),n=t.getFullYear(),r=t.getMonth(),o=PN(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,a)),n}function UN(){return function(e){const t=MN(e);return t.setHours(0,0,0,0),t}(Date.now())}var GN,YN;!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"}(GN||(GN={})),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"}(YN||(YN={}));var qN=function(e,t,n){return($N(e,t)||function(e,t){const n=MN(e),r=MN(t);return n.getTime()>r.getTime()}(e,t))&&($N(e,n)||function(e,t){return+MN(e)<+MN(t)}(e,n))},KN=function(e){return function(e,t){let n=MN(e);return isNaN(+n)?PN(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=WN(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})},XN=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?YN.SUNDAY:n,o=t.viewing,i=void 0===o?new Date:o,a=t.selected,s=void 0===a?[]:a,l=t.numberOfMonths,c=void 0===l?1:l,u=(0,b.useState)(i),d=u[0],f=u[1],p=(0,b.useCallback)((function(){return f(UN())}),[f]),m=(0,b.useCallback)((function(e){return f((function(t){return WN(t,e)}))}),[]),h=(0,b.useCallback)((function(){return f((function(e){return function(e,t){return ON(e,-t)}(e,1)}))}),[]),g=(0,b.useCallback)((function(){return f((function(e){return ON(e,1)}))}),[]),v=(0,b.useCallback)((function(e){return f((function(t){return function(e,t){const n=MN(e);return isNaN(+n)?PN(e,NaN):(n.setFullYear(t),n)}(t,e)}))}),[]),y=(0,b.useCallback)((function(){return f((function(e){return function(e,t){return BN(e,-t)}(e,1)}))}),[]),w=(0,b.useCallback)((function(){return f((function(e){return BN(e,1)}))}),[]),x=(0,b.useState)(s.map(KN)),_=x[0],E=x[1],C=(0,b.useCallback)((function(e){return _.findIndex((function(t){return $N(t,e)}))>-1}),[_]),k=(0,b.useCallback)((function(e,t){E(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),S=(0,b.useCallback)((function(e){return E((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!$N(t,e)}))}))}),[]),T=(0,b.useCallback)((function(e,t){return C(e)?S(e):k(e,t)}),[S,C,k]),N=(0,b.useCallback)((function(e,t,n){E(n?VN({start:e,end:t}):function(n){return n.concat(VN({start:e,end:t}))})}),[]),R=(0,b.useCallback)((function(e,t){E((function(n){return n.filter((function(n){return!VN({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),I=(0,b.useMemo)((function(){return function(e,t){const n=MN(e.start),r=MN(e.end);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(MN(a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}({start:HN(d),end:FN(ON(d,c-1))}).map((function(e){return function(e,t){const n=MN(e.start),r=MN(e.end);let o=+n>+r;const i=LN(o?r:n,t),a=LN(o?n:r,t);i.setHours(15),a.setHours(15);const s=+a.getTime();let l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);const u=[];for(;+l<=s;)l.setHours(0),u.push(MN(l)),l=zN(l,c),l.setHours(15);return o?u.reverse():u}({start:HN(e),end:FN(e)},{weekStartsOn:r}).map((function(e){return VN({start:LN(e,{weekStartsOn:r}),end:jN(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:KN,inRange:qN,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:g,viewYear:v,viewPreviousYear:y,viewNextYear:w,selected:_,setSelected:E,clearSelected:function(){return E([])},isSelected:C,select:k,deselect:S,toggle:T,selectRange:N,deselectRange:R,calendar:I}};function ZN(e){return ZN="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},ZN(e)}function JN(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function QN(e){JN(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ZN(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 eR(e){JN(1,arguments);var t=QN(e);return t.setHours(0,0,0,0),t}function tR(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 nR(e,t){JN(2,arguments);var n=QN(e),r=tR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function rR(e,t){JN(2,arguments);var n=tR(t);return nR(e,-n)}function oR(e){return JN(1,arguments),e instanceof Date||"object"===ZN(e)&&"[object Date]"===Object.prototype.toString.call(e)}function iR(e){if(JN(1,arguments),!oR(e)&&"number"!=typeof e)return!1;var t=QN(e);return!isNaN(Number(t))}function aR(e,t){JN(2,arguments);var n=QN(e).getTime(),r=tR(t);return new Date(n+r)}function sR(e,t){JN(2,arguments);var n=tR(t);return aR(e,-n)}var lR=864e5;function cR(e){JN(1,arguments);var t=1,n=QN(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function uR(e){JN(1,arguments);var t=QN(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=cR(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=cR(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function dR(e){JN(1,arguments);var t=uR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=cR(n);return r}var fR=6048e5;var pR={};function mR(){return pR}function hR(e,t){var n,r,o,i,a,s,l,c;JN(1,arguments);var u=mR(),d=tR(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=QN(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function gR(e,t){var n,r,o,i,a,s,l,c;JN(1,arguments);var u=QN(e),d=u.getUTCFullYear(),f=mR(),p=tR(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(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=hR(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=hR(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function vR(e,t){var n,r,o,i,a,s,l,c;JN(1,arguments);var u=mR(),d=tR(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=gR(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=hR(p,t);return m}var bR=6048e5;function yR(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var wR={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return yR("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):yR(n+1,2)},d:function(e,t){return yR(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 yR(e.getUTCHours()%12||12,t.length)},H:function(e,t){return yR(e.getUTCHours(),t.length)},m:function(e,t){return yR(e.getUTCMinutes(),t.length)},s:function(e,t){return yR(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return yR(Math.floor(r*Math.pow(10,n-3)),t.length)}},xR=wR,_R="midnight",ER="noon",CR="morning",kR="afternoon",SR="evening",TR="night",NR={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 xR.y(e,t)},Y:function(e,t,n,r){var o=gR(e,r),i=o>0?o:1-o;return"YY"===t?yR(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):yR(i,t.length)},R:function(e,t){return yR(uR(e),t.length)},u:function(e,t){return yR(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 yR(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 yR(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 xR.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 yR(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=function(e,t){JN(1,arguments);var n=QN(e),r=hR(n,t).getTime()-vR(n,t).getTime();return Math.round(r/bR)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):yR(o,t.length)},I:function(e,t,n){var r=function(e){JN(1,arguments);var t=QN(e),n=cR(t).getTime()-dR(t).getTime();return Math.round(n/fR)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):yR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):xR.d(e,t)},D:function(e,t,n){var r=function(e){JN(1,arguments);var t=QN(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/lR)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):yR(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 yR(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 yR(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 yR(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?ER:0===o?_R: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?SR:o>=12?kR:o>=4?CR:TR,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 xR.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):xR.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):yR(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):yR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):xR.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):xR.s(e,t)},S:function(e,t){return xR.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 IR(o);case"XXXX":case"XX":return MR(o);default:return MR(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return IR(o);case"xxxx":case"xx":return MR(o);default:return MR(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+RR(o,":");default:return"GMT"+MR(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+RR(o,":");default:return"GMT"+MR(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return yR(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return yR((r._originalDate||e).getTime(),t.length)}};function RR(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+yR(i,2)}function IR(e,t){return e%60==0?(e>0?"-":"+")+yR(Math.abs(e)/60,2):MR(e,t)}function MR(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+yR(Math.floor(o/60),2)+n+yR(o%60,2)}var PR=NR,OR=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"})}},DR=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"})}},AR={p:DR,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return OR(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}}",OR(o,t)).replace("{{time}}",DR(i,t))}},LR=AR;function zR(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()}var BR=["D","DD"],FR=["YY","YYYY"];function VR(e){return-1!==BR.indexOf(e)}function HR(e){return-1!==FR.indexOf(e)}function jR(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 $R={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"}},WR=function(e,t,n){var r,o=$R[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 UR(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var GR={date:UR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UR({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:UR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},YR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qR=function(e,t,n,r){return YR[e]};function KR(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 XR={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:KR({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:KR({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:KR({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:KR({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:KR({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"})},ZR=XR;function JR(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)?eI(l,(function(e){return e.test(s)})):QR(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function QR(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function eI(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var tI,nI={ordinalNumber:(tI={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(tI.matchPattern);if(!n)return null;var r=n[0],o=e.match(tI.parsePattern);if(!o)return null;var i=tI.valueCallback?tI.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:JR({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:JR({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:JR({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:JR({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:JR({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"})},rI={code:"en-US",formatDistance:WR,formatLong:GR,formatRelative:qR,localize:ZR,match:nI,options:{weekStartsOn:0,firstWeekContainsDate:1}},oI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aI=/^'([^]*?)'?$/,sI=/''/g,lI=/[a-zA-Z]/;function cI(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,g,v,b,y,w;JN(2,arguments);var x=String(t),_=mR(),E=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:rI,C=tR(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:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=tR(null!==(p=null!==(m=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:_.weekStartsOn)&&void 0!==m?m:null===(y=_.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var S=QN(e);if(!iR(S))throw new RangeError("Invalid time value");var T=zR(S),N=sR(S,T),R={firstWeekContainsDate:C,weekStartsOn:k,locale:E,_originalDate:S},I=x.match(iI).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,LR[t])(e,E.formatLong):e})).join("").match(oI).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return uI(r);var i=PR[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!HR(r)||jR(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!VR(r)||jR(r,t,String(e)),i(N,r,E.localize,R);if(o.match(lI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return I}function uI(e){var t=e.match(aI);return t?t[1].replace(sI,"'"):e}function dI(e,t){JN(2,arguments);var n=QN(e),r=QN(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function fI(e,t){JN(2,arguments);var n=QN(e),r=QN(t);return n.getTime()===r.getTime()}function pI(e,t){JN(2,arguments);var n=eR(e),r=eR(t);return n.getTime()===r.getTime()}function mI(e,t){JN(2,arguments);var n=QN(e),r=tR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function hI(e,t){JN(2,arguments);var n=tR(t),r=7*n;return mI(e,r)}var gI=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var vI=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),bI=window.wp.date;const yI=ed("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),wI=ed(qv,{target:"e105ri6r4"})("margin-bottom:",Zm(4),";"),xI=ed(G_,{target:"e105ri6r3"})("font-size:",gh.fontSize,";font-weight:",gh.fontWeight,";strong{font-weight:",gh.fontWeightHeading,";}"),_I=ed("div",{target:"e105ri6r2"})("column-gap:",Zm(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",Zm(2),";"),EI=ed("div",{target:"e105ri6r1"})("color:",Np.gray[700],";font-size:",gh.fontSize,";line-height:",gh.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),CI=ed(ad,{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:",Zm(7),";width:",Zm(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Np.ui.theme};\n\t\t\tcolor: ${Np.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Np.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Np.white:Np.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\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 kI(e){return"string"==typeof e?new Date(e):QN(e)}const SI="yyyy-MM-dd'T'HH:mm:ss";function TI(e){let{day:t,column:n,isSelected:r,isFocusable:o,isFocusAllowed:i,isToday:a,isInvalid:l,numEvents:c,onClick:u,onKeyDown:d}=e;const f=(0,s.useRef)();return(0,s.useEffect)((()=>{f.current&&o&&i&&f.current.focus()}),[o]),(0,s.createElement)(CI,{ref:f,className:"components-datetime__date__day",disabled:l,tabIndex:o?0:-1,"aria-label":NI(t,r,c),column:n,isSelected:r,isToday:a,hasEvents:c>0,onClick:u,onKeyDown:d},(0,bI.dateI18n)("j",t,-t.getTimezoneOffset()))}function NI(e,t,n){const{formats:r}=(0,bI.getSettings)(),o=(0,bI.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}var RI=function(e){let{currentDate:t,onChange:n,events:r=[],isInvalidDate:o,onMonthPreviewed:i,startOfWeek:a=0}=e;const l=t?kI(t):new Date,{calendar:c,viewing:d,setSelected:f,setViewing:p,isSelected:m,viewPreviousMonth:h,viewNextMonth:g}=XN({selected:[eR(l)],viewing:eR(l),weekStartsOn:a}),[v,b]=(0,s.useState)(eR(l)),[y,w]=(0,s.useState)(!1),[x,_]=(0,s.useState)(t);return t!==x&&(_(t),f([eR(l)]),p(eR(l)),b(eR(l))),(0,s.createElement)(yI,{className:"components-datetime__date",role:"application","aria-label":(0,u.__)("Calendar")},(0,s.createElement)(wI,null,(0,s.createElement)(ad,{icon:(0,u.isRTL)()?gI:vI,variant:"tertiary","aria-label":(0,u.__)("View previous month"),onClick:()=>{h(),b(rR(v,1)),null==i||i(cI(rR(d,1),SI))}}),(0,s.createElement)(xI,{level:3},(0,s.createElement)("strong",null,(0,bI.dateI18n)("F",d,-d.getTimezoneOffset()))," ",(0,bI.dateI18n)("Y",d,-d.getTimezoneOffset())),(0,s.createElement)(ad,{icon:(0,u.isRTL)()?vI:gI,variant:"tertiary","aria-label":(0,u.__)("View next month"),onClick:()=>{g(),b(nR(v,1)),null==i||i(cI(nR(d,1),SI))}})),(0,s.createElement)(_I,{onFocus:()=>w(!0),onBlur:()=>w(!1)},c[0][0].map((e=>(0,s.createElement)(EI,{key:e.toString()},(0,bI.dateI18n)("D",e,-e.getTimezoneOffset())))),c[0].map((e=>e.map(((e,t)=>dI(e,d)?(0,s.createElement)(TI,{key:e.toString(),day:e,column:t+1,isSelected:m(e),isFocusable:fI(e,v),isFocusAllowed:y,isToday:pI(e,new Date),isInvalid:!!o&&o(e),numEvents:r.filter((t=>pI(t.date,e))).length,onClick:()=>{f([e]),b(e),null==n||n(cI(new Date(e.getFullYear(),e.getMonth(),e.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()),SI))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=mI(e,(0,u.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=mI(e,(0,u.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){JN(2,arguments);var n=tR(t);return hI(e,-n)}(e,1)),"ArrowDown"===t.key&&(n=hI(e,1)),"PageUp"===t.key&&(n=rR(e,1)),"PageDown"===t.key&&(n=nR(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;JN(1,arguments);var u=mR(),d=tR(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=QN(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=eR(function(e,t){var n,r,o,i,a,s,l,c;JN(1,arguments);var u=mR(),d=tR(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=QN(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),b(n),dI(n,d)||(p(n),null==i||i(cI(n,SI))))}}):null))))))};function II(e){JN(1,arguments);var t=QN(e);return t.setSeconds(0,0),t}function MI(e){JN(1,arguments);var t=QN(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()}function PI(e,t){JN(2,arguments);var n=QN(e),r=tR(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=MI(a);return n.setMonth(r,Math.min(i,s)),n}const OI=ed("div",{target:"evcr23110"})("box-sizing:border-box;font-size:",gh.fontSize,";"),DI=ed("fieldset",{target:"evcr2319"})("border:0;margin:0 0 ",Zm(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),AI=ed("div",{target:"evcr2318"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),LI=Gf("&&& ",Yh,"{padding-left:",Zm(2),";padding-right:",Zm(2),";text-align:center;}",""),zI=ed(eb,{target:"evcr2317"})(LI," width:",Zm(9),";&&& ",Yh,"{padding-right:0;}&&& ",Zh,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),BI=ed("span",{target:"evcr2316"})("border-top:",gh.borderWidth," solid ",Np.gray[700],";border-bottom:",gh.borderWidth," solid ",Np.gray[700],";line-height:calc(\n\t\t",gh.controlHeight," - ",gh.borderWidth," * 2\n\t);display:inline-block;"),FI=ed(eb,{target:"evcr2315"})(LI," width:",Zm(9),";&&& ",Yh,"{padding-left:0;}&&& ",Zh,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),VI=ed("div",{target:"evcr2314"})({name:"1ff36h2",styles:"flex-grow:1"}),HI=ed(my,{target:"evcr2313"})("height:36px;",ay,"{line-height:30px;}"),jI=ed(eb,{target:"evcr2312"})(LI," width:",Zm(9),";"),$I=ed(eb,{target:"evcr2311"})(LI," width:",Zm(14),";"),WI=ed("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"});var UI=()=>{const{timezone:e}=(0,bI.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.offset}`,o="UTC"===e.string?(0,u.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,s.createElement)(Vf,{position:"top center",text:o},(0,s.createElement)(WI,{className:"components-datetime__timezone"},r))};function GI(e,t){return t?(e%12+12)%24:e%12}function YI(e){return(t,n)=>{const r={...t};return n.type!==ov&&n.type!==fv&&n.type!==uv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var qI=function(e){let{is12Hour:t,currentTime:n,onChange:r}=e;const[o,i]=(0,s.useState)((()=>n?II(kI(n)):new Date));(0,s.useEffect)((()=>{i(n?II(kI(n)):new Date)}),[n]);const{day:a,month:l,year:c,minutes:d,hours:f,am:p}=(0,s.useMemo)((()=>({day:cI(o,"dd"),month:cI(o,"MM"),year:cI(o,"yyyy"),minutes:cI(o,"mm"),hours:cI(o,t?"hh":"HH"),am:cI(o,"a")})),[o,t]),m=e=>(n,a)=>{let{event:s}=a;if(!(s.target instanceof HTMLInputElement))return;if(!s.target.validity.valid)return;let l=Number(n);"hours"===e&&t&&(l=GI(l,"PM"===p));const c=function(e,t){if(JN(2,arguments),"object"!==ZN(t)||null===t)throw new RangeError("values parameter must be an object");var n=QN(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=PI(n,t.month)),null!=t.date&&n.setDate(tR(t.date)),null!=t.hours&&n.setHours(tR(t.hours)),null!=t.minutes&&n.setMinutes(tR(t.minutes)),null!=t.seconds&&n.setSeconds(tR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(tR(t.milliseconds)),n)}(o,{[e]:l});i(c),null==r||r(cI(c,SI))};function h(e){return()=>{if(p===e)return;const t=parseInt(f,10),n=function(e,t){JN(2,arguments);var n=QN(e),r=tR(t);return n.setHours(r),n}(o,GI(t,"PM"===e));i(n),null==r||r(cI(n,SI))}}const g=(0,s.createElement)(jI,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,u.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:a,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")}),v=(0,s.createElement)(VI,null,(0,s.createElement)(HI,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,u.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:l,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=PI(o,Number(e)-1);i(t),null==r||r(cI(t,SI))}}));return(0,s.createElement)(OI,{className:"components-datetime__time"},(0,s.createElement)(DI,null,(0,s.createElement)(Iv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Time")),(0,s.createElement)(qv,{className:"components-datetime__time-wrapper"},(0,s.createElement)(AI,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,s.createElement)(zI,{className:"components-datetime__time-field-hours-input",label:(0,u.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:f,step:1,min:t?1:0,max:t?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("hours"),__unstableStateReducer:YI(2)}),(0,s.createElement)(BI,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,s.createElement)(FI,{className:"components-datetime__time-field-minutes-input",label:(0,u.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("minutes"),__unstableStateReducer:YI(2)})),t&&(0,s.createElement)(PC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,s.createElement)(ad,{className:"components-datetime__time-am-button",variant:"AM"===p?"primary":"secondary",onClick:h("AM")},(0,u.__)("AM")),(0,s.createElement)(ad,{className:"components-datetime__time-pm-button",variant:"PM"===p?"primary":"secondary",onClick:h("PM")},(0,u.__)("PM"))),(0,s.createElement)(Zv,null),(0,s.createElement)(UI,null))),(0,s.createElement)(DI,null,(0,s.createElement)(Iv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Date")),(0,s.createElement)(qv,{className:"components-datetime__time-wrapper"},t?(0,s.createElement)(s.Fragment,null,v,g):(0,s.createElement)(s.Fragment,null,g,v),(0,s.createElement)($I,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,u.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:c,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:YI(4)}))))};const KI=ed(W_,{target:"e1p5onf01"})({name:"1khn195",styles:"box-sizing:border-box"}),XI=ed("div",{target:"e1p5onf00"})({name:"l0rwn2",styles:"min-width:260px"}),ZI=()=>{};const JI=(0,s.forwardRef)((function(e,t){let{currentDate:n,is12Hour:r,isInvalidDate:o,onMonthPreviewed:i=ZI,onChange:a,events:l,startOfWeek:c,__nextRemoveHelpButton:d=!1,__nextRemoveResetButton:f=!1}=e;d||Jl()("Help button in wp.components.DateTimePicker",{since:"13.4",version:"15.8",hint:"Set the `__nextRemoveHelpButton` prop to `true` to remove this warning and opt in to the new behaviour, which will become the default in a future version."}),f||Jl()("Reset button in wp.components.DateTimePicker",{since:"13.4",version:"15.8",hint:"Set the `__nextRemoveResetButton` prop to `true` to remove this warning and opt in to the new behaviour, which will become the default in a future version."});const[p,m]=(0,s.useState)(!1);return(0,s.createElement)(KI,{ref:t,className:"components-datetime",spacing:4},!p&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qI,{currentTime:n,onChange:a,is12Hour:r}),(0,s.createElement)(RI,{currentDate:n,onChange:a,isInvalidDate:o,events:l,onMonthPreviewed:i,startOfWeek:c})),p&&(0,s.createElement)(XI,{className:"components-datetime__calendar-help"},(0,s.createElement)(G_,{level:4},(0,u.__)("Click to Select")),(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,u.__)("Click the right or left arrows to select other months in the past or the future.")),(0,s.createElement)("li",null,(0,u.__)("Click the desired day to select it."))),(0,s.createElement)(G_,{level:4},(0,u.__)("Navigating with a keyboard")),(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u._x)("Enter","keyboard button")},"↵")," ",(0,s.createElement)("span",null,(0,u.__)("Select the date in focus."))),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Left and Right Arrows")},"←/→")," ",(0,u.__)("Move backward (left) or forward (right) by one day.")),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Up and Down Arrows")},"↑/↓")," ",(0,u.__)("Move backward (up) or forward (down) by one week.")),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Page Up and Page Down")},(0,u.__)("PgUp/PgDn"))," ",(0,u.__)("Move backward (PgUp) or forward (PgDn) by one month.")),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Home and End")},(0,u.__)("Home/End"))," ",(0,u.__)("Go to the first (Home) or last (End) day of a week.")))),(!f||!d)&&(0,s.createElement)(qv,{className:"components-datetime__buttons"},!f&&!p&&n&&(0,s.createElement)(ad,{className:"components-datetime__date-reset-button",variant:"link",onClick:()=>null==a?void 0:a(null)},(0,u.__)("Reset")),(0,s.createElement)(Zv,null),!d&&(0,s.createElement)(ad,{className:"components-datetime__date-help-toggle",variant:"link",onClick:function(){m(!p)}},p?(0,u.__)("Close"):(0,u.__)("Calendar Help"))))}));var QI=JI;var eM=[{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"}];var tM=function(e){const{label:t,value:n,sizes:r=eM,icon:o,onChange:i,className:a=""}=e,l=(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(ec,{icon:o}),t);return(0,s.createElement)(my,{className:c()(a,"block-editor-dimension-control"),label:l,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i(void 0)},options:(e=>{const t=e.map((e=>{let{name:t,slug:n}=e;return{label:t,value:n}}));return[{label:(0,u.__)("Default"),value:""}].concat(t)})(r)})};const nM={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},rM=(0,s.createContext)(!1),{Consumer:oM,Provider:iM}=rM;function aM(e){let{className:t,children:n,isDisabled:r=!0,...o}=e;const i=Hu();return(0,s.createElement)(iM,{value:r},(0,s.createElement)("div",a({inert:r?"true":void 0,className:r?i(nM,t,"components-disabled"):void 0},o),n))}aM.Context=rM,aM.Consumer=oM;var sM=aM;const lM="is-dragging-components-draggable";var cM=function(e){let{children:t,onDragStart:n,onDragOver:r,onDragEnd:o,cloneClassname:i,elementId:a,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}=e;const f=(0,s.useRef)(null),p=(0,s.useRef)((()=>{}));return(0,s.useEffect)((()=>()=>{p.current()}),[]),(0,s.createElement)(s.Fragment,null,t({onDraggableStart:function(e){const{ownerDocument:t}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const o=t.createElement("div");o.style.top="0",o.style.left="0";const s=t.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(s.classList.add("components-draggable__invisible-drag-image"),t.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0)),o.classList.add("components-draggable__clone"),i&&o.classList.add(i);let u=0,m=0;if(f.current){u=e.clientX,m=e.clientY,o.style.transform=`translate( ${u}px, ${m}px )`;const n=t.createElement("div");n.innerHTML=f.current.innerHTML,o.appendChild(n),t.body.appendChild(o)}else{const e=t.getElementById(a),n=e.getBoundingClientRect(),r=e.parentNode,i=n.top,s=n.left;o.style.width=`${n.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${a}`,u=s-0,m=i-0,o.style.transform=`translate( ${u}px, ${m}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})),o.appendChild(l),null==r||r.appendChild(o)}let h=e.clientX,g=e.clientY;const v=(0,d.throttle)((function(e){if(h===e.clientX&&g===e.clientY)return;const t=u+e.clientX-h,n=m+e.clientY-g;o.style.transform=`translate( ${t}px, ${n}px )`,h=e.clientX,g=e.clientY,u=t,m=n,r&&r(e)}),16);let b;t.addEventListener("dragover",v),t.body.classList.add(lM),e.persist(),n&&(b=setTimeout((()=>n(e)))),p.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),s&&s.parentNode&&s.parentNode.removeChild(s),t.body.classList.remove(lM),t.removeEventListener("dragover",v),clearTimeout(b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),o&&o(e)}}),u&&(0,s.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},u))};var uM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));var dM=function(e){let{className:t,label:n,onFilesDrop:r,onHTMLDrop:o,onDrop:i,...l}=e;const[f,p]=(0,s.useState)(),[m,h]=(0,s.useState)(),[g,v]=(0,s.useState)(),b=(0,d.__experimentalUseDropZone)({onDrop(e){var t;const n=e.dataTransfer?(0,MS.getFilesFromDataTransfer)(e.dataTransfer):[],a=null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("text/html");a&&o?o(a):n.length&&r?r(n):i&&i(e)},onDragStart(e){var t,n;p(!0);let r="default";null!==(t=e.dataTransfer)&&void 0!==t&&t.types.includes("text/html")?r="html":(null!==(n=e.dataTransfer)&&void 0!==n&&n.types.includes("Files")||(e.dataTransfer?(0,MS.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(r="file"),v(r)},onDragEnd(){p(!1),v(void 0)},onDragEnter(){h(!0)},onDragLeave(){h(!1)}}),y=(0,d.useReducedMotion)();let w;const x={hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},_={hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}};m&&(w=(0,s.createElement)(Kl.div,{variants:x,initial:y?"show":"hidden",animate:"show",exit:y?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,s.createElement)(Kl.div,{variants:_},(0,s.createElement)(cy,{icon:uM,className:"components-drop-zone__content-icon"}),(0,s.createElement)("span",{className:"components-drop-zone__content-text"},n||(0,u.__)("Drop files to upload")))));const E=c()("components-drop-zone",t,{"is-active":(f||m)&&("file"===g&&r||"html"===g&&o||"default"===g&&i),"is-dragging-over-document":f,"is-dragging-over-element":m,[`is-dragging-${g}`]:!!g});return(0,s.createElement)("div",a({},l,{ref:b,className:E}),y?w:(0,s.createElement)(Lm,null,w))};function fM(e){let{children:t}=e;return Jl()("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."}),t}var pM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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 mM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"90deg";const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}xp([_p]);var hM=function(e){let{values:t}=e;return t?(0,s.createElement)(Qb,{colorValue:mM(t,"135deg")}):(0,s.createElement)(ec,{icon:pM})};function gM(e){let{label:t,value:n,colors:r,disableCustomColors:o,enableAlpha:i,onChange:a}=e;const[l,c]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(ad,{className:"components-color-list-picker__swatch-button",onClick:()=>c((e=>!e))},(0,s.createElement)(qv,{justify:"flex-start",spacing:2},n?(0,s.createElement)(Qb,{colorValue:n,className:"components-color-list-picker__swatch-color"}):(0,s.createElement)(ec,{icon:pM}),(0,s.createElement)("span",null,t))),l&&(0,s.createElement)(tE,{className:"components-color-list-picker__color-picker",colors:r,value:n,clearable:!1,onChange:a,disableCustomColors:o,enableAlpha:i}))}var vM=function(e){let{colors:t,labels:n,value:r=[],disableCustomColors:o,enableAlpha:i,onChange:a}=e;return(0,s.createElement)("div",{className:"components-color-list-picker"},n.map(((e,n)=>(0,s.createElement)(gM,{key:n,label:e,value:r[n],colors:t,disableCustomColors:o,enableAlpha:i,onChange:e=>{const t=r.slice();t[n]=e,a(t)}}))))};const bM=["#333","#CCC"];function yM(e){let{value:t,onChange:n}=e;const r=!!t,o=r?t:bM,i=mM(o),a=(l=o).map(((e,t)=>({position:100*t/(l.length-1),color:e})));var l;return(0,s.createElement)(dS,{disableInserter:!0,background:i,hasGradient:r,value:a,onChange:e=>{const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{color:t}=e;return t}))}(e);n(t)}})}var wM=function(e){let{clearable:t=!0,unsetable:n=!0,colorPalette:r,duotonePalette:o,disableCustomColors:i,disableCustomDuotone:a,value:l,onChange:c}=e;const[d,f]=(0,s.useMemo)((()=>{return!(e=r)||e.length<2?["#000","#fff"]:e.map((e=>{let{color:t}=e;return{color:t,brightness:yp(t).brightness()}})).reduce(((e,t)=>{let[n,r]=e;return[t.brightness<=n.brightness?t:n,t.brightness>=r.brightness?t:r]}),[{brightness:1},{brightness:0}]).map((e=>{let{color:t}=e;return t}));var e}),[r]),p="unset"===l,m=(0,s.createElement)($_.Option,{key:"unset",value:"unset",isSelected:p,tooltipText:(0,u.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{c(p?void 0:"unset")}}),h=o.map((e=>{let{colors:t,slug:n,name:r}=e;const o={background:mM(t,"135deg"),color:"transparent"},i=null!=r?r:(0,u.sprintf)((0,u.__)("Duotone code: %s"),n),a=r?(0,u.sprintf)((0,u.__)("Duotone: %s"),r):i,d=nc()(t,l);return(0,s.createElement)($_.Option,{key:n,value:t,isSelected:d,"aria-label":a,tooltipText:i,style:o,onClick:()=>{c(d?void 0:t)}})}));return(0,s.createElement)($_,{options:n?[m,...h]:h,actions:!!t&&(0,s.createElement)($_.ButtonAction,{onClick:()=>c(void 0)},(0,u.__)("Clear"))},(0,s.createElement)(Zv,{paddingTop:4},(0,s.createElement)(W_,{spacing:3},!i&&!a&&(0,s.createElement)(yM,{value:p?void 0:l,onChange:c}),!a&&(0,s.createElement)(vM,{labels:[(0,u.__)("Shadows"),(0,u.__)("Highlights")],colors:r,value:p?void 0:l,disableCustomColors:i,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=d),e[1]||(e[1]=f);const t=e.length>=2?e:void 0;c(t)}}))))};var xM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));const _M=ed(cy,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var EM=(0,s.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...l}=e,d=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),f=c()("components-external-link",o),p=!(null==n||!n.startsWith("#"));return(0,s.createElement)("a",a({},l,{className:f,href:n,onClick:t=>{p&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:d,ref:t}),r,(0,s.createElement)(rd,{as:"span"},(0,u.__)("(opens in a new tab)")),(0,s.createElement)(_M,{icon:xM,className:"components-external-link__icon"}))}));const CM={width:200,height:170},kM=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function SM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split(".");return t[t.length-1]}function TM(e){return Math.round(100*e)}const NM=ed("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),RM=ed("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),IM=ed("div",{target:"eeew7dm6"})("background:",Np.gray[100],";box-sizing:border-box;height:",CM.height,"px;max-width:280px;min-width:",CM.width,"px;width:100%;"),MM=ed(vE,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var PM={name:"1mn7kwb",styles:"padding-bottom:1em"};const OM=e=>{let{__nextHasNoMarginBottom:t}=e;return t?void 0:PM};var DM={name:"1mn7kwb",styles:"padding-bottom:1em"};const AM=e=>{let{hasHelpText:t=!1}=e;return t?DM:void 0},LM=ed(Qm,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",AM," ",OM,";"),zM=ed("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(e=>{let{showOverlay:t}=e;return t?1:0}),";"),BM=ed("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),FM=ed(BM,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),VM=ed(BM,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),HM=()=>{};function jM(e){let{__nextHasNoMarginBottom:t,hasHelpText:n,onChange:r=HM,point:o={x:.5,y:.5}}=e;const i=TM(o.x),a=TM(o.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||r({...o,[t]:n/100})};return(0,s.createElement)(LM,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:t,hasHelpText:n},(0,s.createElement)($M,{label:(0,u.__)("Left"),value:[i,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,s.createElement)($M,{label:(0,u.__)("Top"),value:[a,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"}))}function $M(e){return(0,s.createElement)(MM,a({className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:100,min:0,units:[{value:"%",label:"%"}]},e))}const WM=ed("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:48px;margin:-24px 0 0 -24px;position:absolute;user-select:none;width:48px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.6 );border-radius:50%;backdrop-filter:blur( 4px );box-shadow:rgb( 0 0 0 / 20% ) 0px 0px 10px;",(e=>{let{isDragging:t}=e;return t&&"cursor: grabbing;"}),";");function UM(e){let{left:t="50%",top:n="50%",...r}=e;const o=c()("components-focal-point-picker__icon_container"),i={left:t,top:n};return(0,s.createElement)(WM,a({},r,{className:o,style:i}))}function GM(e){let{bounds:t,...n}=e;return(0,s.createElement)(zM,a({},n,{className:"components-focal-point-picker__grid",style:{width:t.width,height:t.height}}),(0,s.createElement)(FM,{style:{top:"33%"}}),(0,s.createElement)(FM,{style:{top:"66%"}}),(0,s.createElement)(VM,{style:{left:"33%"}}),(0,s.createElement)(VM,{style:{left:"66%"}}))}function YM(e){let{alt:t,autoPlay:n,src:r,onLoad:o,mediaRef:i,muted:l=!0,...c}=e;if(!r)return(0,s.createElement)(IM,a({className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:i},c));const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&(e.startsWith("data:video/")||kM.includes(SM(e)))}(r);return u?(0,s.createElement)("video",a({},c,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:l,onLoadedData:o,ref:i,src:r})):(0,s.createElement)("img",a({},c,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:i,src:r}))}var qM=function e(t){let{__nextHasNoMarginBottom:n,autoPlay:r=!0,className:o,help:i,label:l,onChange:f,onDrag:p,onDragEnd:m,onDragStart:h,resolvePoint:g,url:v,value:b={x:.5,y:.5},...y}=t;const[w,x]=(0,s.useState)(b),[_,E]=(0,s.useState)(!1),{startDrag:C,endDrag:k,isDragging:S}=(0,d.__experimentalUseDragging)({onDragStart:e=>{var t;null===(t=R.current)||void 0===t||t.focus();const n=O(e);n&&(null==h||h(n,e),x(n))},onDragMove:e=>{e.preventDefault();const t=O(e);t&&(null==p||p(t,e),x(t))},onDragEnd:()=>{null==m||m(),null==f||f(w)}}),{x:T,y:N}=S?w:b,R=(0,s.useRef)(null),[I,M]=(0,s.useState)(CM),P=(0,s.useRef)((()=>{if(!R.current)return;const{clientWidth:e,clientHeight:t}=R.current;M(e>0&&t>0?{width:e,height:t}:{...CM})}));(0,s.useEffect)((()=>{const e=P.current;if(!R.current)return;const{defaultView:t}=R.current.ownerDocument;return null==t||t.addEventListener("resize",e),()=>null==t?void 0:t.removeEventListener("resize",e)}),[]),(0,d.useIsomorphicLayoutEffect)((()=>{P.current()}),[]);const O=e=>{let{clientX:t,clientY:n,shiftKey:r}=e;if(!R.current)return;const{top:o,left:i}=R.current.getBoundingClientRect();let a=(t-i)/I.width,s=(n-o)/I.height;return r&&(a=.1*Math.round(a/.1),s=.1*Math.round(s/.1)),D({x:a,y:s})},D=e=>{var t;const n=null!==(t=null==g?void 0:g(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:T*I.width,top:N*I.height},L=c()("components-focal-point-picker-control",o),z=`inspector-focal-point-picker-control-${(0,d.useInstanceId)(e)}`;return oc((()=>{E(!0);const e=window.setTimeout((()=>{E(!1)}),600);return()=>window.clearTimeout(e)}),[T,N]),(0,s.createElement)(Iv,a({},y,{__nextHasNoMarginBottom:n,label:l,id:z,help:i,className:L}),(0,s.createElement)(NM,{className:"components-focal-point-picker-wrapper"},(0,s.createElement)(RM,{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:T,y:N},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,null==f||f(D(r))},onMouseDown:C,onBlur:()=>{S&&k()},ref:R,role:"button",tabIndex:-1},(0,s.createElement)(GM,{bounds:I,showOverlay:_}),(0,s.createElement)(YM,{alt:(0,u.__)("Media preview"),autoPlay:r,onLoad:P.current,src:v}),(0,s.createElement)(UM,a({},A,{isDragging:S})))),(0,s.createElement)(jM,{__nextHasNoMarginBottom:n,hasHelpText:!!i,point:{x:T,y:N},onChange:e=>{null==f||f(D(e))}}))};function KM(e){let{iframeRef:t,...n}=e;const r=(0,d.useMergeRefs)([t,(0,d.useFocusableIframe)()]);return Jl()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,s.createElement)("iframe",a({ref:r},n))}var XM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function ZM(e){const[t,...n]=e;if(!t)return null;const[,r]=cE(t.size);return n.every((e=>{const[,t]=cE(e.size);return t===r}))?r:null}const JM=ed("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),QM=ed(Iv.VisualLabel,{target:"e8tqeku3"})("display:flex;gap:",Zm(1),";justify-content:flex-start;margin-bottom:0;"),eP=ed("span",{target:"e8tqeku2"})("color:",Np.gray[700],";"),tP=ed("div",{target:"e8tqeku1"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${Zm(6)};`),";"),nP=ed(ad,{target:"e8tqeku0"})("&&&{height:",(e=>"__unstable-large"===e.size?"40px":"30px"),";}"),rP={key:"default",name:(0,u.__)("Default"),value:void 0},oP={key:"custom",name:(0,u.__)("Custom")};var iP=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:a,onSelectCustom:l}=e,c=!!ZM(n),d=[rP,...n.map((e=>{let t;if(c){const[n]=cE(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[oP]],f=r?null!==(t=d.find((e=>e.value===r)))&&void 0!==t?t:oP:rP;return(0,s.createElement)(RN,{__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"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:e=>{let{selectedItem:t}=e;t===oP?l():a(t.value)},size:i})};const aP=e=>{const t=Gf("border-color:",Np.ui.border,";","");return Gf(e&&t," &:hover{border-color:",Np.ui.borderHover,";}&:focus-within{border-color:",Np.ui.borderFocus,";box-shadow:",gh.controlBoxShadowFocus,";outline:none;z-index:1;}","")},sP=e=>Gf("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),lP={name:"7whenc",styles:"display:flex;width:100%"},cP=ed("div",{target:"eakva831"})("background:",Np.gray[900],";border-radius:",gh.controlBorderRadius,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",gh.transitionDurationFast," ease;",Rp("transition")," z-index:1;"),uP=ed("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function dP(e){void 0===e&&(e={});var t=Bp(e),n=t.state,r=t.loop,o=void 0===r||r,i=h(t,["state","loop"]),a=(0,b.useState)(n),s=a[0],l=a[1],c=am(m(m({},i),{},{loop:o}));return m(m({},c),{},{state:s,setState:l})}var fP=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],pP=[].concat(fP,["value","checked","unstable_checkOnFocus"]),mP=z({as:"div",useHook:F({name:"RadioGroup",compose:mm,keys:fP,useProps:function(e,t){return m({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return N(e,t,n)}});var hP=(0,s.memo)((function(e){let{containerRef:t,containerWidth:n,isAdaptiveWidth:r,state:o}=e;const[i,a]=(0,s.useState)(0),[l,c]=(0,s.useState)(0),[u,d]=(0,s.useState)(!1),[f,p]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const e=null==t?void 0:t.current;if(!e)return;const n=e.querySelector(`[data-value="${o}"]`);if(p(!!n),!n)return;const r=window.setTimeout((()=>{const{width:t,x:r}=n.getBoundingClientRect(),{x:o}=e.getBoundingClientRect();a(r-o-1),c(t)}),100);let i;return u||(i=window.requestAnimationFrame((()=>{d(!0)}))),()=>{window.clearTimeout(r),window.cancelAnimationFrame(i)}}),[u,t,n,o,r]),f?(0,s.createElement)(cP,{role:"presentation",style:{transform:`translateX(${i}px)`,transition:u?void 0:"none",width:l}}):null}));const gP=(0,s.createContext)({});var vP=gP;const bP=(0,s.forwardRef)((function(e,t){let{children:n,isAdaptiveWidth:r,label:o,onChange:i,size:l,value:c,...u}=e;const f=(0,s.useRef)(),[p,m]=(0,d.useResizeObserver)(),h=dP({baseId:(0,d.useInstanceId)(bP,"toggle-group-control-as-radio-group").toString(),state:c}),g=(0,d.usePrevious)(c);return oc((()=>{g!==h.state&&i(h.state)}),[h.state]),oc((()=>{c!==h.state&&h.setState(c)}),[c]),(0,s.createElement)(vP.Provider,{value:{...h,isBlock:!r,size:l}},(0,s.createElement)(mP,a({},h,{"aria-label":o,as:nd},u,{ref:(0,d.useMergeRefs)([f,t])}),p,(0,s.createElement)(hP,{state:h.state,containerRef:f,containerWidth:m.width,isAdaptiveWidth:r}),n))}));const yP=(0,s.forwardRef)((function(e,t){let{children:n,isAdaptiveWidth:r,label:o,onChange:i,size:l,value:c,...u}=e;const f=(0,s.useRef)(),[p,m]=(0,d.useResizeObserver)(),h=(0,d.useInstanceId)(yP,"toggle-group-control-as-button-group").toString(),[g,v]=(0,s.useState)(c),b={baseId:h,state:g,setState:v},y=(0,d.usePrevious)(c);return oc((()=>{y!==b.state&&i(b.state)}),[b.state]),oc((()=>{c!==b.state&&b.setState(c)}),[c]),(0,s.createElement)(vP.Provider,{value:{...b,isBlock:!r,isDeselectable:!0,size:l}},(0,s.createElement)(nd,a({"aria-label":o},u,{ref:(0,d.useMergeRefs)([f,t]),role:"group"}),p,(0,s.createElement)(hP,{state:b.state,containerRef:f,containerWidth:m.width,isAdaptiveWidth:r}),n))})),wP=()=>{};const xP=$u((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:l=!1,label:c,hideLabelFromVision:u=!1,help:d,onChange:f=wP,size:p="default",value:m,children:h,...g}=ju(e,"ToggleGroupControl"),v=Hu(),b=(0,s.useMemo)((()=>v((e=>{let{isBlock:t,isDeselectable:n,size:r}=e;return Gf("background:",Np.ui.background,";border:1px solid transparent;border-radius:",gh.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",gh.transitionDurationFastest," linear;",Rp("transition")," ",sP(r)," ",!n&&aP(t),";","")})({isBlock:i,isDeselectable:l,size:p}),i&&lP,r)),[r,v,i,l,p]),y=l?yP:bP;return(0,s.createElement)(Iv,{help:d,__nextHasNoMarginBottom:n},!u&&(0,s.createElement)(uP,null,(0,s.createElement)(Iv.VisualLabel,null,c)),(0,s.createElement)(y,a({},g,{children:h,className:b,isAdaptiveWidth:o,label:c,onChange:f,ref:t,size:p,value:m})))}),"ToggleGroupControl");var _P=xP;function EP(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function CP(e,t){var n=_e(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var kP=F({name:"Radio",compose:ke,keys:pP,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=h(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return m(m({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=h(t,["ref","onChange","onClick"]),a=(0,b.useRef)(null),s=(0,b.useState)(!0),l=s[0],c=s[1],u=EP(e),d=G(e.currentId===e.id),f=G(r),p=G(o);!function(e){var t=(0,b.useState)((function(){return EP(e)}))[0],n=(0,b.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,b.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,b.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var g=(0,b.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),v=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||l||CP(e.currentTarget,g)}),[g,l]);return(0,b.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&CP(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),m({ref:H(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:g,onClick:v},i)}}),SP=z({as:"input",memo:!0,useHook:kP});const TP=ed("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),NP={name:"82a6rk",styles:"flex:1"},RP=e=>{let{isDeselectable:t,isIcon:n,isPressed:r,size:o}=e;return Gf("align-items:center;appearance:none;background:transparent;border:none;border-radius:",gh.controlBorderRadius,";color:",Np.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 ",gh.transitionDurationFast," linear,color ",gh.transitionDurationFast," linear,font-weight 60ms linear;",Rp("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",gh.toggleGroupControlBackgroundColor,";}",t&&MP," ",n&&OP({size:o})," ",r&&IP,";","")},IP=Gf("color:",Np.white,";&:active{background:transparent;}",""),MP=Gf("color:",Np.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Np.white,",0 0 0 ",gh.borderWidthFocus," ",Np.ui.theme,";outline:2px solid transparent;}",""),PP=ed("div",{target:"et6ln9s0"})("display:flex;font-size:",gh.fontSize,";line-height:1;"),OP=e=>{let{size:t="default"}=e;return Gf("color:",Np.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[t],";padding-left:0;padding-right:0;","")},{ButtonContentView:DP,LabelView:AP}=o,LP=e=>{let{showTooltip:t,text:n,children:r}=e;return t&&n?(0,s.createElement)(Vf,{text:n,position:"top center"},r):(0,s.createElement)(s.Fragment,null,r)};const zP=$u((function e(t,n){const r=(0,s.useContext)(gP),o=ju({...t,id:(0,d.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:l=!1,size:c="default",...u}=r,{className:f,isIcon:p=!1,value:m,children:h,showTooltip:g=!1,...v}=o,b=u.state===m,y=Hu(),w=y(i&&NP),x=y(RP({isDeselectable:l,isIcon:p,isPressed:b,size:c}),f),_={...v,className:x,"data-value":m,ref:n};return(0,s.createElement)(AP,{className:w},(0,s.createElement)(LP,{showTooltip:g,text:v["aria-label"]},l?(0,s.createElement)("button",a({},_,{"aria-pressed":b,type:"button",onClick:()=>{l&&b?u.setState(void 0):u.setState(m)}}),(0,s.createElement)(DP,null,h)):(0,s.createElement)(SP,a({},_,u,{as:"button",value:m}),(0,s.createElement)(DP,null,h))))}),"ToggleGroupControlOptionBase");var BP=zP;var FP=(0,s.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,s.createElement)(BP,a({},r,{"aria-label":o,ref:t}),n)}));const VP=[(0,u.__)("S"),(0,u.__)("M"),(0,u.__)("L"),(0,u.__)("XL"),(0,u.__)("XXL")],HP=[(0,u.__)("Small"),(0,u.__)("Medium"),(0,u.__)("Large"),(0,u.__)("Extra Large"),(0,u.__)("Extra Extra Large")];var jP=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,s.createElement)(_P,{__nextHasNoMarginBottom:r,label:(0,u.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,s.createElement)(FP,{key:e.slug,value:e.size,label:VP[t],"aria-label":e.name||HP[t],showTooltip:!0}))))};const $P=(0,s.forwardRef)(((e,t)=>{var n;const{__nextHasNoMarginBottom:r=!1,fallbackFontSize:o,fontSizes:i=[],disableCustomFontSizes:a=!1,onChange:l,size:c="default",value:d,withSlider:f=!1,withReset:p=!0}=e;r||Jl()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const m=dE({availableUnits:["px","em","rem"]}),h=i.length>5,g=i.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,s.useState)(!a&&v),w=(0,s.useMemo)((()=>{if(b)return(0,u.__)("Custom");if(!h)return g?g.name||HP[i.indexOf(g)]:"";const e=ZM(i);return e?`(${e})`:""}),[b,h,g,i]);if(0===i.length&&a)return null;const x="string"==typeof d||"string"==typeof(null===(n=i[0])||void 0===n?void 0:n.size),[_,E]=cE(d,m),C=!!E&&["em","rem"].includes(E);return(0,s.createElement)(JM,{ref:t,className:"components-font-size-picker"},(0,s.createElement)(rd,{as:"legend"},(0,u.__)("Font size")),(0,s.createElement)(Zv,null,(0,s.createElement)(qv,{className:"components-font-size-picker__header"},(0,s.createElement)(QM,{"aria-label":`${(0,u.__)("Size")} ${w||""}`},(0,u.__)("Size"),w&&(0,s.createElement)(eP,{className:"components-font-size-picker__header__hint"},w)),!a&&(0,s.createElement)(ad,{label:b?(0,u.__)("Use size preset"):(0,u.__)("Set custom size"),icon:XM,onClick:()=>{y(!b)},isPressed:b,isSmall:!0}))),(0,s.createElement)(tP,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:r},!!i.length&&h&&!b&&(0,s.createElement)(iP,{fontSizes:i,value:d,disableCustomFontSizes:a,size:c,onChange:e=>{void 0===e?null==l||l(void 0):null==l||l(x?e:Number(e),i.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,s.createElement)(jP,{fontSizes:i,value:d,__nextHasNoMarginBottom:r,size:c,onChange:e=>{void 0===e?null==l||l(void 0):null==l||l(x?e:Number(e),i.find((t=>t.size===e)))}}),!a&&b&&(0,s.createElement)(Qm,{className:"components-font-size-picker__custom-size-control"},(0,s.createElement)(Um,{isBlock:!0},(0,s.createElement)(vE,{label:(0,u.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{void 0===e?null==l||l(void 0):null==l||l(x?e:parseInt(e,10))},size:c,units:x?m:[],min:0})),f&&(0,s.createElement)(Um,{isBlock:!0},(0,s.createElement)(Zv,{marginX:2,marginBottom:0},(0,s.createElement)(Uy,{__nextHasNoMarginBottom:r,className:"components-font-size-picker__custom-input",label:(0,u.__)("Custom Size"),hideLabelFromVision:!0,value:_,initialPosition:o,withInputField:!1,onChange:e=>{void 0===e?null==l||l(void 0):x?null==l||l(e+(null!=E?E:"px")):null==l||l(e)},min:0,max:C?10:100,step:C?.1:1}))),p&&(0,s.createElement)(Um,null,(0,s.createElement)(nP,{disabled:void 0===d,onClick:()=>{null==l||l(void 0)},isSmall:!0,variant:"secondary",size:c},(0,u.__)("Reset"))))))}));var WP=$P;var UP=function(e){let{accept:t,children:n,multiple:r=!1,onChange:o,onClick:i,render:l,...c}=e;const u=(0,s.useRef)(null),d=()=>{var e;null===(e=u.current)||void 0===e||e.click()},f=l?l({openFileDialog:d}):(0,s.createElement)(ad,a({onClick:d},c),n);return(0,s.createElement)("div",{className:"components-form-file-upload"},f,(0,s.createElement)("input",{type:"file",ref:u,multiple:r,style:{display:"none"},accept:t,onChange:o,onClick:i,"data-testid":"form-file-upload-input"}))};const GP=()=>{};var YP=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=GP,...l}=e,u=c()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,s.createElement)("span",{className:u},(0,s.createElement)("input",a({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o},l)),(0,s.createElement)("span",{className:"components-form-toggle__track"}),(0,s.createElement)("span",{className:"components-form-toggle__thumb"}))};const qP=()=>{};function KP(e){let{value:t,status:n,title:r,displayTransform:o,isBorderless:i=!1,disabled:a=!1,onClickRemove:l=qP,onMouseEnter:f,onMouseLeave:p,messages:m,termPosition:h,termsCount:g}=e;const v=(0,d.useInstanceId)(KP),b=c()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"is-disabled":a}),y=o(t),w=(0,u.sprintf)((0,u.__)("%1$s (%2$s of %3$s)"),y,h,g);return(0,s.createElement)("span",{className:b,onMouseEnter:f,onMouseLeave:p,title:r},(0,s.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${v}`},(0,s.createElement)(rd,{as:"span"},w),(0,s.createElement)("span",{"aria-hidden":"true"},y)),(0,s.createElement)(ad,{className:"components-form-token-field__remove-token",icon:Mb,onClick:a?void 0:()=>l({value:t}),label:m.remove,"aria-describedby":`components-form-token-field__token-text-${v}`}))}const XP=e=>{let{__next36pxDefaultSize:t,hasTokens:n}=e;return!t&&Gf("padding-top:",Zm(n?1:.5),";padding-bottom:",Zm(n?1:.5),";","")},ZP=ed(Qm,{target:"ehq8nmi0"})("padding:5px ",Zm(1),";",XP,";"),JP=e=>e;var QP=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:l=(0,u.__)("Add item"),className:f,suggestions:p=[],maxSuggestions:m=100,value:h=[],displayTransform:g=JP,saveTransform:v=(e=>e.trim()),onChange:b=(()=>{}),onInputChange:y=(()=>{}),onFocus:w,isBorderless:x=!1,disabled:_=!1,tokenizeOnSpace:E=!1,messages:C={added:(0,u.__)("Item added."),removed:(0,u.__)("Item removed."),remove:(0,u.__)("Remove item"),__experimentalInvalid:(0,u.__)("Invalid item")},__experimentalRenderItem:k,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:T=(()=>!0),__experimentalShowHowTo:N=!0,__next36pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:I=!1}=t,M=(0,d.useInstanceId)(e),[P,O]=(0,s.useState)(""),[D,A]=(0,s.useState)(0),[L,z]=(0,s.useState)(!1),[B,F]=(0,s.useState)(!1),[V,H]=(0,s.useState)(-1),[j,$]=(0,s.useState)(!1),W=(0,d.usePrevious)(p),U=(0,d.usePrevious)(h),G=(0,s.useRef)(null),Y=(0,s.useRef)(null),q=(0,d.useDebounce)(db.speak,500);function K(){var e;null===(e=G.current)||void 0===e||e.focus()}function X(){var e;return G.current===(null===(e=G.current)||void 0===e?void 0:e.ownerDocument.activeElement)}function Z(){fe()?z(!1):(O(""),A(0),z(!1),F(!1),H(-1),$(!1))}function J(e){e.target===Y.current&&L&&e.preventDefault()}function Q(e){se(e.value),K()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),y(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(h[e])}function re(){const e=ue();e<h.length&&(se(h[e]),function(e){A(h.length-Math.max(e,-1)-1)}(e))}function oe(){let e=!1;const t=function(){if(-1!==V)return ce()[V];return}();return t?(ae(t),e=!0):fe()&&(ae(P),e=!0),e}function ie(e){const t=[...new Set(e.map(v).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),b(e)}}function ae(e){T(e)?(ie([e]),(0,db.speak)(C.added,"assertive"),O(""),H(-1),$(!1),F(!S),L&&K()):(0,db.speak)(C.__experimentalInvalid,"assertive")}function se(e){const t=h.filter((t=>le(t)!==le(e)));b(t),(0,db.speak)(C.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v,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 ue(){return h.length-D}function de(){return 0===P.length}function fe(){return v(P).length>0}function pe(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=P.trim().length>1,n=ce(P),r=n.length>0,o=X()&&S;if(F(o||t&&r),e&&(I&&t&&r?(H(0),$(!0)):(H(-1),$(!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.");q(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,a=n.length;return(0,s.createElement)(Um,{key:"token-"+r},(0,s.createElement)(KP,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:g,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&&_,messages:C,termsCount:a,termPosition:i}))}(0,s.useEffect)((()=>{L&&!X()&&K()}),[L]),(0,s.useEffect)((()=>{const e=!pf()(p,W||[]);(e||h!==U)&&pe(e)}),[p,W,h,U]),(0,s.useEffect)((()=>{pe()}),[P]),(0,s.useEffect)((()=>{pe()}),[I]),_&&L&&(z(!1),O(""));const he=c()(f,"components-form-token-field__input-container",{"is-active":L,"is-disabled":_});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return _||(ge=Object.assign({},ge,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,h.length))),e=!0),e}();break;case"ArrowUp":H((e=>(0===e?ce(P,p,h,m,v).length:e)-1)),$(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":H((e=>(e+1)%ce(P,p,h,m,v).length)),$(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":E&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),F(!1),H(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(P),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===Y.current?(z(!0),F(S||B)):z(!1),"function"==typeof w&&w(e)}})),(0,s.createElement)("div",ge,(0,s.createElement)(kv,{htmlFor:`components-form-token-input-${M}`,className:"components-form-token-field__label"},l),(0,s.createElement)("div",{ref:Y,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,s.createElement)(ZP,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next36pxDefaultSize:R,hasTokens:!!h.length},function(){const e=h.map(me);return e.splice(ue(),0,function(){const e={instanceId:M,autoCapitalize:n,autoComplete:r,placeholder:0===h.length?i:"",key:"input",disabled:_,value:P,onBlur:Z,isExpanded:B,selectedSuggestionIndex:V};return(0,s.createElement)(lT,a({},e,{onChange:o&&h.length>=o?void 0:ee,ref:G}))}()),e}()),B&&(0,s.createElement)(fT,{instanceId:M,match:v(P),displayTransform:g,suggestions:ve,selectedIndex:V,scrollIntoView:j,onHover:function(e){const t=ce().indexOf(e);t>=0&&(H(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:k})),N&&(0,s.createElement)("p",{id:`components-form-token-suggestions-howto-${M}`,className:"components-form-token-field__help"},E?(0,u.__)("Separate with commas, spaces, or the Enter key."):(0,u.__)("Separate with commas or the Enter key.")))};const eO=e=>{let{isSelected:t}=e;return(0,s.createElement)(i.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Circle,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function tO(e){let{currentPage:t,numberOfPages:n,setCurrentPage:r}=e;return(0,s.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,u.__)("Guide controls")},Array.from({length:n}).map(((e,o)=>(0,s.createElement)("li",{key:o,"aria-current":o===t?"step":void 0},(0,s.createElement)(ad,{key:o,icon:(0,s.createElement)(eO,{isSelected:o===t}),"aria-label":(0,u.sprintf)((0,u.__)("Page %1$d of %2$d"),o+1,n),onClick:()=>r(o)})))))}function nO(e){let{children:t,className:n,contentLabel:r,finishButtonText:o,onFinish:i,pages:a=[]}=e;const l=(0,s.useRef)(),[d,f]=(0,s.useState)(0);(0,s.useEffect)((()=>{s.Children.count(t)&&Jl()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[t]),(0,s.useEffect)((()=>{var e,t;l.current&&(null===(e=MS.focus.tabbable.find(l.current))||void 0===e||null===(t=e[0])||void 0===t||t.focus())}),[d]),s.Children.count(t)&&(a=s.Children.map(t,(e=>({content:e}))));const p=d>0,m=d<a.length-1,h=()=>{p&&f(d-1)},g=()=>{m&&f(d+1)};return 0===a.length?null:(0,s.createElement)(ET,{className:c()("components-guide",n),contentLabel:r,onRequestClose:i,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:l},(0,s.createElement)("div",{className:"components-guide__container"},(0,s.createElement)("div",{className:"components-guide__page"},a[d].image,a.length>1&&(0,s.createElement)(tO,{currentPage:d,numberOfPages:a.length,setCurrentPage:f}),a[d].content),(0,s.createElement)("div",{className:"components-guide__footer"},p&&(0,s.createElement)(ad,{className:"components-guide__back-button",onClick:h},(0,u.__)("Previous")),m&&(0,s.createElement)(ad,{className:"components-guide__forward-button",onClick:g},(0,u.__)("Next")),!m&&(0,s.createElement)(ad,{className:"components-guide__finish-button",onClick:i},o||(0,u.__)("Finish")))))}function rO(e){return(0,s.useEffect)((()=>{Jl()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,s.createElement)("div",e)}var oO=(0,s.forwardRef)((function(e,t){let{label:n,labelPosition:r,size:o,tooltip:i,...l}=e;return Jl()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,s.createElement)(ad,a({},l,{ref:t,tooltipPosition:r,iconSize:o,showTooltip:void 0!==i?!!i:void 0,label:i||n}))}));const iO=$u((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=ju(e,"Item"),{spacedAround:l,size:c}=Jk(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Hu(),p=(0,s.useMemo)((()=>f("button"===d&&Bk,Xk[u]||Xk.medium,Vk,l&&Wk,n)),[d,n,f,u,l]),m=f(Fk);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...a}}(e);return(0,s.createElement)("div",{role:n,className:r},(0,s.createElement)(nd,a({},o,{ref:t})))}),"Item");var aO=iO;var sO=$u((function(e,t){const n=ju(e,"InputControlPrefixWrapper");return(0,s.createElement)(Zv,a({marginBottom:0},n,{ref:t}))}),"InputControlPrefixWrapper");function lO(e){let{target:t,callback:n,shortcut:r,bindGlobal:o,eventName:i}=e;return(0,d.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var cO=function(e){let{children:t,shortcuts:n,bindGlobal:r,eventName:o}=e;const i=(0,s.useRef)(null),a=Object.entries(null!=n?n:{}).map((e=>{let[t,n]=e;return(0,s.createElement)(lO,{key:t,shortcut:t,callback:n,bindGlobal:r,eventName:o,target:i})}));return s.Children.count(t)?(0,s.createElement)("div",{ref:i},a,t):(0,s.createElement)(s.Fragment,null,a)};var uO=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=(0,d.useInstanceId)(e);if(!s.Children.count(n))return null;const l=`components-menu-group-label-${a}`,u=c()(r,"components-menu-group",{"has-hidden-separator":i});return(0,s.createElement)("div",{className:u},o&&(0,s.createElement)("div",{className:"components-menu-group__label",id:l,"aria-hidden":"true"},o),(0,s.createElement)("div",{role:"group","aria-labelledby":o?l:void 0},n))};var dO=(0,s.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:l="right",shortcut:u,isSelected:d,role:f="menuitem",suffix:p,...m}=e;return o=c()("components-menu-item__button",o),r&&(n=(0,s.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,s.createElement)("span",{className:"components-menu-item__item"},n),(0,s.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,s.cloneElement)(i,{className:c()("components-menu-items__item-icon",{"has-icon-right":"right"===l})})),(0,s.createElement)(ad,a({ref:t,"aria-checked":"menuitemcheckbox"===f||"menuitemradio"===f?d:void 0,role:f,icon:"left"===l?i:void 0,className:o},m),(0,s.createElement)("span",{className:"components-menu-item__item"},n),!p&&(0,s.createElement)(Df,{className:"components-menu-item__shortcut",shortcut:u}),!p&&i&&"right"===l&&(0,s.createElement)(ec,{icon:i}),p)}));const fO=()=>{};function pO(e){let{choices:t=[],onHover:n=fO,onSelect:r,value:o}=e;return t.map((e=>{const t=o===e.value;return(0,s.createElement)(dO,{key:e.value,role:"menuitemradio",icon:t&&j_,info:e.info,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{t||r(e.value)},onMouseEnter:()=>n(e.value),onMouseLeave:()=>n(null),"aria-label":e["aria-label"]},e.label)}))}var mO=(0,s.forwardRef)((function(e,t){let{eventToOffset:n,...r}=e;return(0,s.createElement)(LS,a({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{code:t,shiftKey:r}=e;return"Tab"===t?r?-1:1:n?n(e):void 0}},r))}));const hO="root",gO=()=>{},vO=(0,s.createContext)({activeItem:void 0,activeMenu:hO,setActiveMenu:gO,isMenuEmpty:gO,navigationTree:{items:{},getItem:gO,addItem:gO,removeItem:gO,menus:{},getMenu:gO,addMenu:gO,removeMenu:gO,childMenu:{},traverseMenu:gO,isMenuEmpty:gO}}),bO=()=>(0,s.useContext)(vO);var yO=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));const wO=(0,s.forwardRef)((function(e,t){let{__nextHasNoMarginBottom:n,className:r,onChange:o,onKeyDown:i,value:l,label:f,placeholder:p=(0,u.__)("Search"),hideLabelFromVision:m=!0,help:h,onClose:g,...v}=e;const b=(0,s.useRef)(),y=`components-search-control-${(0,d.useInstanceId)(wO)}`;return(0,s.createElement)(Iv,{__nextHasNoMarginBottom:n,label:f,id:y,hideLabelFromVision:m,help:h,className:c()(r,"components-search-control")},(0,s.createElement)("div",{className:"components-search-control__input-wrapper"},(0,s.createElement)("input",a({},v,{ref:(0,d.useMergeRefs)([b,t]),className:"components-search-control__input",id:y,type:"search",placeholder:p,onChange:e=>o(e.target.value),onKeyDown:i,autoComplete:"off",value:l||""})),(0,s.createElement)("div",{className:"components-search-control__icon"},g?(0,s.createElement)(ad,{icon:Mb,label:(0,u.__)("Close search"),onClick:g}):l?(0,s.createElement)(ad,{icon:Mb,label:(0,u.__)("Reset search"),onClick:()=>{var e;o(""),null===(e=b.current)||void 0===e||e.focus()}}):(0,s.createElement)(cy,{icon:yO}))))}));var xO=wO;const _O=ed("div",{target:"ejwewyf11"})("width:100%;box-sizing:border-box;padding:0 ",Zm(4),";overflow:hidden;"),EO=ed("div",{target:"ejwewyf10"})("margin-top:",Zm(6),";margin-bottom:",Zm(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",Zm(6),";}.components-navigation__group+.components-navigation__group{margin-top:",Zm(6),";}"),CO=ed(ad,{target:"ejwewyf9"})({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;}}"}),kO=ed("div",{target:"ejwewyf8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),SO=ed("span",{target:"ejwewyf7"})("height:",Zm(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",Zm(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),TO=ed(xO,{target:"ejwewyf6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),NO=ed(G_,{target:"ejwewyf5"})("min-height:",Zm(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",Zm(2),";padding:",(()=>(0,u.isRTL)()?`${Zm(1)} ${Zm(4)} ${Zm(1)} ${Zm(2)}`:`${Zm(1)} ${Zm(2)} ${Zm(1)} ${Zm(4)}`),";"),RO=ed("li",{target:"ejwewyf4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",Zm(2)," ",Zm(4),";",Vh({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:",Np.ui.theme,";color:",Np.white,";>button,>a{color:",Np.white,";opacity:1;}}>svg path{color:",Np.gray[600],";}"),IO=ed("div",{target:"ejwewyf3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",Zm(1.5)," ",Zm(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),MO=ed("span",{target:"ejwewyf2"})("display:flex;margin-right:",Zm(2),";"),PO=ed("span",{target:"ejwewyf1"})("margin-left:",(()=>(0,u.isRTL)()?"0":Zm(2)),";margin-right:",(()=>(0,u.isRTL)()?Zm(2):"0"),";display:inline-flex;padding:",Zm(1)," ",Zm(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Rp("animation"),";"),OO=ed(Ph,{target:"ejwewyf0"})((()=>(0,u.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;"),DO=()=>{const[e,t]=(0,s.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}))}},AO=()=>{};function LO(e){let{activeItem:t,activeMenu:n=hO,children:r,className:o,onActivateMenu:i=AO}=e;const[a,l]=(0,s.useState)(n),[d,f]=(0,s.useState)(),p=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=DO(),{nodes:o,getNode:i,addNode:a,removeNode:l}=DO(),[c,u]=(0,s.useState)({}),d=e=>c[e]||[],f=(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,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r})),a(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),m=(0,u.isRTL)()?"right":"left",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;p.getMenu(e)&&(f(t),l(e),i(e))},g=(0,s.useRef)(!1);(0,s.useEffect)((()=>{g.current||(g.current=!0)}),[]),(0,s.useEffect)((()=>{n!==a&&h(n)}),[n]);const v={activeItem:t,activeMenu:a,setActiveMenu:h,navigationTree:p},b=c()("components-navigation",o),y=Nm({type:"slide-in",origin:d});return(0,s.createElement)(_O,{className:b},(0,s.createElement)("div",{key:a,className:c()({[y]:g.current&&d})},(0,s.createElement)(vO.Provider,{value:v},r)))}var zO=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var BO=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var FO=(0,s.forwardRef)((function(e,t){var n;let{backButtonLabel:r,className:o,href:i,onClick:a,parentMenu:l}=e;const{setActiveMenu:d,navigationTree:f}=bO(),p=c()("components-navigation__back-button",o),m=null===(n=f.getMenu(l))||void 0===n?void 0:n.title,h=(0,u.isRTL)()?zO:BO;return(0,s.createElement)(CO,{className:p,href:i,variant:"tertiary",ref:t,onClick:e=>{"function"==typeof a&&a(e);const t=(0,u.isRTL)()?"left":"right";l&&!e.defaultPrevented&&d(l,t)}},(0,s.createElement)(cy,{icon:h}),r||m||(0,u.__)("Back"))}));const VO=(0,s.createContext)({group:void 0});let HO=0;function jO(e){let{children:t,className:n,title:r}=e;const[o]=(0,s.useState)("group-"+ ++HO),{navigationTree:{items:i}}=bO(),a={group:o};if(!Object.values(i).some((e=>e.group===o&&e._isVisible)))return(0,s.createElement)(VO.Provider,{value:a},t);const l=`components-navigation__group-title-${o}`,u=c()("components-navigation__group",n);return(0,s.createElement)(VO.Provider,{value:a},(0,s.createElement)("li",{className:u},r&&(0,s.createElement)(NO,{className:"components-navigation__group-title",id:l,level:3},r),(0,s.createElement)("ul",{"aria-labelledby":l,role:"group"},t)))}function $O(e){const{badge:t,title:n}=e;return(0,s.createElement)(s.Fragment,null,n&&(0,s.createElement)(OO,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&(0,s.createElement)(PO,{className:"components-navigation__item-badge"},t))}const WO=(0,s.createContext)({menu:void 0,search:""}),UO=()=>(0,s.useContext)(WO),GO=e=>cb()(e).replace(/^\//,"").toLowerCase(),YO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=bO(),{group:i}=(0,s.useContext)(VO),{menu:a,search:l}=UO();(0,s.useEffect)((()=>{const s=n===a,c=!l||((e,t)=>-1!==GO(e).indexOf(GO(t)))(t.title,l);return r(e,{...t,group:i,menu:a,_isVisible:s&&c}),()=>{o(e)}}),[n,l])};let qO=0;function KO(e){var t;const{children:n,className:r,title:o,href:i,...l}=e,[u]=(0,s.useState)("item-"+ ++qO);YO(u,e);const{navigationTree:d}=bO();if(null===(t=d.getItem(u))||void 0===t||!t._isVisible)return null;const f=c()("components-navigation__item",r);return(0,s.createElement)(RO,a({className:f},l),n)}const XO=()=>{};function ZO(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:l,onClick:d=XO,title:f,icon:p,hideIfTargetMenuEmpty:m,isText:h,...g}=e,{activeItem:v,setActiveMenu:b,navigationTree:{isMenuEmpty:y}}=bO();if(m&&l&&y(l))return null;const w=i&&v===i,x=c()(r,{"is-active":w}),_=(0,u.isRTL)()?BO:zO,E=n?e:{...e,onClick:void 0},C=h?g:{as:ad,href:o,onClick:e=>{l&&b(l),d(e)},"aria-current":w?"page":void 0,...g};return(0,s.createElement)(KO,a({},E,{className:x}),n||(0,s.createElement)(IO,C,p&&(0,s.createElement)(MO,null,(0,s.createElement)(cy,{icon:p})),(0,s.createElement)($O,{title:f,badge:t}),l&&(0,s.createElement)(cy,{icon:_})))}var JO=(0,d.createHigherOrderComponent)((e=>t=>(0,s.createElement)(e,a({},t,{speak:db.speak,debouncedSpeak:(0,d.useDebounce)(db.speak,500)}))),"withSpokenMessages");var QO=JO((function(e){let{debouncedSpeak:t,onCloseSearch:n,onSearch:r,search:o,title:i}=e;const{navigationTree:{items:a}}=bO(),{menu:l}=UO(),c=(0,s.useRef)();(0,s.useEffect)((()=>{const e=setTimeout((()=>{c.current.focus()}),100);return()=>{clearTimeout(e)}}),[]),(0,s.useEffect)((()=>{if(!o)return;const e=Object.values(a).filter((e=>e._isVisible)).length,n=(0,u.sprintf)((0,u._n)("%d result found.","%d results found.",e),e);t(n)}),[a,o]);const d=()=>{r(""),n()},f=`components-navigation__menu-title-search-${l}`,p=(0,u.sprintf)((0,u.__)("Search %s"),null==i?void 0:i.toLowerCase()).trim();return(0,s.createElement)("div",{className:"components-navigation__menu-title-search"},(0,s.createElement)(TO,{autoComplete:"off",className:"components-navigation__menu-search-input",id:f,onChange:e=>r(e),onKeyDown:function(e){"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),d())},placeholder:p,onClose:d,ref:c,type:"search",value:o}))}));function eD(e){let{hasSearch:t,onSearch:n,search:r,title:o,titleAction:i}=e;const[a,l]=(0,s.useState)(!1),{menu:c}=UO(),d=(0,s.useRef)();if(!o)return null;const f=`components-navigation__menu-title-${c}`,p=(0,u.sprintf)((0,u.__)("Search in %s"),o);return(0,s.createElement)(kO,{className:"components-navigation__menu-title"},!a&&(0,s.createElement)(NO,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,s.createElement)("span",{id:f},o),(t||i)&&(0,s.createElement)(SO,null,i,t&&(0,s.createElement)(ad,{isSmall:!0,variant:"tertiary",label:p,onClick:()=>l(!0),ref:d},(0,s.createElement)(cy,{icon:yO})))),a&&(0,s.createElement)("div",{className:Nm({type:"slide-in",origin:"left"})},(0,s.createElement)(QO,{onCloseSearch:()=>{l(!1),setTimeout((()=>{d.current.focus()}),100)},onSearch:n,search:r,title:o})))}function tD(e){let{search:t}=e;const{navigationTree:{items:n}}=bO(),r=Object.values(n).filter((e=>e._isVisible)).length;return!t||r?null:(0,s.createElement)(RO,null,(0,s.createElement)(IO,null,(0,u.__)("No results found.")," "))}function nD(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=hO,onBackButtonClick:a,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,g]=(0,s.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=bO(),r=e.menu||hO;(0,s.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=bO(),b={menu:i,search:h};if(v!==i)return(0,s.createElement)(WO.Provider,{value:b},n);const y=!!l,w=y?d:h,x=y?l:g,_=`components-navigation__menu-title-${i}`,E=c()("components-navigation__menu",r);return(0,s.createElement)(WO.Provider,{value:b},(0,s.createElement)(EO,{className:E},(u||a)&&(0,s.createElement)(FO,{backButtonLabel:t,parentMenu:u,onClick:a}),p&&(0,s.createElement)(eD,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,s.createElement)(zS,null,(0,s.createElement)("ul",{"aria-labelledby":_},n,w&&!f&&(0,s.createElement)(tD,{search:w})))))}const rD=(0,s.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});function oD(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(aD(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 p=u("CHAR"),m=u("NAME"),h=u("PATTERN");if(m||h){var g=p||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=p||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")||"",w=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:w,modifier:u("MODIFIER")||""})}else d("END")}}return a}function iD(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}}}(cD(e,n,t),n,t)}function aD(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function sD(e){return e&&e.sensitive?"":"i"}function lD(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,p=n.endsWith,m="[".concat(aD(void 0===p?"":p),"]|$"),h="[".concat(aD(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=aD(u(y));else{var w=aD(u(y.prefix)),x=aD(u(y.suffix));if(y.pattern)if(t&&t.push(y),w||x)if("+"===y.modifier||"*"===y.modifier){var _="*"===y.modifier?"?":"";g+="(?:".concat(w,"((?:").concat(y.pattern,")(?:").concat(x).concat(w,"(?:").concat(y.pattern,"))*)").concat(x,")").concat(_)}else g+="(?:".concat(w,"(").concat(y.pattern,")").concat(x,")").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(w).concat(x,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var E=e[e.length-1],C="string"==typeof E?h.indexOf(E[E.length-1])>-1:void 0===E;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),C||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,sD(n))}(oD(e,n),t,n)}function cD(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 cD(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),sD(n))}(e,t,n):lD(e,t,n)}function uD(e,t){return iD(t,{decode:decodeURIComponent})(e)}function dD(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var fD={name:"15bx5k",styles:"overflow-x:hidden"};const pD=$u((function(e,t){const{initialPath:n,children:r,className:o,...i}=ju(e,"NavigatorProvider"),[l,c]=(0,s.useState)([{path:n}]),u=(0,s.useRef)([]),[d,f]=(0,s.useReducer)(dD,[]),p=(0,s.useRef)([]);(0,s.useEffect)((()=>{p.current=d}),[d]),(0,s.useEffect)((()=>{u.current=l}),[l]);const m=(0,s.useRef)(),h=(0,s.useMemo)((()=>{let e;if(0===l.length||void 0===(e=l[l.length-1].path))return void(m.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=uD(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,d);return m.current&&t&&pf()(t.params,m.current.params)&&t.id===m.current.id?m.current:t})(e);return m.current=t,t}),[d,l]),g=(0,s.useCallback)((e=>f({type:"add",screen:e})),[]),v=(0,s.useCallback)((e=>f({type:"remove",screen:e})),[]),b=(0,s.useCallback)((()=>{c((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),y=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focusTargetSelector:n,isBack:r=!1,...o}=t,i=r&&u.current.length>1&&u.current[u.current.length-2].path===e;i?b():c((t=>{const i={...o,path:e,isBack:r,hasRestoredFocus:!1};return t.length<1?[i]:[...t.slice(t.length>49?1:0,-1),{...t[t.length-1],focusTargetSelector:n},i]}))}),[b]),w=(0,s.useCallback)((()=>{const e=u.current[u.current.length-1].path;if(void 0===e)return;const t=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!==uD(e,t.path)))&&(r=e)}return r}(e,p.current);void 0!==t&&y(t,{isBack:!0})}),[y]),x=(0,s.useMemo)((()=>({location:{...l[l.length-1],isInitial:1===l.length},params:h?h.params:{},match:h?h.id:void 0,goTo:y,goBack:b,goToParent:w,addScreen:g,removeScreen:v})),[l,h,y,b,w,g,v]),_=Hu(),E=(0,s.useMemo)((()=>_(fD,o)),[o,_]);return(0,s.createElement)(nd,a({ref:t,className:E},i),(0,s.createElement)(rD.Provider,{value:x},r))}),"NavigatorProvider");var mD=pD,hD=window.wp.escapeHtml;var gD={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const vD=$u((function(e,t){const n=(0,s.useId)(),{children:r,className:o,path:i,...l}=ju(e,"NavigatorScreen"),c=(0,d.useReducedMotion)(),{location:f,match:p,addScreen:m,removeScreen:h}=(0,s.useContext)(rD),g=p===n,v=(0,s.useRef)(null);(0,s.useEffect)((()=>{const e={id:n,path:(0,hD.escapeAttribute)(i)};return m(e),()=>h(e)}),[n,i,m,h]);const b=Hu(),y=(0,s.useMemo)((()=>b(gD,o)),[o,b]),w=(0,s.useRef)(f);(0,s.useEffect)((()=>{w.current=f}),[f]);const x=f.isInitial&&!f.isBack;(0,s.useEffect)((()=>{if(x||!g||!v.current||w.current.hasRestoredFocus)return;const e=v.current.ownerDocument.activeElement;if(v.current.contains(e))return;let t=null;if(f.isBack&&null!=f&&f.focusTargetSelector&&(t=v.current.querySelector(f.focusTargetSelector)),!t){const e=MS.focus.tabbable.find(v.current)[0];t=null!=e?e:v.current}w.current.hasRestoredFocus=!0,t.focus()}),[x,g,f.isBack,f.focusTargetSelector]);const _=(0,d.useMergeRefs)([t,v]);if(!g)return null;if(c)return(0,s.createElement)(nd,a({ref:_,className:y},l),r);const E={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},C={opacity:0,x:(0,u.isRTL)()&&f.isBack||!(0,u.isRTL)()&&!f.isBack?50:-50},k={animate:E,exit:{delay:0,opacity:0,x:!(0,u.isRTL)()&&f.isBack||(0,u.isRTL)()&&!f.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:C};return(0,s.createElement)(Kl.div,a({ref:_,className:y},l,k),r)}),"NavigatorScreen");var bD=vD;var yD=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,s.useContext)(rD);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};var wD=$u((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=ad,attributeName:o="id",...i}=ju(e,"NavigatorButton"),a=(0,hD.escapeAttribute)(t),{goTo:l}=yD();return{as:r,onClick:(0,s.useCallback)((e=>{var t,r;e.preventDefault(),l(a,{focusTargetSelector:(t=o,r=a,`[${t}="${r}"]`)}),null==n||n(e)}),[l,n,o,a]),...i,[o]:a}}(e);return(0,s.createElement)(nd,a({ref:t},n))}),"NavigatorButton");function xD(e){const{onClick:t,as:n=ad,goToParent:r=!1,...o}=ju(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=yD();return{as:n,onClick:(0,s.useCallback)((e=>{e.preventDefault(),r?a():i(),null==t||t(e)}),[r,a,i,t]),...o}}var _D=$u((function(e,t){const n=xD(e);return(0,s.createElement)(nd,a({ref:t},n))}),"NavigatorBackButton");var ED=$u((function(e,t){const n=xD({...e,goToParent:!0});return(0,s.createElement)(nd,a({ref:t},n))}),"NavigatorToParentButton");const CD=()=>{};function kD(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var SD=function(e){let{className:t,status:n="info",children:r,spokenMessage:o=r,onRemove:i=CD,isDismissible:a=!0,actions:l=[],politeness:d=kD(n),__unstableHTML:f,onDismiss:p=CD}=e;!function(e,t){const n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((()=>{n&&(0,db.speak)(n,t)}),[n,t])}(o,d);const m=c()(t,"components-notice","is-"+n,{"is-dismissible":a});return f&&"string"==typeof r&&(r=(0,s.createElement)(s.RawHTML,null,r)),(0,s.createElement)("div",{className:m},(0,s.createElement)("div",{className:"components-notice__content"},r,(0,s.createElement)("div",{className:"components-notice__actions"},l.map(((e,t)=>{let{className:n,label:r,isPrimary:o,variant:i,noDefaultClasses:a=!1,onClick:l,url:u}=e,d=i;return"primary"===i||a||(d=u?"link":"secondary"),void 0===d&&o&&(d="primary"),(0,s.createElement)(ad,{key:t,href:u,variant:d,onClick:u?void 0:l,className:c()("components-notice__action",n)},r)})))),a&&(0,s.createElement)(ad,{className:"components-notice__dismiss",icon:Xl,label:(0,u.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),p(),i()},showTooltip:!1}))};const TD=()=>{};var ND=function(e){let{notices:t,onRemove:n=TD,className:r,children:o}=e;const i=e=>()=>n(e);return r=c()("components-notice-list",r),(0,s.createElement)("div",{className:r},o,[...t].reverse().map((e=>{const{content:t,...n}=e;return(0,s.createElement)(SD,a({},n,{key:e.id,onRemove:i(e.id)}),e.content)})))};var RD=function(e){let{label:t,children:n}=e;return(0,s.createElement)("div",{className:"components-panel__header"},t&&(0,s.createElement)("h2",null,t),n)};var ID=(0,s.forwardRef)((function(e,t){let{header:n,className:r,children:o}=e;const i=c()(r,"components-panel");return(0,s.createElement)("div",{className:i,ref:t},n&&(0,s.createElement)(RD,{label:n}),o)}));var MD=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const PD=()=>{};const OD=(0,s.forwardRef)(((e,t)=>{let{isOpened:n,icon:r,title:o,...i}=e;return o?(0,s.createElement)("h2",{className:"components-panel__body-title"},(0,s.createElement)(ad,a({className:"components-panel__body-toggle","aria-expanded":n,ref:t},i),(0,s.createElement)("span",{"aria-hidden":"true"},(0,s.createElement)(ec,{className:"components-panel__arrow",icon:n?MD:uy})),o,r&&(0,s.createElement)(ec,{icon:r,className:"components-panel__icon",size:20}))):null})),DD=(0,s.forwardRef)((function(e,t){let{buttonProps:n={},children:r,className:o,icon:i,initialOpen:l,onToggle:u=PD,opened:f,title:p,scrollAfterOpen:m=!0}=e;const[h,g]=gy(f,{initial:void 0===l||l}),v=(0,s.useRef)(),b=(0,d.useReducedMotion)()?"auto":"smooth",y=(0,s.useRef)();y.current=m,oc((()=>{var e;h&&y.current&&null!==(e=v.current)&&void 0!==e&&e.scrollIntoView&&v.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:b})}),[h,b]);const w=c()("components-panel__body",o,{"is-opened":h});return(0,s.createElement)("div",{className:w,ref:(0,d.useMergeRefs)([v,t])},(0,s.createElement)(OD,a({icon:i,isOpened:h,onClick:e=>{e.preventDefault();const t=!h;g(t),u(t)},title:p},n)),"function"==typeof r?r({opened:h}):h&&r)}));DD.displayName="PanelBody";var AD=DD;var LD=(0,s.forwardRef)(((e,t)=>{let{className:n,children:r}=e;return(0,s.createElement)("div",{className:c()("components-panel__row",n),ref:t},r)}));const zD=(0,s.createElement)(i.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,s.createElement)(i.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var BD=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:l,preview:u,isColumnLayout:f,withIllustration:p,...m}=e,[h,{width:g}]=(0,d.useResizeObserver)();let v;"number"==typeof g&&(v={"is-large":g>=480,"is-medium":g>=160&&g<480,"is-small":g<160});const b=c()("components-placeholder",i,v,p?"has-illustration":null),y=c()("components-placeholder__fieldset",{"is-column-layout":f});return(0,s.createElement)("div",a({},m,{className:b}),p?zD:null,h,l,u&&(0,s.createElement)("div",{className:"components-placeholder__preview"},u),(0,s.createElement)("div",{className:"components-placeholder__label"},(0,s.createElement)(ec,{icon:t}),r),(0,s.createElement)("fieldset",{className:y},!!o&&(0,s.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};function FD(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)}))),n=(0,rc.groupBy)(t,"parent");if(n.null&&n.null.length)return t;const r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}var VD=window.wp.htmlEntities;function HD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,VD.decodeEntities)(e.name)},...HD(e.children||[],t+1)]))}var jD=function(e){let{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:i=[],...l}=e;const c=(0,s.useMemo)((()=>[n&&{value:"",label:n},...HD(i)].filter((e=>!!e))),[n,i]);return(0,s.createElement)(py,a({label:t,options:c,onChange:r,value:o},l))};function $D(e){let{label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:i}=e;if(!r)return null;const a=FD(r);return(0,s.createElement)(jD,{label:t,noOptionLabel:n,onChange:i,tree:a,selectedId:void 0!==o?String(o):void 0})}function WD(e){let{label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:i,...l}=e;const c=(0,s.useMemo)((()=>FD(r)),[r]);return(0,s.createElement)(jD,a({label:t,noOptionLabel:n,onChange:i,tree:c,selectedId:void 0!==o?String(o):void 0},l))}const UD=1,GD=100;function YD(e){return"categoriesList"in e}function qD(e){return"categorySuggestions"in e}var KD=function(e){let{authorList:t,selectedAuthorId:n,numberOfItems:r,order:o,orderBy:i,maxItems:a=GD,minItems:l=UD,onAuthorChange:c,onNumberOfItemsChange:d,onOrderChange:f,onOrderByChange:p,...m}=e;return(0,s.createElement)(s.Fragment,null,[f&&p&&(0,s.createElement)(my,{__nextHasNoMarginBottom:!0,key:"query-controls-order-select",label:(0,u.__)("Order by"),value:`${i}/${o}`,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!==o&&f(n),t!==i&&p(t)}}),YD(m)&&m.categoriesList&&m.onCategoryChange&&(0,s.createElement)(WD,{key:"query-controls-category-select",categoriesList:m.categoriesList,label:(0,u.__)("Category"),noOptionLabel:(0,u.__)("All"),selectedCategoryId:m.selectedCategoryId,onChange:m.onCategoryChange}),qD(m)&&m.categorySuggestions&&m.onCategoryChange&&(0,s.createElement)(QP,{key:"query-controls-categories-select",label:(0,u.__)("Categories"),value:m.selectedCategories&&m.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(m.categorySuggestions),onChange:m.onCategoryChange,maxSuggestions:20}),c&&(0,s.createElement)($D,{key:"query-controls-author-select",authorList:t,label:(0,u.__)("Author"),noOptionLabel:(0,u.__)("All"),selectedAuthorId:n,onChange:c}),d&&(0,s.createElement)(Uy,{__nextHasNoMarginBottom:!0,key:"query-controls-range-control",label:(0,u.__)("Number of items"),value:r,onChange:d,min:l,max:a,required:!0})])};var XD=(0,s.createContext)({state:null,setState:()=>{}});var ZD=(0,s.forwardRef)((function(e,t){let{children:n,value:r,...o}=e;const i=(0,s.useContext)(XD),l=i.state===r;return(0,s.createElement)(SP,a({ref:t,as:ad,variant:l?"primary":"secondary",value:r},i,o),n||r)}));var JD=(0,s.forwardRef)((function(e,t){let{label:n,checked:r,defaultChecked:o,disabled:i,onChange:l,...c}=e;const u=dP({state:o,baseId:c.id}),d={...u,disabled:i,state:null!=r?r:u.state,setState:null!=l?l:u.setState};return(0,s.createElement)(XD.Provider,{value:d},(0,s.createElement)(mP,a({ref:t,as:PC,"aria-label":n},u,c)))}));var QD=function e(t){const{label:n,className:r,selected:o,help:i,onChange:l,hideLabelFromVision:u,options:f=[],...p}=t,m=`inspector-radio-control-${(0,d.useInstanceId)(e)}`,h=e=>l(e.target.value);return null!=f&&f.length?(0,s.createElement)(Iv,{__nextHasNoMarginBottom:!0,label:n,id:m,hideLabelFromVision:u,help:i,className:c()(r,"components-radio-control")},(0,s.createElement)(W_,{spacing:1},f.map(((e,t)=>(0,s.createElement)("div",{key:`${m}-${t}`,className:"components-radio-control__option"},(0,s.createElement)("input",a({id:`${m}-${t}`,className:"components-radio-control__input",type:"radio",name:m,value:e.value,onChange:h,checked:e.value===o,"aria-describedby":i?`${m}__help`:void 0},p)),(0,s.createElement)("label",{htmlFor:`${m}-${t}`},e.label)))))):null},eA=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)}}(),tA=function(){return tA=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},tA.apply(this,arguments)},nA={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},rA={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},oA={width:"20px",height:"20px",position:"absolute"},iA={top:tA(tA({},nA),{top:"-5px"}),right:tA(tA({},rA),{left:void 0,right:"-5px"}),bottom:tA(tA({},nA),{top:void 0,bottom:"-5px"}),left:tA(tA({},rA),{left:"-5px"}),topRight:tA(tA({},oA),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:tA(tA({},oA),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:tA(tA({},oA),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:tA(tA({},oA),{left:"-10px",top:"-10px",cursor:"nw-resize"})},aA=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 eA(t,e),t.prototype.render=function(){return b.createElement("div",{className:this.props.className||"",style:tA(tA({position:"absolute",userSelect:"none"},iA[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(b.PureComponent),sA=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)}}(),lA=function(){return lA=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},lA.apply(this,arguments)},cA={width:"auto",height:"auto"},uA=function(e,t,n){return Math.max(Math.min(e,n),t)},dA=function(e,t){return Math.round(e/t)*t},fA=function(e,t){return new RegExp(e,"i").test(t)},pA=function(e){return Boolean(e.touches&&e.touches.length)},mA=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},hA=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"},gA=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},vA=["as","ref","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"],bA="__resizable_base__",yA=function(e){function t(t){var n,r,o,i,a=e.call(this,t)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.appendBase=function(){if(!a.resizable||!a.window)return null;var e=a.parentNode;if(!e)return null;var t=a.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(bA):t.className+=bA,e.appendChild(t),t},a.removeBase=function(e){var t=a.parentNode;t&&t.removeChild(e)},a.state={isResizing:!1,width:null!==(r=null===(n=a.propsSize)||void 0===n?void 0:n.width)&&void 0!==r?r:"auto",height:null!==(i=null===(o=a.propsSize)||void 0===o?void 0:o.height)&&void 0!==i?i:"auto",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},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return sA(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||cA},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){var n;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(n=e.propsSize[t])||void 0===n?void 0:n.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return hA(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?hA(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?hA(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&&fA("left",i),s=o&&fA("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,r=this.props.scale||1,o=(n=this.props.resizeRatio||1,Array.isArray(n)?n:[n,n]),i=o[0],a=o[1],s=this.state,l=s.direction,c=s.original,u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,m=c.width,h=c.height,g=f||0,v=p||0;return fA("right",l)&&(m=c.width+(e-c.x)*i/r,d&&(h=(m-v)/this.ratio+g)),fA("left",l)&&(m=c.width-(e-c.x)*i/r,d&&(h=(m-v)/this.ratio+g)),fA("bottom",l)&&(h=c.height+(t-c.y)*a/r,d&&(m=(h-g)*this.ratio+v)),fA("top",l)&&(h=c.height-(t-c.y)*a/r,d&&(m=(h-g)*this.ratio+v)),{newWidth:m,newHeight:h}},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,p=s||0;if(i){var m=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,g=(l-p)/this.ratio+f,v=(c-p)/this.ratio+f,b=Math.max(l,m),y=Math.min(c,h),w=Math.max(u,g),x=Math.min(d,v);e=uA(e,b,y),t=uA(t,w,x)}else e=uA(e,l,c),t=uA(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&&pA(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:lA(lA({},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&&pA(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=pA(e)?e.touches[0].clientX:e.clientX,l=pA(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,m=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=gA(r,e.width,t,n),o=gA(o,e.height,t,n),i=gA(i,e.width,t,n),a=gA(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)}}(m,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=mA(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=mA(v,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=w.newWidth,v=w.newHeight,this.props.grid){var x=dA(b,this.props.grid[0]),_=dA(v,this.props.grid[1]),E=this.props.snapGap||0;b=0===E||Math.abs(x-b)<=E?x:b,v=0===E||Math.abs(_-v)<=E?_:v}var C={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/m.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(p&&"string"==typeof p)if(p.endsWith("%"))v=v/m.height*100+"%";else if(p.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(p.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);var S=this.state.width!==k.width,T=this.state.height!==k.height,N=this.state.flexBasis!==k.flexBasis,R=S||T||N;R&&(0,Dt.flushSync)((function(){t.setState(k)})),this.props.onResize&&R&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t,n,r=this.state,o=r.isResizing,i=r.direction,a=r.original;if(o&&this.resizable){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,s),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(n=this.props.size.height)&&void 0!==n?n:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:lA(lA({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,n;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(n=e.height)&&void 0!==n?n:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?b.createElement(aA,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return b.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==vA.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=lA(lA(lA({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 b.createElement(r,lA({style:n,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&b.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}(b.PureComponent);const wA=()=>{},xA={bottom:"bottom",corner:"corner"};function _A(e){let{axis:t,fadeTimeout:n=180,onResize:r=wA,position:o=xA.bottom,showPx:i=!1}=e;const[a,l]=(0,d.useResizeObserver)(),c=!!t,[u,f]=(0,s.useState)(!1),[p,m]=(0,s.useState)(!1),{width:h,height:g}=l,v=(0,s.useRef)(g),b=(0,s.useRef)(h),y=(0,s.useRef)(),w=(0,s.useCallback)((()=>{y.current&&window.clearTimeout(y.current),y.current=window.setTimeout((()=>{c||(f(!1),m(!1))}),n)}),[n,c]);(0,s.useEffect)((()=>{if(!(null!==h||null!==g))return;const e=h!==b.current,t=g!==v.current;if(e||t){if(h&&!b.current&&g&&!v.current)return b.current=h,void(v.current=g);e&&(f(!0),b.current=h),t&&(m(!0),v.current=g),r({width:h,height:g}),w()}}),[h,g,r,w]);const x=function(e){let{axis:t,height:n,moveX:r=!1,moveY:o=!1,position:i=xA.bottom,showPx:a=!1,width:s}=e;if(!r&&!o)return;if(i===xA.corner)return`${s} x ${n}`;const l=a?" px":"";if(t){if("x"===t&&r)return`${s}${l}`;if("y"===t&&o)return`${n}${l}`}if(r&&o)return`${s} x ${n}`;if(r)return`${s}${l}`;if(o)return`${n}${l}`;return}({axis:t,height:g,moveX:u,moveY:p,position:o,showPx:i,width:h});return{label:x,resizeListener:a}}const EA=ed("div",{target:"ekdag503"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),CA=ed("div",{target:"ekdag502"})({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"}),kA=ed("div",{target:"ekdag501"})("background:",Np.gray[900],";border-radius:2px;box-sizing:border-box;font-size:12px;color:",Np.ui.textDark,";padding:4px 8px;position:relative;"),SA=ed(Ph,{target:"ekdag500"})("&&&{color:",Np.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const TA=(0,s.forwardRef)((function(e,t){let{label:n,position:r=xA.corner,zIndex:o=1e3,...i}=e;const l=!!n,c=r===xA.bottom,d=r===xA.corner;if(!l)return null;let f={opacity:l?1:void 0,zIndex:o},p={};return c&&(f={...f,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},p={transform:"translate(0, 100%)"}),d&&(f={...f,position:"absolute",top:4,right:(0,u.isRTL)()?void 0:4,left:(0,u.isRTL)()?4:void 0}),(0,s.createElement)(CA,a({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:t,style:f},i),(0,s.createElement)(kA,{className:"components-resizable-tooltip__tooltip",style:p},(0,s.createElement)(SA,{as:"span"},n)))}));var NA=TA;const RA=()=>{};const IA=(0,s.forwardRef)((function(e,t){let{axis:n,className:r,fadeTimeout:o=180,isVisible:i=!0,labelRef:l,onResize:u=RA,position:d=xA.bottom,showPx:f=!0,zIndex:p=1e3,...m}=e;const{label:h,resizeListener:g}=_A({axis:n,fadeTimeout:o,onResize:u,showPx:f,position:d});if(!i)return null;const v=c()("components-resize-tooltip",r);return(0,s.createElement)(EA,a({"aria-hidden":"true",className:v,ref:t},m),g,(0,s.createElement)(NA,{"aria-hidden":m["aria-hidden"],label:h,position:d,ref:l,zIndex:p}))}));var MA=IA;const PA="components-resizable-box__handle",OA="components-resizable-box__side-handle",DA="components-resizable-box__corner-handle",AA={top:c()(PA,OA,"components-resizable-box__handle-top"),right:c()(PA,OA,"components-resizable-box__handle-right"),bottom:c()(PA,OA,"components-resizable-box__handle-bottom"),left:c()(PA,OA,"components-resizable-box__handle-left"),topLeft:c()(PA,DA,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:c()(PA,DA,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:c()(PA,DA,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:c()(PA,DA,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},LA={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},zA={top:LA,right:LA,bottom:LA,left:LA,topLeft:LA,topRight:LA,bottomRight:LA,bottomLeft:LA};const BA=(0,s.forwardRef)((function(e,t){let{className:n,children:r,showHandle:o=!0,__experimentalShowTooltip:i=!1,__experimentalTooltipProps:l={},...u}=e;return(0,s.createElement)(yA,a({className:c()("components-resizable-box__container",o&&"has-show-handle",n),handleClasses:AA,handleStyles:zA,ref:t},u),r,i&&(0,s.createElement)(MA,l))}));var FA=BA;var VA=function(e){let{naturalWidth:t,naturalHeight:n,children:r,isInline:o=!1}=e;const[i,{width:a}]=(0,d.useResizeObserver)();if(1!==s.Children.count(r))return null;const l={paddingBottom:t<(null!=a?a:0)?n:n/t*100+"%"},u=o?"span":"div";return(0,s.createElement)(u,{className:"components-responsive-wrapper"},i,(0,s.createElement)(u,{style:l}),(0,s.cloneElement)(r,{className:c()("components-responsive-wrapper__content",r.props.className)}))};const HA=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+(vmin|vmax|vh|vw)$/.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)},jA="\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";var $A=function(e){let{html:t="",title:n="",type:r,styles:o=[],scripts:i=[],onFocus:a}=e;const l=(0,s.useRef)(),[c,u]=(0,s.useState)(0),[f,p]=(0,s.useState)(0);function m(){try{var e,t;return!(null===(e=l.current)||void 0===e||null===(t=e.contentDocument)||void 0===t||!t.body)}catch(e){return!1}}function h(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!m())return;const{contentDocument:a,ownerDocument:c}=l.current;if(!e&&null!==(null==a?void 0:a.body.getAttribute("data-resizable-iframe-connected")))return;const u=(0,s.createElement)("html",{lang:c.documentElement.lang,className:r},(0,s.createElement)("head",null,(0,s.createElement)("title",null,n),(0,s.createElement)("style",{dangerouslySetInnerHTML:{__html:jA}}),o.map(((e,t)=>(0,s.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,s.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:r},(0,s.createElement)("div",{dangerouslySetInnerHTML:{__html:t}}),(0,s.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${HA.toString()})();`}}),i.map((e=>(0,s.createElement)("script",{key:e,src:e})))));a.open(),a.write("<!DOCTYPE html>"+(0,s.renderToString)(u)),a.close()}return(0,s.useEffect)((()=>{var e;function t(){h(!1)}function n(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),p(n.height))}h();const r=l.current,o=null==r||null===(e=r.ownerDocument)||void 0===e?void 0:e.defaultView;return null==r||r.addEventListener("load",t,!1),null==o||o.addEventListener("message",n),()=>{null==r||r.removeEventListener("load",t,!1),null==o||o.addEventListener("message",n)}}),[]),(0,s.useEffect)((()=>{h()}),[n,o,i]),(0,s.useEffect)((()=>{h(!0)}),[t,r]),(0,s.createElement)("iframe",{ref:(0,d.useMergeRefs)([l,(0,d.useFocusableIframe)()]),title:n,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:a,width:Math.ceil(c),height:Math.ceil(f)})};const WA=(0,s.forwardRef)((function(e,t){let{className:n,children:r,spokenMessage:o=r,politeness:i="polite",actions:a=[],onRemove:l,icon:d=null,explicitDismiss:f=!1,onDismiss:p,listRef:m}=e;function h(e){var t;e&&e.preventDefault&&e.preventDefault(),null==m||null===(t=m.current)||void 0===t||t.focus(),null==p||p(),null==l||l()}!function(e,t){const n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((()=>{n&&(0,db.speak)(n,t)}),[n,t])}(o,i),(0,s.useEffect)((()=>{const e=setTimeout((()=>{f||(null==p||p(),null==l||l())}),1e4);return()=>clearTimeout(e)}),[p,l,f]);const g=c()(n,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});a&&a.length>1&&("undefined"!=typeof process&&process.env,a=[a[0]]);const v=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!d});return(0,s.createElement)("div",{ref:t,className:g,onClick:f?void 0:h,tabIndex:0,role:f?"":"button",onKeyPress:f?void 0:h,"aria-label":f?"":(0,u.__)("Dismiss this notice")},(0,s.createElement)("div",{className:v},d&&(0,s.createElement)("div",{className:"components-snackbar__icon"},d),r,a.map(((e,t)=>{let{label:n,onClick:r,url:o}=e;return(0,s.createElement)(ad,{key:t,href:o,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),null==l||l(),t&&t(e)}(e,r),className:"components-snackbar__action"},n)})),f&&(0,s.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:h,onKeyPress:h},"✕")))}));var UA=WA;const GA={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}};var YA=function(e){let{notices:t,className:n,children:r,onRemove:o}=e;const i=(0,s.useRef)(null),l=(0,d.useReducedMotion)();n=c()("components-snackbar-list",n);const u=e=>()=>null==o?void 0:o(e.id);return(0,s.createElement)("div",{className:n,tabIndex:-1,ref:i},r,(0,s.createElement)(Lm,null,t.map((e=>{const{content:t,...n}=e;return(0,s.createElement)(Kl.div,{layout:!l,initial:"init",animate:"open",exit:"exit",key:e.id,variants:l?void 0:GA},(0,s.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,s.createElement)(UA,a({},n,{onRemove:u(e),listRef:i}),e.content)))}))))};const qA=(function(){var e=Gf.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}})` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,KA=ed("svg",{target:"ea4tfvq2"})("width:",gh.spinnerSize,"px;height:",gh.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Np.ui.theme,";overflow:visible;"),XA={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},ZA=ed("circle",{target:"ea4tfvq1"})(XA,";stroke:",Np.gray[300],";"),JA=ed("path",{target:"ea4tfvq0"})(XA,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",qA,";");const QA=(0,s.forwardRef)((function(e,t){let{className:n,...r}=e;return(0,s.createElement)(KA,a({className:c()("components-spinner",n),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false"},r,{ref:t}),(0,s.createElement)(ZA,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,s.createElement)(JA,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var eL=QA;var tL=$u((function(e,t){const n=uk(e);return(0,s.createElement)(nd,a({},n,{ref:t}))}),"Surface");const nL=e=>{let{tabId:t,children:n,selected:r,...o}=e;return(0,s.createElement)(ad,a({role:"tab",tabIndex:r?void 0:-1,"aria-selected":r,id:t,__experimentalIsFocusable:!0},o),n)};var rL=function e(t){var n;let{className:r,children:o,tabs:i,selectOnMove:a=!0,initialTabName:l,orientation:u="horizontal",activeClass:f="is-active",onSelect:p}=t;const m=(0,d.useInstanceId)(e,"tab-panel"),[h,g]=(0,s.useState)(),v=(0,s.useCallback)((e=>{g(e),null==p||p(e)}),[p]),b=i.find((e=>{let{name:t}=e;return t===h})),y=`${m}-${null!==(n=null==b?void 0:b.name)&&void 0!==n?n:"none"}`;return(0,s.useEffect)((()=>{if(b)return;const e=i.find((e=>e.name===l));if(!l||e)if(e&&!e.disabled)v(e.name);else{const e=i.find((e=>!e.disabled));e&&v(e.name)}}),[i,b,l,v]),(0,s.useEffect)((()=>{if(null==b||!b.disabled)return;const e=i.find((e=>!e.disabled));e&&v(e.name)}),[i,null==b?void 0:b.disabled,v]),(0,s.createElement)("div",{className:r},(0,s.createElement)(zS,{role:"tablist",orientation:u,onNavigate:a?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},i.map((e=>(0,s.createElement)(nL,{className:c()("components-tab-panel__tabs-item",e.className,{[f]:e.name===h}),tabId:`${m}-${e.name}`,"aria-controls":`${m}-${e.name}-view`,selected:e.name===h,key:e.name,onClick:()=>v(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),b&&(0,s.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},o(b)))};const oL=(0,s.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:l,className:c,onChange:u,type:f="text",...p}=e,m=`inspector-text-control-${(0,d.useInstanceId)(oL)}`;return(0,s.createElement)(Iv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:m,help:l,className:c},(0,s.createElement)("input",a({className:"components-text-control__input",type:f,id:m,value:i,onChange:e=>u(e.target.value),"aria-describedby":l?m+"__help":void 0,ref:t},p)))}));var iL=oL;const aL=Gf("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",gh.radiusBlockUi,";border:",gh.borderWidth," solid ",Np.ui.border,";",""),sL=Gf("border-color:",Np.ui.theme,";box-shadow:0 0 0 calc( ",gh.borderWidthFocus," - ",gh.borderWidth," ) ",Np.ui.theme,";outline:2px solid transparent;","");var lL={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const cL=Gf("font-family:",wv("default.fontFamily"),";padding:6px 8px;",aL,";font-size:",wv("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${lL["small"]})`,"{font-size:",wv("default.fontSize"),";line-height:normal;}&:focus{",sL,";}&::-webkit-input-placeholder{color:",Np.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Np.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Np.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Np.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Np.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Np.ui.lightGrayPlaceholder,";}}","");const uL=ed("textarea",{target:"e1w5nnrk0"})("width:100%;",cL,";");var dL=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:l,onChange:c,rows:u=4,className:f,...p}=t,m=`inspector-textarea-control-${(0,d.useInstanceId)(e)}`;return(0,s.createElement)(Iv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:m,help:l,className:f},(0,s.createElement)(uL,a({className:"components-textarea-control__input",id:m,rows:u,onChange:e=>c(e.target.value),"aria-describedby":l?m+"__help":void 0,value:i},p)))};var fL=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,s.createElement)(s.Fragment,null,t);const o=new RegExp(`(${mb(r)})`,"gi");return(0,s.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,s.createElement)("mark",null)})};var pL=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));var mL=function(e){const{children:t}=e;return(0,s.createElement)("div",{className:"components-tip"},(0,s.createElement)(cy,{icon:pL}),(0,s.createElement)("p",null,t))};var hL=function e(t){let{__nextHasNoMarginBottom:n,label:r,checked:o,help:i,className:a,onChange:l,disabled:c}=t;const u=`inspector-toggle-control-${(0,d.useInstanceId)(e)}`,f=Hu()("components-toggle-control",a,!n&&Gf({marginBottom:Zm(3)},"",""));let p,m;return i&&("function"==typeof i?void 0!==o&&(m=i(o)):m=i,m&&(p=u+"__help")),(0,s.createElement)(Iv,{id:u,help:m,className:f,__nextHasNoMarginBottom:!0},(0,s.createElement)(qv,{justify:"flex-start",spacing:3},(0,s.createElement)(YP,{id:u,checked:o,onChange:function(e){l(e.target.checked)},"aria-describedby":p,disabled:c}),(0,s.createElement)(Wm,{as:"label",htmlFor:u,className:"components-toggle-control__label"},r)))};const gL=(0,s.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,s.createElement)(BP,a({},o,{isIcon:!0,"aria-label":r,showTooltip:!0,ref:t}),(0,s.createElement)(ec,{icon:n}))}));var vL=gL,bL=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],yL=bL,wL=z({as:"button",memo:!0,useHook:F({name:"ToolbarItem",compose:ke,keys:yL})});var xL=(0,s.createContext)();var _L=(0,s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const i=(0,s.useContext)(xL);if("function"!=typeof n&&!r)return"undefined"!=typeof process&&process.env,null;const l={...o,ref:t,"data-toolbar-item":!0};return i?(0,s.createElement)(wL,a({},i,l,{as:r}),n):r?(0,s.createElement)(r,l,n):n(l)}));var EL=e=>(0,s.createElement)("div",{className:e.className},e.children);var CL=(0,s.forwardRef)((function(e,t){let{containerClassName:n,className:r,extraProps:o,children:i,title:l,isActive:u,isDisabled:d,...f}=e;return(0,s.useContext)(xL)?(0,s.createElement)(_L,a({className:c()("components-toolbar-button",r)},o,f,{ref:t}),(e=>(0,s.createElement)(ad,a({label:l,isPressed:u,disabled:d},e),i))):(0,s.createElement)(EL,{className:n},(0,s.createElement)(ad,a({ref:t,icon:f.icon,label:l,shortcut:f.shortcut,"data-subscript":f.subscript,onClick:e=>{e.stopPropagation(),f.onClick&&f.onClick(e)},className:c()("components-toolbar__control",r),isPressed:u,disabled:d,"data-toolbar-item":!0},o,f),i))}));var kL=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)("div",a({className:t},r),n)};var SL=function(e){let{controls:t=[],toggleProps:n,...r}=e;const o=e=>(0,s.createElement)(VS,a({controls:t,toggleProps:{...e,"data-toolbar-item":!0}},r));return(0,s.useContext)(xL)?(0,s.createElement)(_L,n,o):o(n)};var TL=function(e){var t;let{controls:n=[],children:r,className:o,isCollapsed:i,title:l,...u}=e;const d=(0,s.useContext)(xL);if(!(n&&n.length||r))return null;const f=c()(d?"components-toolbar-group":"components-toolbar",o);let p=n;return Array.isArray(p[0])||(p=[p]),i?(0,s.createElement)(SL,a({label:l,controls:p,className:f,children:r},u)):(0,s.createElement)(kL,a({className:f},u),null===(t=p)||void 0===t?void 0:t.flatMap(((e,t)=>e.map(((e,n)=>(0,s.createElement)(CL,a({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e)))))),r)};var NL=F({name:"Toolbar",compose:mm,keys:bL,useProps:function(e,t){return m({role:"toolbar","aria-orientation":e.orientation},t)}}),RL=z({as:"div",useHook:NL,useCreateElement:function(e,t,n){return N(e,t,n)}});var IL=(0,s.forwardRef)((function(e,t){let{label:n,...r}=e;const o=function(e){void 0===e&&(e={});var t=Bp(e),n=t.orientation;return am(m({orientation:void 0===n?"horizontal":n},h(t,["orientation"])))}({loop:!0,baseId:r.id,rtl:(0,u.isRTL)()});return(0,s.createElement)(xL.Provider,{value:o},(0,s.createElement)(RL,a({ref:t,"aria-label":n},o,r)))}));var ML=(0,s.forwardRef)((function(e,t){let{className:n,label:r,...o}=e;if(!r)return Jl()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,s.createElement)(TL,a({},o,{className:n}));const i=c()("components-accessible-toolbar",n);return(0,s.createElement)(IL,a({className:i,label:r,ref:t},o))}));var PL=(0,s.forwardRef)((function(e,t){return(0,s.useContext)(xL)?(0,s.createElement)(_L,a({ref:t},e.toggleProps),(t=>(0,s.createElement)(VS,a({},e,{popoverProps:{variant:"toolbar",...e.popoverProps},toggleProps:t})))):(0,s.createElement)(VS,e)}));const OL={columns:e=>Gf("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Gf("column-gap:",Zm(2),";row-gap:",Zm(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},DL={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},AL=Gf(OL.item.fullWidth," gap:",Zm(2),";.components-dropdown-menu{margin:",Zm(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Zm(6),";}",""),LL={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},zL=Gf(OL.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",_v,"{margin-bottom:0;",Ev,":last-child{margin-bottom:0;}}",Tv,"{margin-bottom:0;}&& ",Xh,"{label{line-height:1.4em;}}",""),BL={name:"eivff4",styles:"display:none"},FL={name:"16gsvie",styles:"min-width:200px"},VL=ed("span",{target:"ews648u0"})("color:",Np.ui.themeDark10,";font-size:11px;font-weight:500;line-height:1.4;",Vh({marginLeft:Zm(3)})," text-transform:uppercase;"),HL=Gf("color:",Np.gray[900],";&&[aria-disabled='true']{color:",Np.gray[700],";opacity:1;&:hover{color:",Np.gray[700],";}",VL,"{opacity:0.3;}}",""),jL=()=>{},$L=(0,s.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:jL,deregisterPanelItem:jL,flagItemCustomization:jL,areAllOptionalControlsHidden:!0}),WL=()=>(0,s.useContext)($L);const UL=e=>{let{itemClassName:t,items:n,toggleItem:r}=e;if(!n.length)return null;const o=(0,s.createElement)(VL,{"aria-hidden":!0},(0,u.__)("Reset"));return(0,s.createElement)(uO,{label:(0,u.__)("Defaults")},n.map((e=>{let[n,i]=e;return i?(0,s.createElement)(dO,{key:n,className:t,role:"menuitem",label:(0,u.sprintf)((0,u.__)("Reset %s"),n),onClick:()=>{r(n),(0,db.speak)((0,u.sprintf)((0,u.__)("%s reset to default"),n),"assertive")},suffix:o},n):(0,s.createElement)(dO,{key:n,className:t,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},n)})))},GL=e=>{let{items:t,toggleItem:n}=e;return t.length?(0,s.createElement)(uO,{label:(0,u.__)("Tools")},t.map((e=>{let[t,r]=e;const o=r?(0,u.sprintf)((0,u.__)("Hide and reset %s"),t):(0,u.sprintf)((0,u.__)("Show %s"),t);return(0,s.createElement)(dO,{key:t,icon:r&&j_,isSelected:r,label:o,onClick:()=>{r?(0,db.speak)((0,u.sprintf)((0,u.__)("%s hidden and reset to default"),t),"assertive"):(0,db.speak)((0,u.sprintf)((0,u.__)("%s is now visible"),t),"assertive"),n(t)},role:"menuitemcheckbox"},t)}))):null};var YL=$u(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:l,label:c,menuItems:d,resetAll:f,toggleItem:p,...m}=function(e){const{className:t,...n}=ju(e,"ToolsPanelHeader"),r=Hu(),o=(0,s.useMemo)((()=>r(AL,t)),[t,r]),i=(0,s.useMemo)((()=>r(FL)),[r]),a=(0,s.useMemo)((()=>r(LL)),[r]),l=(0,s.useMemo)((()=>r(HL)),[r]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=WL();return{...n,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:i,hasMenuItems:u,headingClassName:a,menuItems:c,className:o}}(e);if(!c)return null;const h=Object.entries((null==d?void 0:d.default)||{}),g=Object.entries((null==d?void 0:d.optional)||{}),v=n?Gm:zk,b=(0,u.sprintf)((0,u._x)("%s options","Button label to reveal tool panel options"),c),y=n?(0,u.__)("All options are currently hidden"):void 0,w=[...h,...g].some((e=>{let[,t]=e;return t}));return(0,s.createElement)(qv,a({},m,{ref:t}),(0,s.createElement)(G_,{level:2,className:l},c),i&&(0,s.createElement)(VS,{icon:v,label:b,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:y}},(()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(UL,{items:h,toggleItem:p,itemClassName:r}),(0,s.createElement)(GL,{items:g,toggleItem:p}),(0,s.createElement)(uO,null,(0,s.createElement)(dO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,db.speak)((0,u.__)("All options reset"),"assertive"))}},(0,u.__)("Reset all")))))))}),"ToolsPanelHeader");const qL=e=>{let{panelItems:t,shouldReset:n,currentMenuItems:r}=e;const o={default:{},optional:{}};return t.forEach((e=>{var t;let{hasValue:i,isShownByDefault:a,label:s}=e;const l=a?"default":"optional",c=null==r||null===(t=r[l])||void 0===t?void 0:t[s],u=c||i();o[l][s]=!n&&u})),o},KL=e=>e&&0===Object.keys(e).length;function XL(e){const{className:t,resetAll:n,panelId:r,hasInnerWrapper:o,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l,...c}=ju(e,"ToolsPanel"),u=(0,s.useRef)(!1),d=u.current;(0,s.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,p]=(0,s.useState)([]),m=(0,s.useCallback)((e=>{p((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]}))}),[p]),h=(0,s.useCallback)((e=>{p((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[p]),[g,v]=(0,s.useState)({default:{},optional:{}});(0,s.useEffect)((()=>{v((e=>qL({panelItems:f,shouldReset:!1,currentMenuItems:e})))}),[f,v]);const b=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";v((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[v]),[y,w]=(0,s.useState)(!1);(0,s.useEffect)((()=>{if(KL(null==g?void 0:g.default)&&!KL(null==g?void 0:g.optional)){const e=!Object.entries(g.optional).some((e=>{let[,t]=e;return t}));w(e)}}),[g,w]);const x=Hu(),_=(0,s.useMemo)((()=>{const e=o&&Gf(">div:not( :first-of-type ){display:grid;",OL.columns(2)," ",OL.spacing," ",OL.item.fullWidth,";}","");const n=KL(null==g?void 0:g.default)&&y&&DL;return x((e=>Gf(OL.columns(e)," ",OL.spacing," border-top:",gh.borderWidth," solid ",Np.gray[300],";margin-top:-1px;padding:",Zm(4),";",""))(2),e,n,t)}),[y,t,x,o,g]),E=(0,s.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...g,[n]:{...g[n],[e]:!g[n][e]}};v(r)}),[g,f,v]),C=(0,s.useCallback)((()=>{if("function"==typeof n){u.current=!0;const e=[];f.forEach((t=>{t.resetAllFilter&&e.push(t.resetAllFilter)})),n(e)}const e=qL({panelItems:f,shouldReset:!0});v(e)}),[f,n,v]),k=e=>{const t=g.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return null==n?void 0:n.label},S=k(f),T=k([...f].reverse());return{...c,panelContext:(0,s.useMemo)((()=>({areAllOptionalControlsHidden:y,deregisterPanelItem:h,firstDisplayedItem:S,flagItemCustomization:b,hasMenuItems:!!f.length,isResetting:u.current,lastDisplayedItem:T,menuItems:g,panelId:r,registerPanelItem:m,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l})),[y,h,S,b,T,g,r,f,m,i,a,l]),resetAllItems:C,toggleItem:E,className:_}}var ZL=$u(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:l,...c}=XL(e);return(0,s.createElement)(CE,a({},c,{columns:2,ref:t}),(0,s.createElement)($L.Provider,{value:o},(0,s.createElement)(YL,{label:r,resetAll:i,toggleItem:l}),n))}),"ToolsPanel");var JL=$u(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){var t,n,r;const{className:o,hasValue:i,isShownByDefault:a,label:l,panelId:c,resetAllFilter:u,onDeselect:f,onSelect:p,...m}=ju(e,"ToolsPanelItem"),{panelId:h,menuItems:g,registerPanelItem:v,deregisterPanelItem:b,flagItemCustomization:y,isResetting:w,shouldRenderPlaceholderItems:x,firstDisplayedItem:_,lastDisplayedItem:E,__experimentalFirstVisibleItemClass:C,__experimentalLastVisibleItemClass:k}=WL(),S=(0,s.useCallback)(i,[c,i]),T=(0,s.useCallback)(u,[c,u]),N=(0,d.usePrevious)(h),R=h===c||null===h;(0,s.useEffect)((()=>(R&&null!==N&&v({hasValue:S,isShownByDefault:a,label:l,resetAllFilter:T,panelId:c}),()=>{(null===N&&h||h===c)&&b(l)})),[h,R,a,l,S,c,N,T,v,b]);const I=a?"default":"optional",M=null==g||null===(t=g[I])||void 0===t?void 0:t[l],P=(0,d.usePrevious)(M),O=void 0!==(null==g||null===(n=g[I])||void 0===n?void 0:n[l]),D=i(),A=(0,d.usePrevious)(D),L=D&&!A;(0,s.useEffect)((()=>{L&&(a||null===h)&&y(l,I)}),[h,L,a,I,l,y]),(0,s.useEffect)((()=>{O&&!w&&R&&(!M||D||P||null==p||p(),!M&&P&&(null==f||f()))}),[R,M,O,w,D,P,p,f]);const z=a?void 0!==(null==g||null===(r=g[I])||void 0===r?void 0:r[l]):M,B=Hu(),F=(0,s.useMemo)((()=>B(zL,x&&!z&&BL,o,_===l&&C,E===l&&k)),[z,x,o,B,_,E,C,k,l]);return{...m,isShown:z,shouldRenderPlaceholder:x,className:F}}(e);return r?(0,s.createElement)(nd,a({},i,{ref:t}),n):o?(0,s.createElement)(nd,a({},i,{ref:t})):null}),"ToolsPanelItem"),QL=window.wp.keycodes;const ez=(0,s.createContext)(),tz=ez.Provider;function nz(e){let{children:t}=e;const[n,r]=(0,s.useState)(),o=(0,s.useMemo)((()=>({lastFocusedElement:n,setLastFocusedElement:r})),[n]);return(0,s.createElement)(tz,{value:o},t)}function rz(e){const t=MS.focus.focusable.find(e,{sequential:!0});if(t&&t.length)return t.filter((t=>t.closest('[role="row"]')===e))}var oz=(0,s.forwardRef)((function(e,t){let{children:n,onExpandRow:r=(()=>{}),onCollapseRow:o=(()=>{}),onFocusRow:i=(()=>{}),applicationAriaLabel:l,...c}=e;const u=(0,s.useCallback)((e=>{const{keyCode:t,metaKey:n,ctrlKey:a,altKey:s}=e;if(n||a||s||![QL.UP,QL.DOWN,QL.LEFT,QL.RIGHT,QL.HOME,QL.END].includes(t))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!c.contains(l))return;const u=l.closest('[role="row"]'),d=rz(u),f=d.indexOf(l),p=0===f,m=p&&"false"===u.getAttribute("aria-expanded")&&t===QL.RIGHT;if([QL.LEFT,QL.RIGHT].includes(t)){let n;if(n=t===QL.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(t===QL.LEFT){var h,g,v;if("true"===u.getAttribute("aria-expanded"))return o(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=null==u?void 0:u.getAttribute("aria-level"))&&void 0!==h?h:1,10)-1,1),n=Array.from(c.querySelectorAll('[role="row"]'));let r=u;for(let e=n.indexOf(u);e>=0;e--)if(parseInt(n[e].getAttribute("aria-level"),10)===t){r=n[e];break}null===(g=rz(r))||void 0===g||null===(v=g[0])||void 0===v||v.focus()}if(t===QL.RIGHT){if("false"===u.getAttribute("aria-expanded"))return r(u),void e.preventDefault();const t=rz(u);var b;if(t.length>0)null===(b=t[n])||void 0===b||b.focus()}return void e.preventDefault()}if(m)return;d[n].focus(),e.preventDefault()}else if([QL.UP,QL.DOWN].includes(t)){const n=Array.from(c.querySelectorAll('[role="row"]')),r=n.indexOf(u);let o;if(o=t===QL.UP?Math.max(0,r-1):Math.min(r+1,n.length-1),o===r)return void e.preventDefault();const a=rz(n[o]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),i(e,u,n[o]),e.preventDefault()}else if([QL.HOME,QL.END].includes(t)){const n=Array.from(c.querySelectorAll('[role="row"]')),r=n.indexOf(u);let o;if(o=t===QL.HOME?0:n.length-1,o===r)return void e.preventDefault();const a=rz(n[o]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),i(e,u,n[o]),e.preventDefault()}}),[r,o,i]);return(0,s.createElement)(nz,null,(0,s.createElement)("div",{role:"application","aria-label":l},(0,s.createElement)("table",a({},c,{role:"treegrid",onKeyDown:u,ref:t}),(0,s.createElement)("tbody",null,n))))}));var iz=(0,s.forwardRef)((function(e,t){let{children:n,level:r,positionInSet:o,setSize:i,isExpanded:l,...c}=e;return(0,s.createElement)("tr",a({},c,{ref:t,role:"row","aria-level":r,"aria-posinset":o,"aria-setsize":i,"aria-expanded":l}),n)})),az=(0,s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const i=(0,s.useRef)(),a=t||i,{lastFocusedElement:l,setLastFocusedElement:c}=(0,s.useContext)(ez);let u;l&&(u=l===a.current?0:-1);const d={ref:a,tabIndex:u,onFocus:e=>c(e.target),...o};return"function"==typeof n?n(d):(0,s.createElement)(r,d,n)})),sz=(0,s.forwardRef)((function(e,t){let{children:n,...r}=e;return(0,s.createElement)(az,a({ref:t},r),n)})),lz=(0,s.forwardRef)((function(e,t){let{children:n,withoutGridItem:r=!1,...o}=e;return(0,s.createElement)("td",a({},o,{role:"gridcell"}),r?n:(0,s.createElement)(sz,{ref:t},n))}));function cz(e){e.stopPropagation()}var uz=(0,s.forwardRef)(((e,t)=>(Jl()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,s.createElement)("div",a({},e,{ref:t,onMouseDown:cz})))));function dz(e){return Fd((0,s.useContext)(Hd).fills,{sync:!0}).get(e)}const fz=ed("div",{target:"ebn2ljm1"})({name:"5ob2ly",styles:"display:flex;position:relative"}),pz=ed("div",{target:"ebn2ljm0"})((e=>{let{isLayered:t,offsetAmount:n}=e;return Gf(t?Vh({marginLeft:n})():Vh({right:-1*n})(),"","")})," ",(e=>{let{isLayered:t}=e;return t?mz:hz})," ",(e=>{let{zIndex:t}=e;return Gf({zIndex:t},"","")}),";"),mz={name:"a4hmbt",styles:"position:absolute"},hz={name:"bjn8wh",styles:"position:relative"};const gz=$u((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:l=0,...c}=ju(e,"ZStack"),u=Gv(n),d=u.length-1,f=u.map(((e,t)=>{const n=i?d-t:t,r=l*t,a=(0,s.isValidElement)(e)?e.key:t;return(0,s.createElement)(pz,{isLayered:o,offsetAmount:r,zIndex:n,key:a},e)}));return(0,s.createElement)(fz,a({},c,{className:r,ref:t}),f)}),"ZStack");var vz=gz;const bz={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function yz(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bz;const t=(0,s.useRef)(),[n,r]=(0,s.useState)(!1);function o(e){const n=Array.from(t.current.querySelectorAll('[role="region"][tabindex="-1"]'));if(!n.length)return;let o=n[0];const i=n.indexOf(t.current.ownerDocument.activeElement.closest('[role="region"][tabindex="-1"]'));if(-1!==i){let t=i+e;t=-1===t?n.length-1:t,t=t===n.length?0:t,o=n[t]}o.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((e=>{let{modifier:n,character:r}=e;return QL.isKeyboardEvent[n](t,r)}))?o(-1):e.next.some((e=>{let{modifier:n,character:r}=e;return QL.isKeyboardEvent[n](t,r)}))&&o(1)}}}var wz=(0,d.createHigherOrderComponent)((e=>t=>{let{shortcuts:n,...r}=t;return(0,s.createElement)("div",yz(n),(0,s.createElement)(e,r))}),"navigateRegions");var xz=(0,d.createHigherOrderComponent)((e=>function(t){const n=(0,d.useConstrainedTabbing)();return(0,s.createElement)("div",{ref:n,tabIndex:-1},(0,s.createElement)(e,t))}),"withConstrainedTabbing"),_z=e=>(0,d.createHigherOrderComponent)((t=>class extends s.Component{constructor(){super(...arguments),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);nc()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,s.createElement)(t,a({},this.props,this.state.fallbackStyles));return this.props.node?e:(0,s.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),Ez=window.wp.hooks;function Cz(e){return(0,d.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends s.Component{constructor(){super(...arguments),void 0===r&&(r=(0,Ez.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,Ez.addAction)("hookRemoved",n,a),(0,Ez.addAction)("hookAdded",n,a))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,Ez.removeAction)("hookRemoved",n),(0,Ez.removeAction)("hookAdded",n))}render(){return(0,s.createElement)(r,this.props)}}o.instances=[];const i=(0,d.debounce)((()=>{r=(0,Ez.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),16);function a(t){t===e&&i()}return o}),"withFilters")}var kz=(0,d.createHigherOrderComponent)((e=>{const t=function(){let{onFocusReturn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>n=>{const r=(0,d.useFocusReturn)(e);return(0,s.createElement)("div",{ref:r},(0,s.createElement)(t,n))}};if((n=e)instanceof s.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const Sz=e=>{let{children:t}=e;return Jl()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),t};var Tz=(0,d.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,s.useState)([]),l=(0,s.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:of()};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([])}}}),[]),c={...t,noticeList:o,noticeOperations:l,noticeUI:o.length>0&&(0,s.createElement)(ND,{className:"components-with-notices-ui",notices:o,onRemove:l.removeNotice})};return n?(0,s.createElement)(e,a({},c,{ref:r})):(0,s.createElement)(e,c)}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,s.forwardRef)(t)):t})),Nz=window.wp.privateApis;const{lock:Rz,unlock:Iz}=(0,Nz.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),Mz={};Rz(Mz,{CustomSelectControl:RN,__experimentalPopoverLegacyPositionToPlacement:xf})}(),(window.wp=window.wp||{}).components=r}();