%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/nossaradio.com.br/wp-includes/js/dist/
Upload File :
Create Path :
Current File : /var/www/projetos/nossaradio.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),v=void 0,g=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):(v=r.offset(t),g=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},w={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},x={left:p.left+h-(v.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(v.top+g+(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 v={};function g(e,t,n){if(h(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.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){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["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=g.apply(void 0,n):p(e,b,(function(){t=g.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);v["outer"+t]=function(t,n){return t&&y(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[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},v)},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,v=60117,g=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"),v=y("react.fundamental"),g=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)},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]+)/,v=/^rgb/i,g=/^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=M(_);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:M(I)}}))}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 M(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 I(){var e=A("hex",m,1)||C(g,(function(){return{type:"rgba",value:M(P)}}))||C(v,(function(){return{type:"rgb",value:M(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),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||h&&h[g]||s&&s[g])){var b=f(n,g);try{c(t,g,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,v=n?Symbol.for("react.lazy"):60116,g=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 v: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=v,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)===v},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===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},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},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 dg},Animate:function(){return lm},Autocomplete:function(){return Eg},BaseControl:function(){return Ag},BlockQuotation:function(){return i.BlockQuotation},Button:function(){return wd},ButtonGroup:function(){return tC},Card:function(){return LC},CardBody:function(){return UC},CardDivider:function(){return JC},CardFooter:function(){return ek},CardHeader:function(){return nk},CardMedia:function(){return rk},CheckboxControl:function(){return ik},Circle:function(){return i.Circle},ClipboardButton:function(){return ak},ColorIndicator:function(){return bb},ColorPalette:function(){return S_},ColorPicker:function(){return p_},ComboboxControl:function(){return BS},CustomGradientPicker:function(){return Xk},CustomSelectControl:function(){return XT},Dashicon:function(){return vc},DatePicker:function(){return KR},DateTimePicker:function(){return yM},Disabled:function(){return NM},Draggable:function(){return MM},DropZone:function(){return zM},DropZoneProvider:function(){return FM},Dropdown:function(){return xb},DropdownMenu:function(){return uS},DuotonePicker:function(){return GM},DuotoneSwatch:function(){return VM},ExternalLink:function(){return KM},Fill:function(){return Qd},Flex:function(){return Em},FlexBlock:function(){return vm},FlexItem:function(){return gm},FocalPointPicker:function(){return CI},FocusReturnProvider:function(){return IL},FocusableIframe:function(){return kI},FontSizePicker:function(){return fP},FormFileUpload:function(){return pP},FormToggle:function(){return hP},FormTokenField:function(){return xP},G:function(){return i.G},GradientPicker:function(){return Qk},Guide:function(){return CP},GuidePage:function(){return kP},HorizontalRule:function(){return i.HorizontalRule},Icon:function(){return gc},IconButton:function(){return SP},IsolatedEventContainer:function(){return vL},KeyboardShortcuts:function(){return MP},MenuGroup:function(){return IP},MenuItem:function(){return PP},MenuItemsChoice:function(){return DP},Modal:function(){return US},NavigableMenu:function(){return sS},Notice:function(){return zO},NoticeList:function(){return BO},Panel:function(){return VO},PanelBody:function(){return GO},PanelHeader:function(){return HO},PanelRow:function(){return YO},Path:function(){return i.Path},Placeholder:function(){return XO},Polygon:function(){return i.Polygon},Popover:function(){return hf},QueryControls:function(){return oD},RadioControl:function(){return lD},RangeControl:function(){return fy},Rect:function(){return i.Rect},ResizableBox:function(){return qD},ResponsiveWrapper:function(){return YD},SVG:function(){return i.SVG},SandBox:function(){return ZD},ScrollLock:function(){return Cd},SearchControl:function(){return jP},SelectControl:function(){return Ib},Slot:function(){return ef},SlotFillProvider:function(){return tf},Snackbar:function(){return QD},SnackbarList:function(){return rA},Spinner:function(){return uA},TabPanel:function(){return pA},TabbableContainer:function(){return AP},TextControl:function(){return hA},TextHighlight:function(){return _A},TextareaControl:function(){return xA},TimePicker:function(){return mM},Tip:function(){return CA},ToggleControl:function(){return kA},Toolbar:function(){return HA},ToolbarButton:function(){return OA},ToolbarDropdownMenu:function(){return VA},ToolbarGroup:function(){return LA},ToolbarItem:function(){return IA},Tooltip:function(){return _f},TreeSelect:function(){return QO},VisuallyHidden:function(){return bd},__experimentalAlignmentMatrixControl:function(){return im},__experimentalApplyValueToSides:function(){return DE},__experimentalBorderBoxControl:function(){return cE},__experimentalBorderControl:function(){return q_},__experimentalBoxControl:function(){return eC},__experimentalConfirmDialog:function(){return qS},__experimentalDimensionControl:function(){return xM},__experimentalDivider:function(){return ZC},__experimentalDropdownContentWrapper:function(){return x_},__experimentalElevation:function(){return iC},__experimentalGrid:function(){return X_},__experimentalHStack:function(){return gy},__experimentalHasSplitBorders:function(){return rE},__experimentalHeading:function(){return b_},__experimentalInputControl:function(){return Uv},__experimentalInputControlPrefixWrapper:function(){return NP},__experimentalInputControlSuffixWrapper:function(){return _b},__experimentalIsDefinedBorder:function(){return nE},__experimentalIsEmptyBorder:function(){return tE},__experimentalItem:function(){return TP},__experimentalItemGroup:function(){return Ck},__experimentalNavigation:function(){return rO},__experimentalNavigationBackButton:function(){return aO},__experimentalNavigationGroup:function(){return cO},__experimentalNavigationItem:function(){return bO},__experimentalNavigationMenu:function(){return EO},__experimentalNavigatorBackButton:function(){return DO},__experimentalNavigatorButton:function(){return OO},__experimentalNavigatorProvider:function(){return TO},__experimentalNavigatorScreen:function(){return IO},__experimentalNumberControl:function(){return tg},__experimentalPaletteEdit:function(){return TS},__experimentalParseQuantityAndUnitFromRawValue:function(){return D_},__experimentalRadio:function(){return aD},__experimentalRadioGroup:function(){return sD},__experimentalScrollable:function(){return $C},__experimentalSpacer:function(){return ug},__experimentalStyleProvider:function(){return Ud},__experimentalSurface:function(){return dA},__experimentalText:function(){return nh},__experimentalToggleGroupControl:function(){return VI},__experimentalToggleGroupControlOption:function(){return oP},__experimentalToggleGroupControlOptionIcon:function(){return SA},__experimentalToolbarContext:function(){return MA},__experimentalToolsPanel:function(){return oL},__experimentalToolsPanelContext:function(){return XA},__experimentalToolsPanelItem:function(){return iL},__experimentalTreeGrid:function(){return uL},__experimentalTreeGridCell:function(){return mL},__experimentalTreeGridItem:function(){return pL},__experimentalTreeGridRow:function(){return dL},__experimentalTruncate:function(){return g_},__experimentalUnitControl:function(){return $_},__experimentalUseCustomUnits:function(){return L_},__experimentalUseNavigator:function(){return PO},__experimentalUseSlot:function(){return Sd},__experimentalVStack:function(){return v_},__experimentalView:function(){return gd},__experimentalZStack:function(){return _L},__unstableComposite:function(){return Xp},__unstableCompositeGroup:function(){return Qp},__unstableCompositeItem:function(){return Se},__unstableDisclosureContent:function(){return rx},__unstableGetAnimateClassName:function(){return sm},__unstableMotion:function(){return fc},__unstableUseAutocompleteProps:function(){return _g},__unstableUseCompositeState:function(){return Vp},__unstableUseNavigateRegions:function(){return CL},createSlotFill:function(){return nf},navigateRegions:function(){return kL},withConstrainedTabbing:function(){return SL},withFallbackStyles:function(){return TL},withFilters:function(){return RL},withFocusOutside:function(){return LS},withFocusReturn:function(){return ML},withNotices:function(){return PL},withSpokenMessages:function(){return yO}});var e={};n.r(e),n.d(e,{Text:function(){return Vm},block:function(){return jm},destructive:function(){return Wm},highlighterText:function(){return Gm},muted:function(){return Um},positive:function(){return $m},upperCase:function(){return qm}});var t={};n.r(t),n.d(t,{TooltipContent:function(){return dx},TooltipPopoverView:function(){return fx},TooltipShortcut:function(){return mx},noOutline:function(){return px}});var o={};n.r(o),n.d(o,{ButtonContentView:function(){return KI},LabelView:function(){return GI},buttonActive:function(){return JI},buttonView:function(){return YI},isIcon:function(){return ZI},labelBlock:function(){return qI},separatorActive:function(){return XI}});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 v(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 g(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 v(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)?v(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=window.React,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 M(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(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[I(I({},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(I(I({},t.state),t),I(I({},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"]),v=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,g=v&&D(a,v)[0],b=g?_(_({},h),g):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 F(e,t){(0,b.useDebugValue)(e);var n=(0,b.useContext)(S);return null!=n[e]?n[e]:t}function B(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=F(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=F(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 H(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function V(e,t){return(0,b.useMemo)((function(){return null==e&&null==t?null:function(n){H(e,n),H(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 q(e){return e.target===e.currentTarget}function Y(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=Y(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=B({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=B({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),v=G(s),g=!!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(v,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:V(u,n),style:k,tabIndex:ae(g,w,E,r),disabled:!(!g||!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=B({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&&q(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 ve(e,t){e.userFocus=t}function ge(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=Y(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=B({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=B({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,v=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:!!v}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,p)}}),[p,v,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),ve(e.currentTarget,!0)}),[]),M=(0,b.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ve(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&p&&!function(e,t){if(q(e))return!1;for(var n,r=g(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&&q(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]),I=(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(q(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&&ge(s)&&(s.focus(),Ee(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ge(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:V(f,r),id:p,tabIndex:N?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:R,onFocus:M,onBlurCapture:I,onKeyDown:P,onClick:O},d)}}),Se=z({as:"button",memo:!0,useHook:ke});const Te=Math.min,Ne=Math.max,Re=Math.round,Me=Math.floor,Ie=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 Fe(e){return"x"===e?"y":"x"}function Be(e){return"y"===e?"height":"width"}function He(e){return["top","bottom"].includes(Le(e))?"y":"x"}function Ve(e){return Fe(He(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=He(t),a=Ve(t),s=Be(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 qe(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],v=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})),g="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:g,offsetParent:b,strategy:l}):g);return{top:(v.top-w.top+m.top)/y.y,bottom:(w.bottom-v.bottom+m.bottom)/y.y,left:(v.left-w.left+m.left)/y.x,right:(w.right-v.right+m.right)/y.x}}function Ye(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(Ye(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(Ye(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"===Ye(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 Ie(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=Ie(0);function ht(e){const t=Ke(e);return ot()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mt}function vt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ft(e);let a=Ie(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):Ie(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 gt=[":popover-open",":modal"];function bt(e){return gt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function yt(e){return vt(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=vt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qe(e)?pt(e):Ie(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=vt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ie(0);if(r||!r&&!i)if(("body"!==Ye(t)||tt(o))&&(s=st(t)),r){const e=vt(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=Ie(1);const u=Ie(0),d=Qe(r);if((d||!d&&!i)&&(("body"!==Ye(r)||tt(a))&&(l=st(r)),Qe(r))){const e=vt(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"!==Ye(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:-Me(u)+"px "+-Me(o.clientWidth-(c+d))+"px "+-Me(o.clientHeight-(u+f))+"px "+-Me(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?vt(e):null;return l&&function t(){const r=vt(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"===He(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 qe(t,l),d=He(Le(o)),f=Fe(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}}}}},Mt=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,...v}=Ae(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=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 qe(t,v),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(_[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ze(e),o=Ve(e),i=Be(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{}}}},It=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 qe(t,s),c=Le(n),u=ze(n),d="y"===He(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 v=p-l.top-l.bottom,g=f-l.left-l.right,b=Te(p-l[m],v),y=Te(f-l[h],g),w=!t.middlewareData.shift;let x=b,_=y;if(d?_=u||w?Te(y,g):g:x=u||w?Te(b,v):v,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=Ve(o),m=Be(p),h=await a.getDimensions(c),v="y"===p,g=v?"top":"left",b=v?"bottom":"right",y=v?"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[g],k),T=Te(d[b],k),N=S,R=E-h[m]-T,M=E/2-h[m]/2+C,I=De(N,M,R),P=!l.arrow&&null!=ze(o)&&M!==I&&i.reference[m]/2-(M<N?S:T)-h[m]/2<0,O=P?M<N?M-N:M-R:0;return{[p]:f[p]+O,data:{[p]:I,centerOffset:M-I-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:v,y:g,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!=v?v:u,d=null!=g?g: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;const At=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}}};var Lt="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function zt(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(!zt(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)&&!zt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ft(e){const t=b.useRef(e);return Lt((()=>{t.current=e})),t}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var Bt=function(e,t){return Bt=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])},Bt(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Bt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Vt=function(){return Vt=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},Vt.apply(this,arguments)};function jt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function $t(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ut(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Gt=(0,b.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),qt="undefined"!=typeof document,Yt={current:null},Kt=!1;function Xt(){return!Kt&&function(){if(Kt=!0,qt)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Yt.current=e.matches};e.addListener(t),t()}else Yt.current=!1}(),Wt((0,b.useState)(Yt.current),1)[0]}var Zt=("undefined"==typeof process||process.env,"production"),Jt=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Qt={measureLayout:Jt(["layout","layoutId","drag"]),animation:Jt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Jt(["exit"]),drag:Jt(["drag","dragControls"]),focus:Jt(["whileFocus"]),hover:Jt(["whileHover","onHoverStart","onHoverEnd"]),tap:Jt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Jt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Jt(["whileInView","onViewportEnter","onViewportLeave"])};var en=(0,b.createContext)({strict:!1}),tn=Object.keys(Qt),nn=tn.length;var rn=(0,b.createContext)({});var on=(0,b.createContext)(null),an=qt?b.useLayoutEffect:b.useEffect;function sn(e,t,n,r){var o,i,a=(0,b.useContext)(en),s=(0,b.useContext)(rn).visualElement,l=(0,b.useContext)(on),c=(o=Xt(),"never"!==(i=(0,b.useContext)(Gt).reducedMotion)&&("always"===i||o)),u=(0,b.useRef)(void 0);r||(r=a.renderer),!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return an((function(){null==d||d.syncRender()})),(0,b.useEffect)((function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()})),an((function(){return function(){return null==d?void 0:d.notifyUnmount()}}),[]),d}function ln(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function cn(e){return Array.isArray(e)}function un(e){return"string"==typeof e||cn(e)}function dn(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function fn(e,t,n){var r=e.getProps();return dn(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function pn(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||un(e.initial)||un(e.animate)||un(e.whileHover)||un(e.whileDrag)||un(e.whileTap)||un(e.whileFocus)||un(e.exit)}function mn(e){return Boolean(pn(e)||e.variants)}function hn(e){var t=function(e,t){if(pn(e)){var n=e.initial,r=e.animate;return{initial:!1===n||un(n)?n:void 0,animate:un(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(rn)),n=t.initial,r=t.animate;return(0,b.useMemo)((function(){return{initial:n,animate:r}}),[vn(n),vn(r)])}function vn(e){return Array.isArray(e)?e.join(" "):e}function gn(e){var t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}var bn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},yn=1;var wn=(0,b.createContext)({}),xn=(0,b.createContext)({});var _n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(b.Component);function En(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,i=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Qt.projectionNodeConstructor=e[t]:Qt[t].Component=e[t])}(t),(0,b.forwardRef)((function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=(0,b.useContext)(wn))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Vt(Vt({},e),{layoutId:l});var c=(0,b.useContext)(Gt),u=null,d=hn(e),f=c.isStatic?void 0:gn((function(){if(bn.hasEverUpdated)return yn++})),p=i(e,c.isStatic);return!c.isStatic&&qt&&(d.visualElement=sn(a,p,Vt(Vt({},c),e),n),function(e,t,n,r){var o,i=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=(0,b.useContext)(xn);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(s)||l&&ln(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:u,layoutScroll:c}))}(f,e,d.visualElement,r||Qt.projectionNodeConstructor),u=function(e,t,n){var r=[],o=(0,b.useContext)(en);if(!t)return null;"production"!==Zt&&n&&o.strict;for(var i=0;i<nn;i++){var a=tn[i],s=Qt[a],l=s.isEnabled,c=s.Component;l(e)&&c&&r.push(b.createElement(c,Vt({key:a},e,{visualElement:t})))}return r}(e,d.visualElement,t)),b.createElement(_n,{visualElement:d.visualElement,props:Vt(Vt({},c),e)},u,b.createElement(rn.Provider,{value:d},o(a,e,f,function(e,t,n){return(0,b.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ln(n)&&(n.current=r))}),[t])}(p,d.visualElement,s),p,c.isStatic,d.visualElement)))}))}function Cn(e){function t(t,n){return void 0===n&&(n={}),En(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var kn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Sn(e){return"string"==typeof e&&!e.includes("-")&&!!(kn.indexOf(e)>-1||/[A-Z]/.test(e))}var Tn={};var Nn=["","X","Y","Z"],Rn=["transformPerspective","x","y","z"];function Mn(e,t){return Rn.indexOf(e)-Rn.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Nn.forEach((function(t){return Rn.push(e+t)}))}));var In=new Set(Rn);function Pn(e){return In.has(e)}var On=new Set(["originX","originY","originZ"]);function Dn(e){return On.has(e)}function An(e,t){var n=t.layout,r=t.layoutId;return Pn(e)||Dn(e)||(n||void 0!==r)&&(!!Tn[e]||"opacity"===e)}var Ln=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},zn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Fn(e){return e.startsWith("--")}var Bn=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Hn=(e,t)=>n=>Math.max(Math.min(n,t),e),Vn=e=>e%1?Number(e.toFixed(5)):e,jn=/(-)?([\d]*\.?[\d])+/g,$n=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Wn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Un(e){return"string"==typeof e}const Gn=e=>({test:t=>Un(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),qn=Gn("deg"),Yn=Gn("%"),Kn=Gn("px"),Xn=Gn("vh"),Zn=Gn("vw"),Jn=Object.assign(Object.assign({},Yn),{parse:e=>Yn.parse(e)/100,transform:e=>Yn.transform(100*e)}),Qn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},er=Object.assign(Object.assign({},Qn),{transform:Hn(0,1)}),tr=Object.assign(Object.assign({},Qn),{default:1});var nr=Vt(Vt({},Qn),{transform:Math.round}),rr={borderWidth:Kn,borderTopWidth:Kn,borderRightWidth:Kn,borderBottomWidth:Kn,borderLeftWidth:Kn,borderRadius:Kn,radius:Kn,borderTopLeftRadius:Kn,borderTopRightRadius:Kn,borderBottomRightRadius:Kn,borderBottomLeftRadius:Kn,width:Kn,maxWidth:Kn,height:Kn,maxHeight:Kn,size:Kn,top:Kn,right:Kn,bottom:Kn,left:Kn,padding:Kn,paddingTop:Kn,paddingRight:Kn,paddingBottom:Kn,paddingLeft:Kn,margin:Kn,marginTop:Kn,marginRight:Kn,marginBottom:Kn,marginLeft:Kn,rotate:qn,rotateX:qn,rotateY:qn,rotateZ:qn,scale:tr,scaleX:tr,scaleY:tr,scaleZ:tr,skew:qn,skewX:qn,skewY:qn,distance:Kn,translateX:Kn,translateY:Kn,translateZ:Kn,x:Kn,y:Kn,z:Kn,perspective:Kn,transformPerspective:Kn,opacity:er,originX:Jn,originY:Jn,originZ:Kn,zIndex:nr,fillOpacity:er,strokeOpacity:er,numOctaves:nr};function or(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(Fn(p))a[p]=m;else{var h=rr[p],v=Bn(m,h);if(Pn(p)){if(u=!0,s[p]=v,l.push(p),!f)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else Dn(p)?(c[p]=v,d=!0):i[p]=v}}u?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";i.sort(Mn);for(var d=!1,f=i.length,p=0;p<f;p++){var m=i[p];u+="".concat(zn[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,f,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(c))}var ir=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ar(e,t,n){for(var r in t)Ln(t[r])||An(r,n)||(e[r]=t[r])}function sr(e,t,n){var r={};return ar(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,b.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};or(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Vt(Vt({},e.vars),o)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}function lr(e,t,n){var r={},o=sr(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var cr=new Set(["initial","animate","exit","style","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","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function ur(e){return cr.has(e)}var dr,fr=function(e){return!ur(e)};try{(dr=require("@emotion/is-prop-valid").default)&&(fr=function(e){return e.startsWith("on")?!ur(e):dr(e)})}catch(e){}function pr(e,t,n){return"string"==typeof e?e:Kn.transform(t+n*e)}var mr={offset:"stroke-dashoffset",array:"stroke-dasharray"},hr={offset:"strokeDashoffset",array:"strokeDasharray"};function vr(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,f=void 0===d?0:d;or(e,jt(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,h=e.dimensions;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==a||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=pr(t,e.x,e.width),o=pr(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?mr:hr;e[i.offset]=Kn.transform(-r);var a=Kn.transform(t),s=Kn.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,u,f,!1)}var gr=function(){return Vt(Vt({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function br(e,t){var n=(0,b.useMemo)((function(){var n=gr();return vr(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Vt(Vt({},n.attrs),{style:Vt({},n.style)})}),[t]);if(e.style){var r={};ar(r,e.style,e),n.style=Vt(Vt({},r),n.style)}return n}function yr(e){void 0===e&&(e=!1);return function(t,n,r,o,i,a){var s=i.latestValues,l=(Sn(t)?br:lr)(n,s,a),c=function(e,t,n){var r={};for(var o in e)(fr(o)||!0===n&&ur(o)||!t&&!ur(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=Vt(Vt(Vt({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),(0,b.createElement)(t,u)}}var wr=/([a-z])([A-Z])/g,xr=function(e){return e.replace(wr,"$1-$2").toLowerCase()};function _r(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var Er=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Cr(e,t,n,r){for(var o in _r(e,t,void 0,r),t.attrs)e.setAttribute(Er.has(o)?o:xr(o),t.attrs[o])}function kr(e){var t=e.style,n={};for(var r in t)(Ln(t[r])||An(r,e))&&(n[r]=t[r]);return n}function Sr(e){var t=kr(e);for(var n in e){if(Ln(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Tr(e){return"object"==typeof e&&"function"==typeof e.start}var Nr=function(e){return Array.isArray(e)},Rr=function(e){return Nr(e)?e[e.length-1]||0:e};function Mr(e){var t=Ln(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Ir(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Or(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Pr=function(e){return function(t,n){var r=(0,b.useContext)(rn),o=(0,b.useContext)(on);return n?Ir(e,t,r,o):gn((function(){return Ir(e,t,r,o)}))}};function Or(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=Mr(a[s]);var l=e.initial,c=e.animate,u=pn(e),d=mn(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=i||!1===l,p=f?c:l;p&&"boolean"!=typeof p&&!Tr(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=dn(e,t);if(n){var r=n.transitionEnd;n.transition;var i=jt(n,["transitionEnd","transition"]);for(var a in i){var s=i[a];if(Array.isArray(s))s=s[f?s.length-1:0];null!==s&&(o[a]=s)}for(var a in r)o[a]=r[a]}}));return o}var Dr,Ar={useVisualState:Pr({scrapeMotionValuesFromProps:Sr,createRenderState:gr,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}vr(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Cr(t,r)}})},Lr={useVisualState:Pr({scrapeMotionValuesFromProps:kr,createRenderState:ir})};function zr(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Fr(e,t,n,r){(0,b.useEffect)((function(){var o=e.current;if(n&&o)return zr(o,t,n,r)}),[e,t,n,r])}function Br(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Hr(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"}(Dr||(Dr={}));var Vr={pageX:0,pageY:0};function jr(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Vr;return{x:n[t+"X"],y:n[t+"Y"]}}function $r(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Wr(e,t){return void 0===t&&(t="page"),{point:Hr(e)?jr(e,t):$r(e,t)}}var Ur=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Wr(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Gr={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},qr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Yr(e){return qt&&null===window.onpointerdown?e:qt&&null===window.ontouchstart?qr[e]:qt&&null===window.onmousedown?Gr[e]:e}function Kr(e,t,n,r){return zr(e,Yr(t),Ur(n,"pointerdown"===t),r)}function Xr(e,t,n,r){return Fr(e,Yr(t),n&&Ur(n,"pointerdown"===t),r)}function Zr(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Jr=Zr("dragHorizontal"),Qr=Zr("dragVertical");function eo(e){var t=!1;if("y"===e)t=Qr();else if("x"===e)t=Jr();else{var n=Jr(),r=Qr();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function to(){var e=eo(!0);return!e||(e(),!1)}function no(e,t,n){return function(r,o){var i;Br(r)&&!to()&&(null===(i=e.animationState)||void 0===i||i.setActive(Dr.Hover,t),null==n||n(r,o))}}var ro=function(e,t){return!!t&&(e===t||ro(e,t.parentElement))};function oo(e){return(0,b.useEffect)((function(){return function(){return e()}}),[])}const io=(e,t)=>n=>t(e(n)),ao=(...e)=>e.reduce(io);var so=new Set;var lo=new WeakMap,co=new WeakMap,uo=function(e){var t;null===(t=lo.get(e.target))||void 0===t||t(e)},fo=function(e){e.forEach(uo)};function po(e,t,n){var r=function(e){var t=e.root,n=jt(e,["root"]),r=t||document;co.has(r)||co.set(r,{});var o=co.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(fo,Vt({root:t},n))),o[i]}(t);return lo.set(e,n),r.observe(e),function(){lo.delete(e),r.unobserve(e)}}var mo={some:0,all:1};function ho(e,t,n,r){var o=r.root,i=r.margin,a=r.amount,s=void 0===a?"some":a,l=r.once;(0,b.useEffect)((function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:i,threshold:"number"==typeof s?s:mo[s]};return po(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Dr.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,s])}function vo(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,b.useEffect)((function(){var r,o;e&&i&&("production"!==Zt&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||so.has(r)||(console.warn(r),o&&console.warn(o),so.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Dr.InView,!0)})))}),[e])}var go=function(e){return function(t){return e(t),null}},bo={inView:go((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=void 0===i?{}:i,s=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);a.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?vo:ho)(l,s.current,t,a)})),tap:go((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||n||r||o,s=(0,b.useRef)(!1),l=(0,b.useRef)(null),c={passive:!(n||t||r||m)};function u(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function d(){var e;return u(),s.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(Dr.Tap,!1),!to()}function f(e,n){d()&&(ro(i.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){d()&&(null==r||r(e,t))}function m(e,t){var r;u(),s.current||(s.current=!0,l.current=ao(Kr(window,"pointerup",f,c),Kr(window,"pointercancel",p,c)),null===(r=i.animationState)||void 0===r||r.setActive(Dr.Tap,!0),null==n||n(e,t))}Xr(i,"pointerdown",a?m:void 0,c),oo(u)})),focus:go((function(e){var t=e.whileFocus,n=e.visualElement;Fr(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Dr.Focus,!0)}:void 0),Fr(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Dr.Focus,!1)}:void 0)})),hover:go((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Xr(o,"pointerenter",t||r?no(o,!0,t):void 0,{passive:!t}),Xr(o,"pointerleave",n||r?no(o,!1,n):void 0,{passive:!n})}))},yo=0,wo=function(){return yo++},xo=function(){return gn(wo)};function _o(){var e=(0,b.useContext)(on);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=xo();(0,b.useEffect)((function(){return r(o)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Eo(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Co=(e,t,n)=>Math.min(Math.max(n,e),t),ko=.001;function So({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Co(.05,1,a),e=Co(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=To(t,a),l=Math.exp(-o);return ko-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=To(Math.pow(t,2),a);return(-o(t)+ko>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 To(e,t){return e*Math.sqrt(1-t*t)}const No=["duration","bounce"],Ro=["stiffness","damping","mass"];function Mo(e,t){return t.some((t=>void 0!==e[t]))}function Io(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=jt(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Mo(e,Ro)&&Mo(e,No)){const n=So(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(i),p=Po,m=Po;function h(){const e=u?-u/1e3:0,r=n-t,i=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=To(a,i);p=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);p=o=>{const s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*m(e),s=Math.abs(i)<=r,l=Math.abs(n-t)<=o;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}Io.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Po=e=>0,Oo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Do=(e,t,n)=>-n*e+n*t+e,Ao=(e,t)=>n=>Boolean(Un(n)&&Wn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Lo=(e,t,n)=>r=>{if(!Un(r))return r;const[o,i,a,s]=r.match(jn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},zo=Hn(0,255),Fo=Object.assign(Object.assign({},Qn),{transform:e=>Math.round(zo(e))}),Bo={test:Ao("rgb","red"),parse:Lo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fo.transform(e)+", "+Fo.transform(t)+", "+Fo.transform(n)+", "+Vn(er.transform(r))+")"};const Ho={test:Ao("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),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:Bo.transform},Vo={test:Ao("hsl","hue"),parse:Lo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yn.transform(Vn(t))+", "+Yn.transform(Vn(n))+", "+Vn(er.transform(r))+")"};function jo(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}function $o({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=jo(s,r,e+1/3),i=jo(s,r,e),a=jo(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}}const Wo=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Uo=[Ho,Bo,Vo],Go=e=>Uo.find((t=>t.test(e))),qo=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Yo=(e,t)=>{let n=Go(e),r=Go(t);qo(e),qo(t);let o=n.parse(e),i=r.parse(t);n===Vo&&(o=$o(o),n=Bo),r===Vo&&(i=$o(i),r=Bo);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Wo(o[t],i[t],e));return a.alpha=Do(o.alpha,i.alpha,e),n.transform(a)}},Ko={test:e=>Bo.test(e)||Ho.test(e)||Vo.test(e),parse:e=>Bo.test(e)?Bo.parse(e):Vo.test(e)?Vo.parse(e):Ho.parse(e),transform:e=>Un(e)?e:e.hasOwnProperty("red")?Bo.transform(e):Vo.transform(e)},Xo="${c}",Zo="${n}";function Jo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match($n);r&&(n=r.length,e=e.replace($n,Xo),t.push(...r.map(Ko.parse)));const o=e.match(jn);return o&&(e=e.replace(jn,Zo),t.push(...o.map(Qn.parse))),{values:t,numColors:n,tokenised:e}}function Qo(e){return Jo(e).values}function ei(e){const{values:t,numColors:n,tokenised:r}=Jo(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Xo:Zo,r<n?Ko.transform(e[r]):Vn(e[r]));return t}}const ti=e=>"number"==typeof e?0:e;const ni={test:function(e){var t,n,r,o;return isNaN(e)&&Un(e)&&(null!==(n=null===(t=e.match(jn))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match($n))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qo,createTransformer:ei,getAnimatableNone:function(e){const t=Qo(e);return ei(e)(t.map(ti))}},ri=e=>"number"==typeof e;function oi(e,t){return ri(e)?n=>Do(e,t,n):Ko.test(e)?Yo(e,t):li(e,t)}const ii=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>oi(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ai=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=oi(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function si(e){const t=ni.parse(e),n=t.length;let r=0,o=0,i=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const li=(e,t)=>{const n=ni.createTransformer(t),r=si(e),o=si(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ao(ii(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},ci=(e,t)=>n=>Do(e,t,n);function ui(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ci:"string"==typeof e?Ko.test(e)?Yo:li:Array.isArray(e)?ii:"object"==typeof e?ai:void 0}(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=ao(e,i)}r.push(i)}return r}function di(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=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=ui(t,r,o),s=2===i?function([e,t],[n]){return r=>n(Oo(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=Oo(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(Co(e[0],e[i-1],t)):s}const fi=e=>t=>1-e(1-t),pi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mi=e=>t=>t*t*((e+1)*t-e),hi=e=>e,vi=(gi=2,e=>Math.pow(e,gi));var gi;const bi=fi(vi),yi=pi(vi),wi=e=>1-Math.sin(Math.acos(e)),xi=fi(wi),_i=pi(xi),Ei=mi(1.525),Ci=fi(Ei),ki=pi(Ei),Si=(e=>{const t=mi(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),Ti=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Ni=fi(Ti);function Ri(e,t){return e.map((()=>t||yi)).splice(0,e.length-1)}function Mi({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function l(){return di(s,a,{ease:Array.isArray(n)?n:Ri(a,n)})}let c=l();return{next:e=>(i.value=c(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}const Ii={keyframes:Mi,spring:Io,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===i?l:i(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};const Pi=1/60*1e3,Oi="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Di="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Oi())),Pi);let Ai=!0,Li=!1,zi=!1;const Fi={delta:0,timestamp:0},Bi=["read","update","preRender","render","postRender"],Hi=Bi.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}((()=>Li=!0)),e)),{}),Vi=Bi.reduce(((e,t)=>{const n=Hi[t];return e[t]=(e,t=!1,r=!1)=>(Li||Gi(),n.schedule(e,t,r)),e}),{}),ji=Bi.reduce(((e,t)=>(e[t]=Hi[t].cancel,e)),{}),$i=Bi.reduce(((e,t)=>(e[t]=()=>Hi[t].process(Fi),e)),{}),Wi=e=>Hi[e].process(Fi),Ui=e=>{Li=!1,Fi.delta=Ai?Pi:Math.max(Math.min(e-Fi.timestamp,40),1),Fi.timestamp=e,zi=!0,Bi.forEach(Wi),zi=!1,Li&&(Ai=!1,Di(Ui))},Gi=()=>{Li=!0,Ai=!0,zi||Di(Ui)},qi=()=>Fi;var Yi=Vi;function Ki(e,t,n=0){return e-t-n}const Xi=e=>{const t=({delta:t})=>e(t);return{start:()=>Yi.update(t,!0),stop:()=>ji.update(t)}};function Zi(e){var t,n,{from:r,autoplay:o=!0,driver:i=Xi,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=jt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,b,{to:y}=h,w=0,x=h.duration,_=!1,E=!0;const C=function(e){if(Array.isArray(e.to))return Mi;if(Ii[e.type])return Ii[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Mi:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Io:Mi}(h);(null===(n=(t=C).needsInterpolation)||void 0===n?void 0:n.call(t,r,y))&&(b=di([0,100],[r,y],{clamp:!1}),r=0,y=100);const k=C(Object.assign(Object.assign({},h),{from:r,to:y}));function S(){w++,"reverse"===l?(E=w%2==0,a=function(e,t,n=0,r=!0){return r?Ki(t+-e,t,n):t-(e-t)+n}(a,x,c,E)):(a=Ki(a,x,c),"mirror"===l&&k.flipTarget()),_=!1,p&&p()}function T(e){if(E||(e=-e),a+=e,!_){const e=k.next(Math.max(0,a));g=e.value,b&&(g=b(g)),_=E?e.done:a<=0}null==m||m(g),_&&(0===w&&(null!=x||(x=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,x,c,E)&&S():(v.stop(),f&&f()))}return o&&(null==u||u(),v=i(T),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function Ji(e,t){return t?e*(1e3/t):0}var Qi=function(e){return 1e3*e};const ea=(e,t)=>1-3*t+3*e,ta=(e,t)=>3*t-6*e,na=e=>3*e,ra=(e,t,n)=>((ea(t,n)*e+ta(t,n))*e+na(t))*e,oa=(e,t,n)=>3*ea(t,n)*e*e+2*ta(t,n)*e+na(t);const ia=.1;function aa(e,t,n,r){if(e===t&&n===r)return hi;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=ra(t*ia,e,n);function i(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=ia;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*ia,s=oa(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=oa(t,n,r);if(0===o)return t;t-=(ra(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ra(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+ia,e,n)}return e=>0===e||1===e?e:ra(i(e),t,r)}var sa={linear:hi,easeIn:vi,easeInOut:yi,easeOut:bi,circIn:wi,circInOut:_i,circOut:xi,backIn:Ei,backInOut:ki,backOut:Ci,anticipate:Si,bounceIn:Ni,bounceInOut:e=>e<.5?.5*(1-Ti(1-2*e)):.5*Ti(2*e-1)+.5,bounceOut:Ti},la=function(e){if(Array.isArray(e)){e.length;var t=Wt(e,4);return aa(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),sa[e]):e},ca=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ni.test(t)||t.startsWith("url(")))},ua=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},da=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},fa=function(){return{type:"keyframes",ease:"linear",duration:.3}},pa=function(e){return{type:"keyframes",duration:.8,values:e}},ma={x:ua,y:ua,z:ua,rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scaleX:da,scaleY:da,scale:da,opacity:fa,backgroundColor:fa,color:fa,default:da};const ha=new Set(["brightness","contrast","saturate","opacity"]);function va(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(jn)||[];if(!r)return e;const o=n.replace(r,"");let i=ha.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ga=/([a-z-]*)\(.*?\)/g,ba=Object.assign(Object.assign({},ni),{getAnimatableNone:e=>{const t=e.match(ga);return t?t.map(va).join(" "):e}});var ya=Vt(Vt({},rr),{color:Ko,backgroundColor:Ko,outlineColor:Ko,fill:Ko,stroke:Ko,borderColor:Ko,borderTopColor:Ko,borderRightColor:Ko,borderBottomColor:Ko,borderLeftColor:Ko,filter:ba,WebkitFilter:ba}),wa=function(e){return ya[e]};function xa(e,t){var n,r=wa(e);return r!==ba&&(r=ni),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var _a=!1;function Ea(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=jt(e,["ease","times","yoyo","flip","loop"]),s=Vt({},a);return n&&(s.offset=n),a.duration&&(s.duration=Qi(a.duration)),a.repeatDelay&&(s.repeatDelay=Qi(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(la):la(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(!0,r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function Ca(e,t,n){var r,o,i,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ut([],Wt(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=jt(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Vt(Vt({},e),(o=n,i=t.to,a=Nr(i)?pa:ma[o]||ma.default,Vt({to:i},a(i))))),Vt(Vt({},t),Ea(e))}function ka(e,t,n,r,o){var i,a=Na(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=ca(e,n);"none"===s&&l&&"string"==typeof n?s=xa(e,n):Sa(s)&&"string"==typeof n?s=Ta(n):!Array.isArray(n)&&Sa(n)&&"string"==typeof s&&(n=Ta(s));var c=ca(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,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}){let m;function h(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 g(e){null==m||m.stop(),m=Zi(Object.assign(Object.assign({},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 b(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(h(e))b({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const a=v(r),s=a===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=Ji(e-u,qi().delta),(1===s&&e>a||-1===s&&e<a)&&b({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Vt(Vt({},r),a)):Zi(Vt(Vt({},Ca(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,i=Rr(n);return t.set(i),o(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,i),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function Sa(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ta(e){return"number"==typeof e?0:xa("",e)}function Na(e,t){return e[t]||e.default||e}function Ra(e,t,n,r){return void 0===r&&(r={}),_a&&(r={type:!1}),t.start((function(o){var i,a,s=ka(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Na(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return l?i=window.setTimeout(c,Qi(l)):c(),function(){clearTimeout(i),null==a||a.stop()}}))}var Ma=function(e){return/^\-?\d*\.?\d+$/.test(e)},Ia=function(e){return/^0[^.\s]+$/.test(e)};function Pa(e,t){-1===e.indexOf(t)&&e.push(t)}function Oa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Da=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Pa(this.subscriptions,e),function(){return Oa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Aa=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Da,this.velocityUpdateSubscribers=new Da,this.renderSubscribers=new Da,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=qi(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,Yi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Yi.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ji(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function La(e){return new Aa(e)}var za=function(e){return function(t){return t.test(e)}},Fa=[Qn,Kn,Yn,qn,Zn,Xn,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ba=function(e){return Fa.find(za(e))},Ha=Ut(Ut([],Wt(Fa),!1),[Ko,ni],!1),Va=function(e){return Ha.find(za(e))};function ja(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,La(n))}function $a(e,t){var n=fn(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=jt(r,["transitionEnd","transition"]);for(var s in a=Vt(Vt({},a),i)){ja(e,s,Rr(a[s]))}}function Wa(e,t){if(t)return(t[e]||t.default||t).from}function Ua(e,t,n){var r;void 0===n&&(n={});var o=fn(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return Ga(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,o,i){void 0===n&&(n=0);void 0===r&&(r=0);void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(qa).forEach((function(e,r){a.push(Ua(e,t,Vt(Vt({},i),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,s,l,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=Wt("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function Ga(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=jt(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),b=p[v];if(!(!g||void 0===b||h&&Ya(h,v))){var y=Vt({delay:a},d);e.shouldReduceMotion&&Pn(v)&&(y=Vt(Vt({},y),{type:!1,delay:0}));var w=Ra(v,g,b,y);m.push(w)}}return Promise.all(m).then((function(){f&&$a(e,f)}))}function qa(e,t){return e.sortNodePosition(t)}function Ya(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Ka=[Dr.Animate,Dr.InView,Dr.Focus,Dr.Hover,Dr.Tap,Dr.Drag,Dr.Exit],Xa=Ut([],Wt(Ka),!1).reverse(),Za=Ka.length;function Ja(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return Ua(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Ua(e,t,n);else{var i="function"==typeof t?fn(e,t,n.custom):t;r=Ga(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function Qa(e){var t,n=Ja(e),r=((t={})[Dr.Animate]=es(!0),t[Dr.InView]=es(),t[Dr.Hover]=es(),t[Dr.Tap]=es(),t[Dr.Drag]=es(),t[Dr.Focus]=es(),t[Dr.Exit]=es(),t),o={},i=!0,a=function(t,n){var r=fn(e,n);if(r){r.transition;var o=r.transitionEnd,i=jt(r,["transition","transitionEnd"]);t=Vt(Vt(Vt({},t),i),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(n){var o=Xa[n],h=r[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],g=un(v),b=o===s?h.isActive:null;!1===b&&(m=n);var y=v===u[o]&&v!==c[o]&&g;if(y&&i&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys=Vt({},p),!h.isActive&&null===b||!v&&!h.prevProp||Tr(v)||"boolean"==typeof v)return"continue";var w=function(e,t){if("string"==typeof t)return t!==e;if(cn(t))return!Eo(t,e);return!1}(h.prevProp,v),x=w||o===s&&h.isActive&&!y&&g||n>m&&g,_=Array.isArray(v)?v:[v],E=_.reduce(a,{});!1===b&&(E={});var C=h.prevResolvedValues,k=void 0===C?{}:C,S=Vt(Vt({},k),E),T=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var N in S){var R=E[N],M=k[N];p.hasOwnProperty(N)||(R!==M?Nr(R)&&Nr(M)?!Eo(R,M)||w?T(N):h.protectedKeys[N]=!0:void 0!==R?T(N):f.add(N):void 0!==R&&f.has(N)?T(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=E,h.isActive&&(p=Vt(Vt({},p),E)),i&&e.blockInitialAnimation&&(x=!1),x&&!y&&d.push.apply(d,Ut([],Wt(_.map((function(e){return{animation:e,options:Vt({type:o},t)}}))),!1))},v=0;v<Za;v++)h(v);if(o=Vt({},p),f.size){var g={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var b=Boolean(d.length);return i&&!1===c.initial&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;var a=s(o,t);for(var l in r)r[l].protectedKeys={};return a},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function es(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var ts={animation:go((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Qa(t)),Tr(n)&&(0,b.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:go((function(e){var t=e.custom,n=e.visualElement,r=Wt(_o(),2),o=r[0],i=r[1],a=(0,b.useContext)(on);(0,b.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Dr.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])}))};const ns=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),rs=e=>ns(e)&&e.hasOwnProperty("z"),os=(e,t)=>Math.abs(e-t);function is(e,t){if(ri(e)&&ri(t))return os(e,t);if(ns(e)&&ns(t)){const n=os(e.x,t.x),r=os(e.y,t.y),o=rs(e)&&rs(t)?os(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var as=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=cs(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=is(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=qi().timestamp;r.history.push(Vt(Vt({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=ss(t,r.transformPagePoint),Br(e)&&0===e.buttons?r.handlePointerUp(e,t):Yi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=cs(ss(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(Hr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=ss(Wr(e),this.transformPagePoint),a=i.point,s=qi().timestamp;this.history=[Vt(Vt({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,cs(i,this.history)),this.removeListeners=ao(Kr(window,"pointermove",this.handlePointerMove),Kr(window,"pointerup",this.handlePointerUp),Kr(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),ji.update(this.updatePoint)},e}();function ss(e,t){return t?{point:t(e.point)}:e}function ls(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cs(e,t){var n=e.point;return{point:n,delta:ls(n,ds(t)),offset:ls(n,us(t)),velocity:fs(t,.1)}}function us(e){return e[0]}function ds(e){return e[e.length-1]}function fs(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=ds(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Qi(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var 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 ps(e){return e.max-e.min}function ms(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),is(e,t)<n}function hs(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Do(t.min,t.max,e.origin),e.scale=ps(n)/ps(t),(ms(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Do(n.min,n.max,e.origin)-e.originPoint,(ms(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vs(e,t,n,r){hs(e.x,t.x,n.x,null==r?void 0:r.originX),hs(e.y,t.y,n.y,null==r?void 0:r.originY)}function gs(e,t,n){e.min=n.min+t.min,e.max=e.min+ps(t)}function bs(e,t,n){e.min=t.min-n.min,e.max=e.min+ps(t)}function ys(e,t,n){bs(e.x,t.x,n.x),bs(e.y,t.y,n.y)}function ws(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 xs(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Wt([o,r],2))[0],o=n[1]),{min:r,max:o}}var _s=.35;function Es(e,t,n){return{min:Cs(e,t),max:Cs(e,n)}}function Cs(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function ks(e){return[e("x"),e("y")]}function Ss(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Ts(e){return void 0===e||1===e}function Ns(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Ts(t)||!Ts(n)||!Ts(r)}function Rs(e){return Ns(e)||Ms(e.x)||Ms(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Ms(e){return e&&"0%"!==e}function Is(e,t,n){return n+t*(e-n)}function Ps(e,t,n,r,o){return void 0!==o&&(e=Is(e,o,r)),Is(e,n,r)+t}function Os(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Ps(e.min,t,n,r,o),e.max=Ps(e.max,t,n,r,o)}function Ds(e,t){var n=t.x,r=t.y;Os(e.x,n.translate,n.scale,n.originPoint),Os(e.y,r.translate,r.scale,r.originPoint)}function As(e,t){e.min=e.min+t,e.max=e.max+t}function Ls(e,t,n){var r=Wt(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Do(e.min,e.max,s);Os(e,t[o],t[i],l,t.scale)}var zs=["x","scaleX","originX"],Fs=["y","scaleY","originY"];function Bs(e,t){Ls(e.x,t,zs),Ls(e.y,t,Fs)}function Hs(e,t){return Ss(function(e,t){if(!t)return e;var 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))}var Vs=new WeakMap,js=function(){function e(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}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new as(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Wr(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=eo(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),ks((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Yn.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(i)o=ps(i)*(parseFloat(o)/100)}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Dr.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){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,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Dr.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&$s(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?Do(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Do(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&ln(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:ws(e.x,r,i),y:ws(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=_s),!1===e?e=0:!0===e&&(e=_s),{x:Es(e,"left","right"),y:Es(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ks((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!ln(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Hs(e,n),o=t.scroll;return o&&(As(r.x,o.x),As(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:xs(e.x,t.x),y:xs(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ss(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=ks((function(n){var l;if($s(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=Vt(Vt({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,p)}}));return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Ra(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;ks((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;ks((function(n){if($s(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-Do(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(ln(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};ks((function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(n={min:c,max:c},r=t.constraints[e],o=.5,i=ps(n),(s=ps(r))>i?o=Oo(r.min,r.max-i,n.min):i>s&&(o=Oo(n.min,n.max-s,r.min)),Co(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),ks((function(e){if($s(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(Do(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Vs.set(this.visualElement,this);var n=Kr(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){ln(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=zr(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(ks((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?_s:c,d=e.dragMomentum,f=void 0===d||d;return Vt(Vt({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function $s(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Ws={pan:go((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||n||r||o,s=(0,b.useRef)(null),l=(0,b.useContext)(Gt).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};(0,b.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),Xr(i,"pointerdown",a&&function(e){s.current=new as(e,c,{transformPagePoint:l})}),oo((function(){return s.current&&s.current.end()}))})),drag:go((function(e){var t=e.dragControls,n=e.visualElement,r=gn((function(){return new js(n)}));(0,b.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,b.useEffect)((function(){return r.addListeners()}),[r])}))},Us=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var Gs=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var b,y,w=!1,x=v.latestValues,_=v.renderState,E=function(){var e=Us.map((function(){return new Da})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Us.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+Us[t]]=function(t){return e.add(t)},n["notify"+Us[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ut([],Wt(t),!1))}})),n}(),C=new Map,k=new Map,S={},T=Vt({},x);function N(){b&&w&&(R(),s(b,_,p.style,z.projection))}function R(){r(z,_,x,t,p)}function M(){E.notifyUpdate(x)}function I(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&Yi.update(M,!1,!0)})),r=t.onRenderRequest(z.scheduleRender);k.set(e,(function(){n(),r()}))}var P=d(p);for(var O in P){var D=P[O];void 0!==x[O]&&Ln(D)&&D.set(x[O],!1)}var A=pn(p),L=mn(p),z=Vt(Vt({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:L?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(b)},mount:function(e){w=!0,b=z.current=e,z.projection&&z.projection.mount(e),L&&f&&!A&&(y=null==f?void 0:f.addVariantChild(z)),C.forEach((function(e,t){return I(t,e)})),null==f||f.children.add(z),z.setProps(p)},unmount:function(){var e;null===(e=z.projection)||void 0===e||e.unmount(),ji.update(M),ji.render(N),k.forEach((function(e){return e()})),null==y||y(),null==f||f.children.delete(z),E.clearAllListeners(),b=void 0,w=!1},addVariantChild:function(e){var t,n=z.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(z.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return L?z:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return b},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){z.isVisible!==e&&(z.isVisible=e,z.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(z,e,p,t)},measureViewportBox:function(){return a(b,p)},addValue:function(e,t){z.hasValue(e)&&z.removeValue(e),C.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;C.delete(e),null===(t=k.get(e))||void 0===t||t(),k.delete(e),delete x[e],c(e,_)},hasValue:function(e){return C.has(e)},getValue:function(e,t){var n=C.get(e);return void 0===n&&void 0!==t&&(n=La(t),z.addValue(e,n)),n},forEachValue:function(e){return C.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(b,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Ln(t))return t}return T[e]}},E),{build:function(){return R(),_},scheduleRender:function(){Yi.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&z.scheduleRender(),p=e,E.updatePropListeners(e),S=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(Ln(i))e.addValue(o,i);else if(Ln(a))e.addValue(o,La(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,La(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(z,d(p),S)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!A){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Ys;r++){var o=qs[r],i=p[o];(un(i)||!1===i)&&(n[o]=i)}return n}});return z}},qs=Ut(["initial"],Wt(Ka),!1),Ys=qs.length;function Ks(e){return"string"==typeof e&&e.startsWith("var(--")}var Xs=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Zs(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Wt(function(e){var t=Xs.exec(e);if(!t)return[,];var n=Wt(t,3);return[n[1],n[2]]}(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Ks(i)?Zs(i,t,n+1):i}}var Js,Qs=new Set(["width","height","top","left","right","bottom","x","y"]),el=function(e){return Qs.has(e)},tl=function(e,t){e.set(t,!1),e.set(t)},nl=function(e){return e===Qn||e===Kn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Js||(Js={}));var rl=function(e,t){return parseFloat(e.split(", ")[t])},ol=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return rl(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?rl(a[1],e):0}},il=new Set(["x","y","z"]),al=Rn.filter((function(e){return!il.has(e)}));var sl={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ol(4,13),y:ol(5,14)},ll=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Vt({},t),r=Vt({},r);var o=Object.keys(t).filter(el),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=Ba(u),f=t[o];if(Nr(f)){var p=f.length,m=null===f[0]?1:0;u=f[m],d=Ba(u);for(var h=m;h<p;h++)c?Ba(f[h]):(c=Ba(f[h]))===d||nl(d)&&nl(c)}else c=Ba(f);if(d!==c)if(nl(d)&&nl(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&c===Kn&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return al.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],tl(l,f))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=sl[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);tl(r,s[n]),e[n]=sl[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=Wt(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}};function cl(e,t,n,r){return function(e){return Object.keys(e).some(el)}(t)?ll(e,t,n,r):{target:t,transitionEnd:r}}var ul=function(e,t,n,r){var o=function(e,t,n){var r,o=jt(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=Vt({},n)),e.forEachValue((function(e){var t=e.get();if(Ks(t)){var n=Zs(t,i);n&&e.set(n)}})),o){var s=o[a];if(Ks(s)){var l=Zs(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return cl(e,t=o.target,n,r=o.transitionEnd)};var dl={treeType:"dom",readValueFromInstance:function(e,t){if(Pn(t)){var n=wa(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Fn(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Hs(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=jt(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=Wa(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=f&&("string"==typeof f&&(Ma(f)||Ia(f))?f=parseFloat(f):!Va(f)&&ni.test(d)&&(f=xa(u,d)),e.addValue(u,La(f)),null!==(i=(a=n)[u])&&void 0!==i||(a[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=ul(e,s,l,a);a=c.transitionEnd,s=c.target}return Vt({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:kr,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),or(t,n,r,o.transformTemplate)},render:_r},fl=Gs(dl),pl=Gs(Vt(Vt({},dl),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Pn(t)?(null===(n=wa(t))||void 0===n?void 0:n.default)||0:(t=Er.has(t)?t:xr(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Sr,build:function(e,t,n,r,o){vr(t,n,r,o.transformTemplate)},render:Cr})),ml=function(e,t){return Sn(e)?pl(t,{enableHardwareAcceleration:!1}):fl(t,{enableHardwareAcceleration:!0})};function hl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var vl={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Kn.test(e))return e;e=parseFloat(e)}var n=hl(e,t.target.x),r=hl(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},gl="_$css",bl={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Xs,(function(e){return a.push(e),gl})));var s=ni.parse(e);if(s.length>5)return o;var l=ni.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=Do(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(i){var m=0;p=p.replace(gl,(function(){var e=a[m];return m++,e}))}return p}},yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=wl,Object.assign(Tn,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Vt(Vt({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),bn.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Yi.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(b.Component);var wl={borderRadius:Vt(Vt({},vl),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:vl,borderTopRightRadius:vl,borderBottomLeftRadius:vl,borderBottomRightRadius:vl,boxShadow:bl},xl={measureLayout:function(e){var t=Wt(_o(),2),n=t[0],r=t[1],o=(0,b.useContext)(wn);return b.createElement(yl,Vt({},e,{layoutGroup:o,switchLayoutGroup:(0,b.useContext)(xn),isPresent:n,safeToRemove:r}))}};var _l=["TopLeft","TopRight","BottomLeft","BottomRight"],El=_l.length,Cl=function(e){return"string"==typeof e?parseFloat(e):e},kl=function(e){return"number"==typeof e||Kn.test(e)};function Sl(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Tl=Rl(0,.5,xi),Nl=Rl(.5,.95,hi);function Rl(e,t,n){return function(r){return r<e?0:r>t?1:n(Oo(e,t,r))}}function Ml(e,t){e.min=t.min,e.max=t.max}function Il(e,t){Ml(e.x,t.x),Ml(e.y,t.y)}function Pl(e,t,n,r,o){return e=Is(e-=t,1/n,r),void 0!==o&&(e=Is(e,1/o,r)),e}function Ol(e,t,n,r,o){var i=Wt(n,3),a=i[0],s=i[1],l=i[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),Yn.test(t)&&(t=parseFloat(t),t=Do(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=Do(i.min,i.max,r);e===i&&(s-=t),e.min=Pl(e.min,t,n,s,o),e.max=Pl(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var Dl=["x","scaleX","originX"],Al=["y","scaleY","originY"];function Ll(e,t,n,r){Ol(e.x,t,Dl,null==n?void 0:n.x,null==r?void 0:r.x),Ol(e.y,t,Al,null==n?void 0:n.y,null==r?void 0:r.y)}function zl(e){return 0===e.translate&&1===e.scale}function Fl(e){return zl(e.x)&&zl(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}var Hl=function(){function e(){this.members=[]}return e.prototype.add=function(e){Pa(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Oa(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;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,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(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)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Vl(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(c,", ").concat(u,")"))?"none":i}var jl=function(e,t){return e.depth-t.depth},$l=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Pa(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Oa(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(jl),this.isDirty=!1,this.children.forEach(e)},e}();function Wl(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Zl),o.nodes.forEach(Jl)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ut(Ut([],Wt(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new $l)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Da),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ut([],Wt(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,a=i.layoutId,s=i.layout,l=i.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),bn.hasAnimatedSinceResize&&(bn.hasAnimatedSinceResize=!1,o.nodes.forEach(Xl))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,a,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:oc,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,v=!o.targetLayout||!Bl(o.targetLayout,d)||u,g=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||g||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,g);var b=Vt(Vt({},Na(f,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(b.delay=0,b.type=!1),o.startAnimation(b)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(a=(i=o.options).onExitComplete)||void 0===a||a.call(i));o.targetLayout=d}))}},e.prototype.unmount=function(){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,ji.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Ql))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yl);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ic),this.potentialNodes.clear()),this.nodes.forEach(Kl),this.nodes.forEach(Ul),this.nodes.forEach(Gl),this.clearAllSnapshots(),$i.update(),$i.preRender(),$i.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(ql),this.sharedNodes.forEach(ec)},e.prototype.scheduleUpdateProjection=function(){Yi.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Yi.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));sc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var n=this.measure();sc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Fl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||Rs(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(As(t.x,n.x),As(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Il(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options,a=r.isScrollRoot;if(r!==this.root&&o&&i.layoutScroll){if(a){Il(t,e);var s=this.root.scroll;s&&(As(t.x,-s.x),As(t.y,-s.y))}As(t.x,o.x),As(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Il(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bs(n,{x:-o.scroll.x,y:-o.scroll.y}),Rs(o.latestValues)&&Bs(n,o.latestValues)}return Rs(this.latestValues)&&Bs(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Il(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Rs(o.latestValues)){Ns(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Il(i,o.measure()),Ll(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return Rs(this.latestValues)&&Ll(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Vt(Vt(Vt({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ys(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Il(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(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)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,gs(t.x,n.x,r.x),gs(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Il(this.target,this.layout.actual),Ds(this.target,this.targetDelta)):Il(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ys(this.relativeTargetOrigin,this.target,this.relativeParent.target),Il(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Rs(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;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&&(n||r)){var o=this.getLead();Il(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var c=0;c<a;c++)l=(s=n[c]).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&&Bs(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Ds(e,l)),r&&Rs(s.latestValues)&&Bs(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){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}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;vs(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Vl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),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)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a=Vt({},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;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==o?void 0:o.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(rc));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;tc(s.x,e.x,o),tc(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ys(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){nc(e.x,t.x,n.x,r),nc(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),c&&(r.animationValues=a,function(e,t,n,r,o,i){var a,s,l,c;o?(e.opacity=Do(0,null!==(a=n.opacity)&&void 0!==a?a:1,Tl(r)),e.opacityExit=Do(null!==(s=t.opacity)&&void 0!==s?s:1,0,Nl(r))):i&&(e.opacity=Do(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<El;u++){var d="border".concat(_l[u],"Radius"),f=Sl(t,d),p=Sl(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||kl(f)===kl(p)?(e[d]=Math.max(Do(Cl(f),Cl(p),r),0),(Yn.test(p)||Yn.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Do(t.rotate||0,n.rotate||0,r))}(a,i,r.latestValues,o,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;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&&(ji.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yi.update((function(){bn.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ln(e)?e:La(e);return Ra("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,Vt(Vt({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){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")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(Il(t,n),Bs(t,o),vs(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hl),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)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Nn.length;r++){var o="rotate"+Nn[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Mr(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=Mr(e.pointerEvents)||""),this.hasProjected&&!Rs(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Vl(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,Tn)if(void 0!==d[h]){var v=Tn[h],g=v.correct,b=v.applyTo,y=g(d[h],c);if(b)for(var w=b.length,x=0;x<w;x++)s[b[x]]=y;else s[h]=y}return this.options.layoutId&&(s.pointerEvents=c===this?Mr(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Yl),this.root.sharedNodes.clear()},e}()}function Ul(e){e.updateLayout()}function Gl(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?ks((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=ps(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&ks((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=ps(s[e]);t.max=t.min+n}));var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};vs(c,s,i.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?vs(u,e.applyTransform(l,!0),i.measured):vs(u,s,i.layout);var d=!Fl(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,h=p.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};ys(v,i.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};ys(g,s,h.actual),Bl(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function ql(e){e.clearSnapshot()}function Yl(e){e.clearMeasurements()}function Kl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Xl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Zl(e){e.resolveTargetDelta()}function Jl(e){e.calcProjection()}function Ql(e){e.resetRotation()}function ec(e){e.removeLeadSnapshot()}function tc(e,t,n){e.translate=Do(t.translate,0,n),e.scale=Do(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nc(e,t,n,r){e.min=Do(t.min,n.min,r),e.max=Do(t.max,n.max,r)}function rc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var oc={duration:.45,ease:[.4,0,.1,1]};function ic(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function ac(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sc(e){ac(e.x),ac(e.y)}var lc=Wl({attachResizeListener:function(e,t){return zr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),cc={current:void 0},uc=Wl({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!cc.current){var e=new lc(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),cc.current=e}return cc.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),dc=Vt(Vt(Vt(Vt({},ts),bo),Ws),xl),fc=Cn((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=Sn(e)?Ar:Lr;return Vt(Vt({},s),{preloadedFeatures:n,useRender:yr(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,dc,ml,uc)}));var pc=(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"})),mc=window.wp.deprecated,hc=n.n(mc);var vc=function(e){let{icon:t,className:n,...r}=e;const o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,s.createElement)("span",a({className:o},r))};var gc=function(e){let{icon:t=null,size:n=24,...r}=e;if("string"==typeof t)return(0,s.createElement)(vc,a({icon:t},r));if((0,s.isValidElement)(t)&&vc===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},bc=(window.wp.warning,window.lodash);const yc=(0,s.createContext)({}),wc=()=>(0,s.useContext)(yc);function xc(e){let{value:t}=e;const n=wc(),r=(0,s.useRef)(t);!function(e,t){const n=(0,s.useRef)(!1);(0,s.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{(0,bc.isEqual)(r.current,t)&&r.current!==t&&"undefined"!=typeof process&&process.env}),[t]);return(0,s.useMemo)((()=>(0,bc.merge)(JSON.parse(JSON.stringify(n)),t)),[n,t])}const _c=(0,s.memo)((e=>{let{children:t,value:n}=e;const r=xc({value:n});return(0,s.createElement)(yc.Provider,{value:r},t)})),Ec="__contextSystemKey__";var Cc=n(9756),kc=n.n(Cc);const Sc=kc()((function(e){return`components-${(0,bc.kebabCase)(e)}`}));var Tc=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}(),Nc=Math.abs,Rc=String.fromCharCode,Mc=Object.assign;function Ic(e){return e.trim()}function Pc(e,t,n){return e.replace(t,n)}function Oc(e,t){return e.indexOf(t)}function Dc(e,t){return 0|e.charCodeAt(t)}function Ac(e,t,n){return e.slice(t,n)}function Lc(e){return e.length}function zc(e){return e.length}function Fc(e,t){return t.push(e),e}var Bc=1,Hc=1,Vc=0,jc=0,$c=0,Wc="";function Uc(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bc,column:Hc,length:a,return:""}}function Gc(e,t){return Mc(Uc("",null,null,"",null,null,0),e,{length:-e.length},t)}function qc(){return $c=jc>0?Dc(Wc,--jc):0,Hc--,10===$c&&(Hc=1,Bc--),$c}function Yc(){return $c=jc<Vc?Dc(Wc,jc++):0,Hc++,10===$c&&(Hc=1,Bc++),$c}function Kc(){return Dc(Wc,jc)}function Xc(){return jc}function Zc(e,t){return Ac(Wc,e,t)}function Jc(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 Qc(e){return Bc=Hc=1,Vc=Lc(Wc=e),jc=0,[]}function eu(e){return Wc="",e}function tu(e){return Ic(Zc(jc-1,ou(91===e?e+2:40===e?e+1:e)))}function nu(e){for(;($c=Kc())&&$c<33;)Yc();return Jc(e)>2||Jc($c)>3?"":" "}function ru(e,t){for(;--t&&Yc()&&!($c<48||$c>102||$c>57&&$c<65||$c>70&&$c<97););return Zc(e,Xc()+(t<6&&32==Kc()&&32==Yc()))}function ou(e){for(;Yc();)switch($c){case e:return jc;case 34:case 39:34!==e&&39!==e&&ou($c);break;case 40:41===e&&ou(e);break;case 92:Yc()}return jc}function iu(e,t){for(;Yc()&&e+$c!==57&&(e+$c!==84||47!==Kc()););return"/*"+Zc(t,jc-1)+"*"+Rc(47===e?e:Yc())}function au(e){for(;!Jc(Kc());)Yc();return Zc(e,jc)}var su="-ms-",lu="-moz-",cu="-webkit-",uu="comm",du="rule",fu="decl",pu="@keyframes";function mu(e,t){for(var n="",r=zc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case fu:return e.return=e.return||e.value;case uu:return"";case pu:return e.return=e.value+"{"+mu(e.children,r)+"}";case du:e.value=e.props.join(",")}return Lc(n=mu(e.children,r))?e.return=e.value+"{"+n+"}":""}function vu(e){return eu(gu("",null,null,null,[""],e=Qc(e),0,[0],e))}function gu(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,v=1,g=1,b=0,y="",w=o,x=i,_=r,E=y;v;)switch(m=b,b=Yc()){case 40:if(108!=m&&58==Dc(E,d-1)){-1!=Oc(E+=Pc(tu(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:E+=tu(b);break;case 9:case 10:case 13:case 32:E+=nu(m);break;case 92:E+=ru(Xc()-1,7);continue;case 47:switch(Kc()){case 42:case 47:Fc(yu(iu(Yc(),Xc()),t,n),l);break;default:E+="/"}break;case 123*h:s[c++]=Lc(E)*g;case 125*h:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==g&&(E=Pc(E,/\f/g,"")),p>0&&Lc(E)-d&&Fc(p>32?wu(E+";",r,n,d-1):wu(Pc(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Fc(_=bu(E,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)gu(E,t,_,_,w,i,d,s,x);else switch(99===f&&110===Dc(E,3)?100:f){case 100:case 108:case 109:case 115:gu(e,_,_,r&&Fc(bu(e,_,_,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:gu(E,_,_,_,[""],x,0,s,x)}}c=u=p=0,h=g=1,y=E="",d=a;break;case 58:d=1+Lc(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==qc())continue;switch(E+=Rc(b),b*h){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Lc(E)-1)*g,g=1;break;case 64:45===Kc()&&(E+=tu(Yc())),f=Kc(),u=d=Lc(y=E+=au(Xc())),b++;break;case 45:45===m&&2==Lc(E)&&(h=0)}}return i}function bu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=zc(f),m=0,h=0,v=0;m<r;++m)for(var g=0,b=Ac(e,d+1,d=Nc(h=a[m])),y=e;g<p;++g)(y=Ic(h>0?f[g]+" "+b:Pc(b,/&\f/g,f[g])))&&(l[v++]=y);return Uc(e,t,n,0===o?du:s,l,c,u)}function yu(e,t,n){return Uc(e,t,n,uu,Rc($c),Ac(e,2,-2),0)}function wu(e,t,n,r){return Uc(e,t,n,fu,Ac(e,0,r),Ac(e,r+1,-1),r)}var xu=function(e,t,n){for(var r=0,o=0;r=o,o=Kc(),38===r&&12===o&&(t[n]=1),!Jc(o);)Yc();return Zc(e,jc)},_u=function(e,t){return eu(function(e,t){var n=-1,r=44;do{switch(Jc(r)){case 0:38===r&&12===Kc()&&(t[n]=1),e[n]+=xu(jc-1,t,n);break;case 2:e[n]+=tu(r);break;case 4:if(44===r){e[++n]=58===Kc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Rc(r)}}while(r=Yc());return e}(Qc(e),t))},Eu=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)||Eu.get(n))&&!r){Eu.set(e,!0);for(var o=[],i=_u(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]}}},ku=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Su(e,t){switch(function(e,t){return 45^Dc(e,0)?(((t<<2^Dc(e,0))<<2^Dc(e,1))<<2^Dc(e,2))<<2^Dc(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 cu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cu+e+lu+e+su+e+e;case 6828:case 4268:return cu+e+su+e+e;case 6165:return cu+e+su+"flex-"+e+e;case 5187:return cu+e+Pc(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return cu+e+su+"flex-item-"+Pc(e,/flex-|-self/,"")+e;case 4675:return cu+e+su+"flex-line-pack"+Pc(e,/align-content|flex-|-self/,"")+e;case 5548:return cu+e+su+Pc(e,"shrink","negative")+e;case 5292:return cu+e+su+Pc(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+Pc(e,"-grow","")+cu+e+su+Pc(e,"grow","positive")+e;case 4554:return cu+Pc(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Pc(Pc(Pc(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return Pc(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return Pc(Pc(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+cu+e+e;case 4095:case 3583:case 4068:case 2532:return Pc(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(Lc(e)-1-t>6)switch(Dc(e,t+1)){case 109:if(45!==Dc(e,t+4))break;case 102:return Pc(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Dc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Oc(e,"stretch")?Su(Pc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Dc(e,t+1))break;case 6444:switch(Dc(e,Lc(e)-3-(~Oc(e,"!important")&&10))){case 107:return Pc(e,":",":-webkit-")+e;case 101:return Pc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Dc(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(Dc(e,t+11)){case 114:return cu+e+su+Pc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cu+e+su+Pc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cu+e+su+Pc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cu+e+su+e+e}return e}var Tu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fu:e.return=Su(e.value,e.length);break;case pu:return mu([Gc(e,{value:Pc(e.value,"@","@-webkit-")})],r);case du: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 mu([Gc(e,{props:[Pc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return mu([Gc(e,{props:[Pc(t,/:(plac\w+)/,":-webkit-input-$1")]}),Gc(e,{props:[Pc(t,/:(plac\w+)/,":-moz-$1")]}),Gc(e,{props:[Pc(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],Nu=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||Tu;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=[hu,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Cu,ku].concat(r,f),u=zc(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){mu(vu(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Tc({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 Ru={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 Mu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Iu=/[A-Z]|^ms/g,Pu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ou=function(e){return 45===e.charCodeAt(1)},Du=function(e){return null!=e&&"boolean"!=typeof e},Au=Mu((function(e){return Ou(e)?e:e.replace(Iu,"-$&").toLowerCase()})),Lu=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Pu,(function(e,t,n){return Fu={name:t,styles:n,next:Fu},t}))}return 1===Ru[e]||Ou(e)||"number"!=typeof t||0===t?t:t+"px"};function zu(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 Fu={name:n.name,styles:n.styles,next:Fu},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Fu={name:r.name,styles:r.styles,next:Fu},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+=zu(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]+"}":Du(a)&&(r+=Au(i)+":"+Lu(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=zu(e,t,a);switch(i){case"animation":case"animationName":r+=Au(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Du(a[l])&&(r+=Au(i)+":"+Lu(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Fu,i=n(e);return Fu=o,zu(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Fu,Bu=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Hu=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="";Fu=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=zu(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=zu(n,t,e[a]),r&&(o+=i[a]);Bu.lastIndex=0;for(var s,l="";null!==(s=Bu.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:Fu}},Vu=!!b.useInsertionEffect&&b.useInsertionEffect,ju=Vu||function(e){return e()},$u=(Vu||b.useLayoutEffect,b.createContext("undefined"!=typeof HTMLElement?Nu({key:"css"}):null));var Wu=$u.Provider,Uu=function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)($u);return e(t,r,n)}))};var Gu=b.createContext({});function qu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Yu=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ku=function(e,t,n){Yu(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 Xu(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Zu(e,t,n){var r=[],o=qu(e,r,n);return r.length<2?n:o+t(r)}var Ju=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},Qu=function(e){var t=Nu(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=Hu(n,t.registered,void 0);return Ku(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 Zu(t.registered,n,Ju(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Hu(n,t.registered);Xu(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Hu(n,t.registered),i="animation-"+o.name;return Xu(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:qu.bind(null,t.registered),merge:Zu.bind(null,t.registered,n)}}({key:"css"}),ed=(Qu.flush,Qu.hydrate,Qu.cx);Qu.merge,Qu.getRegisteredStyles,Qu.injectGlobal,Qu.keyframes,Qu.css,Qu.sheet,Qu.cache;const td=e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])),nd=()=>{const e=(0,b.useContext)($u),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 ed(...n.map((t=>td(t)?(Ku(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function rd(e,t){const n=wc();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=nd()(Sc(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 od(e,t){return id(e,t,{forwardsRef:!0})}function id(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,{[Ec]:[...new Set(o)],displayName:t,selector:`.${Sc(t)}`})}function ad(e){if(!e)return[];let t=[];return e.__contextSystemKey__&&(t=e.__contextSystemKey__),e.type&&e.type.__contextSystemKey__&&(t=e.type.__contextSystemKey__),t}function sd(e,t){return!!e&&("string"==typeof t?ad(e).includes(t):!!Array.isArray(t)&&t.some((t=>ad(e).includes(t))))}const ld={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 cd=/^((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)-.*))$/,ud=Mu((function(e){return cd.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),dd=function(e){return"theme"!==e},fd=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ud:dd},pd=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},md=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Yu(t,n,r),ju((function(){return Ku(t,n,r)})),null},hd=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=pd(t,n,i),c=l||fd(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=Uu((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(Gu)}"string"==typeof e.className?i=qu(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var m=Hu(f.concat(a),t.registered,d);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=u&&void 0===l?fd(r):c,v={};for(var g in e)u&&"as"===g||h(g)&&(v[g]=e[g]);return v.className=i,v.ref=n,b.createElement(b.Fragment,null,b.createElement(md,{cache:t,serialized:m,isStringTag:"string"==typeof r}),b.createElement(r,v))}));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:pd(h,r,!0)})).apply(void 0,f)},h}};const vd=hd("div",{target:"e19lxcc00"})("");vd.selector=".components-view",vd.displayName="View";var gd=vd;var bd=od((function(e,t){const{style:n,...r}=rd(e,"VisuallyHidden");return(0,s.createElement)(gd,a({ref:t},r,{style:{...ld,...n||{}}}))}),"VisuallyHidden");const yd=["onMouseDown","onClick"];var wd=(0,s.forwardRef)((function e(t,n){const{href:r,target:o,isSmall:i,isPressed:l,isBusy:u,isDestructive:f,className:p,disabled:m,icon:h,iconPosition:v="left",iconSize:g,showTooltip:b,tooltipPosition:y,shortcut:w,label:x,children:_,text:E,variant:C,__experimentalIsFocusable:k,describedBy:S,...T}=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&&(hc()("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}}(t),N=(0,d.useInstanceId)(e,"components-button__description"),R=c()("components-button",p,{"is-secondary":"secondary"===C,"is-primary":"primary"===C,"is-small":i,"is-tertiary":"tertiary"===C,"is-pressed":l,"is-busy":u,"is-link":"link"===C,"is-destructive":f,"has-text":!!h&&!!_,"has-icon":!!h}),M=m&&!k,I=void 0===r||M?"button":"a",P="a"===I?{href:r,target:o}:{type:"button",disabled:M,"aria-pressed":l};if(m&&k){P["aria-disabled"]=!0;for(const e of yd)T[e]=e=>{e.stopPropagation(),e.preventDefault()}}const O=!M&&(b&&x||w||!!x&&!(null!=_&&_.length)&&!1!==b),D=S?N:null,A=T["aria-describedby"]||D,L=(0,s.createElement)(I,a({},P,T,{className:R,"aria-label":T["aria-label"]||x,"aria-describedby":A,ref:n}),h&&"left"===v&&(0,s.createElement)(gc,{icon:h,size:g}),E&&(0,s.createElement)(s.Fragment,null,E),h&&"right"===v&&(0,s.createElement)(gc,{icon:h,size:g}),_);return O?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_f,{text:null!=_&&_.length&&S?S:x,shortcut:w,position:y},L),S&&(0,s.createElement)(bd,null,(0,s.createElement)("span",{id:D},S))):(0,s.createElement)(s.Fragment,null,L,S&&(0,s.createElement)(bd,null,(0,s.createElement)("span",{id:D},S)))}));let xd=0;function _d(e){const t=document.scrollingElement||document.body;e&&(xd=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=xd)}let Ed=0;var Cd=function(){return(0,s.useEffect)((()=>(0===Ed&&_d(!0),++Ed,()=>{1===Ed&&_d(!1),--Ed})),[]),null};var kd=(0,s.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function Sd(e){const t=(0,s.useContext)(kd),n=t.slots[e]||{},r=t.fills[e],o=(0,s.useMemo)((()=>r||[]),[r]);return{...n,updateSlot:(0,s.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,s.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,s.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,s.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}var Td=(0,s.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var Nd=e=>{const{getSlot:t,subscribe:n}=(0,s.useContext)(Td),[r,o]=(0,s.useState)(t(e));return(0,s.useEffect)((()=>{o(t(e));return n((()=>{o(t(e))}))}),[e]),r};function Rd(e){let{name:t,children:n,registerFill:r,unregisterFill:o}=e;const i=Nd(t),a=(0,s.useRef)({name:t,children:n});return(0,s.useLayoutEffect)((()=>(r(t,a.current),()=>o(t,a.current))),[]),(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 Md=e=>(0,s.createElement)(Td.Consumer,null,(t=>{let{registerFill:n,unregisterFill:r}=t;return(0,s.createElement)(Rd,a({},e,{registerFill:n,unregisterFill:r}))}));function Id(e){return"function"==typeof e}class Pd extends s.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){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=Id(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,Id(t)?t(i):i)}}var Od,Dd=e=>(0,s.createElement)(Td.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:r,getFills:o}=t;return(0,s.createElement)(Pd,a({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))})),Ad=new Uint8Array(16);function Ld(){if(!Od&&!(Od="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 Od(Ad)}var zd=/^(?:[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 Fd=function(e){return"string"==typeof e&&zd.test(e)},Bd=[],Hd=0;Hd<256;++Hd)Bd.push((Hd+256).toString(16).substr(1));var Vd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Bd[e[t+0]]+Bd[e[t+1]]+Bd[e[t+2]]+Bd[e[t+3]]+"-"+Bd[e[t+4]]+Bd[e[t+5]]+"-"+Bd[e[t+6]]+Bd[e[t+7]]+"-"+Bd[e[t+8]]+Bd[e[t+9]]+"-"+Bd[e[t+10]]+Bd[e[t+11]]+Bd[e[t+12]]+Bd[e[t+13]]+Bd[e[t+14]]+Bd[e[t+15]]).toLowerCase();if(!Fd(n))throw TypeError("Stringified UUID is invalid");return n};var jd=function(e,t,n){var r=(e=e||{}).random||(e.rng||Ld)();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 Vd(r)};const $d=new Set,Wd=kc()((e=>{let t=jd().replace(/[0-9]/g,"");for(;$d.has(t);)t=jd().replace(/[0-9]/g,"");return $d.add(t),Nu({container:e,key:t})}));var Ud=function(e){const{children:t,document:n}=e;if(!n)return null;const r=Wd(n.head);return(0,s.createElement)(Wu,{value:r},t)};function Gd(){const[,e]=(0,s.useState)({}),t=(0,s.useRef)(!0);return(0,s.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function qd(e){let{name:t,children:n}=e;const r=Sd(t),o=(0,s.useRef)({rerender:Gd()});if((0,s.useEffect)((()=>(r.registerFill(o),()=>{r.unregisterFill(o)})),[r.registerFill,r.unregisterFill]),!r.ref||!r.ref.current)return null;"function"==typeof n&&(n=n(r.fillProps));const i=(0,s.createElement)(Ud,{document:r.ref.current.ownerDocument},n);return(0,s.createPortal)(i,r.ref.current)}var Yd=(0,s.forwardRef)((function(e,t){let{name:n,fillProps:r={},as:o="div",...i}=e;const l=(0,s.useContext)(kd),c=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(l.registerSlot(n,c,r),()=>{l.unregisterSlot(n,c)})),[l.registerSlot,l.unregisterSlot,n]),(0,s.useLayoutEffect)((()=>{l.updateSlot(n,r)})),(0,s.createElement)(o,a({ref:(0,d.useMergeRefs)([t,c])},i))})),Kd=window.wp.isShallowEqual,Xd=n.n(Kd);function Zd(e){let{children:t}=e;const n=function(){const[e,t]=(0,s.useState)({}),[n,r]=(0,s.useState)({}),o=(0,s.useCallback)(((e,n,r)=>{t((t=>{const o=t[e]||{};return{...t,[e]:{...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}}}))}),[]),i=(0,s.useCallback)(((e,n)=>{t((t=>{const{[e]:r,...o}=t;return(null==r?void 0:r.ref)===n?o:t}))}),[]),a=(0,s.useCallback)(((t,r)=>{const o=e[t];if(o&&!Xd()(o.fillProps,r)){o.fillProps=r;const e=n[t];e&&e.map((e=>e.current.rerender()))}}),[e,n]),l=(0,s.useCallback)(((e,t)=>{r((n=>({...n,[e]:[...n[e]||[],t]})))}),[]),c=(0,s.useCallback)(((e,t)=>{r((n=>n[e]?{...n,[e]:n[e].filter((e=>e!==t))}:n))}),[]);return(0,s.useMemo)((()=>({slots:e,fills:n,registerSlot:o,updateSlot:a,unregisterSlot:i,registerFill:l,unregisterFill:c})),[e,n,o,a,i,l,c])}();return(0,s.createElement)(kd.Provider,{value:n},t)}class Jd 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)(Td.Provider,{value:this.contextValue},this.props.children)}}function Qd(e){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Md,e),(0,s.createElement)(qd,e))}const ef=(0,s.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...r}=e;return n?(0,s.createElement)(Yd,a({},r,{ref:t})):(0,s.createElement)(Dd,r)}));function tf(e){let{children:t,...n}=e;return(0,s.createElement)(Jd,n,(0,s.createElement)(Zd,null,t))}function nf(e){const t=t=>(0,s.createElement)(Qd,a({name:e},t));t.displayName=e+"Fill";const n=t=>(0,s.createElement)(ef,a({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}const rf={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}},of=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 af(e){return e.split("-")[0]}function sf(e){return["top","bottom"].includes(af(e))?"x":"y"}function lf(e){return"x"===e?"y":"x"}const cf=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=sf(i),p=lf(f);let m=d[f],h=d[p];const v="function"==typeof l?l(t):l,g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v},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]+g.mainAxis+b[f],n=a.reference[f]+a.reference[e]-g.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(af(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:g.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?g.crossAxis:0)+b[p];h<n?h=n:h>r&&(h=r)}return{[f]:m,[p]:h}}}},uf="Popover",df=()=>(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"})),ff=(0,s.forwardRef)(((e,t)=>{let{style:n,placement:r,shouldAnimate:o=!1,...i}=e;const[l,c]=(0,s.useState)(!1),u=Xt(),{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:rf[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)(fc.div,a({},m,i,{ref:t}))})),pf=(0,s.createContext)(void 0),mf=(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,isAlternate:v,position:g,placement:y="bottom-start",offset:w=0,focusOnMount:x="firstElement",anchor:_,expandOnMobile:E,onFocusOutside:C,__unstableSlotName:k=uf,flip:S=!0,resize:T=!0,shift:N=!1,__unstableForcePosition:R,anchorRef:M,anchorRect:I,getAnchorRect:P,...O}=e;let D=S,A=T;void 0!==R&&(hc()("`__unstableForcePosition` prop wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and  `resize={ false }`"}),D=!R,A=!R),void 0!==M&&hc()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==I&&hc()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&hc()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const L=(0,s.useRef)(null),[z,F]=(0,s.useState)(null),[B,H]=(0,s.useState)(),V=(0,s.useCallback)((e=>{F(e)}),[]),j=(0,d.useViewportMatch)("medium","<"),$=E&&j,W=!$&&!h,U=g?(e=>{const[t,n,r]=e.split(" ");if(["top","bottom"].includes(t)){let e="";return r&&"left"===r||"right"===n?e="-start":(r&&"right"===r||"left"===n)&&(e="-end"),t+e}return n})(g):y,G=(0,s.useRef)(of(B)),q=[{name:"frameOffset",fn(e){let{x:t,y:n}=e;return G.current?{x:t+G.current.x,y:n+G.current.y,data:{amount:G.current}}:{x:t,y:n}}},Nt(w),D?Mt():void 0,A?It({apply(e){var t;const{firstElementChild:n}=null!==(t=re.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,N?Rt({crossAxis:!0,limiter:cf(),padding:1}):void 0,At({element:L})].filter((e=>void 0!==e)),Y=(0,s.useContext)(pf)||k,K=Sd(Y);let X;(f||C)&&(X=(e,t)=>{"focus-outside"===e&&C?C(t):f&&f()});const[Z,J]=(0,d.__experimentalUseDialog)({focusOnMount:x,__unstableOnClose:X,onClose:X}),{x:Q,y:ee,reference:te,floating:ne,refs:re,strategy:oe,update:ie,placement:ae,middlewareData:{arrow:se}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:a}=e,[s,l]=b.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[c,u]=b.useState(r);zt(c,r)||u(r);const d=b.useRef(null),f=b.useRef(null),p=b.useRef(s),m=Ft(i),h=Ft(o),[v,g]=b.useState(null),[y,w]=b.useState(null),x=b.useCallback((e=>{d.current!==e&&(d.current=e,g(e))}),[]),_=b.useCallback((e=>{f.current!==e&&(f.current=e,w(e))}),[]),E=b.useCallback((()=>{if(!d.current||!f.current)return;const e={placement:t,strategy:n,middleware:c};h.current&&(e.platform=h.current),Ot(d.current,f.current,e).then((e=>{const t={...e,isPositioned:!0};C.current&&!zt(p.current,t)&&(p.current=t,Dt.flushSync((()=>{l(t)})))}))}),[c,t,n,h]);Lt((()=>{!1===a&&p.current.isPositioned&&(p.current.isPositioned=!1,l((e=>({...e,isPositioned:!1}))))}),[a]);const C=b.useRef(!1);Lt((()=>(C.current=!0,()=>{C.current=!1})),[]),Lt((()=>{if(v&&y){if(m.current)return m.current(v,y,E);E()}}),[v,y,E,m]);const k=b.useMemo((()=>({reference:d,floating:f,setReference:x,setFloating:_})),[x,_]),S=b.useMemo((()=>({reference:v,floating:y})),[v,y]);return b.useMemo((()=>({...s,update:E,refs:k,elements:S,reference:x,floating:_})),[s,E,k,S,x,_])}({placement:U,middleware:q,whileElementsMounted:(e,t,n)=>Tt(e,t,n,{animationFrame:!0})}),le=(0,s.useCallback)((e=>{L.current=e,ie()}),[ie]);(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:_,anchorRef:M,anchorRect:I,getAnchorRect:P,fallbackReferenceElement:z,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:_,anchorRef:M,anchorRect:I,getAnchorRect:P,fallbackReferenceElement:z});te(t),H(e)}),[_,M,null==M?void 0:M.top,null==M?void 0:M.bottom,null==M?void 0:M.startContainer,null==M?void 0:M.current,I,P,z,te]),(0,s.useLayoutEffect)((()=>{var e,t,n;if(B===document||B===(null==re||null===(e=re.floating)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.ownerDocument)||null==B||null===(n=B.defaultView)||void 0===n||!n.frameElement)return void(G.current=void 0);const{defaultView:r}=B,o=()=>{G.current=of(B),ie()};return r.addEventListener("resize",o),o(),()=>{r.removeEventListener("resize",o)}}),[B,ie]);const ce=(0,d.useMergeRefs)([ne,Z,t]);let ue=(0,s.createElement)(ff,a({shouldAnimate:l&&!$,placement:ae,className:c()("components-popover",m,{"is-expanded":$,"is-alternate":v})},O,{ref:ce},J,{tabIndex:-1,style:$?void 0:{position:oe,left:Number.isNaN(Q)?0:null!=Q?Q:void 0,top:Number.isNaN(ee)?0:null!=ee?ee:void 0}}),$&&(0,s.createElement)(Cd,null),$&&(0,s.createElement)("div",{className:"components-popover__header"},(0,s.createElement)("span",{className:"components-popover__header-title"},u),(0,s.createElement)(wd,{className:"components-popover__close",icon:pc,onClick:f})),(0,s.createElement)("div",{className:"components-popover__content"},p),W&&(0,s.createElement)("div",{ref:le,className:["components-popover__arrow",`is-${ae.split("-")[0]}`].join(" "),style:{left:void 0!==(null==se?void 0:se.x)&&Number.isFinite(se.x)?`${se.x+(null!==(n=null===(r=G.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)}px`:"",top:void 0!==(null==se?void 0:se.y)&&Number.isFinite(se.y)?`${se.y+(null!==(o=null===(i=G.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0)}px`:""}},(0,s.createElement)(df,null)));return K.ref&&(ue=(0,s.createElement)(Qd,{name:Y},ue)),M||I||_?ue:(0,s.createElement)("span",{ref:V},ue)}));mf.Slot=(0,s.forwardRef)((function(e,t){let{name:n=uf}=e;return(0,s.createElement)(ef,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),mf.__unstableSlotNameProvider=pf.Provider;var hf=mf;var vf=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 gf=700,bf=(0,s.createElement)("div",{className:"event-catcher"}),yf=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)(bf,t),(0,s.cloneElement)(n,{children:r,ref:o})),{...t})},wf=e=>{let{child:t,eventHandlers:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)(t,{...n,children:r,ref:o})},xf=(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 _f=function(e){var t;const{children:n,position:r="bottom middle",text:o,shortcut:i,delay:a=gf}=e,[l,c]=(0,s.useState)(!1),[u,f]=(0,s.useState)(!1),p=(0,d.useDebounce)(f,a),[m,h]=(0,s.useState)(null),v=null===(t=s.Children.toArray(n)[0])||void 0===t?void 0:t.ref,g=(0,d.useMergeRefs)([h,v]),b=e=>{"OPTION"!==e.target.tagName&&(xf(n,"onMouseDown",e),document.addEventListener("mouseup",x),c(!0))},y=e=>{"OPTION"!==e.target.tagName&&(xf(n,"onMouseUp",e),document.removeEventListener("mouseup",x),c(!1))},w=e=>"mouseUp"===e?y:"mouseDown"===e?b:void 0,x=w("mouseUp"),_=(e,t)=>r=>{if(xf(n,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&l)return;p.cancel();const o=["focus","mouseenter"].includes(r.type);o!==u&&(t?p(o):f(o))},E=()=>{p.cancel(),document.removeEventListener("mouseup",x)};if((0,s.useEffect)((()=>E),[]),1!==s.Children.count(n))return n;const C={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:w("mouseDown")},k=s.Children.only(n),{children:S,disabled:T}=k.props,N=T?yf:wf,R=(e=>{let{anchor:t,grandchildren:n,isOver:r,offset:o,position:i,shortcut:a,text:l}=e;return(0,s.concatChildren)(n,r&&(0,s.createElement)(hf,{focusOnMount:!1,position:i,className:"components-tooltip","aria-hidden":"true",animate:!1,offset:o,anchor:t,shift:!0},l,(0,s.createElement)(vf,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:S,...{anchor:m,isOver:u,offset:4,position:r,shortcut:i,text:o}});return N({child:k,eventHandlers:C,childrenWithPopover:R,mergedRefs:g})};const Ef=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],Cf={"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"),"center right":(0,u.__)("Center Right"),"bottom left":(0,u.__)("Bottom Left"),"bottom center":(0,u.__)("Bottom Center"),"bottom right":(0,u.__)("Bottom Right")},kf=Ef.flat();function Sf(e){return("center"===e?"center center":e).replace("-"," ")}function Tf(e,t){return`${e}-${Sf(t).replace(" ","-")}`}n(1281);function Nf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hu(t)}var Rf={grad:.9,turn:360,rad:360/(2*Math.PI)},Mf=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},If=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Pf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Of=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Df=function(e){return{r:Pf(e.r,0,255),g:Pf(e.g,0,255),b:Pf(e.b,0,255),a:Pf(e.a)}},Af=function(e){return{r:If(e.r),g:If(e.g),b:If(e.b),a:If(e.a,3)}},Lf=/^#([0-9a-f]{3,8})$/i,zf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ff=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}},Bf=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}},Hf=function(e){return{h:Of(e.h),s:Pf(e.s,0,100),l:Pf(e.l,0,100),a:Pf(e.a)}},Vf=function(e){return{h:If(e.h),s:If(e.s),l:If(e.l),a:If(e.a,3)}},jf=function(e){return Bf((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},$f=function(e){return{h:(t=Ff(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},Wf=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Uf=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gf=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qf=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yf={string:[[function(e){var t=Lf.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?If(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?If(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Gf.exec(e)||qf.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Df({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=Wf.exec(e)||Uf.exec(e);if(!t)return null;var n,r,o=Hf({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Rf[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return jf(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 Mf(t)&&Mf(n)&&Mf(r)?Df({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(!Mf(t)||!Mf(n)||!Mf(r))return null;var a=Hf({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return jf(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Mf(t)||!Mf(n)||!Mf(r))return null;var a=function(e){return{h:Of(e.h),s:Pf(e.s,0,100),v:Pf(e.v,0,100),a:Pf(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Bf(a)},"hsv"]]},Kf=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]},Xf=function(e){return"string"==typeof e?Kf(e.trim(),Yf.string):"object"==typeof e&&null!==e?Kf(e,Yf.object):[null,void 0]},Zf=function(e,t){var n=$f(e);return{h:n.h,s:Pf(n.s+100*t,0,100),l:n.l,a:n.a}},Jf=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Qf=function(e,t){var n=$f(e);return{h:n.h,s:n.s,l:Pf(n.l+100*t,0,100),a:n.a}},ep=function(){function e(e){this.parsed=Xf(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 If(Jf(this.rgba),2)},e.prototype.isDark=function(){return Jf(this.rgba)<.5},e.prototype.isLight=function(){return Jf(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Af(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?zf(If(255*o)):"","#"+zf(t)+zf(n)+zf(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Af(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Af(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 Vf($f(this.rgba))},e.prototype.toHslString=function(){return t=(e=Vf($f(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=Ff(this.rgba),{h:If(e.h),s:If(e.s),v:If(e.v),a:If(e.a,3)};var e},e.prototype.invert=function(){return tp({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),tp(Zf(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),tp(Zf(this.rgba,-e))},e.prototype.grayscale=function(){return tp(Zf(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),tp(Qf(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),tp(Qf(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?tp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):If(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=$f(this.rgba);return"number"==typeof e?tp({h:e,s:t.s,l:t.l,a:t.a}):If(t.h)},e.prototype.isEqual=function(e){return this.toHex()===tp(e).toHex()},e}(),tp=function(e){return e instanceof ep?e:new ep(e)},np=[],rp=function(e){e.forEach((function(e){np.indexOf(e)<0&&(e(ep,Yf),np.push(e))}))};function op(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 ip(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return tp(e).alpha(t).toRgbString()}rp([op]);const ap="#fff",sp={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},lp={theme:"var( --wp-admin-theme-color, #007cba)",background:ap,backgroundDisabled:sp[100],border:sp[700],borderHover:sp[700],borderFocus:"var( --wp-admin-theme-color-darker-10, #006ba1)",borderDisabled:sp[400],textDisabled:sp[600],textDark:ap,darkGrayPlaceholder:ip(sp[900],.62),lightGrayPlaceholder:ip(ap,.65)},cp=Object.freeze({gray:sp,white:ap,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:lp});function up(){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 dp={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const fp=()=>dp,pp=hd("div",{target:"e1od1u4s3"})(fp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(e=>{let{size:t=92}=e;return Nf("grid-template-rows:repeat( 3, calc( ",t,"px / 3 ) );width:",t,"px;","")}),";"),mp=hd("div",{target:"e1od1u4s2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),hp=e=>Nf("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",up("transition")," ",(e=>{let{isActive:t}=e;return Nf("box-shadow:",t?`0 0 0 2px ${cp.gray[900]}`:null,";color:",t?cp.gray[900]:cp.gray[400],";*:hover>&{color:",t?cp.gray[900]:cp.ui.theme,";}","")})(e),";",""),vp=hd("span",{target:"e1od1u4s1"})("height:6px;width:6px;",hp,";"),gp=hd("span",{target:"e1od1u4s0"})({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 bp(e){let{isActive:t=!1,value:n,...r}=e;const o=Cf[n];return(0,s.createElement)(_f,{text:o},(0,s.createElement)(Se,a({as:gp,role:"gridcell"},r),(0,s.createElement)(bd,null,n),(0,s.createElement)(vp,{isActive:t,role:"presentation"})))}function yp(e){return(0,b.useState)(e)[0]}function wp(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=g(e);!(t=o()).done;)r();return n}function xp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function _p(e){return e.slice().reverse()}function Ep(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function Cp(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function kp(e){void 0===e&&(e={});var t=yp(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 Sp(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Tp(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Sp(t.ref.current,e.ref.current)}))}function Np(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function Rp(e){for(var t=wp(e),n=Np(t),r=[],o=0;o<n;o+=1)for(var i,a=g(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 Mp(e,t,n){for(var r,o=Np(e),i=g(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 Ip={id:null,ref:{current:null}};function Pp(e,t){return e.filter((function(e){return e.groupId===t}))}var Op={horizontal:"vertical",vertical:"horizontal"};function Dp(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function Ap(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?Sp(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 Lp(e,t){var n=Ap(e);e!==n&&t(n)}function zp(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&&Lp(e,t),n.current=e}),{root:o}),a=g(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function Fp(e,t){"function"==typeof IntersectionObserver?zp(e,t):function(e,t){(0,b.useEffect)((function(){var n=setTimeout((function(){return Lp(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function Bp(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,v=e.initialRTL,g=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=Tp(a,E);return m(m({},e),{},{groups:Dp(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)})),M=m({groupId:null==R?void 0:R.id},N),I=Tp(i,M),P=m(m({},e),{},{items:Dp(i,M,I)});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 F=t.id;if(void 0===F)return e;var B=u.filter((function(e){return e!==s&&e!==F})),H=s?[s].concat(B):B,V=m(m({},e),{},{pastIds:H});if(null===F)return m(m({},V),{},{unstable_moves:f+1,currentId:de(V,F)});var j=Ep(i,F);return m(m({},V),{},{unstable_moves:j?f+1:f,currentId:de(V,null==j?void 0:j.id)});case"next":if(null==s)return Bp(e,m(m({},t),{},{type:"first"}));var $=r&&"vertical"!==o,W=$?_p(i):i,U=W.find((function(e){return e.id===s}));if(!U)return Bp(e,m(m({},t),{},{type:"first"}));var G=!!U.groupId,q=W.indexOf(U),Y=W.slice(q+1),K=Pp(Y,U.groupId);if(t.allTheWay){var X=ue($?Pp(W,U.groupId):_p(K));return Bp(e,m(m({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&Op[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?[Ip]:[],e.slice(0,r))}(Q&&!ee?W:Pp(W,U.groupId),s,ee),ne=ue(te,s);return Bp(e,m(m({},t),{},{type:"move",id:null==ne?void 0:ne.id}))}if(Q){var re=ue(ee?K:Y,s),oe=ee?(null==re?void 0:re.id)||null:null==re?void 0:re.id;return Bp(e,m(m({},t),{},{type:"move",id:oe}))}var ie=ue(K,s);return Bp(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=Bp(m(m({},e),{},{items:_p(i)}),m(m({},t),{},{type:"next",hasNullItem:ae}));return m(m({},se),{},{items:i});case"down":var le=d&&!t.allTheWay,ce=Rp(xp(Mp(wp(i),s,le))),fe=l&&"horizontal"!==l&&p,pe=Bp(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=Rp(_p(xp(Mp(wp(i),s,me)))),ve=p,ge=Bp(m(m({},e),{},{orientation:"vertical",items:he}),m(m({},t),{},{type:"next",hasNullItem:ve}));return m(m({},ge),{},{orientation:o,items:i});case"first":var be=ue(i);return Bp(e,m(m({},t),{},{type:"move",id:null==be?void 0:be.id}));case"last":var ye=Bp(m(m({},e),{},{items:_p(i)}),m(m({},t),{},{type:"first"}));return m(m({},ye),{},{items:i});case"sort":return m(m({},e),{},{items:Ap(i),groups:Ap(a)});case"setVirtual":return m(m({},e),{},{unstable_virtual:Cp(t.virtual,n)});case"setRTL":return m(m({},e),{},{rtl:Cp(t.rtl,r)});case"setOrientation":return m(m({},e),{},{orientation:Cp(t.orientation,o)});case"setCurrentId":var we=de(m(m({},e),{},{currentId:Cp(t.currentId,s)}));return m(m({},e),{},{currentId:we,hasSetCurrentId:!0});case"setLoop":return m(m({},e),{},{loop:Cp(t.loop,l)});case"setWrap":return m(m({},e),{},{wrap:Cp(t.wrap,c)});case"setShift":return m(m({},e),{},{shift:Cp(t.shift,d)});case"setIncludesBaseElement":return m(m({},e),{},{unstable_includesBaseElement:Cp(t.includesBaseElement,p)});case"reset":return m(m({},e),{},{unstable_virtual:h,rtl:v,orientation:g,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 Hp(e){return(0,b.useCallback)(e,[])}function Vp(e){void 0===e&&(e={});var t=yp(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,v=t.unstable_includesBaseElement,g=kp(h(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),y=(0,b.useReducer)(Bp,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:p,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=v?v: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 Fp(x.items,T),m(m(m({},g),x),{},{unstable_hasActiveWidget:C,unstable_setHasActiveWidget:k,registerItem:Hp((function(e){S.current||_({type:"registerItem",item:e})})),unregisterItem:Hp((function(e){S.current||_({type:"unregisterItem",id:e})})),registerGroup:Hp((function(e){S.current||_({type:"registerGroup",group:e})})),unregisterGroup:Hp((function(e){S.current||_({type:"unregisterGroup",id:e})})),move:Hp((function(e){return _({type:"move",id:e})})),next:Hp((function(e){return _({type:"next",allTheWay:e})})),previous:Hp((function(e){return _({type:"previous",allTheWay:e})})),up:Hp((function(e){return _({type:"up",allTheWay:e})})),down:Hp((function(e){return _({type:"down",allTheWay:e})})),first:Hp((function(){return _({type:"first"})})),last:Hp((function(){return _({type:"last"})})),sort:Hp((function(){return _({type:"sort"})})),unstable_setVirtual:Hp((function(e){return _({type:"setVirtual",virtual:e})})),setRTL:Hp((function(e){return _({type:"setRTL",rtl:e})})),setOrientation:Hp((function(e){return _({type:"setOrientation",orientation:e})})),setCurrentId:Hp((function(e){return _({type:"setCurrentId",currentId:e})})),setLoop:Hp((function(e){return _({type:"setLoop",loop:e})})),setWrap:Hp((function(e){return _({type:"setWrap",wrap:e})})),setShift:Hp((function(e){return _({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:Hp((function(e){return _({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:Hp((function(){return _({type:"reset"})}))})}function jp(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):_e(e,t,n)}function $p(e,t){var n=jp(e,"blur",t),r=e.dispatchEvent(n),o=I(I({},t),{},{bubbles:!0});return e.dispatchEvent(jp(e,"focusout",o)),r}function Wp(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 Up=W&&"msCrypto"in window;var Gp=W&&"msCrypto"in window;function qp(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!!q(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(Wp(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function Yp(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Kp=B({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=Ep(e.items,e.currentId),f=(0,b.useRef)(null),p=G(r),v=G(o),g=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=Gp?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 _=qp(e.unstable_virtual,d,s),E=qp(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=Yp(e.items,r);q(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),k=(0,b.useCallback)((function(t){var n;if(null===(n=v.current)||void 0===n||n.call(v,t),!t.defaultPrevented)if(e.unstable_virtual)q(t)&&w();else if(q(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=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return Up?Y(e.currentTarget):e.relatedTarget}(t),i=Yp(e.items,o);if(q(t)&&i)o===r?f.current&&f.current!==o&&$p(f.current,t):r&&$p(r,t),t.stopPropagation();else!Yp(e.items,t.target)&&r&&$p(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&&q(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(xp(_p(wp(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:V(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})}}),Xp=z({as:"div",useHook:Kp,useCreateElement:function(e,t,n){return N(e,t,n)}}),Zp=B({name:"Group",compose:re,keys:[],useProps:function(e,t){return m({role:"group"},t)}}),Jp=(z({as:"div",useHook:Zp}),B({name:"CompositeGroup",compose:[Zp,xe],keys:pe,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Zp.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=Ep(e.items,n),s=Ep(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 Zp.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:V(o,n)},r)}})),Qp=z({as:"div",useHook:Jp});hd("div",{target:"elqsdmc2"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const em=hd("div",{target:"elqsdmc1"})("transform-origin:top left;height:100%;width:100%;",fp,";",(()=>Nf({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(e=>{let{disablePointerEvents:t}=e;return Nf({pointerEvents:t?"none":null},"","")}),";"),tm=hd("span",{target:"elqsdmc0"})("height:2px;width:2px;",hp,";",(e=>{let{isActive:t}=e;return Nf("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")}),";"),nm=gp,rm=24;const om=()=>{};function im(e){let{className:t,id:n,label:r=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:l=om,width:f=92,...p}=e;const[m]=(0,s.useState)(null!=i?i:o),h=function(e){const t=(0,d.useInstanceId)(im,"alignment-matrix-control");return e||t}(n),v=Tf(h,m),g=Vp({baseId:h,currentId:v,rtl:(0,u.isRTL)()}),{setCurrentId:b}=g;(0,s.useEffect)((()=>{void 0!==i&&b(Tf(h,i))}),[i,b,h]);const y=c()("component-alignment-matrix-control",t);return(0,s.createElement)(Xp,a({},p,g,{"aria-label":r,as:pp,className:y,role:"grid",size:f}),Ef.map(((e,t)=>(0,s.createElement)(Qp,a({},g,{as:mp,role:"row",key:t}),e.map((e=>{const t=Tf(h,e),n=g.currentId===t;return(0,s.createElement)(bp,a({},g,{id:t,isActive:n,key:e,value:e,onFocus:()=>{l(e)},tabIndex:n?0:-1}))}))))))}function am(e){return"appear"===e?"top":"left"}function sm(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=am(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 lm(e){let{type:t,options:n={},children:r}=e;return r({className:sm({type:t,...n})})}im.Icon=function(e){let{className:t,disablePointerEvents:n=!0,size:r=rm,style:o={},value:i="center",...l}=e;const u=function(){const e=Sf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center").replace("-"," "),t=kf.indexOf(e);return t>-1?t:void 0}(i),d=(r/rm).toFixed(2),f=c()("component-alignment-matrix-control-icon",t),p={...o,transform:`scale(${d})`};return(0,s.createElement)(em,a({},l,{className:f,disablePointerEvents:n,role:"presentation",size:r,style:p}),kf.map(((e,t)=>{const n=u===t;return(0,s.createElement)(nm,{key:e},(0,s.createElement)(tm,{isActive:n}))})))};const cm=(0,s.createContext)({flexItemDisplay:void 0});const um={name:"zjik7",styles:"display:flex"},dm={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},fm={name:"82a6rk",styles:"flex:1"},pm={name:"13nosa1",styles:">*{min-height:0;}"},mm={name:"1pwxzk4",styles:">*{min-width:0;}"};function hm(e){const{className:t,display:n,isBlock:r=!1,...o}=rd(e,"FlexItem"),i={},a=(0,s.useContext)(cm).flexItemDisplay;i.Base=Nf({display:n||a},"","");return{...o,className:nd()(dm,i.Base,r&&fm,t)}}var vm=od((function(e,t){const n=function(e){return hm({isBlock:!0,...rd(e,"FlexBlock")})}(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"FlexBlock");var gm=od((function(e,t){const n=hm(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"FlexItem");const bm=["40em","52em","64em"],ym=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>bm.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${bm.length} breakpoints, got index ${t}`);const[n,r]=(0,s.useState)(t);return(0,s.useEffect)((()=>{const e=()=>{const e=bm.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 wm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=ym(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function xm(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 _m(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:l=!1,...c}=rd(function(e){const{isReversed:t,...n}=e;return void 0!==t?(hc()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=wm(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f="string"==typeof u&&u.includes("reverse"),p=nd();return{...c,className:(0,s.useMemo)((()=>{const e=Nf({alignItems:d?"normal":t,flexDirection:u,flexWrap:l?"wrap":void 0,gap:xm(i),justifyContent:a,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return p(um,e,d?pm:mm,n)}),[t,n,p,u,o,i,d,f,a,l]),isColumn:d}}var Em=od((function(e,t){const{children:n,isColumn:r,...o}=_m(e);return(0,s.createElement)(cm.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,s.createElement)(gd,a({},o,{ref:t}),n))}),"Flex");const Cm={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function km(e){return null!=e}function Sm(){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(km))&&void 0!==e?e:n}const Tm=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Nm="…",Rm={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Mm={ellipsis:Nm,ellipsizeMode:Rm.auto,limit:0,numberOfLines:0};function Im(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=km(r)?r:Nm;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 Pm(e){const{className:t,children:n,ellipsis:r=Nm,ellipsizeMode:o=Rm.auto,limit:i=0,numberOfLines:a=0,...l}=rd(e,"Truncate"),c=nd(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={...Mm,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Rm.none)return e;let a,s;switch(o){case Rm.head:a=0,s=i;break;case Rm.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}return o!==Rm.auto?Im(e,a,s,r):e}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}),d=o===Rm.auto;return{...l,className:(0,s.useMemo)((()=>c(d&&!a&&Cm,d&&!!a&&Nf("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,a,d]),children:u}}let Om;rp([op]);const Dm=kc()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&tp(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!Om){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Om=e}return Om}}();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 Am(e){const t=function(e){const t=Dm(e);return tp(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Lm="36px",zm="12px",Fm={controlSurfaceColor:cp.white,controlTextActiveColor:cp.ui.theme,controlPaddingX:zm,controlPaddingXLarge:"calc(12px * 1.3334)",controlPaddingXSmall:"calc(12px / 1.3334)",controlBackgroundColor:cp.white,controlBorderRadius:"2px",controlBorderColor:cp.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:cp.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${cp.ui.theme}`,controlDestructiveBorderColor:cp.alert.red,controlHeight:Lm,controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},Bm={toggleGroupControlBackgroundColor:Fm.controlBackgroundColor,toggleGroupControlBorderColor:cp.ui.border,toggleGroupControlBackdropBackgroundColor:Fm.controlSurfaceColor,toggleGroupControlBackdropBorderColor:cp.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Fm.controlBackgroundColor};var Hm=Object.assign({},Fm,Bm,{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:`${xm(2)}`,cardPaddingSmall:`${xm(4)}`,cardPaddingMedium:`${xm(4)} ${xm(6)}`,cardPaddingLarge:`${xm(6)} ${xm(8)}`,surfaceBackgroundColor:cp.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:cp.white,surfaceColor:cp.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 Vm=Nf("color:",cp.gray[900],";line-height:",Hm.fontLineHeightBase,";margin:0;",""),jm={name:"4zleql",styles:"display:block"},$m=Nf("color:",cp.alert.green,";",""),Wm=Nf("color:",cp.alert.red,";",""),Um=Nf("color:",cp.gray[700],";",""),Gm=Nf("mark{background:",cp.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;}",""),qm={name:"50zrmy",styles:"text-transform:uppercase"};var Ym=n(3138);const Km=kc()((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Xm={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Zm=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Jm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:13;if(e in Xm)return Jm(Xm[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}const t=`(${e} / 13)`;return`calc(${t} * ${Hm.fontSize})`}function Qm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!Zm.includes(e))return Jm(e);const t=`fontSizeH${e}`;return Hm[t]}var eh={name:"50zrmy",styles:"text-transform:uppercase"};function th(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:v,lineHeight:g,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:_,weight:E=Hm.fontWeight,...C}=rd(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 v=a,g=(0,Ym.findAll)({autoEscape:o,caseSensitive:i,findChunks:l,sanitize:f,searchWords:p,textToHighlight:v}),b=d;let y,w=-1,x="";const _=g.map(((e,o)=>{const a=v.substr(e.start,e.end-e.start);if(e.highlight){let e;w++,"object"==typeof c?i?e=c[a]:(c=Km(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=nd();let R;!0===w&&(R="auto"),!1===w&&(R="none");const M=Pm({...C,className:(0,s.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Hm.controlHeight} + ${xm(2)})`;switch(e){case"large":n=`calc(${Hm.controlHeightLarge} + ${xm(2)})`;break;case"small":n=`calc(${Hm.controlHeightSmall} + ${xm(2)})`;break;case"xSmall":n=`calc(${Hm.controlHeightXSmall} + ${xm(2)})`}return n}(n,g);if(t.Base=Nf({color:a,display:u,fontSize:Jm(y),fontWeight:E,lineHeight:o,letterSpacing:v,textAlign:r},"",""),t.upperCase=eh,t.optimalTextColor=null,b){const e="dark"===Am(b);t.optimalTextColor=Nf(e?{color:cp.gray[900]}:{color:cp.white},"","")}return N(Vm,t.Base,t.optimalTextColor,c&&Wm,!!S&&Gm,h&&jm,T&&Um,_&&e[_],x&&t.upperCase,i)}),[n,r,i,a,N,u,h,T,c,S,v,g,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 sd(e,["Link"])?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:k}}var nh=od((function(e,t){const n=th(e);return(0,s.createElement)(gd,a({as:"span"},n,{ref:t}))}),"Text");const rh={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},oh=new RegExp(/-left/g),ih=new RegExp(/-right/g),ah=new RegExp(/Left/g),sh=new RegExp(/Right/g);function lh(e){return"left"===e?"right":"right"===e?"left":oh.test(e)?e.replace(oh,"-right"):ih.test(e)?e.replace(ih,"-left"):ah.test(e)?e.replace(ah,"Right"):sh.test(e)?e.replace(sh,"Left"):e}const ch=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[lh(t),n]})))};function uh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,u.isRTL)()?Nf(t,""):Nf(e,""):(0,u.isRTL)()?Nf(ch(e),""):Nf(e,"")}uh.watch=()=>(0,u.isRTL)();var dh={name:"1739oy8",styles:"z-index:1"};const fh=e=>{let{isFocused:t}=e;return t?dh:""},ph=hd(Em,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",fh,";");var mh={name:"1d3w5wq",styles:"width:100%"};const hh=hd("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 Nf({backgroundColor:t?cp.ui.backgroundDisabled:cp.ui.background},"","")})," ",(e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":Nf("edge"===n?{flex:`0 0 ${t}`}:{width:t},"",""):mh}),";"),vh=e=>{let{inputSize:t,__next36pxDefaultSize:n}=e;const r={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:xm(4),paddingRight:xm(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:xm(2),paddingRight:xm(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:xm(4),paddingRight:xm(4)}};return n||(r.default={height:30,lineHeight:1,minHeight:30,paddingLeft:xm(2),paddingRight:xm(2)}),r[t]||r.default},gh=hd("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",cp.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=Nf("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=Nf("&:active{cursor:",o,";}","")),Nf(t," ",n,";","")})," ",(e=>{let{disabled:t}=e;return t?Nf({color:cp.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"},r=n[t]||n.default;return r?Nf("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""})," ",(e=>Nf(vh(e),"",""))," ",(e=>{let{paddingInlineStart:t,paddingInlineEnd:n}=e;return Nf({paddingInlineStart:t,paddingInlineEnd:n},"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),bh=hd(nh,{target:"em5sgkm4"})("&&&{",rh,";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;}"),yh=e=>(0,s.createElement)(bh,a({},e,{as:"label"})),wh=hd(gm,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),xh=hd("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?cp.ui.borderFocus:cp.ui.border;return r&&(t=`0 0 0 1px ${cp.ui.borderFocus} inset`),n&&(o=cp.ui.borderDisabled),Nf({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",uh({paddingLeft:2}),";}"),_h=hd("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Eh=hd("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const Ch=(0,s.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return(0,s.createElement)(xh,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})}));var kh=Ch;function Sh(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?(0,s.createElement)(bd,{as:"label",htmlFor:r},t):(0,s.createElement)(wh,null,(0,s.createElement)(yh,a({htmlFor:r},o),t)):null}function Th(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:v="default",suffix:g,...b}=e;const y=function(e){const t=(0,d.useInstanceId)(Th);return e||`input-base-control-${t}`}(f),w=c||!m,{paddingLeft:x,paddingRight:_}=vh({inputSize:v,__next36pxDefaultSize:n}),E=(0,s.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:x},InputControlSuffixWrapper:{paddingRight:_}})),[x,_]);return(0,s.createElement)(ph,a({},b,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",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)(Sh,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:u,htmlFor:y},m),(0,s.createElement)(hh,{__unstableInputWidth:r,className:"components-input-control__container",disabled:l,hideLabel:w,labelPosition:u},(0,s.createElement)(_c,{value:E},h&&(0,s.createElement)(_h,{className:"components-input-control__prefix"},h),o,g&&(0,s.createElement)(Eh,{className:"components-input-control__suffix"},g)),(0,s.createElement)(kh,{disabled:l,isFocused:p})))}var Nh=(0,s.forwardRef)(Th);const Rh={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 Mh(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Ih(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?-Mh(t-e,n-t,r)+t:e>n?+Mh(e-n,n-t,r)+n:e}function Ph(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 Oh(e,t,n){return(t=Ph(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dh(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dh(Object(n),!0).forEach((function(t){Oh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lh={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 zh(e){return e?e[0].toUpperCase()+e.slice(1):""}const Fh=["enter","leave"];function Bh(e,t="",n=!1){const r=Lh[e],o=r&&r[t]||t;return"on"+zh(e)+zh(o)+(function(e=!1,t){return e&&!Fh.includes(t)}(n,o)?"Capture":"")}const Hh=["gotpointercapture","lostpointercapture"];function Vh(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=Hh.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function jh(e){return"touches"in e}function $h(e){return jh(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Wh(e){return jh(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Uh(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 Gh(e){const t=Wh(e);return jh(e)?t.identifier:t.pointerId}function qh(e){const t=Wh(e);return[t.clientX,t.clientY]}function Yh(e,...t){return"function"==typeof e?e(...t):e}function Kh(){}function Xh(...e){return 0===e.length?Kh:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Zh(e,t){return Object.assign({},t,e||{})}class Jh{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?Yh(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);Rh.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=Yh(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[v,g],[b,y]]=t._bounds;t.overflow=[m<v?-1:m>g?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[Ih(t,i,a,r),Ih(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=Rh.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=Rh.sub(t.offset,f);const e=t.delta.map(Math.abs);Rh.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(Ah(Ah(Ah({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Qh extends Jh{constructor(...e){super(...e),Oh(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=Rh.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Rh.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[$h(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 ev=e=>e,tv={enabled(e=!0){return e},eventOptions(e,t,n){return Ah(Ah({},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 Rh.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?Rh.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||ev},threshold(e){return Rh.toVector(e,0)}};const nv=Ah(Ah({},tv),{},{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=>nv.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]]}}),rv={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 ov="undefined"!=typeof window&&window.document&&window.document.createElement;function iv(){return ov&&"ontouchstart"in window}const av={isBrowser:ov,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:iv(),touchscreen:iv()||ov&&window.navigator.maxTouchPoints>1,pointer:ov&&"onpointerdown"in window,pointerLock:ov&&"exitPointerLock"in window.document},sv={mouse:0,touch:0,pen:8},lv=Ah(Ah({},nv),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&av.pointerLock,av.touch&&n?"touch":this.pointerLock?"mouse":av.pointer&&!o?"pointer":av.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,av.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=Rh.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(Rh.toVector(e)),distance:this.transform(Rh.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Ah(Ah({},sv),e):sv},keyboardDisplacement(e=10){return e}});Ah(Ah({},tv),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!av.touch&&av.gesture)return"gesture";if(av.touch&&r)return"touch";if(av.touchscreen){if(av.pointer)return"pointer";if(av.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Zh(Yh(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Zh(Yh(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 Rh.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Ah(Ah({},nv),{},{mouseOnly:(e=!0)=>e});const cv=Ah(Ah({},nv),{},{mouseOnly:(e=!0)=>e}),uv=new Map,dv=new Map;function fv(e){uv.set(e.key,e.engine),dv.set(e.key,e.resolver)}const pv={key:"drag",engine:class extends Qh{constructor(...e){super(...e),Oh(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=nv.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=Gh(e),n._pointerActive=!0,this.computeValues(qh(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==$h(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=Gh(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=qh(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Rh.sub(o,t._values),this.computeValues(o)),Rh.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=Gh(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=rv[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,Rh.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in rv&&(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:lv},mv={key:"hover",engine:class extends Qh{constructor(...e){super(...e),Oh(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(qh(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=qh(e);t._movement=t._delta=Rh.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:cv};function hv(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 vv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(av.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},gv=["target","eventOptions","window","enabled","transform"];function bv(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]=bv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class yv{constructor(e,t){Oh(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=Lh[e];return e+(n&&n[t]||t)}(t,n),s=Ah(Ah({},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 wv{constructor(){Oh(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 xv{constructor(e){Oh(this,"gestures",new Set),Oh(this,"_targetEventStore",new yv(this)),Oh(this,"gestureEventStores",{}),Oh(this,"gestureTimeoutStores",{}),Oh(this,"handlers",{}),Oh(this,"config",{}),Oh(this,"pointerIds",new Set),Oh(this,"touchIds",new Set),Oh(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&_v(e,"drag");t.wheel&&_v(e,"wheel");t.scroll&&_v(e,"scroll");t.move&&_v(e,"move");t.pinch&&_v(e,"pinch");t.hover&&_v(e,"hover")}(this,e)}setEventIds(e){return jh(e)?(this.touchIds=new Set(Uh(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=hv(r,gv);if(n.shared=bv({target:o,eventOptions:i,window:a,enabled:s,transform:l},vv),t){const e=dv.get(t);n[t]=bv(Ah({shared:n.shared},c),e)}else for(const e in c){const t=dv.get(e);t&&(n[e]=bv(Ah({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=Ev(n,o.eventOptions,!!r);if(o.enabled){new(uv.get(t))(this,e,t).bind(i)}}const o=Ev(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Ah(Ah({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Xh(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Vh(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function _v(e,t){e.gestures.add(t),e.gestureEventStores[t]=new yv(e,t),e.gestureTimeoutStores[t]=new wv}const Ev=(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:Bh(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function Cv(e,t={},n,r){const o=y().useMemo((()=>new xv(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 kv=e=>e,Sv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},Tv="CHANGE",Nv="COMMIT",Rv="CONTROL",Mv="DRAG_END",Iv="DRAG_START",Pv="DRAG",Ov="INVALIDATE",Dv="PRESS_DOWN",Av="PRESS_ENTER",Lv="PRESS_UP",zv="RESET";function Fv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sv;const{value:t}=e;return{...Sv,...e,initialValue:t}}function Bv(e){return(t,n)=>{const r={...t};switch(n.type){case Rv:return r.value=n.payload.value,r.isDirty=!1,r._event=void 0,r;case Lv:case Dv:r.isDirty=!1;break;case Iv:r.isDragging=!0;break;case Mv:r.isDragging=!1;break;case Tv:r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case Nv:r.value=n.payload.value,r.isDirty=!1;break;case zv:r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case Ov:r.error=n.payload.error}return r._event=n.payload.event,e(r,n)}}const Hv=()=>{};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=Hv,onChange:f=Hv,onDrag:p=Hv,onDragEnd:m=Hv,onDragStart:h=Hv,onFocus:v=Hv,onKeyDown:g=Hv,onValidate:b=Hv,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:M,invalidate:I,pressDown:P,pressEnter:O,pressUp:D,reset:A}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kv,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sv,n=arguments.length>2?arguments[2]:void 0;const[r,o]=(0,s.useReducer)(Bv(e),Fv(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(Tv),u=(e,t)=>o({type:Ov,payload:{error:e,event:t}}),d=i(zv),f=i(Nv),p=l(Iv),m=l(Pv),h=l(Mv),v=a(Lv),g=a(Dv),b=a(Av),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:Rv,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:g,pressEnter:b,pressUp:v,reset:d,state:r}}(x,{isDragEnabled:l,value:_,isPressEnterToChange:u},f),{value:L,isDragging:z,isDirty:F}=k,B=(0,s.useRef)(!1),H=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),V=e=>{const t=e.currentTarget.value;try{b(t),T(t,e)}catch(t){I(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),M(e))}},W={axis:"e"===r||"w"===r?"x":"y",threshold:o,enabled:l,pointer:{capture:!1}},fv(pv),Cv({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)(gh,a({},C,U,{className:"components-input-control__input",disabled:n,dragCursor:H,isDragging:z,id:i,onBlur:e=>{d(e),null==w||w(!1),!F&&e.target.validity.valid||(B.current=!0,V(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{v(e),null==w||w(!0)},onKeyDown:e=>{const{key:t}=e;switch(g(e),t){case"ArrowUp":D(e);break;case"ArrowDown":P(e);break;case"Enter":O(e),u&&(e.preventDefault(),V(e));break;case"Escape":u&&F&&(e.preventDefault(),A(_,e))}},onMouseDown:G,ref:t,inputSize:y,value:L,type:E}))}));var jv=Vv;const $v=()=>{};const Wv=(0,s.forwardRef)((function(e,t){let{__next36pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:l=!1,hideLabelFromVision:u=!1,id:f,isPressEnterToChange:p=!1,label:m,labelPosition:h="top",onChange:v=$v,onValidate:g=$v,onKeyDown:b=$v,prefix:y,size:w="default",suffix:x,value:_,...E}=e;const[C,k]=(0,s.useState)(!1),S=function(e){const t=(0,d.useInstanceId)(Wv);return e||`inspector-input-control-${t}`}(f),T=c()("components-input-control",i),N=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:_,onBlur:E.onBlur,onChange:v});return(0,s.createElement)(Nh,{__next36pxDefaultSize:n,__unstableInputWidth:o,className:T,disabled:l,gap:3,hideLabelFromVision:u,id:S,isFocused:C,justify:"left",label:m,labelPosition:h,prefix:y,size:w,suffix:x},(0,s.createElement)(jv,a({},E,{__next36pxDefaultSize:n,className:"components-input-control__input",disabled:l,id:S,isFocused:C,isPressEnterToChange:p,onKeyDown:b,onValidate:g,paddingInlineStart:y?xm(2):void 0,paddingInlineEnd:x?xm(2):void 0,ref:t,setIsFocused:k,size:w,stateReducer:r},N)))}));var Uv=Wv;var Gv={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 qv=e=>{let{hideHTMLArrows:t}=e;return t?Gv:""},Yv=hd(Uv,{target:"ep48uk90"})(qv,";");function Kv(e){const t=Number(e);return isNaN(t)?0:t}function Xv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>e+Kv(t)),0)}function Zv(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Jv(e,t,n){const r=Kv(e);return Math.max(t,Math.min(r,n))}function Qv(){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=Kv(e),i=Kv(r),a=Zv(r),s=Math.round(o/i)*i,l=Jv(s,t,n);return a?Kv(l.toFixed(a)):l}const eg=(0,s.forwardRef)((function(e,t){let{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,isDragEnabled:l=!0,isShiftStepEnabled:d=!0,label:f,max:p=1/0,min:m=-1/0,required:h=!1,shiftStep:v=10,step:g=1,type:b="number",value:y,...w}=e;const x="any"===g,_=x?1:Tm(g),E=Qv(0,m,p,_),C=(e,t)=>x?Math.min(p,Math.max(m,Tm(e))):Qv(e,m,p,null!=t?t:_),k="number"===b?"off":void 0,S=c()("components-number-control",r),T=(e,t)=>{const n={...e},{type:r,payload:i}=t,a=i.event,s=n.value;if(r===Lv||r===Dv){const e=(null==a?void 0:a.shiftKey)&&d,t=e?Tm(v)*_:_;let o=function(e){const t=""===e;return!km(e)||t}(s)?E:s;null!=a&&a.preventDefault&&a.preventDefault(),r===Lv&&(o=Xv(o,t)),r===Dv&&(o=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=Kv(t);return 0===n?r:e-r}),0)}(o,t)),n.value=C(o,e?t:void 0)}if(r===Pv&&l){const[e,t]=i.delta,r=i.shiftKey&&d,a=r?Tm(v)*_:_;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=C(Xv(s,e),r?a:void 0)}}if(r===Av||r===Nv){const e=!1===h&&""===s;n.value=e?s:C(s)}return n};return(0,s.createElement)(Yv,a({autoComplete:k,inputMode:"numeric"},w,{className:S,dragDirection:o,hideHTMLArrows:i,isDragEnabled:l,label:f,max:p,min:m,ref:t,required:h,step:g,type:b,value:y,__unstableStateReducer:(e,t)=>{var r;const o=T(e,t);return null!==(r=null==n?void 0:n(o,t))&&void 0!==r?r:o}}))}));var tg=eg;const ng=e=>{let{__nextHasNoMarginBottom:t}=e;return t?"":Nf("margin-bottom:",xm(2),";","")},rg=hd(Em,{target:"e65ony43"})(ng,";"),og=hd("div",{target:"e65ony42"})("border-radius:50%;border:",Hm.borderWidth," solid ",cp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),ig=hd("div",{target:"e65ony41"})({name:"1bhd2sw",styles:"box-sizing:border-box;position:relative;width:100%;height:100%"}),ag=hd("div",{target:"e65ony40"})("background:",cp.ui.theme,";border-radius:50%;border:",3,"px solid ",cp.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 sg=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)(og,a({ref:o,onMouseDown:u,className:"components-angle-picker-control__angle-circle",style:f?{cursor:"grabbing"}:void 0},r),(0,s.createElement)(ig,{style:t?{transform:`rotate(${t}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,s.createElement)(ag,{className:"components-angle-picker-control__angle-circle-indicator"})))};const lg=e=>null!=e;const cg=od((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,...v}=rd(e,"Spacer");return{...v,className:nd()(lg(n)&&Nf("margin:",xm(n),";",""),lg(l)&&Nf("margin-bottom:",xm(l),";margin-top:",xm(l),";",""),lg(s)&&Nf("margin-left:",xm(s),";margin-right:",xm(s),";",""),lg(a)&&Nf("margin-top:",xm(a),";",""),lg(r)&&Nf("margin-bottom:",xm(r),";",""),lg(o)&&uh({marginLeft:xm(o)})(),lg(i)&&uh({marginRight:xm(i)})(),lg(c)&&Nf("padding:",xm(c),";",""),lg(h)&&Nf("padding-bottom:",xm(h),";padding-top:",xm(h),";",""),lg(m)&&Nf("padding-left:",xm(m),";padding-right:",xm(m),";",""),lg(p)&&Nf("padding-top:",xm(p),";",""),lg(u)&&Nf("padding-bottom:",xm(u),";",""),lg(d)&&uh({paddingLeft:xm(d)})(),lg(f)&&uh({paddingRight:xm(f)})(),t)}}(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"Spacer");var ug=cg;function dg(e){let{__nextHasNoMarginBottom:t=!1,className:n,label:r=(0,u.__)("Angle"),onChange:o,value:i}=e;t||hc()("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)(rg,{__nextHasNoMarginBottom:t,className:a,gap:4},(0,s.createElement)(vm,null,(0,s.createElement)(tg,{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,hideHTMLArrows:!0,suffix:(0,s.createElement)(ug,{as:nh,marginBottom:0,marginRight:xm(3),style:{color:"var( --wp-admin-theme-color )"}},"°")})),(0,s.createElement)(gm,{style:{marginBottom:xm(1),marginTop:"auto"}},(0,s.createElement)(sg,{"aria-hidden":"true",value:i,onChange:o})))}var fg=n(4793),pg=n.n(fg),mg=window.wp.keycodes,hg=window.wp.richText,vg=window.wp.a11y;const gg=new RegExp(`[${["-","~","­","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),bg=e=>pg()(e).toLocaleLowerCase().replace(gg,"-");function yg(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function wg(e){return t=>{const[n,r]=(0,s.useState)([]);return(0,s.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,bc.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|^)"+yg(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(pg()(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 xg(e){let{record:t,onChange:n,onReplace:r,completers:o,contentRef:i}=e;const a=(0,d.useDebounce)(vg.speak,500),l=(0,d.useInstanceId)(xg),[f,p]=(0,s.useState)(0),[m,h]=(0,s.useState)([]),[v,g]=(0,s.useState)(""),[b,y]=(0,s.useState)(null),[w,x]=(0,s.useState)(null),_=(0,s.useRef)(!1);function E(e){const{getOptionCompletion:o}=b||{};if(!e.isDisabled){if(o){const i=o(e.value,v),{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-b.triggerPrefix.length-v.length,i=(0,hg.create)({html:(0,s.renderToString)(e)});n((0,hg.insert)(t,i,o,r))}(l)}C()}}function C(){p(0),h([]),g(""),y(null),x(null)}const k=(0,s.useMemo)((()=>{if((0,hg.isCollapsed)(t))return(0,hg.getTextContent)((0,hg.slice)(t,0))}),[t]);(0,s.useEffect)((()=>{if(!k)return void C();const e=pg()(k),n=(0,hg.getTextContent)((0,hg.slice)(t,void 0,(0,hg.getTextContent)(t).length)),r=(0,bc.find)(o,(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===m.length,l=1===a.split(/\s/).length,c=_.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 C();const i=yg(r.triggerPrefix),a=e.slice(e.lastIndexOf(r.triggerPrefix)).match(new RegExp(`${i}([\0-￿]*)$`)),l=a&&a[1];y(r),x((()=>r!==b?function(e){const t=e.useItems?e.useItems:wg(e);return function(e){let{filterValue:n,instanceId:r,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:l,onSelect:u,onReset:d,value:f,contentRef:p}=e;const[m]=t(n),h=(0,hg.useAnchor)({editableContentElement:p.current,value:f});return(0,s.useLayoutEffect)((()=>{l(m)}),[m]),!m.length>0?null:(0,s.createElement)(hf,{focusOnMount:!1,onClose:d,position:"top right",className:"components-autocomplete__popover",anchor:h},(0,s.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},(0,bc.map)(m,((e,t)=>(0,s.createElement)(wd,{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)))))}}(r):w)),g(l)}),[k]);const{key:S=""}=m[f]||{},{className:T}=b||{},N=!!b&&m.length>0,R=N?`components-autocomplete-listbox-${l}`:null;return{listBoxId:R,activeId:N?`components-autocomplete-item-${l}-${S}`:null,onKeyDown:function(e){if(_.current=e.keyCode===mg.BACKSPACE,b&&0!==m.length&&!e.defaultPrevented){switch(e.keyCode){case mg.UP:p((0===f?m.length:f)-1);break;case mg.DOWN:p((f+1)%m.length);break;case mg.ESCAPE:y(null),x(null),e.preventDefault();break;case mg.ENTER:E(m[f]);break;case mg.LEFT:case mg.RIGHT:return void C();default:return}e.preventDefault()}},popover:void 0!==t.start&&w&&(0,s.createElement)(w,{className:T,filterValue:v,instanceId:l,listBoxId:R,selectedIndex:f,onChangeOptions:function(e){p(e.length===m.length?f:0),h(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:E,value:t,contentRef:i,reset:C})}}function _g(e){const t=(0,s.useRef)(),n=(0,s.useRef)(),{popover:r,listBoxId:o,activeId:i,onKeyDown:a}=xg({...e,contentRef:t});return n.current=a,{ref:(0,d.useMergeRefs)([t,(0,d.useRefEffect)((e=>{function t(e){n.current(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]),children:r,"aria-autocomplete":o?"list":void 0,"aria-owns":o,"aria-activedescendant":i}}function Eg(e){let{children:t,isSelected:n,...r}=e;const{popover:o,...i}=xg(r);return(0,s.createElement)(s.Fragment,null,t(i),n&&o)}var Cg={"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 kg(e){return(0,bc.get)(Cg,e,"")}const Sg={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Tg=hd("div",{target:"ej5x27r4"})("font-family:",kg("default.fontFamily"),";font-size:",kg("default.fontSize"),";",Sg,";"),Ng=hd("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Nf("margin-bottom:",xm(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),Rg=Nf(rh,";display:inline-block;margin-bottom:",xm(2),";padding:0;",""),Mg=hd("label",{target:"ej5x27r2"})(Rg,";");var Ig={name:"11yad0w",styles:"margin-bottom:revert"};const Pg=hd("p",{target:"ej5x27r1"})("margin-top:",xm(2),";margin-bottom:0;font-size:",kg("helpText.fontSize"),";font-style:normal;color:",cp.gray[700],";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Ig}),";"),Og=hd("span",{target:"ej5x27r0"})(Rg,";"),Dg=e=>{let{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:a,children:l}=e;return(0,s.createElement)(Tg,{className:c()("components-base-control",a)},(0,s.createElement)(Ng,{className:"components-base-control__field",__nextHasNoMarginBottom:t},r&&n&&(o?(0,s.createElement)(bd,{as:"label",htmlFor:n},r):(0,s.createElement)(Mg,{className:"components-base-control__label",htmlFor:n},r)),r&&!n&&(o?(0,s.createElement)(bd,{as:"label"},r):(0,s.createElement)(Dg.VisualLabel,null,r)),l),!!i&&(0,s.createElement)(Pg,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},i))};Dg.VisualLabel=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)(Og,a({},r,{className:c()("components-base-control__label",t)}),n)};var Ag=Dg;var Lg=(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 zg=(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 Fg=Nf("",""),Bg={name:"82a6rk",styles:"flex:1"},Hg=e=>{const{color:t=cp.gray[200],style:n="solid",width:r=Hm.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Hm.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Vg={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function jg(e){const{className:t,__next36pxDefaultSize:n=!1,...r}=rd(e,"BorderBoxControlLinkedButton"),o=nd();return{...r,className:(0,s.useMemo)((()=>o((e=>Nf("flex:0;flex-basis:24px;line-height:0;margin-top:",e?"6px":"3px",";",""))(n),t)),[t,o,n])}}var $g=od(((e,t)=>{const{className:n,isLinked:r,...o}=jg(e),i=r?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(_f,{text:i},(0,s.createElement)(gd,{className:n},(0,s.createElement)(wd,a({},o,{isSmall:!0,icon:r?Lg:zg,iconSize:24,"aria-label":i,ref:t}))))}),"BorderBoxControlLinkedButton");function Wg(e){const{className:t,value:n,__next36pxDefaultSize:r=!1,...o}=rd(e,"BorderBoxControlVisualizer"),i=nd(),a=uh.watch(),l=(0,s.useMemo)((()=>i(((e,t)=>Nf("position:absolute;top:",t?"18px":"15px",";right:30px;bottom:",t?"18px":"15px",";left:30px;border-top:",Hg(null==e?void 0:e.top),";border-bottom:",Hg(null==e?void 0:e.bottom),";",uh({borderLeft:Hg(null==e?void 0:e.left)})()," ",uh({borderRight:Hg(null==e?void 0:e.right)})(),";",""))(n,r),t)),[i,t,n,r,a]);return{...o,className:l,value:n}}var Ug=od(((e,t)=>{const{value:n,...r}=Wg(e);return(0,s.createElement)(gd,a({},r,{ref:t}))}),"BorderBoxControlVisualizer");var Gg=(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 qg=(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 Yg=(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 Kg=(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 Xg=hd("div",{target:"e1bagdl33"})("box-sizing:border-box;position:relative;&&& ",xh,"{transition:box-shadow 0.1s linear;}");var Zg={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"};const Jg=e=>{let{disableUnits:t}=e;return t?"":Zg},Qg=hd(tg,{target:"e1bagdl32"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Jg,";}}"),eb=e=>{let{selectSize:t}=e;const n={default:Nf("box-sizing:border-box;padding:2px 1px;width:20px;color:",cp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:Nf("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",xm(2),";padding:",xm(1),";color:",cp.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},tb=hd("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",eb,";color:",cp.gray[900],";}"),nb=hd("select",{target:"e1bagdl30"})("&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",eb,";",(e=>{let{selectSize:t="default"}=e;const n={default:Nf("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",uh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",cp.gray[100],";}&:focus{border:1px solid ",cp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Hm.borderWidth+" "+cp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:Nf("display:flex;justify-content:center;align-items:center;&:hover{color:",cp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Hm.borderWidth+" "+cp.ui.borderFocus,";outline:",Hm.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Hm.borderWidthFocus+" "+cp.ui.borderFocus,";outline:",Hm.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===t?n.large:n.default}),";&:not( :disabled ){cursor:pointer;}}");const rb={name:"f3vz0n",styles:"font-weight:500"},ob=Nf("box-shadow:inset 0 0 0 ",Hm.borderWidth," ",cp.ui.borderFocus,";",""),ib=Nf("border:0;padding:0;margin:0;",Sg,";",""),ab=Nf(Xg,"{flex:0 0 auto;}","");var sb={name:"6g24ce",styles:"height:16px;width:16px"};const lb=(e,t)=>{const{style:n}=e||{};return Nf("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?cp.gray[300]:void 0;return Nf("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:",t?"28px":"22px",";height:",t?"28px":"22px",";padding:",t?"2px":"1px",";&>span{",t?"":sb," 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);}","")},cb=Nf("width:",228,"px;>div:first-of-type>",Mg,"{margin-bottom:0;",rb,";}&& ",Mg,"+button:not( .has-text ){min-width:24px;padding:0;}",""),ub=Nf("",""),db=Nf("",""),fb=Nf("justify-content:center;width:100%;&&{border-top:",Hm.borderWidth," solid ",cp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),pb=Nf(Mg,"{",rb,";}",""),mb={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const hb=[{label:(0,u.__)("Solid"),icon:qg,value:"solid"},{label:(0,u.__)("Dashed"),icon:Yg,value:"dashed"},{label:(0,u.__)("Dotted"),icon:Kg,value:"dotted"}],vb=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(bd,{as:"label"},t):(0,s.createElement)(Mg,null,t):null};var gb=od(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:l,...c}=function(e){const{className:t,...n}=rd(e,"BorderControlStylePicker"),r=nd();return{...n,className:(0,s.useMemo)((()=>r(pb,t)),[t,r]),buttonClassName:(0,s.useMemo)((()=>r(mb)),[r])}}(e);return(0,s.createElement)(gd,a({},c,{ref:t}),(0,s.createElement)(vb,{label:o,hideLabelFromVision:r}),(0,s.createElement)(Em,{justify:"flex-start",gap:1},hb.map((e=>(0,s.createElement)(wd,{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 bb=(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))})),yb=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},wb=function(e){return.2126*yb(e.r)+.7152*yb(e.g)+.0722*yb(e.b)};function xb(e){const{renderContent:t,renderToggle:n,className:r,contentClassName:o,expandOnMobile:i,headerTitle:l,focusOnMount:u,position:f,popoverProps:p,onClose:m,onToggle:h,style:v}=e,[g,b]=(0,s.useState)(null),y=(0,s.useRef)(),[w,x]=function(e,t){const[n,r]=(0,s.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,h);function _(){m&&m(),x(!1)}(0,s.useEffect)((()=>()=>{h&&w&&h(!1)}),[h,w]);const E={isOpen:w,onToggle:function(){x(!w)},onClose:_},C=!!(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",r),ref:(0,d.useMergeRefs)([b,y]),tabIndex:"-1",style:v},n(E),w&&(0,s.createElement)(hf,a({position:f,onClose:_,onFocusOutside:function(){const{ownerDocument:e}=y.current,t=e.activeElement.closest('[role="dialog"]');y.current.contains(e.activeElement)||t&&!t.contains(y.current)||_()},expandOnMobile:i,headerTitle:l,focusOnMount:u,offset:13,anchor:C?void 0:g},p,{className:c()("components-dropdown__content",p?p.className:void 0,o)}),t(E)))}var _b=od((function(e,t){const n=rd(e,"InputControlSuffixWrapper");return(0,s.createElement)(ug,a({marginBottom:0},n,{ref:t}))}),"InputControlSuffixWrapper");const Eb=hd("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",cp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;",(e=>{let{disabled:t}=e;return t?Nf({color:cp.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t="default"}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"}[t];return n?Nf("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""}),";",(e=>{let{__next36pxDefaultSize:t,selectSize:n="default"}=e;const r={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||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return Nf(r[n]||r.default,"","")}),";",(e=>{let{__next36pxDefaultSize:t,selectSize:n="default"}=e;const r={default:{paddingLeft:16,paddingRight:34},small:{paddingLeft:8,paddingRight:26},"__unstable-large":{paddingLeft:16,paddingRight:34}};return t||(r.default={paddingLeft:8,paddingRight:26}),uh(r[n]||r.default)}),";}"),Cb=hd("div",{target:"e1mv6sxx1"})("margin-inline-end:",xm(-1),";line-height:0;"),kb=hd(_b,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",uh({right:0}),";");var Sb=function(e){let{icon:t,size:n=24,...r}=e;return(0,s.cloneElement)(t,{width:n,height:n,...r})};var Tb=(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 Nb=()=>(0,s.createElement)(kb,null,(0,s.createElement)(Cb,null,(0,s.createElement)(Sb,{icon:Tb,size:18})));const Rb=()=>{};const Mb=(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=Rb,onChange:m=Rb,onFocus:h=Rb,options:v=[],size:g="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)(Mb);return e||`inspector-select-control-${t}`}(l),R=o?`${N}__help`:void 0;if(!(null!=v&&v.length||w))return null;const M=c()("components-select-control",n);return(0,s.createElement)(Ag,{help:o,id:N,__nextHasNoMarginBottom:C},(0,s.createElement)(Nh,{className:M,disabled:r,hideLabelFromVision:i,id:N,isFocused:S,label:u,size:g,suffix:_||(0,s.createElement)(Nb,null),prefix:x,labelPosition:y,__next36pxDefaultSize:E},(0,s.createElement)(Eb,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:g,value:b}),w||v.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 Ib=Mb;const Pb={initial:void 0,fallback:""};var Ob=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pb;const{initial:n,fallback:r}={...Pb,...t},[o,i]=(0,s.useState)(e),a=km(e);(0,s.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]);const l=Sm([e,o,n],r),c=e=>{a||i(e)};return[l,c]};const Db=()=>{};function Ab(e,t,n){return"number"!=typeof e?null:parseFloat(`${Jv(e,t,n)}`)}const Lb=()=>Nf({height:30,minHeight:30},"",""),zb=12,Fb=hd("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%"}),Bb=hd("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(e=>{let{color:t=cp.ui.borderFocus}=e;return Nf({color:t},"","")}),";",Lb,";",(e=>{let{marks:t,__nextHasNoMarginBottom:n}=e;return n?"":Nf({marginBottom:t?16:void 0},"","")}),";"),Hb=hd("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",uh({marginRight:6}),";"),Vb=hd("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",uh({marginLeft:6}),";"),jb=hd("span",{target:"e1epgpqk10"})("background-color:",cp.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=cp.ui.backgroundDisabled),Nf({background:r},"","")}),";"),$b=hd("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=cp.gray[400]),Nf({background:r},"","")}),";"),Wb=hd("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Ub=hd("span",{target:"e1epgpqk7"})("height:",zb,"px;left:0;position:absolute;top:-4px;width:1px;",(e=>{let{disabled:t,isFilled:n}=e,r=n?"currentColor":cp.gray[300];return t&&(r=cp.gray[400]),Nf({backgroundColor:r},"","")}),";"),Gb=hd("span",{target:"e1epgpqk6"})("color:",cp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(e=>{let{isFilled:t}=e;return Nf({color:t?cp.gray[700]:cp.gray[300]},"","")}),";");var qb={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const Yb=e=>{let{disabled:t}=e;return t?Nf("background-color:",cp.gray[400],";",""):qb},Kb=hd("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",zb,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",zb,"px;border-radius:50%;",Yb,";",uh({marginLeft:-10}),";",uh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Xb=hd("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Yb,";",(e=>{let{isFocused:t}=e;return t?Nf("&::before{content:' ';position:absolute;background-color:var( --wp-admin-theme-color );opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""}),";"),Zb=hd("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% + ",zb,"px );");var Jb={name:"1cypxip",styles:"top:-80%"},Qb={name:"1lr98c4",styles:"bottom:-80%"};const ey=hd("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 Nf({opacity:t?1:0},"","")}),";",(e=>{let{position:t}=e;return"bottom"===t?Qb:Jb}),";",up("transition"),";",uh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),ty=hd(tg,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",xm(16),"!important;input[type='number']&{",Lb,";}",uh({marginLeft:`${xm(4)} !important`}),";"),ny=hd("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Lb,";}",uh({marginLeft:8}),";"),ry=()=>{};const oy=(0,s.forwardRef)((function(e,t){const{describedBy:n,label:r,onHideTooltip:o=ry,onMouseLeave:i=ry,onMouseMove:l=ry,onShowTooltip:c=ry,value:u,...d}=e,f=function(e){const{onHide:t=Db,onMouseLeave:n=Db,onMouseMove:r=Db,onShow:o=Db,timeout:i=300}=e,[a,l]=(0,s.useState)(!1),c=(0,s.useRef)(),u=(0,s.useCallback)((e=>{window.clearTimeout(c.current),c.current=window.setTimeout(e,i)}),[i]),d=(0,s.useCallback)((e=>{r(e),u((()=>{a||(l(!0),o())}))}),[]),f=(0,s.useCallback)((e=>{n(e),u((()=>{l(!1),t()}))}),[]);return(0,s.useEffect)((()=>()=>{window.clearTimeout(c.current)})),{onMouseMove:d,onMouseLeave:f}}({onHide:o,onMouseLeave:i,onMouseMove:l,onShow:c});return(0,s.createElement)(Zb,a({},d,f,{"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:u}))}));var iy=oy;function ay(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)(Ub,a({},i,{"aria-hidden":"true",className:l,isFilled:n,style:o})),r&&(0,s.createElement)(Gb,{"aria-hidden":"true",className:u,isFilled:n,style:o},r))}function sy(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)(jb,a({disabled:t},c)),n&&(0,s.createElement)(ly,{disabled:t,marks:n,min:r,max:o,step:i,value:l}))}function ly(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)(Wb,{"aria-hidden":"true",className:"components-range-control__marks"},c.map((e=>(0,s.createElement)(ay,a({},e,{key:e.key,"aria-hidden":"true",disabled:t})))))}function cy(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]);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)(ey,a({},f,{"aria-hidden":o,className:m,position:p,show:o,role:"tooltip",style:h}),u(l))}const uy=()=>{};const dy=(0,s.forwardRef)((function e(t,n){var r;const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:l=!1,beforeIcon:f,className:p,color:m=cp.ui.theme,currentInput:h,disabled:v=!1,help:g,hideLabelFromVision:b=!1,initialPosition:y,isShiftStepEnabled:w=!0,label:x,marks:_=!1,max:E=100,min:C=0,onBlur:k=uy,onChange:S=uy,onFocus:T=uy,onMouseLeave:N=uy,onMouseMove:R=uy,railColor:M,renderTooltipContent:I=(e=>e),resetFallbackValue:P,shiftStep:O=10,showTooltip:D,step:A=1,trackColor:L,value:z,withInputField:F=!0,...B}=t,[H,V]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=Ob(Ab(r,t,n),{initial:Ab(null!=o?o:null,t,n),fallback:null});return[i,(0,s.useCallback)((e=>{a(null===e?null:Ab(e,t,n))}),[t,n])]}({min:C,max:E,value:null!=z?z:null,initial:y}),j=(0,s.useRef)(!1);let $=D,W=F;"any"===A&&($=!1,W=!1);const[U,G]=(0,s.useState)($),[q,Y]=(0,s.useState)(!1),K=(0,s.useRef)(),X=null===(r=K.current)||void 0===r?void 0:r.matches(":focus"),Z=!v&&q,J=null===H,Q=J?"":void 0!==H?H:h,ee=J?(E-C)/2+C:H,te=`${Jv(J?50:(H-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=g?`${oe}__help`:void 0,ae=!1!==$&&Number.isFinite(H),se=()=>{let e=parseFloat(`${P}`),t=e;isNaN(e)&&(e=null,t=void 0),V(e),S(t)},le={[(0,u.isRTL)()?"right":"left"]:te};return(0,s.createElement)(Ag,{__nextHasNoMarginBottom:o,className:ne,label:x,hideLabelFromVision:b,id:`${oe}`,help:g},(0,s.createElement)(Fb,{className:"components-range-control__root"},f&&(0,s.createElement)(Hb,null,(0,s.createElement)(gc,{icon:f})),(0,s.createElement)(Bb,{__nextHasNoMarginBottom:o,className:re,color:m,marks:!!_},(0,s.createElement)(iy,a({},B,{className:"components-range-control__slider",describedBy:ie,disabled:v,id:`${oe}`,label:x,max:E,min:C,onBlur:e=>{k(e),Y(!1),G(!1)},onChange:e=>{const t=parseFloat(e.target.value);V(t),S(t)},onFocus:e=>{T(e),Y(!0),G(!0)},onMouseMove:R,onMouseLeave:N,ref:(0,d.useMergeRefs)([K,n]),step:A,value:null!=Q?Q:void 0})),(0,s.createElement)(sy,{"aria-hidden":!0,disabled:v,marks:_,max:E,min:C,railColor:M,step:A,value:ee}),(0,s.createElement)($b,{"aria-hidden":!0,className:"components-range-control__track",disabled:v,style:{width:te},trackColor:L}),(0,s.createElement)(Kb,{style:le,disabled:v},(0,s.createElement)(Xb,{"aria-hidden":!0,isFocused:Z,disabled:v})),ae&&(0,s.createElement)(cy,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:I,show:X||U,style:le,value:H})),i&&(0,s.createElement)(Vb,null,(0,s.createElement)(gc,{icon:i})),W&&(0,s.createElement)(ty,{"aria-label":x,className:"components-range-control__number",disabled:v,inputMode:"decimal",isShiftStepEnabled:w,max:E,min:C,onBlur:()=>{j.current&&(se(),j.current=!1)},onChange:e=>{let t=parseFloat(e);V(t),isNaN(t)?l&&(j.current=!0):((t<C||t>E)&&(t=Ab(t,C,E)),S(t),j.current=!1)},shiftStep:O,step:A,value:Q}),l&&(0,s.createElement)(ny,null,(0,s.createElement)(wd,{className:"components-range-control__reset",disabled:v||void 0===H,variant:"secondary",isSmall:!0,onClick:se},(0,u.__)("Reset")))))}));var fy=dy;const py={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"}},my={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 hy(e){return"string"==typeof e?[e]:s.Children.toArray(e).filter((e=>(0,s.isValidElement)(e)))}function vy(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=rd(e,"HStack"),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if(!km(e))return{};const n="column"===t?my:py;return e in n?n[e]:{align:e}}(t,r),c=hy(n).map(((e,t)=>{if(sd(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,s.createElement)(gm,a({isBlock:!0,key:r},n.props))}return e}));return _m({children:c,direction:r,justify:"center",...l,...i,gap:o})}var gy=od((function(e,t){const n=vy(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"HStack");const by=hd(tg,{target:"ez9hsf47"})(hh,"{width:",xm(24),";}"),yy=hd(Ib,{target:"ez9hsf46"})("margin-left:",xm(-2),";width:5em;",xh,"{display:none;}"),wy=hd(fy,{target:"ez9hsf45"})("flex:1;margin-right:",xm(2),";",Ng,"{margin-bottom:0;}"),xy=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${xm(2)} );\n\tmargin-left: ${xm(1)};\n}`,_y=hd("div",{target:"ez9hsf44"})("padding-top:",xm(2),";padding-right:0;padding-left:0;padding-bottom:0;"),Ey=hd(gy,{target:"ez9hsf43"})("padding-left:",xm(4),";padding-right:",xm(4),";"),Cy=hd(Em,{target:"ez9hsf42"})("padding-top:",xm(4),";padding-left:",xm(4),";padding-right:",xm(3),";padding-bottom:",xm(5),";"),ky=hd("div",{target:"ez9hsf41"})(Sg,";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:",xm(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",xm(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 ",Hm.borderWidthFocus," #fff;}",xy," ",Ng,"{margin-bottom:0;}"),Sy=hd(wd,{target:"ez9hsf40"})("&&&&&{min-width:",xm(6),";padding:0;>svg{margin-right:0;}}");var Ty=(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 Ny(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ry(e){return e instanceof Ny(e).Element||e instanceof Element}function My(e){return e instanceof Ny(e).HTMLElement||e instanceof HTMLElement}function Iy(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ny(e).ShadowRoot||e instanceof ShadowRoot)}var Py=Math.max,Oy=Math.min,Dy=Math.round;function Ay(){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 Ly(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function zy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&My(e)&&(o=e.offsetWidth>0&&Dy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Dy(r.height)/e.offsetHeight||1);var a=(Ry(e)?Ny(e):window).visualViewport,s=!Ly()&&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 Fy(e){var t=Ny(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function By(e){return e?(e.nodeName||"").toLowerCase():null}function Hy(e){return((Ry(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vy(e){return zy(Hy(e)).left+Fy(e).scrollLeft}function jy(e){return Ny(e).getComputedStyle(e)}function $y(e){var t=jy(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Wy(e,t,n){void 0===n&&(n=!1);var r=My(t),o=My(t)&&function(e){var t=e.getBoundingClientRect(),n=Dy(t.width)/e.offsetWidth||1,r=Dy(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Hy(t),a=zy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==By(t)||$y(i))&&(s=function(e){return e!==Ny(e)&&My(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Fy(e);var t}(t)),My(t)?((l=zy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Vy(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Uy(e){var t=zy(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 Gy(e){return"html"===By(e)?e:e.assignedSlot||e.parentNode||(Iy(e)?e.host:null)||Hy(e)}function qy(e){return["html","body","#document"].indexOf(By(e))>=0?e.ownerDocument.body:My(e)&&$y(e)?e:qy(Gy(e))}function Yy(e,t){var n;void 0===t&&(t=[]);var r=qy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ny(r),a=o?[i].concat(i.visualViewport||[],$y(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Yy(Gy(a)))}function Ky(e){return["table","td","th"].indexOf(By(e))>=0}function Xy(e){return My(e)&&"fixed"!==jy(e).position?e.offsetParent:null}function Zy(e){for(var t=Ny(e),n=Xy(e);n&&Ky(n)&&"static"===jy(n).position;)n=Xy(n);return n&&("html"===By(n)||"body"===By(n)&&"static"===jy(n).position)?t:n||function(e){var t=/firefox/i.test(Ay());if(/Trident/i.test(Ay())&&My(e)&&"fixed"===jy(e).position)return null;var n=Gy(e);for(Iy(n)&&(n=n.host);My(n)&&["html","body"].indexOf(By(n))<0;){var r=jy(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 Jy="top",Qy="bottom",ew="right",tw="left",nw="auto",rw=[Jy,Qy,ew,tw],ow="start",iw="end",aw="viewport",sw="popper",lw=rw.reduce((function(e,t){return e.concat([t+"-"+ow,t+"-"+iw])}),[]),cw=[].concat(rw,[nw]).reduce((function(e,t){return e.concat([t,t+"-"+ow,t+"-"+iw])}),[]),uw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dw(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 fw={placement:"bottom",modifiers:[],strategy:"absolute"};function pw(){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 mw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?fw:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},fw,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:Ry(e)?Yy(e):e.contextElement?Yy(e.contextElement):[],popper:Yy(t)};var a,c,f=function(e){var t=dw(e);return uw.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(pw(t,n)){s.rects={reference:Wy(t,Zy(n),"fixed"===s.options.strategy),popper:Uy(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(!pw(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 hw={passive:!0};var vw={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=Ny(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,hw)})),s&&l.addEventListener("resize",n.update,hw),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,hw)})),s&&l.removeEventListener("resize",n.update,hw)}},data:{}};function gw(e){return e.split("-")[0]}function bw(e){return e.split("-")[1]}function yw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ww(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?gw(o):null,a=o?bw(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Jy:t={x:s,y:n.y-r.height};break;case Qy:t={x:s,y:n.y+n.height};break;case ew:t={x:n.x+n.width,y:l};break;case tw: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 ow:t[c]=t[c]-(n[u]/2-r[u]/2);break;case iw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var xw={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ww({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},_w={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ew(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,v="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=tw,w=Jy,x=window;if(c){var _=Zy(n),E="clientHeight",C="clientWidth";if(_===Ny(n)&&"static"!==jy(_=Hy(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),o===Jy||(o===tw||o===ew)&&i===iw)w=Qy,h-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[E])-r.height,h*=l?1:-1;if(o===tw||(o===Jy||o===Qy)&&i===iw)y=ew,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[C])-r.width,p*=l?1:-1}var k,S=Object.assign({position:s},c&&_w),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Dy(n*o)/o||0,y:Dy(r*o)/o||0}}({x:p,y:h},Ny(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},S,((k={})[w]=b?"0":"",k[y]=g?"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]=g?p+"px":"",t.transform="",t))}var Cw={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:gw(t.placement),variation:bw(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,Ew(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,Ew(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 kw={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];My(o)&&By(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}),{});My(r)&&By(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Sw={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=cw.reduce((function(e,n){return e[n]=function(e,t,n){var r=gw(e),o=[tw,Jy].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,[tw,ew].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}},Tw={left:"right",right:"left",bottom:"top",top:"bottom"};function Nw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Tw[e]}))}var Rw={start:"end",end:"start"};function Mw(e){return e.replace(/start|end/g,(function(e){return Rw[e]}))}function Iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Iy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ow(e,t,n){return t===aw?Pw(function(e,t){var n=Ny(e),r=Hy(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Ly();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Vy(e),y:l}}(e,n)):Ry(t)?function(e,t){var n=zy(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):Pw(function(e){var t,n=Hy(e),r=Fy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Py(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Py(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Vy(e),l=-r.scrollTop;return"rtl"===jy(o||n).direction&&(s+=Py(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Hy(e)))}function Dw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Yy(Gy(e)),n=["absolute","fixed"].indexOf(jy(e).position)>=0&&My(e)?Zy(e):e;return Ry(n)?t.filter((function(e){return Ry(e)&&Iw(e,n)&&"body"!==By(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Ow(e,n,r);return t.top=Py(o.top,t.top),t.right=Oy(o.right,t.right),t.bottom=Oy(o.bottom,t.bottom),t.left=Py(o.left,t.left),t}),Ow(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 Aw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Lw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function zw(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?aw:c,d=n.elementContext,f=void 0===d?sw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,g=Aw("number"!=typeof v?v:Lw(v,rw)),b=f===sw?"reference":sw,y=e.rects.popper,w=e.elements[m?b:f],x=Dw(Ry(w)?w:w.contextElement||Hy(e.elements.popper),l,u,a),_=zy(e.elements.reference),E=ww({reference:_,element:y,strategy:"absolute",placement:o}),C=Pw(Object.assign({},y,E)),k=f===sw?C:_,S={top:x.top-k.top+g.top,bottom:k.bottom-x.bottom+g.bottom,left:x.left-k.left+g.left,right:k.right-x.right+g.right},T=e.modifiersData.offset;if(f===sw&&T){var N=T[o];Object.keys(S).forEach((function(e){var t=[ew,Qy].indexOf(e)>=0?1:-1,n=[Jy,Qy].indexOf(e)>=0?"y":"x";S[e]+=N[n]*t}))}return S}var Fw={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,v=t.options.placement,g=gw(v),b=l||(g===v||!m?[Nw(v)]:function(e){if(gw(e)===nw)return[];var t=Nw(e);return[Mw(e),t,Mw(t)]}(v)),y=[v].concat(b).reduce((function(e,n){return e.concat(gw(n)===nw?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?cw:l,u=bw(r),d=u?s?lw:lw.filter((function(e){return bw(e)===u})):rw,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]=zw(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[gw(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=gw(S),N=bw(S)===ow,R=[Jy,Qy].indexOf(T)>=0,M=R?"width":"height",I=zw(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=R?N?ew:tw:N?Qy:Jy;w[M]>x[M]&&(P=Nw(P));var O=Nw(P),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[P]<=0,I[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 Bw(e,t,n){return Py(e,Oy(t,n))}var Hw={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,v=zw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=gw(t.placement),b=bw(t.placement),y=!b,w=yw(g),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,M="y"===w?Jy:tw,I="y"===w?Qy:ew,P="y"===w?"height":"width",O=_[w],D=O+v[M],A=O-v[I],L=p?-C[P]/2:0,z=b===ow?E[P]:C[P],F=b===ow?-C[P]:-E[P],B=t.elements.arrow,H=p&&B?Uy(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[M],$=V[I],W=Bw(0,E[P],H[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:F+W+$+S.mainAxis,q=t.elements.arrow&&Zy(t.elements.arrow),Y=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,K=null!=(R=null==T?void 0:T[w])?R:0,X=O+G-K,Z=Bw(p?Oy(D,O+U-K-Y):D,O,p?Py(A,X):A);_[w]=Z,N[w]=Z-O}if(s){var J,Q="x"===w?Jy:tw,ee="x"===w?Qy:ew,te=_[x],ne="y"===x?"height":"width",re=te+v[Q],oe=te-v[ee],ie=-1!==[Jy,tw].indexOf(g),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=Bw(e,t,n);return r>n?n:r}(se,te,le):Bw(p?se:re,te,p?le:oe);_[x]=ce,N[x]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};var Vw={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=gw(n.placement),l=yw(s),c=[tw,ew].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Aw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Lw(e,rw))}(o.padding,n),d=Uy(i),f="y"===l?Jy:tw,p="y"===l?Qy:ew,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],v=Zy(i),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,y=u[f],w=g-d[c]-u[p],x=g/2-d[c]/2+b,_=Bw(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)))&&Iw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jw(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 $w(e){return[Jy,ew,Qy,tw].some((function(t){return e[t]>=0}))}var Ww={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=zw(t,{elementContext:"reference"}),s=zw(t,{altBoundary:!0}),l=jw(a,r),c=jw(s,o,i),u=$w(l),d=$w(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})}},Uw=mw({defaultModifiers:[vw,xw,Cw,kw,Sw,Fw,Hw,Vw,Ww]});function Gw(e){void 0===e&&(e={});var t,n,r=yp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=kp(h(r,["visible","animated"])),c=(0,b.useState)(i),u=c[0],d=c[1],f=(0,b.useState)(s),p=f[0],v=f[1],g=(0,b.useState)(!1),y=g[0],w=g[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:v,stopAnimation:S})}var qw=ee("Mac")&&!ee("Chrome")&&ee("Safari");function Yw(e){return function(t){return e&&!A(t,e)?e:t}}function Kw(e){void 0===e&&(e={});var t=yp(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,v=void 0!==p&&p,g=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],M=(0,b.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],P=M[1],O=(0,b.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=yp(e),n=t.modal,r=void 0===n||n,o=Gw(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:v},g)),z=(0,b.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),F=(0,b.useCallback)((function(e){e.placement&&N(e.placement),e.styles&&(P(Yw(e.styles.popper)),_.current&&A(Yw(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=Uw(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:qw?F: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 F(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:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:k})}var Xw={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 Zw=["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"],Jw=[].concat(Zw,["unstable_portal"]),Qw=B({name:"TooltipReference",compose:re,keys:Zw,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]),v=(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]),g=(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:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:p,onMouseEnter:v,onMouseLeave:g,"aria-describedby":e.baseId},s)}}),ex=z({as:"div",useHook:Qw});const tx=(0,s.createContext)({});var nx=B({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),v=(0,b.useRef)(0);(0,b.useEffect)((function(){if(e.animated)return v.current=window.requestAnimationFrame((function(){v.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(v.current)}}),[e.animated,e.visible,a]);var g=(0,b.useCallback)((function(t){var n;q(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),g(e)}),[g]),w=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),g(e)}),[g]);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)}}),rx=z({as:"div",useHook:nx});function ox(){return W?document.body:null}var ix=(0,b.createContext)(ox());function ax(e){var t=e.children,n=(0,b.useContext)(ix)||ox(),r=(0,b.useState)((function(){if(W){var e=document.createElement("div");return e.className=ax.__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)(ix.Provider,{value:r},t),r):null}function sx(e){e.defaultPrevented||"Escape"===e.key&&Xw.show(null)}ax.__className="__reakit-portal",ax.__selector="."+ax.__className;var lx=B({name:"Tooltip",compose:nx,keys:Jw,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",sx)}),[]);var a=(0,b.useCallback)((function(t){return e.unstable_portal&&(t=(0,b.createElement)(ax,null,t)),o?o(t):t}),[e.unstable_portal,o]);return m({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:m(m({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),cx=z({as:"div",memo:!0,useHook:lx});var ux=od((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=rd(e,"Shortcut");if(!r)return null;let l,c;return"string"==typeof r?l=r:(l=r.display,c=r.ariaLabel),(0,s.createElement)(gd,a({as:n,className:o,"aria-label":c,ref:t},i),l)}),"Shortcut");const dx=Nf("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Hm.transitionDurationFastest," ease;font-size:",Hm.fontSize,";&[data-enter]{opacity:1;}",""),fx=hd("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:",cp.white,";padding:4px 8px;"),px={name:"12mkfdx",styles:"outline:none"},mx=hd(ux,{target:"e7tfjmw0"})("display:inline-block;margin-left:",xm(1),";"),{TooltipPopoverView:hx}=t;var vx=od((function(e,t){const{children:n,className:r,...o}=rd(e,"TooltipContent"),{tooltip:i}=(0,s.useContext)(tx),l=nd()(dx,r);return(0,s.createElement)(cx,a({as:gd},o,i,{className:l,ref:t}),(0,s.createElement)(hx,null,n))}),"TooltipContent");const gx=od((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:v=!1,shortcut:g,...y}=rd(e,"Tooltip"),w=function(e){void 0===e&&(e={});var t=yp(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=Kw(m(m({},a),{},{placement:r})),p=(f.modal,f.setModal,h(f,["modal","setModal"])),v=(0,b.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),g=(0,b.useCallback)((function(){v(),p.hide(),d.current=window.setTimeout((function(){Xw.hide(p.baseId)}),l)}),[v,p.hide,l,p.baseId]),y=(0,b.useCallback)((function(){v(),!l||Xw.currentTooltipId?(Xw.show(p.baseId),p.show()):(Xw.show(null),u.current=window.setTimeout((function(){Xw.show(p.baseId),p.show()}),l))}),[v,l,p.show,p.baseId]);return(0,b.useEffect)((function(){return Xw.subscribe((function(e){e!==p.baseId&&(v(),p.visible&&p.hide())}))}),[p.baseId,v,p.visible,p.hide]),(0,b.useEffect)((function(){return function(){v(),Xw.hide(p.baseId)}}),[v,p.baseId]),m(m({},p),{},{hide:g,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||d,gutter:u,placement:p,visible:v,...y}),x=(0,s.useMemo)((()=>({tooltip:w})),[w]);return(0,s.createElement)(tx.Provider,{value:x},l&&(0,s.createElement)(vx,{unstable_portal:f,ref:t},l,g&&(0,s.createElement)(mx,{shortcut:g})),i&&(0,s.createElement)(ex,a({},w,i.props,{ref:null==i?void 0:i.ref}),(e=>(c||(e.tabIndex=void 0),(0,s.cloneElement)(i,e)))))}),"Tooltip");var bx=gx;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)(bx,{content:(0,s.createElement)(nh,{color:"white"},r===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")),placement:"bottom"},(0,s.createElement)(Sy,{isSmall:!0,ref:a,icon:Ty,showTooltip:!1}))},wx=e=>{let{min:t,max:n,label:r,abbreviation:o,onChange:i,value:a}=e;return(0,s.createElement)(gy,{spacing:4},(0,s.createElement)(by,{min:t,max:n,label:r,hideLabelFromVision:!0,value:a,onChange:i,prefix:(0,s.createElement)(ug,{as:nh,paddingLeft:xm(4),color:cp.ui.theme,lineHeight:1},o),hideHTMLArrows:!0,size:"__unstable-large"}),(0,s.createElement)(wy,{label:r,hideLabelFromVision:!0,min:t,max:n,value:a,onChange:i,withInputField:!1}))},xx=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)(wx,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>n(tp({r:e,g:i,b:a,a:l}))}),(0,s.createElement)(wx,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>n(tp({r:o,g:e,b:a,a:l}))}),(0,s.createElement)(wx,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>n(tp({r:o,g:i,b:e,a:l}))}),r&&(0,s.createElement)(wx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>n(tp({r:o,g:i,b:a,a:e/100}))}))},_x=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)(wx,{min:0,max:359,label:"Hue",abbreviation:"H",value:o,onChange:e=>{n(tp({h:e,s:i,l:a,a:l}))}}),(0,s.createElement)(wx,{min:0,max:100,label:"Saturation",abbreviation:"S",value:i,onChange:e=>{n(tp({h:o,s:e,l:a,a:l}))}}),(0,s.createElement)(wx,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a,onChange:e=>{n(tp({h:o,s:i,l:e,a:l}))}}),r&&(0,s.createElement)(wx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>{n(tp({h:o,s:i,l:a,a:e/100}))}}))},Ex=e=>{let{color:t,onChange:n,enableAlpha:r}=e;return(0,s.createElement)(Wv,{prefix:(0,s.createElement)(ug,{as:nh,marginLeft:xm(4),color:cp.ui.theme,lineHeight:1},"#"),value:t.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const t=e.startsWith("#")?e:"#"+e;n(tp(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"})},Cx=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)(_x,i);case"rgb":return(0,s.createElement)(xx,i);default:return(0,s.createElement)(Ex,i)}};function kx(){return(kx=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 Sx(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 Tx(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 Nx=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Rx=function(e){return"touches"in e},Mx=function(e){return e&&e.ownerDocument.defaultView||self},Ix=function(e,t,n){var r=e.getBoundingClientRect(),o=Rx(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:Nx((o.pageX-(r.left+Mx(e).pageXOffset))/r.width),top:Nx((o.pageY-(r.top+Mx(e).pageYOffset))/r.height)}},Px=function(e){!Rx(e)&&e.preventDefault()},Ox=b.memo((function(e){var t=e.onMove,n=e.onKey,r=Sx(e,["onMove","onKey"]),o=(0,b.useRef)(null),i=Tx(t),a=Tx(n),s=(0,b.useRef)(null),l=(0,b.useRef)(!1),c=(0,b.useMemo)((function(){var e=function(e){Px(e),(Rx(e)?e.touches.length>0:e.buttons>0)&&o.current?i(Ix(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=Mx(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&&(Px(t),!function(e,t){return t&&!Rx(e)}(t,l.current)&&r)){if(Rx(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(Ix(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",kx({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),Dx=function(e){return e.filter(Boolean).join(" ")},Ax=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Dx(["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}}))},Lx=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},zx=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Lx(e.h),s:Lx(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Lx(o/2),a:Lx(r,2)}}),Fx=function(e){var t=zx(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Bx=function(e){var t=zx(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Hx=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:Lx(255*[r,s,a,a,l,r][c]),g:Lx(255*[l,r,r,s,a,a][c]),b:Lx(255*[a,a,l,r,r,s][c]),a:Lx(o,2)}},Vx=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?$x({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}},jx=Vx,$x=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:Lx(60*(s<0?s+6:s)),s:Lx(i?a/i*100:0),v:Lx(i/255*100),a:o}},Wx=b.memo((function(e){var t=e.hue,n=e.onChange,r=Dx(["react-colorful__hue",e.className]);return b.createElement("div",{className:r},b.createElement(Ox,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Nx(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Lx(t),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(Ax,{className:"react-colorful__hue-pointer",left:t/360,color:Fx({h:t,s:100,v:100,a:1})})))})),Ux=b.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Fx({h:t.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(Ox,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Nx(t.s+100*e.left,0,100),v:Nx(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Lx(t.s)+"%, Brightness "+Lx(t.v)+"%"},b.createElement(Ax,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Fx(t)})))})),Gx=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},qx=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Yx(e,t,n){var r=Tx(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;Gx(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 Kx,Xx="undefined"!=typeof window?b.useLayoutEffect:b.useEffect,Zx=new Map,Jx=function(e){Xx((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Zx.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}',Zx.set(t,r);var o=Kx||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[])},Qx=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=Sx(e,["className","colorModel","color","onChange"]),s=(0,b.useRef)(null);Jx(s);var l=Yx(n,o,i),c=l[0],u=l[1],d=Dx(["react-colorful",t]);return b.createElement("div",kx({},a,{ref:s,className:d}),b.createElement(Ux,{hsva:c,onChange:u}),b.createElement(Wx,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},e_=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Bx(Object.assign({},n,{a:0}))+", "+Bx(Object.assign({},n,{a:1}))+")"},i=Dx(["react-colorful__alpha",t]),a=Lx(100*n.a);return b.createElement("div",{className:i},b.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),b.createElement(Ox,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:Nx(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},b.createElement(Ax,{className:"react-colorful__alpha-pointer",left:n.a,color:Bx(n)})))},t_=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=Sx(e,["className","colorModel","color","onChange"]),s=(0,b.useRef)(null);Jx(s);var l=Yx(n,o,i),c=l[0],u=l[1],d=Dx(["react-colorful",t]);return b.createElement("div",kx({},a,{ref:s,className:d}),b.createElement(Ux,{hsva:c,onChange:u}),b.createElement(Wx,{hue:c.h,onChange:u}),b.createElement(e_,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},n_={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Vx,fromHsva:function(e){var t=Hx(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:qx},r_=function(e){return b.createElement(t_,kx({},e,{colorModel:n_}))},o_={defaultColor:"rgb(0, 0, 0)",toHsva:jx,fromHsva:function(e){var t=Hx(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:qx},i_=function(e){return b.createElement(Qx,kx({},e,{colorModel:o_}))};const a_=e=>{let{color:t,enableAlpha:n,onChange:r}=e;const o=n?r_:i_,i=(0,s.useMemo)((()=>t.toRgbString()),[t]);return(0,s.createElement)(o,{color:i,onChange:e=>{r(tp(e))}})};function s_(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]}rp([op]);const l_=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],c_=od(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:l,...c}=rd(e,"ColorPicker"),[f,p]=s_({onChange:o,value:r,defaultValue:i}),m=(0,s.useMemo)((()=>tp(f||"")),[f]),h=(0,d.useDebounce)(p),v=(0,s.useCallback)((e=>{h(e.toHex())}),[h]),[g,b]=(0,s.useState)(l||"hex");return(0,s.createElement)(ky,a({ref:t},c),(0,s.createElement)(a_,{onChange:v,color:m,enableAlpha:n}),(0,s.createElement)(_y,null,(0,s.createElement)(Ey,{justify:"space-between"},(0,s.createElement)(yy,{options:l_,value:g,onChange:e=>b(e),label:(0,u.__)("Color format"),hideLabelFromVision:!0}),(0,s.createElement)(yx,{color:m,colorType:l||g})),(0,s.createElement)(Cy,{direction:"column",gap:2},(0,s.createElement)(Cx,{colorType:g,color:m,onChange:v,enableAlpha:n}))))}),"ColorPicker");var u_=c_;function d_(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const f_=kc()((e=>{const t=tp(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 p_=e=>(0,s.createElement)(u_,function(e){const{onChangeComplete:t}=e,n=(0,s.useCallback)((e=>{t(f_(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:d_(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}(e));var m_=(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 h_(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))}h_.Option=function(e){const{className:t,isSelected:n,selectedIconProps:r,tooltipText:o,...i}=e,l=(0,s.createElement)(wd,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)(_f,{text:o},l):l,n&&(0,s.createElement)(Sb,a({icon:m_},r||{})))},h_.ButtonAction=function(e){const{className:t,children:n,...r}=e;return(0,s.createElement)(wd,a({className:c()("components-circular-option-picker__clear",t),variant:"tertiary"},r),n)},h_.DropdownLinkAction=function(e){const{buttonProps:t,className:n,dropdownProps:r,linkText:o}=e;return(0,s.createElement)(xb,a({className:c()("components-circular-option-picker__dropdown-link-action",n),renderToggle:e=>{let{isOpen:n,onToggle:r}=e;return(0,s.createElement)(wd,a({"aria-expanded":n,"aria-haspopup":"true",onClick:r,variant:"link"},t),o)}},r))};var v_=od((function(e,t){const n=function(e){const{expanded:t=!1,...n}=rd(e,"VStack");return vy({direction:"column",expanded:t,...n})}(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"VStack");var g_=od((function(e,t){const n=Pm(e);return(0,s.createElement)(gd,a({as:"span"},n,{ref:t}))}),"Truncate");var b_=od((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=rd(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),{...th({color:cp.gray[900],size:Qm(n),isBlock:!0,weight:Hm.fontWeightHeading,...r}),...i,as:o}}(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"Heading");const y_=hd(b_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),w_=hd("div",{target:"eovvns30"})("margin-left:",xm(-2),";margin-right:",xm(-2),";&:first-of-type{margin-top:",xm(-2),";}&:last-of-type{margin-bottom:",xm(-2),";}",(e=>{let{paddingSize:t="small"}=e;if("none"===t)return;const n={small:xm(2),medium:xm(4)};return Nf("padding:",n[t]||n.small,";","")}),";");var x_=od((function(e,t){const{paddingSize:n="small",...r}=rd(e,"DropdownContentWrapper");return(0,s.createElement)(w_,a({},r,{paddingSize:n,ref:t}))}),"DropdownContentWrapper");function __(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=tp(r),c=i===r;return(0,s.createElement)(h_.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),"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===r.length?null:(0,s.createElement)(h_,{className:t,options:l,actions:a})}function E_(e){let{className:t,clearColor:n,colors:r,onChange:o,value:i,actions:a}=e;return 0===r.length?null:(0,s.createElement)(v_,{spacing:3,className:t},r.map(((e,t)=>{let{name:l,colors:c}=e;return(0,s.createElement)(v_,{spacing:2,key:t},(0,s.createElement)(y_,null,l),(0,s.createElement)(__,{clearColor:n,colors:c,onChange:o,value:i,actions:r.length===t+1?a:null}))})))}function C_(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)(xb,a({contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o},r))}rp([op,function(e){e.prototype.luminance=function(){return e=wb(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=wb(i))>(l=wb(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 k_=(0,s.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i,onChange:l,value:c,__experimentalHasMultipleOrigins:d=!1,__experimentalIsRenderedInSidebar:f=!1,...p}=e,m=(0,s.useCallback)((()=>l(void 0)),[l]),h=(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:tp(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:tp(n).toHex()))return t;return(0,u.__)("Custom")}(c,r,d)),[c,r,d]);if(r.length>0&&d!==(e=>e.every((e=>Array.isArray(e.colors))))(r))return console.warn("wp.components.ColorPalette: please specify a format for the `colors` prop that is compatible with the `__experimentalHasMultipleOrigins` prop."),null;const v=tp(null!=c?c:""),g=null!=c&&c.startsWith("#")?c.substring(1):null!=c?c:"",b=g?(0,u.sprintf)((0,u.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),h,g):(0,u.__)("Custom color picker."),y={clearable:n,clearColor:m,onChange:l,value:c,actions:!!n&&(0,s.createElement)(h_.ButtonAction,{onClick:m},(0,u.__)("Clear"))};return(0,s.createElement)(v_,a({spacing:3,ref:t},p),!o&&(0,s.createElement)(C_,{isRenderedInSidebar:f,renderContent:()=>(0,s.createElement)(x_,{paddingSize:"none"},(0,s.createElement)(p_,{color:c,onChange:e=>l(e),enableAlpha:i})),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(Em,{as:"button",justify:"space-between",align:"flex-start",className:"components-color-palette__custom-color","aria-expanded":t,"aria-haspopup":"true",onClick:n,"aria-label":b,style:(r=c,void 0===r||0===tp(r).alpha()?{color:"#000"}:{background:c,color:v.contrast()>v.contrast("#000")?"#fff":"#000"})},(0,s.createElement)(gm,{isBlock:!0,as:g_,className:"components-color-palette__custom-color-name"},h),(0,s.createElement)(gm,{as:"span",className:"components-color-palette__custom-color-value"},g));var r}}),d?(0,s.createElement)(E_,a({},y,{colors:r})):(0,s.createElement)(__,a({},y,{colors:r})))}));var S_=k_;const T_="web"===s.Platform.OS,N_={px:{value:"px",label:T_?"px":(0,u.__)("Pixels (px)"),a11yLabel:(0,u.__)("Pixels (px)"),step:1},"%":{value:"%",label:T_?"%":(0,u.__)("Percentage (%)"),a11yLabel:(0,u.__)("Percent (%)"),step:.1},em:{value:"em",label:T_?"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:T_?"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:T_?"vw":(0,u.__)("Viewport width (vw)"),a11yLabel:(0,u.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:T_?"vh":(0,u.__)("Viewport height (vh)"),a11yLabel:(0,u.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:T_?"vmin":(0,u.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,u.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:T_?"vmax":(0,u.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,u.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:T_?"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:T_?"ex":(0,u.__)("x-height of the font (ex)"),a11yLabel:(0,u.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:T_?"cm":(0,u.__)("Centimeters (cm)"),a11yLabel:(0,u.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:T_?"mm":(0,u.__)("Millimeters (mm)"),a11yLabel:(0,u.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:T_?"in":(0,u.__)("Inches (in)"),a11yLabel:(0,u.__)("Inches (in)"),step:.001},pc:{value:"pc",label:T_?"pc":(0,u.__)("Picas (pc)"),a11yLabel:(0,u.__)("Picas (pc)"),step:1},pt:{value:"pt",label:T_?"pt":(0,u.__)("Points (pt)"),a11yLabel:(0,u.__)("Points (pt)"),step:1}},R_=Object.values(N_),M_=[N_.px,N_["%"],N_.em,N_.rem,N_.vw,N_.vh],I_=N_.px;function P_(e,t,n){return D_(t?`${null!=e?e:""}${t}`:e,n)}function O_(e){return Array.isArray(e)&&!!e.length}function D_(e){var t,n;let r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R_;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(O_(i)){const e=i.find((e=>e.value===s));l=null==e?void 0:e.value}else l=I_.value;return[o,l]}function A_(e,t,n,r){const[o,i]=D_(e,t),a=null!=o?o:n;let s=i||r;return!s&&O_(t)&&(s=t[0].value),[a,s]}const L_=e=>{let{units:t=R_,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]=D_(r[e.value]);o[t].default=n}})),o};function z_(e){const{border:t,className:n,colors:r,onChange:o,previousStyleSelection:i,__next36pxDefaultSize:a,...l}=rd(e,"BorderControlDropdown"),[c]=D_(null==t?void 0:t.width),u=0===c,d=nd(),f=(0,s.useMemo)((()=>d(Nf("background:#fff;&&>button{height:100%;padding:",xm(.75),";",uh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Hm.borderWidth," solid ",cp.ui.border,";&:focus,&:hover:not( :disabled ){",ob," border-color:",cp.ui.borderFocus,";z-index:1;position:relative;}}",""),n)),[n,d]),p=(0,s.useMemo)((()=>d(db)),[d]),m=(0,s.useMemo)((()=>d(lb(t,a))),[t,d,a]),h=(0,s.useMemo)((()=>d(cb)),[d]),v=(0,s.useMemo)((()=>d(ub)),[d]),g=(0,s.useMemo)((()=>d(fb)),[d]);return{...l,border:t,className:f,colors:r,indicatorClassName:p,indicatorWrapperClassName:m,onColorChange:e=>{const n="none"===(null==t?void 0:t.style)?i:null==t?void 0:t.style,r=u&&e?"1px":null==t?void 0:t.width;o({color:e,style:n,width:r})},onStyleChange:e=>{const n=u&&e?"1px":null==t?void 0:t.width;o({...t,style:e,width:n})},onReset:()=>{o({...t,color:void 0,style:void 0})},popoverContentClassName:v,popoverControlsClassName:h,resetButtonClassName:g}}const F_=()=>{},B_=od(((e,t)=>{const{__experimentalHasMultipleOrigins:n,__experimentalIsRenderedInSidebar:r,border:o,colors:i,disableCustomColors:l,enableAlpha:c,indicatorClassName:d,indicatorWrapperClassName:f,onReset:p,onColorChange:m,onStyleChange:h,popoverContentClassName:v,popoverControlsClassName:g,resetButtonClassName:b,showDropdownHeader:y,enableStyle:w=!0,__unstablePopoverProps:x,..._}=z_(e),{color:E,style:C}=o||{},k=((e,t,n)=>{if(e&&t){if(n){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(E,i,!!n),S=((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."))(E,k,C,w),T=E||C&&"none"!==C,N=r?"bottom left":void 0;return(0,s.createElement)(xb,a({renderToggle:e=>{let{onToggle:t=F_}=e;return(0,s.createElement)(wd,{onClick:t,variant:"tertiary","aria-label":S,position:N,label:(0,u.__)("Border color and style picker"),showTooltip:!0},(0,s.createElement)("span",{className:f},(0,s.createElement)(bb,{className:d,colorValue:E})))},renderContent:e=>{let{onClose:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(x_,{paddingSize:"medium"},(0,s.createElement)(v_,{className:g,spacing:6},y?(0,s.createElement)(gy,null,(0,s.createElement)(Mg,null,(0,u.__)("Border color")),(0,s.createElement)(wd,{isSmall:!0,label:(0,u.__)("Close border color"),icon:Gg,onClick:t})):void 0,(0,s.createElement)(S_,{className:v,value:E,onChange:m,colors:i,disableCustomColors:l,__experimentalHasMultipleOrigins:n,__experimentalIsRenderedInSidebar:r,clearable:!1,enableAlpha:c}),w&&(0,s.createElement)(gb,{label:(0,u.__)("Style"),value:C,onChange:h}))),T&&(0,s.createElement)(x_,{paddingSize:"none"},(0,s.createElement)(wd,{className:b,variant:"tertiary",onClick:()=>{p(),t()}},(0,u.__)("Reset to default"))))},popoverProps:{...x}},_,{ref:t}))}),"BorderControlDropdown");var H_=B_;function V_(e){let{className:t,isUnitSelectTabbable:n=!0,onChange:r,size:o="default",unit:i="px",units:l=M_,...u}=e;if(!O_(l)||1===(null==l?void 0:l.length))return(0,s.createElement)(tb,{className:"components-unit-control__unit-label",selectSize:o},i);const d=c()("components-unit-control__select",t);return(0,s.createElement)(nb,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 j_=(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:v,onUnitChange:g,size:b="default",style:y,unit:w,units:x=M_,value:_,onBlur:E,...C}=e;"unit"in e&&hc()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const k=null!=_?_:void 0,S=(0,s.useMemo)((()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R_;const r=Array.isArray(n)?[...n]:[],[,o]=P_(e,t,R_);return o&&!r.some((e=>e.value===o))&&N_[o]&&r.unshift(N_[o]),r}(k,w,x)),[k,w,x]),[T,N]=P_(k,w,S),[R,M]=Ob(1===S.length?S[0].value:w,{initial:N,fallback:""});(0,s.useEffect)((()=>{void 0!==N&&M(N)}),[N]);const I=(0,s.useRef)(void 0),P=c()("components-unit-control",i),O=e=>{if(!isNaN(Number(e.currentTarget.value)))return void(I.current=void 0);const[t,n]=A_(e.currentTarget.value,S,T,R);if(I.current=t,f&&n!==R){const t={event:e,data:Array.isArray(S)?S.find((e=>e.value===n)):void 0};null==g||g(n,t),M(n)}},D=(e,t)=>{const n={...e};var r;t.type===Nv&&(void 0!==I.current&&(n.value=(null!==(r=I.current)&&void 0!==r?r:"").toString(),I.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)(V_,{"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==v||v(r,t),null==g||g(e,t),M(e)},size:b,unit:R,units:S,onBlur:E});let z=C.step;if(!z&&S){var F;const e=S.find((e=>e.value===R));z=null!==(F=null==e?void 0:e.step)&&void 0!==F?F:1}return(0,s.createElement)(Xg,{className:"components-unit-control-wrapper",style:y},(0,s.createElement)(Qg,a({type:f?"text":"number"},C,{autoComplete:r,className:P,disabled:l,disableUnits:d,isPressEnterToChange:f,label:h,onBlur:e=>{O(e),null==E||E(e)},onKeyDown:e=>{const{key:t}=e;"Enter"===t&&O(e)},onChange:(e,t)=>{if(""===e||null==e)return void(null==v||v("",t));const n=A_(e,S,T,R).join("");null==v||v(n,t)},ref:t,size:b,suffix:L,value:null!=T?T:"",step:z,__unstableStateReducer:A})))}));var $_=j_;function W_(e){const{className:t,isCompact:n,onChange:r,shouldSanitizeBorder:o=!0,value:i,width:a,__next36pxDefaultSize:l=!1,...c}=rd(e,"BorderControl"),[u,d]=D_(null==i?void 0:i.width),f=d||"px",p=0===u,[m,h]=(0,s.useState)(),[v,g]=(0,s.useState)(),b=(0,s.useCallback)((e=>{if(o)return r((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));r(e)}),[r,o]),y=(0,s.useCallback)((e=>{const t=""===e?void 0:e,[n]=D_(e),r=0===n,o={...i,width:t};r&&!p&&(h(null==i?void 0:i.color),g(null==i?void 0:i.style),o.color=void 0,o.style="none"),!r&&p&&(void 0===o.color&&(o.color=m),"none"===o.style&&(o.style=v)),b(o)}),[i,p,m,v,b]),w=(0,s.useCallback)((e=>{y(`${e}${f}`)}),[y,f]),x=nd(),_=(0,s.useMemo)((()=>x(ib,t)),[t,x]),E=n?"90px":a,C=(0,s.useMemo)((()=>{const e=!!E&&ab,t=(e=>Nf("height:",e?"36px":"30px",";",""))(l);return x(Nf(Xg,"{flex:1 1 40%;}&& ",nb,"{min-height:0;}",""),e,t)}),[E,x,l]),k=(0,s.useMemo)((()=>x(Nf("flex:1 1 60%;",uh({marginRight:xm(3)})()," ",Ng,"{margin-bottom:0;font-size:0;display:flex;}",""))),[x]);return{...c,className:_,innerWrapperClassName:C,inputWidth:E,onBorderChange:b,onSliderChange:w,onWidthChange:y,previousStyleSelection:v,sliderClassName:k,value:i,widthUnit:f,widthValue:u,__next36pxDefaultSize:l}}const U_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(bd,{as:"legend"},t):(0,s.createElement)(Mg,{as:"legend"},t):null},G_=od(((e,t)=>{const{colors:n,disableCustomColors:r,enableAlpha:o,enableStyle:i=!0,hideLabelFromVision:l,innerWrapperClassName:c,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:v,__unstablePopoverProps:g,previousStyleSelection:b,showDropdownHeader:y,sliderClassName:w,value:x,widthUnit:_,widthValue:E,withSlider:C,__experimentalHasMultipleOrigins:k,__experimentalIsRenderedInSidebar:S,__next36pxDefaultSize:T,...N}=W_(e);return(0,s.createElement)(gd,a({as:"fieldset"},N,{ref:t}),(0,s.createElement)(U_,{label:f,hideLabelFromVision:l}),(0,s.createElement)(gy,{spacing:3,className:c},(0,s.createElement)($_,{prefix:(0,s.createElement)(H_,{border:x,colors:n,__unstablePopoverProps:g,disableCustomColors:r,enableAlpha:o,enableStyle:i,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalHasMultipleOrigins:k,__experimentalIsRenderedInSidebar:S,__next36pxDefaultSize:T}),label:(0,u.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:(null==x?void 0:x.width)||"",placeholder:v,__unstableInputWidth:d}),C&&(0,s.createElement)(fy,{label:(0,u.__)("Border width"),hideLabelFromVision:!0,className:w,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:E||void 0,withInputField:!1})))}),"BorderControl");var q_=G_;const Y_={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 K_(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}=rd(e,"Grid"),h=wm(Array.isArray(i)?i:[i]),v=wm(Array.isArray(d)?d:[d]),g=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${v}, 1fr )`,y=nd();return{...m,className:(0,s.useMemo)((()=>{const e=function(e){return e?Y_[e]:{}}(n),i=Nf({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${Hm.gridBase} * ${a} )`,gridTemplateColumns:g||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,g,b,l,c,u])}}var X_=od((function(e,t){const n=K_(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"Grid");function Z_(e){const{className:t,...n}=rd(e,"BorderBoxControlSplitControls"),r=nd(),o=uh.watch(),i=(0,s.useMemo)((()=>r(Nf("position:relative;flex:1;",uh({marginRight:xm(3)},{marginLeft:xm(3)})(),";",""),t)),[r,t,o]);return{...n,centeredClassName:(0,s.useMemo)((()=>r(Vg,t)),[r,t]),className:i,rightAlignedClassName:(0,s.useMemo)((()=>r(Nf(uh({marginLeft:"auto"},{marginRight:"auto"})(),";",""),t)),[r,t,o])}}var J_=od(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:c,popoverPlacement:f,popoverOffset:p,rightAlignedClassName:m,value:h,__experimentalHasMultipleOrigins:v,__experimentalIsRenderedInSidebar:g,__next36pxDefaultSize:b,...y}=Z_(e),[w,x]=(0,s.useState)(null),_=(0,s.useMemo)((()=>f?{placement:f,offset:p,anchor:w,shift:!0}:void 0),[f,p,w]),E={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,isCompact:!0,__experimentalHasMultipleOrigins:v,__experimentalIsRenderedInSidebar:g,__next36pxDefaultSize:b},C=(0,d.useMergeRefs)([x,t]);return(0,s.createElement)(X_,a({},y,{ref:C,gap:4}),(0,s.createElement)(Ug,{value:h,__next36pxDefaultSize:b}),(0,s.createElement)(q_,a({className:n,hideLabelFromVision:!0,label:(0,u.__)("Top border"),onChange:e=>c(e,"top"),__unstablePopoverProps:_,value:null==h?void 0:h.top},E)),(0,s.createElement)(q_,a({hideLabelFromVision:!0,label:(0,u.__)("Left border"),onChange:e=>c(e,"left"),__unstablePopoverProps:_,value:null==h?void 0:h.left},E)),(0,s.createElement)(q_,a({className:m,hideLabelFromVision:!0,label:(0,u.__)("Right border"),onChange:e=>c(e,"right"),__unstablePopoverProps:_,value:null==h?void 0:h.right},E)),(0,s.createElement)(q_,a({className:n,hideLabelFromVision:!0,label:(0,u.__)("Bottom border"),onChange:e=>c(e,"bottom"),__unstablePopoverProps:_,value:null==h?void 0:h.bottom},E)))}),"BorderBoxControlSplitControls");const Q_=["top","right","bottom","left"],eE=["color","style","width"],tE=e=>!e||!eE.some((t=>void 0!==e[t])),nE=e=>{if(!e)return!1;if(rE(e)){return!Q_.every((t=>tE(e[t])))}return!tE(e)},rE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).some((e=>-1!==Q_.indexOf(e)))},oE=e=>{if(!rE(e))return!1;const t=Q_.map((t=>iE(null==e?void 0:e[t])));return!t.every((e=>e===t[0]))},iE=(e,t)=>{if(tE(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(" ")};function aE(e){const{className:t,onChange:n,value:r,...o}=rd(e,"BorderBoxControl"),i=oE(r),a=rE(r),l=a?(e=>{if(!e)return;const t=[],n=[],r=[];Q_.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]:void 0}})(r):r,c=a?r:(e=>{if(e&&!tE(e))return{top:e,right:e,bottom:e,left:e}})(r),[u,d]=(0,s.useState)(!i),f=nd(),p=(0,s.useMemo)((()=>f(Fg,t)),[f,t]),m=(0,s.useMemo)((()=>f(Bg)),[f]);return{...o,className:p,hasMixedBorders:i,isLinked:u,linkedControlClassName:m,onLinkedChange:e=>{if(!e)return n(void 0);if(!i||(e=>!!e&&eE.every((t=>void 0!==e[t])))(e))return n(tE(e)?void 0:e);const t=((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})(l,e),o={top:{...null==r?void 0:r.top,...t},right:{...null==r?void 0:r.right,...t},bottom:{...null==r?void 0:r.bottom,...t},left:{...null==r?void 0:r.left,...t}};if(oE(o))return n(o);const a=tE(o.top)?void 0:o.top;n(a)},onSplitChange:(e,t)=>{const r={...c,[t]:e};oE(r)?n(r):n(e)},toggleLinked:()=>d(!u),linkedValue:l,splitValue:c}}const sE=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(bd,{as:"label"},t):(0,s.createElement)(Mg,null,t):null},lE=od(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,hasMixedBorders:c,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:v,onLinkedChange:g,onSplitChange:b,popoverPlacement:y,popoverOffset:w,splitValue:x,toggleLinked:_,__experimentalHasMultipleOrigins:E,__experimentalIsRenderedInSidebar:C,__next36pxDefaultSize:k=!1,...S}=aE(e),[T,N]=(0,s.useState)(null),R=(0,s.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,d.useMergeRefs)([N,t]);return(0,s.createElement)(gd,a({className:n},S,{ref:M}),(0,s.createElement)(sE,{label:m,hideLabelFromVision:f}),(0,s.createElement)(gy,{alignment:"start",expanded:!0,spacing:0},p?(0,s.createElement)(q_,{className:h,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:g,placeholder:c?(0,u.__)("Mixed"):void 0,__unstablePopoverProps:R,shouldSanitizeBorder:!1,value:v,withSlider:!0,width:"110px",__experimentalHasMultipleOrigins:E,__experimentalIsRenderedInSidebar:C,__next36pxDefaultSize:k}):(0,s.createElement)(J_,{colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:x,__experimentalHasMultipleOrigins:E,__experimentalIsRenderedInSidebar:C,__next36pxDefaultSize:k}),(0,s.createElement)($g,{onClick:_,isLinked:p,__next36pxDefaultSize:k})))}),"BorderBoxControl");var cE=lE;const uE=hd("div",{target:"e7pk0lh6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),dE=hd(Em,{target:"e7pk0lh5"})({name:"5bhc30",styles:"margin-bottom:8px"}),fE=hd(Em,{target:"e7pk0lh4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),pE=hd("div",{target:"e7pk0lh3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),mE=hd(Em,{target:"e7pk0lh2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),hE=hd(Em,{target:"e7pk0lh1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var vE={name:"1ch9yvl",styles:"border-radius:0"},gE={name:"tg3mx0",styles:"border-radius:2px"};const bE=e=>{let{isFirst:t,isLast:n,isOnly:r}=e;return t?uh({borderTopRightRadius:0,borderBottomRightRadius:0})():n?uh({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?gE:vE},yE=e=>{let{isFirst:t,isOnly:n}=e;return uh({marginLeft:t||n?0:-1})()},wE=hd($_,{target:"e7pk0lh0"})("max-width:60px;",bE,";",yE,";"),xE=()=>{};function _E(e){let{isFirst:t,isLast:n,isOnly:r,onHoverOn:o=xE,onHoverOff:i=xE,label:l,value:c,...u}=e;const d=(f=e=>{let{event:t,...n}=e;n.hovering?o(t,n):i(t,n)},fv(mv),Cv({hover:f},p||{},"hover"));var f,p;return(0,s.createElement)(pE,d(),(0,s.createElement)(EE,{text:l},(0,s.createElement)(wE,a({"aria-label":l,className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:c},u))))}function EE(e){let{children:t,text:n}=e;return n?(0,s.createElement)(_f,{text:n,position:"top"},(0,s.createElement)("div",null,t)):t}const CE={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")},kE={top:void 0,right:void 0,bottom:void 0,left:void 0},SE=["top","right","bottom","left"];function TE(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function NE(){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]:SE;const r=OE(n),o=r.map((t=>D_(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=TE(a):l=null!==(c=RE(t))&&void 0!==c?c:TE(a);return[s,l].join("")}function RE(e){if(!e||"object"!=typeof e)return;return TE(Object.values(e).filter(Boolean))}function ME(){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]:SE;const r=NE(e,t,n),o=isNaN(parseFloat(r));return o}function IE(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function PE(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function OE(e){const t=[];if(null==e||!e.length)return SE;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=SE.filter((t=>e.includes(t)));t.push(...n)}return t}function DE(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})):SE.forEach((e=>r[e]=t)),r}const AE=()=>{};function LE(e){let{onChange:t=AE,onFocus:n=AE,onHoverOn:r=AE,onHoverOff:o=AE,values:i,sides:l,selectedUnits:c,setSelectedUnits:u,...d}=e;const f=NE(i,c,l),p=IE(i)&&ME(i,c,l),m=p?CE.mixed:null;return(0,s.createElement)(_E,a({},d,{disableUnits:p,isOnly:!0,value:f,onChange:e=>{const n=!isNaN(parseFloat(e)),r=DE(i,n?e:void 0,l);t(r)},onUnitChange:e=>{const t=DE(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 zE=()=>{};function FE(e){let{onChange:t=zE,onFocus:n=zE,onHoverOn:r=zE,onHoverOff:o=zE,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)},v=e=>t=>{const n={...l};n[e]=t,c(n)},g=null!=u&&u.length?SE.filter((e=>u.includes(e))):SE,b=g[0],y=g[g.length-1],w=b===y&&b;return(0,s.createElement)(mE,{className:"component-box-control__input-controls-wrapper"},(0,s.createElement)(hE,{gap:0,align:"top",className:"component-box-control__input-controls"},g.map((e=>{const[t,n]=D_(i[e]),r=i[e]?n:l[e];return(0,s.createElement)(_E,a({},d,{isFirst:b===e,isLast:y===e,isOnly:w===e,value:[t,r].join(""),onChange:h(e),onUnitChange:v(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:m(e),label:CE[e],key:`box-control-${e}`}))}))))}const BE=["vertical","horizontal"];function HE(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)},v=e=>t=>{const n={...l};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),c(n)},g=null!=u&&u.length?BE.filter((e=>u.includes(e))):BE,b=g[0],y=g[g.length-1],w=b===y&&b;return(0,s.createElement)(hE,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},g.map((e=>{const[t,n]=D_("vertical"===e?i.top:i.left),r="vertical"===e?l.top:l.left;return(0,s.createElement)(_E,a({},d,{isFirst:b===e,isLast:y===e,isOnly:w===e,value:[t,null!=r?r:n].join(""),onChange:h(e),onUnitChange:v(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:m(e),label:CE[e],key:e}))})))}const VE=hd("span",{target:"eaw9yqk8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),jE=hd("span",{target:"eaw9yqk7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),$E=hd("span",{target:"eaw9yqk6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(e=>{let{isFocused:t}=e;return Nf({backgroundColor:"currentColor",opacity:t?1:.3},"","")}),";"),WE=hd($E,{target:"eaw9yqk5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),UE=hd($E,{target:"eaw9yqk4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),GE=hd(UE,{target:"eaw9yqk3"})({name:"abcix4",styles:"top:0"}),qE=hd(WE,{target:"eaw9yqk2"})({name:"1wf8jf",styles:"right:0"}),YE=hd(UE,{target:"eaw9yqk1"})({name:"8tapst",styles:"bottom:0"}),KE=hd(WE,{target:"eaw9yqk0"})({name:"1ode3cm",styles:"left:0"});function XE(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)(VE,a({style:{transform:`scale(${f})`}},o),(0,s.createElement)(jE,null,(0,s.createElement)(GE,{isFocused:l}),(0,s.createElement)(qE,{isFocused:c}),(0,s.createElement)(YE,{isFocused:u}),(0,s.createElement)(KE,{isFocused:d})))}function ZE(e){let{isLinked:t,...n}=e;const r=t?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(_f,{text:r},(0,s.createElement)("span",null,(0,s.createElement)(wd,a({},n,{className:"component-box-control__linked-button",isSmall:!0,icon:t?Lg:zg,iconSize:24,"aria-label":r}))))}const JE={min:0},QE=()=>{};function eC(e){let{id:t,inputProps:n=JE,onChange:r=QE,label:o=(0,u.__)("Box Control"),values:i,units:l,sides:c,splitOnAxis:f=!1,allowReset:p=!0,resetValues:m=kE}=e;const[h,v]=Ob(i,{fallback:kE}),g=h||kE,b=IE(i),y=1===(null==c?void 0:c.length),[w,x]=(0,s.useState)(b),[_,E]=(0,s.useState)(!b||!ME(g)||y),[C,k]=(0,s.useState)(PE(_,f)),[S,T]=(0,s.useState)({top:D_(null==i?void 0:i.top)[1],right:D_(null==i?void 0:i.right)[1],bottom:D_(null==i?void 0:i.bottom)[1],left:D_(null==i?void 0:i.left)[1]}),N=function(e){const t=(0,d.useInstanceId)(eC,"inspector-box-control");return e||t}(t),R=`${N}-heading`,M={...n,onChange:e=>{r(e),v(e),x(!0)},onFocus:(e,t)=>{let{side:n}=t;k(n)},isLinked:_,units:l,selectedUnits:S,setSelectedUnits:T,sides:c,values:g};return(0,s.createElement)(uE,{id:N,role:"group","aria-labelledby":R},(0,s.createElement)(dE,{className:"component-box-control__header"},(0,s.createElement)(gm,null,(0,s.createElement)(Dg.VisualLabel,{id:R},o)),p&&(0,s.createElement)(gm,null,(0,s.createElement)(wd,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:()=>{r(m),v(m),T(m),x(!1)},disabled:!w},(0,u.__)("Reset")))),(0,s.createElement)(fE,{className:"component-box-control__header-control-wrapper"},(0,s.createElement)(gm,null,(0,s.createElement)(XE,{side:C,sides:c})),_&&(0,s.createElement)(vm,null,(0,s.createElement)(LE,a({"aria-label":o},M))),!_&&f&&(0,s.createElement)(vm,null,(0,s.createElement)(HE,M)),!y&&(0,s.createElement)(gm,null,(0,s.createElement)(ZE,{onClick:()=>{E(!_),k(PE(!_,f))},isLinked:_}))),!_&&!f&&(0,s.createElement)(FE,M))}var tC=(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 nC={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function rC(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const oC=od((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}=rd(e,"Elevation"),d=nd();return{...u,className:(0,s.useMemo)((()=>{let e=km(i)?i:2*c,s=km(t)?t:c/2;a||(e=km(i)?i:void 0,s=km(t)?t:void 0);const u=`box-shadow ${Hm.transitionDuration} ${Hm.transitionTimingFunction}`,f={};return f.Base=Nf({borderRadius:n,bottom:l,boxShadow:rC(c),opacity:Hm.elevationIntensity,left:l,right:l,top:l,transition:u},up("transition"),"",""),km(e)&&(f.hover=Nf("*:hover>&{box-shadow:",rC(e),";}","")),km(s)&&(f.active=Nf("*:active>&{box-shadow:",rC(s),";}","")),km(o)&&(f.focus=Nf("*:focus>&{box-shadow:",rC(o),";}","")),d(nC,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)(gd,a({},n,{ref:t}))}),"Elevation");var iC=oC;const aC=`calc(${Hm.cardBorderRadius} - 1px)`,sC=Nf("box-shadow:0 0 0 1px ",Hm.surfaceBorderColor,";outline:none;",""),lC={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},cC={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},uC={name:"13udsys",styles:"height:100%"},dC={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},fC={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},pC={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},mC=Nf("&:first-of-type{border-top-left-radius:",aC,";border-top-right-radius:",aC,";}&:last-of-type{border-bottom-left-radius:",aC,";border-bottom-right-radius:",aC,";}",""),hC=Nf("border-color:",Hm.colorDivider,";",""),vC={name:"1t90u8d",styles:"box-shadow:none"},gC={name:"1e1ncky",styles:"border:none"},bC=Nf("border-radius:",aC,";",""),yC=Nf("padding:",Hm.cardPaddingXSmall,";",""),wC={large:Nf("padding:",Hm.cardPaddingLarge,";",""),medium:Nf("padding:",Hm.cardPaddingMedium,";",""),small:Nf("padding:",Hm.cardPaddingSmall,";",""),xSmall:yC,extraSmall:yC},xC=Nf("background-color:",cp.ui.backgroundDisabled,";",""),_C=Nf("background-color:",Hm.surfaceColor,";color:",cp.gray[900],";position:relative;","");Hm.surfaceBackgroundColor;function EC(e){let{borderBottom:t,borderLeft:n,borderRight:r,borderTop:o}=e;const i=`1px solid ${Hm.surfaceBorderColor}`;return Nf({borderBottom:t?i:void 0,borderLeft:n?i:void 0,borderRight:r?i:void 0,borderTop:o?i:void 0},"","")}const CC=Nf("",""),kC=Nf("background:",Hm.surfaceBackgroundTintColor,";",""),SC=Nf("background:",Hm.surfaceBackgroundTertiaryColor,";",""),TC=e=>[e,e].join(" "),NC=e=>["90deg",[Hm.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),RC=e=>[[Hm.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),MC=(e,t)=>Nf("background:",(e=>[`linear-gradient( ${NC(e)} ) center`,`linear-gradient( ${RC(e)} ) center`,Hm.surfaceBorderBoldColor].join(","))(t),";background-size:",TC(e),";",""),IC=[`linear-gradient( ${[`${Hm.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Hm.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),PC=(e,t,n)=>{switch(e){case"dotted":return MC(t,n);case"grid":return(e=>Nf("background:",Hm.surfaceBackgroundColor,";background-image:",IC,";background-size:",TC(e),";",""))(t);case"primary":return CC;case"secondary":return kC;case"tertiary":return SC}};function OC(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:a,variant:l="primary",...c}=rd(e,"Surface"),u=nd();return{...c,className:(0,s.useMemo)((()=>{const e={borders:EC({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(_C,e.borders,PC(l,`${t}px`,t-1+"px"),a)}),[t,n,r,o,i,a,u,l])}}function DC(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...a}=rd(function(e){let{elevation:t,isElevated:n,...r}=e;const o={...r};let i=t;var a;return n&&(hc()("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=nd();return{...OC({...a,className:(0,s.useMemo)((()=>l(sC,r&&vC,o&&bC,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const AC=od((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:l,...c}=DC(e),u=i?Hm.cardBorderRadius:0,d=nd(),f=(0,s.useMemo)((()=>d(Nf({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)(_c,{value:p},(0,s.createElement)(gd,a({},c,{ref:t}),(0,s.createElement)(gd,{className:d(uC)},n),(0,s.createElement)(iC,{className:f,isInteractive:!1,value:r?1:0}),(0,s.createElement)(iC,{className:f,isInteractive:!1,value:r})))}),"Card");var LC=AC;const zC=Nf("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Hm.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Hm.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Hm.colorScrollbarThumbHover,";}}",""),FC={name:"13udsys",styles:"height:100%"},BC={name:"7zq9w",styles:"scroll-behavior:smooth"},HC={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},VC={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},jC={name:"umwchj",styles:"overflow-y:auto"};var $C=od((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=rd(e,"Scrollable"),i=nd();return{...o,className:(0,s.useMemo)((()=>i(FC,zC,r&&BC,"x"===n&&HC,"y"===n&&VC,"auto"===n&&jC,t)),[t,i,n,r])}}(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"Scrollable");const WC=od((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=rd(e,"CardBody"),a=nd();return{...i,className:(0,s.useMemo)((()=>a(dC,mC,wC[o],r&&xC,"components-card__body",t)),[t,a,r,o]),isScrollable:n}}(e);return n?(0,s.createElement)($C,a({},r,{ref:t})):(0,s.createElement)(gd,a({},r,{ref:t}))}),"CardBody");var UC=WC,GC=B({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)}}),qC=z({as:"hr",memo:!0,useHook:GC});const YC={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var KC={name:"1u4hpl4",styles:"display:inline"};const XC=hd("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?KC:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return Nf({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return Nf({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:n,marginStart:r,marginEnd:o}=e;return Nf(uh({[YC[t].start]:xm(null!=r?r:n),[YC[t].end]:xm(null!=o?o:n)})(),"","")}),";");var ZC=od((function(e,t){const n=rd(e,"Divider");return(0,s.createElement)(qC,a({as:XC},n,{ref:t}))}),"Divider");var JC=od((function(e,t){const n=function(e){const{className:t,...n}=rd(e,"CardDivider"),r=nd();return{...n,className:(0,s.useMemo)((()=>r(pC,hC,"components-card__divider",t)),[t,r])}}(e);return(0,s.createElement)(ZC,a({},n,{ref:t}))}),"CardDivider");const QC=od((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...a}=rd(e,"CardFooter"),l=nd();return{...a,className:(0,s.useMemo)((()=>l(cC,mC,hC,wC[i],r&&gC,o&&xC,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,s.createElement)(Em,a({},n,{ref:t}))}),"CardFooter");var ek=QC;const tk=od((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=rd(e,"CardHeader"),a=nd();return{...i,className:(0,s.useMemo)((()=>a(lC,mC,hC,wC[o],n&&gC,r&&xC,"components-card__header",t)),[t,a,n,r,o])}}(e);return(0,s.createElement)(Em,a({},n,{ref:t}))}),"CardHeader");var nk=tk;var rk=od((function(e,t){const n=function(e){const{className:t,...n}=rd(e,"CardMedia"),r=nd();return{...n,className:(0,s.useMemo)((()=>r(fC,mC,"components-card__media",t)),[t,r])}}(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"CardMedia");var ok=(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"}));var ik=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:l,indeterminate:u,help:f,onChange:p,...m}=t;i&&hc()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,v]=(0,s.useState)(!1),[g,b]=(0,s.useState)(!1),y=(0,d.useRefEffect)((e=>{e&&(e.indeterminate=!!u,v(e.matches(":checked")),b(e.matches(":indeterminate")))}),[l,u]),w=`inspector-checkbox-control-${(0,d.useInstanceId)(e)}`;return(0,s.createElement)(Ag,{__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)),g?(0,s.createElement)(Sb,{icon:ok,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,s.createElement)(Sb,{icon:m_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};function ak(e){let{className:t,children:n,onCopy:r,onFinishCopy:o,text:i,...l}=e;hc()("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)(wd,a({},l,{className:p,ref:f,onCopy:e=>{e.target.focus()}}),n)}var sk=(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 lk=(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 ck=Nf("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:left;&:hover{color:",cp.ui.theme,";}&:focus{background-color:transparent;color:",cp.ui.theme,";border-color:",cp.ui.theme,";outline:3px solid transparent;}",""),uk={name:"1bcj5ek",styles:"width:100%;display:block"},dk={name:"a5hqs6",styles:"width:100%;display:block;margin:0;color:inherit"},fk=Nf("border:1px solid ",Hm.surfaceBorderColor,";",""),pk=Nf(">*:not( marquee )>*{border-bottom:1px solid ",Hm.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),mk=Hm.controlBorderRadius,hk=Nf("border-radius:",mk,";",""),vk=Nf("border-radius:",mk,";>*:first-of-type>*{border-top-left-radius:",mk,";border-top-right-radius:",mk,";}>*:last-of-type>*{border-bottom-left-radius:",mk,";border-bottom-right-radius:",mk,";}",""),gk=`calc(${Hm.fontSize} * ${Hm.fontLineHeightBase})`,bk=`calc((${Hm.controlHeight} - ${gk} - 2px) / 2)`,yk=`calc((${Hm.controlHeightSmall} - ${gk} - 2px) / 2)`,wk=`calc((${Hm.controlHeightLarge} - ${gk} - 2px) / 2)`,xk={small:Nf("padding:",yk," ",Hm.controlPaddingXSmall,";",""),medium:Nf("padding:",bk," ",Hm.controlPaddingX,";",""),large:Nf("padding:",wk," ",Hm.controlPaddingXLarge,";","")};const _k=(0,s.createContext)({size:"medium"}),Ek=()=>(0,s.useContext)(_k);var Ck=od((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}=rd(e,"ItemGroup");return{isBordered:n,className:nd()(n&&fk,o&&pk,r&&vk,t),role:i,isSeparated:o,...a}}(e),{size:l}=Ek(),c={spacedAround:!n&&!r,size:o||l};return(0,s.createElement)(_k.Provider,{value:c},(0,s.createElement)(gd,a({},i,{ref:t})))}),"ItemGroup");function kk(e){return Math.max(0,Math.min(100,e))}function Sk(e,t,n){const r=e.slice();return r[t]=n,r}function Tk(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 Sk(e,t,{...e[t],position:n})}function Nk(e,t,n){return Sk(e,t,{...e[t],color:n})}function Rk(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(kk(100*o/r))}function Mk(e){let{isOpen:t,position:n,color:r,...o}=e;const i=`components-custom-gradient-picker__control-point-button-description-${(0,d.useInstanceId)(Mk)}`;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(wd,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)(bd,{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 Ik(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)(C_,a({isRenderedInSidebar:t,popoverProps:o,className:i},r))}function Pk(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=Rk(e.clientX,r.current),{initialPosition:n,index:o,significantMoveHappened:s}=f.current;!s&&Math.abs(n-t)>=5&&(f.current.significantMoveHappened=!0),a(Tk(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)(Ik,{isRenderedInSidebar:d,key:r,onClose:c,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return(0,s.createElement)(Mk,{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(Tk(i,r,kk(e.position-10)))):"ArrowRight"===t.code&&(t.stopPropagation(),a(Tk(i,r,kk(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)(p_,{enableAlpha:!n,color:e.color,onChange:e=>{a(Nk(i,r,tp(e).toRgbString()))}}),!t&&i.length>2&&(0,s.createElement)(gy,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,s.createElement)(wd,{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% )"}})}))}Pk.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)(Ik,{isRenderedInSidebar:l,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(wd,{"aria-expanded":t,"aria-haspopup":"true",onClick:()=>{t?o():(u(!1),r()),n()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:sk})},renderContent:()=>(0,s.createElement)(p_,{enableAlpha:!a,onChange:e=>{c?n(function(e,t,n){const r=e.findIndex((e=>e.position===t));return Nk(e,r,n)}(t,i,tp(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,tp(e).toRgbString())),u(!0))}}),style:null!==i?{left:`${i}%`,transform:"translateX( -50% )"}:void 0})};var Ok=Pk;function Dk(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 Ak={id:"IDLE"};function Lk(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)(Dk,Ak),p=e=>{const t=Rk(e.clientX,u.current);(0,bc.some)(r,(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)(Ok.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)(Ok,{__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 zk=n(7115);const Fk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Bk={type:"angular",value:90},Hk=[{value:"linear-gradient",label:(0,u.__)("Linear")},{value:"radial-gradient",label:(0,u.__)("Radial")}],Vk={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 jk(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 $k(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(jk)].filter(Boolean).join(",")})`}function Wk(e){return void 0===e.length||"%"!==e.length.type}function Uk(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"}}rp([op]);const Gk=hd(vm,{target:"e99xvul1"})({name:"1gvx10y",styles:"flex-grow:5"}),qk=hd(vm,{target:"e99xvul0"})({name:"1gvx10y",styles:"flex-grow:5"}),Yk=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)(dg,{__nextHasNoMarginBottom:!0,onChange:e=>{i($k({...r,orientation:{type:"angular",value:e}}))},labelPosition:"top",value:o?a:""})},Kk=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const{type:o}=t;return(0,s.createElement)(Ib,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,u.__)("Type"),labelPosition:"top",onChange:e=>{"linear-gradient"===e&&r($k({...t,...t.orientation?{}:{orientation:Bk},type:"linear-gradient"})),"radial-gradient"===e&&(()=>{const{orientation:e,...n}=t;r($k({...n,type:"radial-gradient"}))})()},options:Hk,size:"__unstable-large",value:n&&o})};function Xk(e){let{__nextHasNoMargin:t=!1,value:n,onChange:r,__experimentalIsRenderedInSidebar:o}=e;const i=function(e){var t;let n;try{n=zk.parse(e)[0],n.value=e}catch(e){n=zk.parse(Fk)[0],n.value=Fk}if("directional"===(null===(t=n.orientation)||void 0===t?void 0:t.type)&&(n.orientation.type="angular",n.orientation.value=Vk[n.orientation.value].toString()),n.colorStops.some(Wk)){const{colorStops:e}=n,t=100/(e.length-1);e.forEach(((e,n)=>{e.length={value:t*n,type:"%"}})),n.value=$k(n)}return n}(n),a=function(e){return $k({type:"linear-gradient",orientation:Bk,colorStops:e.colorStops})}(i),l=i.value!==Fk,u=i.colorStops.map((e=>({color:Uk(e),position:parseInt(e.length.value)})));return t||hc()("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)(v_,{spacing:4,className:c()("components-custom-gradient-picker",{"is-next-has-no-margin":t})},(0,s.createElement)(Lk,{__experimentalIsRenderedInSidebar:o,background:a,hasGradient:l,value:u,onChange:e=>{r($k(function(e,t){return{...e,colorStops:t.map((e=>{let{position:t,color:n}=e;const{r:r,g:o,b:i,a:a}=tp(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)(Em,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,s.createElement)(Gk,null,(0,s.createElement)(Kk,{gradientAST:i,hasGradient:l,onChange:r})),(0,s.createElement)(qk,null,"linear-gradient"===i.type&&(0,s.createElement)(Yk,{gradientAST:i,hasGradient:l,onChange:r}))))}function Zk(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:i,actions:a}=e;const l=(0,s.useMemo)((()=>(0,bc.map)(r,(e=>{let{gradient:t,name:r}=e;return(0,s.createElement)(h_.Option,{key:t,value:t,isSelected:i===t,tooltipText:r||(0,u.sprintf)((0,u.__)("Gradient code: %s"),t),style:{color:"rgba( 0,0,0,0 )",background:t},onClick:i===t?n:()=>o(t),"aria-label":r?(0,u.sprintf)((0,u.__)("Gradient: %s"),r):(0,u.sprintf)((0,u.__)("Gradient code: %s"),t)})}))),[r,i,o,n]);return(0,s.createElement)(h_,{className:t,options:l,actions:a})}function Jk(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:i,actions:l}=e;return(0,s.createElement)(v_,{spacing:3,className:t},r.map(((e,t)=>{let{name:c,gradients:u}=e;return(0,s.createElement)(v_,{spacing:2,key:t},(0,s.createElement)(y_,null,c),(0,s.createElement)(Zk,a({clearGradient:n,gradients:u,onChange:o,value:i},r.length===t+1?{actions:l}:{})))})))}function Qk(e){let{__nextHasNoMargin:t=!1,className:n,gradients:r,onChange:o,value:i,clearable:l=!0,disableCustomGradients:c=!1,__experimentalHasMultipleOrigins:d,__experimentalIsRenderedInSidebar:f}=e;const p=(0,s.useCallback)((()=>o(void 0)),[o]),m=d&&null!=r&&r.length?Jk:Zk;t||hc()("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 h=t?{}:{marginTop:null!=r&&r.length?void 0:3,marginBottom:l?0:6};return(0,s.createElement)(ug,a({marginBottom:0},h),(0,s.createElement)(v_,{spacing:null!=r&&r.length?4:0},!c&&(0,s.createElement)(Xk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:f,value:i,onChange:o}),((null==r?void 0:r.length)||l)&&(0,s.createElement)(m,{className:n,clearable:l,clearGradient:p,gradients:r,onChange:o,value:i,actions:l&&!c&&(0,s.createElement)(h_.ButtonAction,{onClick:p},(0,u.__)("Clear"))})))}var eS=(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"})),tS=window.wp.dom;const nS=()=>{},rS=["menuitem","menuitemradio","menuitemcheckbox"];class oS 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?tS.focus.tabbable:tS.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=nS,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target.getAttribute("role"),n=rS.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 iS=(e,t)=>(0,s.createElement)(oS,a({},e,{forwardedRef:t}));iS.displayName="NavigableContainer";var aS=(0,s.forwardRef)(iS);var sS=(0,s.forwardRef)((function(e,t){let{role:n="menu",orientation:r="vertical",...o}=e;return(0,s.createElement)(aS,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 lS(){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 cS(e){return"function"==typeof e}var uS=function(e){const{children:t,className:n,controls:r,icon:o=eS,label:i,popoverProps:l,toggleProps:u,menuProps:d,disableOpenOnArrowDown:f=!1,text:p,noIcons:m}=e;if(!(null!=r&&r.length||cS(t)))return null;let h;null!=r&&r.length&&(h=r,Array.isArray(h[0])||(h=[h]));const v=lS({className:"components-dropdown-menu__popover"},l);return(0,s.createElement)(xb,{className:c()("components-dropdown-menu",n),popoverProps:v,renderToggle:e=>{var t;let{isOpen:n,onToggle:r}=e;const l=lS({className:c()("components-dropdown-menu__toggle",{"is-opened":n})},u);return(0,s.createElement)(wd,a({},l,{icon:o,onClick:e=>{r(e),l.onClick&&l.onClick(e)},onKeyDown:e=>{(e=>{f||n||"ArrowDown"!==e.code||(e.preventDefault(),r())})(e),l.onKeyDown&&l.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}),l.children)},renderContent:e=>{var n;const r=lS({"aria-label":i,className:c()("components-dropdown-menu__menu",{"no-icons":m})},d);return(0,s.createElement)(sS,a({},r,{role:"menu"}),cS(t)?t(e):null,null===(n=h)||void 0===n?void 0:n.flatMap(((t,n)=>t.map(((t,r)=>(0,s.createElement)(wd,{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 dS=hd(h_.Option,{target:"e5bw3229"})("width:",xm(6),";height:",xm(6),";pointer-events:none;"),fS=hd(Uv,{target:"e5bw3228"})(hh,"{background:",cp.gray[100],";border-radius:",Hm.controlBorderRadius,";",gh,gh,gh,gh,"{height:",xm(8),";}",xh,xh,xh,"{border-color:transparent;box-shadow:none;}}"),pS=hd(gd,{target:"e5bw3227"})("padding:3px 0 3px ",xm(3),";height:calc( 40px - ",Hm.borderWidth," );border:1px solid ",Hm.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",Hm.controlBorderRadius,";border-top-right-radius:",Hm.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Hm.controlBorderRadius,";border-bottom-right-radius:",Hm.controlBorderRadius,";border-bottom-color:",Hm.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",cp.ui.theme,";}"),mS=hd("div",{target:"e5bw3226"})("line-height:",xm(8),";margin-left:",xm(2),";margin-right:",xm(2),";white-space:nowrap;overflow:hidden;",pS,":hover &{color:",cp.ui.theme,";}"),hS=hd(b_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",xm(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),vS=hd(gd,{target:"e5bw3224"})("height:",xm(6),";display:flex;"),gS=hd(gy,{target:"e5bw3223"})("margin-bottom:",xm(2),";"),bS=hd(gd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),yS=hd(wd,{target:"e5bw3221"})("&&{color:",cp.ui.theme,";}"),wS=hd(wd,{target:"e5bw3220"})("&&{margin-top:",xm(1),";}"),xS="#000";function _S(e){let{value:t,onChange:n,label:r}=e;return(0,s.createElement)(fS,{label:r,hideLabelFromVision:!0,value:t,onChange:n})}function ES(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)(pS,a({className:o?"is-selected":void 0,as:"div",onClick:i},o?{...m}:{style:{cursor:"pointer"}}),(0,s.createElement)(gy,{justify:"flex-start"},(0,s.createElement)(gm,null,(0,s.createElement)(dS,{style:{background:h,color:"transparent"}})),(0,s.createElement)(gm,null,o&&!t?(0,s.createElement)(_S,{label:p?(0,u.__)("Gradient name"):(0,u.__)("Color name"),value:n.name,onChange:e=>r({...n,name:e,slug:f+(0,bc.kebabCase)(e)})}):(0,s.createElement)(mS,null,n.name)),o&&!t&&(0,s.createElement)(gm,null,(0,s.createElement)(wS,{isSmall:!0,icon:qg,label:(0,u.__)("Remove color"),onClick:l}))),o&&(0,s.createElement)(hf,{placement:"left-start",offset:20,className:"components-palette-edit__popover"},!p&&(0,s.createElement)(p_,{color:h,enableAlpha:!0,onChange:e=>r({...n,color:e})}),p&&(0,s.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,s.createElement)(Xk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:h,onChange:e=>r({...n,gradient:e})}))))}function CS(e,t){let{slug:n,color:r,gradient:o}=t;return new RegExp(`^${e}color-([\\d]+)$`).test(n)&&(!!r&&r===xS||!!o&&o===Fk)}function kS(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)=>CS(a,e)))){const e=c.current.filter((e=>!CS(a,e)));n(e.length?e:void 0)}}),[]);const u=(0,d.useDebounce)(n,100);return(0,s.createElement)(v_,{spacing:3},(0,s.createElement)(Ck,{isRounded:!0},t.map(((e,c)=>(0,s.createElement)(ES,{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 SS=[];function TS(e){let{gradients:t,colors:n=SS,onChange:r,paletteLabel:o,emptyMessage:i,canOnlyChangeValues:a,canReset:l,slugPrefix:c=""}=e;const d=!!t,f=d?t:n,[p,m]=(0,s.useState)(!1),[h,v]=(0,s.useState)(null),g=p&&h&&f[h]&&!f[h].slug,b=f.length>0;return(0,s.createElement)(bS,null,(0,s.createElement)(gS,null,(0,s.createElement)(hS,null,o),(0,s.createElement)(vS,null,p&&(0,s.createElement)(yS,{isSmall:!0,onClick:()=>{m(!1),v(null)}},(0,u.__)("Done")),!a&&(0,s.createElement)(wd,{isSmall:!0,isPressed:g,icon:sk,label:d?(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)}(f,c);r([...f,{...d?{gradient:Fk}:{color:xS},name:e,slug:c+(0,bc.kebabCase)(e)}]),m(!0),v(f.length)}}),b&&(!p||!a||l)&&(0,s.createElement)(uS,{icon:lk,label:d?(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)(sS,{role:"menu"},!p&&(0,s.createElement)(wd,{variant:"tertiary",onClick:()=>{m(!0),t()},className:"components-palette-edit__menu-button"},d?(0,u.__)("Edit gradients"):(0,u.__)("Edit colors")),!a&&(0,s.createElement)(wd,{variant:"tertiary",onClick:()=>{v(null),m(!1),r(),t()},className:"components-palette-edit__menu-button"},d?(0,u.__)("Remove all gradients"):(0,u.__)("Remove all colors")),l&&(0,s.createElement)(wd,{variant:"tertiary",onClick:()=>{v(null),r(),t()}},d?(0,u.__)("Reset gradient"):(0,u.__)("Reset colors"))))})))),b&&(0,s.createElement)(s.Fragment,null,p&&(0,s.createElement)(kS,{canOnlyChangeValues:a,elements:f,onChange:r,editingElement:h,setEditingElement:v,slugPrefix:c,isGradient:d}),!p&&(d?(0,s.createElement)(Qk,{__nextHasNoMargin:!0,gradients:t,onChange:()=>{},clearable:!1,disableCustomGradients:!0}):(0,s.createElement)(S_,{colors:n,onChange:()=>{},clearable:!1,disableCustomColors:!0}))),!b&&i)}const NS=e=>{let{__next36pxDefaultSize:t}=e;return!t&&Nf("height:28px;padding-left:",xm(1),";padding-right:",xm(1),";","")},RS=hd(Em,{target:"evuatpg0"})("height:34px;padding-left:",xm(2),";padding-right:",xm(2),";",NS,";");const MS=(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),v=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:v,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 IS=MS,PS=n(5425),OS=n.n(PS);const DS=e=>{e.preventDefault()};var AS=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),OS()(e.children[t],e,{onlyScrollIfNeeded:!0}),r=window.setTimeout((()=>{m(!1)}),100)),()=>{void 0!==r&&window.clearTimeout(r)}}),[t,n]),v=e=>()=>{p||null==o||o(e)},g=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:DS,onClick:g(e),onMouseEnter:v(e),"aria-selected":n===t},a)})))},LS=(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 zS=()=>{},FS=LS(class extends s.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}});var BS=function e(t){var n;let{__nextHasNoMarginBottom:r=!1,__next36pxDefaultSize:o,value:i,label:a,options:l,onChange:f,onFilterValueChange:p=zS,hideLabelFromVision:m,help:h,allowReset:v=!0,className:g,messages:b={selected:(0,u.__)("Item selected.")},__experimentalRenderItem:y}=t;const[w,x]=s_({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,M]=(0,s.useState)(!1),[I,P]=(0,s.useState)(""),O=(0,s.useRef)(),D=(0,s.useMemo)((()=>{const e=[],t=[],n=bg(I);return l.forEach((r=>{const o=bg(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,l]),A=e=>{x(e.value),(0,vg.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,vg.speak)(t,"polite")}}),[D,T]),(0,s.createElement)(FS,{onFocusOutside:()=>{N(!1)}},(0,s.createElement)(Ag,{__nextHasNoMarginBottom:r,className:c()(g,"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){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)(RS,{__next36pxDefaultSize:o},(0,s.createElement)(vm,null,(0,s.createElement)(IS,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:E,onFocus:()=>{M(!0),N(!0),p(""),P("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:D.indexOf(k),onChange:e=>{const t=e.value;P(t),p(t),R&&N(!0)}})),v&&(0,s.createElement)(gm,null,(0,s.createElement)(wd,{className:"components-combobox-control__reset",icon:Gg,disabled:!w,onClick:()=>{x(null),O.current.focus()},label:(0,u.__)("Reset")}))),T&&(0,s.createElement)(AS,{instanceId:C,match:{label:I},displayTransform:e=>e.label,suggestions:D,selectedIndex:D.indexOf(k),onHover:S,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const HS=new Set(["alert","status","log","marquee","timer"]);let VS=[],jS=!1;function $S(e){if(jS)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")||HS.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),VS.push(t))})),jS=!0}let WS=0;var US=(0,s.forwardRef)((function e(t,n){const{bodyOpenClassName:r="modal-open",role:o="dialog",title:i=null,focusOnMount:l=!0,shouldCloseOnEsc:f=!0,shouldCloseOnClickOutside:p=!0,isDismissible:m=!0,aria:h={labelledby:null,describedby:null},onRequestClose:v,icon:g,closeButtonLabel:b,children:y,style:w,overlayClassName:x,className:_,contentLabel:E,onKeyDown:C,isFullScreen:k=!1,__experimentalHideHeader:S=!1}=t,T=(0,s.useRef)(),N=(0,d.useInstanceId)(e),R=i?`components-modal-header-${N}`:h.labelledby,M=(0,d.useFocusOnMount)(l),I=(0,d.useConstrainedTabbing)(),P=(0,d.useFocusReturn)(),O=(0,d.__experimentalUseFocusOutside)(v),[D,A]=(0,s.useState)(!1);(0,s.useEffect)((()=>(WS++,1===WS&&($S(T.current),document.body.classList.add(r)),()=>{WS--,0===WS&&(document.body.classList.remove(r),jS&&(VS.forEach((e=>{e.removeAttribute("aria-hidden")})),VS=[],jS=!1))})),[r]);const L=(0,s.useCallback)((e=>{var t,n;const r=null!==(t=null==e||null===(n=e.target)||void 0===n?void 0:n.scrollTop)&&void 0!==t?t:-1;!D&&r>0?A(!0):D&&r<=0&&A(!1)}),[D]);return(0,s.createPortal)((0,s.createElement)("div",{ref:(0,d.useMergeRefs)([T,n]),className:c()("components-modal__screen-overlay",x),onKeyDown:function(e){f&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),v&&v(e))}},(0,s.createElement)(Ud,{document:document},(0,s.createElement)("div",a({className:c()("components-modal__frame",_,{"is-full-screen":k}),style:w,ref:(0,d.useMergeRefs)([I,P,M]),role:o,"aria-label":E,"aria-labelledby":E?null:R,"aria-describedby":h.describedby,tabIndex:"-1"},p?O:{},{onKeyDown:C}),(0,s.createElement)("div",{className:c()("components-modal__content",{"hide-header":S,"has-scrolled-content":D}),role:"document",onScroll:L},!S&&(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),i&&(0,s.createElement)("h1",{id:R,className:"components-modal__header-heading"},i)),m&&(0,s.createElement)(wd,{onClick:v,icon:pc,label:b||(0,u.__)("Close dialog")})),y)))),document.body)}));const GS={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var qS=od((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:l,cancelButtonText:c,...d}=rd(e,"ConfirmDialog"),f=nd()(GS),[p,m]=(0,s.useState)(),[h,v]=(0,s.useState)();(0,s.useEffect)((()=>{const e=void 0!==n;m(!e||n),v(!e)}),[n]);const g=(0,s.useCallback)((e=>t=>{null==e||e(t),h&&m(!1)}),[h,m]),b=(0,s.useCallback)((e=>{"Enter"===e.key&&g(r)(e)}),[g,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)(US,a({onRequestClose:g(o),onKeyDown:b,closeButtonLabel:y,isDismissible:!0,ref:t,overlayClassName:f,__experimentalHideHeader:!0},d),(0,s.createElement)(v_,{spacing:8},(0,s.createElement)(nh,null,i),(0,s.createElement)(Em,{direction:"row",justify:"flex-end"},(0,s.createElement)(wd,{variant:"tertiary",onClick:g(o)},y),(0,s.createElement)(wd,{variant:"primary",onClick:g(r)},w)))))}),"ConfirmDialog"),YS=n(2652),KS=n.n(YS);n(2797);function XS(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function ZS(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function JS(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ZS(n.overflowY,t)||ZS(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 QS(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let eT=0;function tT(){}function nT(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(!XS(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;XS(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&&JS(p)&&!JS(document.documentElement)||null!=p&&JS(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,g=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],M=R.getBoundingClientRect(),I=M.height,P=M.width,O=M.top,D=M.right,A=M.bottom,L=M.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),F=parseInt(z.borderLeftWidth,10),B=parseInt(z.borderTopWidth,10),H=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),j=0,$=0,W="offsetWidth"in R?R.offsetWidth-R.clientWidth-F-H:0,U="offsetHeight"in R?R.offsetHeight-R.clientHeight-B-V:0,G="offsetWidth"in R?0===R.offsetWidth?0:P/R.offsetWidth:0,q="offsetHeight"in R?0===R.offsetHeight?0:I/R.offsetHeight:0;if(d===R)j="start"===o?k:"end"===o?k-h:"nearest"===o?QS(g,g+h,h,B,V,g+k,g+k+y,y):k-h/2,$="start"===i?S:"center"===i?S-m/2:"end"===i?S-m:QS(v,v+m,m,F,H,v+S,v+S+w,w),j=Math.max(0,j+g),$=Math.max(0,$+v);else{j="start"===o?k-O-B:"end"===o?k-A+V+U:"nearest"===o?QS(O,A,I,B,V+U,k,k+y,y):k-(O+I/2)+U/2,$="start"===i?S-L-F:"center"===i?S-(L+P/2)+W/2:"end"===i?S-D+H+W:QS(L,D,P,F,H+W,S,S+w,w);var Y=R.scrollLeft,K=R.scrollTop;k+=K-(j=Math.max(0,Math.min(K+j/q,R.scrollHeight-I/q+U))),S+=Y-($=Math.max(0,Math.min(Y+$/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 rT(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function oT(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 iT(){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 aT(){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 sT(){return String(eT++)}function lT(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 cT(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=uT(t,r)?t[r]:e[r],n)),{})}function uT(e,t){return void 0!==e[t]}function dT(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function fT(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=pT(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function pT(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?pT(1,0,n,r,!1):pT(-1,n-1,n,r,!1):-1}function mT(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(rT(t,e,n)||r&&rT(t,n.document.activeElement,n))))}const hT=oT((e=>{gT(e).textContent=""}),500);function vT(e,t){const n=gT(t);e&&(n.textContent=e,hT(t))}function gT(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 bT={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function yT(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${kT(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 wT=oT(((e,t)=>{vT(e(),t)}),200),xT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?b.useLayoutEffect:b.useEffect;function _T(e){let{id:t=`downshift-${sT()}`,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 ET(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function CT(e){return/^\S{1}$/.test(e)}function kT(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function ST(e){const t=(0,b.useRef)(e);return t.current=e,t}function TT(e,t,n){const r=(0,b.useRef)(),o=(0,b.useRef)(),i=(0,b.useCallback)(((t,n)=>{o.current=n,t=cT(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=ST(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&&yT(u,cT(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function NT(e,t,n){const[r,o]=TT(e,t,n);return[cT(r,n),o]}const RT={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:nT,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function MT(e,t,n){void 0===n&&(n=bT);const r=e[`default${kT(t)}`];return void 0!==r?r:n[t]}function IT(e,t,n){void 0===n&&(n=bT);const r=e[t];if(void 0!==r)return r;const o=e[`initial${kT(t)}`];return void 0!==o?o:MT(e,t,n)}function PT(e){const t=IT(e,"selectedItem"),n=IT(e,"isOpen"),r=IT(e,"highlightedIndex"),o=IT(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function OT(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):fT(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function DT(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&&!mT(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||mT(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 AT=()=>tT;function LT(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,b.useEffect)((()=>{r||wT((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function zT(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,b.useRef)(!0);return xT((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let FT=tT;function BT(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:OT(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:OT(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:MT(o,"highlightedIndex"),isOpen:MT(o,"isOpen"),selectedItem:MT(o,"selectedItem"),inputValue:MT(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function HT(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}KS().array.isRequired,KS().func,KS().func,KS().func,KS().bool,KS().number,KS().number,KS().number,KS().bool,KS().bool,KS().bool,KS().any,KS().any,KS().any,KS().string,KS().string,KS().string,KS().func,KS().string,KS().func,KS().func,KS().func,KS().func,KS().func,KS().shape({addEventListener:KS().func,removeEventListener:KS().func,document:KS().shape({getElementById:KS().func,activeElement:KS().any,body:KS().any})});var VT=Vt(Vt({},RT),{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.":""}}),jT=tT;var $T=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 WT(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case 11:i={isOpen:MT(r,"isOpen"),highlightedIndex:MT(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case 15:{const n=t.key,o=`${e.inputValue}${n}`,a=HT({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:OT(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:i={highlightedIndex:OT(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:i={isOpen:MT(r,"isOpen"),highlightedIndex:MT(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case 3:i={highlightedIndex:pT(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case 4:i={highlightedIndex:pT(-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=HT({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:fT(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case 1:i={highlightedIndex:fT(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case 20:i={selectedItem:t.selectedItem};break;default:return BT(e,t,$T)}return{...e,...i}}function UT(e){void 0===e&&(e={}),jT(e,UT);const t={...VT,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=PT(t),[d,f]=NT(WT,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:v}=d,g=(0,b.useRef)(null),y=(0,b.useRef)(null),w=(0,b.useRef)({}),x=(0,b.useRef)(!0),_=(0,b.useRef)(null),E=_T(t),C=(0,b.useRef)(),k=(0,b.useRef)(!0),S=ST({state:d,props:t}),T=(0,b.useCallback)((e=>w.current[E.getItemId(e)]),[E]);LT(c,[p,m,v,n],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),LT(l,[h],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const N=zT({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,b.useEffect)((()=>(_.current=oT((e=>{e({type:21,inputValue:""})}),500),()=>{_.current.cancel()})),[]),(0,b.useEffect)((()=>{v&&_.current(f)}),[f,v]),FT({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&&g.current&&(x.current=!1,g.current.focus())}),[p]),(0,b.useEffect)((()=>{k.current||(C.current=n.length)}));const R=DT(p,[y,g],o,(()=>{f({type:8})})),M=AT();(0,b.useEffect)((()=>{k.current=!1}),[]),(0,b.useEffect)((()=>{p||(w.current={})}),[p]);const I=(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]),F=(0,b.useCallback)((()=>{f({type:22})}),[f]),B=(0,b.useCallback)((e=>{f({type:21,inputValue:e})}),[f]),H=(0,b.useCallback)((e=>({id:E.labelId,htmlFor:E.toggleButtonId,...e})),[E]),V=(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 M("getMenuProps",l,r,y),{[r]:aT(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:iT(n,(()=>{f({type:9})})),onKeyDown:iT(o,(e=>{const t=dT(e);t&&P[t]?P[t](e):CT(t)&&f({type:7,key:t,getItemNodeFromIndex:T})})),onBlur:iT(i,(()=>{if(!1===x.current)return void(x.current=!0);!R.current.isMouseDown&&f({type:8})})),...s}}),[f,S,P,R,M,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=dT(e);t&&I[t]?I[t](e):CT(t)&&f({type:15,key:t,getItemNodeFromIndex:T})},u={[o]:aT(i,(e=>{g.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=iT(n,l),u.onKeyDown=iT(r,c)),M("getToggleButtonProps",s,o,g),u}),[f,S,I,M,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=ET(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]:aT(a,(e=>{e&&(w.current[E.getItemId(p)]=e)})),...l};return s||(m.onClick=iT(o,d)),m.onMouseMove=iT(r,(()=>{n!==c.highlightedIndex&&(N.current=!1,f({type:10,index:n,disabled:s}))})),m}),[f,S,N,E]);return{getToggleButtonProps:j,getLabelProps:H,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:F,setInputValue:B,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:v}}UT.stateChangeTypes=$T;KS().array.isRequired,KS().func,KS().func,KS().func,KS().bool,KS().number,KS().number,KS().number,KS().bool,KS().bool,KS().bool,KS().any,KS().any,KS().any,KS().string,KS().string,KS().string,KS().string,KS().string,KS().string,KS().func,KS().string,KS().string,KS().func,KS().func,KS().func,KS().func,KS().func,KS().func,KS().shape({addEventListener:KS().func,removeEventListener:KS().func,document:KS().shape({getElementById:KS().func,activeElement:KS().any,body:KS().any})});KS().array,KS().array,KS().array,KS().func,KS().func,KS().func,KS().number,KS().number,KS().number,KS().func,KS().func,KS().string,KS().string,KS().shape({addEventListener:KS().func,removeEventListener:KS().func,document:KS().shape({getElementById:KS().func,activeElement:KS().any,body:KS().any})});const GT=e=>e.__nextUnconstrainedWidth?"":Nf(hh,"{min-width:130px;}",""),qT=hd(Nh,{target:"eswuck60"})(GT,";"),YT=e=>null==e?void 0:e.name,KT=(e,t)=>{let{selectedItem:n}=e,{type:r,changes:o,props:{items:i}}=t;switch(r){case UT.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case UT.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function XT(e){var t;let{__next36pxDefaultSize:n=!1,__nextUnconstrainedWidth:r=!1,className:o,hideLabelFromVision:i,label:l,describedBy:d,options:f,onChange:p,size:m="default",value:h}=e;const{getLabelProps:v,getToggleButtonProps:g,getMenuProps:b,getItemProps:y,isOpen:w,highlightedIndex:x,selectedItem:_}=UT({initialSelectedItem:f[0],items:f,itemToString:YT,onSelectedItemChange:p,...null!=h?{selectedItem:h}:void 0,stateReducer:KT}),[E,C]=(0,s.useState)(!1);r||hc()("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 k=b({className:"components-custom-select-control__menu","aria-hidden":!w}),S=(0,s.useCallback)((e=>{var t;e.stopPropagation(),null==k||null===(t=k.onKeyDown)||void 0===t||t.call(k,e)}),[k]);return null!==(t=k["aria-activedescendant"])&&void 0!==t&&t.startsWith("downshift-null")&&delete k["aria-activedescendant"],(0,s.createElement)("div",{className:c()("components-custom-select-control",o)},i?(0,s.createElement)(bd,a({as:"label"},v()),l):(0,s.createElement)(Mg,v({className:"components-custom-select-control__label"}),l),(0,s.createElement)(qT,{__next36pxDefaultSize:n,__nextUnconstrainedWidth:r,isFocused:w||E,__unstableInputWidth:r?void 0:"auto",labelPosition:r?void 0:"top",size:m,suffix:(0,s.createElement)(Nb,null)},(0,s.createElement)(Eb,a({as:"button",onFocus:()=>C(!0),onBlur:()=>C(!1),selectSize:m,__next36pxDefaultSize:n},g({"aria-label":l,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:d||(_?(0,u.sprintf)((0,u.__)("Currently selected: %s"),_.name):(0,u.__)("No selection"))})),YT(_))),(0,s.createElement)("ul",a({},k,{onKeyDown:S}),w&&f.map(((e,t)=>(0,s.createElement)("li",y({item:e,index:t,key:e.key,className:c()(e.className,"components-custom-select-control__item",{"is-highlighted":t===x,"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===_&&(0,s.createElement)(Sb,{icon:m_,className:"components-custom-select-control__item-icon"}))))))}function ZT(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 JT(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function QT(e,t){const n=ZT(e);if(isNaN(t))return JT(e,NaN);if(!t)return n;const r=n.getDate(),o=JT(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}let eN={};function tN(){return eN}function nN(e,t){const n=tN(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ZT(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 rN(e,t){return function(e,t){const n=ZT(e);return isNaN(t)?JT(e,NaN):t?(n.setDate(n.getDate()+t),n):n}(e,7*t)}function oN(e,t){return QT(e,12*t)}function iN(e){const t=ZT(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function aN(e,t){const n=ZT(e.start),r=ZT(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(ZT(a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?l.reverse():l}function sN(e){const t=ZT(e);return t.setDate(1),t.setHours(0,0,0,0),t}function lN(e,t){const n=tN(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ZT(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 cN(e,t){return+ZT(e)==+ZT(t)}function uN(e,t){const n=ZT(e),r=n.getFullYear(),o=n.getDate(),i=JT(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=function(e){const t=ZT(e),n=t.getFullYear(),r=t.getMonth(),o=JT(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 dN(){return function(e){const t=ZT(e);return t.setHours(0,0,0,0),t}(Date.now())}var fN,pN;!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"}(fN||(fN={})),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"}(pN||(pN={}));var mN=function(e,t,n){return(cN(e,t)||function(e,t){const n=ZT(e),r=ZT(t);return n.getTime()>r.getTime()}(e,t))&&(cN(e,n)||function(e,t){return+ZT(e)<+ZT(t)}(e,n))},hN=function(e){return function(e,t){let n=ZT(e);return isNaN(+n)?JT(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=uN(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})},vN=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?pN.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(dN())}),[f]),m=(0,b.useCallback)((function(e){return f((function(t){return uN(t,e)}))}),[]),h=(0,b.useCallback)((function(){return f((function(e){return function(e,t){return QT(e,-t)}(e,1)}))}),[]),v=(0,b.useCallback)((function(){return f((function(e){return QT(e,1)}))}),[]),g=(0,b.useCallback)((function(e){return f((function(t){return function(e,t){const n=ZT(e);return isNaN(+n)?JT(e,NaN):(n.setFullYear(t),n)}(t,e)}))}),[]),y=(0,b.useCallback)((function(){return f((function(e){return function(e,t){return oN(e,-t)}(e,1)}))}),[]),w=(0,b.useCallback)((function(){return f((function(e){return oN(e,1)}))}),[]),x=(0,b.useState)(s.map(hN)),_=x[0],E=x[1],C=(0,b.useCallback)((function(e){return _.findIndex((function(t){return cN(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!cN(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?aN({start:e,end:t}):function(n){return n.concat(aN({start:e,end:t}))})}),[]),R=(0,b.useCallback)((function(e,t){E((function(n){return n.filter((function(n){return!aN({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,b.useMemo)((function(){return function(e,t){const n=ZT(e.start),r=ZT(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(ZT(a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}({start:sN(d),end:iN(QT(d,c-1))}).map((function(e){return function(e,t){const n=ZT(e.start),r=ZT(e.end);let o=+n>+r;const i=nN(o?r:n,t),a=nN(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(ZT(l)),l=rN(l,c),l.setHours(15);return o?u.reverse():u}({start:sN(e),end:iN(e)},{weekStartsOn:r}).map((function(e){return aN({start:nN(e,{weekStartsOn:r}),end:lN(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:hN,inRange:mN,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:v,viewYear:g,viewPreviousYear:y,viewNextYear:w,selected:_,setSelected:E,clearSelected:function(){return E([])},isSelected:C,select:k,deselect:S,toggle:T,selectRange:N,deselectRange:R,calendar:M}};function gN(e){return gN="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},gN(e)}function bN(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function yN(e){bN(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===gN(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 wN(e){bN(1,arguments);var t=yN(e);return t.setHours(0,0,0,0),t}function xN(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 _N(e,t){bN(2,arguments);var n=yN(e),r=xN(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 EN(e,t){bN(2,arguments);var n=xN(t);return _N(e,-n)}function CN(e){return bN(1,arguments),e instanceof Date||"object"===gN(e)&&"[object Date]"===Object.prototype.toString.call(e)}function kN(e){if(bN(1,arguments),!CN(e)&&"number"!=typeof e)return!1;var t=yN(e);return!isNaN(Number(t))}function SN(e,t){bN(2,arguments);var n=yN(e).getTime(),r=xN(t);return new Date(n+r)}function TN(e,t){bN(2,arguments);var n=xN(t);return SN(e,-n)}var NN=864e5;function RN(e){bN(1,arguments);var t=1,n=yN(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 MN(e){bN(1,arguments);var t=yN(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=RN(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=RN(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function IN(e){bN(1,arguments);var t=MN(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=RN(n);return r}var PN=6048e5;var ON={};function DN(){return ON}function AN(e,t){var n,r,o,i,a,s,l,c;bN(1,arguments);var u=DN(),d=xN(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=yN(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 LN(e,t){var n,r,o,i,a,s,l,c;bN(1,arguments);var u=yN(e),d=u.getUTCFullYear(),f=DN(),p=xN(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=AN(m,t),v=new Date(0);v.setUTCFullYear(d,0,p),v.setUTCHours(0,0,0,0);var g=AN(v,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}function zN(e,t){var n,r,o,i,a,s,l,c;bN(1,arguments);var u=DN(),d=xN(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=LN(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=AN(p,t);return m}var FN=6048e5;function BN(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var HN={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return BN("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):BN(n+1,2)},d:function(e,t){return BN(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 BN(e.getUTCHours()%12||12,t.length)},H:function(e,t){return BN(e.getUTCHours(),t.length)},m:function(e,t){return BN(e.getUTCMinutes(),t.length)},s:function(e,t){return BN(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return BN(Math.floor(r*Math.pow(10,n-3)),t.length)}},VN=HN,jN="midnight",$N="noon",WN="morning",UN="afternoon",GN="evening",qN="night",YN={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 VN.y(e,t)},Y:function(e,t,n,r){var o=LN(e,r),i=o>0?o:1-o;return"YY"===t?BN(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):BN(i,t.length)},R:function(e,t){return BN(MN(e),t.length)},u:function(e,t){return BN(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 BN(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 BN(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 VN.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 BN(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){bN(1,arguments);var n=yN(e),r=AN(n,t).getTime()-zN(n,t).getTime();return Math.round(r/FN)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):BN(o,t.length)},I:function(e,t,n){var r=function(e){bN(1,arguments);var t=yN(e),n=RN(t).getTime()-IN(t).getTime();return Math.round(n/PN)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):BN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):VN.d(e,t)},D:function(e,t,n){var r=function(e){bN(1,arguments);var t=yN(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/NN)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):BN(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 BN(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 BN(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 BN(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?$N:0===o?jN: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?GN:o>=12?UN:o>=4?WN:qN,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 VN.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):VN.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):BN(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):BN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):VN.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):VN.s(e,t)},S:function(e,t){return VN.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 XN(o);case"XXXX":case"XX":return ZN(o);default:return ZN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return XN(o);case"xxxx":case"xx":return ZN(o);default:return ZN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+KN(o,":");default:return"GMT"+ZN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+KN(o,":");default:return"GMT"+ZN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return BN(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return BN((r._originalDate||e).getTime(),t.length)}};function KN(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+BN(i,2)}function XN(e,t){return e%60==0?(e>0?"-":"+")+BN(Math.abs(e)/60,2):ZN(e,t)}function ZN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+BN(Math.floor(o/60),2)+n+BN(o%60,2)}var JN=YN,QN=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"})}},eR=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"})}},tR={p:eR,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return QN(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}}",QN(o,t)).replace("{{time}}",eR(i,t))}},nR=tR;function rR(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 oR=["D","DD"],iR=["YY","YYYY"];function aR(e){return-1!==oR.indexOf(e)}function sR(e){return-1!==iR.indexOf(e)}function lR(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 cR={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"}},uR=function(e,t,n){var r,o=cR[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 dR(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 fR={date:dR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:dR({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:dR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},pR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mR=function(e,t,n,r){return pR[e]};function hR(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 vR={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:hR({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:hR({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:hR({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:hR({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:hR({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"})},gR=vR;function bR(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)?wR(l,(function(e){return e.test(s)})):yR(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 yR(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function wR(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var xR,_R={ordinalNumber:(xR={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(xR.matchPattern);if(!n)return null;var r=n[0],o=e.match(xR.parsePattern);if(!o)return null;var i=xR.valueCallback?xR.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:bR({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:bR({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bR({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bR({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bR({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},ER={code:"en-US",formatDistance:uR,formatLong:fR,formatRelative:mR,localize:gR,match:_R,options:{weekStartsOn:0,firstWeekContainsDate:1}},CR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SR=/^'([^]*?)'?$/,TR=/''/g,NR=/[a-zA-Z]/;function RR(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,v,g,b,y,w;bN(2,arguments);var x=String(t),_=DN(),E=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:ER,C=xN(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=xN(null!==(p=null!==(m=null!==(h=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(g=n.locale)||void 0===g||null===(b=g.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=yN(e);if(!kN(S))throw new RangeError("Invalid time value");var T=rR(S),N=TN(S,T),R={firstWeekContainsDate:C,weekStartsOn:k,locale:E,_originalDate:S},M=x.match(kR).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,nR[t])(e,E.formatLong):e})).join("").match(CR).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return MR(r);var i=JN[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!sR(r)||lR(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!aR(r)||lR(r,t,String(e)),i(N,r,E.localize,R);if(o.match(NR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function MR(e){var t=e.match(SR);return t?t[1].replace(TR,"'"):e}function IR(e,t){bN(2,arguments);var n=yN(e),r=yN(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function PR(e,t){bN(2,arguments);var n=yN(e),r=yN(t);return n.getTime()===r.getTime()}function OR(e,t){bN(2,arguments);var n=wN(e),r=wN(t);return n.getTime()===r.getTime()}function DR(e,t){bN(2,arguments);var n=yN(e),r=xN(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function AR(e,t){bN(2,arguments);var n=xN(t),r=7*n;return DR(e,r)}var LR=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"}));var zR=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"})),FR=window.wp.date;const BR=hd("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),HR=hd(gy,{target:"e105ri6r4"})("margin-bottom:",xm(4),";"),VR=hd(b_,{target:"e105ri6r3"})("font-size:",Hm.fontSize,";font-weight:",Hm.fontWeight,";strong{font-weight:",Hm.fontWeightHeading,";}"),jR=hd("div",{target:"e105ri6r2"})("column-gap:",xm(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",xm(2),";"),$R=hd("div",{target:"e105ri6r1"})("color:",cp.gray[700],";font-size:",Hm.fontSize,";line-height:",Hm.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),WR=hd(wd,{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:",xm(7),";width:",xm(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${cp.ui.theme};\n\t\t\tcolor: ${cp.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${cp.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?cp.white:cp.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 UR(e){return"string"==typeof e?new Date(e):yN(e)}const GR="yyyy-MM-dd'T'HH:mm:ss";function qR(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)(WR,{ref:f,className:"components-datetime__date__day",disabled:l,tabIndex:o?0:-1,"aria-label":YR(t,r,c),column:n,isSelected:r,isToday:a,hasEvents:c>0,onClick:u,onKeyDown:d},(0,FR.dateI18n)("j",t,-t.getTimezoneOffset()))}function YR(e,t,n){const{formats:r}=(0,FR.getSettings)(),o=(0,FR.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 KR=function(e){let{currentDate:t,onChange:n,events:r=[],isInvalidDate:o,onMonthPreviewed:i,startOfWeek:a=0}=e;const l=t?UR(t):new Date,{calendar:c,viewing:d,setSelected:f,setViewing:p,isSelected:m,viewPreviousMonth:h,viewNextMonth:v}=vN({selected:[wN(l)],viewing:wN(l),weekStartsOn:a}),[g,b]=(0,s.useState)(wN(l)),[y,w]=(0,s.useState)(!1),[x,_]=(0,s.useState)(t);return t!==x&&(_(t),f([wN(l)]),p(wN(l)),b(wN(l))),(0,s.createElement)(BR,{className:"components-datetime__date",role:"application","aria-label":(0,u.__)("Calendar")},(0,s.createElement)(HR,null,(0,s.createElement)(wd,{icon:(0,u.isRTL)()?LR:zR,variant:"tertiary","aria-label":(0,u.__)("View previous month"),onClick:()=>{h(),b(EN(g,1)),null==i||i(RR(EN(d,1),GR))}}),(0,s.createElement)(VR,{level:3},(0,s.createElement)("strong",null,(0,FR.dateI18n)("F",d,-d.getTimezoneOffset()))," ",(0,FR.dateI18n)("Y",d,-d.getTimezoneOffset())),(0,s.createElement)(wd,{icon:(0,u.isRTL)()?zR:LR,variant:"tertiary","aria-label":(0,u.__)("View next month"),onClick:()=>{v(),b(_N(g,1)),null==i||i(RR(_N(d,1),GR))}})),(0,s.createElement)(jR,{onFocus:()=>w(!0),onBlur:()=>w(!1)},c[0][0].map((e=>(0,s.createElement)($R,{key:e.toString()},(0,FR.dateI18n)("D",e,-e.getTimezoneOffset())))),c[0].map((e=>e.map(((e,t)=>IR(e,d)?(0,s.createElement)(qR,{key:e.toString(),day:e,column:t+1,isSelected:m(e),isFocusable:PR(e,g),isFocusAllowed:y,isToday:OR(e,new Date),isInvalid:!!o&&o(e),numEvents:r.filter((t=>OR(t.date,e))).length,onClick:()=>{f([e]),b(e),null==n||n(RR(new Date(e.getFullYear(),e.getMonth(),e.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()),GR))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=DR(e,(0,u.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=DR(e,(0,u.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){bN(2,arguments);var n=xN(t);return AR(e,-n)}(e,1)),"ArrowDown"===t.key&&(n=AR(e,1)),"PageUp"===t.key&&(n=EN(e,1)),"PageDown"===t.key&&(n=_N(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;bN(1,arguments);var u=DN(),d=xN(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=yN(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=wN(function(e,t){var n,r,o,i,a,s,l,c;bN(1,arguments);var u=DN(),d=xN(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=yN(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),IR(n,d)||(p(n),null==i||i(RR(n,GR))))}}):null))))))};function XR(e){bN(1,arguments);var t=yN(e);return t.setSeconds(0,0),t}function ZR(e){bN(1,arguments);var t=yN(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 JR(e,t){bN(2,arguments);var n=yN(e),r=xN(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=ZR(a);return n.setMonth(r,Math.min(i,s)),n}const QR=hd("div",{target:"evcr23110"})("box-sizing:border-box;font-size:",Hm.fontSize,";"),eM=hd("fieldset",{target:"evcr2319"})("border:0;margin:0 0 ",xm(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),tM=hd("div",{target:"evcr2318"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),nM=Nf("&&& ",gh,"{padding-left:",xm(2),";padding-right:",xm(2),";text-align:center;}",""),rM=hd(tg,{target:"evcr2317"})(nM," width:",xm(9),";&&& ",gh,"{padding-right:0;}&&& ",xh,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),oM=hd("span",{target:"evcr2316"})("border-top:",Hm.borderWidth," solid ",cp.gray[700],";border-bottom:",Hm.borderWidth," solid ",cp.gray[700],";line-height:calc(\n\t\t",Hm.controlHeight," - ",Hm.borderWidth," * 2\n\t);display:inline-block;"),iM=hd(tg,{target:"evcr2315"})(nM," width:",xm(9),";&&& ",gh,"{padding-left:0;}&&& ",xh,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),aM=hd("div",{target:"evcr2314"})({name:"1ff36h2",styles:"flex-grow:1"}),sM=hd(Ib,{target:"evcr2313"})("height:36px;",Eb,"{line-height:30px;}"),lM=hd(tg,{target:"evcr2312"})(nM," width:",xm(9),";"),cM=hd(tg,{target:"evcr2311"})(nM," width:",xm(14),";"),uM=hd("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"});var dM=()=>{const{timezone:e}=(0,FR.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)(_f,{position:"top center",text:o},(0,s.createElement)(uM,{className:"components-datetime__timezone"},r))};function fM(e,t){return t?(e%12+12)%24:e%12}function pM(e){return(t,n)=>{const r={...t};return n.type!==Nv&&n.type!==Lv&&n.type!==Dv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var mM=function(e){let{is12Hour:t,currentTime:n,onChange:r}=e;const[o,i]=(0,s.useState)((()=>n?XR(UR(n)):new Date));(0,s.useEffect)((()=>{i(n?XR(UR(n)):new Date)}),[n]);const{day:a,month:l,year:c,minutes:d,hours:f,am:p}=(0,s.useMemo)((()=>({day:RR(o,"dd"),month:RR(o,"MM"),year:RR(o,"yyyy"),minutes:RR(o,"mm"),hours:RR(o,t?"hh":"HH"),am:RR(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=fM(l,"PM"===p));const c=function(e,t){if(bN(2,arguments),"object"!==gN(t)||null===t)throw new RangeError("values parameter must be an object");var n=yN(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=JR(n,t.month)),null!=t.date&&n.setDate(xN(t.date)),null!=t.hours&&n.setHours(xN(t.hours)),null!=t.minutes&&n.setMinutes(xN(t.minutes)),null!=t.seconds&&n.setSeconds(xN(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(xN(t.milliseconds)),n)}(o,{[e]:l});i(c),null==r||r(RR(c,GR))};function h(e){return()=>{if(p===e)return;const t=parseInt(f,10),n=function(e,t){bN(2,arguments);var n=yN(e),r=xN(t);return n.setHours(r),n}(o,fM(t,"PM"===e));i(n),null==r||r(RR(n,GR))}}const v=(0,s.createElement)(lM,{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,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")}),g=(0,s.createElement)(aM,null,(0,s.createElement)(sM,{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=JR(o,Number(e)-1);i(t),null==r||r(RR(t,GR))}}));return(0,s.createElement)(QR,{className:"components-datetime__time"},(0,s.createElement)(eM,null,(0,s.createElement)(Ag.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Time")),(0,s.createElement)(gy,{className:"components-datetime__time-wrapper"},(0,s.createElement)(tM,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,s.createElement)(rM,{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,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("hours"),__unstableStateReducer:pM(2)}),(0,s.createElement)(oM,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,s.createElement)(iM,{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,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("minutes"),__unstableStateReducer:pM(2)})),t&&(0,s.createElement)(tC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,s.createElement)(wd,{className:"components-datetime__time-am-button",variant:"AM"===p?"primary":"secondary",onClick:h("AM")},(0,u.__)("AM")),(0,s.createElement)(wd,{className:"components-datetime__time-pm-button",variant:"PM"===p?"primary":"secondary",onClick:h("PM")},(0,u.__)("PM"))),(0,s.createElement)(ug,null),(0,s.createElement)(dM,null))),(0,s.createElement)(eM,null,(0,s.createElement)(Ag.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Date")),(0,s.createElement)(gy,{className:"components-datetime__time-wrapper"},t?(0,s.createElement)(s.Fragment,null,g,v):(0,s.createElement)(s.Fragment,null,v,g),(0,s.createElement)(cM,{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,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:pM(4)}))))};const hM=hd(v_,{target:"e1p5onf01"})({name:"1khn195",styles:"box-sizing:border-box"}),vM=hd("div",{target:"e1p5onf00"})({name:"l0rwn2",styles:"min-width:260px"}),gM=()=>{};const bM=(0,s.forwardRef)((function(e,t){let{currentDate:n,is12Hour:r,isInvalidDate:o,onMonthPreviewed:i=gM,onChange:a,events:l,startOfWeek:c,__nextRemoveHelpButton:d=!1,__nextRemoveResetButton:f=!1}=e;d||hc()("Help button in wp.components.DateTimePicker",{since:"13.4",version:"14.6",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||hc()("Reset button in wp.components.DateTimePicker",{since:"13.4",version:"14.6",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)(hM,{ref:t,className:"components-datetime",spacing:4},!p&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(mM,{currentTime:n,onChange:a,is12Hour:r}),(0,s.createElement)(KR,{currentDate:n,onChange:a,isInvalidDate:o,events:l,onMonthPreviewed:i,startOfWeek:c})),p&&(0,s.createElement)(vM,{className:"components-datetime__calendar-help"},(0,s.createElement)(b_,{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)(b_,{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)(gy,{className:"components-datetime__buttons"},!f&&!p&&n&&(0,s.createElement)(wd,{className:"components-datetime__date-reset-button",variant:"link",onClick:()=>null==a?void 0:a(null)},(0,u.__)("Reset")),(0,s.createElement)(ug,null),!d&&(0,s.createElement)(wd,{className:"components-datetime__date-help-toggle",variant:"link",onClick:function(){m(!p)}},p?(0,u.__)("Close"):(0,u.__)("Calendar Help"))))}));var yM=bM;var wM=[{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 xM=function(e){const{label:t,value:n,sizes:r=wM,icon:o,onChange:i,className:a=""}=e,l=(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(gc,{icon:o}),t);return(0,s.createElement)(Ib,{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 _M={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},EM=(0,s.createContext)(!1),{Consumer:CM,Provider:kM}=EM,SM=(0,s.forwardRef)(((e,t)=>(0,s.createElement)("div",a({},e,{ref:t}))));function TM(e){let{className:t,children:n,isDisabled:r=!0,...o}=e;const i=(0,d.useDisabled)(),l=nd();return r?(0,s.createElement)(kM,{value:!0},(0,s.createElement)(SM,a({ref:i,className:l(_M,t,"components-disabled")},o),n)):(0,s.createElement)(kM,{value:!1},(0,s.createElement)(SM,null,n))}TM.Context=EM,TM.Consumer=CM;var NM=TM;const RM="is-dragging-components-draggable";function MM(e){let{children:t,onDragStart:n,onDragOver:r,onDragEnd:o,cloneClassname:i,elementId:a,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}=e;const d=(0,s.useRef)(null),f=(0,s.useRef)((()=>{}));return(0,s.useEffect)((()=>()=>{f.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,p=0;if(d.current){u=e.clientX,p=e.clientY,o.style.transform=`translate( ${u}px, ${p}px )`;const n=t.createElement("div");n.innerHTML=d.current.innerHTML,o.appendChild(n),t.body.appendChild(o)}else{const e=t.getElementById(a),n=e.getBoundingClientRect(),r=e.parentNode,i=parseInt(n.top,10),s=parseInt(n.left,10);o.style.width=`${n.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${a}`,u=s-0,p=i-0,o.style.transform=`translate( ${u}px, ${p}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode.removeChild(e))),o.appendChild(l),r.appendChild(o)}let m=e.clientX,h=e.clientY;const v=(0,bc.throttle)((function(e){if(m===e.clientX&&h===e.clientY)return;const t=u+e.clientX-m,n=p+e.clientY-h;o.style.transform=`translate( ${t}px, ${n}px )`,m=e.clientX,h=e.clientY,u=t,p=n,r&&r(e)}),16);let g;t.addEventListener("dragover",v),t.body.classList.add(RM),e.persist(),n&&(g=setTimeout((()=>n(e)))),f.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),s&&s.parentNode&&s.parentNode.removeChild(s),t.body.classList.remove(RM),t.removeEventListener("dragover",v),clearTimeout(g)}},onDraggableEnd:function(e){e.preventDefault(),f.current(),o&&o(e)}}),u&&(0,s.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:d},u))}var IM=(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"}));function PM(){var e=(0,b.useRef)(!1);return an((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var OM=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,i=e.custom,a=e.presenceAffectsLayout,s=gn(DM),l=xo(),c=(0,b.useMemo)((function(){return{id:l,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=$t(s.values()),i=r.next();!i.done;i=r.next()){if(!i.value)return}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}}),a?void 0:[r]);return(0,b.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[r]),b.useEffect((function(){!r&&!s.size&&(null==o||o())}),[r]),b.createElement(on.Provider,{value:c},t)};function DM(){return new Map}var AM=function(e){return e.key||""};var LM=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,i=e.onExitComplete,a=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=Wt(function(){var e=PM(),t=Wt((0,b.useState)(0),2),n=t[0],r=t[1],o=(0,b.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,b.useCallback)((function(){return Yi.postRender(o)}),[o]),n]}(),1),u=c[0],d=(0,b.useContext)(wn).forceRender;d&&(u=d);var f=PM(),p=function(e){var t=[];return b.Children.forEach(e,(function(e){(0,b.isValidElement)(e)&&t.push(e)})),t}(t),m=p,h=new Set,v=(0,b.useRef)(m),g=(0,b.useRef)(new Map).current,y=(0,b.useRef)(!0);if(an((function(){y.current=!1,function(e,t){e.forEach((function(e){var n=AM(e);t.set(n,e)}))}(p,g),v.current=m})),oo((function(){y.current=!0,g.clear(),h.clear()})),y.current)return b.createElement(b.Fragment,null,m.map((function(e){return b.createElement(OM,{key:AM(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)})));m=Ut([],Wt(m),!1);for(var w=v.current.map(AM),x=p.map(AM),_=w.length,E=0;E<_;E++){var C=w[E];-1===x.indexOf(C)&&h.add(C)}return a&&h.size&&(m=[]),h.forEach((function(e){if(-1===x.indexOf(e)){var t=g.get(e);if(t){var r=w.indexOf(e);m.splice(r,0,b.createElement(OM,{key:AM(t),isPresent:!1,onExitComplete:function(){g.delete(e),h.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!h.size){if(v.current=p,!1===f.current)return;u(),i&&i()}},custom:n,presenceAffectsLayout:l},t))}}})),m=m.map((function(e){var t=e.key;return h.has(t)?e:b.createElement(OM,{key:AM(e),isPresent:!0,presenceAffectsLayout:l},e)})),"production"!==Zt&&a&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),b.createElement(b.Fragment,null,h.size?m:m.map((function(e){return(0,b.cloneElement)(e)})))};var zM=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)(),[v,g]=(0,s.useState)(),b=(0,d.__experimentalUseDropZone)({onDrop(e){var t;const n=e.dataTransfer?(0,tS.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,tS.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(r="file"),g(r)},onDragEnd(){p(!1),g(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)(fc.div,{variants:x,initial:y?"show":"hidden",animate:"show",exit:y?"show":"exit",className:"components-drop-zone__content"},(0,s.createElement)(fc.div,{variants:_},(0,s.createElement)(Sb,{icon:IM,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"===v&&r||"html"===v&&o||"default"===v&&i),"is-dragging-over-document":f,"is-dragging-over-element":m,[`is-dragging-${v}`]:!!v});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 hc()("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 BM=(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 HM(){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} )`}rp([op]);var VM=function(e){let{values:t}=e;return t?(0,s.createElement)(bb,{colorValue:HM(t,"135deg")}):(0,s.createElement)(gc,{icon:BM})};function jM(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)(wd,{className:"components-color-list-picker__swatch-button",onClick:()=>c((e=>!e))},(0,s.createElement)(gy,{justify:"flex-start",spacing:2},n?(0,s.createElement)(bb,{colorValue:n,className:"components-color-list-picker__swatch-color"}):(0,s.createElement)(gc,{icon:BM}),(0,s.createElement)("span",null,t))),l&&(0,s.createElement)(S_,{className:"components-color-list-picker__color-picker",colors:r,value:n,clearable:!1,onChange:a,disableCustomColors:o,enableAlpha:i}))}var $M=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)(jM,{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 WM=["#333","#CCC"];function UM(e){let{value:t,onChange:n}=e;const r=!!t,o=r?t:WM,i=HM(o),a=(l=o).map(((e,t)=>({position:100*t/(l.length-1),color:e})));var l;return(0,s.createElement)(Lk,{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 GM=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:tp(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)(h_.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:HM(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=(0,bc.isEqual)(t,l);return(0,s.createElement)(h_.Option,{key:n,value:t,isSelected:d,"aria-label":a,tooltipText:i,style:o,onClick:()=>{c(d?void 0:t)}})}));return(0,s.createElement)(h_,{options:n?[m,...h]:h,actions:!!t&&(0,s.createElement)(h_.ButtonAction,{onClick:()=>c(void 0)},(0,u.__)("Clear"))},(0,s.createElement)(ug,{paddingTop:4},(0,s.createElement)(v_,{spacing:3},!i&&!a&&(0,s.createElement)(UM,{value:p?void 0:l,onChange:c}),!a&&(0,s.createElement)($M,{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 qM=(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 YM=hd(Sb,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var KM=(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:p?e=>e.preventDefault():void 0,target:"_blank",rel:d,ref:t}),r,(0,s.createElement)(bd,{as:"span"},(0,u.__)("(opens in a new tab)")),(0,s.createElement)(YM,{icon:qM,className:"components-external-link__icon"}))}));const XM={width:200,height:170},ZM=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function JM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split(".");return t[t.length-1]}function QM(e){return Math.round(100*e)}const eI=hd("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),tI=hd("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;}"}),nI=hd("div",{target:"eeew7dm6"})("background:",cp.gray[100],";box-sizing:border-box;height:",XM.height,"px;max-width:280px;min-width:",XM.width,"px;width:100%;"),rI=hd($_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var oI={name:"1mn7kwb",styles:"padding-bottom:1em"};const iI=e=>{let{__nextHasNoMarginBottom:t}=e;return t?void 0:oI};var aI={name:"1mn7kwb",styles:"padding-bottom:1em"};const sI=e=>{let{hasHelpText:t=!1}=e;return t?aI:void 0},lI=hd(Em,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",sI," ",iI,";"),cI=hd("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}),";"),uI=hd("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 )"}),dI=hd(uI,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),fI=hd(uI,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),pI=()=>{};function mI(e){let{__nextHasNoMarginBottom:t,hasHelpText:n,onChange:r=pI,point:o={x:.5,y:.5}}=e;const i=QM(o.x),a=QM(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)(lI,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:t,hasHelpText:n},(0,s.createElement)(hI,{label:(0,u.__)("Left"),value:[i,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,s.createElement)(hI,{label:(0,u.__)("Top"),value:[a,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"}))}function hI(e){return(0,s.createElement)(rI,a({className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:100,min:0,units:[{value:"%",label:"%"}]},e))}const vI=hd("div",{target:"e19snlhg3"})("background-color:transparent;cursor:grab;height:30px;margin:-15px 0 0 -15px;opacity:0.8;position:absolute;user-select:none;width:30px;will-change:transform;z-index:10000;",(e=>{let{isDragging:t}=e;return t&&"cursor: grabbing;"}),";"),gI=hd(i.SVG,{target:"e19snlhg2"})({name:"qkx60y",styles:"display:block;height:100%;left:0;position:absolute;top:0;width:100%"}),bI=hd(i.Path,{target:"e19snlhg1"})({name:"1b3qpiw",styles:"fill:white"}),yI=hd(i.Path,{target:"e19snlhg0"})("fill:",cp.ui.theme,";");function wI(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)(vI,a({},r,{className:o,style:i}),(0,s.createElement)(gI,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},(0,s.createElement)(bI,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),(0,s.createElement)(yI,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"})))}function xI(e){let{bounds:t,...n}=e;return(0,s.createElement)(cI,a({},n,{className:"components-focal-point-picker__grid",style:{width:t.width,height:t.height}}),(0,s.createElement)(dI,{style:{top:"33%"}}),(0,s.createElement)(dI,{style:{top:"66%"}}),(0,s.createElement)(fI,{style:{left:"33%"}}),(0,s.createElement)(fI,{style:{left:"66%"}}))}function _I(e){let{alt:t,autoPlay:n,src:r,onLoad:o,mediaRef:i,muted:l=!0,...c}=e;if(!r)return(0,s.createElement)(nI,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&&ZM.includes(JM(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 EI=function(e,t){const n=(0,s.useRef)(!1);(0,s.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};var CI=function e(t){let{__nextHasNoMarginBottom:n,autoPlay:r=!0,className:o,help:i,label:l,onChange:f,onDrag:p,onDragEnd:m,onDragStart:h,resolvePoint:v,url:g,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),[M,I]=(0,s.useState)(XM),P=(0,s.useRef)((()=>{if(!R.current)return;const{clientWidth:e,clientHeight:t}=R.current;I(e>0&&t>0?{width:e,height:t}:{...XM})}));(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)/M.width,s=(n-o)/M.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==v?void 0:v(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*M.width,top:N*M.height},L=c()("components-focal-point-picker-control",o),z=`inspector-focal-point-picker-control-${(0,d.useInstanceId)(e)}`;return EI((()=>{E(!0);const e=window.setTimeout((()=>{E(!1)}),600);return()=>window.clearTimeout(e)}),[T,N]),(0,s.createElement)(Ag,a({},y,{__nextHasNoMarginBottom:n,label:l,id:z,help:i,className:L}),(0,s.createElement)(eI,{className:"components-focal-point-picker-wrapper"},(0,s.createElement)(tI,{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)(xI,{bounds:M,showOverlay:_}),(0,s.createElement)(_I,{alt:(0,u.__)("Media preview"),autoPlay:r,onLoad:P.current,src:g}),(0,s.createElement)(wI,a({},A,{isDragging:S})))),(0,s.createElement)(mI,{__nextHasNoMarginBottom:n,hasHelpText:!!i,point:{x:T,y:N},onChange:e=>{null==f||f(D(e))}}))};function kI(e){let{iframeRef:t,...n}=e;const r=(0,d.useMergeRefs)([t,(0,d.useFocusableIframe)()]);return hc()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,s.createElement)("iframe",a({ref:r},n))}var SI=(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 TI(e){void 0===e&&(e={});var t=yp(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=Vp(m(m({},i),{},{loop:o}));return m(m({},c),{},{state:s,setState:l})}var NI=["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"],RI=[].concat(NI,["value","checked","unstable_checkOnFocus"]),MI=z({as:"div",useHook:B({name:"RadioGroup",compose:Kp,keys:NI,useProps:function(e,t){return m({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return N(e,t,n)}});const II=Nf("border-color:",cp.ui.border,";&:hover{border-color:",cp.ui.borderHover,";}",""),PI=e=>Nf("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),OI={name:"7whenc",styles:"display:flex;width:100%"},DI=hd("div",{target:"eakva831"})("background:",cp.gray[900],";border-radius:",Hm.controlBorderRadius,";box-shadow:",Hm.toggleGroupControlBackdropBoxShadow,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Hm.transitionDurationFast," ease;",up("transition")," z-index:1;"),AI=hd("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});var LI=(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)(DI,{role:"presentation",style:{transform:`translateX(${i}px)`,transition:u?void 0:"none",width:l}}):null}));const zI=(0,s.createContext)({});var FI=zI;const BI=()=>{};const HI=od((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,__experimentalIsBorderless:l=!1,label:c,hideLabelFromVision:u=!1,help:f,onChange:p=BI,size:m="default",value:h,children:v,...g}=rd(e,"ToggleGroupControl"),b=nd(),y=(0,s.useRef)(),[w,x]=(0,d.useResizeObserver)(),_=TI({baseId:(0,d.useInstanceId)(HI,"toggle-group-control").toString(),state:h}),E=(0,d.usePrevious)(h);EI((()=>{E!==_.state&&p(_.state)}),[_.state]),EI((()=>{h!==_.state&&_.setState(h)}),[h]);const C=(0,s.useMemo)((()=>b((e=>{let{size:t}=e;return Nf("background:",cp.ui.background,";border:1px solid transparent;border-radius:",Hm.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",Hm.transitionDurationFastest," linear;",up("transition")," ",PI(t)," &:focus-within{border-color:",cp.ui.borderFocus,";box-shadow:",Hm.controlBoxShadowFocus,";outline:none;z-index:1;}","")})({size:m}),!l&&II,i&&OI,r)),[r,b,i,l,m]);return(0,s.createElement)(Ag,{help:f,__nextHasNoMarginBottom:n},(0,s.createElement)(FI.Provider,{value:{..._,isBlock:!o,size:m}},!u&&(0,s.createElement)(AI,null,(0,s.createElement)(Ag.VisualLabel,null,c)),(0,s.createElement)(MI,a({},_,{"aria-label":c,as:gd,className:C},g,{ref:(0,d.useMergeRefs)([y,t])}),w,(0,s.createElement)(LI,a({},_,{containerRef:y,containerWidth:x.width,isAdaptiveWidth:o})),v)))}),"ToggleGroupControl");var VI=HI;function jI(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function $I(e,t){var n=_e(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var WI=B({name:"Radio",compose:ke,keys:RI,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=jI(e),d=G(e.currentId===e.id),f=G(r),p=G(o);!function(e){var t=(0,b.useState)((function(){return jI(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 v=(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]),g=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||l||$I(e.currentTarget,v)}),[v,l]);return(0,b.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&$I(t,v)}),[e.unstable_moves,e.unstable_checkOnFocus,v]),m({ref:V(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:v,onClick:g},i)}}),UI=z({as:"input",memo:!0,useHook:WI});const GI=hd("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),qI={name:"82a6rk",styles:"flex:1"},YI=Nf("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Hm.controlBorderRadius,";color:",cp.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 ",Hm.transitionDurationFast," linear,color ",Hm.transitionDurationFast," linear,font-weight 60ms linear;",up("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Hm.toggleGroupControlBackgroundColor,";}",""),KI=hd("div",{target:"et6ln9s0"})("font-size:",Hm.fontSize,";line-height:1;"),XI={name:"1qsuvl4",styles:"background:transparent"},ZI=e=>{let{size:t}=e;return Nf("color:",cp.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[t],";padding-left:0;padding-right:0;","")},JI=Nf("color:",cp.white,";&:active{background:transparent;}",""),{ButtonContentView:QI,LabelView:eP}=o,tP=e=>{let{showTooltip:t,text:n,children:r}=e;return t&&n?(0,s.createElement)(_f,{text:n,position:"top center"},r):(0,s.createElement)(s.Fragment,null,r)};const nP=od((function e(t,n){const r=(0,s.useContext)(zI),o=rd({...t,id:(0,d.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{className:i,isBlock:l=!1,isIcon:c=!1,value:u,children:f,size:p="default",showTooltip:m=!1,...h}={...r,...o},v=h.state===u,g=nd(),b=g(l&&qI),y=g(YI,c&&ZI({size:p}),i,v&&JI);return(0,s.createElement)(eP,{className:b,"data-active":v},(0,s.createElement)(tP,{showTooltip:m,text:h["aria-label"]},(0,s.createElement)(UI,a({},h,{as:"button","aria-label":h["aria-label"],className:y,"data-value":u,ref:n,value:u}),(0,s.createElement)(QI,null,f))))}),"ToggleGroupControlOptionBase");var rP=nP;var oP=(0,s.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,s.createElement)(rP,a({},r,{"aria-label":o,ref:t}),n)}));const iP={slug:"default",name:(0,u.__)("Default")},aP="custom",sP={slug:aP,name:(0,u.__)("Custom")},lP=[(0,u.__)("S"),(0,u.__)("M"),(0,u.__)("L"),(0,u.__)("XL"),(0,u.__)("XXL")];function cP(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(e)}function uP(e,t,n){return n&&!t.length?null:e?function(e,t){return[iP,...e,...t?[]:[sP]].map((e=>{let{slug:t,name:n,size:r}=e;return{key:t,name:n||t,size:r,__experimentalHint:r&&cP(r)&&parseFloat(r)}}))}(t,n):function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lP;return e.map(((e,n)=>{let{slug:r,size:o,name:i}=e;return{key:r,value:o,label:t[n],name:i||t[n]}}))}(t)}const dP=e=>{let{__nextHasNoMarginBottom:t,children:n}=e;return t?(0,s.createElement)(v_,{spacing:6,children:n}):n};var fP=(0,s.forwardRef)((function(e,t){var n,r;let{__nextHasNoMarginBottom:o=!1,fallbackFontSize:i,fontSizes:l=[],disableCustomFontSizes:d=!1,onChange:f,size:p="default",value:m,withSlider:h=!1,withReset:v=!0}=e;o||hc()("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 g=[typeof m,typeof(null==l||null===(n=l[0])||void 0===n?void 0:n.size)].includes("string"),b=g?parseInt(m):m,y="number"==typeof m||(null==m||null===(r=m.endsWith)||void 0===r?void 0:r.call(m,"px")),w=L_({availableUnits:["px","em","rem"]}),x=l.some((e=>{let{size:t}=e;return!cP(t)})),_=l.length>5,E=(0,s.useMemo)((()=>uP(_,l,d)),[_,l,d]),C=function(e,t){return t?e.find((e=>e.size===t))||sP:iP}(l,m),k=C.slug===aP,[S,T]=(0,s.useState)(!d&&k),N=(0,s.useMemo)((()=>{if(S)return`(${(0,u.__)("Custom")})`;if(k)return cP(m)&&`(${m})`;if(_)return cP(null==C?void 0:C.size)&&`(${null==C?void 0:C.size})`;let e=(null==C?void 0:C.name)||C.slug;if(!x&&"string"==typeof C.size){const[,t]=function(e){const[t,n]=`${e}`.match(/[\d\.]+|\D+/g);return!isNaN(parseFloat(t))&&isFinite(t)?[t,n]:[]}(C.size);e+=`(${t})`}return e}),[S,null==C?void 0:C.name,null==C?void 0:C.size,m,k,_,x]);if(!E)return null;const R=(0,u.sprintf)((0,u.__)("Currently selected font size: %s"),C.name),M="components-font-size-picker";return(0,s.createElement)("fieldset",a({className:M},t?{}:{ref:t}),(0,s.createElement)(bd,{as:"legend"},(0,u.__)("Font size")),(0,s.createElement)(gy,{className:`${M}__header`},(0,s.createElement)(Dg.VisualLabel,null,(0,u.__)("Size"),N&&(0,s.createElement)("span",{className:`${M}__header__hint`},N)),!d&&(0,s.createElement)(wd,{label:S?(0,u.__)("Use size preset"):(0,u.__)("Set custom size"),icon:SI,onClick:()=>{T(!S)},isPressed:S,isSmall:!0})),(0,s.createElement)(dP,{__nextHasNoMarginBottom:o},(0,s.createElement)("div",{className:c()(`${M}__controls`,{"is-next-has-no-margin-bottom":o})},!!l.length&&_&&!S&&(0,s.createElement)(XT,{__nextUnconstrainedWidth:!0,className:`${M}__select`,label:(0,u.__)("Font size"),hideLabelFromVision:!0,describedBy:R,options:E,value:E.find((e=>e.key===C.slug)),onChange:e=>{let{selectedItem:t}=e;f(g?t.size:Number(t.size)),t.key===aP&&T(!0)},size:p}),!_&&!S&&(0,s.createElement)(VI,{__nextHasNoMarginBottom:o,label:(0,u.__)("Font size"),hideLabelFromVision:!0,value:m,onChange:e=>{f(g?e:Number(e))},isBlock:!0,size:p},E.map((e=>(0,s.createElement)(oP,{key:e.key,value:e.value,label:e.label,"aria-label":e.name,showTooltip:!0})))),!h&&!d&&S&&(0,s.createElement)(Em,{justify:"space-between",className:`${M}__custom-size-control`},(0,s.createElement)(gm,{isBlock:!0},(0,s.createElement)($_,{label:(0,u.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:m,onChange:e=>{0!==parseFloat(e)&&e?f(g?e:parseInt(e,10)):f(void 0)},size:p,units:g?w:[]})),v&&(0,s.createElement)(gm,{isBlock:!0},(0,s.createElement)(wd,{className:"components-color-palette__clear",disabled:void 0===m,onClick:()=>{f(void 0)},isSmall:!0,variant:"secondary"},(0,u.__)("Reset"))))),h&&(0,s.createElement)(fy,{__nextHasNoMarginBottom:o,className:`${M}__custom-input`,label:(0,u.__)("Custom Size"),value:y&&b||"",initialPosition:i,onChange:e=>{f(g?e+"px":e)},min:12,max:100})))}));var pP=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)(wd,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 mP=()=>{};var hP=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=mP,...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 vP=()=>{};function gP(e){let{value:t,status:n,title:r,displayTransform:o,isBorderless:i=!1,disabled:a=!1,onClickRemove:l=vP,onMouseEnter:f,onMouseLeave:p,messages:m,termPosition:h,termsCount:v}=e;const g=(0,d.useInstanceId)(gP),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,v);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-${g}`},(0,s.createElement)(bd,{as:"span"},w),(0,s.createElement)("span",{"aria-hidden":"true"},y)),(0,s.createElement)(wd,{className:"components-form-token-field__remove-token",icon:Gg,onClick:!a&&(()=>l({value:t})),label:m.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const bP=e=>{let{__next36pxDefaultSize:t,hasTokens:n}=e;return!t&&Nf("padding-top:",xm(n?1:.5),";padding-bottom:",xm(n?1:.5),";","")},yP=hd(Em,{target:"ehq8nmi0"})("padding:5px ",xm(1),";",bP,";"),wP=e=>e;var xP=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:v=wP,saveTransform:g=(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:M=!1}=t,I=(0,d.useInstanceId)(e),[P,O]=(0,s.useState)(""),[D,A]=(0,s.useState)(0),[L,z]=(0,s.useState)(!1),[F,B]=(0,s.useState)(!1),[H,V]=(0,s.useState)(-1),[j,$]=(0,s.useState)(!1),W=(0,d.usePrevious)(p),U=(0,d.usePrevious)(h),G=(0,s.useRef)(null),q=(0,s.useRef)(null),Y=(0,d.useDebounce)(vg.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),B(!1),V(-1),$(!1))}function J(e){e.target===q.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!==H)return ce()[H];return}();return t?(ae(t),e=!0):fe()&&(ae(P),e=!0),e}function ie(e){const t=[...new Set(e.map(g).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,vg.speak)(C.added,"assertive"),O(""),V(-1),$(!1),B(!S),L&&K()):(0,vg.speak)(C.__experimentalInvalid,"assertive")}function se(e){const t=h.filter((t=>le(t)!==le(e)));b(t),(0,vg.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]:g,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 g(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(B(o||t&&r),e&&(M&&t&&r?(V(0),$(!0)):(V(-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.");Y(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)(gm,{key:"token-"+r},(0,s.createElement)(gP,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:v,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=!Xd()(p,W||[]);(e||h!==U)&&pe(e)}),[p,W,h,U]),(0,s.useEffect)((()=>{pe()}),[P]),(0,s.useEffect)((()=>{pe()}),[M]),_&&L&&(z(!1),O(""));const he=c()(f,"components-form-token-field__input-container",{"is-active":L,"is-disabled":_});let ve={className:"components-form-token-field",tabIndex:-1};const ge=ce();return _||(ve=Object.assign({},ve,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented){switch(e.keyCode){case mg.BACKSPACE:t=te(ne);break;case mg.ENTER:t=oe();break;case mg.LEFT:t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,h.length))),e=!0),e}();break;case mg.UP:V((e=>(0===e?ce(P,p,h,m,g).length:e)-1)),$(!0),t=!0;break;case mg.RIGHT:t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case mg.DOWN:V((e=>(e+1)%ce(P,p,h,m,g).length)),$(!0),t=!0;break;case mg.DELETE:t=te(re);break;case mg.SPACE:E&&(t=oe());break;case mg.ESCAPE:t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),B(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;44===e.charCode&&(fe()&&ae(P),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===q.current?(z(!0),B(S||F)):z(!1),"function"==typeof w&&w(e)}})),(0,s.createElement)("div",ve,(0,s.createElement)(Mg,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},l),(0,s.createElement)("div",{ref:q,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,s.createElement)(yP,{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:I,autoCapitalize:n,autoComplete:r,placeholder:0===h.length?i:"",key:"input",disabled:_,value:P,onBlur:Z,isExpanded:F,selectedSuggestionIndex:H};return(0,s.createElement)(IS,a({},e,{onChange:o&&h.length>=o?void 0:ee,ref:G}))}()),e}()),F&&(0,s.createElement)(AS,{instanceId:I,match:g(P),displayTransform:v,suggestions:ge,selectedIndex:H,scrollIntoView:j,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:k})),N&&(0,s.createElement)("p",{id:`components-form-token-suggestions-howto-${I}`,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 _P=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 EP(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)(wd,{key:o,icon:(0,s.createElement)(_P,{isSelected:o===t}),"aria-label":(0,u.sprintf)((0,u.__)("Page %1$d of %2$d"),o+1,n),onClick:()=>r(o)})))))}function CP(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)&&hc()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[t]),(0,s.useEffect)((()=>{var e,t;l.current&&(null===(e=tS.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)},v=()=>{m&&f(d+1)};return 0===a.length?null:(0,s.createElement)(US,{className:c()("components-guide",n),contentLabel:r,onRequestClose:i,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(v(),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)(EP,{currentPage:d,numberOfPages:a.length,setCurrentPage:f}),a[d].content),(0,s.createElement)("div",{className:"components-guide__footer"},p&&(0,s.createElement)(wd,{className:"components-guide__back-button",onClick:h},(0,u.__)("Previous")),m&&(0,s.createElement)(wd,{className:"components-guide__forward-button",onClick:v},(0,u.__)("Next")),!m&&(0,s.createElement)(wd,{className:"components-guide__finish-button",onClick:i},o||(0,u.__)("Finish")))))}function kP(e){return(0,s.useEffect)((()=>{hc()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,s.createElement)("div",e)}var SP=(0,s.forwardRef)((function(e,t){let{labelPosition:n,size:r,tooltip:o,label:i,...l}=e;return hc()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,s.createElement)(wd,a({},l,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==o?!!o:void 0,label:o||i}))}));var TP=od((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=rd(e,"Item"),{spacedAround:l,size:c}=Ek(),u=i||c,d=t||(void 0!==r?"button":"div"),f=nd(),p=(0,s.useMemo)((()=>f("button"===d&&ck,xk[u]||xk.medium,dk,l&&hk,n)),[d,n,f,u,l]),m=f(uk);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)(gd,a({},o,{ref:t})))}),"Item");var NP=od((function(e,t){const n=rd(e,"InputControlPrefixWrapper");return(0,s.createElement)(ug,a({marginBottom:0},n,{ref:t}))}),"InputControlPrefixWrapper");function RP(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 MP=function(e){let{children:t,shortcuts:n,bindGlobal:r,eventName:o}=e;const i=(0,s.useRef)(),a=(0,bc.map)(n,((e,t)=>(0,s.createElement)(RP,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})));return s.Children.count(t)?(0,s.createElement)("div",{ref:i},a,t):a};var IP=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:null},n))};var PP=(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",...p}=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)(wd,a({ref:t,"aria-checked":"menuitemcheckbox"===f||"menuitemradio"===f?d:void 0,role:f,icon:"left"===l?i:void 0,className:o},p),(0,s.createElement)("span",{className:"components-menu-item__item"},n),(0,s.createElement)(vf,{className:"components-menu-item__shortcut",shortcut:u}),i&&"right"===l&&(0,s.createElement)(gc,{icon:i}))}));const OP=()=>{};function DP(e){let{choices:t=[],onHover:n=OP,onSelect:r,value:o}=e;return t.map((e=>{const t=o===e.value;return(0,s.createElement)(PP,{key:e.value,role:"menuitemradio",icon:t&&m_,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 AP=(0,s.forwardRef)((function(e,t){let{eventToOffset:n,...r}=e;return(0,s.createElement)(aS,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 LP="root",zP=()=>{},FP=(0,s.createContext)({activeItem:void 0,activeMenu:LP,setActiveMenu:zP,isMenuEmpty:zP,navigationTree:{items:{},getItem:zP,addItem:zP,removeItem:zP,menus:{},getMenu:zP,addMenu:zP,removeMenu:zP,childMenu:{},traverseMenu:zP,isMenuEmpty:zP}}),BP=()=>(0,s.useContext)(FP);var HP=(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 VP=(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:v,...g}=e;const b=(0,s.useRef)(),y=`components-search-control-${(0,d.useInstanceId)(VP)}`;return(0,s.createElement)(Ag,{__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({},g,{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"},v?(0,s.createElement)(wd,{icon:Gg,label:(0,u.__)("Close search"),onClick:v}):l?(0,s.createElement)(wd,{icon:Gg,label:(0,u.__)("Reset search"),onClick:()=>{var e;o(""),null===(e=b.current)||void 0===e||e.focus()}}):(0,s.createElement)(Sb,{icon:HP}))))}));var jP=VP;const $P=hd("div",{target:"ejwewyf11"})("width:100%;box-sizing:border-box;padding:0 ",xm(4),";overflow:hidden;"),WP=hd("div",{target:"ejwewyf10"})("margin-top:",xm(6),";margin-bottom:",xm(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",xm(6),";}.components-navigation__group+.components-navigation__group{margin-top:",xm(6),";}"),UP=hd(wd,{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;}}"}),GP=hd("div",{target:"ejwewyf8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),qP=hd("span",{target:"ejwewyf7"})("height:",xm(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",xm(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),YP=hd(jP,{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;}"}),KP=hd(b_,{target:"ejwewyf5"})("min-height:",xm(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",xm(2),";padding:",(()=>(0,u.isRTL)()?`${xm(1)} ${xm(4)} ${xm(1)} ${xm(2)}`:`${xm(1)} ${xm(2)} ${xm(1)} ${xm(4)}`),";"),XP=hd("li",{target:"ejwewyf4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",xm(2)," ",xm(4),";",uh({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:",cp.ui.theme,";color:",cp.white,";>button,>a{color:",cp.white,";opacity:1;}}>svg path{color:",cp.gray[600],";}"),ZP=hd("div",{target:"ejwewyf3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",xm(1.5)," ",xm(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),JP=hd("span",{target:"ejwewyf2"})("display:flex;margin-right:",xm(2),";"),QP=hd("span",{target:"ejwewyf1"})("margin-left:",(()=>(0,u.isRTL)()?"0":xm(2)),";margin-right:",(()=>(0,u.isRTL)()?xm(2):"0"),";display:inline-flex;padding:",xm(1)," ",xm(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",up("animation"),";"),eO=hd(nh,{target:"ejwewyf0"})((()=>(0,u.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;"),tO=()=>{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}))}},nO=()=>{};function rO(e){let{activeItem:t,activeMenu:n=LP,children:r,className:o,onActivateMenu:i=nO}=e;const[a,l]=(0,s.useState)(n),[d,f]=(0,s.useState)(),p=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=tO(),{nodes:o,getNode:i,addNode:a,removeNode:l}=tO(),[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))},v=(0,s.useRef)(!1);(0,s.useEffect)((()=>{v.current||(v.current=!0)}),[]),(0,s.useEffect)((()=>{n!==a&&h(n)}),[n]);const g={activeItem:t,activeMenu:a,setActiveMenu:h,navigationTree:p},b=c()("components-navigation",o),y=sm({type:"slide-in",origin:d});return(0,s.createElement)($P,{className:b},(0,s.createElement)("div",{key:a,className:c()({[y]:v.current&&d})},(0,s.createElement)(FP.Provider,{value:g},r)))}var oO=(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 iO=(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 aO=(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}=BP(),p=c()("components-navigation__back-button",o),m=null===(n=f.getMenu(l))||void 0===n?void 0:n.title,h=(0,u.isRTL)()?oO:iO;return(0,s.createElement)(UP,{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)(Sb,{icon:h}),r||m||(0,u.__)("Back"))}));const sO=(0,s.createContext)({group:void 0});let lO=0;function cO(e){let{children:t,className:n,title:r}=e;const[o]=(0,s.useState)("group-"+ ++lO),{navigationTree:{items:i}}=BP(),a={group:o};if(!Object.values(i).some((e=>e.group===o&&e._isVisible)))return(0,s.createElement)(sO.Provider,{value:a},t);const l=`components-navigation__group-title-${o}`,u=c()("components-navigation__group",n);return(0,s.createElement)(sO.Provider,{value:a},(0,s.createElement)("li",{className:u},r&&(0,s.createElement)(KP,{className:"components-navigation__group-title",id:l,level:3},r),(0,s.createElement)("ul",{"aria-labelledby":l,role:"group"},t)))}function uO(e){const{badge:t,title:n}=e;return(0,s.createElement)(s.Fragment,null,n&&(0,s.createElement)(eO,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&(0,s.createElement)(QP,{className:"components-navigation__item-badge"},t))}const dO=(0,s.createContext)({menu:void 0,search:""}),fO=()=>(0,s.useContext)(dO),pO=e=>pg()(e).replace(/^\//,"").toLowerCase(),mO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=BP(),{group:i}=(0,s.useContext)(sO),{menu:a,search:l}=fO();(0,s.useEffect)((()=>{const s=n===a,c=!l||((e,t)=>-1!==pO(e).indexOf(pO(t)))(t.title,l);return r(e,{...t,group:i,menu:a,_isVisible:s&&c}),()=>{o(e)}}),[n,l])};let hO=0;function vO(e){var t;const{children:n,className:r,title:o,href:i,...l}=e,[u]=(0,s.useState)("item-"+ ++hO);mO(u,e);const{navigationTree:d}=BP();if(null===(t=d.getItem(u))||void 0===t||!t._isVisible)return null;const f=c()("components-navigation__item",r);return(0,s.createElement)(XP,a({className:f},l),n)}const gO=()=>{};function bO(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:l,onClick:d=gO,title:f,icon:p,hideIfTargetMenuEmpty:m,isText:h,...v}=e,{activeItem:g,setActiveMenu:b,navigationTree:{isMenuEmpty:y}}=BP();if(m&&l&&y(l))return null;const w=i&&g===i,x=c()(r,{"is-active":w}),_=(0,u.isRTL)()?iO:oO,E=n?e:{...e,onClick:void 0},C=h?v:{as:wd,href:o,onClick:e=>{l&&b(l),d(e)},"aria-current":w?"page":void 0,...v};return(0,s.createElement)(vO,a({},E,{className:x}),n||(0,s.createElement)(ZP,C,p&&(0,s.createElement)(JP,null,(0,s.createElement)(Sb,{icon:p})),(0,s.createElement)(uO,{title:f,badge:t}),l&&(0,s.createElement)(Sb,{icon:_})))}var yO=(0,d.createHigherOrderComponent)((e=>t=>(0,s.createElement)(e,a({},t,{speak:vg.speak,debouncedSpeak:(0,d.useDebounce)(vg.speak,500)}))),"withSpokenMessages");var wO=yO((function(e){let{debouncedSpeak:t,onCloseSearch:n,onSearch:r,search:o,title:i}=e;const{navigationTree:{items:a}}=BP(),{menu:l}=fO(),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)(YP,{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 xO(e){let{hasSearch:t,onSearch:n,search:r,title:o,titleAction:i}=e;const[a,l]=(0,s.useState)(!1),{menu:c}=fO(),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)(GP,{className:"components-navigation__menu-title"},!a&&(0,s.createElement)(KP,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,s.createElement)("span",{id:f},o),(t||i)&&(0,s.createElement)(qP,null,i,t&&(0,s.createElement)(wd,{isSmall:!0,variant:"tertiary",label:p,onClick:()=>l(!0),ref:d},(0,s.createElement)(Sb,{icon:HP})))),a&&(0,s.createElement)("div",{className:sm({type:"slide-in",origin:"left"})},(0,s.createElement)(wO,{onCloseSearch:()=>{l(!1),setTimeout((()=>{d.current.focus()}),100)},onSearch:n,search:r,title:o})))}function _O(e){let{search:t}=e;const{navigationTree:{items:n}}=BP(),r=Object.values(n).filter((e=>e._isVisible)).length;return!t||r?null:(0,s.createElement)(XP,null,(0,s.createElement)(ZP,null,(0,u.__)("No results found.")," "))}function EO(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=LP,onBackButtonClick:a,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,v]=(0,s.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=BP(),r=e.menu||LP;(0,s.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:g}=BP(),b={menu:i,search:h};if(g!==i)return(0,s.createElement)(dO.Provider,{value:b},n);const y=!!l,w=y?d:h,x=y?l:v,_=`components-navigation__menu-title-${i}`,E=c()("components-navigation__menu",r);return(0,s.createElement)(dO.Provider,{value:b},(0,s.createElement)(WP,{className:E},(u||a)&&(0,s.createElement)(aO,{backButtonLabel:t,parentMenu:u,onClick:a}),p&&(0,s.createElement)(xO,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,s.createElement)(sS,null,(0,s.createElement)("ul",{"aria-labelledby":_},n,w&&!f&&(0,s.createElement)(_O,{search:w})))))}const CO=(0,s.createContext)({location:{},goTo:()=>{},goBack:()=>{}});var kO={name:"15bx5k",styles:"overflow-x:hidden"};const SO=od((function(e,t){const{initialPath:n,children:r,className:o,...i}=rd(e,"NavigatorProvider"),[l,c]=(0,s.useState)([{path:n}]),u=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c([...l,{...t,path:e,isBack:!1,hasRestoredFocus:!1}])}),[l]),d=(0,s.useCallback)((()=>{l.length>1&&c([...l.slice(0,-2),{...l[l.length-2],isBack:!0,hasRestoredFocus:!1}])}),[l]),f=(0,s.useMemo)((()=>({location:{...l[l.length-1],isInitial:1===l.length},goTo:u,goBack:d})),[l,u,d]),p=nd(),m=(0,s.useMemo)((()=>p(kO,o)),[o,p]);return(0,s.createElement)(gd,a({ref:t,className:m},i),(0,s.createElement)(CO.Provider,{value:f},r))}),"NavigatorProvider");var TO=SO,NO=window.wp.escapeHtml;var RO={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const MO=od((function(e,t){const{children:n,className:r,path:o,...i}=rd(e,"NavigatorScreen"),l=(0,d.useReducedMotion)(),{location:c}=(0,s.useContext)(CO),f=c.path===(0,NO.escapeAttribute)(o),p=(0,s.useRef)(null),m=(0,d.usePrevious)(c),h=nd(),v=(0,s.useMemo)((()=>h(RO,r)),[r,h]),g=c.isInitial&&!c.isBack;(0,s.useEffect)((()=>{if(g||!f||!p.current||c.hasRestoredFocus)return;let e=null;if(c.isBack&&null!=m&&m.focusTargetSelector&&(e=p.current.querySelector(m.focusTargetSelector)),!e){const t=tS.focus.tabbable.find(p.current)[0];e=null!=t?t:p.current}c.hasRestoredFocus=!0,e.focus()}),[g,f,c.hasRestoredFocus,c.isBack,null==m?void 0:m.focusTargetSelector]);const b=(0,d.useMergeRefs)([t,p]);if(!f)return null;if(l)return(0,s.createElement)(gd,a({ref:b,className:v},i),n);const y={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},w={opacity:0,x:(0,u.isRTL)()&&c.isBack||!(0,u.isRTL)()&&!c.isBack?50:-50},x={animate:y,exit:{delay:0,opacity:0,x:!(0,u.isRTL)()&&c.isBack||(0,u.isRTL)()&&!c.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:w};return(0,s.createElement)(fc.div,a({ref:b,className:v},i,x),n)}),"NavigatorScreen");var IO=MO;var PO=function(){const{location:e,goTo:t,goBack:n}=(0,s.useContext)(CO);return{location:e,goTo:t,goBack:n}};var OO=od((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=wd,attributeName:o="id",...i}=rd(e,"NavigatorButton"),a=(0,NO.escapeAttribute)(t),{goTo:l}=PO();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)(gd,a({ref:t},n))}),"NavigatorButton");var DO=od((function(e,t){const n=function(e){const{onClick:t,as:n=wd,...r}=rd(e,"NavigatorBackButton"),{goBack:o}=PO();return{as:n,onClick:(0,s.useCallback)((e=>{e.preventDefault(),o(),null==t||t(e)}),[o,t]),...r}}(e);return(0,s.createElement)(gd,a({ref:t},n))}),"NavigatorBackButton");const AO=()=>{};function LO(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var zO=function(e){let{className:t,status:n="info",children:r,spokenMessage:o=r,onRemove:i=AO,isDismissible:a=!0,actions:l=[],politeness:d=LO(n),__unstableHTML:f,onDismiss:p=AO}=e;!function(e,t){const n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((()=>{n&&(0,vg.speak)(n,t)}),[n,t])}(o,d);const m=c()(t,"components-notice","is-"+n,{"is-dismissible":a});return f&&(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)(wd,{key:t,href:u,variant:d,onClick:u?void 0:l,className:c()("components-notice__action",n)},r)})))),a&&(0,s.createElement)(wd,{className:"components-notice__dismiss",icon:pc,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 FO=()=>{};var BO=function(e){let{notices:t,onRemove:n=FO,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)(zO,a({},n,{key:e.id,onRemove:i(e.id)}),e.content)})))};var HO=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 VO=(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)(HO,{label:n}),o)}));var jO=(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 $O=()=>{};const WO=(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)(wd,a({className:"components-panel__body-toggle","aria-expanded":n,ref:t},i),(0,s.createElement)("span",{"aria-hidden":"true"},(0,s.createElement)(gc,{className:"components-panel__arrow",icon:n?jO:Tb})),o,r&&(0,s.createElement)(gc,{icon:r,className:"components-panel__icon",size:20}))):null})),UO=(0,s.forwardRef)((function(e,t){let{buttonProps:n={},children:r,className:o,icon:i,initialOpen:l,onToggle:u=$O,opened:f,title:p,scrollAfterOpen:m=!0}=e;const[h,v]=Ob(f,{initial:void 0===l||l}),g=(0,s.useRef)(),b=(0,d.useReducedMotion)()?"auto":"smooth",y=(0,s.useRef)();y.current=m,EI((()=>{var e;h&&y.current&&null!==(e=g.current)&&void 0!==e&&e.scrollIntoView&&g.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)([g,t])},(0,s.createElement)(WO,a({icon:i,isOpened:h,onClick:e=>{e.preventDefault();const t=!h;v(t),u(t)},title:p},n)),"function"==typeof r?r({opened:h}):h&&r)}));UO.displayName="PanelBody";var GO=UO;const qO=(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)}));var YO=qO;const KO=(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 XO=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:v}]=(0,d.useResizeObserver)();let g;"number"==typeof v&&(g={"is-large":v>=480,"is-medium":v>=160&&v<480,"is-small":v<160});const b=c()("components-placeholder",i,g,p?"has-illustration":null),y=c()("components-placeholder__fieldset",{"is-column-layout":f});return(0,s.createElement)("div",a({},m,{className:b}),p?KO:null,h,l,u&&(0,s.createElement)("div",{className:"components-placeholder__preview"},u),(0,s.createElement)("div",{className:"components-placeholder__label"},(0,s.createElement)(gc,{icon:t}),r),(0,s.createElement)("fieldset",{className:y},!!o&&(0,s.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};function ZO(e){const t=e.map((e=>({children:[],parent:null,...e}))),n=(0,bc.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]||[])}function JO(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,bc.unescape)(e.name)},...JO(e.children||[],t+1)]))}var QO=function(e){let{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:i=[],...l}=e;const c=(0,s.useMemo)((()=>[n&&{value:"",label:n},...JO(i)].filter((e=>!!e))),[n,i]);return(0,s.createElement)(Mb,a({label:t,options:c,onChange:r,value:o},l))};function eD(e){let{label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:i,...l}=e;const c=(0,s.useMemo)((()=>ZO(r)),[r]);return(0,s.createElement)(QO,a({label:t,noOptionLabel:n,onChange:i,tree:c,selectedId:o},l))}function tD(e){let{label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:i}=e;if(!r)return null;const a=ZO(r);return(0,s.createElement)(QO,{label:t,noOptionLabel:n,onChange:i,tree:a,selectedId:o})}const nD=1,rD=100;function oD(e){let{authorList:t,selectedAuthorId:n,categoriesList:r,selectedCategoryId:o,categorySuggestions:i,selectedCategories:a,numberOfItems:l,order:c,orderBy:d,maxItems:f=rD,minItems:p=nD,onCategoryChange:m,onAuthorChange:h,onNumberOfItemsChange:v,onOrderChange:g,onOrderByChange:b}=e;return[g&&b&&(0,s.createElement)(Ib,{key:"query-controls-order-select",label:(0,u.__)("Order by"),value:`${d}/${c}`,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=>{const[t,n]=e.split("/");n!==c&&g(n),t!==d&&b(t)}}),r&&m&&(0,s.createElement)(eD,{key:"query-controls-category-select",categoriesList:r,label:(0,u.__)("Category"),noOptionLabel:(0,u.__)("All"),selectedCategoryId:o,onChange:m}),i&&m&&(0,s.createElement)(xP,{key:"query-controls-categories-select",label:(0,u.__)("Categories"),value:a&&a.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(i),onChange:m,maxSuggestions:20}),h&&(0,s.createElement)(tD,{key:"query-controls-author-select",authorList:t,label:(0,u.__)("Author"),noOptionLabel:(0,u.__)("All"),selectedAuthorId:n,onChange:h}),v&&(0,s.createElement)(fy,{key:"query-controls-range-control",label:(0,u.__)("Number of items"),value:l,onChange:v,min:p,max:f,required:!0})]}var iD=(0,s.createContext)({state:null,setState:()=>{}});var aD=(0,s.forwardRef)((function(e,t){let{children:n,value:r,...o}=e;const i=(0,s.useContext)(iD),l=i.state===r;return(0,s.createElement)(UI,a({ref:t,as:wd,variant:l?"primary":"secondary",value:r},i,o),n||r)}));var sD=(0,s.forwardRef)((function(e,t){let{label:n,checked:r,defaultChecked:o,disabled:i,onChange:l,...c}=e;const u=TI({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)(iD.Provider,{value:d},(0,s.createElement)(MI,a({ref:t,as:tC,"aria-label":n},u,c)))}));var lD=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)(Ag,{__nextHasNoMarginBottom:!0,label:n,id:m,hideLabelFromVision:u,help:i,className:c()(r,"components-radio-control")},(0,s.createElement)(v_,{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},cD=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)}}(),uD=function(){return uD=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},uD.apply(this,arguments)},dD={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},fD={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},pD={width:"20px",height:"20px",position:"absolute"},mD={top:uD(uD({},dD),{top:"-5px"}),right:uD(uD({},fD),{left:void 0,right:"-5px"}),bottom:uD(uD({},dD),{top:void 0,bottom:"-5px"}),left:uD(uD({},fD),{left:"-5px"}),topRight:uD(uD({},pD),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:uD(uD({},pD),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:uD(uD({},pD),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:uD(uD({},pD),{left:"-10px",top:"-10px",cursor:"nw-resize"})},hD=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 cD(t,e),t.prototype.render=function(){return b.createElement("div",{className:this.props.className||"",style:uD(uD({position:"absolute",userSelect:"none"},mD[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(b.PureComponent),vD=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)}}(),gD=function(){return gD=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},gD.apply(this,arguments)},bD={width:"auto",height:"auto"},yD=function(e,t,n){return Math.max(Math.min(e,n),t)},wD=function(e,t){return Math.round(e/t)*t},xD=function(e,t){return new RegExp(e,"i").test(t)},_D=function(e){return Boolean(e.touches&&e.touches.length)},ED=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},CD=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"},kD=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},SD=["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"],TD="__resizable_base__",ND=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(TD):t.className+=TD,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 vD(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||bD},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 CD(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?CD(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?CD(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&&xD("left",i),s=o&&xD("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,v=f||0,g=p||0;return xD("right",l)&&(m=c.width+(e-c.x)*i/r,d&&(h=(m-g)/this.ratio+v)),xD("left",l)&&(m=c.width-(e-c.x)*i/r,d&&(h=(m-g)/this.ratio+v)),xD("bottom",l)&&(h=c.height+(t-c.y)*a/r,d&&(m=(h-v)*this.ratio+g)),xD("top",l)&&(h=c.height-(t-c.y)*a/r,d&&(m=(h-v)*this.ratio+g)),{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,v=(l-p)/this.ratio+f,g=(c-p)/this.ratio+f,b=Math.max(l,m),y=Math.min(c,h),w=Math.max(u,v),x=Math.min(d,g);e=yD(e,b,y),t=yD(t,w,x)}else e=yD(e,l,c),t=yD(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&&_D(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:gD(gD({},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&&_D(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=_D(e)?e.touches[0].clientX:e.clientX,l=_D(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=kD(r,e.width,t,n),o=kD(o,e.height,t,n),i=kD(i,e.width,t,n),a=kD(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 v=this.calculateNewSizeFromDirection(s,l),g=v.newHeight,b=v.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=ED(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ED(g,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(b,g,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=w.newWidth,g=w.newHeight,this.props.grid){var x=wD(b,this.props.grid[0]),_=wD(g,this.props.grid[1]),E=this.props.snapGap||0;b=0===E||Math.abs(x-b)<=E?x:b,g=0===E||Math.abs(_-g)<=E?_:g}var C={width:b-d.width,height:g-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("%"))g=g/m.height*100+"%";else if(p.endsWith("vw")){g=g/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){g=g/this.window.innerHeight*100+"vh"}var k={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(g,"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:gD(gD({},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(hD,{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!==SD.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=gD(gD(gD({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,gD({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 RD=()=>{},MD={bottom:"bottom",corner:"corner"};function ID(e){let{axis:t,fadeTimeout:n=180,onResize:r=RD,position:o=MD.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:v}=l,g=(0,s.useRef)(v),b=(0,s.useRef)(h),y=(0,s.useRef)(),w=()=>{c||(f(!1),m(!1))};(0,s.useEffect)((()=>{if(!(null!==h||null!==v))return;const e=h!==b.current,t=v!==g.current;if(e||t){if(h&&!b.current&&v&&!g.current)return b.current=h,void(g.current=v);e&&(f(!0),b.current=h),t&&(m(!0),g.current=v),r({width:h,height:v}),y.current&&window.clearTimeout(y.current),y.current=window.setTimeout(w,n)}}),[h,v]);const x=function(e){let{axis:t,height:n,moveX:r=!1,moveY:o=!1,position:i=MD.bottom,showPx:a=!1,width:s}=e;if(!r&&!o)return;if(i===MD.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:v,moveX:u,moveY:p,position:o,showPx:i,width:h});return{label:x,resizeListener:a}}const PD=hd("div",{target:"ekdag503"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),OD=hd("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"}),DD=hd("div",{target:"ekdag501"})("background:",cp.gray[900],";border-radius:2px;box-sizing:border-box;font-size:12px;color:",cp.ui.textDark,";padding:4px 8px;position:relative;"),AD=hd(nh,{target:"ekdag500"})("&&&{color:",cp.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const LD=(0,s.forwardRef)((function(e,t){let{label:n,position:r=MD.corner,zIndex:o=1e3,...i}=e;const l=!!n,c=r===MD.bottom,d=r===MD.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)(OD,a({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:t,style:f},i),(0,s.createElement)(DD,{className:"components-resizable-tooltip__tooltip",style:p},(0,s.createElement)(AD,{as:"span"},n)))}));var zD=LD;const FD=()=>{};const BD=(0,s.forwardRef)((function(e,t){let{axis:n,className:r,fadeTimeout:o=180,isVisible:i=!0,labelRef:l,onResize:u=FD,position:d=MD.bottom,showPx:f=!0,zIndex:p=1e3,...m}=e;const{label:h,resizeListener:v}=ID({axis:n,fadeTimeout:o,onResize:u,showPx:f,position:d});if(!i)return null;const g=c()("components-resize-tooltip",r);return(0,s.createElement)(PD,a({"aria-hidden":"true",className:g,ref:t},m),v,(0,s.createElement)(zD,{"aria-hidden":m["aria-hidden"],label:h,position:d,ref:l,zIndex:p}))}));var HD=BD;const VD="components-resizable-box__handle",jD="components-resizable-box__side-handle",$D="components-resizable-box__corner-handle",WD={top:c()(VD,jD,"components-resizable-box__handle-top"),right:c()(VD,jD,"components-resizable-box__handle-right"),bottom:c()(VD,jD,"components-resizable-box__handle-bottom"),left:c()(VD,jD,"components-resizable-box__handle-left"),topLeft:c()(VD,$D,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:c()(VD,$D,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:c()(VD,$D,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:c()(VD,$D,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},UD={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},GD={top:UD,right:UD,bottom:UD,left:UD,topLeft:UD,topRight:UD,bottomRight:UD,bottomLeft:UD};var qD=(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)(ND,a({className:c()("components-resizable-box__container",o&&"has-show-handle",n),handleClasses:WD,handleStyles:GD,ref:t},u),r,i&&(0,s.createElement)(HD,l))}));var YD=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<a?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 KD="\n\t( function() {\n\t\tvar observer;\n\n\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\twindow.parent.postMessage( {\n\t\t\t\taction: 'resize',\n\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\theight: clientBoundingRect.height,\n\t\t\t}, '*' );\n\t\t}\n\n\t\tobserver = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t} );\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n} )();",XD="\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";function ZD(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{return!!l.current.contentDocument.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,{body:u}=a;if(!e&&null!==u.getAttribute("data-resizable-iframe-connected"))return;const d=(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:XD}}),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:KD}}),i.map((e=>(0,s.createElement)("script",{key:e,src:e})))));a.open(),a.write("<!DOCTYPE html>"+(0,s.renderToString)(d)),a.close()}return(0,s.useEffect)((()=>{function e(){h(!1)}function t(e){const t=l.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),p(n.height))}h();const{ownerDocument:n}=l.current,{defaultView:r}=n;return l.current.addEventListener("load",e,!1),r.addEventListener("message",t),()=>{var n;null===(n=l.current)||void 0===n||n.removeEventListener("load",e,!1),r.addEventListener("message",t)}}),[]),(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 JD=()=>{};var QD=(0,s.forwardRef)((function(e,t){let{className:n,children:r,spokenMessage:o=r,politeness:i="polite",actions:a=[],onRemove:l=JD,icon:d=null,explicitDismiss:f=!1,onDismiss:p=JD,listRef:m}=e;function h(e){e&&e.preventDefault&&e.preventDefault(),m.current.focus(),p(),l()}p=p||JD,function(e,t){const n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((()=>{n&&(0,vg.speak)(n,t)}),[n,t])}(o,i),(0,s.useEffect)((()=>{const e=setTimeout((()=>{f||(p(),l())}),1e4);return()=>clearTimeout(e)}),[p,l]);const v=c()(n,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});a&&a.length>1&&("undefined"!=typeof process&&process.env,a=[a[0]]);const g=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!d});return(0,s.createElement)("div",{ref:t,className:v,onClick:f?JD:h,tabIndex:"0",role:f?"":"button",onKeyPress:f?JD:h,"aria-label":f?"":(0,u.__)("Dismiss this notice")},(0,s.createElement)("div",{className:g},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)(wd,{key:t,href:o,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),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},"✕")))}));const eA=()=>{},tA={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}},nA={init:!1,open:!1,exit:!1};var rA=function(e){let{notices:t,className:n,children:r,onRemove:o=eA}=e;const i=(0,s.useRef)(),l=(0,d.useReducedMotion)();n=c()("components-snackbar-list",n);const u=e=>()=>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)(fc.div,{layout:!l,initial:"init",animate:"open",exit:"exit",key:e.id,variants:l?nA:tA},(0,s.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,s.createElement)(QD,a({},n,{onRemove:u(e),listRef:i}),e.content)))}))))};const oA=(function(){var e=Nf.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);
	}
 `,iA=hd("svg",{target:"ea4tfvq2"})("width:",Hm.spinnerSize,"px;height:",Hm.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:var( --wp-admin-theme-color );overflow:visible;"),aA={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},sA=hd("circle",{target:"ea4tfvq1"})(aA,";stroke:",cp.gray[300],";"),lA=hd("path",{target:"ea4tfvq0"})(aA,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",oA,";");const cA=(0,s.forwardRef)((function(e,t){let{className:n,...r}=e;return(0,s.createElement)(iA,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)(sA,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,s.createElement)(lA,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var uA=cA;var dA=od((function(e,t){const n=OC(e);return(0,s.createElement)(gd,a({},n,{ref:t}))}),"Surface");const fA=e=>{let{tabId:t,onClick:n,children:r,selected:o,...i}=e;return(0,s.createElement)(wd,a({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},i),r)};var pA=function e(t){var n;let{className:r,children:o,tabs:i,initialTabName:a,orientation:l="horizontal",activeClass:u="is-active",onSelect:f}=t;const p=(0,d.useInstanceId)(e,"tab-panel"),[m,h]=(0,s.useState)(),v=(0,bc.find)(i,{name:m}),g=`${p}-${null!==(n=null==v?void 0:v.name)&&void 0!==n?n:"none"}`;return(0,s.useEffect)((()=>{(0,bc.find)(i,{name:m})||h(a||(i.length>0?i[0].name:void 0))}),[i]),(0,s.createElement)("div",{className:r},(0,s.createElement)(sS,{role:"tablist",orientation:l,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},i.map((e=>(0,s.createElement)(fA,{className:c()("components-tab-panel__tabs-item",e.className,{[u]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>{return t=e.name,h(t),void(null==f||f(t));var t}},e.title)))),v&&(0,s.createElement)("div",{key:g,"aria-labelledby":g,role:"tabpanel",id:`${g}-view`,className:"components-tab-panel__tab-content"},o(v)))};const mA=(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)(mA)}`;return(0,s.createElement)(Ag,{__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 hA=mA;const vA=Nf("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Hm.radiusBlockUi,";border:",Hm.borderWidth," solid ",cp.ui.border,";",""),gA=Nf("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Hm.borderWidthFocus," - ",Hm.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;","");var bA={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const yA=Nf("font-family:",kg("default.fontFamily"),";padding:6px 8px;",vA,";font-size:",kg("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${bA["small"]})`,"{font-size:",kg("default.fontSize"),";line-height:normal;}&:focus{",gA,";}&::-webkit-input-placeholder{color:",cp.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",cp.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",cp.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",cp.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",cp.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",cp.ui.lightGrayPlaceholder,";}}","");const wA=hd("textarea",{target:"e1w5nnrk0"})("width:100%;",yA,";");var xA=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)(Ag,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:m,help:l,className:f},(0,s.createElement)(wA,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 _A=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,s.createElement)(s.Fragment,null,t);const o=new RegExp(`(${yg(r)})`,"gi");return(0,s.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,s.createElement)("mark",null)})};var EA=(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 CA=function(e){const{children:t}=e;return(0,s.createElement)("div",{className:"components-tip"},(0,s.createElement)(Sb,{icon:EA}),(0,s.createElement)("p",null,t))};var kA=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=nd()("components-toggle-control",a,!n&&Nf({marginBottom:xm(3)},"",""));let p,m;return i&&(p=u+"__help",m="function"==typeof i?i(o):i),(0,s.createElement)(Ag,{id:u,help:m,className:f,__nextHasNoMarginBottom:!0},(0,s.createElement)(gy,{justify:"flex-start",spacing:3},(0,s.createElement)(hP,{id:u,checked:o,onChange:function(e){l(e.target.checked)},"aria-describedby":p,disabled:c}),(0,s.createElement)("label",{htmlFor:u,className:"components-toggle-control__label"},r)))};var SA=(0,s.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,s.createElement)(rP,a({},o,{isIcon:!0,"aria-label":r,showTooltip:!0,ref:t}),(0,s.createElement)(gc,{icon:n}))})),TA=["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"],NA=TA,RA=z({as:"button",memo:!0,useHook:B({name:"ToolbarItem",compose:ke,keys:NA})});var MA=(0,s.createContext)();var IA=(0,s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const i=(0,s.useContext)(MA);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)(RA,a({},i,l,{as:r}),n):r?(0,s.createElement)(r,l,n):n(l)}));var PA=e=>(0,s.createElement)("div",{className:e.className},e.children);var OA=(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)(MA)?(0,s.createElement)(IA,a({className:c()("components-toolbar-button",r)},o,f,{ref:t}),(e=>(0,s.createElement)(wd,a({label:l,isPressed:u,disabled:d},e),i))):(0,s.createElement)(PA,{className:n},(0,s.createElement)(wd,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 DA=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)("div",a({className:t},r),n)};var AA=function(e){let{controls:t=[],toggleProps:n,...r}=e;const o=e=>(0,s.createElement)(uS,a({controls:t,toggleProps:{...e,"data-toolbar-item":!0}},r));return(0,s.useContext)(MA)?(0,s.createElement)(IA,n,o):o(n)};var LA=function(e){var t;let{controls:n=[],children:r,className:o,isCollapsed:i,title:l,...u}=e;const d=(0,s.useContext)(MA);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)(AA,a({label:l,controls:p,className:f,children:r},u)):(0,s.createElement)(DA,a({className:f},u),null===(t=p)||void 0===t?void 0:t.flatMap(((e,t)=>e.map(((e,n)=>(0,s.createElement)(OA,a({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e)))))),r)};var zA=B({name:"Toolbar",compose:Kp,keys:TA,useProps:function(e,t){return m({role:"toolbar","aria-orientation":e.orientation},t)}}),FA=z({as:"div",useHook:zA,useCreateElement:function(e,t,n){return N(e,t,n)}});var BA=(0,s.forwardRef)((function(e,t){let{label:n,...r}=e;const o=function(e){void 0===e&&(e={});var t=yp(e),n=t.orientation;return Vp(m({orientation:void 0===n?"horizontal":n},h(t,["orientation"])))}({loop:!0,baseId:r.id,rtl:(0,u.isRTL)()});return(0,s.createElement)(MA.Provider,{value:o},(0,s.createElement)(FA,a({ref:t,"aria-label":n},o,r)))}));var HA=(0,s.forwardRef)((function(e,t){let{className:n,label:r,...o}=e;if(!r)return hc()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,s.createElement)(LA,a({},o,{className:n}));const i=c()("components-accessible-toolbar",n);return(0,s.createElement)(BA,a({className:i,label:r,ref:t},o))}));var VA=(0,s.forwardRef)((function(e,t){return(0,s.useContext)(MA)?(0,s.createElement)(IA,a({ref:t},e.toggleProps),(t=>(0,s.createElement)(uS,a({},e,{popoverProps:{isAlternate:!0,...e.popoverProps},toggleProps:t})))):(0,s.createElement)(uS,e)}));const jA={columns:e=>Nf("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Nf("column-gap:",xm(2),";row-gap:",xm(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},$A={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},WA=Nf(jA.item.fullWidth," gap:",xm(2),";.components-dropdown-menu{margin:",xm(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",xm(6),";}",""),UA={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},GA=Nf(jA.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Tg,"{margin-bottom:0;",Ng,":last-child{margin-bottom:0;}}",Pg,"{margin-bottom:0;}&& ",wh,"{label{line-height:1.4em;}}",""),qA={name:"eivff4",styles:"display:none"},YA={name:"16gsvie",styles:"min-width:200px"},KA=()=>{},XA=(0,s.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:KA,deregisterPanelItem:KA,flagItemCustomization:KA,areAllOptionalControlsHidden:!0}),ZA=()=>(0,s.useContext)(XA);const JA=e=>{let{items:t,toggleItem:n}=e;return t.length?(0,s.createElement)(IP,null,t.map((e=>{let[t,r]=e;return r?(0,s.createElement)(PP,{key:t,role:"menuitem",icon:ok,label:(0,u.sprintf)((0,u.__)("Reset %s"),t),onClick:()=>{n(t),(0,vg.speak)((0,u.sprintf)((0,u.__)("%s reset to default"),t),"assertive")}},t):(0,s.createElement)(PP,{key:t,role:"menuitemcheckbox",icon:m_,isSelected:!0,"aria-disabled":!0},t)}))):null},QA=e=>{let{items:t,toggleItem:n}=e;return t.length?(0,s.createElement)(IP,null,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)(PP,{key:t,icon:r&&m_,isSelected:r,label:o,onClick:()=>{r?(0,vg.speak)((0,u.sprintf)((0,u.__)("%s hidden and reset to default"),t),"assertive"):(0,vg.speak)((0,u.sprintf)((0,u.__)("%s is now visible"),t),"assertive"),n(t)},role:"menuitemcheckbox"},t)}))):null};var eL=od(((e,t)=>{const{areAllOptionalControlsHidden:n,dropdownMenuClassName:r,hasMenuItems:o,headingClassName:i,label:l,menuItems:c,resetAll:d,toggleItem:f,...p}=function(e){const{className:t,...n}=rd(e,"ToolsPanelHeader"),r=nd(),o=(0,s.useMemo)((()=>r(WA,t)),[t,r]),i=(0,s.useMemo)((()=>r(YA)),[r]),a=(0,s.useMemo)((()=>r(UA)),[r]),{menuItems:l,hasMenuItems:c,areAllOptionalControlsHidden:u}=ZA();return{...n,areAllOptionalControlsHidden:u,dropdownMenuClassName:i,hasMenuItems:c,headingClassName:a,menuItems:l,className:o}}(e);if(!l)return null;const m=Object.entries((null==c?void 0:c.default)||{}),h=Object.entries((null==c?void 0:c.optional)||{}),v=n?sk:lk,g=(0,u.sprintf)((0,u._x)("%s options","Button label to reveal tool panel options"),l),b=n?(0,u.__)("All options are currently hidden"):void 0,y=[...m,...h].some((e=>{let[,t]=e;return t}));return(0,s.createElement)(gy,a({},p,{ref:t}),(0,s.createElement)(b_,{level:2,className:i},l),o&&(0,s.createElement)(uS,{icon:v,label:g,menuProps:{className:r},toggleProps:{isSmall:!0,describedBy:b}},(()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(JA,{items:m,toggleItem:f}),(0,s.createElement)(QA,{items:h,toggleItem:f}),(0,s.createElement)(IP,null,(0,s.createElement)(PP,{"aria-disabled":!y,variant:"tertiary",onClick:()=>{y&&(d(),(0,vg.speak)((0,u.__)("All options reset"),"assertive"))}},(0,u.__)("Reset all")))))))}),"ToolsPanelHeader");const tL=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=void 0!==c?c:i();o[l][s]=!n&&u})),o},nL=e=>e&&0===Object.keys(e).length;function rL(e){const{className:t,resetAll:n,panelId:r,hasInnerWrapper:o,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l,...c}=rd(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]),[v,g]=(0,s.useState)({default:{},optional:{}});(0,s.useEffect)((()=>{g((e=>tL({panelItems:f,shouldReset:!1,currentMenuItems:e})))}),[tL,f,g]);const b=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";g((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[g]),[y,w]=(0,s.useState)(!1);(0,s.useEffect)((()=>{if(nL(null==v?void 0:v.default)&&!nL(null==v?void 0:v.optional)){const e=!Object.entries(v.optional).some((e=>{let[,t]=e;return t}));w(e)}}),[v,w]);const x=nd(),_=(0,s.useMemo)((()=>{const e=o&&Nf(">div:not( :first-of-type ){display:grid;",jA.columns(2)," ",jA.spacing," ",jA.item.fullWidth,";}","");const n=nL(null==v?void 0:v.default)&&y&&$A;return x((e=>Nf(jA.columns(e)," ",jA.spacing," border-top:",Hm.borderWidth," solid ",cp.gray[300],";margin-top:-1px;padding:",xm(4),";",""))(2),e,n,t)}),[y,t,x,o,v]),E=(0,s.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...v,[n]:{...v[n],[e]:!v[n][e]}};g(r)}),[v,f,g]),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=tL({panelItems:f,shouldReset:!0});g(e)}),[tL,u.current,f,n,g]),k=e=>{const t=v.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:v,panelId:r,registerPanelItem:m,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l})),[y,h,S,b,u.current,T,v,r,f,m,i,a,l]),resetAllItems:C,toggleItem:E,className:_}}var oL=od(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:l,...c}=rL(e);return(0,s.createElement)(X_,a({},c,{columns:2,ref:t}),(0,s.createElement)(XA.Provider,{value:o},(0,s.createElement)(eL,{label:r,resetAll:i,toggleItem:l}),n))}),"ToolsPanel");var iL=od(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){var t,n;const{className:r,hasValue:o,isShownByDefault:i,label:a,panelId:l,resetAllFilter:c,onDeselect:u,onSelect:f,...p}=rd(e,"ToolsPanelItem"),{panelId:m,menuItems:h,registerPanelItem:v,deregisterPanelItem:g,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:_,__experimentalFirstVisibleItemClass:E,__experimentalLastVisibleItemClass:C}=ZA(),k=(0,s.useCallback)(o,[l]),S=(0,s.useCallback)(c,[l]),T=(0,d.usePrevious)(m),N=m===l||null===m;(0,s.useEffect)((()=>(N&&null!==T&&v({hasValue:k,isShownByDefault:i,label:a,resetAllFilter:S,panelId:l}),()=>{(null===T&&m||m===l)&&g(a)})),[m,N,i,a,k,l,T,S]);const R=o(),M=(0,d.usePrevious)(R);(0,s.useEffect)((()=>{i&&R&&!M&&b(a)}),[R,M,i,a]);const I=i?"default":"optional",P=null==h||null===(t=h[I])||void 0===t?void 0:t[a],O=(0,d.usePrevious)(P);(0,s.useEffect)((()=>{!y&&N&&(!P||R||O||null==f||f(),!P&&O&&(null==u||u()))}),[N,P,y,R,O]);const D=i?void 0!==(null==h||null===(n=h[I])||void 0===n?void 0:n[a]):P,A=nd(),L=(0,s.useMemo)((()=>A(GA,w&&!D&&qA,r,x===a&&E,_===a&&C)),[D,w,r,A,x,_,E,C]);return{...p,isShown:D,shouldRenderPlaceholder:w,className:L}}(e);return r?(0,s.createElement)(gd,a({},i,{ref:t}),n):o?(0,s.createElement)(gd,a({},i,{ref:t})):null}),"ToolsPanelItem");const aL=(0,s.createContext)(),sL=aL.Provider;function lL(e){let{children:t}=e;const[n,r]=(0,s.useState)(),o=(0,s.useMemo)((()=>({lastFocusedElement:n,setLastFocusedElement:r})),[n]);return(0,s.createElement)(sL,{value:o},t)}function cL(e){const t=tS.focus.focusable.find(e,{sequential:!0});if(t&&t.length)return t.filter((t=>t.closest('[role="row"]')===e))}var uL=(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||![mg.UP,mg.DOWN,mg.LEFT,mg.RIGHT,mg.HOME,mg.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=cL(u),f=d.indexOf(l),p=0===f,m=p&&"false"===u.getAttribute("aria-expanded")&&t===mg.RIGHT;if([mg.LEFT,mg.RIGHT].includes(t)){let n;if(n=t===mg.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(t===mg.LEFT){var h,v,g;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===(v=cL(r))||void 0===v||null===(g=v[0])||void 0===g||g.focus()}if(t===mg.RIGHT){if("false"===u.getAttribute("aria-expanded"))return r(u),void e.preventDefault();const t=cL(u);var b;if(t.length>0)null===(b=t[t.length-1])||void 0===b||b.focus()}return void e.preventDefault()}if(m)return;d[n].focus(),e.preventDefault()}else if([mg.UP,mg.DOWN].includes(t)){const n=Array.from(c.querySelectorAll('[role="row"]')),r=n.indexOf(u);let o;if(o=t===mg.UP?Math.max(0,r-1):Math.min(r+1,n.length-1),o===r)return void e.preventDefault();const a=cL(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([mg.HOME,mg.END].includes(t)){const n=Array.from(c.querySelectorAll('[role="row"]')),r=n.indexOf(u);let o;if(o=t===mg.HOME?0:n.length-1,o===r)return void e.preventDefault();const a=cL(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)(lL,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 dL=(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)})),fL=(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)(aL);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)})),pL=(0,s.forwardRef)((function(e,t){let{children:n,...r}=e;return(0,s.createElement)(fL,a({ref:t},r),n)})),mL=(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)(pL,{ref:t},n))}));function hL(e){e.stopPropagation()}var vL=(0,s.forwardRef)(((e,t)=>{let{children:n,...r}=e;return hc()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,s.createElement)("div",a({},r,{ref:t,onMouseDown:hL}),n)}));const gL=hd("div",{target:"ebn2ljm1"})({name:"5ob2ly",styles:"display:flex;position:relative"}),bL=hd("div",{target:"ebn2ljm0"})((e=>{let{isLayered:t,offsetAmount:n}=e;return Nf(t?uh({marginLeft:n})():uh({right:-1*n})(),"","")})," ",(e=>{let{isLayered:t}=e;return t?yL:wL})," ",(e=>{let{zIndex:t}=e;return Nf({zIndex:t},"","")}),";"),yL={name:"a4hmbt",styles:"position:absolute"},wL={name:"bjn8wh",styles:"position:relative"};const xL=od((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:l=0,...c}=rd(e,"ZStack"),u=hy(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)(bL,{isLayered:o,offsetAmount:r,zIndex:n,key:a},e)}));return(0,s.createElement)(gL,a({},c,{className:r,ref:t}),f)}),"ZStack");var _L=xL;const EL={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function CL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EL;const t=(0,s.useRef)(),[n,r]=(0,s.useState)(!1);function o(e){const n=Array.from(t.current.querySelectorAll('[role="region"]'));if(!n.length)return;let o=n[0];const i=n.indexOf(t.current.ownerDocument.activeElement);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 mg.isKeyboardEvent[n](t,r)}))?o(-1):e.next.some((e=>{let{modifier:n,character:r}=e;return mg.isKeyboardEvent[n](t,r)}))&&o(1)}}}var kL=(0,d.createHigherOrderComponent)((e=>t=>{let{shortcuts:n,...r}=t;return(0,s.createElement)("div",CL(n),(0,s.createElement)(e,r))}),"navigateRegions");var SL=(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"),TL=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);(0,bc.isEqual)(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:!!(0,bc.every)(t)})}}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"),NL=window.wp.hooks;function RL(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,NL.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,NL.addAction)("hookRemoved",n,a),(0,NL.addAction)("hookAdded",n,a))}componentWillUnmount(){o.instances=(0,bc.without)(o.instances,this),0===o.instances.length&&((0,NL.removeAction)("hookRemoved",n),(0,NL.removeAction)("hookAdded",n))}render(){return(0,s.createElement)(r,this.props)}}o.instances=[];const i=(0,bc.debounce)((()=>{r=(0,NL.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),16);function a(t){t===e&&i()}return o}),"withFilters")}var ML=(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 IL=e=>{let{children:t}=e;return hc()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),t};var PL=(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:jd()};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)(BO,{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}))}(),(window.wp=window.wp||{}).components=r}();

Zerion Mini Shell 1.0