@cube-dev/ui-kit 0.6.56 → 0.6.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/forms/TextInput/TextInput.d.ts +3 -1
- package/dist/cjs/index.d.ts +5 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/mjs/components/forms/TextInput/TextInput.d.ts +3 -1
- package/dist/mjs/index.d.ts +5 -1
- package/dist/mjs/index.js +5 -5
- package/dist/mjs/index.js.map +1 -1
- package/package.json +1 -1
package/dist/mjs/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.6.
|
|
4
|
+
* @cube-dev/ui-kit v0.6.57
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
|
-
import*as e from"react";import t,{createContext as n,useContext as r,useEffect as i,useState as o,useRef as a,useCallback as l,useMemo as s,useLayoutEffect as u,useImperativeHandle as c,Children as d,isValidElement as p,cloneElement as f,forwardRef as h,Fragment as v,createElement as g}from"react";import m,{createGlobalStyle as
|
|
7
|
+
import*as e from"react";import t,{createContext as n,useContext as r,useEffect as i,useState as o,useRef as a,useCallback as l,useMemo as s,useLayoutEffect as u,useImperativeHandle as c,Children as d,isValidElement as p,cloneElement as f,forwardRef as h,Fragment as v,createElement as g}from"react";import m,{createGlobalStyle as b,StyleSheetManager as y}from"styled-components";import x,{createPortal as w}from"react-dom";
|
|
8
8
|
/*! *****************************************************************************
|
|
9
9
|
Copyright (c) Microsoft Corporation.
|
|
10
10
|
|
|
@@ -29,7 +29,7 @@ object-assign
|
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
31
|
*/
|
|
32
|
-
!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)t.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function $(e){return e<=1?100*Number(e)+"%":e}function X(e){return 1===e.length?"0"+e:String(e)}function Y(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Z(e){return Q(e)/255}function Q(e){return parseInt(e,16)}var ee={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function te(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,l=null,s=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(ee[e])e=ee[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=oe.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=oe.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=oe.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=oe.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=oe.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=oe.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=oe.hex8.exec(e))return{r:Q(n[1]),g:Q(n[2]),b:Q(n[3]),a:Z(n[4]),format:t?"name":"hex8"};if(n=oe.hex6.exec(e))return{r:Q(n[1]),g:Q(n[2]),b:Q(n[3]),format:t?"name":"hex"};if(n=oe.hex4.exec(e))return{r:Q(n[1]+n[1]),g:Q(n[2]+n[2]),b:Q(n[3]+n[3]),a:Z(n[4]+n[4]),format:t?"name":"hex8"};if(n=oe.hex3.exec(e))return{r:Q(n[1]+n[1]),g:Q(n[2]+n[2]),b:Q(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ae(e.r)&&ae(e.g)&&ae(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*H(t,255),g:255*H(n,255),b:255*H(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):ae(e.h)&&ae(e.s)&&ae(e.v)?(a=$(e.s),l=$(e.v),i=function(e,t,n){e=6*H(e,360),t=H(t,100),n=H(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,o,o,l,n][s],g:255*[l,n,n,a,o,o][s],b:255*[o,o,l,n,n,a][s]}}(e.h,a,l),u=!0,c="hsv"):ae(e.h)&&ae(e.s)&&ae(e.l)&&(a=$(e.s),s=$(e.l),i=function(e,t,n){var r,i,o;if(e=H(e,360),t=H(t,100),n=H(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Y(l,a,e+1/3),i=Y(l,a,e),o=Y(l,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,s),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var ne="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",re="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",ie="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",oe={CSS_UNIT:new RegExp(ne),rgb:new RegExp("rgb"+re),rgba:new RegExp("rgba"+ie),hsl:new RegExp("hsl"+re),hsla:new RegExp("hsla"+ie),hsv:new RegExp("hsv"+re),hsva:new RegExp("hsva"+ie),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ae(e){return Boolean(oe.CSS_UNIT.exec(String(e)))}var le=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function se(e){var t=function(e,t,n){e=H(e,255),t=H(t,255),n=H(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=0===r?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:s,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ue(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var i=[X(Math.round(e).toString(16)),X(Math.round(t).toString(16)),X(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,n,r,!1))}function ce(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function de(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function pe(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function fe(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function he(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=te(e),i=5;i>0;i-=1){var o=se(r),a=ue(te({h:de(o,i,!0),s:pe(o,i,!0),v:fe(o,i,!0)}));n.push(a)}n.push(ue(r));for(var l=1;l<=4;l+=1){var s=se(r),u=ue(te({h:de(s,l),s:pe(s,l),v:fe(s,l)}));n.push(u)}return"dark"===t.theme?le.map((function(e){var r=e.index,i=e.opacity;return ue(ce(te(t.backgroundColor||"#141414"),te(n[r]),100*i))})):n}var ve={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ge={},me={};Object.keys(ve).forEach((function(e){ge[e]=he(ve[e]),ge[e].primary=ge[e][5],me[e]=he(ve[e],{theme:"dark",backgroundColor:"#141414"}),me[e].primary=me[e][5]})),ge.red,ge.volcano,ge.gold,ge.orange,ge.yellow,ge.lime,ge.green,ge.cyan,ge.blue,ge.geekblue,ge.purple,ge.magenta,ge.grey;var ye={};function be(e,t){}function xe(e,t){!function(e,t,n){t||ye[n]||(e(!1,n),ye[n]=!0)}(be,e,t)}function we(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Se(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ee(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!we())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=Se(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var ke=new Map;function Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Se(n);if(!ke.has(r)){var i=Ee("",n),o=i.parentNode;ke.set(r,o),o.removeChild(i)}var a=Array.from(ke.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(a){var l,s,u;if((null===(l=n.csp)||void 0===l?void 0:l.nonce)&&a.nonce!==(null===(s=n.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(u=n.csp)||void 0===u?void 0:u.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=Ee(e,n);return c["rc-util-key"]=t,c}function Te(e){return"object"===J(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===J(e.icon)||"function"==typeof e.icon)}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function Oe(e,n,r){return r?t.createElement(e.tag,V(V({key:n},Ce(e.attrs)),r),(e.children||[]).map((function(t,r){return Oe(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,V({key:n},Ce(e.attrs)),(e.children||[]).map((function(t,r){return Oe(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Ne(e){return he(e)[0]}function je(e){return e?Array.isArray(e)?e:[e]:[]}var Ae="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Le=["icon","className","onClick","style","primaryColor","secondaryColor"],Fe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var De=function(e){var t,n,o=e.icon,a=e.className,l=e.onClick,s=e.style,u=e.primaryColor,c=e.secondaryColor,d=W(e,Le),p=Fe;if(u&&(p={primaryColor:u,secondaryColor:c||Ne(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae,t=r(_).csp;i((function(){Pe(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=Te(o),n="icon should be icon definiton, but got ".concat(o),xe(t,"[@ant-design/icons] ".concat(n)),!Te(o))return null;var f=o;return f&&"function"==typeof f.icon&&(f=V(V({},f),{},{icon:f.icon(p.primaryColor,p.secondaryColor)})),Oe(f.icon,"svg-".concat(f.name),V({className:a,onClick:l,style:s,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};De.displayName="IconReact",De.getTwoToneColors=function(){return V({},Fe)},De.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Fe.primaryColor=t,Fe.secondaryColor=n||Ne(t),Fe.calculated=!!n};var Re=De;function Ie(e){var t=B(je(e),2),n=t[0],r=t[1];return Re.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Me=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ie("#1890ff");var _e=e.forwardRef((function(t,n){var r,i=t.className,o=t.icon,a=t.spin,l=t.rotate,s=t.tabIndex,u=t.onClick,c=t.twoToneColor,d=W(t,Me),p=e.useContext(_).prefixCls,f=void 0===p?"anticon":p,h=G(f,(z(r={},"".concat(f,"-").concat(o.name),!!o.name),z(r,"".concat(f,"-spin"),!!a||"loading"===o.name),r),i),v=s;void 0===v&&u&&(v=-1);var g=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=B(je(c),2),y=m[0],b=m[1];return e.createElement("span",V(V({role:"img","aria-label":o.name},d),{},{ref:n,tabIndex:v,onClick:u,className:h}),e.createElement(Re,{icon:o,primaryColor:y,secondaryColor:b,style:g}))}));_e.displayName="AntdIcon",_e.getTwoToneColor=function(){var e=Re.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},_e.setTwoToneColor=Ie;var ze=_e,Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ve=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ke}))};Ve.displayName="CaretDownOutlined";var Ue=e.forwardRef(Ve),Be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},qe=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Be}))};qe.displayName="CaretUpOutlined";var We=e.forwardRef(qe),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Je=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ge}))};Je.displayName="CheckOutlined";var He=e.forwardRef(Je),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},Xe=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:$e}))};Xe.displayName="CloseOutlined";var Ye=e.forwardRef(Xe),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Qe=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ze}))};Qe.displayName="CopyOutlined";var et=e.forwardRef(Qe),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 804a64 64 0 10128 0 64 64 0 10-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"exclamation",theme:"outlined"},nt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:tt}))};nt.displayName="ExclamationOutlined";var rt=e.forwardRef(nt),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ot=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:it}))};ot.displayName="EyeInvisibleOutlined";var at=e.forwardRef(ot),lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},st=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:lt}))};st.displayName="EyeOutlined";var ut=e.forwardRef(st),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},dt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:ct}))};dt.displayName="FileOutlined";var pt=e.forwardRef(dt),ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"}}]},name:"folder",theme:"filled"},ht=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:ft}))};ht.displayName="FolderFilled";var vt=e.forwardRef(ht),gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z"}}]},name:"folder-open",theme:"filled"},mt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:gt}))};mt.displayName="FolderOpenFilled";var yt=e.forwardRef(mt),bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},xt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:bt}))};xt.displayName="InfoCircleOutlined";var wt=e.forwardRef(xt),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 224a64 64 0 10128 0 64 64 0 10-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"}}]},name:"info",theme:"outlined"},Et=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:St}))};Et.displayName="InfoOutlined";var kt=e.forwardRef(Et),Pt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Tt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Pt}))};Tt.displayName="LoadingOutlined";var Ct=e.forwardRef(Tt),Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Nt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ot}))};Nt.displayName="SearchOutlined";var jt=e.forwardRef(Nt),At={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},Lt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:At}))};Lt.displayName="WarningOutlined";var Ft=e.forwardRef(Lt);function Dt(e,t,n){let[r,i]=o(e||t),s=a(void 0!==e),u=s.current,c=void 0!==e,d=a(r);u!==c&&console.warn("WARN: A component changed from "+(u?"controlled":"uncontrolled")+" to "+(c?"controlled":"uncontrolled")+"."),s.current=c;let p=l((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let a=function(e){if(n&&!Object.is(d.current,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,...r)}c||(d.current=e)};if("function"==typeof e){i((function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let l=e(c?d.current:t,...i);return a(l,...r),c?t:l}))}else c||i(e),a(e,...r)}),[c,n]);return c?d.current=e:e=r,[e,p]}function Rt(e,t,n,r){let i=(e-(isNaN(t)?0:t))%r,o=2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i;isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(n/r)*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor((n-t)/r)*r);let a=r.toString(),l=a.indexOf("."),s=l>=0?a.length-l:0;if(s>0){let e=Math.pow(10,s);o=Math.round(o*e)/e}return o}function It(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=It(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Mt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=It(e))&&(r&&(r+=" "),r+=t);return r}function _t(){return(_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}).apply(this,arguments)}const zt={prefix:String(Math.round(1e10*Math.random())),current:0},Kt=t.createContext(zt);function Vt(e){let n=r(Kt),i=s((()=>({prefix:n===zt?"":n.prefix+"-"+ ++n.current,current:0})),[n]);return t.createElement(Kt.Provider,{value:i},e.children)}let Ut=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Bt(e){let t=r(Kt);return t!==zt||Ut||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),s((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}function qt(){let e=r(Kt)!==zt,[t,n]=o(e);return"undefined"!=typeof window&&e&&u((()=>{n(!1)}),[]),t}const Wt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Gt=new Map;function Jt(e){let t=a(!0);t.current=!0;let[n,r]=o(e),l=a(null),s=Bt(n),u=e=>{t.current?l.current=e:r(e)};return Gt.set(s,u),Wt((()=>{t.current=!1}),[u]),Wt((()=>{let e=s;return()=>{Gt.delete(e)}}),[s]),i((()=>{let e=l.current;e&&(r(e),l.current=null)}),[r,u]),s}function Ht(e,t){if(e===t)return e;let n=Gt.get(e);if(n)return n(t),t;let r=Gt.get(t);return r?(r(e),e):t}function $t(){let e=Jt(),[t,n]=o(e);return Wt((()=>{Gt.get(e)&&!document.getElementById(e)?n(null):n(e)}),[e]),t}function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(let e of t)"function"==typeof e&&e(...arguments)}}function Yt(){let e=_t({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){let n=t<0||arguments.length<=t?void 0:arguments[t];for(let t in n){let r=e[t],i=n[t];"function"==typeof r&&"function"==typeof i&&"o"===t[0]&&"n"===t[1]&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?e[t]=Xt(r,i):"className"!==t&&"UNSAFE_className"!==t||"string"!=typeof r||"string"!=typeof i?"id"===t&&r&&i?e.id=Ht(r,i):e[t]=void 0!==i?i:r:e[t]=Mt(r,i)}}return e}const Zt=new Set(["id"]),Qt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),en=/^(data-.*)$/;function tn(e,t){void 0===t&&(t={});let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Zt.has(t)||n&&Qt.has(t)||null!=r&&r.has(t)||en.test(t))&&(i[t]=e[t]);return i}function nn(e){if(function(){if(null==rn){rn=!1;try{document.createElement("div").focus({get preventScroll(){return rn=!0,!0}})}catch(e){}}return rn}())e.focus({preventScroll:!0});else{let t=function(e){var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let rn=null;let on=new Map,an=new Set;function ln(){if("undefined"==typeof window)return;let e=t=>{let n=on.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),on.delete(t.target)),0===on.size)){for(let e of an)e();an.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=on.get(t.target);n||(n=new Set,on.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function sn(e){requestAnimationFrame((()=>{0===on.size?e():an.add(e)}))}function un(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Jt(n),i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function cn(e,t){Wt((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function dn(e){for(;e&&!pn(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function pn(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?ln():document.addEventListener("DOMContentLoaded",ln));let fn="undefined"!=typeof window&&window.visualViewport;function hn(){let[e,t]=o((()=>vn()));return i((()=>{let e=()=>{t((e=>{let t=vn();return t.width===e.width&&t.height===e.height?e:t}))};return fn?fn.addEventListener("resize",e):window.addEventListener("resize",e),()=>{fn?fn.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function vn(){return{width:(null==fn?void 0:fn.width)||window.innerWidth,height:(null==fn?void 0:fn.height)||window.innerHeight}}function gn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function mn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function yn(){return mn(/^Mac/)}function bn(){return mn(/^iPhone/)}function xn(){return bn()||mn(/^iPad/)||yn()&&navigator.maxTouchPoints>1}function wn(){return yn()||xn()}function Sn(){return gn(/AppleWebKit/)&&!gn(/Chrome/)}function En(e,t,n,r){let o=a(n);o.current=n;let l=null==n;i((()=>{if(l)return;let n=e.current,i=e=>o.current.call(this,e);return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,l])}let kn=new Map,Pn=!1;try{Pn="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let Tn=!1;try{Tn="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Cn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class On{constructor(e,t){void 0===t&&(t={}),this.numberFormatter=void 0,this.options=void 0,this.numberFormatter=function(e,t){void 0===t&&(t={});let{numberingSystem:n}=t;n&&-1===e.indexOf("-u-nu-")&&(e=e+"-u-nu-"+n);if("unit"===t.style&&!Tn){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(null==(r=Cn[e])||!r[n])throw new Error("Unsupported unit "+e+" with unitDisplay = "+n);t=_t({},t,{style:"decimal"})}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(kn.has(i))return kn.get(i);let o=new Intl.NumberFormat(e,t);return kn.set(i,o),o}(e,t),this.options=t}format(e){let t="";if(t=Pn||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Tn){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions(),o=null==(n=Cn[e])?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Pn||null==this.options.signDisplay||(e=_t({},e,{signDisplay:this.options.signDisplay})),Tn||"unit"!==this.options.style||(e=_t({},e,{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}const Nn=new RegExp("^.*\\(.*\\).*$"),jn=["latn","arab","hanidec"];class An{constructor(e,t){void 0===t&&(t={}),this.locale=void 0,this.options=void 0,this.locale=e,this.options=t}parse(e){return Fn(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Fn(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Fn(this.locale,this.options,e).options.numberingSystem}}const Ln=new Map;function Fn(e,t,n){let r=Dn(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of jn)if(i!==r.options.numberingSystem){let r=Dn(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function Dn(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Ln.get(n);return r||(r=new Rn(e,t),Ln.set(n,r)),r}class Rn{constructor(e,t){void 0===t&&(t={}),this.formatter=void 0,this.options=void 0,this.symbols=void 0,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n){var r,i,o,a,l;let s=e.formatToParts(-10000.111),u=e.formatToParts(10000.111),c=e.formatToParts(1),d=null!=(r=null==(i=s.find((e=>"minusSign"===e.type)))?void 0:i.value)?r:"-",p=null==(o=u.find((e=>"plusSign"===e.type)))?void 0:o.value;p||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(p="+");let f=null==(a=s.find((e=>"decimal"===e.type)))?void 0:a.value,h=null==(l=s.find((e=>"group"===e.type)))?void 0:l.value,v=s.filter((e=>!In.has(e.type))).map((e=>_n(e.value))),g=c.filter((e=>!In.has(e.type))).map((e=>_n(e.value))),m=[...new Set([...g,...v])].sort(((e,t)=>t.length-e.length)),y=new RegExp(m.join("|")+"|[\\p{White_Space}]","gu"),b=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),x=new Map(b.map(((e,t)=>[e,t]))),w=new RegExp("["+b.join("")+"]","g");return{minusSign:d,plusSign:p,decimal:f,group:h,literals:y,numeral:w,index:e=>String(x.get(e))}}(this.formatter,this.options,t)}parse(e){let t=this.sanitize(e);t=Mn(t,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=t?+t:NaN;if(isNaN(n))return NaN;var r;("accounting"===this.options.currencySign&&Nn.test(e)&&(n*=-1),"percent"===this.options.style)&&(n/=100,n=+n.toFixed((null!=(r=this.options.maximumFractionDigits)?r:0)+2));return n}sanitize(e){return e=(e=e.replace(this.symbols.literals,"")).replace("-",this.symbols.minusSign),"arab"===this.options.numberingSystem&&(e=Mn(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(e=Mn(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),(e=this.sanitize(e)).startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!e.startsWith(this.symbols.group)&&0===(e=Mn(e,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}}const In=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function Mn(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function _n(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var zn,Kn,Vn;function Un(e){return e.type===Kn.literal}function Bn(e){return e.type===Kn.argument}function qn(e){return e.type===Kn.number}function Wn(e){return e.type===Kn.date}function Gn(e){return e.type===Kn.time}function Jn(e){return e.type===Kn.select}function Hn(e){return e.type===Kn.plural}function $n(e){return e.type===Kn.pound}function Xn(e){return e.type===Kn.tag}function Yn(e){return!(!e||"object"!=typeof e||e.type!==Vn.number)}function Zn(e){return!(!e||"object"!=typeof e||e.type!==Vn.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(zn||(zn={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Kn||(Kn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Vn||(Vn={}));var Qn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,er=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function tr(e){var t={};return e.replace(er,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var nr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var rr,ir=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,or=/^(@+)?(\+|#+)?$/g,ar=/(\*)(0+)|(#+)(0+)|(0+)/g,lr=/^(0+)$/;function sr(e){var t={};return e.replace(or,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function ur(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function cr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function dr(e){var t=ur(e);return t||{}}function pr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return k(k({},e),dr(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return k(k({},e),dr(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ar,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(lr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(ir.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ir,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=k(k({},t),sr(i.options[0])))}else if(or.test(i.stem))t=k(k({},t),sr(i.stem));else{var o=ur(i.stem);o&&(t=k(k({},t),o));var a=cr(i.stem);a&&(t=k(k({},t),a))}}return t}var fr=new RegExp("^"+Qn.source+"*"),hr=new RegExp(Qn.source+"*$");function vr(e,t){return{start:e,end:t}}var gr=!!String.prototype.startsWith,mr=!!String.fromCodePoint,yr=!!Object.fromEntries,br=!!String.prototype.codePointAt,xr=!!String.prototype.trimStart,wr=!!String.prototype.trimEnd,Sr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Er=!0;try{Er="a"===(null===(rr=Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===rr?void 0:rr[0])}catch(e){Er=!1}var kr,Pr=gr?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Tr=mr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Cr=yr?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Or=br?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Nr=xr?function(e){return e.trimStart()}:function(e){return e.replace(fr,"")},jr=wr?function(e){return e.trimEnd()}:function(e){return e.replace(hr,"")};function Ar(e,t){return new RegExp(e,t)}if(Er){var Lr=Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kr=function(e,t){var n;return Lr.lastIndex=t,null!==(n=Lr.exec(e)[1])&&void 0!==n?n:""}}else kr=function(e,t){for(var n=[];;){var r=Or(e,t);if(void 0===r||Rr(r)||Ir(r))break;n.push(r),t+=r>=65536?2:1}return Tr.apply(void 0,n)};var Fr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(zn.UNMATCHED_CLOSING_TAG,vr(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Dr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Kn.pound,location:vr(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Kn.literal,value:"<"+r+"/>",location:vr(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dr(this.char()))return this.error(zn.INVALID_TAG,vr(a,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(zn.UNMATCHED_CLOSING_TAG,vr(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Kn.tag,value:r,children:o,location:vr(n,this.clonePosition())},err:null}:this.error(zn.INVALID_TAG,vr(a,this.clonePosition())))}return this.error(zn.UNCLOSED_TAG,vr(n,this.clonePosition()))}return this.error(zn.INVALID_TAG,vr(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var l=vr(n,this.clonePosition());return{val:{type:Kn.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Dr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Tr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Tr(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(zn.EMPTY_ARGUMENT,vr(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(zn.MALFORMED_ARGUMENT,vr(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Kn.argument,value:r,location:vr(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(zn.MALFORMED_ARGUMENT,vr(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=kr(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:vr(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(zn.EXPECT_ARGUMENT_TYPE,vr(o,l));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=jr(g.val)).length)return this.error(zn.EXPECT_ARGUMENT_STYLE,vr(this.clonePosition(),this.clonePosition()));s={style:p,styleLocation:vr(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(r)).err)return m;var c=vr(r,this.clonePosition());if(s&&Pr(null==s?void 0:s.style,"::",0)){var d=Nr(s.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,s.styleLocation)).err?g:{val:{type:Kn.number,value:n,location:c,style:g.val},err:null};if(0===d.length)return this.error(zn.EXPECT_DATE_TIME_SKELETON,c);var p={type:Vn.dateTime,pattern:d,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?tr(d):{}};return{val:{type:"date"===a?Kn.date:Kn.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===a?Kn.number:"date"===a?Kn.date:Kn.time,value:n,location:c,style:null!==(i=null==s?void 0:s.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(zn.EXPECT_SELECT_ARGUMENT_OPTIONS,vr(f,k({},f)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(zn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vr(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(zn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,zn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),h=this.parseIdentifierIfPossible(),v=g.val}var m,y=this.tryParsePluralOrSelectOptions(e,a,t,h);if(y.err)return y;if((m=this.tryParseArgumentClose(r)).err)return m;var b=vr(r,this.clonePosition());return"select"===a?{val:{type:Kn.select,value:n,options:Cr(y.val),location:b},err:null}:{val:{type:Kn.plural,value:n,options:Cr(y.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(zn.INVALID_ARGUMENT_TYPE,vr(o,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(zn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,vr(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(nr).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),l=0,s=a;l<s.length;l++)if(0===s[l].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(zn.INVALID_NUMBER_SKELETON,t)}return{val:{type:Vn.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?pr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],l=new Set,s=r.value,u=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(zn.EXPECT_PLURAL_ARGUMENT_SELECTOR,zn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=vr(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(l.has(s))return this.error("select"===t?zn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:zn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?zn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:zn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,vr(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var h=this.tryParseArgumentClose(p);if(h.err)return h;a.push([s,{value:f.val,location:vr(p,this.clonePosition())}]),l.add(s),this.bumpSpace(),s=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?zn.EXPECT_SELECT_ARGUMENT_SELECTOR:zn.EXPECT_PLURAL_ARGUMENT_SELECTOR,vr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(zn.MISSING_OTHER_CLAUSE,vr(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var l=vr(r,this.clonePosition());return i?Sr(o*=n)?{val:o,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Or(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Pr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Rr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Dr(e){return e>=97&&e<=122||e>=65&&e<=90}function Rr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ir(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Mr(e){e.forEach((function(e){if(delete e.location,Jn(e)||Hn(e))for(var t in e.options)delete e.options[t].location,Mr(e.options[t].value);else qn(e)&&Yn(e.style)||(Wn(e)||Gn(e))&&Zn(e.style)?delete e.style.location:Xn(e)&&Mr(e.children)}))}function _r(e,t){void 0===t&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Fr(e,t).parse();if(n.err){var r=SyntaxError(zn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Mr(n.val),n.val}function zr(e,t){var n=t&&t.cache?t.cache:Jr,r=t&&t.serializer?t.serializer:qr;return(t&&t.strategy?t.strategy:Br)(e,{cache:n,serializer:r})}function Kr(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function Vr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function Ur(e,t,n,r,i){return n.bind(t,e,r,i)}function Br(e,t){return Ur(e,this,1===e.length?Kr:Vr,t.cache.create(),t.serializer)}var qr=function(){return JSON.stringify(arguments)};function Wr(){this.cache=Object.create(null)}Wr.prototype.get=function(e){return this.cache[e]},Wr.prototype.set=function(e,t){this.cache[e]=t};var Gr,Jr={create:function(){return new Wr}},Hr={variadic:function(e,t){return Ur(e,this,Vr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ur(e,this,Kr,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Gr||(Gr={}));var $r,Xr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return E(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Yr=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Gr.INVALID_VALUE,i)||this}return E(t,e),t}(Xr),Zr=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Gr.INVALID_VALUE,r)||this}return E(t,e),t}(Xr),Qr=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Gr.MISSING_VALUE,n)||this}return E(t,e),t}(Xr);function ei(e){return"function"==typeof e}function ti(e,t,n,r,i,o,a){if(1===e.length&&Un(e[0]))return[{type:$r.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(Un(c))l.push({type:$r.literal,value:c.value});else if($n(c))"number"==typeof o&&l.push({type:$r.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!i||!(d in i))throw new Qr(d,a);var p=i[d];if(Bn(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),l.push({type:"string"==typeof p?$r.literal:$r.object,value:p});else if(Wn(c)){var f="string"==typeof c.style?r.date[c.style]:Zn(c.style)?c.style.parsedOptions:void 0;l.push({type:$r.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(Gn(c)){f="string"==typeof c.style?r.time[c.style]:Zn(c.style)?c.style.parsedOptions:void 0;l.push({type:$r.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(qn(c)){(f="string"==typeof c.style?r.number[c.style]:Yn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),l.push({type:$r.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(Xn(c)){var h=c.children,v=c.value,g=i[v];if(!ei(g))throw new Zr(v,"function",a);var m=g(ti(h,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),l.push.apply(l,m.map((function(e){return{type:"string"==typeof e?$r.literal:$r.object,value:e}})))}if(Jn(c)){if(!(y=c.options[p]||c.options.other))throw new Yr(c.value,p,Object.keys(c.options),a);l.push.apply(l,ti(y.value,t,n,r,i))}else if(Hn(c)){var y;if(!(y=c.options["="+p])){if(!Intl.PluralRules)throw new Xr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gr.MISSING_INTL_API,a);var b=n.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));y=c.options[b]||c.options.other}if(!y)throw new Yr(c.value,p,Object.keys(c.options),a);l.push.apply(l,ti(y.value,t,n,r,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===$r.literal&&t.type===$r.literal?n.value+=t.value:e.push(t),e}),[])}(l)}function ni(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?k(k(k({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=k(k({},i[t]),o[t]||{}),e}),{})):i),n}),k({},e)):e}function ri(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}($r||($r={}));var ii=function(){function e(t,n,r,i){var o,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===$r.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return ti(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ni(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,j([void 0],t)))}),{cache:ri(o.number),strategy:Hr.variadic}),getDateTimeFormat:zr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,j([void 0],t)))}),{cache:ri(o.dateTime),strategy:Hr.variadic}),getPluralRules:zr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,j([void 0],t)))}),{cache:ri(o.pluralRules),strategy:Hr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=_r,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class oi{constructor(e,t){void 0===t&&(t="en-US"),this.messages=void 0,this.defaultLocale=void 0,this.messages=_t({},e),this.defaultLocale=t}getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n){void 0===n&&(n="en-US");if(t[e])return t[e];let r=function(e){if(Intl.Locale)return new Intl.Locale(e).language;return e.split("-")[0]}(e);for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error("Could not find intl message "+e+" in "+t+" locale");return r}}class ai{constructor(e,t){this.locale=void 0,this.messages=void 0,this.cache=void 0,this.locale=e,this.messages=t,this.cache={}}format(e,t){let n=this.cache[e];if(!n){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error("Could not find intl message "+e+" in "+this.locale+" locale");n=new ii(t,this.locale),this.cache[e]=n}return n.format(t)}}const li=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),si=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ui(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return li.has(t)}let t=e.split("-")[0];return si.has(t)}function ci(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:ui(e)?"rtl":"ltr"}}let di=ci(),pi=new Set;function fi(){di=ci();for(let e of pi)e(di)}const hi=t.createContext(null);function vi(){let e=function(){let e=qt(),[t,n]=o(di);return i((()=>(0===pi.size&&window.addEventListener("languagechange",fi),pi.add(n),()=>{pi.delete(n),0===pi.size&&window.removeEventListener("languagechange",fi)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return r(hi)||e}const gi=new WeakMap;function mi(e){let{locale:t}=vi(),n=s((()=>function(e){let t=gi.get(e);return t||(t=new oi(e),gi.set(e,t)),t}(e)),[e]),r=s((()=>new ai(t,n)),[t,n]);return l(((e,t)=>r.format(e,t)),[r])}let yi=new Map;function bi(e){let{locale:t}=vi(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(yi.has(n))return yi.get(n);let r=new Intl.Collator(t,e);return yi.set(n,r),r}function xi(e){return{UNSAFE_getDOMNode:()=>e.current}}function wi(e,t){return void 0===t&&(t=e),_t({},xi(e),{focus(){t.current&&t.current.focus()}})}function Si(e){let t=a(null);return c(e,(()=>xi(t))),t}function Ei(e,t){let n=a(null);return c(e,(()=>wi(n,t))),n}t.createContext(null).displayName="BreakpointContext";function ki(e,t){return n=>"rtl"===n?t:e}_t({},{margin:["margin",Oi],marginStart:[ki("marginLeft","marginRight"),Oi],marginEnd:[ki("marginRight","marginLeft"),Oi],marginTop:["marginTop",Oi],marginBottom:["marginBottom",Oi],marginX:[["marginLeft","marginRight"],Oi],marginY:[["marginTop","marginBottom"],Oi],width:["width",Oi],height:["height",Oi],minWidth:["minWidth",Oi],minHeight:["minHeight",Oi],maxWidth:["maxWidth",Oi],maxHeight:["maxHeight",Oi],isHidden:["display",function(e){return e?"none":void 0}],alignSelf:["alignSelf",Di],justifySelf:["justifySelf",Di],position:["position",Fi],zIndex:["zIndex",Fi],top:["top",Oi],bottom:["bottom",Oi],start:[ki("left","right"),Oi],end:[ki("right","left"),Oi],left:["left",Oi],right:["right",Oi],order:["order",Fi],flex:["flex",function(e){if("boolean"==typeof e)return e?"1":void 0;return""+e}],flexGrow:["flexGrow",Di],flexShrink:["flexShrink",Di],flexBasis:["flexBasis",Di],gridArea:["gridArea",Di],gridColumn:["gridColumn",Di],gridColumnEnd:["gridColumnEnd",Di],gridColumnStart:["gridColumnStart",Di],gridRow:["gridRow",Di],gridRowEnd:["gridRowEnd",Di],gridRowStart:["gridRowStart",Di]},{backgroundColor:["backgroundColor",function(e){return"var(--spectrum-alias-background-color-"+e+", "+Ni(e,"background")+")"}],borderWidth:["borderWidth",Ai],borderStartWidth:[ki("borderLeftWidth","borderRightWidth"),Ai],borderEndWidth:[ki("borderRightWidth","borderLeftWidth"),Ai],borderLeftWidth:["borderLeftWidth",Ai],borderRightWidth:["borderRightWidth",Ai],borderTopWidth:["borderTopWidth",Ai],borderBottomWidth:["borderBottomWidth",Ai],borderXWidth:[["borderLeftWidth","borderRightWidth"],Ai],borderYWidth:[["borderTopWidth","borderBottomWidth"],Ai],borderColor:["borderColor",ji],borderStartColor:[ki("borderLeftColor","borderRightColor"),ji],borderEndColor:[ki("borderRightColor","borderLeftColor"),ji],borderLeftColor:["borderLeftColor",ji],borderRightColor:["borderRightColor",ji],borderTopColor:["borderTopColor",ji],borderBottomColor:["borderBottomColor",ji],borderXColor:[["borderLeftColor","borderRightColor"],ji],borderYColor:[["borderTopColor","borderBottomColor"],ji],borderRadius:["borderRadius",Li],borderTopStartRadius:[ki("borderTopLeftRadius","borderTopRightRadius"),Li],borderTopEndRadius:[ki("borderTopRightRadius","borderTopLeftRadius"),Li],borderBottomStartRadius:[ki("borderBottomLeftRadius","borderBottomRightRadius"),Li],borderBottomEndRadius:[ki("borderBottomRightRadius","borderBottomLeftRadius"),Li],borderTopLeftRadius:["borderTopLeftRadius",Li],borderTopRightRadius:["borderTopRightRadius",Li],borderBottomLeftRadius:["borderBottomLeftRadius",Li],borderBottomRightRadius:["borderBottomRightRadius",Li],padding:["padding",Oi],paddingStart:[ki("paddingLeft","paddingRight"),Oi],paddingEnd:[ki("paddingRight","paddingLeft"),Oi],paddingLeft:["paddingLeft",Oi],paddingRight:["paddingRight",Oi],paddingTop:["paddingTop",Oi],paddingBottom:["paddingBottom",Oi],paddingX:[["paddingLeft","paddingRight"],Oi],paddingY:[["paddingTop","paddingBottom"],Oi],overflow:["overflow",Di]});const Pi=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,Ti=/^\s*\w+\(/,Ci=/(static-)?size-\d+|single-line-(height|width)/g;function Oi(e){return"number"==typeof e?e+"px":Pi.test(e)?e:Ti.test(e)?e.replace(Ci,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):"var(--spectrum-global-dimension-"+e+", var(--spectrum-alias-"+e+"))"}function Ni(e,t){return void 0===t&&(t="default"),"var(--spectrum-global-color-"+e+", var(--spectrum-semantic-"+e+"-color-"+t+"))"}function ji(e){return"default"===e?"var(--spectrum-alias-border-color)":"var(--spectrum-alias-border-color-"+e+", "+Ni(e,"border")+")"}function Ai(e){return"var(--spectrum-alias-border-size-"+e+")"}function Li(e){return"var(--spectrum-alias-border-radius-"+e+")"}function Fi(e){return e}function Di(e){return e}var Ri=n({});function Ii(e){var t=e.children,n=P(e,["children"]),i=Object.assign({},r(Ri));return Object.keys(n).forEach((function(e){i[e]?i[e]=j(j([],N(i[e]),!1),[n[e]],!1):i[e]=[n[e]]})),M.jsx(Ri.Provider,k({value:i},{children:t}),void 0)}function Mi(e,t){var n=r(Ri),i={};return n[e]&&n[e].forEach((function(e){Object.assign(i,"function"==typeof e?e(t):e)})),i}var _i=n([980]);function zi(e){var t=e.value,n=e.children;return M.jsx(_i.Provider,k({value:t},{children:n}),void 0)}var Ki=n({});function Vi(e){var t=e.breakpoints,n=e.children,i=e.insideForm,o=e.isDisabled,a=e.isReadOnly,l=e.isRequired,s=e.validationState,u=e.router,c=e.styles,d=e.root,p=e.ref;c&&(n=M.jsx(Ii,k({},c,{children:n}),void 0)),t&&(n=M.jsx(zi,k({value:t},{children:n}),void 0));var f=r(Ki),h={ref:p,breakpoints:t,insideForm:i,isDisabled:o,isReadOnly:a,isRequired:l,validationState:s,router:u,root:d},v=Object.assign({},f);return Object.keys(h).forEach((function(e){null!=h[e]&&(v[e]=h[e])})),M.jsx(Ki.Provider,k({value:v},{children:n}),void 0)}function Ui(e){var t=r(Ki);return k(k({},t),e)}var Bi={};function qi(e){var t=e.join("|");if(!Bi[t]){var n=[];e.forEach((function(t,r){var i={};r&&(i.max=e[r-1]-1),i.min=t,n.push(i)})),n.push({max:e[e.length-1]-1}),n.forEach((function(e){var t=[];e.min&&t.push("(min-width: "+e.min+"px)"),e.max&&t.push("(max-width: "+e.max+"px)"),e.mediaQuery=t.join(" and ")})),Bi[t]=n}return Bi[t]}var Wi={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",wh:"var(--window-height)",sp:function(e){return"(("+e+" * var(--column-width)) + ("+(e-1)+" * var(--column-gap)))"}},Gi=["top","right","bottom","left"],Ji=["rgb","rgba"],Hi=["auto","max-content","min-content","none","subgrid","initial"],$i=/("[^"]*")|('[^']*')|([a-z]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,Xi=new Map,Yi=new Map,Zi=new Map,Qi=[Yi,Xi,Zi],eo=/calc\((\d*)\)/gi;function to(e){return e.match(/^[a-z]/)?"[data-is-"+e+"]":e}function no(e,t){if(void 0===t&&(t=0),"number"==typeof e&&(e=String(e)),"string"!=typeof e)return{values:[],mods:[],all:[],value:""};var n=Qi[t];if(!n.has(e)){n.size>1e4&&n.clear();var r=[],i=[],o=[],a=1!==t,l="",s=-1,u=0,c="",d="",p="",f="",h=void 0;for($i.lastIndex=0,e=e.replace(/@\(/g,"var(--");h=$i.exec(e);){var v=N(h,13),g=v[1],m=v[2],y=v[3],b=v[4],x=v[5],w=v[6],S=v[7],E=v[8],k=v[9],P=v[10],T=v[11],C=v[12];if(m||g)l+=(m||g)+" ";else if(y)p=y.slice(0,-1),l+=y,u++;else if(b)d=2===t?b:ro(b,!1).color;else if(w)u||Hi.includes(w)?l+=w+" ":(r.push(w),i.push(w),c+=w+" ");else if(T)"("===T&&(~s||(s=u,l+="calc"),u++),")"===T&&u&&(l=l.trim(),u>0&&u--,u===s&&(s=-1)),")"!==T||u||(f=p,p=""),l+=T+(")"===T?" ":"");else if(P){if(!~s&&a)if(l){if(l.includes("(")){var O=l.lastIndexOf("(");l=l.slice(0,O)+"(calc("+l.slice(O+1),s=u,u++}}else if(o.length){c=c.slice(0,c.length-o[o.length-1].length-1);var j=o.splice(o.length-1,1)[0];i.splice(o.length-1,1),j&&(j.startsWith("calc(")&&(j=j.slice(4)),s=u,u++,l="calc(("+j+") ")}l+=P+" "}else if(S)if(k&&Wi[k]){var A=uo(E,k);!~s&&A.startsWith("(")&&(l+="calc"),l+=A+" "}else l+=S+" ";else x?(x=x.replace("@","--"),l+="var"!==p?"var("+x+") ":x+" "):C&&(~s?(s=-1,u--,l=l.trim()+"), "):l=l.trim()+", ",u||i.push(","));if(l&&!u){var L=lo(l);Ji.includes(f)?d=L:L.startsWith("color(")?d=ro(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L+" "),l=""}}if(u)(L=lo(""+l.trim()+")".repeat(u))).startsWith("color(")?d=ro(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L);n.set(e,{values:o,mods:r,all:i,value:(c+" "+d).trim(),color:d})}return n.get(e)}function ro(e,t){if(void 0===t&&(t=!1),!(e=e.trim()))return{};if(e.startsWith("#")){var n=(e=e.slice(1)).split("."),r=100;n.length>1&&(r=1===n[1].length?10*Number(n[1]):Number(n[1]),Number.isNaN(r)&&(r=100));var i=n[0];return"current"===i?"currentColor":r>100?r=100:r<0&&(r=0),{color:100!==r?io(i,Math.round(r)/100):(o=i,a=null,l=oo("#"+i),s=l?", "+l:"","var(--"+o+"-color"+(a?", var(--"+a+s+")":s)+")"),name:i,opacity:null!=r?r:100}}var o,a,l,s,u,c,d=no(e),p=d.values,f=d.mods,h=d.color;return h?{color:(h.startsWith("var(")?h:oo(h))||h}:(p.forEach((function(e){e.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?h=e.startsWith("var")?e:oo(e):e.endsWith("%")&&(c=parseInt(e))})),h?{color:h}:(u=u||f[0])?c?{color:io(u,Math.round(c)/100),name:u,opacity:c}:{name:u,color:"current"===u?"currentColor":"inherit"===u?"inherit":"var(--"+u+"-color)"}:{})}function io(e,t,n,r){var i=r?", "+r:"";return"rgba(var(--"+e+"-color-rgb"+(n?", var(--"+n+"-color-rgb, "+i+")":i)+"), "+t+")"}function oo(e,t){if(e)return e.startsWith("rgb")?e:e.startsWith("#")?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return"#"+t+t+n+n+r+r})).substring(1).match(/.{2}/g).map((function(e,t){return parseInt(e,16)*(3===t?1/255:1)}));if(Number.isNaN(t[0]))return"rgba(0, 0, 0, 1)";if(3===t.length)return"rgb("+t.join(", ")+")";if(4===t.length)return"rgba("+t.join(", ")+")";return null}(e):null}function ao(e){return e.match(/\d+/g).map((function(e){return parseInt(e)})).slice(0,3)}function lo(e){return e.trim().replace(eo,(function(e,t){return t}))}function so(e,t){return e.filter((function(e){return t.includes(e)}))}function uo(e,t){var n=Wi[t];return"function"==typeof n?n(e):"1"===e||1===e?n:"("+e+" * "+n+")"}function co(e,t,n,r,i){void 0===t&&(t=[]),void 0===i&&(i=[]);var o=k(k({},n),e.styles);return Object.keys(e).forEach((function(n){var a=r&&r[n]||n,l=e[n];i&&i.includes(n)||t.includes(a)&&(null!=l&&!1!==l?o[a]=l:a in o&&delete o[a])}),{}),o}function po(e,t){if(void 0===t&&(t=""),!e)return"";if(Array.isArray(e))return e.reduce((function(e,n){return e+po(n,t)}),"");var n=e.$,r=e.css,i=P(e,["$","css"]),o=Object.keys(i).reduce((function(e,t){var n=i[t];return Array.isArray(n)?e+n.reduce((function(e,n){return n?e+(t+":")+n+";\n":e}),""):n?""+e+t+":"+n+";\n":e}),"");return r&&(o=r+"\n"+o),o?Array.isArray(n)?(t?t+"{\n":"")+n.reduce((function(e,t){return e+(t?"&"+t+"{\n":"")+o+(t?"}\n":"")}),"")+(t?"}\n":""):(t?t+"{\n":"")+(n?"&"+n+"{\n":"")+o+(n?"}\n":"")+(t?"}\n":""):""}function fo(e,t){void 0===t&&(t=1e3);var n=xo((function(t){return po(e(t))}),t),r=xo((function(e,t){if(void 0===t&&(t=""),null==e||!1===e)return null;var r,i,o,a=function(e,t){var n=t||Object.keys(e);if(!n.length)return[];var r={},i=new Set;n.forEach((function(t){r[t]=function(e){if("object"!=typeof e||!e)return{states:[{model:null,mods:[],value:e}],mods:[]};var t,n=[];Object.keys(e).forEach((function(t){var r=mo(t);r.value=e[t],n.push(r)})),n.reverse();var r=n.reduce((function(e,n){return n.mods.length?n.mods.forEach((function(t){e.includes(t)||e.push(t)})):t=n,e}),[]);t||n.push({mods:[],notMods:r,value:!0});return{states:n,mods:r}}(e[t]),r[t].mods.forEach(i.add,i)}));var o=Array.from(i),a=[];return function(e,t){var n=t?[[]]:[];if(0===e.length)return[e];if(e.length<2)return n.concat([e]);var r=function(e,t){void 0===e&&(e=[]);for(var i=0;i<t.length;i++)n.push(j(j([],N(e),!1),[t[i]],!1)),r(j(j([],N(e),!1),[t[i]],!1),t.slice(i+1))};return r([],e),n.filter((function(e){var t=[];return!e.find((function(e){var n=e.match(/\[(.+?)[=\]]/);return!(!n||!t.includes(n[1])&&(t.push(n[1]),1))}))}))}(o,!0).forEach((function(e){a.push({mods:e,notMods:o.filter((function(t){return!e.includes(t)})),value:n.reduce((function(t,n){return t[n]=r[n].states.find((function(t){return bo(t.model,(function(t){return e.includes(t)}))})).value,t}),{})})})),a}(e);return r=a,i=n,o=new Map,r.forEach((function(e){o.get(e.value)||o.set(e.value,i(e.value)),e.value=o.get(e.value)})),function(e,t,n){return void 0===n&&(n=""),t.reduce((function(t,r){if(!r.value)return t;var i=""+(r.mods||[]).map(to).join("")+(r.notMods||[]).map((function(e){return":not("+to(e)+")"})).join("");return""+t+e+i+n+"{\n"+r.value+"}\n"}),"")}("&&",a,t)}),t);return Object.assign(r,{__lookupStyles:e.__lookupStyles})}var ho=/([&|!^])|([()])|([a-z0-6-]+)|(:[a-z0-6-]+)|(\.[a-z0-6-]+)|(\[[^\]]+])/gi,vo=["!","&","|","^"];function go(e){return 1===e.length?e[0]:(vo.forEach((function(t){for(var n;-1!==(n=e.indexOf(t));){var r=e[n];"!"===r?e[n+1]&&1!==e[n+1].length?e.splice(n,2,["!",e[n+1]]):e.splice(n,1):e[n-1]&&e[n+1]&&1!==e[n-1].length&&1!==e[n+1].length?e.splice(n-1,3,[r,e[n-1],e[n+1]]):e.splice(n,1)}})),1===e.length?e[0]:e)}var mo=xo((function(e,t){var n=e.replace(/,/g,"|").match(ho);if(!n||!n.length)return{model:null,mods:[],tokens:n,value:t};if(1===n.length)return{model:n[0],mods:n.slice(0),tokens:n,value:t};var r=[],i=[[]],o=i[0],a=0;for(n.forEach((function(e){switch(e){case"(":a++,o=i[a]=[];break;case")":a--,i[a].push(go(o)),o=i[a];break;default:e.length>1&&(r.includes(e)||r.push(e)),o.push(e)}}));a;)a--,i[a].push(go(o)),o=i[a];return{tokens:n,mods:r,model:go(i[0]),value:t}}));var yo={"!":function(e){return!e},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&":function(e,t){return e&t}};function bo(e,t){if(!e)return!0;if(!Array.isArray(e))return"function"==typeof t?!!t(e):!!t[e];var n=yo[e[0]];n||console.warn("CubeUIKit: unexpected compute method in the model",e);var r=e[1];if(r="object"==typeof r?!!bo(r,t):"function"==typeof t?!!t(r):!!t[r],2===e.length)return n(r);var i=e[2];return!!n(r,i="object"==typeof i?!!bo(i,t):"function"==typeof t?!!t(i):!!t[i])}function xo(e,t){void 0===t&&(t=1e3);var n={},r=0;return function(i,o){var a=[i,o],l="string"!=typeof a[0]||o?JSON.stringify(a):a[0];return n[l]||(r>t&&(n={},r=0),r++,n[l]=o?e(i,o):e(i)),n[l]}}var wo={};function So(e,t,n){var r=e+"."+(t||"");return wo[r]||(wo[r]=fo((function(r){var i,o,a,l,s,u=r[e];if(null!=u&&!1!==u){var c,d=t||(c=e,c.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))).replace(/^@/,"--");if(!n||"string"==typeof u||(u=n(u))){if("string"==typeof u&&d.startsWith("--")&&d.endsWith("-color")){var p=oo(u=u.trim()),f=ro(u),h=f.color,v=f.name;return v&&p?((i={})[d]="var(--"+v+"-color, "+p+")",i[d+"-rgb"]="var(--"+v+"-color-rgb, "+ao(p).join(", ")+")",i):v?((o={})[d]="var(--"+v+"-color)",o[d+"-rgb"]="var(--"+v+"-color-rgb)",o):p?((a={})[d]=p,a[d+"-rgb"]=ao(p).join(", "),a):((l={})[d]=h,l)}var g=no(u,1).value;return(s={})[d]=g,s}}})),wo[r].__lookupStyles=[e]),wo[r]}var Eo={};function ko(e,t){var n;if("function"==typeof e)e=(n=e).__lookupStyles;else{if(!t)return void console.warn("CubeUIKit: incorrect custom style definition:",e);n=Object.assign(t,{__lookupStyles:e})}n=fo(n),Array.isArray(e)&&e.forEach((function(e){Eo[e]||(Eo[e]=[]),Eo[e].push(n)}))}function Po(e,t,n){var r=So(e,t,n);Eo[e]||(Eo[e]=[]),Eo[e].push(r)}function To(e){return e.startsWith("&")||e.startsWith(".")||e.startsWith("[")}var Co={},Oo=0;function No(e,t,n){var r,i=t,o=Array.from(Array(i.length)).map((function(){return""})),a=JSON.stringify({s:e,r:t,suffix:n}),l="",s=[];if(!Co[a]){++Oo>1e3&&(Oo=0,Co={});var u=Object.keys(e),c=u.filter((function(e){return To(e)})),d="";c.length&&c.forEach((function(n){var r=function(e){return e.startsWith("&")?e.slice(1):e.startsWith(".")?"& "+e:e.startsWith("[")?'& [data-element="'+e.slice(1,-1)+'"]':null}(n);d+=No(e[n],t,r)})),u.forEach((function(t){if(!To(t)){var n=Eo[t];n||(n=Eo[t]=[So(t)]),n.forEach((function(t){if(!s.find((function(e){return e.handler===t}))){var n=!1,r=t.__lookupStyles.reduce((function(t,r){return t[r]=e[r],Array.isArray(t[r])&&(0===t[r].length?delete t[r]:(1===t[r].length&&(t[r]=t[r][0]),n=!0)),t}),{});s.push({handler:t,styleMap:r,isResponsive:n})}}))}})),s.forEach((function(e){var t=e.handler,r=e.styleMap,a=e.isResponsive,s=t.__lookupStyles;if(a){var u=s.reduce((function(e,t){return e[t]=function(e,t){if(null==e)return e;var n=Array.from(Array(t));if("string"==typeof e)return n.map((function(){return e}));if(Array.isArray(e)){for(var r=null,i=0;i<n.length;i++)n[i]=null==e[i]?r:e[i],r=n[i];return n}return[]}(r[t],i.length),e}),{});i.map((function(e,t){var n={};return s.forEach((function(e){null!=u&&null!=u[e]&&(n[e]=u[e][t])})),n})).map((function(e){return t(e,n)})).forEach((function(e,t){o[t]+=e||""}))}else l+=t(r,n)||""})),Co[a]="outline: none;\n"+l+(t&&t.length?(r=o,i.filter((function(e){return e.mediaQuery})).map((function(e,t){return"@media "+e.mediaQuery+" {"+r[t]+"}"})).join("\n")):"")+d}return Co[a]}function jo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];try{for(var o=O(e),a=o.next();!a.done;a=o.next()){var l=a.value;"function"==typeof l&&l.apply(void 0,j([],N(r),!1))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}function Ao(e){return d.toArray(e).every((function(e){return!p(e)}))}function Lo(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=O(n),a=o.next();!a.done;a=o.next()){var l=a.value;for(var s in i)/^on[A-Z]/.test(s)&&"function"==typeof i[s]&&l&&"function"==typeof l[s]?i[s]=Xt(i[s],l[s]):"className"===s&&"string"==typeof i.className&&l&&"string"==typeof l.className?i[s]=Mt(i.className,l.className):"styles"===s&&"object"==typeof i.styles&&l&&"object"==typeof l.styles?i[s]=k(k({},i.styles),l.styles):"id"===s&&i.id&&(null==l?void 0:l.id)?i.id=Ht(i.id,null==l?void 0:l.id):i[s]=l&&void 0!==l[s]?l[s]:i[s];for(var s in l)void 0===i[s]&&(i[s]=l[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i}function Fo(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t["data-is-"+n]=""),t}),{})}var Do=n({});function Ro(e,t){var n=e.slot||t;return Yt((r(Do)||{})[n],e)}function Io(e){var t=r(Do)||{},n=e.slots,i=void 0===n?{}:n,o=e.children,a=s((function(){return Object.keys(t).concat(Object.keys(i)).reduce((function(e,n){var r;return k(k({},e),((r={})[n]=Yt(t[n]||{},i[n]||{}),r))}),{})}),[t,i]);return M.jsx(Do.Provider,k({value:a},{children:o}),void 0)}function Mo(e){var t=e.children,n=P(e,["children"]),r=t;return d.toArray(t).length<=1&&"function"==typeof t&&(r=f(d.only(t),n)),M.jsx(Do.Provider,k({value:{}},{children:r}),void 0)}var _o="undefined"!=typeof window?e.useLayoutEffect:function(){};function zo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a();return i((function(){e.forEach((function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)}))}),[e]),n}var Ko={inline:"block","inline-grid":"grid","inline-flex":"flex"},Vo={block:"inline-block",grid:"inline-grid",flex:"inline-flex"},Uo=m.div((function(e){return e.css})),Bo=h((function(e,t){var n=e.as,i=e.styles,o=e.breakpoints,a=e.block,l=e.mods,s=e.inline,u=e.isHidden,c=e.isDisabled,d=e.qa,p=e.qaVal,f=e.css,h=P(e,["as","styles","breakpoints","block","mods","inline","isHidden","isDisabled","qa","qaVal","css"]),v=k({},i);a&&(v.display="string"==typeof v.display?Ko[v.display||"inline"]:"block"),s&&(v.display="string"==typeof v.display?Vo[v.display||"block"]:"inline-block");var g=r(_i);return f=""+(f||"")+No(v,qi(o||g)),l&&Object.assign(h,Fo(l)),M.jsx(Uo,k({as:n,"data-qa":d,"data-qaval":p},h,{hidden:u,disabled:c,ref:t,css:f}),void 0)})),qo=["display","font","preset","hide","opacity","whiteSpace"],Wo=["gridArea","order","gridColumn","gridRow","placeSelf","alignSelf","justifySelf","zIndex","margin"],Go=["reset","padding","paddingInline","paddingBlock","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],Jo=["color","fill"],Ho=["textTransform","fontWeight","fontStyle"],$o=["width","height","flexBasis","flexGrow","flexShrink","flex"],Xo=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","gap","columnGap","rowGap","gridColumns","gridRows","gridTemplate","gridAreas"],Yo=j(j(j(j(j(j([],N(qo),!1),N(Jo),!1),N($o),!1),N(Wo),!1),N(Go),!1),N(Xo),!1),Zo=j(j([],N(Wo),!1),N($o),!1),Qo=new Set(["id"]),ea=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ta=new Set(["role","as","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target"]),na=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),ra=/^((data-).*)$/,ia=/^on[A-Z].+$/;function oa(e,t){void 0===t&&(t={});var n=t.labelable,r=t.propNames,i=t.eventProps,o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Qo.has(a)||ta.has(a)||n&&ea.has(a)||i&&ia.test(a)&&!na.has(a)||(null==r?void 0:r.has(a))||ra.test(a))&&(o[a]=e[a]);return o}var aa=D((function(e){var t={valTypes:{none:"NONE",primitive:"PRIM",object:"OBJECT",array:"ARRAY"},getValType:function(e){return e&&"object"==typeof e||Array.isArray(e)?Array.isArray(e)?t.valTypes.array:"object"==typeof e?t.valTypes.object:void 0:t.valTypes.primitive},getPathType:function(e){var n=[];for(var r in e){var i=e[r];i?t.isNumber(i)?n.push(t.valTypes.array):n.push(t.valTypes.object):n.push(t.valTypes.none)}return n},isUndefined:function(e){return void 0===e},isNumber:function(e){return!isNaN(parseInt(e))},isEmptyObj:function(e){for(var t in e)if(Object.hasOwnProperty.call(e,t))return!1;return JSON.stringify(e)===JSON.stringify({})},isNotObject:function(e){return!e||"object"!=typeof e},isEmptyArray:function(e){return Array.isArray(e)&&0==e.length},isNotArray:function(e){return 0==Array.isArray(e)},removeEmptyArrayItem:function(e){return e.filter((function(e){return null!=e&&""!=e}))},getFieldName:function(e,n,r,i,o){return o?(n||"")+(t.isNumber(e)?"["+e+"]":(r&&!n?"":".")+e):i?(n||"")+"["+e+"]":(n?n+".":"")+e},startsWith:function(e,t){return 0==e.indexOf(t)},convert:function(e,n){var r={};return t.isNotObject(e)&&t.isNotArray(e)?n?(r[n]=e,r):e:function e(n,i,o){var a=Array.isArray(n);for(var l in n){var s=n[l];s&&"object"==typeof s?Array.isArray(s)?t.isEmptyArray(s)?r[t.getFieldName(l,i,o,!1,!0)]=s:r=e(s,t.getFieldName(l,i,o,!1,!0),a):a&&0==t.isEmptyObj(s)?r=e(s,t.getFieldName(l,i,o,!0)):0==t.isEmptyObj(s)?r=e(s,t.getFieldName(l,i,o)):t.isEmptyObj(s)&&(r[t.getFieldName(l,i,o,a)]=s):a||t.isNumber(l)?r[t.getFieldName(l,i,o,!0)]=s:r[t.getFieldName(l,i,o)]=s}return r}(e,n,!0)},backward:function(e,n){var r={},i=/\[(\d+)\]/g;if(t.isNotObject(e)&&t.isNotArray(e))return n?e[n]:e;for(var o in e){var a=e[o];if(n){var l=new RegExp("^"+n);o=o.replace(l,"")}o=o.replace(i,".$1"),t.startsWith(o,".")&&(o=o.replace(/^\./,""));var s=o.split("."),u=t.getPathType(s);t.isUndefined(u)||u[0]!=t.valTypes.array||0!=Array.isArray(r)||(r=[]),function e(n,i,o,a){var l=s.shift(),c=u.shift();if(void 0!==l&&""!=l){var d=c==t.valTypes.array;if(t.isNumber(l)&&(l=parseInt(l)),s.length>0)return void 0===i[l]&&(i[l]=d?[]:{}),void e(n,i[l],l,i);c==t.valTypes.array&&o&&a?(0==Array.isArray(a[o])&&(a[o]=[]),a[o].push(n)):i[l]=n}else r=n}(a,r)}return r}};e.exports=t})),la=D((function(e){!function(e){e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,o,a,l="",s="";if(l=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],l&&l.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(l.toLowerCase()))return s+=l+":",r&&r.length&&(s+="//"+r),s+=i,o&&o.length&&(s+="?"+o),a&&a.length&&(s+="#"+a),s}}}function r(e,r){if(n(e)){var i,o,a,l,s="",u="",c="",d="";if(s=(i=t(e))[1],u=i[2],o=i[3],a=i[4],l=i[5],s){if(r){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=s+":",d+="//"+u,c&&(d+=c),d+=o,a&&a.length&&(d+="?"+a),l&&l.length&&(d+="#"+l),d}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)})),sa=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,ua={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e},boolean:function(e){return"boolean"==typeof e},method:function(e){return"function"==typeof e},regexp:function(e){return e instanceof RegExp},integer:function(e){return"number"==typeof e&&e===parseInt(String(e),10)},array:function(e){return Array.isArray(e)},object:function(e){return"object"==typeof e&&!Array.isArray(e)},date:function(e){return e instanceof Date},url:function(e){return"string"==typeof e&&la.isUri(e)},hex:function(e){return"string"==typeof e&&e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email:function(e){return function(e){if(!e)return!1;if(e.length>254)return!1;if(!sa.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some((function(e){return e.length>63})))}(e)},any:function(e){return!0}},ca=Object.keys(ua),da={required:function(e){return T(this,void 0,void 0,(function(){return C(this,(function(t){return Array.isArray(e)?[2,e.length?Promise.resolve():Promise.reject()]:[2,e||0===e?Promise.resolve():Promise.reject()]}))}))},whitespace:function(e){return T(this,void 0,void 0,(function(){return C(this,(function(t){return"string"!=typeof e||e.trim()?[2,Promise.resolve()]:[2,Promise.reject()]}))}))},pattern:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.pattern,"string"!=typeof e?[2,Promise.resolve()]:[2,e.match(n)?Promise.resolve():Promise.reject()]}))}))},enum:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.enum||[],e||0===e?[2,n.includes(e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},len:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.len,"number"==typeof e?[2,e===n?Promise.resolve():Promise.reject()]:e&&"length"in e?[2,e.length===n?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},max:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.max,"number"==typeof e?[2,e<=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length<=n?Promise.resolve():Promise.reject()]}))}))},min:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.min,"number"==typeof e?[2,e>=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length>=n?Promise.resolve():Promise.reject()]}))}))},validator:function(e,t){return T(this,void 0,void 0,(function(){return C(this,(function(n){return[2,t.validator(t,e)]}))}))},type:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.type,ca.includes(n)?[2,ua[n](e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))}},pa=Object.keys(da);function fa(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,l,s;return C(this,(function(u){switch(u.label){case 0:"function"==typeof t&&(t=t(n)),"function"==typeof t.transform&&(e=t.transform(e)),u.label=1;case 1:u.trys.push([1,6,7,8]),r=O(pa),i=r.next(),u.label=2;case 2:return i.done?[3,5]:(o=i.value)in t?[4,(0,da[o])(e,t)]:[3,4];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a=u.sent(),l={error:a},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(l)throw l.error}return[7];case 8:return[2]}}))}))}function ha(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,l,s,u;return C(this,(function(c){switch(c.label){case 0:if(!t||!t.length)return[2];r=function(t){return C(this,(function(r){switch(r.label){case 0:return[4,fa(e,t,n).catch((function(e){throw"string"!=typeof e&&(e=(null==e?void 0:e.message)||t.message),e}))];case 1:return r.sent(),[2]}}))},c.label=1;case 1:c.trys.push([1,6,7,8]),i=O(t),o=i.next(),c.label=2;case 2:return o.done?[3,5]:(a=o.value,[5,r(a)]);case 3:c.sent(),c.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return l=c.sent(),s={error:l},[3,8];case 7:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))}function va(e,t){return JSON.stringify(e)===JSON.stringify(t)}var ga=function(){function e(e){this.forceReRender=function(){},this.initialFields={},this.fields={},this.ref={},this.isSubmitting=!1,this.onValuesChange=function(){},this.onSubmit=function(){},this.forceReRender=e||function(){},this.initialFields={},this.fields={},this.setFieldsValue=this.setFieldsValue.bind(this),this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldsValue=this.setInitialFieldsValue.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}return e.prototype.submit=function(){return T(this,void 0,void 0,(function(){return C(this,(function(e){return this.onSubmit?[2,this.onSubmit(this.getFormData())]:[2]}))}))},e.prototype.setFieldsValue=function(e,t,n,r){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1);var o=!1;Object.keys(e).forEach((function(a){var l=i.fields[a];!l&&r&&(i.createField(a,n),l=i.fields[a]),l&&!va(l.value,e[a])&&(o=!0,l.value=e[a],t&&(l.touched=t))})),o&&n&&(this.forceReRender(),t&&this.onValuesChange&&this.onValuesChange(this.getFormData()))},e.prototype.getFieldValue=function(e){return this.fields[e]&&this.fields[e].value},e.prototype.getFieldsValue=function(){return Object.values(this.fields).reduce((function(e,t){return e[t.name]=t.value,e}),{})},e.prototype.getFormData=function(){var e=this.getFieldsValue();return Object.keys(e).reduce((function(t,n){return function(e,t,n){for(var r=t.split("."),i=e;r.length-1;){var o=r.shift();o in i||(i[o]={}),i=i[o]}i[r[0]]=n}(t,n,e[n]),n.includes(".")&&delete t[n],t}),{})},e.prototype.setFieldValue=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var i=this.fields[e];i&&!va(t,i.value)&&(i.value=t,n&&(i.touched=n),r&&this.forceReRender(),n&&this.onValuesChange&&this.onValuesChange(this.getFormData()))},e.prototype.getFieldInstance=function(e){return this.fields[e]},e.prototype.setInitialFieldsValue=function(e){this.initialFields=aa.convert(e)||{}},e.prototype.resetFields=function(e){void 0===e&&(e=!0),this.setFieldsValue(this.initialFields,!1,e,!0)},e.prototype.validateField=function(e){return T(this,void 0,void 0,(function(){var t,n=this;return C(this,(function(r){return(t=this.getFieldInstance(e))&&t.rules?[2,ha(t.value,t.rules,this).then((function(){t.errors&&!t.errors.length||(t.errors=[],n.forceReRender())})).catch((function(e){return t.errors&&va(t.errors,[e])||(t.errors=[e],n.forceReRender()),Promise.reject([e])}))]:[2,Promise.resolve()]}))}))},e.prototype.validateFields=function(e){var t=this,n=e||Object.keys(this.fields),r=[];return Promise.allSettled(n.map((function(e){return t.validateField(e).catch((function(t){return r.push({name:e,errors:t}),Promise.reject()}))}))).then((function(){return r.length?Promise.reject(r):t.getFormData()}))},e.prototype.isFieldValid=function(e){var t=this.getFieldInstance(e);return!t||!t.errors.length},e.prototype.isFieldInvalid=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.errors.length},e.prototype.isFieldTouched=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.touched},e.prototype.getFieldError=function(e){var t=this.getFieldInstance(e);return t&&t.errors||[]},e.prototype.createField=function(e,t){void 0===t&&(t=!0),this.fields[e]||(this.fields[e]=this._createField(e)),t&&this.forceReRender()},e.prototype.setFields=function(e){var t=this;e.forEach((function(e){var n=e.name,r=e.value,i=e.errors;t.fields[n]=t._createField(n,{value:r,errors:i})})),this.forceReRender()},e.prototype.setSubmitting=function(e){this.isSubmitting=e,this.forceReRender()},e.prototype._createField=function(e,t){return k({name:e,value:void 0,validating:!1,touched:!1,errors:[]},t)},e}();function ma(e,t,n){void 0===n&&(n={});var r=n.onSubmit,i=n.onValuesChange,l=a(),s=N(o({}),2)[1];if(!l.current){if(e)l.current=e;else{e=l.current=new ga((function(){s({})}))}e.ref=t,r&&(e.onSubmit=r),i&&(e.onValuesChange=i)}return[l.current]}function ya(e){return void 0===e&&(e=30),new Promise((function(t){setTimeout(t,e)}))}var ba=n({});function xa(e){var t=r(ba);return k(k({},t),e)}var wa=new Set(["action","autoComplete","encType","method","target"]),Sa={display:"block",flow:"column",gap:"2x"};var Ea=Object.assign(h((function(e,t){var n,r=this;(e=Ui(e)).qa;var o,l,s=e.name,u=e.children,c=e.labelPosition,d=void 0===c?"top":c,p=e.isRequired,f=e.necessityIndicator,h=e.isDisabled,v=e.isReadOnly,g=e.validationState,m=e.labelStyles,y=e.validateTrigger,b=e.defaultValues,x=e.onValuesChange,w=e.requiredMark,S=void 0===w||w,E=e.form,O=e.onSubmit,j=e.onSubmitFailed,A=P(e,["qa","name","children","labelPosition","isRequired","necessityIndicator","isDisabled","isReadOnly","validationState","labelStyles","validateTrigger","defaultValues","onValuesChange","requiredMark","form","onSubmit","onSubmitFailed"]),L=a(!0);t=zo(t),!O&&!j||A.action||(l=function(e){if(e&&(null==e?void 0:e.preventDefault)&&(e&&(null==e?void 0:e.preventDefault)&&(null==e||e.preventDefault()),e&&(null==e?void 0:e.stopPropagation)&&(null==e||e.stopPropagation()),e.nativeEvent)){var t=e.nativeEvent;if(t.submitter&&"submit"!==t.submitter.getAttribute("type"))return}return null==E?void 0:E.validateFields().then((function(){return T(r,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,ya()];case 1:if(e.sent(),!E||E.isSubmitting)return[3,5];e.label=2;case 2:return e.trys.push([2,,4,5]),E.setSubmitting(!0),[4,null==O?void 0:O(E.getFormData())];case 3:return e.sent(),[3,5];case 4:return E.setSubmitting(!1),[7];case 5:return[2]}}))}))}),(function(e){return T(r,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:return[4,ya()];case 1:if(t.sent(),e instanceof Error)throw e;return null==j||j(e),[2]}}))}))}))}),n=N(ma(E,t&&t.current,{onSubmit:l,onValuesChange:x}),1),E=n[0],o=co(A,Yo,Sa);var F=Si(t),D={labelPosition:d,labelStyles:m,necessityIndicator:f,validateTrigger:y,requiredMark:S,form:E,idPrefix:s};return L.current&&E&&b&&(E.setInitialFieldsValue(b),E.resetFields(!1),L.current=!1),i((function(){b&&(null==E||E.setInitialFieldsValue(b))}),[b]),M.jsx(Bo,k({as:"form",qa:"Form"},oa(A,{propNames:wa}),{onSubmit:l,noValidate:!0,styles:o,ref:F,mods:{"has-sider":"side"===d}},{children:M.jsx(ba.Provider,k({value:D},{children:M.jsx(Vi,k({insideForm:!0,isDisabled:h,isReadOnly:v,isRequired:p,validationState:g},{children:u}),void 0)}),void 0)}),void 0)})),{useForm:ma});let ka="default",Pa="";function Ta(){"default"===ka&&(Pa=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),ka="disabled"}function Ca(){"disabled"===ka&&(ka="restoring",setTimeout((()=>{sn((()=>{"restoring"===ka&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Pa||""),Pa="",ka="default")}))}),300))}function Oa(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Na=t.createContext(null);function ja(e){let t=function(e){let t=r(Na);if(t){let{register:n}=t;e=Yt(q(t,["register"]),e),n()}return cn(t,e.ref),e}(e),{onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,isPressed:h,preventFocusOnPress:v,shouldCancelOnPointerExit:g}=t,m=q(t,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","ref"]),y=a(null);y.current={onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,shouldCancelOnPointerExit:g};let[b,x]=o(!1),w=a({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:S,removeAllGlobalListeners:E}=function(){let e=a(new Map),t=l(((t,n,r,i)=>{e.current.set(r,{type:n,eventTarget:t,options:i}),t.addEventListener(n,r,i)}),[]),n=l(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]),r=l((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return i((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}(),k=s((()=>{let e=w.current,t=(t,n)=>{let{onPressStart:r,onPressChange:i,isDisabled:o}=y.current;o||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!0),e.didFirePressStart=!0,x(!0))},n=function(t,n,r){void 0===r&&(r=!0);let{onPressEnd:i,onPressChange:o,onPress:a,isDisabled:l}=y.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,i&&i({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!1),x(!1),a&&r&&!l&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=y.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},i=t=>{e.isPressed&&(e.isOverTarget&&n(Da(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),Ca())},o={onKeyDown(n){La(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),S(document,"keyup",a,!1)))},onKeyUp(t){La(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Da(e.target,t),"keyboard")},onClick(i){i&&!i.currentTarget.contains(i.target)||i&&0===i.button&&(i.stopPropagation(),f&&i.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||!Oa(i.nativeEvent)||(f||v||nn(i.currentTarget),t(i,"virtual"),r(i,"virtual"),n(i,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{e.isPressed&&La(t)&&(t.preventDefault(),t.stopPropagation(),e.isPressed=!1,n(Da(e.target,t),"keyboard",t.target===e.target),E(),(t.target===e.target&&Aa(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click())};if("undefined"!=typeof PointerEvent){o.onPointerDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Ia(n.target)&&n.preventDefault(),e.pointerType=Ma(n.nativeEvent)?"virtual":n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,f||v||nn(n.currentTarget),Ta(),t(n,e.pointerType),S(document,"pointermove",a,!1),S(document,"pointerup",l,!1),S(document,"pointercancel",s,!1)))},o.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ia(e.target)&&e.preventDefault(),e.stopPropagation())},o.onPointerUp=t=>{t.currentTarget.contains(t.target)&&0===t.button&&Ra(t,t.currentTarget)&&r(t,e.pointerType||(Ma(t.nativeEvent)?"virtual":t.pointerType))};let a=r=>{r.pointerId===e.activePointerId&&(Ra(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Da(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Da(e.target,r),e.pointerType,!1),y.current.shouldCancelOnPointerExit&&i(r)))},l=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Ra(t,e.target)?n(Da(e.target,t),e.pointerType):e.isOverTarget&&n(Da(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),Ca())},s=e=>{i(e)};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}else{o.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Ia(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Oa(n.nativeEvent)?"virtual":"mouse",f||v||nn(n.currentTarget),t(n,e.pointerType),S(document,"mouseup",a,!1)))},o.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},o.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),y.current.shouldCancelOnPointerExit&&i(t)))},o.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,E(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Ra(t,e.target)?n(Da(e.target,t),e.pointerType):e.isOverTarget&&n(Da(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};o.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;if(t.length>0)return t[0];return null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",f||v||nn(n.currentTarget),Ta(),t(n,e.pointerType),S(window,"scroll",l,!0))},o.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let o=Fa(r.nativeEvent,e.activePointerId);o&&Ra(o,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),y.current.shouldCancelOnPointerExit&&i(r))},o.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let i=Fa(t.nativeEvent,e.activePointerId);i&&Ra(i,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,Ca(),E()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&i(t))};let l=t=>{e.isPressed&&t.target.contains(e.target)&&i({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}return o}),[S,f,v,E]);return i((()=>()=>Ca()),[]),{isPressed:h||b,pressProps:Yt(m,k)}}function Aa(e){return"A"===e.tagName&&e.hasAttribute("href")}function La(e){const{key:t,target:n}=e,r=n,{tagName:i,isContentEditable:o}=r,a=r.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t||"INPUT"===i||"TEXTAREA"===i||!0===o||Aa(r)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function Fa(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function Da(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ra(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return o=r,!((i=n).left>o.right||o.left>i.right||i.top>o.bottom||o.top>i.bottom);var i,o}function Ia(e){return!e.closest('[draggable="true"]')}function Ma(e){return 0===e.width&&0===e.height}Na.displayName="PressResponderContext";const _a=t.forwardRef(((e,n)=>{let{children:o}=e,l=q(e,["children"]),s=a(!1),u=r(Na),c=Yt(u||{},_t({},l,{ref:n||(null==u?void 0:u.ref),register(){s.current=!0,u&&u.register()}}));return cn(u,n),i((()=>{s.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),t.createElement(Na.Provider,{value:c},o)}));function za(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}let Ka=null,Va=new Set,Ua=!1,Ba=!1,qa=!1;const Wa={Tab:!0,Escape:!0};function Ga(e,t){for(let n of Va)n(e,t)}function Ja(e){Ba=!0,function(e){return!(e.metaKey||!yn()&&e.altKey||e.ctrlKey||"keyup"===e.type&&("Control"===e.key||"Shift"===e.key))}(e)&&(Ka="keyboard",Ga("keyboard",e))}function Ha(e){Ka="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ba=!0,Ga("pointer",e))}function $a(e){Oa(e)&&(Ba=!0,Ka="virtual")}function Xa(e){e.target!==window&&e.target!==document&&(Ba||qa||(Ka="virtual",Ga("virtual",e)),Ba=!1,qa=!1)}function Ya(){Ba=!1,qa=!0}function Za(){if("undefined"==typeof window||Ua)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ba=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ja,!0),document.addEventListener("keyup",Ja,!0),document.addEventListener("click",$a,!0),window.addEventListener("focus",Xa,!0),window.addEventListener("blur",Ya,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ha,!0),document.addEventListener("pointermove",Ha,!0),document.addEventListener("pointerup",Ha,!0)):(document.addEventListener("mousedown",Ha,!0),document.addEventListener("mousemove",Ha,!0),document.addEventListener("mouseup",Ha,!0)),Ua=!0}function Qa(){return"pointer"!==Ka}function el(){return Ka}function tl(e){void 0===e&&(e={});let{isTextInput:t,autoFocus:n}=e,[r,a]=o(n||Qa());var l,s,u;return l=e=>{a(e)},s=[t],u={isTextInput:t},Za(),i((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Wa[n.key])})(null==u?void 0:u.isTextInput,e,t)&&l(Qa())};return Va.add(e),()=>Va.delete(e)}),s),{isFocusVisible:r}}function nl(e){let t=a({isFocusWithin:!1}).current;if(e.isDisabled)return{focusWithinProps:{}};return{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?Za():document.addEventListener("DOMContentLoaded",Za));let rl=!1,il=0;function ol(){rl=!0,setTimeout((()=>{rl=!1}),50)}function al(e){"touch"===e.pointerType&&ol()}function ll(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",al):document.addEventListener("touchend",ol),il++,()=>{il--,il>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",al):document.removeEventListener("touchend",ol))}}function sl(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:l}=e,[u,c]=o(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(ll,[]);let{hoverProps:p,triggerHoverEnd:f}=s((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let i=e.target;d.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),c(!0)},i=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let i=e.target;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),c(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{rl&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||rl||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,n,r,l,d]);return i((()=>{l&&f({target:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:u}}function ul(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function cl(e){if(!e)return;let t=!0;return n=>{let r=_t({},n,{preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(r),t&&n.stopPropagation()}}function dl(e,t){var n=e.isDisabled;void 0===t&&(t=!1),i((function(){l(!1)}),[n]);var r=N(o(!1),2),a=r[0],l=r[1],s=tl({}).isFocusVisible;return{focusProps:za({onFocusChange:l}).focusProps,isFocused:a&&(!t||s)}}var pl={display:"grid",position:"absolute",placeItems:"center",gap:0,left:"@prefix-gap",top:"@prefix-gap",bottom:"@prefix-gap",color:"#dark.75",height:"(100% - (2 * @prefix-gap))"},fl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=P(e,["onWidthChange","outerGap","children"]),s=co(l,Yo,pl),u=zo(t);return i((function(){(null==u?void 0:u.current)&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(Bo,k({},oa(l,{eventProps:!0}),{styles:s,ref:u,style:{"--prefix-gap":no(o).value}},{children:a}),void 0)})),hl={display:"grid",placeContent:"stretch",placeItems:"center",flow:"column",gap:0,position:"absolute",right:"@suffix-gap",top:"@suffix-gap",bottom:"@suffix-gap",color:"#dark.75",height:"(100% - (2 * @suffix-gap))"},vl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=P(e,["onWidthChange","outerGap","children"]),s=co(l,Yo,hl),u=zo(t);return i((function(){u&&u.current&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(Bo,k({},oa(l,{eventProps:!0}),{styles:s,ref:u,style:{"--suffix-gap":no(o).value}},{children:a}),void 0)})),gl=M.jsx("svg",k({xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"}},{children:M.jsx("switch",{children:M.jsx("g",{children:M.jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"},void 0)},void 0)},void 0)}),void 0),ml={"(required)":"(required)","(optional)":"(optional)"},yl={fontWeight:400,preset:"default",color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"},bl={display:"block",fontWeight:600,preset:"default",padding:{"":"0",side:"(1x - 1bw) 0"},color:{"":"#dark",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"};var xl=h((function(e,t){var n=(e=Ui(e)).as,r=e.qa,i=e.children,o=e.labelPosition,a=void 0===o?"top":o,l=e.isRequired,s=e.necessityIndicator,u=void 0===s?null!=l?"icon":null:s,c=e.includeNecessityIndicatorInAccessibilityName,d=void 0!==c&&c,p=e.htmlFor,f=e.isDisabled,h=e.validationState,v=e.for,g=e.onClick,m=P(e,["as","qa","children","labelPosition","isRequired","necessityIndicator","includeNecessityIndicatorInAccessibilityName","htmlFor","isDisabled","validationState","for","onClick"]),y=Si(t),b=Mi("Label",m),x=co(m,Yo,k(k({},bl),b)),w=function(e){return ml[e]},S=w(l?"(required)":"(optional)"),E=M.jsx("span",k({"aria-label":d?w("(required)"):void 0},{children:gl}),void 0);return M.jsx(Bo,k({as:n||"label",qa:r||"Label"},oa(m),{onClick:g,ref:y,styles:x,htmlFor:v||p,mods:{side:"side"===a,disabled:f,invalid:"invalid"===h,valid:"valid"===h}},{children:"string"!=typeof i?i:M.jsxs(M.Fragment,{children:[i,("label"===u||"icon"===u&&l)&&" ","label"===u&&M.jsx("span",k({"aria-hidden":d?void 0:l},{children:S}),void 0),"icon"===u&&l&&E]},void 0)}),void 0)}));function wl(e){if("virtual"===el()){let t=document.activeElement;sn((()=>{document.activeElement===t&&document.contains(e)&&nn(e)}))}else nn(e)}function Sl(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Sl(e.parentElement,e))}const El=t.createContext(null);let kl=null,Pl=new Map;function Tl(e){let{children:n,contain:o,restoreFocus:l,autoFocus:s}=e,u=a(),c=a(),d=a([]),p=r(El),f=null==p?void 0:p.scopeRef;Wt((()=>{let e=u.current.nextSibling,t=[];for(;e&&e!==c.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),Wt((()=>(Pl.set(d,f),()=>{d!==kl&&!Fl(d,kl)||f&&!Pl.has(f)||(kl=f),Pl.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);Wt((()=>{let i=e.current;if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==kl)return;let n=document.activeElement,r=e.current;if(!Al(n,r))return;let i=Il(jl(r),{tabbable:!0},r);i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&Dl(o,!0)},a=t=>{!kl||Fl(kl,e)?(kl=e,n.current=t.target):e!==kl||Ll(t.target,e)?e===kl&&(n.current=t.target):n.current?n.current.focus():kl&&Rl(kl.current)},l=t=>{r.current=requestAnimationFrame((()=>{e!==kl||Ll(document.activeElement,e)||(kl=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",o,!1),document.addEventListener("focusin",a,!1),i.forEach((e=>e.addEventListener("focusin",a,!1))),i.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{document.removeEventListener("keydown",o,!1),document.removeEventListener("focusin",a,!1),i.forEach((e=>e.removeEventListener("focusin",a,!1))),i.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,o),function(e,t,n){Wt((()=>{if(!t)return;let r=e.current,i=document.activeElement,o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey)return;let t=document.activeElement;if(!Al(t,r))return;let n=Il(document.body,{tabbable:!0});n.currentNode=t;let o=e.shiftKey?n.previousNode():n.nextNode();if(document.body.contains(i)&&i!==document.body||(i=null),(!o||!Al(o,r))&&i){n.currentNode=i;do{o=e.shiftKey?n.previousNode():n.nextNode()}while(Al(o,r));e.preventDefault(),e.stopPropagation(),o?Dl(o,!0):!function(e){for(let t of Pl.keys())if(Al(e,t.current))return!0;return!1}(i)?t.blur():Dl(i,!0)}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0),t&&i&&Al(document.activeElement,r)&&requestAnimationFrame((()=>{document.body.contains(i)&&Dl(i)}))}}),[e,t,n])}(d,l,o),function(e,n){const r=t.useRef(n);i((()=>{r.current&&(kl=e,Al(document.activeElement,kl.current)||Rl(e.current)),r.current=!1}),[])}(d,s);let h=function(e){return{focusNext(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[0].previousElementSibling,s=Il(jl(n),{tabbable:i},n);s.currentNode=Al(a,n)?a:l;let u=s.nextNode();return!u&&o&&(s.currentNode=l,u=s.nextNode()),u&&Dl(u,!0),u},focusPrevious(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,s=Il(jl(n),{tabbable:i},n);s.currentNode=Al(a,n)?a:l;let u=s.previousNode();return!u&&o&&(s.currentNode=l,u=s.previousNode()),u&&Dl(u,!0),u},focusFirst(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Il(jl(n),{tabbable:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Dl(o,!0),o},focusLast(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Il(jl(n),{tabbable:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Dl(o,!0),o}}}(d);return t.createElement(El.Provider,{value:{scopeRef:d,focusManager:h}},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:u}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}const Cl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Ol=Cl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Cl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Nl=Cl.join(':not([hidden]):not([tabindex="-1"]),');function jl(e){return e[0].parentElement}function Al(e,t){return t.some((t=>t.contains(e)))}function Ll(e,t){for(let n of Pl.keys())if((n===t||Fl(t,n))&&Al(e,n.current))return!0;return!1}function Fl(e,t){let n=Pl.get(t);return!!n&&(n===e||Fl(e,n))}function Dl(e,t){if(void 0===t&&(t=!1),null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{wl(e)}catch(e){}}function Rl(e){let t=e[0].previousElementSibling,n=Il(jl(e),{tabbable:!0},e);n.currentNode=t,Dl(n.nextNode())}function Il(e,t,n){let r=null!=t&&t.tabbable?Nl:Ol,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return null!=t&&null!=(i=t.from)&&i.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&Sl(e)&&(!n||Al(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return null!=t&&t.from&&(i.currentNode=t.from),i}let Ml=t.createContext(null);function _l(e,n){let{children:r}=e,i=_t({},q(e,["children"]),{ref:n});return t.createElement(Ml.Provider,{value:i},r)}let zl=t.forwardRef(_l);function Kl(e,t){let{focusProps:n}=za(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:cl(e.onKeyDown),onKeyUp:cl(e.onKeyUp)}}}(e),l=Yt(n,o),s=function(e){let t=r(Ml)||{};return cn(t,e),q(t,["ref"])}(t),u=e.isDisabled?{}:s,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&t.current.focus(),c.current=!1}),[]),{focusableProps:Yt(_t({},l,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),u)}}var Vl=t.createContext({});const Ul={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Bl(e){void 0===e&&(e={});let{style:t,isFocusable:n}=e,[r,i]=o(!1),{focusProps:a}=za({isDisabled:!n,onFocusChange:i}),l=s((()=>r?t:t?_t({},Ul,t):Ul),[r]);return{visuallyHiddenProps:_t({},a,{style:l})}}function ql(e){let{children:n,elementType:r="div"}=e,i=q(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=Bl(e);return t.createElement(r,Yt(i,o),n)}function Wl(e){return e&&e.__esModule?e:{default:e}}var Gl=D((function(e,t){t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default})),Jl=F(Gl),Hl=D((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0})),$l=D((function(e,t){t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default})),Xl=D((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var n=Hl($l);e.exports=t.default})),Yl=F(Xl),Zl=D((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var n=Hl($l);e.exports=t.default})),Ql=F(Zl),es=D((function(e){function t(){return e.exports=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},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),ts=D((function(e,t){t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default})),ns=D((function(e,t){t.__esModule=!0,t.default=void 0;var n=Hl(ts).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r;function r(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=n,e.exports=t.default})),rs=D((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e),o=(0,r.default)(t),a=t&&t.documentElement,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,n.default)(a,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||a.scrollTop)-(a.clientTop||0),left:l.left+(o.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.height)||0}};var n=Hl(ns),r=Hl($l),i=Hl(Gl);e.exports=t.default})),is=F(rs),os=D((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default})),as=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(r,"ms-"))};var n=Hl(os),r=/^-ms-/;e.exports=t.default})),ls=D((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default})),ss=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(r,"-ms-")};var n=Hl(ls),r=/^ms-/;e.exports=t.default})),us=D((function(e,t){t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,n.default)(t))&&(t="styleFloat");var a=e.currentStyle[t]||null;if(null==a&&o&&o[t]&&(a=o[t]),i.test(a)&&!r.test(t)){var l=o.left,s=e.runtimeStyle,u=s&&s.left;u&&(s.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=l,u&&(s.left=u)}return a}}};var n=Hl(as),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default})),cs=D((function(e,t){t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default})),ds=D((function(e,t){t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var n,r,i,o,a,l,s,u,c,d,p,f=Hl(ts),h="transform";if(t.transform=h,t.animationEnd=i,t.transitionEnd=r,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=a,t.transitionProperty=o,t.animationDelay=p,t.animationTiming=d,t.animationDuration=c,t.animationName=u,f.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var l=i[a];if(l+"TransitionProperty"in n){o="-"+l.toLowerCase(),e=r[l]("TransitionEnd"),t=r[l]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();n=v.prefix,t.transitionEnd=r=v.transitionEnd,t.animationEnd=i=v.animationEnd,t.transform=h=n+"-"+h,t.transitionProperty=o=n+"-transition-property",t.transitionDuration=a=n+"-transition-duration",t.transitionDelay=s=n+"-transition-delay",t.transitionTiming=l=n+"-transition-timing-function",t.animationName=u=n+"-animation-name",t.animationDuration=c=n+"-animation-duration",t.animationTiming=d=n+"-animation-delay",t.animationDelay=p=n+"-animation-timing-function"}var g={transform:h,end:r,property:o,timing:l,delay:s,duration:a};t.default=g})),ps=D((function(e,t){t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default})),fs=D((function(e,t){t.__esModule=!0,t.default=function(e,t,l){var s="",u="",c=t;if("string"==typeof t){if(void 0===l)return e.style[(0,n.default)(t)]||(0,i.default)(e).getPropertyValue((0,r.default)(t));(c={})[t]=l}Object.keys(c).forEach((function(t){var n=c[t];n||0===n?(0,a.default)(t)?u+=t+"("+n+") ":s+=(0,r.default)(t)+": "+n+";":(0,o.default)(e,(0,r.default)(t))})),u&&(s+=ds.transform+": "+u+";");e.style.cssText+=";"+s};var n=Hl(as),r=Hl(ss),i=Hl(us),o=Hl(cs),a=Hl(ps);e.exports=t.default})),hs=F(fs),vs=D((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,n.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==i(e)&&"static"===(0,r.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var n=Hl(Gl),r=Hl(fs);function i(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default})),gs=F(D((function(e,t){t.__esModule=!0,t.default=function(e,t){var s,u={top:0,left:0};"fixed"===(0,l.default)(e,"position")?s=e.getBoundingClientRect():(t=t||(0,i.default)(e),s=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(u=(0,r.default)(t)),u.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,o.default)(t)||0,u.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,n.default)({},s,{top:s.top-u.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:s.left-u.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var n=Hl(es),r=Hl(rs),i=Hl(vs),o=Hl(Xl),a=Hl(Zl),l=Hl(fs);e.exports=t.default})));const ms={top:"top",bottom:"top",left:"left",right:"left"},ys={top:"bottom",bottom:"top",left:"right",right:"left"},bs={top:"left",left:"top"},xs={top:"height",left:"width"},ws={};let Ss="undefined"!=typeof window&&window.visualViewport;function Es(e,t,n,r,i){let o=r.scroll[e],a=r[xs[e]],l=t-i-o,s=t+i-o+n;return l<0?-l:s>a?Math.max(a-s,-l):0}function ks(e){if(ws[e])return ws[e];let[t,n]=e.split(" "),r=ms[t]||"right",i=bs[r];ms[n]||(n="center");let o=xs[r],a=xs[i];return ws[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},ws[e]}function Ps(e,t,n,r,i,o,a,l){let{placement:s,crossPlacement:u,axis:c,crossAxis:d,size:p,crossSize:f}=r,h={};h[d]=e[d],"center"===u?h[d]+=(e[f]-n[f])/2:u!==d&&(h[d]+=e[f]-n[f]),h[d]+=o;let v=e[d]+e[f]/2-n[f],g=e[d]+e[f]/2;if(h[d]=Math.min(Math.max(v,h[d]),g),s===c){const n=l?a[p]:t[p];h[ys[c]]=Math.floor(n-e[c]+i)}else h[c]=Math.floor(e[c]+e[p]+i);return h}function Ts(e,t,n,r,i,o){let{placement:a,axis:l,size:s}=o;return a===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[ys[l]]-i):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[ys[l]]-i)}function Cs(e,t,n,r,i,o,a,l,s,u,c,d){let p=ks(e),{size:f,crossAxis:h,crossSize:v,placement:g,crossPlacement:m}=p,y=Ps(t,l,n,p,u,c,s,d),b=u,x=Ts(l,s,t,i,o+u,p);if(a&&r[f]>x){let e=ks(ys[g]+" "+m),r=Ps(t,l,n,e,u,c,s,d);Ts(l,s,t,i,o+u,e)>x&&(p=e,y=r,b=u)}let w=Es(h,y[h],n[v],l,o);y[h]+=w;let S=function(e,t,n,r,i,o){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(i.top+i.bottom+o)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}(y,l,s,t,i,o);n.height=Math.min(n.height,S),y=Ps(t,l,n,p,b,c,s,d),w=Es(h,y[h],n[v],l,o),y[h]+=w;let E={};return E[h]=t[h]-y[h]+t[v]/2,{position:y,maxHeight:S,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:p.placement}}function Os(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u}=e,c=r.offsetParent||document.body,d="BODY"===c.tagName;const p=window.getComputedStyle(c).position;let f=!!p&&"static"!==p,h=d?is(n):gs(n,c);d||(h.top+=parseInt(hs(n,"marginTop"),10)||0,h.left+=parseInt(hs(n,"marginLeft"),10)||0);let v=is(r),g=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);var m;return v.width+=g.left+g.right,v.height+=g.top+g.bottom,Cs(t,h,v,{top:(m=i).scrollTop,left:m.scrollLeft,width:m.scrollWidth,height:m.scrollHeight},g,o,a,function(e){let t=0,n=0,r=0,i=0,o={};var a,l;return"BODY"===e.tagName?(t=null!=(a=null==Ss?void 0:Ss.width)?a:document.documentElement.clientWidth,n=null!=(l=null==Ss?void 0:Ss.height)?l:document.documentElement.clientHeight,o.top=Yl(Jl(e).documentElement)||Yl(e),o.left=Ql(Jl(e).documentElement)||Ql(e)):(({width:t,height:n,top:r,left:i}=is(e)),o.top=Yl(e),o.left=Ql(e)),{width:t,height:n,scroll:o,top:r,left:i}}(l),"BODY"===l.tagName?is(c):gs(c,l),s,u,f)}const Ns=new WeakMap;let js="undefined"!=typeof window&&window.visualViewport;function As(e){let{direction:t}=vi(),{targetRef:n,overlayRef:r,scrollRef:s=r,placement:u="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:p=("undefined"!=typeof document?document.body:null),offset:f=0,crossOffset:h=0,shouldUpdatePosition:v=!0,isOpen:g=!0,onClose:m}=e,[y,b]=o({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[v,u,r.current,n.current,s.current,c,d,p,f,h,g,t],w=l((()=>{!1!==v&&g&&r.current&&n.current&&s.current&&p&&b(Os({placement:Ls(u,t),overlayNode:r.current,targetNode:n.current,scrollNode:s.current,padding:c,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:h}))}),x);var S;Wt(w,x),Wt((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=w]);let E=a(!1);Wt((()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout((()=>{E.current=!1}),500),w()};return null==js||js.addEventListener("resize",t),()=>{null==js||js.removeEventListener("resize",t)}}),[w]);let k=l((()=>{E.current||m()}),[m,E]);return function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;i((()=>{if(!n)return;let e=e=>{let n=e.target;if(!t.current||!n.contains(t.current))return;let i=r||Ns.get(t.current);i&&i()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}({triggerRef:n,isOpen:g,onClose:m?k:void 0}),{overlayProps:{style:_t({position:"absolute",zIndex:1e5},y.position,{maxHeight:y.maxHeight})},placement:y.placement,arrowProps:{style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:w}}function Ls(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Fs=[];function Ds(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;i((()=>(o&&Fs.push(t),()=>{let e=Fs.indexOf(t);e>=0&&Fs.splice(e,1)})),[o,t]);let c=()=>{Fs[Fs.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,l=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;l.onInteractOutside=n,l.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{ul(e,t)&&l.onInteractOutside&&(l.onInteractOutsideStart&&l.onInteractOutsideStart(e),l.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{l.isPointerDown&&l.onInteractOutside&&ul(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&l.onInteractOutside&&ul(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))},r=e=>{l.ignoreEmulatedMouseEvents=!0,l.onInteractOutside&&l.isPointerDown&&ul(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,l,r])}({ref:t,onInteractOutside:l?e=>{u&&!u(e.target)||(Fs[Fs.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||Fs[Fs.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:d}=nl({isDisabled:!r,onBlurWithin:e=>{u&&!u(e.relatedTarget)||n()}});return{overlayProps:_t({onKeyDown:e=>{"Escape"!==e.key||s||(e.preventDefault(),c())}},d),underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function Rs(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&Ns.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let l=Jt();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?l:null},overlayProps:{id:l}}}const Is="undefined"!=typeof window&&window.visualViewport,Ms=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _s(e){void 0===e&&(e={});let{isDisabled:t}=e;Wt((()=>{if(!t)return xn()?function(){let e,t=0,n=n=>{e=dn(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)},r=n=>{if(e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,i=e.scrollTop,o=e.scrollHeight-e.clientHeight;(i<=0&&r>t||i>=o&&r<t)&&n.preventDefault(),t=r},i=e=>{let t=e.target;t instanceof HTMLInputElement&&!Ms.has(t.type)&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))},o=e=>{let t=e.target;t instanceof HTMLInputElement&&!Ms.has(t.type)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Is&&(Is.height<window.innerHeight?requestAnimationFrame((()=>{Vs(t)})):Is.addEventListener("resize",(()=>Vs(t)),{once:!0}))})))},a=()=>{window.scrollTo(0,0)},l=window.pageXOffset,s=window.pageYOffset,u=Xt(zs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),zs(document.documentElement,"overflow","hidden"),zs(document.body,"marginTop","-"+s+"px"));window.scrollTo(0,0);let c=Xt(Ks(document,"touchstart",n,{passive:!1,capture:!0}),Ks(document,"touchmove",r,{passive:!1,capture:!0}),Ks(document,"touchend",i,{passive:!1,capture:!0}),Ks(document,"focus",o,!0),Ks(window,"scroll",a));return()=>{u(),c(),window.scrollTo(l,s)}}():Xt(zs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),zs(document.documentElement,"overflow","hidden"))}),[t])}function zs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ks(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Vs(e){let t=dn(e);if(t!==document.documentElement&&t!==document.body){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}}const Us=t.createContext(null);function Bs(e){let{children:n}=e,i=r(Us),[a,l]=o(0),u=s((()=>({parent:i,modalCount:a,addModal(){l((e=>e+1)),i&&i.addModal()},removeModal(){l((e=>e-1)),i&&i.removeModal()}})),[i,a]);return t.createElement(Us.Provider,{value:u},n)}function qs(e){let t=r(Us);if(!t)throw new Error("Modal is not contained within a provider");return i((()=>{if((null==e||!e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}}),[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null!=e&&e.isDisabled)}}}var Ws;Ws=JSON.parse('{"dismiss":"تجاهل"}');var Gs;Gs=JSON.parse('{"dismiss":"Отхвърляне"}');var Js;Js=JSON.parse('{"dismiss":"Odstranit"}');var Hs;Hs=JSON.parse('{"dismiss":"Luk"}');var $s;$s=JSON.parse('{"dismiss":"Schließen"}');var Xs;Xs=JSON.parse('{"dismiss":"Απόρριψη"}');var Ys;Ys=JSON.parse('{"dismiss":"Dismiss"}');var Zs;Zs=JSON.parse('{"dismiss":"Descartar"}');var Qs;Qs=JSON.parse('{"dismiss":"Lõpeta"}');var eu;eu=JSON.parse('{"dismiss":"Hylkää"}');var tu;tu=JSON.parse('{"dismiss":"Rejeter"}');var nu;nu=JSON.parse('{"dismiss":"התעלם"}');var ru;ru=JSON.parse('{"dismiss":"Odbaci"}');var iu;iu=JSON.parse('{"dismiss":"Elutasítás"}');var ou;ou=JSON.parse('{"dismiss":"Ignora"}');var au;au=JSON.parse('{"dismiss":"閉じる"}');var lu;lu=JSON.parse('{"dismiss":"무시"}');var su;su=JSON.parse('{"dismiss":"Atmesti"}');var uu;uu=JSON.parse('{"dismiss":"Nerādīt"}');var cu;cu=JSON.parse('{"dismiss":"Lukk"}');var du;du=JSON.parse('{"dismiss":"Negeren"}');var pu;pu=JSON.parse('{"dismiss":"Zignoruj"}');var fu;fu=JSON.parse('{"dismiss":"Descartar"}');var hu;hu=JSON.parse('{"dismiss":"Dispensar"}');var vu;vu=JSON.parse('{"dismiss":"Revocare"}');var gu;gu=JSON.parse('{"dismiss":"Пропустить"}');var mu;mu=JSON.parse('{"dismiss":"Zrušiť"}');var yu;yu=JSON.parse('{"dismiss":"Opusti"}');var bu;bu=JSON.parse('{"dismiss":"Odbaci"}');var xu;xu=JSON.parse('{"dismiss":"Avvisa"}');var wu;wu=JSON.parse('{"dismiss":"Kapat"}');var Su;Su=JSON.parse('{"dismiss":"Скасувати"}');var Eu;Eu=JSON.parse('{"dismiss":"取消"}');var ku;ku=JSON.parse('{"dismiss":"關閉"}');const Pu={"ar-AE":Wl(Ws).default,"bg-BG":Wl(Gs).default,"cs-CZ":Wl(Js).default,"da-DK":Wl(Hs).default,"de-DE":Wl($s).default,"el-GR":Wl(Xs).default,"en-US":Wl(Ys).default,"es-ES":Wl(Zs).default,"et-EE":Wl(Qs).default,"fi-FI":Wl(eu).default,"fr-FR":Wl(tu).default,"he-IL":Wl(nu).default,"hr-HR":Wl(ru).default,"hu-HU":Wl(iu).default,"it-IT":Wl(ou).default,"ja-JP":Wl(au).default,"ko-KR":Wl(lu).default,"lt-LT":Wl(su).default,"lv-LV":Wl(uu).default,"nb-NO":Wl(cu).default,"nl-NL":Wl(du).default,"pl-PL":Wl(pu).default,"pt-BR":Wl(fu).default,"pt-PT":Wl(hu).default,"ro-RO":Wl(vu).default,"ru-RU":Wl(gu).default,"sk-SK":Wl(mu).default,"sl-SI":Wl(yu).default,"sr-SP":Wl(bu).default,"sv-SE":Wl(xu).default,"tr-TR":Wl(wu).default,"uk-UA":Wl(Su).default,"zh-CN":Wl(Eu).default,"zh-TW":Wl(ku).default};function Tu(e){let{onDismiss:n}=e,r=mi(Pu);return t.createElement(ql,null,t.createElement("button",{tabIndex:-1,"aria-label":r("dismiss"),onClick:()=>{n&&n()}}))}let Cu=new WeakMap;function Ou(e){let[t,n]=Dt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,open(){n(!0)},close(){n(!1)},toggle(){n(!t)}}}const Nu=1500;let ju={},Au=0,Lu=!1,Fu=null,Du=null;function Ru(e){void 0===e&&(e={});let{delay:t=Nu}=e,{isOpen:n,open:r,close:o}=Ou(e),l=s((()=>""+ ++Au),[]),u=a(),c=()=>{ju[l]=f},d=()=>{for(let e in ju)e!==l&&(ju[e](!0),delete ju[e])},p=()=>{clearTimeout(u.current),u.current=null,d(),c(),Lu=!0,r(),Fu&&(clearTimeout(Fu),Fu=null),Du&&(clearTimeout(Du),Du=null)},f=e=>{e?(clearTimeout(u.current),u.current=null,o()):u.current||(u.current=setTimeout((()=>{u.current=null,o()}),500)),Fu&&(clearTimeout(Fu),Fu=null),Lu&&(Du&&clearTimeout(Du),Du=setTimeout((()=>{delete ju[l],Du=null,Lu=!1}),500))};return i((()=>()=>{clearTimeout(u.current),ju[l]&&delete ju[l]}),[l]),{isOpen:n,open:e=>{!e&&t>0&&!u.current?(d(),c(),n||Fu||Lu?n||p():Fu=setTimeout((()=>{Fu=null,Lu=!0,p()}),t)):p()},close:f}}function Iu(){}function Mu(){}Mu.resetWarningCache=Iu;var _u=D((function(e){e.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,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:Mu,resetWarningCache:Iu};return n.PropTypes=n,n}()}));var zu=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}});function Ku(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Vu=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Ku(e.className,t):e.setAttribute("class",Ku(e.className&&e.className.baseVal||"",t))}}),Uu=D((function(e,t){t.__esModule=!0,t.default=void 0;t.default={disabled:!1},e.exports=t.default}));D((function(e,t){var n;t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,!(n=_u)||n.__esModule;t.timeoutsShape=null;t.classNamesShape=null}));var Bu=D((function(e,n){var r;n.__esModule=!0,n.default=void 0;var i=((r=t)&&r.__esModule?r:{default:r}).default.createContext(null);n.default=i,e.exports=n.default})),qu=D((function(e,n){n.__esModule=!0,n.default=n.EXITING=n.ENTERED=n.ENTERING=n.EXITED=n.UNMOUNTED=void 0,l(_u);var r=l(t),i=l(x),o=l(Uu),a=l(Bu);function l(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";n.UNMOUNTED=s;var u="exited";n.EXITED=u;var c="entering";n.ENTERING=c;var d="entered";n.ENTERED=d;var p="exiting";n.EXITING=p;var f=function(e){var t,n;function l(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=c):i=d:i=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,l.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:u}:null};var f=l.prototype;return f.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},f.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=p)}this.updateStatus(!1,t)},f.componentWillUnmount=function(){this.cancelNextCallback()},f.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},f.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===c?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},f.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[i.default.findDOMNode(this),r],l=a[0],s=a[1],u=this.getTimeouts(),p=r?u.appear:u.enter;!e&&!n||o.default.disabled?this.safeSetState({status:d},(function(){t.props.onEntered(l)})):(this.props.onEnter(l,s),this.safeSetState({status:c},(function(){t.props.onEntering(l,s),t.onTransitionEnd(p,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(l,s)}))}))})))},f.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.default.findDOMNode(this);t&&!o.default.disabled?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},f.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},f.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},f.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},f.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},f.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(e,i):r.default.cloneElement(r.default.Children.only(n),i))},l}(r.default.Component);function h(){}f.contextType=a.default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=s,f.EXITED=u,f.ENTERING=c,f.ENTERED=d,f.EXITING=p;var v=f;n.default=v})),Wu=F(qu),Gu=R(zu),Ju=R(Vu),Hu=D((function(e,n){n.__esModule=!0,n.default=void 0,l(_u);var r=l(Gu),i=l(Ju),o=l(t),a=l(qu);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=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)}var u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},c=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=i.prototype;return l.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(i+=" "+o),"active"===n&&e&&e.scrollTop,i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))}(e,i))},l.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&u(e,r),i&&u(e,i),o&&u(e,o)},l.render=function(){var e=this.props;e.classNames;var t=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["classNames"]);return o.default.createElement(a.default,s({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(o.default.Component);c.defaultProps={classNames:""},c.propTypes={};var d=c;n.default=d,e.exports=n.default})),$u=D((function(e,n){function r(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var u=i[s][r];l[i[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}function o(e,t,n){return null!=n[t]?n[t]:e.props[t]}n.__esModule=!0,n.getChildMapping=r,n.mergeChildMappings=i,n.getInitialChildMapping=function(e,n){return r(e.children,(function(r){return(0,t.cloneElement)(r,{onExited:n.bind(null,r),in:!0,appear:o(r,"appear",e),enter:o(r,"enter",e),exit:o(r,"exit",e)})}))},n.getNextChildMapping=function(e,n,a){var l=r(e.children),s=i(n,l);return Object.keys(s).forEach((function(r){var i=s[r];if((0,t.isValidElement)(i)){var u=r in n,c=r in l,d=n[r],p=(0,t.isValidElement)(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,t.isValidElement)(d)&&(s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:d.props.in,exit:o(i,"exit",e),enter:o(i,"enter",e)})):s[r]=(0,t.cloneElement)(i,{in:!1}):s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:!0,exit:o(i,"exit",e),enter:o(i,"enter",e)})}})),s}})),Xu=D((function(e,n){n.__esModule=!0,n.default=void 0,o(_u);var r=o(t),i=o(Bu);function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=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)}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},s=function(e){var t,n;function o(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,$u.getInitialChildMapping)(e,r):(0,$u.getNextChildMapping)(e,n,r),firstRender:!1}},s.handleExited=function(e,t){var n=(0,$u.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},s.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),a=this.state.contextValue,s=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.default.createElement(i.default.Provider,{value:a},s):r.default.createElement(i.default.Provider,{value:a},r.default.createElement(t,o,s))},o}(r.default.Component);s.propTypes={},s.defaultProps={component:"div",childFactory:function(e){return e}};var u=s;n.default=u,e.exports=n.default})),Yu=D((function(e,n){n.__esModule=!0,n.default=void 0,a(_u);var r=a(t),i=a(x),o=a(Xu);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.handleLifecycle=function(e,t,n){var o,a=this.props.children,l=r.default.Children.toArray(a)[t];if(l.props[e]&&(o=l.props)[e].apply(o,n),this.props[e]){var s=l.props.nodeRef?void 0:i.default.findDOMNode(this);this.props[e](s)}},l.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),l=a[0],s=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);l.propTypes={};var s=l;n.default=s,e.exports=n.default})),Zu=D((function(e,n){n.__esModule=!0,n.default=n.modes=void 0;var r=l(t);l(_u);var i,o,a=l(Bu);function l(e){return e&&e.__esModule?e:{default:e}}var s={out:"out-in",in:"in-out"};n.modes=s;var u=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},c=((i={})[s.out]=function(e){var t=e.current,n=e.changeState;return r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){n(qu.ENTERING,null)}))})},i[s.in]=function(e){var t=e.current,n=e.changeState,i=e.children;return[t,r.default.cloneElement(i,{in:!0,onEntered:u(i,"onEntered",(function(){n(qu.ENTERING)}))})]},i),d=((o={})[s.out]=function(e){var t=e.children,n=e.changeState;return r.default.cloneElement(t,{in:!0,onEntered:u(t,"onEntered",(function(){n(qu.ENTERED,r.default.cloneElement(t,{in:!0}))}))})},o[s.in]=function(e){var t=e.current,n=e.children,i=e.changeState;return[r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){i(qu.ENTERED,r.default.cloneElement(n,{in:!0}))}))}),r.default.cloneElement(n,{in:!0})]},o),p=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:qu.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.appeared=!0},i.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===qu.ENTERING&&e.mode===s.in?{status:qu.ENTERING}:!t.current||(n=t.current,i=e.children,n===i||r.default.isValidElement(n)&&r.default.isValidElement(i)&&null!=n.key&&n.key===i.key)?{current:r.default.cloneElement(e.children,{in:!0})}:{status:qu.EXITING};var n,i},o.render=function(){var e,t=this.props,n=t.children,i=t.mode,o=this.state,l=o.status,s=o.current,u={children:n,current:s,changeState:this.changeState,status:l};switch(l){case qu.ENTERING:e=d[i](u);break;case qu.EXITING:e=c[i](u);break;case qu.ENTERED:e=s}return r.default.createElement(a.default.Provider,{value:{isMounting:!this.appeared}},e)},i}(r.default.Component);p.propTypes={},p.defaultProps={mode:s.out};var f=p;n.default=f})),Qu=D((function(e,t){t.__esModule=!0,t.config=t.Transition=t.TransitionGroup=t.SwitchTransition=t.ReplaceTransition=t.CSSTransition=void 0;var n=s(Hu);t.CSSTransition=n.default;var r=s(Yu);t.ReplaceTransition=r.default;var i=s(Zu);t.SwitchTransition=i.default;var o=s(Xu);t.TransitionGroup=o.default;var a=s(qu);t.Transition=a.default;var l=s(Uu);function s(e){return e&&e.__esModule?e:{default:e}}t.config=l.default}));function ec(e){var t=e.isOpen;e.placement,e.minOffset,e.minScale;var n=e.children,r=e.container,i=Ui({}).root,o=M.jsx(Qu.CSSTransition,k({in:t,unmountOnExit:!0,timeout:180,classNames:"cube-overlay-transition"},{children:n}),void 0);return w(o,i||r||document.body)}var tc={display:"inline-block",position:"relative",opacity:{"":1,"[disabled]":.4},transition:"theme"},nc=j(j([],N(Yo),!1),N(Ho),!1),rc=h((function(e,t){var n=e.as,r=e.label,i=e.onClick,o=P(e,["as","label","onClick"]),a=o.isDisabled,l=co(o,nc,tc),s=Ei(t),u=sl({isDisabled:a}),c=u.hoverProps,d=u.isHovered,p=dl({isDisabled:a}),f=p.focusProps,h=p.isFocused,v=Kl(o,s).focusableProps;return M.jsx(Bo,k({"data-is-hovered":d&&!a?"":null,"data-is-focused":h&&!a?"":null,"data-is-disabled":a||null,"aria-label":r},Yt(c,f,v,{onClick:i},oa(o,{eventProps:!0})),{tabIndex:o.excludeFromTabOrder||a?-1:0,as:n,styles:l,ref:s}),void 0)})),ic={display:"block"},oc=h((function(e,t){var n=co(e,Yo,ic);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)}));var ac=function(e){var t=e.children,n=e.activeWrap,r=e.crossOffset,o=void 0===r?0:r,l=e.isDisabled,s=e.isMaterial,u=e.offset,c=void 0===u?8:u,p=e.trigger,f=N(d.toArray(t),2),h=f[0],v=f[1],g=Ru(k({delay:750},e)),m=a(null),y=a(null),b=function(e,t,n){let{isDisabled:r,trigger:o}=e,l=Jt(),s=a(!1),u=a(!1),c=()=>{(s.current||u.current)&&t.open(u.current)},d=e=>{s.current||u.current||t.close(e)};i((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&t.close(!0)};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let{hoverProps:p}=sl({isDisabled:r,onHoverStart:()=>{"focus"!==o&&("pointer"===el()?s.current=!0:s.current=!1,c())},onHoverEnd:()=>{"focus"!==o&&(u.current=!1,s.current=!1,d())}}),{pressProps:f}=ja({onPressStart:()=>{u.current=!1,s.current=!1,d(!0)}}),{focusableProps:h}=Kl({isDisabled:r,onFocus:()=>{Qa()&&(u.current=!0,c())},onBlur:()=>{u.current=!1,s.current=!1,d(!0)}},n);return{triggerProps:_t({"aria-describedby":t.isOpen?l:void 0},Yt(h,p,f)),tooltipProps:{id:l}}}({isDisabled:l,trigger:p},g,m),x=b.triggerProps,w=b.tooltipProps,S=As({placement:e.placement||"top",targetRef:m,overlayRef:y,offset:c,crossOffset:o,isOpen:g.isOpen}),E=S.overlayProps,P=S.arrowProps,T=S.placement;return n||"string"!=typeof h?M.jsxs(zl,k({},x,{ref:m},{children:[n?M.jsx(rc,k({onClick:function(e){var t;null===(t=null==e?void 0:e.currentTarget)||void 0===t||t.parentNode.click()}},{children:h}),void 0):h,M.jsx(Vl.Provider,k({value:k({state:g,placement:T,ref:y,overlayProps:E,arrowProps:P,minOffset:"var(--gap)",minScale:"1",isMaterial:s},w)},{children:M.jsx(ec,k({isOpen:g.isOpen,placement:e.placement||"top"},{children:v}),void 0)}),void 0)]}),void 0):(console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),M.jsx(oc,{children:h},void 0))},lc={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},sc={initial:"translate(0px, calc(-1 * var(--overlay-offset)))",top:"translate(0px, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0px)",left:"translate(calc(1 * var(--overlay-offset)), 0px)",bottom:"translate(0px, calc(-1 * var(--overlay-offset)))"},uc=function(e){var t=void 0===e?{}:e,n=t.suffix,r=void 0===n?"":n,i=t.placement,o=void 0===i?"initial":i,a=t.minScale,l=void 0===a?.8:a,s=t.minOffset;return"\n &"+r+" {\n transform: var(--overlay-position);\n transform-origin: "+lc[o]+";\n --overlay-offset: "+(void 0===s?"8px":s)+";\n --overlay-hidden-x-scale: "+("top"===o||"bottom"===o||"initial"===o?"1":l)+";\n --overlay-hidden-y-scale: "+("left"===o||"right"===o?"1":l)+";\n --overlay-translate-visible: translate(0px, 0px);\n --overlay-translate-hidden: "+sc[o]+";\n --overlay-transition: 180ms;\n --overlay-hidden-scale: scale(var(--overlay-hidden-x-scale), var(--overlay-hidden-y-scale));\n --overlay-normal-scale: scale(1, 1);\n }\n\n &.cube-overlay-transition-enter"+r+" {\n opacity: 0;\n transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);\n }\n\n &.cube-overlay-transition-enter-active"+r+" {\n opacity: 1;\n transform: var(--overlay-translate-visible) var(--overlay-normal-scale);\n transition: transform var(--overlay-transition) cubic-bezier(0, .66, 0, .66), opacity var(--overlay-transition) cubic-bezier(0, .66, 0, .66);\n pointer-events: none;\n }\n\n &.cube-overlay-transition-exit"+r+" {\n opacity: 1;\n transform: var(--overlay-translate-visible) var(--overlay-normal-scale);\n }\n\n &.cube-overlay-transition-exit-active"+r+" {\n opacity: 0;\n transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);\n pointer-events: none;\n transition: transform var(--overlay-transition) cubic-bezier(.66, 0, .66, 0), opacity var(--overlay-transition) cubic-bezier(.66, 0, .66, 0);\n }\n"},cc={display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)",whiteSpace:"pre-line"},dc={position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.375x, (-.375x - 1px)) rotate(270deg)",'[data-placement="right"]':"translate(.375x, (-.375x - 1px)) rotate(90deg)"}};var pc=h((function(e,t){var n=r(Vl),i=n.ref,o=n.arrowProps,l=n.state,s=n.overlayProps,u=n.minOffset,d=n.minScale,p=P(n,["ref","arrowProps","state","overlayProps","minOffset","minScale"]),f=a(null);i=i||f;var h=(e=Yt(e,p)).placement,v=void 0===h?"top":h,g=e.isOpen,m=e.tipStyles;e.showIcon;var y=e.isMaterial,b=co(P(e,["placement","isOpen","tipStyles","showIcon","isMaterial"]),Yo,k(k(k({},cc),{pointerEvents:y?"auto":"none"}),Mi("Tooltip",e)));m=k(k(k({},dc),Mi("Tooltip_Tip")),m);var x=function(e,t){let n=tn(e,{labelable:!0}),{hoverProps:r}=sl({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:Yt(n,r,{role:"tooltip"})}}(e,l).tooltipProps;return c(t,(function(){return i?xi(i):null})),"number"==typeof u&&(u+="px"),"number"==typeof d&&(d=String(d)),M.jsxs(Bo,k({},x,s,{css:uc({placement:v,minOffset:u,minScale:d}),styles:b,mods:{open:g},"data-placement":v,ref:i},{children:[e.children,M.jsx(Bo,k({"data-placement":v,styles:m},o),void 0)]}),void 0)}));var fc=function(e){var t=N(o(!1),2),n=t[0],r=t[1],a=e.title,l=e.children,s=e.tooltipStyles,u=e.width,c=P(e,["title","children","tooltipStyles","width"]);return i((function(){r(!0)})),n?M.jsxs(ac,k({},c,{children:[l,M.jsx(pc,k({styles:s},u?{width:u}:null,{children:a}),void 0)]}),void 0):M.jsx(M.Fragment,{children:"children"},void 0)},hc={display:"grid",gridColumns:{"":"1fr","has-sider":"auto 1fr"},gap:{"":"1x","has-sider":"@(column-gap, 1x)"},placeItems:"baseline stretch"},vc={preset:"default",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},fontWeight:400,textAlign:"left",column:{"":1,"has-sider":2},userSelect:"none"};var gc=h((function(e,t){var n=e.as,r=e.labelPosition,i=e.label,o=e.styles,a=e.isRequired,l=e.isDisabled,s=e.labelStyles,u=e.necessityIndicator,c=e.labelProps,d=e.fieldProps,p=e.message,f=e.messageStyles,h=e.Component,v=e.validationState,g=e.requiredMark,m=void 0===g||g,y=e.tooltip,b={"has-sider":"side"===r&&i,invalid:"invalid"===v,valid:"valid"===v};return M.jsxs(Bo,k({as:n||"div",qa:"Field",ref:t,mods:b,styles:k(k({},hc),o)},d,{children:[i&&M.jsxs(xl,k({as:"label"===n?"div":"label",styles:s,labelPosition:r,isRequired:!!m&&a,isDisabled:l,necessityIndicator:u,validationState:v},c,{children:[i,y?M.jsxs(M.Fragment,{children:[" ",M.jsx(fc,k({title:y,activeWrap:!0,width:"initial max-content 40x"},{children:M.jsx(wt,{style:{color:"var(--primary-color)"}},void 0)}),void 0)]},void 0):null]}),void 0),h,p&&!l&&M.jsx(Bo,k({mods:b,styles:k(k({},vc),f),role:"invalid"===v?"alert":void 0},{children:p}),void 0)]}),void 0)})),mc={display:"flex",gap:!0},yc={align:"alignItems",justify:"justifyItems"},bc=h((function(e,t){var n=e.direction?"vertical"===e.direction?"column":"row":e.flow||"row",r=co(e,Yo,k(k({},mc),{flow:n,alignItems:"row"===n?"center":"stretch"}),yc);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:r,ref:t}),void 0)})),xc={display:"grid",position:"relative"},wc=j(j([],N(Wo),!1),N($o),!1),Sc=j(j([],N(Go),!1),["resize"],!1),Ec={display:"block",width:"initial 100% initial",height:"initial initial initial",color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#white",disabled:"#dark.04"},border:{"":!0,focused:!0,valid:"#success-text.50",invalid:"#danger-text.50",disabled:!0},outline:{"":"#purple-03.0",focused:"#purple-03","invalid & focused":"#danger.50","valid & focused":"#success.50"},radius:!0,padding:{"":"(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)",'[data-size="small"]':"(.75x - 1px) (1.5x - 1px)"},fontWeight:400,textAlign:"left",reset:"input",preset:"default",flexGrow:1,margin:0,resize:"none"};var kc=h((function(e,t){var n=(e=xa(e=Ui(e))).qa,r=e.label,i=e.labelPosition,l=void 0===i?"top":i,s=e.labelStyles,u=e.isRequired,d=e.necessityIndicator,p=e.necessityLabel,h=e.validationState,v=e.message,g=e.prefix,m=e.isDisabled,y=e.multiLine;e.autoFocus;var b=e.labelProps,x=e.inputProps,w=e.wrapperProps,S=e.inputRef,E=e.isLoading,T=e.loadingIndicator;e.value;var C=e.inputStyles,O=void 0===C?{}:C,j=e.wrapperStyles,A=void 0===j?{}:j,L=e.suffix,F=e.suffixPosition,D=void 0===F?"before":F,R=e.wrapperRef,I=e.requiredMark,_=void 0===I||I,z=e.tooltip,K=e.rows,V=void 0===K?1:K,U=e.size,B=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","necessityLabel","validationState","message","prefix","isDisabled","multiLine","autoFocus","labelProps","inputProps","wrapperProps","inputRef","isLoading","loadingIndicator","value","inputStyles","wrapperStyles","suffix","suffixPosition","wrapperRef","requiredMark","tooltip","rows","size"]),q=N(o(0),2),W=q[0],G=q[1],J=N(o(0),2),H=J[0],$=J[1],X=co(B,wc),Y=Mi("Input",B);O=co(B,Sc,k(k(k({},Ec),Y),O)),A=k(k({},xc),A),g&&(O.paddingLeft=H+"px"),(h||E||L)&&(O.paddingRight=W+"px");var Z=y?"textarea":"input",Q=dl({isDisabled:m}),ee=Q.isFocused,te=Q.focusProps,ne=sl({isDisabled:m}),re=ne.hoverProps,ie=ne.isHovered,oe=a(null),ae=a(null);S=S||ae,c(t,(function(){return k(k({},wi(oe,S)),{select:function(){(null==S?void 0:S.current)&&S.current.select()},getInputElement:function(){return null==S?void 0:S.current}})}));var le="invalid"===h,se=le?M.jsx(Ft,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),ue=f(se);L="string"==typeof L?M.jsx(oc,k({padding:"1x right"},{children:L}),void 0):L,(null==x?void 0:x.placeholder)||(x||(x={}),x.placeholder=" ");var ce=M.jsxs(Bo,k({ref:R,qa:(n||"TextInput")+"Wrapper",mods:{invalid:le,valid:"valid"===h,loadable:!!T,multiline:y},"data-size":U,styles:A},w,{children:[M.jsx(Bo,k({qa:n||"TextInput",as:Z},Lo(x,te,re),{ref:S,rows:y?V:void 0,mods:{invalid:le,valid:"valid"===h,disabled:m,hovered:ie,focused:ee},"data-size":U,styles:O}),void 0),M.jsx(fl,k({padding:"0 1x 0 1.5x",onWidthChange:$,opacity:!!m&&"@disabled-opacity",placeItems:"center"},{children:"string"==typeof g?M.jsx(oc,k({padding:"1x left"},{children:g}),void 0):g}),void 0),M.jsxs(vl,k({padding:".5x left",onWidthChange:G,opacity:!!m&&"@disabled-opacity"},{children:["before"===D?L:null,M.jsxs(bc,k({gap:!1,padding:"0 "+(L?"1x":"1.5x")+" 0 0"},{children:[h&&!E?ue:null,E&&M.jsx(Ct,{},void 0)]}),void 0),"after"===D?L:null]}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:l,label:r,styles:X,isRequired:u,labelStyles:s,necessityIndicator:d,necessityLabel:p,labelProps:b,isDisabled:m,validationState:h,message:v,requiredMark:_,tooltip:z,Component:ce,ref:oe}),void 0)}));function Pc(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Jt(t);let a=Jt(),l={};return n?(r=r?r+" "+a:a,l={id:a,htmlFor:"label"===o?t:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:un({id:t,"aria-label":i,"aria-labelledby":r})}}function Tc(e){let{description:t,errorMessage:n}=e,{labelProps:r,fieldProps:i}=Pc(e),o=$t(),a=$t();i=Yt(i,{"aria-describedby":[o,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0});let l={},s={};return t&&(l.id=o),n&&(s.id=a),{labelProps:r,fieldProps:i,descriptionProps:l,errorMessageProps:s}}function Cc(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:a,type:l="text",onChange:s=(()=>{})}=e,{focusableProps:u}=Kl(e,t),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:f}=Tc(e),h=tn(e,{labelable:!0});const v={type:l,pattern:e.pattern};return{labelProps:c,inputProps:Yt(h,"input"===n&&v,_t({disabled:r,readOnly:o,"aria-required":i||void 0,"aria-invalid":"invalid"===a||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>s(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput},u,d)),descriptionProps:p,errorMessageProps:f}}function Oc(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var Nc=h((function(e,t){e=Ui(e);var n=a(null),r=Cc(e,n),i=r.labelProps,o=r.inputProps;return M.jsx(kc,k({},e,{labelProps:i,inputProps:o,ref:t,inputRef:n}),void 0)}));function jc(e,t){let n,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:l,onPressChange:s,preventFocusOnPress:u,onClick:c,href:d,target:p,rel:f,type:h="button"}=e;n="button"===r?{type:h,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===r&&i?void 0:d,target:"a"===r?p:void 0,type:"input"===r?h:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?f:void 0};let{pressProps:v,isPressed:g}=ja({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:o,isDisabled:i,preventFocusOnPress:u,ref:t}),{focusableProps:m}=Kl(e,t),y=Yt(m,v);return y=Yt(y,tn(e,{labelable:!0})),{isPressed:g,buttonProps:Yt(n,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{c&&(c(e),console.warn("onClick is deprecated, please use onPress"))}})}}var Ac={propNames:new Set(["onMouseEnter","onMouseLeave"])};function Lc(e,t){var n=document.createElement("a");n.href=e,t&&(n.target=!0===t?"_blank":t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Fc(e){var t=e&&"string"==typeof e&&e.startsWith("!"),n=e&&"string"==typeof e&&e.startsWith("@");return{newTab:t,nativeRoute:n,href:e&&"string"==typeof e?t||n?e.slice(1):e:void 0}}var Dc={reset:"button",position:"relative",margin:0,fontFamily:"var(--font)",fontWeight:"inherit",border:0,padding:0,outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"pointer"},Rc=j(j([],N(Yo),!1),N(Ho),!1),Ic=h((function(e,t){var n=e.to,i=e.as,o=e.htmlType,a=e.label,s=e.theme,u=e.css,c=e.mods,d=e.onPress,p=P(e,["to","as","htmlType","label","theme","css","mods","onPress"]);i=n?"a":i||"button";var f=r(Ki).router,h=p.isDisabled,v=Fc(n),g=v.newTab,m=v.href,y=g?"_blank":void 0,b=Ei(t),x=co(p,Rc,Dc),w=l((function(e){!function(e,t,n,r){var i=Fc(n),o=i.newTab,a=i.nativeRoute,l=i.href;if(null==r||r(e),n)if(e.shiftKey||e.metaKey||o)Lc(l,!0);else{if(a)Lc(l||window.location.href);else if(l&&l.startsWith("#")){var s=l.slice(1),u=document.getElementById(s);if(u)return void u.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}t?t.push(l):l&&(window.location.href=l)}}(e,f,n,d)}),[f,n,d]),S=jc(k(k({},p),{onPress:w}),b),E=S.buttonProps,T=S.isPressed,C=sl({isDisabled:h}),O=C.hoverProps,N=C.isHovered,j=dl({isDisabled:h},!0),A=j.focusProps,L=j.isFocused,F=n?{onClick:function(e){e.preventDefault()}}:{};return M.jsx(Bo,k({mods:k({hovered:N&&!h,pressed:T&&!h,focused:L&&!h,disabled:h},c),"aria-label":a,"data-theme":s},Yt(E,O,A,F,oa(p,Ac)),{type:o||"button",rel:"a"===i&&g?'rel="noopener noreferrer"':void 0,ref:b,as:i,isDisabled:h,styles:x,target:y,href:m,css:u}),void 0)}));var Mc={primary:{border:{"":"#clear",pressed:"#purple-text"},fill:{hovered:"#purple-text","pressed | !hovered":"#purple","[disabled]":"#dark.04"},color:{"":"#white","[disabled]":"#dark.30"}},default:{border:{"":"#clear",pressed:"#purple.30"},fill:{"":"#purple.10",hovered:"#purple.16",pressed:"#purple.10","[disabled]":"#dark.04"},color:{"":"#purple","[disabled]":"#dark.30"}},clear:{border:{"":"#clear",pressed:"#purple-text.10"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10","[disabled]":"#purple.0"},color:{"":"#purple-text","[disabled]":"#dark.30"}},outline:{border:{"":"#purple.30",pressed:"#purple-text.10","[disabled]":"#dark.12"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10","[disabled]":"#purple.0"},color:{"":"#purple-text","[disabled]":"#dark.30"}},link:{fontWeight:500,padding:"0",radius:{"":"0",focused:!0},fill:"#clear",color:{"":"#purple-text",pressed:"#purple","[disabled]":"#dark.30"},shadow:{"":"0 @border-width 0 0 #purple-03.20",focused:"0 0 0 @outline-width #purple-03.20","pressed | hovered | [disabled]":"0 0 0 0 #purple.20"}},danger:{border:{"":"#clear",pressed:"#danger-text"},fill:{"":"#danger",pressed:"#danger",hovered:"#danger-text","[disabled]":"#dark.04"},color:{"":"#white","[disabled]":"#dark.30"}},neutral:{border:"0",fill:{"":"#dark.0",hovered:"#dark.04","[disabled]":"#dark.04"},color:{"":"#dark.75",hovered:"#dark.75",pressed:"#purple","[disabled]":"#dark.30"},textAlign:"left",padding:"(1x - 1px) (1.5x - 1px)",height:"min (2x + 1lh)"}},_c={primary:{border:{"":"#clear",pressed:"#danger-text"},fill:{hovered:"#danger-text","pressed | !hovered":"#danger","[disabled]":"#dark.04"},color:{"":"#white","[disabled]":"#dark.30"}},default:{border:{"":"#clear",pressed:"#danger.30"},fill:{"":"#danger.05",hovered:"#danger.1",pressed:"#danger.05","[disabled]":"#dark.04"},color:{"":"#danger","[disabled]":"#dark.30"}},clear:{border:{"":"#clear",pressed:"#danger-text.10"},fill:{"":"#danger.0",hovered:"#danger.1",pressed:"#danger.05","[disabled]":"#danger.0"},color:{"":"#danger-text","[disabled]":"#dark.30"}},outline:{border:{"":"#danger.30",pressed:"#danger-text.10","[disabled]":"#dark.04"},fill:{"":"#danger.0",hovered:"#danger.1",pressed:"#danger.05","[disabled]":"#danger.0"},color:{"":"#danger-text","[disabled]":"#dark.30"}},link:k(k({},Mc.link),{color:{"":"#danger-text",pressed:"#danger","[disabled]":"#dark.30"},shadow:{"":"0 @border-width 0 0 #danger.20",focused:"0 0 0 @outline-width #danger.20","pressed | hovered | [disabled]":"0 0 0 0 #danger.20"}}),neutral:{border:"0",fill:{"":"#dark.0",hovered:"#dark.04","[disabled]":"#dark.04"},color:{"":"#dark.75",hovered:"#dark.75",pressed:"#danger","[disabled]":"#dark.30"},textAlign:"left",padding:"(1x - 1px) (1.5x - 1px)",height:"min (2x + 1lh)"}},zc={small:{padding:"(.75x - 1px) (1.5x - 1px)"},default:{padding:"(1.25x - 1px) (2x - 1px)"}},Kc={display:"inline-block",placeItems:"center stretch",radius:!0,fontWeight:500,preset:"default",textDecoration:"none",transition:"theme",whiteSpace:"nowrap","& .anticon.anticon-loading":{transition:"display .2s steps(1, start), margin .2s linear, opacity .2s linear",marginTop:"-7px",marginBottom:"-7px",lineHeight:0}},Vc=h((function(e,t){var n=e.type,r=e.size,i=e.label,o=e.styles,a=e.children,l=e.theme,s=e.css,u=e.icon,c=e.mods,d=P(e,["type","size","label","styles","children","theme","css","icon","mods"]),p=d.isDisabled,f=d.isLoading,h=d.isSelected,v=k(k({},d),{label:i,isLoading:f,isDisabled:p,theme:l,size:r,type:n,icon:u,children:a}),g=Mi("Button",v);return a=a||i,o=k(k(k({},function(e){var t=e.size,n=e.type,r=e.theme,i=e.isLoading,o=e.icon,a=e.children,l=e.label;return a=a||l,k(k(k(k({},zc[t||"default"]),Kc),("danger"===r?_c:Mc)[n||"default"]),!i&&!o||a?null:{padding:"0",width:"(2.5x + 1lh)",height:"(2.5x + 1lh)",display:"grid",placeItems:"center",placeContent:"center"})}(v)),g),o),f&&!a&&o&&(o.fontSize="1em",o.lineHeight="1em"),M.jsx(Ic,k({as:d.to?"a":void 0,css:s},d,{ref:t,isDisabled:f||p,theme:l,"data-type":n,"data-is-loading":f?"":void 0,"data-is-selected":h?"":void 0,"data-size":r,mods:c,styles:o,label:i},{children:u||f?M.jsxs(bc,k({gap:"1x",display:"inline-flex",styles:{verticalAlign:"middle"}},{children:[f?M.jsx(Ct,{},void 0):u,a?M.jsx("div",{children:a},void 0):null]}),void 0):a}),void 0)}));var Uc=Object.assign(h((function(e,t){var n=Ui(k({},e)),r=n.suffix,i=P(n,["suffix"]),s=N(o("password"),2),u=s[0],c=s[1],d=a(null),p=Cc(k(k({},i),{type:u}),d),f=p.labelProps,h=p.inputProps,v=l((function(e){c((function(e){return"password"===e?"text":"password"}))}),[]),g=M.jsxs(M.Fragment,{children:[r,M.jsx(Vc,{type:"neutral",htmlType:"button",onPress:v,placeSelf:"stretch",height:"auto",radius:"right (1r - 1bw)",padding:".5x 1x",width:"auto","aria-label":"Toggle masking",excludeFromTabOrder:!0,icon:"password"===u?M.jsx(at,{},void 0):M.jsx(ut,{},void 0)},void 0)]},void 0);return M.jsx(kc,k({labelProps:f,inputProps:h,ref:t,inputRef:d,inputStyles:{paddingRight:"4x"},type:u,suffixPosition:"after",suffix:g},i),void 0)})),{cubeInputType:"Text"});function Bc(e){let{minValue:t,maxValue:n,step:r,formatOptions:u,value:c,defaultValue:d,onChange:p,locale:f,isDisabled:h,isReadOnly:v}=e,[g,m]=Dt(c,isNaN(d)?NaN:d,p),[y,b]=o((()=>isNaN(g)?"":new On(f,u).format(g))),x=s((()=>new An(f,u)),[f,u]),w=s((()=>x.getNumberingSystem(y)),[x,y]),S=s((()=>new On(f,_t({},u,{numberingSystem:w}))),[f,u,w]),E=s((()=>S.resolvedOptions()),[S]),k=l((e=>isNaN(e)?"":S.format(e)),[S]),P=isNaN(r)?1:r;"percent"===E.style&&isNaN(r)&&(P=.01),i((()=>{b(k(g))}),[g,f,u]);let T=s((()=>x.parse(y)),[x,y]),C=a(0);C.current=T;let O=(e,r)=>{let i=C.current;if(isNaN(i)){return Rt(isNaN(r)?0:r,t,n,P)}{let r=Rt(i,t,n,P);return"+"===e&&r>i||"-"===e&&r<i?r:Rt(qc(e,i,P),t,n,P)}};return{validate:e=>x.isValidPartialNumber(e,t,n),increment:()=>{m((e=>{let n=O("+",t);return n===e&&b(k(n)),n}))},incrementToMax:()=>{null!=n&&m(Rt(n,t,n,P))},decrement:()=>{m((e=>{let t=O("-",n);return t===e&&b(k(t)),t}))},decrementToMin:()=>{null!=t&&m(t)},canIncrement:s((()=>!h&&!v&&(isNaN(T)||isNaN(n)||Rt(T,t,n,P)>T||qc("+",T,P)<=n)),[h,v,t,n,P,T]),canDecrement:s((()=>!h&&!v&&(isNaN(T)||isNaN(t)||Rt(T,t,n,P)<T||qc("-",T,P)>=t)),[h,v,t,n,P,T]),minValue:t,maxValue:n,numberValue:T,setInputValue:b,inputValue:y,commit:()=>{if(!y.length)return m(NaN),void b(void 0===c?"":k(g));if(isNaN(C.current))return void b(k(g));let e;e=isNaN(r)?function(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),Math.min(Math.max(e,t),n)}(C.current,t,n):Rt(C.current,t,n,r),e=x.parse(k(e)),m(e),b(k(void 0===c?e:g))}}}function qc(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const i=t.toString().split("."),o=n.toString().split("."),a=i[1]&&i[1].length||0,l=o[1]&&o[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}let Wc=t.createRef(),Gc=null,Jc=0;function Hc(e,n,r){var i;void 0===n&&(n="assertive"),void 0===r&&(r=7e3),i=t=>t.announce(e,n,r),Wc.current?i(Wc.current):(Gc=document.createElement("div"),Gc.dataset.liveAnnouncer="true",document.body.prepend(Gc),x.render(t.createElement($c,{ref:Wc}),Gc,(()=>i(Wc.current))))}const $c=t.forwardRef(((e,n)=>{let[r,i]=o([]),[a,l]=o([]),s=e=>{e&&"assertive"!==e||i([]),e&&"polite"!==e||l([])},u=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);let r=Jc++;"assertive"===t?i((t=>[...t,{id:r,text:e}])):l((t=>[...t,{id:r,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?i((e=>e.filter((e=>e.id!==r)))):l((e=>e.filter((e=>e.id!==r))))}),n)};return c(n,(()=>({announce:u,clear:s}))),t.createElement(v,null,t.createElement(Xc,{"aria-live":"assertive"},r.map((e=>t.createElement("div",{key:e.id},e.text)))),t.createElement(Xc,{"aria-live":"polite"},a.map((e=>t.createElement("div",{key:e.id},e.text)))))}));function Xc(e){let{children:n,"aria-live":r}=e;return t.createElement(ql,{role:"log","aria-live":r,"aria-relevant":"additions"},n)}var Yc;Yc=JSON.parse('{"Empty":"فارغ"}');var Zc;Zc=JSON.parse('{"Empty":"Изпразни"}');var Qc;Qc=JSON.parse('{"Empty":"Prázdné"}');var ed;ed=JSON.parse('{"Empty":"Tom"}');var td;td=JSON.parse('{"Empty":"Leer"}');var nd;nd=JSON.parse('{"Empty":"Άδειο"}');var rd;rd=JSON.parse('{"Empty":"Empty"}');var id;id=JSON.parse('{"Empty":"Vacío"}');var od;od=JSON.parse('{"Empty":"Tühjenda"}');var ad;ad=JSON.parse('{"Empty":"Tyhjä"}');var ld;ld=JSON.parse('{"Empty":"Vide"}');var sd;sd=JSON.parse('{"Empty":"ריק"}');var ud;ud=JSON.parse('{"Empty":"Prazno"}');var cd;cd=JSON.parse('{"Empty":"Üres"}');var dd;dd=JSON.parse('{"Empty":"Vuoto"}');var pd;pd=JSON.parse('{"Empty":"空"}');var fd;fd=JSON.parse('{"Empty":"비어 있음"}');var hd;hd=JSON.parse('{"Empty":"Tuščias"}');var vd;vd=JSON.parse('{"Empty":"Tukšs"}');var gd;gd=JSON.parse('{"Empty":"Tom"}');var md;md=JSON.parse('{"Empty":"Leeg"}');var yd;yd=JSON.parse('{"Empty":"Pusty"}');var bd;bd=JSON.parse('{"Empty":"Vazio"}');var xd;xd=JSON.parse('{"Empty":"Vazio"}');var wd;wd=JSON.parse('{"Empty":"Gol"}');var Sd;Sd=JSON.parse('{"Empty":"Не заполнено"}');var Ed;Ed=JSON.parse('{"Empty":"Prázdne"}');var kd;kd=JSON.parse('{"Empty":"Prazen"}');var Pd;Pd=JSON.parse('{"Empty":"Prazno"}');var Td;Td=JSON.parse('{"Empty":"Tomt"}');var Cd;Cd=JSON.parse('{"Empty":"Boş"}');var Od;Od=JSON.parse('{"Empty":"Пусто"}');var Nd;Nd=JSON.parse('{"Empty":"空"}');var jd;jd=JSON.parse('{"Empty":"空白"}');const Ad={"ar-AE":Wl(Yc).default,"bg-BG":Wl(Zc).default,"cs-CZ":Wl(Qc).default,"da-DK":Wl(ed).default,"de-DE":Wl(td).default,"el-GR":Wl(nd).default,"en-US":Wl(rd).default,"es-ES":Wl(id).default,"et-EE":Wl(od).default,"fi-FI":Wl(ad).default,"fr-FR":Wl(ld).default,"he-IL":Wl(sd).default,"hr-HR":Wl(ud).default,"hu-HU":Wl(cd).default,"it-IT":Wl(dd).default,"ja-JP":Wl(pd).default,"ko-KR":Wl(fd).default,"lt-LT":Wl(hd).default,"lv-LV":Wl(vd).default,"nb-NO":Wl(gd).default,"nl-NL":Wl(md).default,"pl-PL":Wl(yd).default,"pt-BR":Wl(bd).default,"pt-PT":Wl(xd).default,"ro-RO":Wl(wd).default,"ru-RU":Wl(Sd).default,"sk-SK":Wl(Ed).default,"sl-SI":Wl(kd).default,"sr-SP":Wl(Pd).default,"sv-SE":Wl(Td).default,"tr-TR":Wl(Cd).default,"uk-UA":Wl(Od).default,"zh-CN":Wl(Nd).default,"zh-TW":Wl(jd).default};var Ld;Ld=JSON.parse('{"decrease":"خفض {fieldLabel}","increase":"زيادة {fieldLabel}","numberField":"حقل رقمي"}');var Fd;Fd=JSON.parse('{"decrease":"Намаляване {fieldLabel}","increase":"Усилване {fieldLabel}","numberField":"Номер на полето"}');var Dd;Dd=JSON.parse('{"decrease":"Snížit {fieldLabel}","increase":"Zvýšit {fieldLabel}","numberField":"Číselné pole"}');var Rd;Rd=JSON.parse('{"decrease":"Reducer {fieldLabel}","increase":"Øg {fieldLabel}","numberField":"Talfelt"}');var Id;Id=JSON.parse('{"decrease":"{fieldLabel} verringern","increase":"{fieldLabel} erhöhen","numberField":"Nummernfeld"}');var Md;Md=JSON.parse('{"decrease":"Μείωση {fieldLabel}","increase":"Αύξηση {fieldLabel}","numberField":"Πεδίο αριθμού"}');var _d;_d=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var zd;zd=JSON.parse('{"decrease":"Reducir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var Kd;Kd=JSON.parse('{"decrease":"Vähenda {fieldLabel}","increase":"Suurenda {fieldLabel}","numberField":"Numbri väli"}');var Vd;Vd=JSON.parse('{"decrease":"Vähennä {fieldLabel}","increase":"Lisää {fieldLabel}","numberField":"Numerokenttä"}');var Ud;Ud=JSON.parse('{"decrease":"Diminuer {fieldLabel}","increase":"Augmenter {fieldLabel}","numberField":"Champ de nombre"}');var Bd;Bd=JSON.parse('{"decrease":"הקטן {fieldLabel}","increase":"הגדל {fieldLabel}","numberField":"שדה מספר"}');var qd;qd=JSON.parse('{"decrease":"Smanji {fieldLabel}","increase":"Povećaj {fieldLabel}","numberField":"Polje broja"}');var Wd;Wd=JSON.parse('{"decrease":"{fieldLabel} csökkentése","increase":"{fieldLabel} növelése","numberField":"Számmező"}');var Gd;Gd=JSON.parse('{"decrease":"Riduci {fieldLabel}","increase":"Aumenta {fieldLabel}","numberField":"Campo numero"}');var Jd;Jd=JSON.parse('{"decrease":"{fieldLabel}を縮小","increase":"{fieldLabel}を拡大","numberField":"数値フィールド"}');var Hd;Hd=JSON.parse('{"decrease":"{fieldLabel} 감소","increase":"{fieldLabel} 증가","numberField":"번호 필드"}');var $d;$d=JSON.parse('{"decrease":"Sumažinti {fieldLabel}","increase":"Padidinti {fieldLabel}","numberField":"Numerio laukas"}');var Xd;Xd=JSON.parse('{"decrease":"Samazināšana {fieldLabel}","increase":"Palielināšana {fieldLabel}","numberField":"Skaitļu lauks"}');var Yd;Yd=JSON.parse('{"decrease":"Reduser {fieldLabel}","increase":"Øk {fieldLabel}","numberField":"Tallfelt"}');var Zd;Zd=JSON.parse('{"decrease":"{fieldLabel} verlagen","increase":"{fieldLabel} verhogen","numberField":"Getalveld"}');var Qd;Qd=JSON.parse('{"decrease":"Zmniejsz {fieldLabel}","increase":"Zwiększ {fieldLabel}","numberField":"Pole numeru"}');var ep;ep=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var tp;tp=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo numérico"}');var np;np=JSON.parse('{"decrease":"Scădere {fieldLabel}","increase":"Creștere {fieldLabel}","numberField":"Câmp numeric"}');var rp;rp=JSON.parse('{"decrease":"Уменьшение {fieldLabel}","increase":"Увеличение {fieldLabel}","numberField":"Числовое поле"}');var ip;ip=JSON.parse('{"decrease":"Znížiť {fieldLabel}","increase":"Zvýšiť {fieldLabel}","numberField":"Číselné pole"}');var op;op=JSON.parse('{"decrease":"Upadati {fieldLabel}","increase":"Povečajte {fieldLabel}","numberField":"Številčno polje"}');var ap;ap=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var lp;lp=JSON.parse('{"decrease":"Minska {fieldLabel}","increase":"Öka {fieldLabel}","numberField":"Nummerfält"}');var sp;sp=JSON.parse('{"decrease":"{fieldLabel} azalt","increase":"{fieldLabel} arttır","numberField":"Sayı alanı"}');var up;up=JSON.parse('{"decrease":"Зменшити {fieldLabel}","increase":"Збільшити {fieldLabel}","numberField":"Поле номера"}');var cp;cp=JSON.parse('{"decrease":"降低 {fieldLabel}","increase":"提高 {fieldLabel}","numberField":"数字字段"}');var dp;dp=JSON.parse('{"decrease":"縮小 {fieldLabel}","increase":"放大 {fieldLabel}","numberField":"數字欄位"}');const pp={"ar-AE":Wl(Ld).default,"bg-BG":Wl(Fd).default,"cs-CZ":Wl(Dd).default,"da-DK":Wl(Rd).default,"de-DE":Wl(Id).default,"el-GR":Wl(Md).default,"en-US":Wl(_d).default,"es-ES":Wl(zd).default,"et-EE":Wl(Kd).default,"fi-FI":Wl(Vd).default,"fr-FR":Wl(Ud).default,"he-IL":Wl(Bd).default,"hr-HR":Wl(qd).default,"hu-HU":Wl(Wd).default,"it-IT":Wl(Gd).default,"ja-JP":Wl(Jd).default,"ko-KR":Wl(Hd).default,"lt-LT":Wl($d).default,"lv-LV":Wl(Xd).default,"nb-NO":Wl(Yd).default,"nl-NL":Wl(Zd).default,"pl-PL":Wl(Qd).default,"pt-BR":Wl(ep).default,"pt-PT":Wl(tp).default,"ro-RO":Wl(np).default,"ru-RU":Wl(rp).default,"sk-SK":Wl(ip).default,"sl-SI":Wl(op).default,"sr-SP":Wl(ap).default,"sv-SE":Wl(lp).default,"tr-TR":Wl(sp).default,"uk-UA":Wl(up).default,"zh-CN":Wl(cp).default,"zh-TW":Wl(dp).default};function fp(e,t,n){let{id:r,decrementAriaLabel:u,incrementAriaLabel:c,isDisabled:d,isReadOnly:p,isRequired:f,minValue:h,maxValue:v,autoFocus:g,validationState:m,label:y,formatOptions:b,onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T}=e,{increment:C,incrementToMax:O,decrement:N,decrementToMin:j,numberValue:A,commit:L}=t;const F=mi(pp);let D=Jt(r),{focusProps:R}=za({onBlur:()=>{L()}}),{spinButtonProps:I,incrementButtonProps:M,decrementButtonProps:_}=function(e){const t=a();let{value:n,textValue:r,minValue:o,maxValue:s,isDisabled:u,isReadOnly:c,isRequired:d,onIncrement:p,onIncrementPage:f,onDecrement:h,onDecrementPage:v,onDecrementToMin:g,onIncrementToMax:m}=e;const y=mi(Ad),b=()=>clearTimeout(t.current);i((()=>()=>b()),[]);let x=a(!1),w=()=>{x.current=!0},S=()=>{x.current=!1};r=""===r?y("Empty"):(r||""+n).replace("-","−"),i((()=>{x.current&&Hc(r,"assertive")}),[r]);const E=l((e=>{b(),p(),t.current=window.setTimeout((()=>{(isNaN(s)||isNaN(n)||n<s)&&E(60)}),e)}),[p,s,n]),k=l((e=>{b(),h(),t.current=window.setTimeout((()=>{(isNaN(o)||isNaN(n)||n>o)&&k(60)}),e)}),[h,o,n]);return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":r,"aria-valuemin":o,"aria-valuemax":s,"aria-disabled":u||null,"aria-readonly":c||null,"aria-required":d||null,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c))switch(e.key){case"PageUp":if(f){e.preventDefault(),f();break}case"ArrowUp":case"Up":p&&(e.preventDefault(),p());break;case"PageDown":if(v){e.preventDefault(),v();break}case"ArrowDown":case"Down":h&&(e.preventDefault(),h());break;case"Home":g&&(e.preventDefault(),g());break;case"End":m&&(e.preventDefault(),m())}},onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:()=>E(400),onPressEnd:b,onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:()=>k(400),onPressEnd:b,onFocus:w,onBlur:S}}}({isDisabled:d,isReadOnly:p,isRequired:f,maxValue:v,minValue:h,onIncrement:C,onIncrementToMax:O,onDecrement:N,onDecrementToMin:j,value:A,textValue:t.inputValue}),[z,K]=o(!1),{focusWithinProps:V}=nl({isDisabled:d,onFocusWithinChange:K});!function(e,t){let{onScroll:n,isDisabled:r}=e,i=l((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);En(t,"wheel",r?null:i)}({onScroll:l((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?C():e.deltaY<0&&N())}),[N,C]),isDisabled:d||p||!z},n);let U=function(e){void 0===e&&(e={});let{locale:t}=vi();return s((()=>new On(t,e)),[t,e])}(b),B=s((()=>U.resolvedOptions()),[U]).maximumFractionDigits>0,q=isNaN(t.minValue)||t.minValue<0,W="numeric";bn()?q?W="text":B&&(W="decimal"):gn(/Android/)&&(q?W="numeric":B&&(W="decimal"));let G,{labelProps:J,inputProps:H,descriptionProps:$,errorMessageProps:X}=function(e,t,n){let r=a(t);r.current=t,i((()=>{if(!Oc())return;let e=n.current,t=t=>{let n,i=r.current;switch(t.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":n=e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentForward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd+1):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentBackward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart-1)+e.value.slice(e.selectionStart):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":n=e.value.slice(e.selectionStart);break;default:null!=t.data&&(n=e.value.slice(0,e.selectionStart)+t.data+e.value.slice(e.selectionEnd))}null!=n&&i.validate(n)||t.preventDefault()};return e.addEventListener("beforeinput",t,!1),()=>{e.removeEventListener("beforeinput",t,!1)}}),[n,r]);let o=Oc()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:l,inputProps:s,descriptionProps:u,errorMessageProps:c}=Cc(e,n),d=a(null);return{inputProps:Yt(s,{onBeforeInput:o,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;d.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=d.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:l,descriptionProps:u,errorMessageProps:c}}({label:y,autoFocus:g,isDisabled:d,isReadOnly:p,isRequired:f,validationState:m,value:t.inputValue,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:D,type:"text",inputMode:W,onChange:e=>{t.setInputValue(e)},onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T},t,n),Y=Yt(I,H,R,{role:null,"aria-roledescription":xn()?null:F("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),Z=e=>{document.activeElement!==n.current&&("mouse"===e.pointerType?n.current.focus():e.target.focus())},Q=e["aria-label"]||("string"==typeof e.label?e.label:"");Q||(G=null!=e.label?J.id:e["aria-labelledby"]);let ee=Jt(),te=Jt(),ne=Yt(M,{"aria-label":c||F("increase",{fieldLabel:Q}).trim(),id:G&&!c?ee:null,"aria-labelledby":G&&!c?ee+" "+G:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canIncrement,onPressStart:Z}),re=Yt(_,{"aria-label":u||F("decrease",{fieldLabel:Q}).trim(),id:G&&!u?te:null,"aria-labelledby":G&&!u?te+" "+G:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canDecrement,onPressStart:Z});return{groupProps:_t({role:"group","aria-disabled":d,"aria-invalid":"invalid"===m?"true":void 0},V),labelProps:J,inputProps:Y,incrementButtonProps:ne,decrementButtonProps:re,errorMessageProps:X,descriptionProps:$}}var hp={padding:"0 .5x",radius:{"":"0 (1r - 1bw) 0 0",down:"0 0 (1r - 1bw) 0"},preset:"t4",lineHeight:"1em",height:"auto"};function vp(e){return M.jsx(Vc,k({type:"neutral",styles:hp,preventDefault:!0,icon:"up"===e.direction?M.jsx(We,{},void 0):M.jsx(Ue,{},void 0),mods:{up:"up"===e.direction,down:"down"===e.direction}},e),void 0)}var gp=Object.assign(h((function(e,t){var n=!(e=xa(e=Ui(e))).hideStepper,r=vi().locale,i=Bc(k(k({},e),{locale:r})),o=a(null),l=fp(e,i,o),s=l.groupProps,u=l.labelProps,c=l.inputProps,d=l.incrementButtonProps,p=l.decrementButtonProps;return M.jsx(kc,k({},e,{labelProps:u,inputProps:c,ref:t,inputRef:o,wrapperProps:s,suffixPosition:"after",suffix:n?M.jsxs(Bo,k({styles:{display:"grid",gridColumns:"1fr",gridRows:"minmax(1px, 1fr) minmax(1px, 1fr)",flow:"column",placeSelf:"stretch"}},{children:[M.jsx(vp,k({direction:"up"},d),void 0),M.jsx(vp,k({direction:"down"},p),void 0)]}),void 0):null}),void 0)})),{cubeInputType:"Number"}),mp={};function yp(e,t,n){return"Number"===(e=e||"")?{value:null!=t?t:null,onChange:n}:"Text"===e?{value:"string"==typeof t||"number"==typeof t?String(t):"",onChange:n}:"Checkbox"===e?{isSelected:null!=t&&t,isIndeterminate:!1,onChange:n}:"CheckboxGroup"===e?{value:null!=t?t:[],onChange:n}:"ComboBox"===e?{inputValue:null!=t?t:"",onInputChange:n}:"Select"===e?{selectedKey:null!=t?t:null,onSelectionChange:n}:{value:null!=t?t:null,onChange:n}}function bp(e){var t=xa(e),n=t.defaultValue,r=t.type,l=t.id,s=t.idPrefix,u=t.children,c=t.name,p=t.form,h=t.rules,v=t.label,g=t.validateTrigger,m=t.validationState,y=t.necessityLabel,b=t.necessityIndicator,x=t.shouldUpdate,w=t.message,S=t.tooltip,E=!c,T=null!=c?Array.isArray(c)?c.join("."):c:"",C=a(!0),O=N(o(l||(s?s+"_"+T:T)),2),j=O[0],A=O[1];i((function(){var e;return l||E||(e=function(e){if(e){mp[e]||(mp[e]=[]);var t,n=0;do{t=n?e+"_"+n:e,n++}while(mp[e].includes(t));return mp[e].push(t),t}}(j),A(e)),function(){l||function(e,t){mp[e]&&(mp[e]=mp[e].filter((function(e){return e!==t})))}(s?s+"_"+T:T,e)}}),[]);var L=null==p?void 0:p.getFieldInstance(T),F=h&&h.find((function(e){return e.required}));if(i((function(){p&&(L?(L.rules=h,p.forceReRender()):p.createField(T))}),[L]),"function"==typeof u&&(u=u(p)),!u)return null;var D=d.only(u);if(E)return M.jsx(gc,{validationState:m,necessityIndicator:b,necessityLabel:y,isRequired:F,label:v,tooltip:S,message:w,Component:D},void 0);if(!T)return console.error("invalid form name:",T),null;if(!p)return console.error("form field requires declared form instance"),null;r=r||D.type.cubeInputType||"Text";var R,I="NumberInput"===(R=(R=r)||"")||R.includes("Input")||(R.includes("TextArea")?"onBlur":"onChange");if(C.current&&null!=n&&(L||p.createField(T,!1),null==(null==L?void 0:L.value)&&(p.setFieldValue(T,n,!1,!1),L=null==p?void 0:p.getFieldInstance(T))),C.current=!1,!L)return f(D,Lo(D.props,k(k({},yp(r)),{name:T,id:j})));g||(g=I);var _={id:j,name:T,onBlur:function(){"onBlur"===g&&setTimeout((function(){p.validateField(T).catch((function(){}))}))}};null!=b&&(_.necessityIndicator=b),y&&(_.necessityLabel=y),m&&(_.validationState=m),F&&(_.isRequired=!0),v&&(_.label=v),S&&(_.tooltip=S),w&&(_.message=w),L&&L.errors&&L.errors.length&&(m||(_.validationState="invalid"),w||(_.message=L.errors[0])),Object.assign(_,yp(r,null==L?void 0:L.value,(function(e){var t,n=p.getFieldInstance(T);if(x){var r=p.getFieldsValue();if("boolean"==typeof x?!x:!x(r,k(k({},r),(t={},t[T]=e,t))))return}p.setFieldValue(T,e,!0),("onChange"===g||n&&n.errors&&n.errors.length)&&p.validateField(T).catch((function(){}))})));var z=D.props,K=z.onChange,V=z.onSelectionChange,U=P(z,["onChange","onSelectionChange"]);return f(D,Lo(U,_,K?{onChange:K}:{},V?{onSelectionChange:V}:{}))}function xp(e,t,n,r){return e||t||n?k(k(k(k({},e),t),n),r):r}function wp(e){var t=e.name,n=e.tag,i=e.styles,o=e.styleProps,a=e.css,l=e.attrs,s=m[n||"div"]((function(e){return e.css}));return h(t?function(e,u){var c=e.as,d=e.styles,p=e.styleName,f=e.breakpoints,h=e.mods,v=e.qa,g=e.qaVal,m=e.css,y=P(e,["as","styles","styleName","breakpoints","mods","qa","qaVal","css"]),b=(o?o.concat(qo):qo).reduce((function(e,t){return t in y&&(e[t]=y[t],delete y[t]),e}),{}),x=Mi(p||t,y),w=xp(i,x,d,b),S=r(_i),E=qi(f||S);return m=""+("function"==typeof a?a(y):a||"")+("function"==typeof m?m(y):m||"")+(w?No(w,E):""),h&&Object.assign(y,Fo(h)),M.jsx(s,k({as:c||n,"data-qa":v,"data-qaval":g},l,y,{ref:u,css:m}),void 0)}:function(e,t){var u=e.as,c=e.styles,d=e.breakpoints,p=e.mods,f=e.qa,h=e.qaVal,v=e.css,g=P(e,["as","styles","breakpoints","mods","qa","qaVal","css"]),m=(o?o.concat(qo):qo).reduce((function(e,t){return t in g&&(e[t]=g[t],delete g[t]),e}),{}),y=xp(i,null,c,m),b=r(_i),x=qi(d||b);return v=""+("function"==typeof a?a(g):a||"")+("function"==typeof v?v(g):v||"")+(y?No(y,x):""),p&&Object.assign(g,Fo(p)),M.jsx(s,k({as:u||n,"data-qa":f,"data-qaval":h},l,g,{ref:t,css:v}),void 0)})}var Sp=j(j(j([],N(qo),!1),N(Ho),!1),N(Jo),!1),Ep={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},kp=wp({name:"Text",tag:"span",availableMods:["nowrap","ellipsis"],styles:{display:{"":"inline",ellipsis:"block"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),Pp=h((function(e,t){var n=e.as,r=e.qa,i=e.block,o=e.styleName,a=e.ellipsis,l=e.css,s=e.nowrap,u=P(e,["as","qa","block","styleName","ellipsis","css","nowrap"]),c=co(u,Sp,{},Ep);return M.jsx(kp,k({as:n||"span",qa:r||"Text",styleName:o,mods:{nowrap:s,ellipsis:a},block:!(!i&&!a),css:l},oa(u,{eventProps:!0}),{styles:c,ref:t}),void 0)})),Tp=Object.assign(Pp,{Minor:h((function(e,t){return M.jsx(Tp,k({ref:t,color:"#minor"},e),void 0)})),Danger:h((function(e,t){return M.jsx(Tp,k({role:"alert",ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(Tp,k({ref:t,color:"#success-text"},e),void 0)})),Strong:h((function(e,t){return M.jsx(Tp,k({as:"strong",preset:"strong",ref:t,color:"#dark"},e),void 0)})),Emphasis:h((function(e,t){return M.jsx(Tp,k({as:"em",preset:"em",ref:t},e),void 0)})),Selection:h((function(e,t){return M.jsx(Tp,k({ref:t,color:"#dark",fill:"#note.30"},e),void 0)}))}),Cp=j(j([],N(Ho),!1),N(Yo),!1),Op=wp({name:"Title",tag:"h1",styles:{gridArea:"heading",display:"block",color:"#dark",preset:{"":"h6m",'[data-level="1"]':"h1",'[data-level="2"]':"h2",'[data-level="3"]':"h3",'[data-level="4"]':"h4",'[data-level="5"]':"h5",'[data-level="6"]':"h6"},margin:"0",whiteSpace:{"":"initial","nowrap | ellipsis":"nowrap"},textOverflow:"ellipsis",overflow:"hidden",width:"max 100%"},availableMods:["nowrap","ellipsis"],attrs:{"data-qa":"Title"}}),Np=h((function(e,t){var n=e.qa,r=e.as,i=e.styleName,o=e.inline,a=e.nowrap,l=e.ellipsis,s=e.level,u=P(e,["qa","as","styleName","inline","nowrap","ellipsis","level"]),c="h"+(s||1),d=co(u=Ro(u,"heading"),Cp,{},Ep);return M.jsx(Op,k({qa:n||"Title",as:r||c,styleName:i,"data-level":s||1,mods:{nowrap:a,ellipsis:l},inline:o},oa(u,{eventProps:!0}),{styles:d,ref:t}),void 0)})),jp=Object.assign(Np,{Danger:h((function(e,t){return M.jsx(jp,k({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(jp,k({ref:t,color:"#success-text"},e),void 0)}))}),Ap={preset:"p3",color:"#dark.75",display:"block"},Lp=j(j([],N(Yo),!1),N(Ho),!1),Fp=h((function(e,t){var n=co(e,Lp,Ap);return M.jsx(Tp,k({as:"p",qa:"Paragraph"},e,{styles:n,ref:t}),void 0)}));var Dp=Object.assign(h((function(e,t){var n=(e=Ui(e)).autoSize,r=void 0!==n&&n,i=e.isDisabled,o=void 0!==i&&i,s=e.isReadOnly,c=void 0!==s&&s,d=e.isRequired,p=void 0!==d&&d,f=e.onChange,h=e.rows,v=P(e,["autoSize","isDisabled","isReadOnly","isRequired","onChange","rows"]);h=h||3;var g=N(Dt(e.value,e.defaultValue,(function(){})),2),m=g[0],y=g[1],b=a(null),x=l((function(){if(r&&b.current){var e=b.current,t=e.style.alignSelf,n=getComputedStyle(e);e.style.alignSelf="start",e.style.height="auto",e.style.height=e.scrollHeight?"calc("+e.scrollHeight+"px + (2 * var(--border-width)))":parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.lineHeight)*(h||3)+2+"px",e.style.alignSelf=t}}),[b]);u((function(){b.current&&x()}),[x,m,b]);var w=Cc(k(k({},e),{onChange:Xt(f,y),inputElementType:"textarea"}),b),S=w.labelProps,E=w.inputProps;return M.jsx(kc,k({},v,{ref:t,inputRef:b,labelProps:S,inputProps:E,multiLine:!0,isDisabled:o,isReadOnly:c,isRequired:p,rows:h}),void 0)})),{cubeInputType:"Text"}),Rp=h((function(e,t){var n=Ro(e,"buttonGroup"),r=n.styles,i=Mi("ButtonGroup",P(n,["styles"]));return r=r?k(k({},i),r):i,M.jsx(bc,k({gridArea:"buttonGroup",styles:r,ref:t},e),void 0)})),Ip={display:"inline-flex",position:"relative",preset:"t3",padding:".75x 1x",gap:"1x",flow:"row",placeItems:"center start",fill:"#white",border:!0,radius:!0,cursor:"pointer",overflow:"hidden","[Button]":{radius:"round",fill:{"":"#light","hovered | focused | pressed":"#purple-04",disabled:"#light"},color:"#dark",padding:".5x 1x",transition:"fill"},"[Placeholder]":{color:"#dark-02"},"[Value]":{color:"#dark-02"},"[Input]":{position:"absolute",top:"-50px",right:0,bottom:0,left:0,radius:"@content-radius",cursor:"pointer",zIndex:10}};var Mp=h((function(e,t){var n=Ui(e),r=n.id,i=n.name,s=n.qa;n.qaVal;var u=n.onChange,d=n.placeholder,p=n.inputRef,f=n.label,h=n.labelPosition,v=n.isRequired,g=n.necessityIndicator,m=n.necessityLabel,y=n.labelStyles,b=n.labelProps,x=n.isDisabled,w=n.validationState,S=n.message,E=n.requiredMark,T=n.tooltip,C=n.inputStyles,O=P(n,["id","name","qa","qaVal","onChange","placeholder","inputRef","label","labelPosition","isRequired","necessityIndicator","necessityLabel","labelStyles","labelProps","isDisabled","validationState","message","requiredMark","tooltip","inputStyles"]),j=N(o(),2),A=j[0],L=j[1],F=a(null),D=a(null);p=p||D;var R=co(O,Yo);C=k(k(k({},Ip),Mi("FileInput",O)),C);var I=l((function(e){var t=e.target.value;null==u||u(t),L(t)}),[u]);c(t,(function(){return k(k({},wi(F,p)),{select:function(){(null==p?void 0:p.current)&&p.current.select()},getInputElement:function(){return null==p?void 0:p.current}})}));var _=M.jsxs(Ic,k({qa:s||"FileInput",styles:C,isDisabled:x,ref:F,mods:{selected:!!A}},{children:[M.jsx("input",{id:r,name:i,ref:p,onChange:I,"data-element":"Input",type:"file",tabIndex:-1},void 0),M.jsx("div",k({"data-element":"Button"},{children:"Choose file"}),void 0),M.jsx("div",k({"data-element":A?"Value":"Placeholder"},{children:A||d||"No file selected"}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:h,label:f,styles:R,isRequired:v,labelStyles:y,necessityIndicator:g,necessityLabel:m,labelProps:b,isDisabled:x,validationState:w,message:S,requiredMark:E,tooltip:T,Component:_,ref:F}),void 0)}));function _p(e){var t,n,r,i=e.display,o=void 0===i?"block":i,a=e.flow,l=e.gap;if("number"==typeof l&&(l+="px"),l){!0===l&&(l="1.5x");var s=o.includes("grid"),u=o.includes("flex"),c=!!a&&(a.includes("wrap")&&!a.includes("nowrap"));s||null!=a||(a=u?"row":"column");var d=no(l).values;if(l=d.join(" "),s)return{gap:l};var p=u&&a.includes("reverse"),f=l&&!s?p?a.includes("row")?"left":"top":a.includes("row")?"right":"bottom":"",h=p?"margin-left":"margin-right",v=p?"margin-top":"margin-bottom";return c?[(t={},t[h]="calc(-1 * "+(d[1]||d[0])+")",t[v]="calc(-1 * "+d[0]+")",t),(n={$:"& > *"},n[h]=d[1]||d[0],n[v]=d[0],n)]:((r={$:"& > *:not(:last-child)"})["margin-"+f]=l,r)}}function zp(e){var t,n,r=e.display,i=void 0===r?"block":r,o=e.flow;return i.includes("grid")?n="grid-auto-flow":i.includes("flex")&&(n="flex-flow"),n?((t={})[n]=o,t):null}_p.__lookupStyles=["display","flow","gap"],zp.__lookupStyles=["display","flow"];var Kp={input:[{css:"\n-webkit-appearance: none;\nfont-family: inherit;\nfont-weight: inherit;\nword-spacing: initial;\n-webkit-text-fill-color: currentColor;\nbox-sizing: border-box;\nuser-select: auto;\nresize: none;\ntransition: opacity var(--transition) linear;\n"},{$:"::-webkit-search-cancel-button",css:"display: none"},{$:[":-webkit-autofill",":-webkit-autofill:hover",":-webkit-autofill:focus"],css:"\ncaret-color: var(--purple-color);\n-webkit-text-fill-color: var(--purple-color);\n-webkit-box-shadow: 0 0 0px 9999rem var(--white-color) inset;\nbox-shadow: 0 0 0px 9999rem var(--white-color) inset;\nfont-family: inherit;\nfont-size: inherit;\nline-height: inherit;\n"},{$:"[disabled]",css:"\ncolor: inherit;\nbackground: transparent;\n-webkit-opacity: 1;\n"},{$:"::placeholder",css:"\n-webkit-text-fill-color: var(--local-placeholder-color);\ncolor: var(--local-placeholder-color);\nfilter: saturate(.33);\n"},{$:"::-webkit-search-cancel-button",css:"\ndisplay: none;\n-webkit-appearance: none;\n"},{$:":not([disabled])::placeholder",css:"--local-placeholder-color: var(--placeholder-color, rgba(var(--dark-color-rgb), .3));\n"}],button:[{css:"\ntransition: all var(--transition) linear;\nbackground: transparent;\nborder: none;\noutline: none;\nappearance: none;\nposition: relative;\ntouch-action: manipulation;\n-webkit-tap-highlight-color: transparent;\ntext-decoration: none;\n"}]};function Vp(e){var t=e.reset;if(t)return no(t,1).mods.reduce((function(e,t){return Kp[t]&&e.push.apply(e,j([],N(Kp[t]),!1)),e}),[])}function Up(e){var t=e.color;if(!t)return"";!0===t&&(t="currentColor"),t.startsWith("#")&&(t=ro(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{color:t}];return r&&i.push([{"--current-color":"var(--"+r+"-color)","--current-color-rgb":"var(--"+r+"-color-rgb)"}]),i}function Bp(e){var t=e.fill;if(!t)return"";t.startsWith("#")&&(t=no(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{"background-color":t}];return r&&i.push([{$:">*","--context-fill-color":"var(--"+r+"-color)","--context-fill-color-rgb":"var(--"+r+"-color-rgb)"}]),i}Vp.__lookupStyles=["reset"],Up.__lookupStyles=["color"],Bp.__lookupStyles=["fill"];function qp(e){return"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("height",e)}var Wp=qp("stretch")?"stretch":qp("fill-available")?"fill-available":qp("-webkit-fill-available")?"-webkit-fill-available":qp("-moz-fill-available")?"-moz-fill-available":null,Gp=["max-content","min-content","fit-content","stretch"];function Jp(e){var t="min-"+e,n="max-"+e;return function(r){var i,o,a;if(!r)return"";"number"==typeof r&&(r+="px"),r=String(r);var l=((i={})[e]="auto",i[t]="auto",i[n]="initial",i),s=no(r),u=s.mods,c=s.values;!function(e,t,n){e.forEach((function(e){t.includes(e)&&(n.push(e),t.splice(t.indexOf(e),1))}))}(Gp,u,c),c.forEach((function(t,n){"stretch"===t&&(c[n]=Wp||("height"===e?"100vh":"100vw"))}));var d=!1;try{for(var p=O(u),f=p.next();!f.done;f=p.next()){switch(f.value){case"min":l[t]=c[0]||"var(--gap)",d=!0;break;case"max":l[n]=c[0]||"100%",d=!0}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return d&&u.length||(2===c.length?(l[t]=c[0],l[n]=c[1]):3===c.length?(l[t]=c[0],l[e]=c[1],l[n]=c[2]):l[e]=c[0]||"auto"),l}}var Hp=Jp("width");function $p(e){var t=e.width;return Hp(t)}$p.__lookupStyles=["width"];var Xp=Jp("height");function Yp(e){var t=e.height;return Xp(t)}Yp.__lookupStyles=["height"];var Zp="var(--radius)",Qp="var(--leaf-sharp-radius)";function ef(e){var t=e.radius;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1r");var n=no(t,1),r=n.mods,i=n.values;if(r.includes("round")?i=["9999rem"]:r.includes("ellipse")?i=["50%"]:i.length||(i=[Zp]),r.includes("leaf"))i=[i[1]||Qp,i[0]||Zp,i[1]||Qp,i[0]||Zp];else if(r.includes("backleaf"))i=[i[0]||Zp,i[1]||Qp,i[0]||Zp,i[1]||Qp];else if(r.length){var o=["0","0","0","0"],a=!1;Gi.forEach((function(e,t){r.includes(e)&&(a=!0,o[t]=i[0]||Zp,o[(t+1)%4]=i[0]||Zp)})),a&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}ef.__lookupStyles=["radius"];var tf=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function nf(e){var t=e.border;if(t||0===t){!0===t&&(t="1bw");var n=no(String(t)),r=n.values,i=n.mods,o=n.color,a=so(i,Gi),l=so(i,tf),s=[r[0]||"var(--border-width)",l[0]||"solid",o||"var(--border-color)"].join(" ");return a.length?i.reduce((function(e,t){return e["border-"+t]=s,e}),{}):{border:s}}}function rf(e){var t=e.shadow;if(!t)return"";!0===t&&(t="0 5px 15px #shadow");var n=no(t),r=n.values,i=n.mods,o=n.color||"var(--shadow-color)";return{"--local-shadow-box-shadow":j(j([i[0]||""],N(r),!1),[o],!1).join(" ")}}function of(e){var t=e.padding,n=e.paddingBlock,r=e.paddingInline,i=e.paddingTop,o=e.paddingRight,a=e.paddingBottom,l=e.paddingLeft;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var s=no(t),u=s.values,c=so(s.mods,Gi);u.length||(u=["var(--gap)"]),c.length||(c=Gi);var d=[i,o,a,l];return c.reduce((function(e,t){var i=Gi.indexOf(t);return(i%2&&null==r||!(i%2)&&null==n)&&null==d[i]&&(e["padding-"+t]=u[i]||u[i%2]||u[0]),e}),{})}function af(e){var t=e.paddingBlock,n=e.paddingTop,r=e.paddingBottom;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var i=no(t).values;i.length||(i=["var(--gap)"]);var o={};return null==n&&(o["padding-top"]=i[0]),null==r&&(o["padding-bottom"]=i[1]||i[0]),o}function lf(e){var t=e.paddingInline,n=e.paddingLeft,r=e.paddingRight;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var i=no(t).values;i.length||(i=["var(--gap)"]);var o={};return null==n&&(o["padding-left"]=i[0]),null==r&&(o["padding-right"]=i[1]||i[0]),o}function sf(e){var t=e.preset,n=e.fontSize,r=e.lineHeight,i=e.textTransform,o=e.letterSpacing,a=e.fontWeight,l=e.fontStyle,s=e.font;if(!t)return"";!0===t&&(t="");var u=no(t).mods[0]||"default",c={};return n||(c["font-size"]=c["--font-size"]="var(--"+u+"-font-size, var(--initial-font-size, inherit))"),r||(c["line-height"]=c["--line-height"]="var(--"+u+"-line-height, var(--initial-line-height, 1.5))"),o||(c["letter-spacing"]=c["--letter-spacing"]="var(--"+u+"-letter-spacing, var(--initial-letter-spacing, 0))"),a||(c["font-weight"]=c["--font-weight"]="var(--"+u+"-font-weight, var(--initial-font-weight, 400))"),l||(c["font-style"]=c["--font-style"]="var(--"+u+"-font-style, var(--initial-font-style, normal))"),i||(c["text-transform"]=c["--text-transform"]="var(--"+u+"-text-transform, var(--initial-text-transform, none))"),s||(c["font-family"]=c["--font-family"]="var(--"+u+"-font-family, var(--font))"),c}function uf(e){var t=e.fontStyle;return!0===t&&(t="italic"),"inherit"!==t&&(t=t?"italic":"normal"),{"font-style":t}}function cf(e){var t=e.margin;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=no(t),r=n.values,i=so(n.mods,Gi);return i.length?i.reduce((function(e,t){var n=Gi.indexOf(t);return e["margin-"+t]=r[n]||r[n%2]||r[0],e}),{}):{margin:r.join(" ")}}function df(e){var t=e.font;if(null==t||!1===t)return null;var n="monospace"===t?"var(--monospace-font)":!0===t?"var(--font)":t+", var(--font)";return{"font-family":n,"--font-family":n}}function pf(e){var t=e.outline;if(!t&&0!==t)return"";!0===t&&(t="1ow");var n=no(String(t)),r=n.values,i=n.color;return{"--local-outline-box-shadow":(n.mods.includes("inset")?"inset ":"")+"0 0 0 "+(r[0]||"var(--outline-width)")+" "+(i||"var(--outline-color)")}}nf.__lookupStyles=["border"],rf.__lookupStyles=["shadow"],of.__lookupStyles=["padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline"],af.__lookupStyles=["paddingBlock","paddingTop","paddingBottom"],lf.__lookupStyles=["paddingInline","paddingLeft","paddingRight"],sf.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"],uf.__lookupStyles=["fontStyle"],cf.__lookupStyles=["margin"],df.__lookupStyles=["font"],pf.__lookupStyles=["outline"];var ff={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],preset:["font-size","line-height","letter-spacing","font-weight","font-style"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]};function hf(e){var t=e.transition;if(t){var n=no(t).all;if(n){var r=[],i=[];n.forEach((function(e){","===e?r&&(i.push(r),r=[]):r.push(e)})),r&&i.push(r);var o={};return i.forEach((function(e){var t=e[0],n=e[1],r=e[2],i=e[3];(ff[t]||[t]).forEach((function(e){o[e]=[t,r,n,i]}))})),{transition:Object.entries(o).map((function(e){var t=N(e,2),n=t[0],r=N(t[1],4),i=r[0],o=r[1],a=r[2],l=r[3];return n+" "+(a||function(e){return"var(--"+e+"-transition, var(--transition))"}(i))+" "+(o||"linear")+" "+(l||"0s")})).join(", ")}}}}hf.__lookupStyles=["transition"];var vf={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function gf(e){var t=e.groupRadius,n=e.flow;if(!t)return"";!0===t&&(t="1r");var r=no(t),i=r.values,o=r.mods;n=n||"row";var a=o.includes("reverse"),l=i[0];l||(l=o.includes("round")?"9999rem":o.includes("ellipse")?"50%":"var(--radius)");var s=vf[n][a?1:0].replace(/\*/g,l),u=vf[n][a?0:1].replace(/\*/g,l);return[{$:">:first-child:not(:last-child)","border-radius":s,"--local-radius":s},{$:">:last-child:not(:first-child)","border-radius":u,"--local-radius":u},{$:">:last-child:first-child","border-radius":l,"--local-radius":l},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}function mf(e){var t=mf.__lookupStyles.reduce((function(t,n){return e[n]&&t.push("var(--local-"+n+"-box-shadow)"),t}),[]);return t.length?{"box-shadow":t.join(", ")}:""}function yf(e){var t=e.styledScrollbar;return null==t?null:t?[{"--local-scrollbar-thumb-color":"var(--scrollbar-thumb-color, rgba(var(--text-color-rgb), .5))","--local-scrollbar-border-color":"var(--scrollbar-border-color, var(--border-width))","--local-scrollbar-bg-color":"var(--scrollbar-bg-color, var(--grey-light-color))"},{$:"::-webkit-scrollbar",width:"calc(var(--gap) * 1.5)",height:"calc(var(--gap) * 1.5)"},{$:"::-webkit-scrollbar-track","background-color":"var(--local-scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--local-scrollbar-thumb-color)","border-radius":"calc(var(--radius) * 1.5)",border:"var(--outline-width) solid transparent","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"transparent"},{"scrollbar-width":"thin","scrollbar-color":"var(--local-scrollbar-bg-color) var(--local-scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}function bf(e){var t=e.display;return{display:e.hide?"none":t}}gf.__lookupStyles=["groupRadius","flow"],mf.__lookupStyles=["outline","shadow"],yf.__lookupStyles=["styledScrollbar"],bf.__lookupStyles=["display","hide"];var xf=function(e){return"number"==typeof e?e+"px":e},wf=function(e){if("number"==typeof e)return"minmax(1px, 1fr) ".repeat(e).trim()},Sf=function(e){if("number"==typeof e)return"auto ".repeat(e).trim()};function Ef(e){return null}function kf(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&t.Children.count(e.children)>0)}Po("fontSize"),Po("lineHeight"),Po("fontWeight"),Po("fontStyle"),Po("letterSpacing"),Po("textTransform"),Po("fontFamily"),Po("paddingTop"),Po("paddingRight"),Po("paddingBottom"),Po("paddingLeft"),Po("top","top",xf),Po("right","right",xf),Po("bottom","bottom",xf),Po("left","left",xf),Po("gridAreas","grid-template-areas"),Po("gridColumns","grid-template-columns",wf),Po("gridRows","grid-template-rows",Sf),Po("gridTemplate","grid-template",(function(e){if("string"==typeof e)return e.split("/").map((function(e,t){return(t?wf:Sf)(e)})).join("/")})),[bf,hf,Vp,Bp,$p,cf,_p,zp,Up,Yp,ef,nf,rf,of,af,lf,sf,mf,pf,df,uf,gf,yf].forEach((function(e){return ko(e)})),Ef.getCollectionNode=function*(e,n){let{childItems:r,title:i,children:o}=e,a=e.title||e.children,l=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";l||null!=n&&n.suppressTextValueWarning||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:a,textValue:l,"aria-label":e["aria-label"],hasChildNodes:kf(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(i){let e=[];t.Children.forEach(o,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Pf=Ef;class Tf{constructor(){this.context=void 0,this.cache=new WeakMap}build(e,t){return this.context=t,Cf((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:r}=e;if("function"==typeof n){if(!r)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];t.Children.forEach(n,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return""+r+t.key;let i=t.value;if(null!=i){var o;let e=null!=(o=i.key)?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?r+"."+t.index:"$."+t.index}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,n,r,i){let o=e.element;if(!o&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=i?i.key:null,void(yield t);o=n.renderer(e.value)}if(t.isValidElement(o)){let t=o.type;if("function"!=typeof t&&"function"!=typeof t.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw new Error("Unknown element <"+e+"> in collection.")}let a=t.getCollectionNode(o.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let t=s.value;e.index=l;let u=t.key;u||(u=t.element?null:this.getKey(o,e,n,r));let c=[...this.getFullNode(_t({},t,{key:u,index:l,wrapper:Of(e.wrapper,t.wrapper)}),this.getChildState(n,t),r?""+r+o.key:o.key,i)];for(let n of c){if(n.value=t.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error("Unsupported type <"+Nf(n.type)+"> in <"+Nf(i.type)+">. Only <"+Nf(e.type)+"> is supported.");l++,yield n}s=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Cf((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=""+l.key+r.key),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}}function Cf(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function Of(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Nf(e){return e[0].toUpperCase()+e.slice(1)}const jf=new WeakMap;function Af(e){let t=jf.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Af(n.childNodes):t++;return jf.set(e,t),t}var Lf={display:"grid",flow:"row",gap:"@(column-gap, 0)"},Ff={align:"alignItems",justify:"justifyItems",template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},Df=h((function(e,t){var n=co(e,Yo,Lf,Ff);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Rf={display:"flex",flow:"row"},If={align:"alignItems",justify:"justifyItems"},Mf=h((function(e,t){var n=co(e,Yo,Rf,If);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),_f=h((function(e,t){return M.jsx(Vc,k({type:"link"},e,{ref:t}),void 0)})),zf={display:"block",flow:"column"},Kf=Yo,Vf=h((function(e,t){var n=co(e,Kf,zf);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Uf={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-02":"149, 146, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"239, 64, 74",danger:"255, 100, 109","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5"};function Bf(e,t){return void 0===t&&(t=1),"rgba("+Uf[e]+", "+t+")"}var qf={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px",transition:"120ms","clear-color":"transparent","border-color":Bf("dark",.1),"shadow-color":Bf("dark-03",.1),"draft-color":Bf("dark",.2),"minor-color":Bf("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":Bf("note",.1),"note-text-color":Bf("dark",.65),"danger-bg-color":Bf("danger",.05),"danger-bg-hover-color":Bf("danger",.1),"primary-1":Bf("purple",.9),"primary-2":Bf("purple",.8),"primary-3":Bf("purple",.7),"primary-4":Bf("purple",.6),"primary-5":Bf("purple",.5),"primary-6":Bf("purple",.4),"primary-7":Bf("purple",.3),"primary-8":Bf("purple",.2),"primary-9":Bf("purple",.1),"primary-10":Bf("purple",0),"dark-75-color":Bf("dark",.75),"primary-color":Bf("purple"),"pink-8-color":Bf("pink",.2),"pink-9-color":Bf("pink",.1),"disabled-color":Bf("dark-01",.25),"disabled-text-color":Bf("dark-01",.25),"disabled-bg":Bf("dark-05",.2),"disabled-bg-color":Bf("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"20px","text-letter-spacing":"0.02em","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0.01em","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0.02em","h5-font-weight":"700","h5s-font-size":"16px","h5s-line-height":"22px","h5s-letter-spacing":"0.02em","h5s-font-weight":"600","h5m-font-size":"16px","h5m-line-height":"22px","h5m-letter-spacing":"0.02em","h5m-font-weight":"500","h6-font-size":"14px","h6-line-height":"20px","h6-font-weight":"700","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0.01em","t2-font-weight":"400","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0.02em","t3-font-weight":"400","t3m-font-size":"14px","t3m-line-height":"20px","t3m-letter-spacing":"0.015em","t3m-font-weight":"500","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0.025em","t4-font-weight":"400","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0.02em","t4m-font-weight":"500","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0.01em","p2-font-weight":"400","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0.02em","p3-font-weight":"400","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0.025em","p4-font-weight":"400","tag-font-size":"12px","tag-line-height":"12px","tag-letter-spacing":"0.02em","tag-font-weight":"500","strong-font-size":"inherit","strong-line-height":"inherit","strong-letter-spacing":"inherit","strong-font-family":"inherit","strong-font-style":"inherit","strong-font-weight":600,"em-font-size":"inherit","em-line-height":"inherit","em-letter-spacing":"inherit","em-font-family":"inherit","em-font-style":"italic","em-font-weight":"inherit","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)"};Object.keys(Uf).forEach((function(e){qf[e+"-color"]=Bf(e),qf[e+"-color-rgb"]=Uf[e]}));var Wf,Gf=y(Wf||(Wf=A(["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'],["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'])),(function(e){var t=e.tokens;return Object.entries(k(k({},qf),t)).map((function(e){var t=N(e,2);return"--"+t[0]+": "+t[1]+";"})).join("\n ")}),(function(e){return e.font||"Inter"}),(function(e){return e.monospaceFont+", "||""}),(function(e){var t=e.fonts,n=e.publicUrl;return!1===t?"":function(e){var t=e.publicUrl,n=void 0===t?"":t;return"\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Regular.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Regular.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Medium.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Medium.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url("+n+"/fonts/Inter-SemiBold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-SemiBold.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Bold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Bold.woff) format('woff');\n }\n @font-face {\n font-family: 'Source Code Pro';\n src: url('"+n+"/fonts/SourceCodePro-Regular.woff2') format('woff2'),\n url('"+n+"/fonts/SourceCodePro-Regular.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Regular.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Regular.woff) format('woff');\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Bold.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Bold.woff) format('woff');\n }\n"}({publicUrl:n})})),Jf={display:"block",size:"default",preset:"t3"},Hf=j(j([],N(qo),!1),N(Go),!1),$f=function(e){var t=e.children,n=e.tokens,r=e.fonts,l=e.publicUrl,s=e.router,u=e.font,c=e.monospaceFont,d=P(e,["children","tokens","fonts","publicUrl","router","font","monospaceFont"]),p=a(null),f=N(o(),2),h=f[0],v=f[1];i((function(){h||v(null==p?void 0:p.current)}),[]);var g=co(d,Hf,Jf),m=M.jsx(b,k({disableVendorPrefixes:!0},{children:M.jsxs(Bo,k({ref:p,id:"cube-ui-kit-root",className:"root"},oa(d,{eventProps:!0}),{styles:g},{children:[M.jsx(Gf,{tokens:n,publicUrl:l,fonts:r,font:u,monospaceFont:c},void 0),M.jsx(Bs,{children:t},void 0)]}),void 0)}),void 0);return M.jsx(Vi,k({router:s,root:h},{children:m}),void 0)},Xf=D((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=o[l])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],u=i.util.type(s);"Object"!==u||o[a(s)]?"Array"!==u||o[a(s)]||(o[a(s)]=!0,e(s,n,l,o)):(o[a(s)]=!0,e(s,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),l=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:l,code:n.textContent};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),o&&o.call(u.element)}if(i.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(o&&o.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language));else c(i.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return u(i,i.head,e),l(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function l(e,t,n,r,s,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var v=f[h],g=v.inside,m=!!v.lookbehind,y=!!v.greedy,b=v.alias;if(y&&!v.pattern.global){var x=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,x+"g")}for(var w=v.pattern||v,S=r.next,E=s;S!==t.tail&&!(d&&E>=d.reach);E+=S.value.length,S=S.next){var k=S.value;if(t.length>e.length)return;if(!(k instanceof o)){var P,T=1;if(y){if(!(P=a(w,E,e,m)))break;var C=P.index,O=P.index+P[0].length,N=E;for(N+=S.value.length;C>=N;)N+=(S=S.next).value.length;if(E=N-=S.value.length,S.value instanceof o)continue;for(var j=S;j!==t.tail&&(N<O||"string"==typeof j.value);j=j.next)T++,N+=j.value.length;T--,k=e.slice(E,N),P.index-=E}else if(!(P=a(w,0,k,m)))continue;C=P.index;var A=P[0],L=k.slice(0,C),F=k.slice(C+A.length),D=E+k.length;d&&D>d.reach&&(d.reach=D);var R=S.prev;if(L&&(R=u(t,R,L),E+=L.length),c(t,R,T),S=u(t,R,new o(p,g?i.tokenize(A,g):A,b,A)),F&&u(t,S,F),T>1){var I={cause:p+","+h,reach:D};l(e,t,n,S.prev,E,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var l="";for(var s in o.attributes)l+=" "+s+'="'+(o.attributes[s]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+l+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
32
|
+
!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)t.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function $(e){return e<=1?100*Number(e)+"%":e}function X(e){return 1===e.length?"0"+e:String(e)}function Y(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Z(e){return Q(e)/255}function Q(e){return parseInt(e,16)}var ee={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function te(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,l=null,s=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(ee[e])e=ee[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=oe.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=oe.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=oe.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=oe.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=oe.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=oe.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=oe.hex8.exec(e))return{r:Q(n[1]),g:Q(n[2]),b:Q(n[3]),a:Z(n[4]),format:t?"name":"hex8"};if(n=oe.hex6.exec(e))return{r:Q(n[1]),g:Q(n[2]),b:Q(n[3]),format:t?"name":"hex"};if(n=oe.hex4.exec(e))return{r:Q(n[1]+n[1]),g:Q(n[2]+n[2]),b:Q(n[3]+n[3]),a:Z(n[4]+n[4]),format:t?"name":"hex8"};if(n=oe.hex3.exec(e))return{r:Q(n[1]+n[1]),g:Q(n[2]+n[2]),b:Q(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ae(e.r)&&ae(e.g)&&ae(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*H(t,255),g:255*H(n,255),b:255*H(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):ae(e.h)&&ae(e.s)&&ae(e.v)?(a=$(e.s),l=$(e.v),i=function(e,t,n){e=6*H(e,360),t=H(t,100),n=H(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,o,o,l,n][s],g:255*[l,n,n,a,o,o][s],b:255*[o,o,l,n,n,a][s]}}(e.h,a,l),u=!0,c="hsv"):ae(e.h)&&ae(e.s)&&ae(e.l)&&(a=$(e.s),s=$(e.l),i=function(e,t,n){var r,i,o;if(e=H(e,360),t=H(t,100),n=H(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Y(l,a,e+1/3),i=Y(l,a,e),o=Y(l,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,s),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var ne="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",re="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",ie="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",oe={CSS_UNIT:new RegExp(ne),rgb:new RegExp("rgb"+re),rgba:new RegExp("rgba"+ie),hsl:new RegExp("hsl"+re),hsla:new RegExp("hsla"+ie),hsv:new RegExp("hsv"+re),hsva:new RegExp("hsva"+ie),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ae(e){return Boolean(oe.CSS_UNIT.exec(String(e)))}var le=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function se(e){var t=function(e,t,n){e=H(e,255),t=H(t,255),n=H(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=0===r?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:s,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ue(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var i=[X(Math.round(e).toString(16)),X(Math.round(t).toString(16)),X(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,n,r,!1))}function ce(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function de(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function pe(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function fe(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function he(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=te(e),i=5;i>0;i-=1){var o=se(r),a=ue(te({h:de(o,i,!0),s:pe(o,i,!0),v:fe(o,i,!0)}));n.push(a)}n.push(ue(r));for(var l=1;l<=4;l+=1){var s=se(r),u=ue(te({h:de(s,l),s:pe(s,l),v:fe(s,l)}));n.push(u)}return"dark"===t.theme?le.map((function(e){var r=e.index,i=e.opacity;return ue(ce(te(t.backgroundColor||"#141414"),te(n[r]),100*i))})):n}var ve={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ge={},me={};Object.keys(ve).forEach((function(e){ge[e]=he(ve[e]),ge[e].primary=ge[e][5],me[e]=he(ve[e],{theme:"dark",backgroundColor:"#141414"}),me[e].primary=me[e][5]})),ge.red,ge.volcano,ge.gold,ge.orange,ge.yellow,ge.lime,ge.green,ge.cyan,ge.blue,ge.geekblue,ge.purple,ge.magenta,ge.grey;var be={};function ye(e,t){}function xe(e,t){!function(e,t,n){t||be[n]||(e(!1,n),be[n]=!0)}(ye,e,t)}function we(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Se(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ee(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!we())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=Se(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var ke=new Map;function Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Se(n);if(!ke.has(r)){var i=Ee("",n),o=i.parentNode;ke.set(r,o),o.removeChild(i)}var a=Array.from(ke.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(a){var l,s,u;if((null===(l=n.csp)||void 0===l?void 0:l.nonce)&&a.nonce!==(null===(s=n.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(u=n.csp)||void 0===u?void 0:u.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=Ee(e,n);return c["rc-util-key"]=t,c}function Te(e){return"object"===J(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===J(e.icon)||"function"==typeof e.icon)}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function Oe(e,n,r){return r?t.createElement(e.tag,V(V({key:n},Ce(e.attrs)),r),(e.children||[]).map((function(t,r){return Oe(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,V({key:n},Ce(e.attrs)),(e.children||[]).map((function(t,r){return Oe(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Ne(e){return he(e)[0]}function je(e){return e?Array.isArray(e)?e:[e]:[]}var Ae="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Le=["icon","className","onClick","style","primaryColor","secondaryColor"],Fe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var De=function(e){var t,n,o=e.icon,a=e.className,l=e.onClick,s=e.style,u=e.primaryColor,c=e.secondaryColor,d=W(e,Le),p=Fe;if(u&&(p={primaryColor:u,secondaryColor:c||Ne(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae,t=r(_).csp;i((function(){Pe(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=Te(o),n="icon should be icon definiton, but got ".concat(o),xe(t,"[@ant-design/icons] ".concat(n)),!Te(o))return null;var f=o;return f&&"function"==typeof f.icon&&(f=V(V({},f),{},{icon:f.icon(p.primaryColor,p.secondaryColor)})),Oe(f.icon,"svg-".concat(f.name),V({className:a,onClick:l,style:s,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};De.displayName="IconReact",De.getTwoToneColors=function(){return V({},Fe)},De.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Fe.primaryColor=t,Fe.secondaryColor=n||Ne(t),Fe.calculated=!!n};var Re=De;function Ie(e){var t=B(je(e),2),n=t[0],r=t[1];return Re.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Me=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ie("#1890ff");var _e=e.forwardRef((function(t,n){var r,i=t.className,o=t.icon,a=t.spin,l=t.rotate,s=t.tabIndex,u=t.onClick,c=t.twoToneColor,d=W(t,Me),p=e.useContext(_).prefixCls,f=void 0===p?"anticon":p,h=G(f,(z(r={},"".concat(f,"-").concat(o.name),!!o.name),z(r,"".concat(f,"-spin"),!!a||"loading"===o.name),r),i),v=s;void 0===v&&u&&(v=-1);var g=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=B(je(c),2),b=m[0],y=m[1];return e.createElement("span",V(V({role:"img","aria-label":o.name},d),{},{ref:n,tabIndex:v,onClick:u,className:h}),e.createElement(Re,{icon:o,primaryColor:b,secondaryColor:y,style:g}))}));_e.displayName="AntdIcon",_e.getTwoToneColor=function(){var e=Re.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},_e.setTwoToneColor=Ie;var ze=_e,Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ve=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ke}))};Ve.displayName="CaretDownOutlined";var Ue=e.forwardRef(Ve),Be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},qe=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Be}))};qe.displayName="CaretUpOutlined";var We=e.forwardRef(qe),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Je=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ge}))};Je.displayName="CheckOutlined";var He=e.forwardRef(Je),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},Xe=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:$e}))};Xe.displayName="CloseOutlined";var Ye=e.forwardRef(Xe),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Qe=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ze}))};Qe.displayName="CopyOutlined";var et=e.forwardRef(Qe),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 804a64 64 0 10128 0 64 64 0 10-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"exclamation",theme:"outlined"},nt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:tt}))};nt.displayName="ExclamationOutlined";var rt=e.forwardRef(nt),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ot=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:it}))};ot.displayName="EyeInvisibleOutlined";var at=e.forwardRef(ot),lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},st=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:lt}))};st.displayName="EyeOutlined";var ut=e.forwardRef(st),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},dt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:ct}))};dt.displayName="FileOutlined";var pt=e.forwardRef(dt),ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"}}]},name:"folder",theme:"filled"},ht=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:ft}))};ht.displayName="FolderFilled";var vt=e.forwardRef(ht),gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z"}}]},name:"folder-open",theme:"filled"},mt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:gt}))};mt.displayName="FolderOpenFilled";var bt=e.forwardRef(mt),yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},xt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:yt}))};xt.displayName="InfoCircleOutlined";var wt=e.forwardRef(xt),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 224a64 64 0 10128 0 64 64 0 10-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"}}]},name:"info",theme:"outlined"},Et=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:St}))};Et.displayName="InfoOutlined";var kt=e.forwardRef(Et),Pt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Tt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Pt}))};Tt.displayName="LoadingOutlined";var Ct=e.forwardRef(Tt),Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Nt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ot}))};Nt.displayName="SearchOutlined";var jt=e.forwardRef(Nt),At={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},Lt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:At}))};Lt.displayName="WarningOutlined";var Ft=e.forwardRef(Lt);function Dt(e,t,n){let[r,i]=o(e||t),s=a(void 0!==e),u=s.current,c=void 0!==e,d=a(r);u!==c&&console.warn("WARN: A component changed from "+(u?"controlled":"uncontrolled")+" to "+(c?"controlled":"uncontrolled")+"."),s.current=c;let p=l((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let a=function(e){if(n&&!Object.is(d.current,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,...r)}c||(d.current=e)};if("function"==typeof e){i((function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let l=e(c?d.current:t,...i);return a(l,...r),c?t:l}))}else c||i(e),a(e,...r)}),[c,n]);return c?d.current=e:e=r,[e,p]}function Rt(e,t,n,r){let i=(e-(isNaN(t)?0:t))%r,o=2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i;isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(n/r)*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor((n-t)/r)*r);let a=r.toString(),l=a.indexOf("."),s=l>=0?a.length-l:0;if(s>0){let e=Math.pow(10,s);o=Math.round(o*e)/e}return o}function It(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=It(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Mt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=It(e))&&(r&&(r+=" "),r+=t);return r}function _t(){return(_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}).apply(this,arguments)}const zt={prefix:String(Math.round(1e10*Math.random())),current:0},Kt=t.createContext(zt);function Vt(e){let n=r(Kt),i=s((()=>({prefix:n===zt?"":n.prefix+"-"+ ++n.current,current:0})),[n]);return t.createElement(Kt.Provider,{value:i},e.children)}let Ut=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Bt(e){let t=r(Kt);return t!==zt||Ut||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),s((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}function qt(){let e=r(Kt)!==zt,[t,n]=o(e);return"undefined"!=typeof window&&e&&u((()=>{n(!1)}),[]),t}const Wt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Gt=new Map;function Jt(e){let t=a(!0);t.current=!0;let[n,r]=o(e),l=a(null),s=Bt(n),u=e=>{t.current?l.current=e:r(e)};return Gt.set(s,u),Wt((()=>{t.current=!1}),[u]),Wt((()=>{let e=s;return()=>{Gt.delete(e)}}),[s]),i((()=>{let e=l.current;e&&(r(e),l.current=null)}),[r,u]),s}function Ht(e,t){if(e===t)return e;let n=Gt.get(e);if(n)return n(t),t;let r=Gt.get(t);return r?(r(e),e):t}function $t(){let e=Jt(),[t,n]=o(e);return Wt((()=>{Gt.get(e)&&!document.getElementById(e)?n(null):n(e)}),[e]),t}function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(let e of t)"function"==typeof e&&e(...arguments)}}function Yt(){let e=_t({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){let n=t<0||arguments.length<=t?void 0:arguments[t];for(let t in n){let r=e[t],i=n[t];"function"==typeof r&&"function"==typeof i&&"o"===t[0]&&"n"===t[1]&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?e[t]=Xt(r,i):"className"!==t&&"UNSAFE_className"!==t||"string"!=typeof r||"string"!=typeof i?"id"===t&&r&&i?e.id=Ht(r,i):e[t]=void 0!==i?i:r:e[t]=Mt(r,i)}}return e}const Zt=new Set(["id"]),Qt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),en=/^(data-.*)$/;function tn(e,t){void 0===t&&(t={});let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Zt.has(t)||n&&Qt.has(t)||null!=r&&r.has(t)||en.test(t))&&(i[t]=e[t]);return i}function nn(e){if(function(){if(null==rn){rn=!1;try{document.createElement("div").focus({get preventScroll(){return rn=!0,!0}})}catch(e){}}return rn}())e.focus({preventScroll:!0});else{let t=function(e){var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let rn=null;let on=new Map,an=new Set;function ln(){if("undefined"==typeof window)return;let e=t=>{let n=on.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),on.delete(t.target)),0===on.size)){for(let e of an)e();an.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=on.get(t.target);n||(n=new Set,on.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function sn(e){requestAnimationFrame((()=>{0===on.size?e():an.add(e)}))}function un(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Jt(n),i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function cn(e,t){Wt((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function dn(e){for(;e&&!pn(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function pn(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?ln():document.addEventListener("DOMContentLoaded",ln));let fn="undefined"!=typeof window&&window.visualViewport;function hn(){let[e,t]=o((()=>vn()));return i((()=>{let e=()=>{t((e=>{let t=vn();return t.width===e.width&&t.height===e.height?e:t}))};return fn?fn.addEventListener("resize",e):window.addEventListener("resize",e),()=>{fn?fn.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function vn(){return{width:(null==fn?void 0:fn.width)||window.innerWidth,height:(null==fn?void 0:fn.height)||window.innerHeight}}function gn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function mn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function bn(){return mn(/^Mac/)}function yn(){return mn(/^iPhone/)}function xn(){return yn()||mn(/^iPad/)||bn()&&navigator.maxTouchPoints>1}function wn(){return bn()||xn()}function Sn(){return gn(/AppleWebKit/)&&!gn(/Chrome/)}function En(e,t,n,r){let o=a(n);o.current=n;let l=null==n;i((()=>{if(l)return;let n=e.current,i=e=>o.current.call(this,e);return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,l])}let kn=new Map,Pn=!1;try{Pn="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let Tn=!1;try{Tn="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Cn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class On{constructor(e,t){void 0===t&&(t={}),this.numberFormatter=void 0,this.options=void 0,this.numberFormatter=function(e,t){void 0===t&&(t={});let{numberingSystem:n}=t;n&&-1===e.indexOf("-u-nu-")&&(e=e+"-u-nu-"+n);if("unit"===t.style&&!Tn){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(null==(r=Cn[e])||!r[n])throw new Error("Unsupported unit "+e+" with unitDisplay = "+n);t=_t({},t,{style:"decimal"})}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(kn.has(i))return kn.get(i);let o=new Intl.NumberFormat(e,t);return kn.set(i,o),o}(e,t),this.options=t}format(e){let t="";if(t=Pn||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Tn){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions(),o=null==(n=Cn[e])?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Pn||null==this.options.signDisplay||(e=_t({},e,{signDisplay:this.options.signDisplay})),Tn||"unit"!==this.options.style||(e=_t({},e,{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}const Nn=new RegExp("^.*\\(.*\\).*$"),jn=["latn","arab","hanidec"];class An{constructor(e,t){void 0===t&&(t={}),this.locale=void 0,this.options=void 0,this.locale=e,this.options=t}parse(e){return Fn(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Fn(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Fn(this.locale,this.options,e).options.numberingSystem}}const Ln=new Map;function Fn(e,t,n){let r=Dn(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of jn)if(i!==r.options.numberingSystem){let r=Dn(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function Dn(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Ln.get(n);return r||(r=new Rn(e,t),Ln.set(n,r)),r}class Rn{constructor(e,t){void 0===t&&(t={}),this.formatter=void 0,this.options=void 0,this.symbols=void 0,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n){var r,i,o,a,l;let s=e.formatToParts(-10000.111),u=e.formatToParts(10000.111),c=e.formatToParts(1),d=null!=(r=null==(i=s.find((e=>"minusSign"===e.type)))?void 0:i.value)?r:"-",p=null==(o=u.find((e=>"plusSign"===e.type)))?void 0:o.value;p||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(p="+");let f=null==(a=s.find((e=>"decimal"===e.type)))?void 0:a.value,h=null==(l=s.find((e=>"group"===e.type)))?void 0:l.value,v=s.filter((e=>!In.has(e.type))).map((e=>_n(e.value))),g=c.filter((e=>!In.has(e.type))).map((e=>_n(e.value))),m=[...new Set([...g,...v])].sort(((e,t)=>t.length-e.length)),b=new RegExp(m.join("|")+"|[\\p{White_Space}]","gu"),y=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),x=new Map(y.map(((e,t)=>[e,t]))),w=new RegExp("["+y.join("")+"]","g");return{minusSign:d,plusSign:p,decimal:f,group:h,literals:b,numeral:w,index:e=>String(x.get(e))}}(this.formatter,this.options,t)}parse(e){let t=this.sanitize(e);t=Mn(t,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=t?+t:NaN;if(isNaN(n))return NaN;var r;("accounting"===this.options.currencySign&&Nn.test(e)&&(n*=-1),"percent"===this.options.style)&&(n/=100,n=+n.toFixed((null!=(r=this.options.maximumFractionDigits)?r:0)+2));return n}sanitize(e){return e=(e=e.replace(this.symbols.literals,"")).replace("-",this.symbols.minusSign),"arab"===this.options.numberingSystem&&(e=Mn(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(e=Mn(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),(e=this.sanitize(e)).startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!e.startsWith(this.symbols.group)&&0===(e=Mn(e,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}}const In=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function Mn(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function _n(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var zn,Kn,Vn;function Un(e){return e.type===Kn.literal}function Bn(e){return e.type===Kn.argument}function qn(e){return e.type===Kn.number}function Wn(e){return e.type===Kn.date}function Gn(e){return e.type===Kn.time}function Jn(e){return e.type===Kn.select}function Hn(e){return e.type===Kn.plural}function $n(e){return e.type===Kn.pound}function Xn(e){return e.type===Kn.tag}function Yn(e){return!(!e||"object"!=typeof e||e.type!==Vn.number)}function Zn(e){return!(!e||"object"!=typeof e||e.type!==Vn.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(zn||(zn={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Kn||(Kn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Vn||(Vn={}));var Qn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,er=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function tr(e){var t={};return e.replace(er,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var nr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var rr,ir=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,or=/^(@+)?(\+|#+)?$/g,ar=/(\*)(0+)|(#+)(0+)|(0+)/g,lr=/^(0+)$/;function sr(e){var t={};return e.replace(or,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function ur(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function cr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function dr(e){var t=ur(e);return t||{}}function pr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return k(k({},e),dr(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return k(k({},e),dr(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ar,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(lr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(ir.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ir,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=k(k({},t),sr(i.options[0])))}else if(or.test(i.stem))t=k(k({},t),sr(i.stem));else{var o=ur(i.stem);o&&(t=k(k({},t),o));var a=cr(i.stem);a&&(t=k(k({},t),a))}}return t}var fr=new RegExp("^"+Qn.source+"*"),hr=new RegExp(Qn.source+"*$");function vr(e,t){return{start:e,end:t}}var gr=!!String.prototype.startsWith,mr=!!String.fromCodePoint,br=!!Object.fromEntries,yr=!!String.prototype.codePointAt,xr=!!String.prototype.trimStart,wr=!!String.prototype.trimEnd,Sr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Er=!0;try{Er="a"===(null===(rr=Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===rr?void 0:rr[0])}catch(e){Er=!1}var kr,Pr=gr?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Tr=mr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Cr=br?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Or=yr?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Nr=xr?function(e){return e.trimStart()}:function(e){return e.replace(fr,"")},jr=wr?function(e){return e.trimEnd()}:function(e){return e.replace(hr,"")};function Ar(e,t){return new RegExp(e,t)}if(Er){var Lr=Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kr=function(e,t){var n;return Lr.lastIndex=t,null!==(n=Lr.exec(e)[1])&&void 0!==n?n:""}}else kr=function(e,t){for(var n=[];;){var r=Or(e,t);if(void 0===r||Rr(r)||Ir(r))break;n.push(r),t+=r>=65536?2:1}return Tr.apply(void 0,n)};var Fr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(zn.UNMATCHED_CLOSING_TAG,vr(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Dr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Kn.pound,location:vr(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Kn.literal,value:"<"+r+"/>",location:vr(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dr(this.char()))return this.error(zn.INVALID_TAG,vr(a,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(zn.UNMATCHED_CLOSING_TAG,vr(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Kn.tag,value:r,children:o,location:vr(n,this.clonePosition())},err:null}:this.error(zn.INVALID_TAG,vr(a,this.clonePosition())))}return this.error(zn.UNCLOSED_TAG,vr(n,this.clonePosition()))}return this.error(zn.INVALID_TAG,vr(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var l=vr(n,this.clonePosition());return{val:{type:Kn.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Dr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Tr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Tr(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(zn.EMPTY_ARGUMENT,vr(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(zn.MALFORMED_ARGUMENT,vr(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Kn.argument,value:r,location:vr(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(zn.MALFORMED_ARGUMENT,vr(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=kr(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:vr(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(zn.EXPECT_ARGUMENT_TYPE,vr(o,l));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=jr(g.val)).length)return this.error(zn.EXPECT_ARGUMENT_STYLE,vr(this.clonePosition(),this.clonePosition()));s={style:p,styleLocation:vr(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(r)).err)return m;var c=vr(r,this.clonePosition());if(s&&Pr(null==s?void 0:s.style,"::",0)){var d=Nr(s.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,s.styleLocation)).err?g:{val:{type:Kn.number,value:n,location:c,style:g.val},err:null};if(0===d.length)return this.error(zn.EXPECT_DATE_TIME_SKELETON,c);var p={type:Vn.dateTime,pattern:d,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?tr(d):{}};return{val:{type:"date"===a?Kn.date:Kn.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===a?Kn.number:"date"===a?Kn.date:Kn.time,value:n,location:c,style:null!==(i=null==s?void 0:s.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(zn.EXPECT_SELECT_ARGUMENT_OPTIONS,vr(f,k({},f)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(zn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vr(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(zn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,zn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),h=this.parseIdentifierIfPossible(),v=g.val}var m,b=this.tryParsePluralOrSelectOptions(e,a,t,h);if(b.err)return b;if((m=this.tryParseArgumentClose(r)).err)return m;var y=vr(r,this.clonePosition());return"select"===a?{val:{type:Kn.select,value:n,options:Cr(b.val),location:y},err:null}:{val:{type:Kn.plural,value:n,options:Cr(b.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:y},err:null};default:return this.error(zn.INVALID_ARGUMENT_TYPE,vr(o,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(zn.EXPECT_ARGUMENT_CLOSING_BRACE,vr(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(zn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,vr(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(nr).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),l=0,s=a;l<s.length;l++)if(0===s[l].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(zn.INVALID_NUMBER_SKELETON,t)}return{val:{type:Vn.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?pr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],l=new Set,s=r.value,u=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(zn.EXPECT_PLURAL_ARGUMENT_SELECTOR,zn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=vr(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(l.has(s))return this.error("select"===t?zn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:zn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?zn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:zn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,vr(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var h=this.tryParseArgumentClose(p);if(h.err)return h;a.push([s,{value:f.val,location:vr(p,this.clonePosition())}]),l.add(s),this.bumpSpace(),s=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?zn.EXPECT_SELECT_ARGUMENT_SELECTOR:zn.EXPECT_PLURAL_ARGUMENT_SELECTOR,vr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(zn.MISSING_OTHER_CLAUSE,vr(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var l=vr(r,this.clonePosition());return i?Sr(o*=n)?{val:o,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Or(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Pr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Rr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Dr(e){return e>=97&&e<=122||e>=65&&e<=90}function Rr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ir(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Mr(e){e.forEach((function(e){if(delete e.location,Jn(e)||Hn(e))for(var t in e.options)delete e.options[t].location,Mr(e.options[t].value);else qn(e)&&Yn(e.style)||(Wn(e)||Gn(e))&&Zn(e.style)?delete e.style.location:Xn(e)&&Mr(e.children)}))}function _r(e,t){void 0===t&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Fr(e,t).parse();if(n.err){var r=SyntaxError(zn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Mr(n.val),n.val}function zr(e,t){var n=t&&t.cache?t.cache:Jr,r=t&&t.serializer?t.serializer:qr;return(t&&t.strategy?t.strategy:Br)(e,{cache:n,serializer:r})}function Kr(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function Vr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function Ur(e,t,n,r,i){return n.bind(t,e,r,i)}function Br(e,t){return Ur(e,this,1===e.length?Kr:Vr,t.cache.create(),t.serializer)}var qr=function(){return JSON.stringify(arguments)};function Wr(){this.cache=Object.create(null)}Wr.prototype.get=function(e){return this.cache[e]},Wr.prototype.set=function(e,t){this.cache[e]=t};var Gr,Jr={create:function(){return new Wr}},Hr={variadic:function(e,t){return Ur(e,this,Vr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ur(e,this,Kr,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Gr||(Gr={}));var $r,Xr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return E(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Yr=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Gr.INVALID_VALUE,i)||this}return E(t,e),t}(Xr),Zr=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Gr.INVALID_VALUE,r)||this}return E(t,e),t}(Xr),Qr=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Gr.MISSING_VALUE,n)||this}return E(t,e),t}(Xr);function ei(e){return"function"==typeof e}function ti(e,t,n,r,i,o,a){if(1===e.length&&Un(e[0]))return[{type:$r.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(Un(c))l.push({type:$r.literal,value:c.value});else if($n(c))"number"==typeof o&&l.push({type:$r.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!i||!(d in i))throw new Qr(d,a);var p=i[d];if(Bn(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),l.push({type:"string"==typeof p?$r.literal:$r.object,value:p});else if(Wn(c)){var f="string"==typeof c.style?r.date[c.style]:Zn(c.style)?c.style.parsedOptions:void 0;l.push({type:$r.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(Gn(c)){f="string"==typeof c.style?r.time[c.style]:Zn(c.style)?c.style.parsedOptions:void 0;l.push({type:$r.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(qn(c)){(f="string"==typeof c.style?r.number[c.style]:Yn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),l.push({type:$r.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(Xn(c)){var h=c.children,v=c.value,g=i[v];if(!ei(g))throw new Zr(v,"function",a);var m=g(ti(h,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),l.push.apply(l,m.map((function(e){return{type:"string"==typeof e?$r.literal:$r.object,value:e}})))}if(Jn(c)){if(!(b=c.options[p]||c.options.other))throw new Yr(c.value,p,Object.keys(c.options),a);l.push.apply(l,ti(b.value,t,n,r,i))}else if(Hn(c)){var b;if(!(b=c.options["="+p])){if(!Intl.PluralRules)throw new Xr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gr.MISSING_INTL_API,a);var y=n.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[y]||c.options.other}if(!b)throw new Yr(c.value,p,Object.keys(c.options),a);l.push.apply(l,ti(b.value,t,n,r,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===$r.literal&&t.type===$r.literal?n.value+=t.value:e.push(t),e}),[])}(l)}function ni(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?k(k(k({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=k(k({},i[t]),o[t]||{}),e}),{})):i),n}),k({},e)):e}function ri(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}($r||($r={}));var ii=function(){function e(t,n,r,i){var o,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===$r.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return ti(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ni(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,j([void 0],t)))}),{cache:ri(o.number),strategy:Hr.variadic}),getDateTimeFormat:zr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,j([void 0],t)))}),{cache:ri(o.dateTime),strategy:Hr.variadic}),getPluralRules:zr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,j([void 0],t)))}),{cache:ri(o.pluralRules),strategy:Hr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=_r,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class oi{constructor(e,t){void 0===t&&(t="en-US"),this.messages=void 0,this.defaultLocale=void 0,this.messages=_t({},e),this.defaultLocale=t}getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n){void 0===n&&(n="en-US");if(t[e])return t[e];let r=function(e){if(Intl.Locale)return new Intl.Locale(e).language;return e.split("-")[0]}(e);for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error("Could not find intl message "+e+" in "+t+" locale");return r}}class ai{constructor(e,t){this.locale=void 0,this.messages=void 0,this.cache=void 0,this.locale=e,this.messages=t,this.cache={}}format(e,t){let n=this.cache[e];if(!n){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error("Could not find intl message "+e+" in "+this.locale+" locale");n=new ii(t,this.locale),this.cache[e]=n}return n.format(t)}}const li=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),si=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ui(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return li.has(t)}let t=e.split("-")[0];return si.has(t)}function ci(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:ui(e)?"rtl":"ltr"}}let di=ci(),pi=new Set;function fi(){di=ci();for(let e of pi)e(di)}const hi=t.createContext(null);function vi(){let e=function(){let e=qt(),[t,n]=o(di);return i((()=>(0===pi.size&&window.addEventListener("languagechange",fi),pi.add(n),()=>{pi.delete(n),0===pi.size&&window.removeEventListener("languagechange",fi)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return r(hi)||e}const gi=new WeakMap;function mi(e){let{locale:t}=vi(),n=s((()=>function(e){let t=gi.get(e);return t||(t=new oi(e),gi.set(e,t)),t}(e)),[e]),r=s((()=>new ai(t,n)),[t,n]);return l(((e,t)=>r.format(e,t)),[r])}let bi=new Map;function yi(e){let{locale:t}=vi(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(bi.has(n))return bi.get(n);let r=new Intl.Collator(t,e);return bi.set(n,r),r}function xi(e){return{UNSAFE_getDOMNode:()=>e.current}}function wi(e,t){return void 0===t&&(t=e),_t({},xi(e),{focus(){t.current&&t.current.focus()}})}function Si(e){let t=a(null);return c(e,(()=>xi(t))),t}function Ei(e,t){let n=a(null);return c(e,(()=>wi(n,t))),n}t.createContext(null).displayName="BreakpointContext";function ki(e,t){return n=>"rtl"===n?t:e}_t({},{margin:["margin",Oi],marginStart:[ki("marginLeft","marginRight"),Oi],marginEnd:[ki("marginRight","marginLeft"),Oi],marginTop:["marginTop",Oi],marginBottom:["marginBottom",Oi],marginX:[["marginLeft","marginRight"],Oi],marginY:[["marginTop","marginBottom"],Oi],width:["width",Oi],height:["height",Oi],minWidth:["minWidth",Oi],minHeight:["minHeight",Oi],maxWidth:["maxWidth",Oi],maxHeight:["maxHeight",Oi],isHidden:["display",function(e){return e?"none":void 0}],alignSelf:["alignSelf",Di],justifySelf:["justifySelf",Di],position:["position",Fi],zIndex:["zIndex",Fi],top:["top",Oi],bottom:["bottom",Oi],start:[ki("left","right"),Oi],end:[ki("right","left"),Oi],left:["left",Oi],right:["right",Oi],order:["order",Fi],flex:["flex",function(e){if("boolean"==typeof e)return e?"1":void 0;return""+e}],flexGrow:["flexGrow",Di],flexShrink:["flexShrink",Di],flexBasis:["flexBasis",Di],gridArea:["gridArea",Di],gridColumn:["gridColumn",Di],gridColumnEnd:["gridColumnEnd",Di],gridColumnStart:["gridColumnStart",Di],gridRow:["gridRow",Di],gridRowEnd:["gridRowEnd",Di],gridRowStart:["gridRowStart",Di]},{backgroundColor:["backgroundColor",function(e){return"var(--spectrum-alias-background-color-"+e+", "+Ni(e,"background")+")"}],borderWidth:["borderWidth",Ai],borderStartWidth:[ki("borderLeftWidth","borderRightWidth"),Ai],borderEndWidth:[ki("borderRightWidth","borderLeftWidth"),Ai],borderLeftWidth:["borderLeftWidth",Ai],borderRightWidth:["borderRightWidth",Ai],borderTopWidth:["borderTopWidth",Ai],borderBottomWidth:["borderBottomWidth",Ai],borderXWidth:[["borderLeftWidth","borderRightWidth"],Ai],borderYWidth:[["borderTopWidth","borderBottomWidth"],Ai],borderColor:["borderColor",ji],borderStartColor:[ki("borderLeftColor","borderRightColor"),ji],borderEndColor:[ki("borderRightColor","borderLeftColor"),ji],borderLeftColor:["borderLeftColor",ji],borderRightColor:["borderRightColor",ji],borderTopColor:["borderTopColor",ji],borderBottomColor:["borderBottomColor",ji],borderXColor:[["borderLeftColor","borderRightColor"],ji],borderYColor:[["borderTopColor","borderBottomColor"],ji],borderRadius:["borderRadius",Li],borderTopStartRadius:[ki("borderTopLeftRadius","borderTopRightRadius"),Li],borderTopEndRadius:[ki("borderTopRightRadius","borderTopLeftRadius"),Li],borderBottomStartRadius:[ki("borderBottomLeftRadius","borderBottomRightRadius"),Li],borderBottomEndRadius:[ki("borderBottomRightRadius","borderBottomLeftRadius"),Li],borderTopLeftRadius:["borderTopLeftRadius",Li],borderTopRightRadius:["borderTopRightRadius",Li],borderBottomLeftRadius:["borderBottomLeftRadius",Li],borderBottomRightRadius:["borderBottomRightRadius",Li],padding:["padding",Oi],paddingStart:[ki("paddingLeft","paddingRight"),Oi],paddingEnd:[ki("paddingRight","paddingLeft"),Oi],paddingLeft:["paddingLeft",Oi],paddingRight:["paddingRight",Oi],paddingTop:["paddingTop",Oi],paddingBottom:["paddingBottom",Oi],paddingX:[["paddingLeft","paddingRight"],Oi],paddingY:[["paddingTop","paddingBottom"],Oi],overflow:["overflow",Di]});const Pi=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,Ti=/^\s*\w+\(/,Ci=/(static-)?size-\d+|single-line-(height|width)/g;function Oi(e){return"number"==typeof e?e+"px":Pi.test(e)?e:Ti.test(e)?e.replace(Ci,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):"var(--spectrum-global-dimension-"+e+", var(--spectrum-alias-"+e+"))"}function Ni(e,t){return void 0===t&&(t="default"),"var(--spectrum-global-color-"+e+", var(--spectrum-semantic-"+e+"-color-"+t+"))"}function ji(e){return"default"===e?"var(--spectrum-alias-border-color)":"var(--spectrum-alias-border-color-"+e+", "+Ni(e,"border")+")"}function Ai(e){return"var(--spectrum-alias-border-size-"+e+")"}function Li(e){return"var(--spectrum-alias-border-radius-"+e+")"}function Fi(e){return e}function Di(e){return e}var Ri=n({});function Ii(e){var t=e.children,n=P(e,["children"]),i=Object.assign({},r(Ri));return Object.keys(n).forEach((function(e){i[e]?i[e]=j(j([],N(i[e]),!1),[n[e]],!1):i[e]=[n[e]]})),M.jsx(Ri.Provider,k({value:i},{children:t}),void 0)}function Mi(e,t){var n=r(Ri),i={};return n[e]&&n[e].forEach((function(e){Object.assign(i,"function"==typeof e?e(t):e)})),i}var _i=n([980]);function zi(e){var t=e.value,n=e.children;return M.jsx(_i.Provider,k({value:t},{children:n}),void 0)}var Ki=n({});function Vi(e){var t=e.breakpoints,n=e.children,i=e.insideForm,o=e.isDisabled,a=e.isReadOnly,l=e.isRequired,s=e.validationState,u=e.router,c=e.styles,d=e.root,p=e.ref;c&&(n=M.jsx(Ii,k({},c,{children:n}),void 0)),t&&(n=M.jsx(zi,k({value:t},{children:n}),void 0));var f=r(Ki),h={ref:p,breakpoints:t,insideForm:i,isDisabled:o,isReadOnly:a,isRequired:l,validationState:s,router:u,root:d},v=Object.assign({},f);return Object.keys(h).forEach((function(e){null!=h[e]&&(v[e]=h[e])})),M.jsx(Ki.Provider,k({value:v},{children:n}),void 0)}function Ui(e){var t=r(Ki);return k(k({},t),e)}var Bi={};function qi(e){var t=e.join("|");if(!Bi[t]){var n=[];e.forEach((function(t,r){var i={};r&&(i.max=e[r-1]-1),i.min=t,n.push(i)})),n.push({max:e[e.length-1]-1}),n.forEach((function(e){var t=[];e.min&&t.push("(min-width: "+e.min+"px)"),e.max&&t.push("(max-width: "+e.max+"px)"),e.mediaQuery=t.join(" and ")})),Bi[t]=n}return Bi[t]}var Wi={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",wh:"var(--window-height)",sp:function(e){return"(("+e+" * var(--column-width)) + ("+(e-1)+" * var(--column-gap)))"}},Gi=["top","right","bottom","left"],Ji=["rgb","rgba"],Hi=["auto","max-content","min-content","none","subgrid","initial"],$i=/("[^"]*")|('[^']*')|([a-z]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,Xi=new Map,Yi=new Map,Zi=new Map,Qi=[Yi,Xi,Zi],eo=/calc\((\d*)\)/gi;function to(e){return e.match(/^[a-z]/)?"[data-is-"+e+"]":e}function no(e,t){if(void 0===t&&(t=0),"number"==typeof e&&(e=String(e)),"string"!=typeof e)return{values:[],mods:[],all:[],value:""};var n=Qi[t];if(!n.has(e)){n.size>1e4&&n.clear();var r=[],i=[],o=[],a=1!==t,l="",s=-1,u=0,c="",d="",p="",f="",h=void 0;for($i.lastIndex=0,e=e.replace(/@\(/g,"var(--");h=$i.exec(e);){var v=N(h,13),g=v[1],m=v[2],b=v[3],y=v[4],x=v[5],w=v[6],S=v[7],E=v[8],k=v[9],P=v[10],T=v[11],C=v[12];if(m||g)l+=(m||g)+" ";else if(b)p=b.slice(0,-1),l+=b,u++;else if(y)d=2===t?y:ro(y,!1).color;else if(w)u||Hi.includes(w)?l+=w+" ":(r.push(w),i.push(w),c+=w+" ");else if(T)"("===T&&(~s||(s=u,l+="calc"),u++),")"===T&&u&&(l=l.trim(),u>0&&u--,u===s&&(s=-1)),")"!==T||u||(f=p,p=""),l+=T+(")"===T?" ":"");else if(P){if(!~s&&a)if(l){if(l.includes("(")){var O=l.lastIndexOf("(");l=l.slice(0,O)+"(calc("+l.slice(O+1),s=u,u++}}else if(o.length){c=c.slice(0,c.length-o[o.length-1].length-1);var j=o.splice(o.length-1,1)[0];i.splice(o.length-1,1),j&&(j.startsWith("calc(")&&(j=j.slice(4)),s=u,u++,l="calc(("+j+") ")}l+=P+" "}else if(S)if(k&&Wi[k]){var A=uo(E,k);!~s&&A.startsWith("(")&&(l+="calc"),l+=A+" "}else l+=S+" ";else x?(x=x.replace("@","--"),l+="var"!==p?"var("+x+") ":x+" "):C&&(~s?(s=-1,u--,l=l.trim()+"), "):l=l.trim()+", ",u||i.push(","));if(l&&!u){var L=lo(l);Ji.includes(f)?d=L:L.startsWith("color(")?d=ro(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L+" "),l=""}}if(u)(L=lo(""+l.trim()+")".repeat(u))).startsWith("color(")?d=ro(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L);n.set(e,{values:o,mods:r,all:i,value:(c+" "+d).trim(),color:d})}return n.get(e)}function ro(e,t){if(void 0===t&&(t=!1),!(e=e.trim()))return{};if(e.startsWith("#")){var n=(e=e.slice(1)).split("."),r=100;n.length>1&&(r=1===n[1].length?10*Number(n[1]):Number(n[1]),Number.isNaN(r)&&(r=100));var i=n[0];return"current"===i?"currentColor":r>100?r=100:r<0&&(r=0),{color:100!==r?io(i,Math.round(r)/100):(o=i,a=null,l=oo("#"+i),s=l?", "+l:"","var(--"+o+"-color"+(a?", var(--"+a+s+")":s)+")"),name:i,opacity:null!=r?r:100}}var o,a,l,s,u,c,d=no(e),p=d.values,f=d.mods,h=d.color;return h?{color:(h.startsWith("var(")?h:oo(h))||h}:(p.forEach((function(e){e.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?h=e.startsWith("var")?e:oo(e):e.endsWith("%")&&(c=parseInt(e))})),h?{color:h}:(u=u||f[0])?c?{color:io(u,Math.round(c)/100),name:u,opacity:c}:{name:u,color:"current"===u?"currentColor":"inherit"===u?"inherit":"var(--"+u+"-color)"}:{})}function io(e,t,n,r){var i=r?", "+r:"";return"rgba(var(--"+e+"-color-rgb"+(n?", var(--"+n+"-color-rgb, "+i+")":i)+"), "+t+")"}function oo(e,t){if(e)return e.startsWith("rgb")?e:e.startsWith("#")?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return"#"+t+t+n+n+r+r})).substring(1).match(/.{2}/g).map((function(e,t){return parseInt(e,16)*(3===t?1/255:1)}));if(Number.isNaN(t[0]))return"rgba(0, 0, 0, 1)";if(3===t.length)return"rgb("+t.join(", ")+")";if(4===t.length)return"rgba("+t.join(", ")+")";return null}(e):null}function ao(e){return e.match(/\d+/g).map((function(e){return parseInt(e)})).slice(0,3)}function lo(e){return e.trim().replace(eo,(function(e,t){return t}))}function so(e,t){return e.filter((function(e){return t.includes(e)}))}function uo(e,t){var n=Wi[t];return"function"==typeof n?n(e):"1"===e||1===e?n:"("+e+" * "+n+")"}function co(e,t,n,r,i){void 0===t&&(t=[]),void 0===i&&(i=[]);var o=k(k({},n),e.styles);return Object.keys(e).forEach((function(n){var a=r&&r[n]||n,l=e[n];i&&i.includes(n)||t.includes(a)&&(null!=l&&!1!==l?o[a]=l:a in o&&delete o[a])}),{}),o}function po(e,t){if(void 0===t&&(t=""),!e)return"";if(Array.isArray(e))return e.reduce((function(e,n){return e+po(n,t)}),"");var n=e.$,r=e.css,i=P(e,["$","css"]),o=Object.keys(i).reduce((function(e,t){var n=i[t];return Array.isArray(n)?e+n.reduce((function(e,n){return n?e+(t+":")+n+";\n":e}),""):n?""+e+t+":"+n+";\n":e}),"");return r&&(o=r+"\n"+o),o?Array.isArray(n)?(t?t+"{\n":"")+n.reduce((function(e,t){return e+(t?"&"+t+"{\n":"")+o+(t?"}\n":"")}),"")+(t?"}\n":""):(t?t+"{\n":"")+(n?"&"+n+"{\n":"")+o+(n?"}\n":"")+(t?"}\n":""):""}function fo(e,t){void 0===t&&(t=1e3);var n=xo((function(t){return po(e(t))}),t),r=xo((function(e,t){if(void 0===t&&(t=""),null==e||!1===e)return null;var r,i,o,a=function(e,t){var n=t||Object.keys(e);if(!n.length)return[];var r={},i=new Set;n.forEach((function(t){r[t]=function(e){if("object"!=typeof e||!e)return{states:[{model:null,mods:[],value:e}],mods:[]};var t,n=[];Object.keys(e).forEach((function(t){var r=mo(t);r.value=e[t],n.push(r)})),n.reverse();var r=n.reduce((function(e,n){return n.mods.length?n.mods.forEach((function(t){e.includes(t)||e.push(t)})):t=n,e}),[]);t||n.push({mods:[],notMods:r,value:!0});return{states:n,mods:r}}(e[t]),r[t].mods.forEach(i.add,i)}));var o=Array.from(i),a=[];return function(e,t){var n=t?[[]]:[];if(0===e.length)return[e];if(e.length<2)return n.concat([e]);var r=function(e,t){void 0===e&&(e=[]);for(var i=0;i<t.length;i++)n.push(j(j([],N(e),!1),[t[i]],!1)),r(j(j([],N(e),!1),[t[i]],!1),t.slice(i+1))};return r([],e),n.filter((function(e){var t=[];return!e.find((function(e){var n=e.match(/\[(.+?)[=\]]/);return!(!n||!t.includes(n[1])&&(t.push(n[1]),1))}))}))}(o,!0).forEach((function(e){a.push({mods:e,notMods:o.filter((function(t){return!e.includes(t)})),value:n.reduce((function(t,n){return t[n]=r[n].states.find((function(t){return yo(t.model,(function(t){return e.includes(t)}))})).value,t}),{})})})),a}(e);return r=a,i=n,o=new Map,r.forEach((function(e){o.get(e.value)||o.set(e.value,i(e.value)),e.value=o.get(e.value)})),function(e,t,n){return void 0===n&&(n=""),t.reduce((function(t,r){if(!r.value)return t;var i=""+(r.mods||[]).map(to).join("")+(r.notMods||[]).map((function(e){return":not("+to(e)+")"})).join("");return""+t+e+i+n+"{\n"+r.value+"}\n"}),"")}("&&",a,t)}),t);return Object.assign(r,{__lookupStyles:e.__lookupStyles})}var ho=/([&|!^])|([()])|([a-z0-6-]+)|(:[a-z0-6-]+)|(\.[a-z0-6-]+)|(\[[^\]]+])/gi,vo=["!","&","|","^"];function go(e){return 1===e.length?e[0]:(vo.forEach((function(t){for(var n;-1!==(n=e.indexOf(t));){var r=e[n];"!"===r?e[n+1]&&1!==e[n+1].length?e.splice(n,2,["!",e[n+1]]):e.splice(n,1):e[n-1]&&e[n+1]&&1!==e[n-1].length&&1!==e[n+1].length?e.splice(n-1,3,[r,e[n-1],e[n+1]]):e.splice(n,1)}})),1===e.length?e[0]:e)}var mo=xo((function(e,t){var n=e.replace(/,/g,"|").match(ho);if(!n||!n.length)return{model:null,mods:[],tokens:n,value:t};if(1===n.length)return{model:n[0],mods:n.slice(0),tokens:n,value:t};var r=[],i=[[]],o=i[0],a=0;for(n.forEach((function(e){switch(e){case"(":a++,o=i[a]=[];break;case")":a--,i[a].push(go(o)),o=i[a];break;default:e.length>1&&(r.includes(e)||r.push(e)),o.push(e)}}));a;)a--,i[a].push(go(o)),o=i[a];return{tokens:n,mods:r,model:go(i[0]),value:t}}));var bo={"!":function(e){return!e},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&":function(e,t){return e&t}};function yo(e,t){if(!e)return!0;if(!Array.isArray(e))return"function"==typeof t?!!t(e):!!t[e];var n=bo[e[0]];n||console.warn("CubeUIKit: unexpected compute method in the model",e);var r=e[1];if(r="object"==typeof r?!!yo(r,t):"function"==typeof t?!!t(r):!!t[r],2===e.length)return n(r);var i=e[2];return!!n(r,i="object"==typeof i?!!yo(i,t):"function"==typeof t?!!t(i):!!t[i])}function xo(e,t){void 0===t&&(t=1e3);var n={},r=0;return function(i,o){var a=[i,o],l="string"!=typeof a[0]||o?JSON.stringify(a):a[0];return n[l]||(r>t&&(n={},r=0),r++,n[l]=o?e(i,o):e(i)),n[l]}}var wo={};function So(e,t,n){var r=e+"."+(t||"");return wo[r]||(wo[r]=fo((function(r){var i,o,a,l,s,u=r[e];if(null!=u&&!1!==u){var c,d=t||(c=e,c.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))).replace(/^@/,"--");if(!n||"string"==typeof u||(u=n(u))){if("string"==typeof u&&d.startsWith("--")&&d.endsWith("-color")){var p=oo(u=u.trim()),f=ro(u),h=f.color,v=f.name;return v&&p?((i={})[d]="var(--"+v+"-color, "+p+")",i[d+"-rgb"]="var(--"+v+"-color-rgb, "+ao(p).join(", ")+")",i):v?((o={})[d]="var(--"+v+"-color)",o[d+"-rgb"]="var(--"+v+"-color-rgb)",o):p?((a={})[d]=p,a[d+"-rgb"]=ao(p).join(", "),a):((l={})[d]=h,l)}var g=no(u,1).value;return(s={})[d]=g,s}}})),wo[r].__lookupStyles=[e]),wo[r]}var Eo={};function ko(e,t){var n;if("function"==typeof e)e=(n=e).__lookupStyles;else{if(!t)return void console.warn("CubeUIKit: incorrect custom style definition:",e);n=Object.assign(t,{__lookupStyles:e})}n=fo(n),Array.isArray(e)&&e.forEach((function(e){Eo[e]||(Eo[e]=[]),Eo[e].push(n)}))}function Po(e,t,n){var r=So(e,t,n);Eo[e]||(Eo[e]=[]),Eo[e].push(r)}function To(e){return e.startsWith("&")||e.startsWith(".")||e.startsWith("[")}var Co={},Oo=0;function No(e,t,n){var r,i=t,o=Array.from(Array(i.length)).map((function(){return""})),a=JSON.stringify({s:e,r:t,suffix:n}),l="",s=[];if(!Co[a]){++Oo>1e3&&(Oo=0,Co={});var u=Object.keys(e),c=u.filter((function(e){return To(e)})),d="";c.length&&c.forEach((function(n){var r=function(e){return e.startsWith("&")?e.slice(1):e.startsWith(".")?"& "+e:e.startsWith("[")?'& [data-element="'+e.slice(1,-1)+'"]':null}(n);d+=No(e[n],t,r)})),u.forEach((function(t){if(!To(t)){var n=Eo[t];n||(n=Eo[t]=[So(t)]),n.forEach((function(t){if(!s.find((function(e){return e.handler===t}))){var n=!1,r=t.__lookupStyles.reduce((function(t,r){return t[r]=e[r],Array.isArray(t[r])&&(0===t[r].length?delete t[r]:(1===t[r].length&&(t[r]=t[r][0]),n=!0)),t}),{});s.push({handler:t,styleMap:r,isResponsive:n})}}))}})),s.forEach((function(e){var t=e.handler,r=e.styleMap,a=e.isResponsive,s=t.__lookupStyles;if(a){var u=s.reduce((function(e,t){return e[t]=function(e,t){if(null==e)return e;var n=Array.from(Array(t));if("string"==typeof e)return n.map((function(){return e}));if(Array.isArray(e)){for(var r=null,i=0;i<n.length;i++)n[i]=null==e[i]?r:e[i],r=n[i];return n}return[]}(r[t],i.length),e}),{});i.map((function(e,t){var n={};return s.forEach((function(e){null!=u&&null!=u[e]&&(n[e]=u[e][t])})),n})).map((function(e){return t(e,n)})).forEach((function(e,t){o[t]+=e||""}))}else l+=t(r,n)||""})),Co[a]="outline: none;\n"+l+(t&&t.length?(r=o,i.filter((function(e){return e.mediaQuery})).map((function(e,t){return"@media "+e.mediaQuery+" {"+r[t]+"}"})).join("\n")):"")+d}return Co[a]}function jo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];try{for(var o=O(e),a=o.next();!a.done;a=o.next()){var l=a.value;"function"==typeof l&&l.apply(void 0,j([],N(r),!1))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}function Ao(e){return d.toArray(e).every((function(e){return!p(e)}))}function Lo(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=O(n),a=o.next();!a.done;a=o.next()){var l=a.value;for(var s in i)/^on[A-Z]/.test(s)&&"function"==typeof i[s]&&l&&"function"==typeof l[s]?i[s]=Xt(i[s],l[s]):"className"===s&&"string"==typeof i.className&&l&&"string"==typeof l.className?i[s]=Mt(i.className,l.className):"styles"===s&&"object"==typeof i.styles&&l&&"object"==typeof l.styles?i[s]=k(k({},i.styles),l.styles):"id"===s&&i.id&&(null==l?void 0:l.id)?i.id=Ht(i.id,null==l?void 0:l.id):i[s]=l&&void 0!==l[s]?l[s]:i[s];for(var s in l)void 0===i[s]&&(i[s]=l[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i}function Fo(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t["data-is-"+n]=""),t}),{})}var Do=n({});function Ro(e,t){var n=e.slot||t;return Yt((r(Do)||{})[n],e)}function Io(e){var t=r(Do)||{},n=e.slots,i=void 0===n?{}:n,o=e.children,a=s((function(){return Object.keys(t).concat(Object.keys(i)).reduce((function(e,n){var r;return k(k({},e),((r={})[n]=Yt(t[n]||{},i[n]||{}),r))}),{})}),[t,i]);return M.jsx(Do.Provider,k({value:a},{children:o}),void 0)}function Mo(e){var t=e.children,n=P(e,["children"]),r=t;return d.toArray(t).length<=1&&"function"==typeof t&&(r=f(d.only(t),n)),M.jsx(Do.Provider,k({value:{}},{children:r}),void 0)}var _o="undefined"!=typeof window?e.useLayoutEffect:function(){};function zo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a();return i((function(){e.forEach((function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)}))}),[e]),n}var Ko={inline:"block","inline-grid":"grid","inline-flex":"flex"},Vo={block:"inline-block",grid:"inline-grid",flex:"inline-flex"},Uo=m.div((function(e){return e.css})),Bo=h((function(e,t){var n=e.as,i=e.styles,o=e.breakpoints,a=e.block,l=e.mods,s=e.inline,u=e.isHidden,c=e.isDisabled,d=e.qa,p=e.qaVal,f=e.css,h=P(e,["as","styles","breakpoints","block","mods","inline","isHidden","isDisabled","qa","qaVal","css"]),v=k({},i);a&&(v.display="string"==typeof v.display?Ko[v.display||"inline"]:"block"),s&&(v.display="string"==typeof v.display?Vo[v.display||"block"]:"inline-block");var g=r(_i);return f=""+(f||"")+No(v,qi(o||g)),l&&Object.assign(h,Fo(l)),M.jsx(Uo,k({as:n,"data-qa":d,"data-qaval":p},h,{hidden:u,disabled:c,ref:t,css:f}),void 0)})),qo=["display","font","preset","hide","opacity","whiteSpace"],Wo=["gridArea","order","gridColumn","gridRow","placeSelf","alignSelf","justifySelf","zIndex","margin"],Go=["reset","padding","paddingInline","paddingBlock","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],Jo=["color","fill"],Ho=["textTransform","fontWeight","fontStyle"],$o=["width","height","flexBasis","flexGrow","flexShrink","flex"],Xo=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","gap","columnGap","rowGap","gridColumns","gridRows","gridTemplate","gridAreas"],Yo=j(j(j(j(j(j([],N(qo),!1),N(Jo),!1),N($o),!1),N(Wo),!1),N(Go),!1),N(Xo),!1),Zo=j(j([],N(Wo),!1),N($o),!1),Qo=new Set(["id"]),ea=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ta=new Set(["role","as","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target"]),na=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),ra=/^((data-).*)$/,ia=/^on[A-Z].+$/;function oa(e,t){void 0===t&&(t={});var n=t.labelable,r=t.propNames,i=t.eventProps,o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Qo.has(a)||ta.has(a)||n&&ea.has(a)||i&&ia.test(a)&&!na.has(a)||(null==r?void 0:r.has(a))||ra.test(a))&&(o[a]=e[a]);return o}var aa=D((function(e){var t={valTypes:{none:"NONE",primitive:"PRIM",object:"OBJECT",array:"ARRAY"},getValType:function(e){return e&&"object"==typeof e||Array.isArray(e)?Array.isArray(e)?t.valTypes.array:"object"==typeof e?t.valTypes.object:void 0:t.valTypes.primitive},getPathType:function(e){var n=[];for(var r in e){var i=e[r];i?t.isNumber(i)?n.push(t.valTypes.array):n.push(t.valTypes.object):n.push(t.valTypes.none)}return n},isUndefined:function(e){return void 0===e},isNumber:function(e){return!isNaN(parseInt(e))},isEmptyObj:function(e){for(var t in e)if(Object.hasOwnProperty.call(e,t))return!1;return JSON.stringify(e)===JSON.stringify({})},isNotObject:function(e){return!e||"object"!=typeof e},isEmptyArray:function(e){return Array.isArray(e)&&0==e.length},isNotArray:function(e){return 0==Array.isArray(e)},removeEmptyArrayItem:function(e){return e.filter((function(e){return null!=e&&""!=e}))},getFieldName:function(e,n,r,i,o){return o?(n||"")+(t.isNumber(e)?"["+e+"]":(r&&!n?"":".")+e):i?(n||"")+"["+e+"]":(n?n+".":"")+e},startsWith:function(e,t){return 0==e.indexOf(t)},convert:function(e,n){var r={};return t.isNotObject(e)&&t.isNotArray(e)?n?(r[n]=e,r):e:function e(n,i,o){var a=Array.isArray(n);for(var l in n){var s=n[l];s&&"object"==typeof s?Array.isArray(s)?t.isEmptyArray(s)?r[t.getFieldName(l,i,o,!1,!0)]=s:r=e(s,t.getFieldName(l,i,o,!1,!0),a):a&&0==t.isEmptyObj(s)?r=e(s,t.getFieldName(l,i,o,!0)):0==t.isEmptyObj(s)?r=e(s,t.getFieldName(l,i,o)):t.isEmptyObj(s)&&(r[t.getFieldName(l,i,o,a)]=s):a||t.isNumber(l)?r[t.getFieldName(l,i,o,!0)]=s:r[t.getFieldName(l,i,o)]=s}return r}(e,n,!0)},backward:function(e,n){var r={},i=/\[(\d+)\]/g;if(t.isNotObject(e)&&t.isNotArray(e))return n?e[n]:e;for(var o in e){var a=e[o];if(n){var l=new RegExp("^"+n);o=o.replace(l,"")}o=o.replace(i,".$1"),t.startsWith(o,".")&&(o=o.replace(/^\./,""));var s=o.split("."),u=t.getPathType(s);t.isUndefined(u)||u[0]!=t.valTypes.array||0!=Array.isArray(r)||(r=[]),function e(n,i,o,a){var l=s.shift(),c=u.shift();if(void 0!==l&&""!=l){var d=c==t.valTypes.array;if(t.isNumber(l)&&(l=parseInt(l)),s.length>0)return void 0===i[l]&&(i[l]=d?[]:{}),void e(n,i[l],l,i);c==t.valTypes.array&&o&&a?(0==Array.isArray(a[o])&&(a[o]=[]),a[o].push(n)):i[l]=n}else r=n}(a,r)}return r}};e.exports=t})),la=D((function(e){!function(e){e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,o,a,l="",s="";if(l=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],l&&l.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(l.toLowerCase()))return s+=l+":",r&&r.length&&(s+="//"+r),s+=i,o&&o.length&&(s+="?"+o),a&&a.length&&(s+="#"+a),s}}}function r(e,r){if(n(e)){var i,o,a,l,s="",u="",c="",d="";if(s=(i=t(e))[1],u=i[2],o=i[3],a=i[4],l=i[5],s){if(r){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=s+":",d+="//"+u,c&&(d+=c),d+=o,a&&a.length&&(d+="?"+a),l&&l.length&&(d+="#"+l),d}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)})),sa=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,ua={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e},boolean:function(e){return"boolean"==typeof e},method:function(e){return"function"==typeof e},regexp:function(e){return e instanceof RegExp},integer:function(e){return"number"==typeof e&&e===parseInt(String(e),10)},array:function(e){return Array.isArray(e)},object:function(e){return"object"==typeof e&&!Array.isArray(e)},date:function(e){return e instanceof Date},url:function(e){return"string"==typeof e&&la.isUri(e)},hex:function(e){return"string"==typeof e&&e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email:function(e){return function(e){if(!e)return!1;if(e.length>254)return!1;if(!sa.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some((function(e){return e.length>63})))}(e)},any:function(e){return!0}},ca=Object.keys(ua),da={required:function(e){return T(this,void 0,void 0,(function(){return C(this,(function(t){return Array.isArray(e)?[2,e.length?Promise.resolve():Promise.reject()]:[2,e||0===e?Promise.resolve():Promise.reject()]}))}))},whitespace:function(e){return T(this,void 0,void 0,(function(){return C(this,(function(t){return"string"!=typeof e||e.trim()?[2,Promise.resolve()]:[2,Promise.reject()]}))}))},pattern:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.pattern,"string"!=typeof e?[2,Promise.resolve()]:[2,e.match(n)?Promise.resolve():Promise.reject()]}))}))},enum:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.enum||[],e||0===e?[2,n.includes(e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},len:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.len,"number"==typeof e?[2,e===n?Promise.resolve():Promise.reject()]:e&&"length"in e?[2,e.length===n?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},max:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.max,"number"==typeof e?[2,e<=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length<=n?Promise.resolve():Promise.reject()]}))}))},min:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.min,"number"==typeof e?[2,e>=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length>=n?Promise.resolve():Promise.reject()]}))}))},validator:function(e,t){return T(this,void 0,void 0,(function(){return C(this,(function(n){return[2,t.validator(t,e)]}))}))},type:function(e,t){return T(this,void 0,void 0,(function(){var n;return C(this,(function(r){return n=t.type,ca.includes(n)?[2,ua[n](e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))}},pa=Object.keys(da);function fa(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,l,s;return C(this,(function(u){switch(u.label){case 0:"function"==typeof t&&(t=t(n)),"function"==typeof t.transform&&(e=t.transform(e)),u.label=1;case 1:u.trys.push([1,6,7,8]),r=O(pa),i=r.next(),u.label=2;case 2:return i.done?[3,5]:(o=i.value)in t?[4,(0,da[o])(e,t)]:[3,4];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a=u.sent(),l={error:a},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(l)throw l.error}return[7];case 8:return[2]}}))}))}function ha(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,l,s,u;return C(this,(function(c){switch(c.label){case 0:if(!t||!t.length)return[2];r=function(t){return C(this,(function(r){switch(r.label){case 0:return[4,fa(e,t,n).catch((function(e){throw"string"!=typeof e&&(e=(null==e?void 0:e.message)||t.message),e}))];case 1:return r.sent(),[2]}}))},c.label=1;case 1:c.trys.push([1,6,7,8]),i=O(t),o=i.next(),c.label=2;case 2:return o.done?[3,5]:(a=o.value,[5,r(a)]);case 3:c.sent(),c.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return l=c.sent(),s={error:l},[3,8];case 7:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))}function va(e,t){return JSON.stringify(e)===JSON.stringify(t)}var ga=function(){function e(e){this.forceReRender=function(){},this.initialFields={},this.fields={},this.ref={},this.isSubmitting=!1,this.onValuesChange=function(){},this.onSubmit=function(){},this.forceReRender=e||function(){},this.initialFields={},this.fields={},this.setFieldsValue=this.setFieldsValue.bind(this),this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldsValue=this.setInitialFieldsValue.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}return e.prototype.submit=function(){return T(this,void 0,void 0,(function(){return C(this,(function(e){return this.onSubmit?[2,this.onSubmit(this.getFormData())]:[2]}))}))},e.prototype.setFieldsValue=function(e,t,n,r){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1);var o=!1;Object.keys(e).forEach((function(a){var l=i.fields[a];!l&&r&&(i.createField(a,n),l=i.fields[a]),l&&!va(l.value,e[a])&&(o=!0,l.value=e[a],t&&(l.touched=t))})),o&&n&&(this.forceReRender(),t&&this.onValuesChange&&this.onValuesChange(this.getFormData()))},e.prototype.getFieldValue=function(e){return this.fields[e]&&this.fields[e].value},e.prototype.getFieldsValue=function(){return Object.values(this.fields).reduce((function(e,t){return e[t.name]=t.value,e}),{})},e.prototype.getFormData=function(){var e=this.getFieldsValue();return Object.keys(e).reduce((function(t,n){return function(e,t,n){for(var r=t.split("."),i=e;r.length-1;){var o=r.shift();o in i||(i[o]={}),i=i[o]}i[r[0]]=n}(t,n,e[n]),n.includes(".")&&delete t[n],t}),{})},e.prototype.setFieldValue=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var i=this.fields[e];i&&!va(t,i.value)&&(i.value=t,n&&(i.touched=n),r&&this.forceReRender(),n&&this.onValuesChange&&this.onValuesChange(this.getFormData()))},e.prototype.getFieldInstance=function(e){return this.fields[e]},e.prototype.setInitialFieldsValue=function(e){this.initialFields=aa.convert(e)||{}},e.prototype.resetFields=function(e){void 0===e&&(e=!0),this.setFieldsValue(this.initialFields,!1,e,!0)},e.prototype.validateField=function(e){return T(this,void 0,void 0,(function(){var t,n=this;return C(this,(function(r){return(t=this.getFieldInstance(e))&&t.rules?[2,ha(t.value,t.rules,this).then((function(){t.errors&&!t.errors.length||(t.errors=[],n.forceReRender())})).catch((function(e){return t.errors&&va(t.errors,[e])||(t.errors=[e],n.forceReRender()),Promise.reject([e])}))]:[2,Promise.resolve()]}))}))},e.prototype.validateFields=function(e){var t=this,n=e||Object.keys(this.fields),r=[];return Promise.allSettled(n.map((function(e){return t.validateField(e).catch((function(t){return r.push({name:e,errors:t}),Promise.reject()}))}))).then((function(){return r.length?Promise.reject(r):t.getFormData()}))},e.prototype.isFieldValid=function(e){var t=this.getFieldInstance(e);return!t||!t.errors.length},e.prototype.isFieldInvalid=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.errors.length},e.prototype.isFieldTouched=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.touched},e.prototype.getFieldError=function(e){var t=this.getFieldInstance(e);return t&&t.errors||[]},e.prototype.createField=function(e,t){void 0===t&&(t=!0),this.fields[e]||(this.fields[e]=this._createField(e)),t&&this.forceReRender()},e.prototype.setFields=function(e){var t=this;e.forEach((function(e){var n=e.name,r=e.value,i=e.errors;t.fields[n]=t._createField(n,{value:r,errors:i})})),this.forceReRender()},e.prototype.setSubmitting=function(e){this.isSubmitting=e,this.forceReRender()},e.prototype._createField=function(e,t){return k({name:e,value:void 0,validating:!1,touched:!1,errors:[]},t)},e}();function ma(e,t,n){void 0===n&&(n={});var r=n.onSubmit,i=n.onValuesChange,l=a(),s=N(o({}),2)[1];if(!l.current){if(e)l.current=e;else{e=l.current=new ga((function(){s({})}))}e.ref=t,r&&(e.onSubmit=r),i&&(e.onValuesChange=i)}return[l.current]}function ba(e){return void 0===e&&(e=30),new Promise((function(t){setTimeout(t,e)}))}var ya=n({});function xa(e){var t=r(ya);return k(k({},t),e)}var wa=new Set(["action","autoComplete","encType","method","target"]),Sa={display:"block",flow:"column",gap:"2x"};var Ea=Object.assign(h((function(e,t){var n,r=this;(e=Ui(e)).qa;var o,l,s=e.name,u=e.children,c=e.labelPosition,d=void 0===c?"top":c,p=e.isRequired,f=e.necessityIndicator,h=e.isDisabled,v=e.isReadOnly,g=e.validationState,m=e.labelStyles,b=e.validateTrigger,y=e.defaultValues,x=e.onValuesChange,w=e.requiredMark,S=void 0===w||w,E=e.form,O=e.onSubmit,j=e.onSubmitFailed,A=P(e,["qa","name","children","labelPosition","isRequired","necessityIndicator","isDisabled","isReadOnly","validationState","labelStyles","validateTrigger","defaultValues","onValuesChange","requiredMark","form","onSubmit","onSubmitFailed"]),L=a(!0);t=zo(t),!O&&!j||A.action||(l=function(e){if(e&&(null==e?void 0:e.preventDefault)&&(e&&(null==e?void 0:e.preventDefault)&&(null==e||e.preventDefault()),e&&(null==e?void 0:e.stopPropagation)&&(null==e||e.stopPropagation()),e.nativeEvent)){var t=e.nativeEvent;if(t.submitter&&"submit"!==t.submitter.getAttribute("type"))return}return null==E?void 0:E.validateFields().then((function(){return T(r,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,ba()];case 1:if(e.sent(),!E||E.isSubmitting)return[3,5];e.label=2;case 2:return e.trys.push([2,,4,5]),E.setSubmitting(!0),[4,null==O?void 0:O(E.getFormData())];case 3:return e.sent(),[3,5];case 4:return E.setSubmitting(!1),[7];case 5:return[2]}}))}))}),(function(e){return T(r,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:return[4,ba()];case 1:if(t.sent(),e instanceof Error)throw e;return null==j||j(e),[2]}}))}))}))}),n=N(ma(E,t&&t.current,{onSubmit:l,onValuesChange:x}),1),E=n[0],o=co(A,Yo,Sa);var F=Si(t),D={labelPosition:d,labelStyles:m,necessityIndicator:f,validateTrigger:b,requiredMark:S,form:E,idPrefix:s};return L.current&&E&&y&&(E.setInitialFieldsValue(y),E.resetFields(!1),L.current=!1),i((function(){y&&(null==E||E.setInitialFieldsValue(y))}),[y]),M.jsx(Bo,k({as:"form",qa:"Form"},oa(A,{propNames:wa}),{onSubmit:l,noValidate:!0,styles:o,ref:F,mods:{"has-sider":"side"===d}},{children:M.jsx(ya.Provider,k({value:D},{children:M.jsx(Vi,k({insideForm:!0,isDisabled:h,isReadOnly:v,isRequired:p,validationState:g},{children:u}),void 0)}),void 0)}),void 0)})),{useForm:ma});let ka="default",Pa="";function Ta(){"default"===ka&&(Pa=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),ka="disabled"}function Ca(){"disabled"===ka&&(ka="restoring",setTimeout((()=>{sn((()=>{"restoring"===ka&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Pa||""),Pa="",ka="default")}))}),300))}function Oa(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Na=t.createContext(null);function ja(e){let t=function(e){let t=r(Na);if(t){let{register:n}=t;e=Yt(q(t,["register"]),e),n()}return cn(t,e.ref),e}(e),{onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,isPressed:h,preventFocusOnPress:v,shouldCancelOnPointerExit:g}=t,m=q(t,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","ref"]),b=a(null);b.current={onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,shouldCancelOnPointerExit:g};let[y,x]=o(!1),w=a({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:S,removeAllGlobalListeners:E}=function(){let e=a(new Map),t=l(((t,n,r,i)=>{e.current.set(r,{type:n,eventTarget:t,options:i}),t.addEventListener(n,r,i)}),[]),n=l(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]),r=l((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return i((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}(),k=s((()=>{let e=w.current,t=(t,n)=>{let{onPressStart:r,onPressChange:i,isDisabled:o}=b.current;o||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!0),e.didFirePressStart=!0,x(!0))},n=function(t,n,r){void 0===r&&(r=!0);let{onPressEnd:i,onPressChange:o,onPress:a,isDisabled:l}=b.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,i&&i({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!1),x(!1),a&&r&&!l&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=b.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},i=t=>{e.isPressed&&(e.isOverTarget&&n(Da(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),Ca())},o={onKeyDown(n){La(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),S(document,"keyup",a,!1)))},onKeyUp(t){La(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Da(e.target,t),"keyboard")},onClick(i){i&&!i.currentTarget.contains(i.target)||i&&0===i.button&&(i.stopPropagation(),f&&i.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||!Oa(i.nativeEvent)||(f||v||nn(i.currentTarget),t(i,"virtual"),r(i,"virtual"),n(i,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{e.isPressed&&La(t)&&(t.preventDefault(),t.stopPropagation(),e.isPressed=!1,n(Da(e.target,t),"keyboard",t.target===e.target),E(),(t.target===e.target&&Aa(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click())};if("undefined"!=typeof PointerEvent){o.onPointerDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Ia(n.target)&&n.preventDefault(),e.pointerType=Ma(n.nativeEvent)?"virtual":n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,f||v||nn(n.currentTarget),Ta(),t(n,e.pointerType),S(document,"pointermove",a,!1),S(document,"pointerup",l,!1),S(document,"pointercancel",s,!1)))},o.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ia(e.target)&&e.preventDefault(),e.stopPropagation())},o.onPointerUp=t=>{t.currentTarget.contains(t.target)&&0===t.button&&Ra(t,t.currentTarget)&&r(t,e.pointerType||(Ma(t.nativeEvent)?"virtual":t.pointerType))};let a=r=>{r.pointerId===e.activePointerId&&(Ra(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Da(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Da(e.target,r),e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r)))},l=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Ra(t,e.target)?n(Da(e.target,t),e.pointerType):e.isOverTarget&&n(Da(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),Ca())},s=e=>{i(e)};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}else{o.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Ia(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Oa(n.nativeEvent)?"virtual":"mouse",f||v||nn(n.currentTarget),t(n,e.pointerType),S(document,"mouseup",a,!1)))},o.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},o.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(t)))},o.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,E(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Ra(t,e.target)?n(Da(e.target,t),e.pointerType):e.isOverTarget&&n(Da(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};o.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;if(t.length>0)return t[0];return null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",f||v||nn(n.currentTarget),Ta(),t(n,e.pointerType),S(window,"scroll",l,!0))},o.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let o=Fa(r.nativeEvent,e.activePointerId);o&&Ra(o,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r))},o.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let i=Fa(t.nativeEvent,e.activePointerId);i&&Ra(i,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,Ca(),E()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&i(t))};let l=t=>{e.isPressed&&t.target.contains(e.target)&&i({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}return o}),[S,f,v,E]);return i((()=>()=>Ca()),[]),{isPressed:h||y,pressProps:Yt(m,k)}}function Aa(e){return"A"===e.tagName&&e.hasAttribute("href")}function La(e){const{key:t,target:n}=e,r=n,{tagName:i,isContentEditable:o}=r,a=r.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t||"INPUT"===i||"TEXTAREA"===i||!0===o||Aa(r)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function Fa(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function Da(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ra(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return o=r,!((i=n).left>o.right||o.left>i.right||i.top>o.bottom||o.top>i.bottom);var i,o}function Ia(e){return!e.closest('[draggable="true"]')}function Ma(e){return 0===e.width&&0===e.height}Na.displayName="PressResponderContext";const _a=t.forwardRef(((e,n)=>{let{children:o}=e,l=q(e,["children"]),s=a(!1),u=r(Na),c=Yt(u||{},_t({},l,{ref:n||(null==u?void 0:u.ref),register(){s.current=!0,u&&u.register()}}));return cn(u,n),i((()=>{s.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),t.createElement(Na.Provider,{value:c},o)}));function za(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}let Ka=null,Va=new Set,Ua=!1,Ba=!1,qa=!1;const Wa={Tab:!0,Escape:!0};function Ga(e,t){for(let n of Va)n(e,t)}function Ja(e){Ba=!0,function(e){return!(e.metaKey||!bn()&&e.altKey||e.ctrlKey||"keyup"===e.type&&("Control"===e.key||"Shift"===e.key))}(e)&&(Ka="keyboard",Ga("keyboard",e))}function Ha(e){Ka="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ba=!0,Ga("pointer",e))}function $a(e){Oa(e)&&(Ba=!0,Ka="virtual")}function Xa(e){e.target!==window&&e.target!==document&&(Ba||qa||(Ka="virtual",Ga("virtual",e)),Ba=!1,qa=!1)}function Ya(){Ba=!1,qa=!0}function Za(){if("undefined"==typeof window||Ua)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ba=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ja,!0),document.addEventListener("keyup",Ja,!0),document.addEventListener("click",$a,!0),window.addEventListener("focus",Xa,!0),window.addEventListener("blur",Ya,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ha,!0),document.addEventListener("pointermove",Ha,!0),document.addEventListener("pointerup",Ha,!0)):(document.addEventListener("mousedown",Ha,!0),document.addEventListener("mousemove",Ha,!0),document.addEventListener("mouseup",Ha,!0)),Ua=!0}function Qa(){return"pointer"!==Ka}function el(){return Ka}function tl(e){void 0===e&&(e={});let{isTextInput:t,autoFocus:n}=e,[r,a]=o(n||Qa());var l,s,u;return l=e=>{a(e)},s=[t],u={isTextInput:t},Za(),i((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Wa[n.key])})(null==u?void 0:u.isTextInput,e,t)&&l(Qa())};return Va.add(e),()=>Va.delete(e)}),s),{isFocusVisible:r}}function nl(e){let t=a({isFocusWithin:!1}).current;if(e.isDisabled)return{focusWithinProps:{}};return{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?Za():document.addEventListener("DOMContentLoaded",Za));let rl=!1,il=0;function ol(){rl=!0,setTimeout((()=>{rl=!1}),50)}function al(e){"touch"===e.pointerType&&ol()}function ll(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",al):document.addEventListener("touchend",ol),il++,()=>{il--,il>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",al):document.removeEventListener("touchend",ol))}}function sl(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:l}=e,[u,c]=o(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(ll,[]);let{hoverProps:p,triggerHoverEnd:f}=s((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let i=e.target;d.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),c(!0)},i=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let i=e.target;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),c(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{rl&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||rl||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,n,r,l,d]);return i((()=>{l&&f({target:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:u}}function ul(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function cl(e){if(!e)return;let t=!0;return n=>{let r=_t({},n,{preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(r),t&&n.stopPropagation()}}function dl(e,t){var n=e.isDisabled;void 0===t&&(t=!1),i((function(){l(!1)}),[n]);var r=N(o(!1),2),a=r[0],l=r[1],s=tl({}).isFocusVisible;return{focusProps:za({onFocusChange:l}).focusProps,isFocused:a&&(!t||s)}}var pl={display:"grid",position:"absolute",placeItems:"center",gap:0,left:"@prefix-gap",top:"@prefix-gap",bottom:"@prefix-gap",color:"#dark.75",height:"(100% - (2 * @prefix-gap))"},fl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=P(e,["onWidthChange","outerGap","children"]),s=co(l,Yo,pl),u=zo(t);return i((function(){(null==u?void 0:u.current)&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(Bo,k({},oa(l,{eventProps:!0}),{styles:s,ref:u,style:{"--prefix-gap":no(o).value}},{children:a}),void 0)})),hl={display:"grid",placeContent:"stretch",placeItems:"center",flow:"column",gap:0,position:"absolute",right:"@suffix-gap",top:"@suffix-gap",bottom:"@suffix-gap",color:"#dark.75",height:"(100% - (2 * @suffix-gap))"},vl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=P(e,["onWidthChange","outerGap","children"]),s=co(l,Yo,hl),u=zo(t);return i((function(){u&&u.current&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(Bo,k({},oa(l,{eventProps:!0}),{styles:s,ref:u,style:{"--suffix-gap":no(o).value}},{children:a}),void 0)})),gl=M.jsx("svg",k({xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"}},{children:M.jsx("switch",{children:M.jsx("g",{children:M.jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"},void 0)},void 0)},void 0)}),void 0),ml={"(required)":"(required)","(optional)":"(optional)"},bl={fontWeight:400,preset:"default",color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"},yl={display:"block",fontWeight:600,preset:"default",padding:{"":"0",side:"(1x - 1bw) 0"},color:{"":"#dark",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"};var xl=h((function(e,t){var n=(e=Ui(e)).as,r=e.qa,i=e.children,o=e.labelPosition,a=void 0===o?"top":o,l=e.isRequired,s=e.necessityIndicator,u=void 0===s?null!=l?"icon":null:s,c=e.includeNecessityIndicatorInAccessibilityName,d=void 0!==c&&c,p=e.htmlFor,f=e.isDisabled,h=e.validationState,v=e.for,g=e.onClick,m=P(e,["as","qa","children","labelPosition","isRequired","necessityIndicator","includeNecessityIndicatorInAccessibilityName","htmlFor","isDisabled","validationState","for","onClick"]),b=Si(t),y=Mi("Label",m),x=co(m,Yo,k(k({},yl),y)),w=function(e){return ml[e]},S=w(l?"(required)":"(optional)"),E=M.jsx("span",k({"aria-label":d?w("(required)"):void 0},{children:gl}),void 0);return M.jsx(Bo,k({as:n||"label",qa:r||"Label"},oa(m),{onClick:g,ref:b,styles:x,htmlFor:v||p,mods:{side:"side"===a,disabled:f,invalid:"invalid"===h,valid:"valid"===h}},{children:"string"!=typeof i?i:M.jsxs(M.Fragment,{children:[i,("label"===u||"icon"===u&&l)&&" ","label"===u&&M.jsx("span",k({"aria-hidden":d?void 0:l},{children:S}),void 0),"icon"===u&&l&&E]},void 0)}),void 0)}));function wl(e){if("virtual"===el()){let t=document.activeElement;sn((()=>{document.activeElement===t&&document.contains(e)&&nn(e)}))}else nn(e)}function Sl(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Sl(e.parentElement,e))}const El=t.createContext(null);let kl=null,Pl=new Map;function Tl(e){let{children:n,contain:o,restoreFocus:l,autoFocus:s}=e,u=a(),c=a(),d=a([]),p=r(El),f=null==p?void 0:p.scopeRef;Wt((()=>{let e=u.current.nextSibling,t=[];for(;e&&e!==c.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),Wt((()=>(Pl.set(d,f),()=>{d!==kl&&!Fl(d,kl)||f&&!Pl.has(f)||(kl=f),Pl.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);Wt((()=>{let i=e.current;if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==kl)return;let n=document.activeElement,r=e.current;if(!Al(n,r))return;let i=Il(jl(r),{tabbable:!0},r);i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&Dl(o,!0)},a=t=>{!kl||Fl(kl,e)?(kl=e,n.current=t.target):e!==kl||Ll(t.target,e)?e===kl&&(n.current=t.target):n.current?n.current.focus():kl&&Rl(kl.current)},l=t=>{r.current=requestAnimationFrame((()=>{e!==kl||Ll(document.activeElement,e)||(kl=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",o,!1),document.addEventListener("focusin",a,!1),i.forEach((e=>e.addEventListener("focusin",a,!1))),i.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{document.removeEventListener("keydown",o,!1),document.removeEventListener("focusin",a,!1),i.forEach((e=>e.removeEventListener("focusin",a,!1))),i.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,o),function(e,t,n){Wt((()=>{if(!t)return;let r=e.current,i=document.activeElement,o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey)return;let t=document.activeElement;if(!Al(t,r))return;let n=Il(document.body,{tabbable:!0});n.currentNode=t;let o=e.shiftKey?n.previousNode():n.nextNode();if(document.body.contains(i)&&i!==document.body||(i=null),(!o||!Al(o,r))&&i){n.currentNode=i;do{o=e.shiftKey?n.previousNode():n.nextNode()}while(Al(o,r));e.preventDefault(),e.stopPropagation(),o?Dl(o,!0):!function(e){for(let t of Pl.keys())if(Al(e,t.current))return!0;return!1}(i)?t.blur():Dl(i,!0)}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0),t&&i&&Al(document.activeElement,r)&&requestAnimationFrame((()=>{document.body.contains(i)&&Dl(i)}))}}),[e,t,n])}(d,l,o),function(e,n){const r=t.useRef(n);i((()=>{r.current&&(kl=e,Al(document.activeElement,kl.current)||Rl(e.current)),r.current=!1}),[])}(d,s);let h=function(e){return{focusNext(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[0].previousElementSibling,s=Il(jl(n),{tabbable:i},n);s.currentNode=Al(a,n)?a:l;let u=s.nextNode();return!u&&o&&(s.currentNode=l,u=s.nextNode()),u&&Dl(u,!0),u},focusPrevious(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,s=Il(jl(n),{tabbable:i},n);s.currentNode=Al(a,n)?a:l;let u=s.previousNode();return!u&&o&&(s.currentNode=l,u=s.previousNode()),u&&Dl(u,!0),u},focusFirst(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Il(jl(n),{tabbable:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Dl(o,!0),o},focusLast(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Il(jl(n),{tabbable:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Dl(o,!0),o}}}(d);return t.createElement(El.Provider,{value:{scopeRef:d,focusManager:h}},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:u}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}const Cl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Ol=Cl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Cl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Nl=Cl.join(':not([hidden]):not([tabindex="-1"]),');function jl(e){return e[0].parentElement}function Al(e,t){return t.some((t=>t.contains(e)))}function Ll(e,t){for(let n of Pl.keys())if((n===t||Fl(t,n))&&Al(e,n.current))return!0;return!1}function Fl(e,t){let n=Pl.get(t);return!!n&&(n===e||Fl(e,n))}function Dl(e,t){if(void 0===t&&(t=!1),null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{wl(e)}catch(e){}}function Rl(e){let t=e[0].previousElementSibling,n=Il(jl(e),{tabbable:!0},e);n.currentNode=t,Dl(n.nextNode())}function Il(e,t,n){let r=null!=t&&t.tabbable?Nl:Ol,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return null!=t&&null!=(i=t.from)&&i.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&Sl(e)&&(!n||Al(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return null!=t&&t.from&&(i.currentNode=t.from),i}let Ml=t.createContext(null);function _l(e,n){let{children:r}=e,i=_t({},q(e,["children"]),{ref:n});return t.createElement(Ml.Provider,{value:i},r)}let zl=t.forwardRef(_l);function Kl(e,t){let{focusProps:n}=za(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:cl(e.onKeyDown),onKeyUp:cl(e.onKeyUp)}}}(e),l=Yt(n,o),s=function(e){let t=r(Ml)||{};return cn(t,e),q(t,["ref"])}(t),u=e.isDisabled?{}:s,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&t.current.focus(),c.current=!1}),[]),{focusableProps:Yt(_t({},l,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),u)}}var Vl=t.createContext({});const Ul={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Bl(e){void 0===e&&(e={});let{style:t,isFocusable:n}=e,[r,i]=o(!1),{focusProps:a}=za({isDisabled:!n,onFocusChange:i}),l=s((()=>r?t:t?_t({},Ul,t):Ul),[r]);return{visuallyHiddenProps:_t({},a,{style:l})}}function ql(e){let{children:n,elementType:r="div"}=e,i=q(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=Bl(e);return t.createElement(r,Yt(i,o),n)}function Wl(e){return e&&e.__esModule?e:{default:e}}var Gl=D((function(e,t){t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default})),Jl=F(Gl),Hl=D((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0})),$l=D((function(e,t){t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default})),Xl=D((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var n=Hl($l);e.exports=t.default})),Yl=F(Xl),Zl=D((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var n=Hl($l);e.exports=t.default})),Ql=F(Zl),es=D((function(e){function t(){return e.exports=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},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),ts=D((function(e,t){t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default})),ns=D((function(e,t){t.__esModule=!0,t.default=void 0;var n=Hl(ts).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r;function r(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=n,e.exports=t.default})),rs=D((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e),o=(0,r.default)(t),a=t&&t.documentElement,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,n.default)(a,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||a.scrollTop)-(a.clientTop||0),left:l.left+(o.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.height)||0}};var n=Hl(ns),r=Hl($l),i=Hl(Gl);e.exports=t.default})),is=F(rs),os=D((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default})),as=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(r,"ms-"))};var n=Hl(os),r=/^-ms-/;e.exports=t.default})),ls=D((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default})),ss=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(r,"-ms-")};var n=Hl(ls),r=/^ms-/;e.exports=t.default})),us=D((function(e,t){t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,n.default)(t))&&(t="styleFloat");var a=e.currentStyle[t]||null;if(null==a&&o&&o[t]&&(a=o[t]),i.test(a)&&!r.test(t)){var l=o.left,s=e.runtimeStyle,u=s&&s.left;u&&(s.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=l,u&&(s.left=u)}return a}}};var n=Hl(as),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default})),cs=D((function(e,t){t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default})),ds=D((function(e,t){t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var n,r,i,o,a,l,s,u,c,d,p,f=Hl(ts),h="transform";if(t.transform=h,t.animationEnd=i,t.transitionEnd=r,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=a,t.transitionProperty=o,t.animationDelay=p,t.animationTiming=d,t.animationDuration=c,t.animationName=u,f.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var l=i[a];if(l+"TransitionProperty"in n){o="-"+l.toLowerCase(),e=r[l]("TransitionEnd"),t=r[l]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();n=v.prefix,t.transitionEnd=r=v.transitionEnd,t.animationEnd=i=v.animationEnd,t.transform=h=n+"-"+h,t.transitionProperty=o=n+"-transition-property",t.transitionDuration=a=n+"-transition-duration",t.transitionDelay=s=n+"-transition-delay",t.transitionTiming=l=n+"-transition-timing-function",t.animationName=u=n+"-animation-name",t.animationDuration=c=n+"-animation-duration",t.animationTiming=d=n+"-animation-delay",t.animationDelay=p=n+"-animation-timing-function"}var g={transform:h,end:r,property:o,timing:l,delay:s,duration:a};t.default=g})),ps=D((function(e,t){t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default})),fs=D((function(e,t){t.__esModule=!0,t.default=function(e,t,l){var s="",u="",c=t;if("string"==typeof t){if(void 0===l)return e.style[(0,n.default)(t)]||(0,i.default)(e).getPropertyValue((0,r.default)(t));(c={})[t]=l}Object.keys(c).forEach((function(t){var n=c[t];n||0===n?(0,a.default)(t)?u+=t+"("+n+") ":s+=(0,r.default)(t)+": "+n+";":(0,o.default)(e,(0,r.default)(t))})),u&&(s+=ds.transform+": "+u+";");e.style.cssText+=";"+s};var n=Hl(as),r=Hl(ss),i=Hl(us),o=Hl(cs),a=Hl(ps);e.exports=t.default})),hs=F(fs),vs=D((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,n.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==i(e)&&"static"===(0,r.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var n=Hl(Gl),r=Hl(fs);function i(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default})),gs=F(D((function(e,t){t.__esModule=!0,t.default=function(e,t){var s,u={top:0,left:0};"fixed"===(0,l.default)(e,"position")?s=e.getBoundingClientRect():(t=t||(0,i.default)(e),s=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(u=(0,r.default)(t)),u.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,o.default)(t)||0,u.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,n.default)({},s,{top:s.top-u.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:s.left-u.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var n=Hl(es),r=Hl(rs),i=Hl(vs),o=Hl(Xl),a=Hl(Zl),l=Hl(fs);e.exports=t.default})));const ms={top:"top",bottom:"top",left:"left",right:"left"},bs={top:"bottom",bottom:"top",left:"right",right:"left"},ys={top:"left",left:"top"},xs={top:"height",left:"width"},ws={};let Ss="undefined"!=typeof window&&window.visualViewport;function Es(e,t,n,r,i){let o=r.scroll[e],a=r[xs[e]],l=t-i-o,s=t+i-o+n;return l<0?-l:s>a?Math.max(a-s,-l):0}function ks(e){if(ws[e])return ws[e];let[t,n]=e.split(" "),r=ms[t]||"right",i=ys[r];ms[n]||(n="center");let o=xs[r],a=xs[i];return ws[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},ws[e]}function Ps(e,t,n,r,i,o,a,l){let{placement:s,crossPlacement:u,axis:c,crossAxis:d,size:p,crossSize:f}=r,h={};h[d]=e[d],"center"===u?h[d]+=(e[f]-n[f])/2:u!==d&&(h[d]+=e[f]-n[f]),h[d]+=o;let v=e[d]+e[f]/2-n[f],g=e[d]+e[f]/2;if(h[d]=Math.min(Math.max(v,h[d]),g),s===c){const n=l?a[p]:t[p];h[bs[c]]=Math.floor(n-e[c]+i)}else h[c]=Math.floor(e[c]+e[p]+i);return h}function Ts(e,t,n,r,i,o){let{placement:a,axis:l,size:s}=o;return a===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[bs[l]]-i):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[bs[l]]-i)}function Cs(e,t,n,r,i,o,a,l,s,u,c,d){let p=ks(e),{size:f,crossAxis:h,crossSize:v,placement:g,crossPlacement:m}=p,b=Ps(t,l,n,p,u,c,s,d),y=u,x=Ts(l,s,t,i,o+u,p);if(a&&r[f]>x){let e=ks(bs[g]+" "+m),r=Ps(t,l,n,e,u,c,s,d);Ts(l,s,t,i,o+u,e)>x&&(p=e,b=r,y=u)}let w=Es(h,b[h],n[v],l,o);b[h]+=w;let S=function(e,t,n,r,i,o){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(i.top+i.bottom+o)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}(b,l,s,t,i,o);n.height=Math.min(n.height,S),b=Ps(t,l,n,p,y,c,s,d),w=Es(h,b[h],n[v],l,o),b[h]+=w;let E={};return E[h]=t[h]-b[h]+t[v]/2,{position:b,maxHeight:S,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:p.placement}}function Os(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u}=e,c=r.offsetParent||document.body,d="BODY"===c.tagName;const p=window.getComputedStyle(c).position;let f=!!p&&"static"!==p,h=d?is(n):gs(n,c);d||(h.top+=parseInt(hs(n,"marginTop"),10)||0,h.left+=parseInt(hs(n,"marginLeft"),10)||0);let v=is(r),g=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);var m;return v.width+=g.left+g.right,v.height+=g.top+g.bottom,Cs(t,h,v,{top:(m=i).scrollTop,left:m.scrollLeft,width:m.scrollWidth,height:m.scrollHeight},g,o,a,function(e){let t=0,n=0,r=0,i=0,o={};var a,l;return"BODY"===e.tagName?(t=null!=(a=null==Ss?void 0:Ss.width)?a:document.documentElement.clientWidth,n=null!=(l=null==Ss?void 0:Ss.height)?l:document.documentElement.clientHeight,o.top=Yl(Jl(e).documentElement)||Yl(e),o.left=Ql(Jl(e).documentElement)||Ql(e)):(({width:t,height:n,top:r,left:i}=is(e)),o.top=Yl(e),o.left=Ql(e)),{width:t,height:n,scroll:o,top:r,left:i}}(l),"BODY"===l.tagName?is(c):gs(c,l),s,u,f)}const Ns=new WeakMap;let js="undefined"!=typeof window&&window.visualViewport;function As(e){let{direction:t}=vi(),{targetRef:n,overlayRef:r,scrollRef:s=r,placement:u="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:p=("undefined"!=typeof document?document.body:null),offset:f=0,crossOffset:h=0,shouldUpdatePosition:v=!0,isOpen:g=!0,onClose:m}=e,[b,y]=o({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[v,u,r.current,n.current,s.current,c,d,p,f,h,g,t],w=l((()=>{!1!==v&&g&&r.current&&n.current&&s.current&&p&&y(Os({placement:Ls(u,t),overlayNode:r.current,targetNode:n.current,scrollNode:s.current,padding:c,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:h}))}),x);var S;Wt(w,x),Wt((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=w]);let E=a(!1);Wt((()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout((()=>{E.current=!1}),500),w()};return null==js||js.addEventListener("resize",t),()=>{null==js||js.removeEventListener("resize",t)}}),[w]);let k=l((()=>{E.current||m()}),[m,E]);return function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;i((()=>{if(!n)return;let e=e=>{let n=e.target;if(!t.current||!n.contains(t.current))return;let i=r||Ns.get(t.current);i&&i()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}({triggerRef:n,isOpen:g,onClose:m?k:void 0}),{overlayProps:{style:_t({position:"absolute",zIndex:1e5},b.position,{maxHeight:b.maxHeight})},placement:b.placement,arrowProps:{style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:w}}function Ls(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Fs=[];function Ds(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;i((()=>(o&&Fs.push(t),()=>{let e=Fs.indexOf(t);e>=0&&Fs.splice(e,1)})),[o,t]);let c=()=>{Fs[Fs.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,l=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;l.onInteractOutside=n,l.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{ul(e,t)&&l.onInteractOutside&&(l.onInteractOutsideStart&&l.onInteractOutsideStart(e),l.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{l.isPointerDown&&l.onInteractOutside&&ul(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&l.onInteractOutside&&ul(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))},r=e=>{l.ignoreEmulatedMouseEvents=!0,l.onInteractOutside&&l.isPointerDown&&ul(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,l,r])}({ref:t,onInteractOutside:l?e=>{u&&!u(e.target)||(Fs[Fs.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||Fs[Fs.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:d}=nl({isDisabled:!r,onBlurWithin:e=>{u&&!u(e.relatedTarget)||n()}});return{overlayProps:_t({onKeyDown:e=>{"Escape"!==e.key||s||(e.preventDefault(),c())}},d),underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function Rs(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&Ns.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let l=Jt();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?l:null},overlayProps:{id:l}}}const Is="undefined"!=typeof window&&window.visualViewport,Ms=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _s(e){void 0===e&&(e={});let{isDisabled:t}=e;Wt((()=>{if(!t)return xn()?function(){let e,t=0,n=n=>{e=dn(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)},r=n=>{if(e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,i=e.scrollTop,o=e.scrollHeight-e.clientHeight;(i<=0&&r>t||i>=o&&r<t)&&n.preventDefault(),t=r},i=e=>{let t=e.target;t instanceof HTMLInputElement&&!Ms.has(t.type)&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))},o=e=>{let t=e.target;t instanceof HTMLInputElement&&!Ms.has(t.type)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Is&&(Is.height<window.innerHeight?requestAnimationFrame((()=>{Vs(t)})):Is.addEventListener("resize",(()=>Vs(t)),{once:!0}))})))},a=()=>{window.scrollTo(0,0)},l=window.pageXOffset,s=window.pageYOffset,u=Xt(zs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),zs(document.documentElement,"overflow","hidden"),zs(document.body,"marginTop","-"+s+"px"));window.scrollTo(0,0);let c=Xt(Ks(document,"touchstart",n,{passive:!1,capture:!0}),Ks(document,"touchmove",r,{passive:!1,capture:!0}),Ks(document,"touchend",i,{passive:!1,capture:!0}),Ks(document,"focus",o,!0),Ks(window,"scroll",a));return()=>{u(),c(),window.scrollTo(l,s)}}():Xt(zs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),zs(document.documentElement,"overflow","hidden"))}),[t])}function zs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ks(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Vs(e){let t=dn(e);if(t!==document.documentElement&&t!==document.body){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}}const Us=t.createContext(null);function Bs(e){let{children:n}=e,i=r(Us),[a,l]=o(0),u=s((()=>({parent:i,modalCount:a,addModal(){l((e=>e+1)),i&&i.addModal()},removeModal(){l((e=>e-1)),i&&i.removeModal()}})),[i,a]);return t.createElement(Us.Provider,{value:u},n)}function qs(e){let t=r(Us);if(!t)throw new Error("Modal is not contained within a provider");return i((()=>{if((null==e||!e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}}),[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null!=e&&e.isDisabled)}}}var Ws;Ws=JSON.parse('{"dismiss":"تجاهل"}');var Gs;Gs=JSON.parse('{"dismiss":"Отхвърляне"}');var Js;Js=JSON.parse('{"dismiss":"Odstranit"}');var Hs;Hs=JSON.parse('{"dismiss":"Luk"}');var $s;$s=JSON.parse('{"dismiss":"Schließen"}');var Xs;Xs=JSON.parse('{"dismiss":"Απόρριψη"}');var Ys;Ys=JSON.parse('{"dismiss":"Dismiss"}');var Zs;Zs=JSON.parse('{"dismiss":"Descartar"}');var Qs;Qs=JSON.parse('{"dismiss":"Lõpeta"}');var eu;eu=JSON.parse('{"dismiss":"Hylkää"}');var tu;tu=JSON.parse('{"dismiss":"Rejeter"}');var nu;nu=JSON.parse('{"dismiss":"התעלם"}');var ru;ru=JSON.parse('{"dismiss":"Odbaci"}');var iu;iu=JSON.parse('{"dismiss":"Elutasítás"}');var ou;ou=JSON.parse('{"dismiss":"Ignora"}');var au;au=JSON.parse('{"dismiss":"閉じる"}');var lu;lu=JSON.parse('{"dismiss":"무시"}');var su;su=JSON.parse('{"dismiss":"Atmesti"}');var uu;uu=JSON.parse('{"dismiss":"Nerādīt"}');var cu;cu=JSON.parse('{"dismiss":"Lukk"}');var du;du=JSON.parse('{"dismiss":"Negeren"}');var pu;pu=JSON.parse('{"dismiss":"Zignoruj"}');var fu;fu=JSON.parse('{"dismiss":"Descartar"}');var hu;hu=JSON.parse('{"dismiss":"Dispensar"}');var vu;vu=JSON.parse('{"dismiss":"Revocare"}');var gu;gu=JSON.parse('{"dismiss":"Пропустить"}');var mu;mu=JSON.parse('{"dismiss":"Zrušiť"}');var bu;bu=JSON.parse('{"dismiss":"Opusti"}');var yu;yu=JSON.parse('{"dismiss":"Odbaci"}');var xu;xu=JSON.parse('{"dismiss":"Avvisa"}');var wu;wu=JSON.parse('{"dismiss":"Kapat"}');var Su;Su=JSON.parse('{"dismiss":"Скасувати"}');var Eu;Eu=JSON.parse('{"dismiss":"取消"}');var ku;ku=JSON.parse('{"dismiss":"關閉"}');const Pu={"ar-AE":Wl(Ws).default,"bg-BG":Wl(Gs).default,"cs-CZ":Wl(Js).default,"da-DK":Wl(Hs).default,"de-DE":Wl($s).default,"el-GR":Wl(Xs).default,"en-US":Wl(Ys).default,"es-ES":Wl(Zs).default,"et-EE":Wl(Qs).default,"fi-FI":Wl(eu).default,"fr-FR":Wl(tu).default,"he-IL":Wl(nu).default,"hr-HR":Wl(ru).default,"hu-HU":Wl(iu).default,"it-IT":Wl(ou).default,"ja-JP":Wl(au).default,"ko-KR":Wl(lu).default,"lt-LT":Wl(su).default,"lv-LV":Wl(uu).default,"nb-NO":Wl(cu).default,"nl-NL":Wl(du).default,"pl-PL":Wl(pu).default,"pt-BR":Wl(fu).default,"pt-PT":Wl(hu).default,"ro-RO":Wl(vu).default,"ru-RU":Wl(gu).default,"sk-SK":Wl(mu).default,"sl-SI":Wl(bu).default,"sr-SP":Wl(yu).default,"sv-SE":Wl(xu).default,"tr-TR":Wl(wu).default,"uk-UA":Wl(Su).default,"zh-CN":Wl(Eu).default,"zh-TW":Wl(ku).default};function Tu(e){let{onDismiss:n}=e,r=mi(Pu);return t.createElement(ql,null,t.createElement("button",{tabIndex:-1,"aria-label":r("dismiss"),onClick:()=>{n&&n()}}))}let Cu=new WeakMap;function Ou(e){let[t,n]=Dt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,open(){n(!0)},close(){n(!1)},toggle(){n(!t)}}}const Nu=1500;let ju={},Au=0,Lu=!1,Fu=null,Du=null;function Ru(e){void 0===e&&(e={});let{delay:t=Nu}=e,{isOpen:n,open:r,close:o}=Ou(e),l=s((()=>""+ ++Au),[]),u=a(),c=()=>{ju[l]=f},d=()=>{for(let e in ju)e!==l&&(ju[e](!0),delete ju[e])},p=()=>{clearTimeout(u.current),u.current=null,d(),c(),Lu=!0,r(),Fu&&(clearTimeout(Fu),Fu=null),Du&&(clearTimeout(Du),Du=null)},f=e=>{e?(clearTimeout(u.current),u.current=null,o()):u.current||(u.current=setTimeout((()=>{u.current=null,o()}),500)),Fu&&(clearTimeout(Fu),Fu=null),Lu&&(Du&&clearTimeout(Du),Du=setTimeout((()=>{delete ju[l],Du=null,Lu=!1}),500))};return i((()=>()=>{clearTimeout(u.current),ju[l]&&delete ju[l]}),[l]),{isOpen:n,open:e=>{!e&&t>0&&!u.current?(d(),c(),n||Fu||Lu?n||p():Fu=setTimeout((()=>{Fu=null,Lu=!0,p()}),t)):p()},close:f}}function Iu(){}function Mu(){}Mu.resetWarningCache=Iu;var _u=D((function(e){e.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,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:Mu,resetWarningCache:Iu};return n.PropTypes=n,n}()}));var zu=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}});function Ku(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Vu=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Ku(e.className,t):e.setAttribute("class",Ku(e.className&&e.className.baseVal||"",t))}}),Uu=D((function(e,t){t.__esModule=!0,t.default=void 0;t.default={disabled:!1},e.exports=t.default}));D((function(e,t){var n;t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,!(n=_u)||n.__esModule;t.timeoutsShape=null;t.classNamesShape=null}));var Bu=D((function(e,n){var r;n.__esModule=!0,n.default=void 0;var i=((r=t)&&r.__esModule?r:{default:r}).default.createContext(null);n.default=i,e.exports=n.default})),qu=D((function(e,n){n.__esModule=!0,n.default=n.EXITING=n.ENTERED=n.ENTERING=n.EXITED=n.UNMOUNTED=void 0,l(_u);var r=l(t),i=l(x),o=l(Uu),a=l(Bu);function l(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";n.UNMOUNTED=s;var u="exited";n.EXITED=u;var c="entering";n.ENTERING=c;var d="entered";n.ENTERED=d;var p="exiting";n.EXITING=p;var f=function(e){var t,n;function l(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=c):i=d:i=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,l.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:u}:null};var f=l.prototype;return f.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},f.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=p)}this.updateStatus(!1,t)},f.componentWillUnmount=function(){this.cancelNextCallback()},f.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},f.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===c?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},f.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[i.default.findDOMNode(this),r],l=a[0],s=a[1],u=this.getTimeouts(),p=r?u.appear:u.enter;!e&&!n||o.default.disabled?this.safeSetState({status:d},(function(){t.props.onEntered(l)})):(this.props.onEnter(l,s),this.safeSetState({status:c},(function(){t.props.onEntering(l,s),t.onTransitionEnd(p,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(l,s)}))}))})))},f.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.default.findDOMNode(this);t&&!o.default.disabled?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},f.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},f.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},f.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},f.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},f.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(e,i):r.default.cloneElement(r.default.Children.only(n),i))},l}(r.default.Component);function h(){}f.contextType=a.default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=s,f.EXITED=u,f.ENTERING=c,f.ENTERED=d,f.EXITING=p;var v=f;n.default=v})),Wu=F(qu),Gu=R(zu),Ju=R(Vu),Hu=D((function(e,n){n.__esModule=!0,n.default=void 0,l(_u);var r=l(Gu),i=l(Ju),o=l(t),a=l(qu);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=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)}var u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},c=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=i.prototype;return l.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(i+=" "+o),"active"===n&&e&&e.scrollTop,i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))}(e,i))},l.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&u(e,r),i&&u(e,i),o&&u(e,o)},l.render=function(){var e=this.props;e.classNames;var t=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["classNames"]);return o.default.createElement(a.default,s({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(o.default.Component);c.defaultProps={classNames:""},c.propTypes={};var d=c;n.default=d,e.exports=n.default})),$u=D((function(e,n){function r(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var u=i[s][r];l[i[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}function o(e,t,n){return null!=n[t]?n[t]:e.props[t]}n.__esModule=!0,n.getChildMapping=r,n.mergeChildMappings=i,n.getInitialChildMapping=function(e,n){return r(e.children,(function(r){return(0,t.cloneElement)(r,{onExited:n.bind(null,r),in:!0,appear:o(r,"appear",e),enter:o(r,"enter",e),exit:o(r,"exit",e)})}))},n.getNextChildMapping=function(e,n,a){var l=r(e.children),s=i(n,l);return Object.keys(s).forEach((function(r){var i=s[r];if((0,t.isValidElement)(i)){var u=r in n,c=r in l,d=n[r],p=(0,t.isValidElement)(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,t.isValidElement)(d)&&(s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:d.props.in,exit:o(i,"exit",e),enter:o(i,"enter",e)})):s[r]=(0,t.cloneElement)(i,{in:!1}):s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:!0,exit:o(i,"exit",e),enter:o(i,"enter",e)})}})),s}})),Xu=D((function(e,n){n.__esModule=!0,n.default=void 0,o(_u);var r=o(t),i=o(Bu);function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=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)}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},s=function(e){var t,n;function o(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,$u.getInitialChildMapping)(e,r):(0,$u.getNextChildMapping)(e,n,r),firstRender:!1}},s.handleExited=function(e,t){var n=(0,$u.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},s.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),a=this.state.contextValue,s=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.default.createElement(i.default.Provider,{value:a},s):r.default.createElement(i.default.Provider,{value:a},r.default.createElement(t,o,s))},o}(r.default.Component);s.propTypes={},s.defaultProps={component:"div",childFactory:function(e){return e}};var u=s;n.default=u,e.exports=n.default})),Yu=D((function(e,n){n.__esModule=!0,n.default=void 0,a(_u);var r=a(t),i=a(x),o=a(Xu);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.handleLifecycle=function(e,t,n){var o,a=this.props.children,l=r.default.Children.toArray(a)[t];if(l.props[e]&&(o=l.props)[e].apply(o,n),this.props[e]){var s=l.props.nodeRef?void 0:i.default.findDOMNode(this);this.props[e](s)}},l.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),l=a[0],s=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);l.propTypes={};var s=l;n.default=s,e.exports=n.default})),Zu=D((function(e,n){n.__esModule=!0,n.default=n.modes=void 0;var r=l(t);l(_u);var i,o,a=l(Bu);function l(e){return e&&e.__esModule?e:{default:e}}var s={out:"out-in",in:"in-out"};n.modes=s;var u=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},c=((i={})[s.out]=function(e){var t=e.current,n=e.changeState;return r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){n(qu.ENTERING,null)}))})},i[s.in]=function(e){var t=e.current,n=e.changeState,i=e.children;return[t,r.default.cloneElement(i,{in:!0,onEntered:u(i,"onEntered",(function(){n(qu.ENTERING)}))})]},i),d=((o={})[s.out]=function(e){var t=e.children,n=e.changeState;return r.default.cloneElement(t,{in:!0,onEntered:u(t,"onEntered",(function(){n(qu.ENTERED,r.default.cloneElement(t,{in:!0}))}))})},o[s.in]=function(e){var t=e.current,n=e.children,i=e.changeState;return[r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){i(qu.ENTERED,r.default.cloneElement(n,{in:!0}))}))}),r.default.cloneElement(n,{in:!0})]},o),p=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:qu.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.appeared=!0},i.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===qu.ENTERING&&e.mode===s.in?{status:qu.ENTERING}:!t.current||(n=t.current,i=e.children,n===i||r.default.isValidElement(n)&&r.default.isValidElement(i)&&null!=n.key&&n.key===i.key)?{current:r.default.cloneElement(e.children,{in:!0})}:{status:qu.EXITING};var n,i},o.render=function(){var e,t=this.props,n=t.children,i=t.mode,o=this.state,l=o.status,s=o.current,u={children:n,current:s,changeState:this.changeState,status:l};switch(l){case qu.ENTERING:e=d[i](u);break;case qu.EXITING:e=c[i](u);break;case qu.ENTERED:e=s}return r.default.createElement(a.default.Provider,{value:{isMounting:!this.appeared}},e)},i}(r.default.Component);p.propTypes={},p.defaultProps={mode:s.out};var f=p;n.default=f})),Qu=D((function(e,t){t.__esModule=!0,t.config=t.Transition=t.TransitionGroup=t.SwitchTransition=t.ReplaceTransition=t.CSSTransition=void 0;var n=s(Hu);t.CSSTransition=n.default;var r=s(Yu);t.ReplaceTransition=r.default;var i=s(Zu);t.SwitchTransition=i.default;var o=s(Xu);t.TransitionGroup=o.default;var a=s(qu);t.Transition=a.default;var l=s(Uu);function s(e){return e&&e.__esModule?e:{default:e}}t.config=l.default}));function ec(e){var t=e.isOpen;e.placement,e.minOffset,e.minScale;var n=e.children,r=e.container,i=Ui({}).root,o=M.jsx(Qu.CSSTransition,k({in:t,unmountOnExit:!0,timeout:180,classNames:"cube-overlay-transition"},{children:n}),void 0);return w(o,i||r||document.body)}var tc={display:"inline-block",position:"relative",opacity:{"":1,"[disabled]":.4},transition:"theme"},nc=j(j([],N(Yo),!1),N(Ho),!1),rc=h((function(e,t){var n=e.as,r=e.label,i=e.onClick,o=P(e,["as","label","onClick"]),a=o.isDisabled,l=co(o,nc,tc),s=Ei(t),u=sl({isDisabled:a}),c=u.hoverProps,d=u.isHovered,p=dl({isDisabled:a}),f=p.focusProps,h=p.isFocused,v=Kl(o,s).focusableProps;return M.jsx(Bo,k({"data-is-hovered":d&&!a?"":null,"data-is-focused":h&&!a?"":null,"data-is-disabled":a||null,"aria-label":r},Yt(c,f,v,{onClick:i},oa(o,{eventProps:!0})),{tabIndex:o.excludeFromTabOrder||a?-1:0,as:n,styles:l,ref:s}),void 0)})),ic={display:"block"},oc=h((function(e,t){var n=co(e,Yo,ic);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)}));var ac=function(e){var t=e.children,n=e.activeWrap,r=e.crossOffset,o=void 0===r?0:r,l=e.isDisabled,s=e.isMaterial,u=e.offset,c=void 0===u?8:u,p=e.trigger,f=N(d.toArray(t),2),h=f[0],v=f[1],g=Ru(k({delay:750},e)),m=a(null),b=a(null),y=function(e,t,n){let{isDisabled:r,trigger:o}=e,l=Jt(),s=a(!1),u=a(!1),c=()=>{(s.current||u.current)&&t.open(u.current)},d=e=>{s.current||u.current||t.close(e)};i((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&t.close(!0)};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let{hoverProps:p}=sl({isDisabled:r,onHoverStart:()=>{"focus"!==o&&("pointer"===el()?s.current=!0:s.current=!1,c())},onHoverEnd:()=>{"focus"!==o&&(u.current=!1,s.current=!1,d())}}),{pressProps:f}=ja({onPressStart:()=>{u.current=!1,s.current=!1,d(!0)}}),{focusableProps:h}=Kl({isDisabled:r,onFocus:()=>{Qa()&&(u.current=!0,c())},onBlur:()=>{u.current=!1,s.current=!1,d(!0)}},n);return{triggerProps:_t({"aria-describedby":t.isOpen?l:void 0},Yt(h,p,f)),tooltipProps:{id:l}}}({isDisabled:l,trigger:p},g,m),x=y.triggerProps,w=y.tooltipProps,S=As({placement:e.placement||"top",targetRef:m,overlayRef:b,offset:c,crossOffset:o,isOpen:g.isOpen}),E=S.overlayProps,P=S.arrowProps,T=S.placement;return n||"string"!=typeof h?M.jsxs(zl,k({},x,{ref:m},{children:[n?M.jsx(rc,k({onClick:function(e){var t;null===(t=null==e?void 0:e.currentTarget)||void 0===t||t.parentNode.click()}},{children:h}),void 0):h,M.jsx(Vl.Provider,k({value:k({state:g,placement:T,ref:b,overlayProps:E,arrowProps:P,minOffset:"var(--gap)",minScale:"1",isMaterial:s},w)},{children:M.jsx(ec,k({isOpen:g.isOpen,placement:e.placement||"top"},{children:v}),void 0)}),void 0)]}),void 0):(console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),M.jsx(oc,{children:h},void 0))},lc={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},sc={initial:"translate(0px, calc(-1 * var(--overlay-offset)))",top:"translate(0px, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0px)",left:"translate(calc(1 * var(--overlay-offset)), 0px)",bottom:"translate(0px, calc(-1 * var(--overlay-offset)))"},uc=function(e){var t=void 0===e?{}:e,n=t.suffix,r=void 0===n?"":n,i=t.placement,o=void 0===i?"initial":i,a=t.minScale,l=void 0===a?.8:a,s=t.minOffset;return"\n &"+r+" {\n transform: var(--overlay-position);\n transform-origin: "+lc[o]+";\n --overlay-offset: "+(void 0===s?"8px":s)+";\n --overlay-hidden-x-scale: "+("top"===o||"bottom"===o||"initial"===o?"1":l)+";\n --overlay-hidden-y-scale: "+("left"===o||"right"===o?"1":l)+";\n --overlay-translate-visible: translate(0px, 0px);\n --overlay-translate-hidden: "+sc[o]+";\n --overlay-transition: 180ms;\n --overlay-hidden-scale: scale(var(--overlay-hidden-x-scale), var(--overlay-hidden-y-scale));\n --overlay-normal-scale: scale(1, 1);\n }\n\n &.cube-overlay-transition-enter"+r+" {\n opacity: 0;\n transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);\n }\n\n &.cube-overlay-transition-enter-active"+r+" {\n opacity: 1;\n transform: var(--overlay-translate-visible) var(--overlay-normal-scale);\n transition: transform var(--overlay-transition) cubic-bezier(0, .66, 0, .66), opacity var(--overlay-transition) cubic-bezier(0, .66, 0, .66);\n pointer-events: none;\n }\n\n &.cube-overlay-transition-exit"+r+" {\n opacity: 1;\n transform: var(--overlay-translate-visible) var(--overlay-normal-scale);\n }\n\n &.cube-overlay-transition-exit-active"+r+" {\n opacity: 0;\n transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);\n pointer-events: none;\n transition: transform var(--overlay-transition) cubic-bezier(.66, 0, .66, 0), opacity var(--overlay-transition) cubic-bezier(.66, 0, .66, 0);\n }\n"},cc={display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)",whiteSpace:"pre-line"},dc={position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.375x, (-.375x - 1px)) rotate(270deg)",'[data-placement="right"]':"translate(.375x, (-.375x - 1px)) rotate(90deg)"}};var pc=h((function(e,t){var n=r(Vl),i=n.ref,o=n.arrowProps,l=n.state,s=n.overlayProps,u=n.minOffset,d=n.minScale,p=P(n,["ref","arrowProps","state","overlayProps","minOffset","minScale"]),f=a(null);i=i||f;var h=(e=Yt(e,p)).placement,v=void 0===h?"top":h,g=e.isOpen,m=e.tipStyles;e.showIcon;var b=e.isMaterial,y=co(P(e,["placement","isOpen","tipStyles","showIcon","isMaterial"]),Yo,k(k(k({},cc),{pointerEvents:b?"auto":"none"}),Mi("Tooltip",e)));m=k(k(k({},dc),Mi("Tooltip_Tip")),m);var x=function(e,t){let n=tn(e,{labelable:!0}),{hoverProps:r}=sl({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:Yt(n,r,{role:"tooltip"})}}(e,l).tooltipProps;return c(t,(function(){return i?xi(i):null})),"number"==typeof u&&(u+="px"),"number"==typeof d&&(d=String(d)),M.jsxs(Bo,k({},x,s,{css:uc({placement:v,minOffset:u,minScale:d}),styles:y,mods:{open:g},"data-placement":v,ref:i},{children:[e.children,M.jsx(Bo,k({"data-placement":v,styles:m},o),void 0)]}),void 0)}));var fc=function(e){var t=N(o(!1),2),n=t[0],r=t[1],a=e.title,l=e.children,s=e.tooltipStyles,u=e.width,c=P(e,["title","children","tooltipStyles","width"]);return i((function(){r(!0)})),n?M.jsxs(ac,k({},c,{children:[l,M.jsx(pc,k({styles:s},u?{width:u}:null,{children:a}),void 0)]}),void 0):M.jsx(M.Fragment,{children:"children"},void 0)},hc={display:"grid",gridColumns:{"":"1fr","has-sider":"auto 1fr"},gap:{"":"1x","has-sider":"@(column-gap, 1x)"},placeItems:"baseline stretch"},vc={preset:"default",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},fontWeight:400,textAlign:"left",column:{"":1,"has-sider":2},userSelect:"none"};var gc=h((function(e,t){var n=e.as,r=e.labelPosition,i=e.label,o=e.styles,a=e.isRequired,l=e.isDisabled,s=e.labelStyles,u=e.necessityIndicator,c=e.labelProps,d=e.fieldProps,p=e.message,f=e.messageStyles,h=e.Component,v=e.validationState,g=e.requiredMark,m=void 0===g||g,b=e.tooltip,y={"has-sider":"side"===r&&i,invalid:"invalid"===v,valid:"valid"===v};return M.jsxs(Bo,k({as:n||"div",qa:"Field",ref:t,mods:y,styles:k(k({},hc),o)},d,{children:[i&&M.jsxs(xl,k({as:"label"===n?"div":"label",styles:s,labelPosition:r,isRequired:!!m&&a,isDisabled:l,necessityIndicator:u,validationState:v},c,{children:[i,b?M.jsxs(M.Fragment,{children:[" ",M.jsx(fc,k({title:b,activeWrap:!0,width:"initial max-content 40x"},{children:M.jsx(wt,{style:{color:"var(--primary-color)"}},void 0)}),void 0)]},void 0):null]}),void 0),h,p&&!l&&M.jsx(Bo,k({mods:y,styles:k(k({},vc),f),role:"invalid"===v?"alert":void 0},{children:p}),void 0)]}),void 0)})),mc={display:"flex",gap:!0},bc={align:"alignItems",justify:"justifyItems"},yc=h((function(e,t){var n=e.direction?"vertical"===e.direction?"column":"row":e.flow||"row",r=co(e,Yo,k(k({},mc),{flow:n,alignItems:"row"===n?"center":"stretch"}),bc);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:r,ref:t}),void 0)})),xc={display:"grid",position:"relative"},wc=j(j([],N(Wo),!1),N($o),!1),Sc=j(j([],N(Go),!1),["resize"],!1),Ec={display:"block",width:"initial 100% initial",height:"initial initial initial",color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#white",disabled:"#dark.04"},border:{"":!0,focused:!0,valid:"#success-text.50",invalid:"#danger-text.50",disabled:!0},outline:{"":"#purple-03.0",focused:"#purple-03","invalid & focused":"#danger.50","valid & focused":"#success.50"},radius:!0,padding:{"":"(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)",'[data-size="small"]':"(.75x - 1px) (1.5x - 1px)"},fontWeight:400,textAlign:"left",reset:"input",preset:"default",flexGrow:1,margin:0,resize:"none"};var kc=h((function(e,t){var n=(e=xa(e=Ui(e))).qa,r=e.label,i=e.labelPosition,l=void 0===i?"top":i,s=e.labelStyles,u=e.isRequired,d=e.necessityIndicator,p=e.necessityLabel,h=e.validationState,v=e.message,g=e.prefix,m=e.isDisabled,b=e.multiLine;e.autoFocus;var y=e.labelProps,x=e.inputProps,w=e.wrapperProps,S=e.inputRef,E=e.isLoading,T=e.loadingIndicator;e.value;var C=e.inputStyles,O=void 0===C?{}:C,j=e.wrapperStyles,A=void 0===j?{}:j,L=e.suffix,F=e.suffixPosition,D=void 0===F?"before":F,R=e.wrapperRef,I=e.requiredMark,_=void 0===I||I,z=e.tooltip,K=e.rows,V=void 0===K?1:K,U=e.size,B=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","necessityLabel","validationState","message","prefix","isDisabled","multiLine","autoFocus","labelProps","inputProps","wrapperProps","inputRef","isLoading","loadingIndicator","value","inputStyles","wrapperStyles","suffix","suffixPosition","wrapperRef","requiredMark","tooltip","rows","size"]),q=N(o(0),2),W=q[0],G=q[1],J=N(o(0),2),H=J[0],$=J[1],X=co(B,wc),Y=Mi("Input",B);O=co(B,Sc,k(k(k({},Ec),Y),O)),A=k(k({},xc),A),g&&(O.paddingLeft=H+"px"),(h||E||L)&&(O.paddingRight=W+"px");var Z=b?"textarea":"input",Q=dl({isDisabled:m}),ee=Q.isFocused,te=Q.focusProps,ne=sl({isDisabled:m}),re=ne.hoverProps,ie=ne.isHovered,oe=a(null),ae=a(null);S=S||ae,c(t,(function(){return k(k({},wi(oe,S)),{select:function(){(null==S?void 0:S.current)&&S.current.select()},getInputElement:function(){return null==S?void 0:S.current}})}));var le="invalid"===h,se=le?M.jsx(Ft,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),ue=f(se);L="string"==typeof L?M.jsx(oc,k({padding:"1x right"},{children:L}),void 0):L,(null==x?void 0:x.placeholder)||(x||(x={}),x.placeholder=" ");var ce=M.jsxs(Bo,k({ref:R,qa:(n||"TextInput")+"Wrapper",mods:{invalid:le,valid:"valid"===h,loadable:!!T,multiline:b},"data-size":U,styles:A},w,{children:[M.jsx(Bo,k({qa:n||"TextInput",as:Z},Lo(x,te,re),{ref:S,rows:b?V:void 0,mods:{invalid:le,valid:"valid"===h,disabled:m,hovered:ie,focused:ee},"data-size":U,styles:O}),void 0),M.jsx(fl,k({padding:"0 1x 0 1.5x",onWidthChange:$,opacity:!!m&&"@disabled-opacity",placeItems:"center"},{children:"string"==typeof g?M.jsx(oc,k({padding:"1x left"},{children:g}),void 0):g}),void 0),M.jsxs(vl,k({padding:".5x left",onWidthChange:G,opacity:!!m&&"@disabled-opacity"},{children:["before"===D?L:null,M.jsxs(yc,k({gap:!1,padding:"0 "+(L?"1x":"1.5x")+" 0 0"},{children:[h&&!E?ue:null,E&&M.jsx(Ct,{},void 0)]}),void 0),"after"===D?L:null]}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:l,label:r,styles:X,isRequired:u,labelStyles:s,necessityIndicator:d,necessityLabel:p,labelProps:y,isDisabled:m,validationState:h,message:v,requiredMark:_,tooltip:z,Component:ce,ref:oe}),void 0)}));function Pc(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Jt(t);let a=Jt(),l={};return n?(r=r?r+" "+a:a,l={id:a,htmlFor:"label"===o?t:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:un({id:t,"aria-label":i,"aria-labelledby":r})}}function Tc(e){let{description:t,errorMessage:n}=e,{labelProps:r,fieldProps:i}=Pc(e),o=$t(),a=$t();i=Yt(i,{"aria-describedby":[o,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0});let l={},s={};return t&&(l.id=o),n&&(s.id=a),{labelProps:r,fieldProps:i,descriptionProps:l,errorMessageProps:s}}function Cc(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:a,type:l="text",onChange:s=(()=>{})}=e,{focusableProps:u}=Kl(e,t),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:f}=Tc(e),h=tn(e,{labelable:!0});const v={type:l,pattern:e.pattern};return{labelProps:c,inputProps:Yt(h,"input"===n&&v,_t({disabled:r,readOnly:o,"aria-required":i||void 0,"aria-invalid":"invalid"===a||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>s(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput},u,d)),descriptionProps:p,errorMessageProps:f}}function Oc(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var Nc=Object.assign(h((function(e,t){e=Ui(e);var n=a(null),r=Cc(e,n),i=r.labelProps,o=r.inputProps;return M.jsx(kc,k({},e,{labelProps:i,inputProps:o,ref:t,inputRef:n}),void 0)})),{cubeInputType:"Text"});function jc(e,t){let n,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:l,onPressChange:s,preventFocusOnPress:u,onClick:c,href:d,target:p,rel:f,type:h="button"}=e;n="button"===r?{type:h,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===r&&i?void 0:d,target:"a"===r?p:void 0,type:"input"===r?h:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?f:void 0};let{pressProps:v,isPressed:g}=ja({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:o,isDisabled:i,preventFocusOnPress:u,ref:t}),{focusableProps:m}=Kl(e,t),b=Yt(m,v);return b=Yt(b,tn(e,{labelable:!0})),{isPressed:g,buttonProps:Yt(n,b,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{c&&(c(e),console.warn("onClick is deprecated, please use onPress"))}})}}var Ac={propNames:new Set(["onMouseEnter","onMouseLeave"])};function Lc(e,t){var n=document.createElement("a");n.href=e,t&&(n.target=!0===t?"_blank":t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Fc(e){var t=e&&"string"==typeof e&&e.startsWith("!"),n=e&&"string"==typeof e&&e.startsWith("@");return{newTab:t,nativeRoute:n,href:e&&"string"==typeof e?t||n?e.slice(1):e:void 0}}var Dc={reset:"button",position:"relative",margin:0,fontFamily:"var(--font)",fontWeight:"inherit",border:0,padding:0,outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"pointer"},Rc=j(j([],N(Yo),!1),N(Ho),!1),Ic=h((function(e,t){var n=e.to,i=e.as,o=e.htmlType,a=e.label,s=e.theme,u=e.css,c=e.mods,d=e.onPress,p=P(e,["to","as","htmlType","label","theme","css","mods","onPress"]);i=n?"a":i||"button";var f=r(Ki).router,h=p.isDisabled,v=Fc(n),g=v.newTab,m=v.href,b=g?"_blank":void 0,y=Ei(t),x=co(p,Rc,Dc),w=l((function(e){!function(e,t,n,r){var i=Fc(n),o=i.newTab,a=i.nativeRoute,l=i.href;if(null==r||r(e),n)if(e.shiftKey||e.metaKey||o)Lc(l,!0);else{if(a)Lc(l||window.location.href);else if(l&&l.startsWith("#")){var s=l.slice(1),u=document.getElementById(s);if(u)return void u.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}t?t.push(l):l&&(window.location.href=l)}}(e,f,n,d)}),[f,n,d]),S=jc(k(k({},p),{onPress:w}),y),E=S.buttonProps,T=S.isPressed,C=sl({isDisabled:h}),O=C.hoverProps,N=C.isHovered,j=dl({isDisabled:h},!0),A=j.focusProps,L=j.isFocused,F=n?{onClick:function(e){e.preventDefault()}}:{};return M.jsx(Bo,k({mods:k({hovered:N&&!h,pressed:T&&!h,focused:L&&!h,disabled:h},c),"aria-label":a,"data-theme":s},Yt(E,O,A,F,oa(p,Ac)),{type:o||"button",rel:"a"===i&&g?'rel="noopener noreferrer"':void 0,ref:y,as:i,isDisabled:h,styles:x,target:b,href:m,css:u}),void 0)}));var Mc={primary:{border:{"":"#clear",pressed:"#purple-text"},fill:{hovered:"#purple-text","pressed | !hovered":"#purple","[disabled]":"#dark.04"},color:{"":"#white","[disabled]":"#dark.30"}},default:{border:{"":"#clear",pressed:"#purple.30"},fill:{"":"#purple.10",hovered:"#purple.16",pressed:"#purple.10","[disabled]":"#dark.04"},color:{"":"#purple","[disabled]":"#dark.30"}},clear:{border:{"":"#clear",pressed:"#purple-text.10"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10","[disabled]":"#purple.0"},color:{"":"#purple-text","[disabled]":"#dark.30"}},outline:{border:{"":"#purple.30",pressed:"#purple-text.10","[disabled]":"#dark.12"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10","[disabled]":"#purple.0"},color:{"":"#purple-text","[disabled]":"#dark.30"}},link:{fontWeight:500,padding:"0",radius:{"":"0",focused:!0},fill:"#clear",color:{"":"#purple-text",pressed:"#purple","[disabled]":"#dark.30"},shadow:{"":"0 @border-width 0 0 #purple-03.20",focused:"0 0 0 @outline-width #purple-03.20","pressed | hovered | [disabled]":"0 0 0 0 #purple.20"}},danger:{border:{"":"#clear",pressed:"#danger-text"},fill:{"":"#danger",pressed:"#danger",hovered:"#danger-text","[disabled]":"#dark.04"},color:{"":"#white","[disabled]":"#dark.30"}},neutral:{border:"0",fill:{"":"#dark.0",hovered:"#dark.04","[disabled]":"#dark.04"},color:{"":"#dark.75",hovered:"#dark.75",pressed:"#purple","[disabled]":"#dark.30"},textAlign:"left",padding:"(1x - 1px) (1.5x - 1px)",height:"min (2x + 1lh)"}},_c={primary:{border:{"":"#clear",pressed:"#danger-text"},fill:{hovered:"#danger-text","pressed | !hovered":"#danger","[disabled]":"#dark.04"},color:{"":"#white","[disabled]":"#dark.30"}},default:{border:{"":"#clear",pressed:"#danger.30"},fill:{"":"#danger.05",hovered:"#danger.1",pressed:"#danger.05","[disabled]":"#dark.04"},color:{"":"#danger","[disabled]":"#dark.30"}},clear:{border:{"":"#clear",pressed:"#danger-text.10"},fill:{"":"#danger.0",hovered:"#danger.1",pressed:"#danger.05","[disabled]":"#danger.0"},color:{"":"#danger-text","[disabled]":"#dark.30"}},outline:{border:{"":"#danger.30",pressed:"#danger-text.10","[disabled]":"#dark.04"},fill:{"":"#danger.0",hovered:"#danger.1",pressed:"#danger.05","[disabled]":"#danger.0"},color:{"":"#danger-text","[disabled]":"#dark.30"}},link:k(k({},Mc.link),{color:{"":"#danger-text",pressed:"#danger","[disabled]":"#dark.30"},shadow:{"":"0 @border-width 0 0 #danger.20",focused:"0 0 0 @outline-width #danger.20","pressed | hovered | [disabled]":"0 0 0 0 #danger.20"}}),neutral:{border:"0",fill:{"":"#dark.0",hovered:"#dark.04","[disabled]":"#dark.04"},color:{"":"#dark.75",hovered:"#dark.75",pressed:"#danger","[disabled]":"#dark.30"},textAlign:"left",padding:"(1x - 1px) (1.5x - 1px)",height:"min (2x + 1lh)"}},zc={small:{padding:"(.75x - 1px) (1.5x - 1px)"},default:{padding:"(1.25x - 1px) (2x - 1px)"}},Kc={display:"inline-block",placeItems:"center stretch",radius:!0,fontWeight:500,preset:"default",textDecoration:"none",transition:"theme",whiteSpace:"nowrap","& .anticon.anticon-loading":{transition:"display .2s steps(1, start), margin .2s linear, opacity .2s linear",marginTop:"-7px",marginBottom:"-7px",lineHeight:0}},Vc=h((function(e,t){var n=e.type,r=e.size,i=e.label,o=e.styles,a=e.children,l=e.theme,s=e.css,u=e.icon,c=e.mods,d=P(e,["type","size","label","styles","children","theme","css","icon","mods"]),p=d.isDisabled,f=d.isLoading,h=d.isSelected,v=k(k({},d),{label:i,isLoading:f,isDisabled:p,theme:l,size:r,type:n,icon:u,children:a}),g=Mi("Button",v);return a=a||i,o=k(k(k({},function(e){var t=e.size,n=e.type,r=e.theme,i=e.isLoading,o=e.icon,a=e.children,l=e.label;return a=a||l,k(k(k(k({},zc[t||"default"]),Kc),("danger"===r?_c:Mc)[n||"default"]),!i&&!o||a?null:{padding:"0",width:"(2.5x + 1lh)",height:"(2.5x + 1lh)",display:"grid",placeItems:"center",placeContent:"center"})}(v)),g),o),f&&!a&&o&&(o.fontSize="1em",o.lineHeight="1em"),M.jsx(Ic,k({as:d.to?"a":void 0,css:s},d,{ref:t,isDisabled:f||p,theme:l,"data-type":n,"data-is-loading":f?"":void 0,"data-is-selected":h?"":void 0,"data-size":r,mods:c,styles:o,label:i},{children:u||f?M.jsxs(yc,k({gap:"1x",display:"inline-flex",styles:{verticalAlign:"middle"}},{children:[f?M.jsx(Ct,{},void 0):u,a?M.jsx("div",{children:a},void 0):null]}),void 0):a}),void 0)}));var Uc=Object.assign(h((function(e,t){var n=Ui(k({},e)),r=n.suffix,i=P(n,["suffix"]),s=N(o("password"),2),u=s[0],c=s[1],d=a(null),p=Cc(k(k({},i),{type:u}),d),f=p.labelProps,h=p.inputProps,v=l((function(e){c((function(e){return"password"===e?"text":"password"}))}),[]),g=M.jsxs(M.Fragment,{children:[r,M.jsx(Vc,{type:"neutral",htmlType:"button",onPress:v,placeSelf:"stretch",height:"auto",radius:"right (1r - 1bw)",padding:".5x 1x",width:"auto","aria-label":"Toggle masking",excludeFromTabOrder:!0,icon:"password"===u?M.jsx(at,{},void 0):M.jsx(ut,{},void 0)},void 0)]},void 0);return M.jsx(kc,k({labelProps:f,inputProps:h,ref:t,inputRef:d,inputStyles:{paddingRight:"4x"},type:u,suffixPosition:"after",suffix:g},i),void 0)})),{cubeInputType:"Text"});function Bc(e){let{minValue:t,maxValue:n,step:r,formatOptions:u,value:c,defaultValue:d,onChange:p,locale:f,isDisabled:h,isReadOnly:v}=e,[g,m]=Dt(c,isNaN(d)?NaN:d,p),[b,y]=o((()=>isNaN(g)?"":new On(f,u).format(g))),x=s((()=>new An(f,u)),[f,u]),w=s((()=>x.getNumberingSystem(b)),[x,b]),S=s((()=>new On(f,_t({},u,{numberingSystem:w}))),[f,u,w]),E=s((()=>S.resolvedOptions()),[S]),k=l((e=>isNaN(e)?"":S.format(e)),[S]),P=isNaN(r)?1:r;"percent"===E.style&&isNaN(r)&&(P=.01),i((()=>{y(k(g))}),[g,f,u]);let T=s((()=>x.parse(b)),[x,b]),C=a(0);C.current=T;let O=(e,r)=>{let i=C.current;if(isNaN(i)){return Rt(isNaN(r)?0:r,t,n,P)}{let r=Rt(i,t,n,P);return"+"===e&&r>i||"-"===e&&r<i?r:Rt(qc(e,i,P),t,n,P)}};return{validate:e=>x.isValidPartialNumber(e,t,n),increment:()=>{m((e=>{let n=O("+",t);return n===e&&y(k(n)),n}))},incrementToMax:()=>{null!=n&&m(Rt(n,t,n,P))},decrement:()=>{m((e=>{let t=O("-",n);return t===e&&y(k(t)),t}))},decrementToMin:()=>{null!=t&&m(t)},canIncrement:s((()=>!h&&!v&&(isNaN(T)||isNaN(n)||Rt(T,t,n,P)>T||qc("+",T,P)<=n)),[h,v,t,n,P,T]),canDecrement:s((()=>!h&&!v&&(isNaN(T)||isNaN(t)||Rt(T,t,n,P)<T||qc("-",T,P)>=t)),[h,v,t,n,P,T]),minValue:t,maxValue:n,numberValue:T,setInputValue:y,inputValue:b,commit:()=>{if(!b.length)return m(NaN),void y(void 0===c?"":k(g));if(isNaN(C.current))return void y(k(g));let e;e=isNaN(r)?function(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),Math.min(Math.max(e,t),n)}(C.current,t,n):Rt(C.current,t,n,r),e=x.parse(k(e)),m(e),y(k(void 0===c?e:g))}}}function qc(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const i=t.toString().split("."),o=n.toString().split("."),a=i[1]&&i[1].length||0,l=o[1]&&o[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}let Wc=t.createRef(),Gc=null,Jc=0;function Hc(e,n,r){var i;void 0===n&&(n="assertive"),void 0===r&&(r=7e3),i=t=>t.announce(e,n,r),Wc.current?i(Wc.current):(Gc=document.createElement("div"),Gc.dataset.liveAnnouncer="true",document.body.prepend(Gc),x.render(t.createElement($c,{ref:Wc}),Gc,(()=>i(Wc.current))))}const $c=t.forwardRef(((e,n)=>{let[r,i]=o([]),[a,l]=o([]),s=e=>{e&&"assertive"!==e||i([]),e&&"polite"!==e||l([])},u=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);let r=Jc++;"assertive"===t?i((t=>[...t,{id:r,text:e}])):l((t=>[...t,{id:r,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?i((e=>e.filter((e=>e.id!==r)))):l((e=>e.filter((e=>e.id!==r))))}),n)};return c(n,(()=>({announce:u,clear:s}))),t.createElement(v,null,t.createElement(Xc,{"aria-live":"assertive"},r.map((e=>t.createElement("div",{key:e.id},e.text)))),t.createElement(Xc,{"aria-live":"polite"},a.map((e=>t.createElement("div",{key:e.id},e.text)))))}));function Xc(e){let{children:n,"aria-live":r}=e;return t.createElement(ql,{role:"log","aria-live":r,"aria-relevant":"additions"},n)}var Yc;Yc=JSON.parse('{"Empty":"فارغ"}');var Zc;Zc=JSON.parse('{"Empty":"Изпразни"}');var Qc;Qc=JSON.parse('{"Empty":"Prázdné"}');var ed;ed=JSON.parse('{"Empty":"Tom"}');var td;td=JSON.parse('{"Empty":"Leer"}');var nd;nd=JSON.parse('{"Empty":"Άδειο"}');var rd;rd=JSON.parse('{"Empty":"Empty"}');var id;id=JSON.parse('{"Empty":"Vacío"}');var od;od=JSON.parse('{"Empty":"Tühjenda"}');var ad;ad=JSON.parse('{"Empty":"Tyhjä"}');var ld;ld=JSON.parse('{"Empty":"Vide"}');var sd;sd=JSON.parse('{"Empty":"ריק"}');var ud;ud=JSON.parse('{"Empty":"Prazno"}');var cd;cd=JSON.parse('{"Empty":"Üres"}');var dd;dd=JSON.parse('{"Empty":"Vuoto"}');var pd;pd=JSON.parse('{"Empty":"空"}');var fd;fd=JSON.parse('{"Empty":"비어 있음"}');var hd;hd=JSON.parse('{"Empty":"Tuščias"}');var vd;vd=JSON.parse('{"Empty":"Tukšs"}');var gd;gd=JSON.parse('{"Empty":"Tom"}');var md;md=JSON.parse('{"Empty":"Leeg"}');var bd;bd=JSON.parse('{"Empty":"Pusty"}');var yd;yd=JSON.parse('{"Empty":"Vazio"}');var xd;xd=JSON.parse('{"Empty":"Vazio"}');var wd;wd=JSON.parse('{"Empty":"Gol"}');var Sd;Sd=JSON.parse('{"Empty":"Не заполнено"}');var Ed;Ed=JSON.parse('{"Empty":"Prázdne"}');var kd;kd=JSON.parse('{"Empty":"Prazen"}');var Pd;Pd=JSON.parse('{"Empty":"Prazno"}');var Td;Td=JSON.parse('{"Empty":"Tomt"}');var Cd;Cd=JSON.parse('{"Empty":"Boş"}');var Od;Od=JSON.parse('{"Empty":"Пусто"}');var Nd;Nd=JSON.parse('{"Empty":"空"}');var jd;jd=JSON.parse('{"Empty":"空白"}');const Ad={"ar-AE":Wl(Yc).default,"bg-BG":Wl(Zc).default,"cs-CZ":Wl(Qc).default,"da-DK":Wl(ed).default,"de-DE":Wl(td).default,"el-GR":Wl(nd).default,"en-US":Wl(rd).default,"es-ES":Wl(id).default,"et-EE":Wl(od).default,"fi-FI":Wl(ad).default,"fr-FR":Wl(ld).default,"he-IL":Wl(sd).default,"hr-HR":Wl(ud).default,"hu-HU":Wl(cd).default,"it-IT":Wl(dd).default,"ja-JP":Wl(pd).default,"ko-KR":Wl(fd).default,"lt-LT":Wl(hd).default,"lv-LV":Wl(vd).default,"nb-NO":Wl(gd).default,"nl-NL":Wl(md).default,"pl-PL":Wl(bd).default,"pt-BR":Wl(yd).default,"pt-PT":Wl(xd).default,"ro-RO":Wl(wd).default,"ru-RU":Wl(Sd).default,"sk-SK":Wl(Ed).default,"sl-SI":Wl(kd).default,"sr-SP":Wl(Pd).default,"sv-SE":Wl(Td).default,"tr-TR":Wl(Cd).default,"uk-UA":Wl(Od).default,"zh-CN":Wl(Nd).default,"zh-TW":Wl(jd).default};var Ld;Ld=JSON.parse('{"decrease":"خفض {fieldLabel}","increase":"زيادة {fieldLabel}","numberField":"حقل رقمي"}');var Fd;Fd=JSON.parse('{"decrease":"Намаляване {fieldLabel}","increase":"Усилване {fieldLabel}","numberField":"Номер на полето"}');var Dd;Dd=JSON.parse('{"decrease":"Snížit {fieldLabel}","increase":"Zvýšit {fieldLabel}","numberField":"Číselné pole"}');var Rd;Rd=JSON.parse('{"decrease":"Reducer {fieldLabel}","increase":"Øg {fieldLabel}","numberField":"Talfelt"}');var Id;Id=JSON.parse('{"decrease":"{fieldLabel} verringern","increase":"{fieldLabel} erhöhen","numberField":"Nummernfeld"}');var Md;Md=JSON.parse('{"decrease":"Μείωση {fieldLabel}","increase":"Αύξηση {fieldLabel}","numberField":"Πεδίο αριθμού"}');var _d;_d=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var zd;zd=JSON.parse('{"decrease":"Reducir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var Kd;Kd=JSON.parse('{"decrease":"Vähenda {fieldLabel}","increase":"Suurenda {fieldLabel}","numberField":"Numbri väli"}');var Vd;Vd=JSON.parse('{"decrease":"Vähennä {fieldLabel}","increase":"Lisää {fieldLabel}","numberField":"Numerokenttä"}');var Ud;Ud=JSON.parse('{"decrease":"Diminuer {fieldLabel}","increase":"Augmenter {fieldLabel}","numberField":"Champ de nombre"}');var Bd;Bd=JSON.parse('{"decrease":"הקטן {fieldLabel}","increase":"הגדל {fieldLabel}","numberField":"שדה מספר"}');var qd;qd=JSON.parse('{"decrease":"Smanji {fieldLabel}","increase":"Povećaj {fieldLabel}","numberField":"Polje broja"}');var Wd;Wd=JSON.parse('{"decrease":"{fieldLabel} csökkentése","increase":"{fieldLabel} növelése","numberField":"Számmező"}');var Gd;Gd=JSON.parse('{"decrease":"Riduci {fieldLabel}","increase":"Aumenta {fieldLabel}","numberField":"Campo numero"}');var Jd;Jd=JSON.parse('{"decrease":"{fieldLabel}を縮小","increase":"{fieldLabel}を拡大","numberField":"数値フィールド"}');var Hd;Hd=JSON.parse('{"decrease":"{fieldLabel} 감소","increase":"{fieldLabel} 증가","numberField":"번호 필드"}');var $d;$d=JSON.parse('{"decrease":"Sumažinti {fieldLabel}","increase":"Padidinti {fieldLabel}","numberField":"Numerio laukas"}');var Xd;Xd=JSON.parse('{"decrease":"Samazināšana {fieldLabel}","increase":"Palielināšana {fieldLabel}","numberField":"Skaitļu lauks"}');var Yd;Yd=JSON.parse('{"decrease":"Reduser {fieldLabel}","increase":"Øk {fieldLabel}","numberField":"Tallfelt"}');var Zd;Zd=JSON.parse('{"decrease":"{fieldLabel} verlagen","increase":"{fieldLabel} verhogen","numberField":"Getalveld"}');var Qd;Qd=JSON.parse('{"decrease":"Zmniejsz {fieldLabel}","increase":"Zwiększ {fieldLabel}","numberField":"Pole numeru"}');var ep;ep=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var tp;tp=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo numérico"}');var np;np=JSON.parse('{"decrease":"Scădere {fieldLabel}","increase":"Creștere {fieldLabel}","numberField":"Câmp numeric"}');var rp;rp=JSON.parse('{"decrease":"Уменьшение {fieldLabel}","increase":"Увеличение {fieldLabel}","numberField":"Числовое поле"}');var ip;ip=JSON.parse('{"decrease":"Znížiť {fieldLabel}","increase":"Zvýšiť {fieldLabel}","numberField":"Číselné pole"}');var op;op=JSON.parse('{"decrease":"Upadati {fieldLabel}","increase":"Povečajte {fieldLabel}","numberField":"Številčno polje"}');var ap;ap=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var lp;lp=JSON.parse('{"decrease":"Minska {fieldLabel}","increase":"Öka {fieldLabel}","numberField":"Nummerfält"}');var sp;sp=JSON.parse('{"decrease":"{fieldLabel} azalt","increase":"{fieldLabel} arttır","numberField":"Sayı alanı"}');var up;up=JSON.parse('{"decrease":"Зменшити {fieldLabel}","increase":"Збільшити {fieldLabel}","numberField":"Поле номера"}');var cp;cp=JSON.parse('{"decrease":"降低 {fieldLabel}","increase":"提高 {fieldLabel}","numberField":"数字字段"}');var dp;dp=JSON.parse('{"decrease":"縮小 {fieldLabel}","increase":"放大 {fieldLabel}","numberField":"數字欄位"}');const pp={"ar-AE":Wl(Ld).default,"bg-BG":Wl(Fd).default,"cs-CZ":Wl(Dd).default,"da-DK":Wl(Rd).default,"de-DE":Wl(Id).default,"el-GR":Wl(Md).default,"en-US":Wl(_d).default,"es-ES":Wl(zd).default,"et-EE":Wl(Kd).default,"fi-FI":Wl(Vd).default,"fr-FR":Wl(Ud).default,"he-IL":Wl(Bd).default,"hr-HR":Wl(qd).default,"hu-HU":Wl(Wd).default,"it-IT":Wl(Gd).default,"ja-JP":Wl(Jd).default,"ko-KR":Wl(Hd).default,"lt-LT":Wl($d).default,"lv-LV":Wl(Xd).default,"nb-NO":Wl(Yd).default,"nl-NL":Wl(Zd).default,"pl-PL":Wl(Qd).default,"pt-BR":Wl(ep).default,"pt-PT":Wl(tp).default,"ro-RO":Wl(np).default,"ru-RU":Wl(rp).default,"sk-SK":Wl(ip).default,"sl-SI":Wl(op).default,"sr-SP":Wl(ap).default,"sv-SE":Wl(lp).default,"tr-TR":Wl(sp).default,"uk-UA":Wl(up).default,"zh-CN":Wl(cp).default,"zh-TW":Wl(dp).default};function fp(e,t,n){let{id:r,decrementAriaLabel:u,incrementAriaLabel:c,isDisabled:d,isReadOnly:p,isRequired:f,minValue:h,maxValue:v,autoFocus:g,validationState:m,label:b,formatOptions:y,onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T}=e,{increment:C,incrementToMax:O,decrement:N,decrementToMin:j,numberValue:A,commit:L}=t;const F=mi(pp);let D=Jt(r),{focusProps:R}=za({onBlur:()=>{L()}}),{spinButtonProps:I,incrementButtonProps:M,decrementButtonProps:_}=function(e){const t=a();let{value:n,textValue:r,minValue:o,maxValue:s,isDisabled:u,isReadOnly:c,isRequired:d,onIncrement:p,onIncrementPage:f,onDecrement:h,onDecrementPage:v,onDecrementToMin:g,onIncrementToMax:m}=e;const b=mi(Ad),y=()=>clearTimeout(t.current);i((()=>()=>y()),[]);let x=a(!1),w=()=>{x.current=!0},S=()=>{x.current=!1};r=""===r?b("Empty"):(r||""+n).replace("-","−"),i((()=>{x.current&&Hc(r,"assertive")}),[r]);const E=l((e=>{y(),p(),t.current=window.setTimeout((()=>{(isNaN(s)||isNaN(n)||n<s)&&E(60)}),e)}),[p,s,n]),k=l((e=>{y(),h(),t.current=window.setTimeout((()=>{(isNaN(o)||isNaN(n)||n>o)&&k(60)}),e)}),[h,o,n]);return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":r,"aria-valuemin":o,"aria-valuemax":s,"aria-disabled":u||null,"aria-readonly":c||null,"aria-required":d||null,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c))switch(e.key){case"PageUp":if(f){e.preventDefault(),f();break}case"ArrowUp":case"Up":p&&(e.preventDefault(),p());break;case"PageDown":if(v){e.preventDefault(),v();break}case"ArrowDown":case"Down":h&&(e.preventDefault(),h());break;case"Home":g&&(e.preventDefault(),g());break;case"End":m&&(e.preventDefault(),m())}},onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:()=>E(400),onPressEnd:y,onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:()=>k(400),onPressEnd:y,onFocus:w,onBlur:S}}}({isDisabled:d,isReadOnly:p,isRequired:f,maxValue:v,minValue:h,onIncrement:C,onIncrementToMax:O,onDecrement:N,onDecrementToMin:j,value:A,textValue:t.inputValue}),[z,K]=o(!1),{focusWithinProps:V}=nl({isDisabled:d,onFocusWithinChange:K});!function(e,t){let{onScroll:n,isDisabled:r}=e,i=l((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);En(t,"wheel",r?null:i)}({onScroll:l((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?C():e.deltaY<0&&N())}),[N,C]),isDisabled:d||p||!z},n);let U=function(e){void 0===e&&(e={});let{locale:t}=vi();return s((()=>new On(t,e)),[t,e])}(y),B=s((()=>U.resolvedOptions()),[U]).maximumFractionDigits>0,q=isNaN(t.minValue)||t.minValue<0,W="numeric";yn()?q?W="text":B&&(W="decimal"):gn(/Android/)&&(q?W="numeric":B&&(W="decimal"));let G,{labelProps:J,inputProps:H,descriptionProps:$,errorMessageProps:X}=function(e,t,n){let r=a(t);r.current=t,i((()=>{if(!Oc())return;let e=n.current,t=t=>{let n,i=r.current;switch(t.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":n=e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentForward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd+1):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentBackward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart-1)+e.value.slice(e.selectionStart):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":n=e.value.slice(e.selectionStart);break;default:null!=t.data&&(n=e.value.slice(0,e.selectionStart)+t.data+e.value.slice(e.selectionEnd))}null!=n&&i.validate(n)||t.preventDefault()};return e.addEventListener("beforeinput",t,!1),()=>{e.removeEventListener("beforeinput",t,!1)}}),[n,r]);let o=Oc()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:l,inputProps:s,descriptionProps:u,errorMessageProps:c}=Cc(e,n),d=a(null);return{inputProps:Yt(s,{onBeforeInput:o,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;d.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=d.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:l,descriptionProps:u,errorMessageProps:c}}({label:b,autoFocus:g,isDisabled:d,isReadOnly:p,isRequired:f,validationState:m,value:t.inputValue,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:D,type:"text",inputMode:W,onChange:e=>{t.setInputValue(e)},onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T},t,n),Y=Yt(I,H,R,{role:null,"aria-roledescription":xn()?null:F("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),Z=e=>{document.activeElement!==n.current&&("mouse"===e.pointerType?n.current.focus():e.target.focus())},Q=e["aria-label"]||("string"==typeof e.label?e.label:"");Q||(G=null!=e.label?J.id:e["aria-labelledby"]);let ee=Jt(),te=Jt(),ne=Yt(M,{"aria-label":c||F("increase",{fieldLabel:Q}).trim(),id:G&&!c?ee:null,"aria-labelledby":G&&!c?ee+" "+G:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canIncrement,onPressStart:Z}),re=Yt(_,{"aria-label":u||F("decrease",{fieldLabel:Q}).trim(),id:G&&!u?te:null,"aria-labelledby":G&&!u?te+" "+G:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canDecrement,onPressStart:Z});return{groupProps:_t({role:"group","aria-disabled":d,"aria-invalid":"invalid"===m?"true":void 0},V),labelProps:J,inputProps:Y,incrementButtonProps:ne,decrementButtonProps:re,errorMessageProps:X,descriptionProps:$}}var hp={padding:"0 .5x",radius:{"":"0 (1r - 1bw) 0 0",down:"0 0 (1r - 1bw) 0"},preset:"t4",lineHeight:"1em",height:"auto"};function vp(e){return M.jsx(Vc,k({type:"neutral",styles:hp,preventDefault:!0,icon:"up"===e.direction?M.jsx(We,{},void 0):M.jsx(Ue,{},void 0),mods:{up:"up"===e.direction,down:"down"===e.direction}},e),void 0)}var gp=Object.assign(h((function(e,t){var n=!(e=xa(e=Ui(e))).hideStepper,r=vi().locale,i=Bc(k(k({},e),{locale:r})),o=a(null),l=fp(e,i,o),s=l.groupProps,u=l.labelProps,c=l.inputProps,d=l.incrementButtonProps,p=l.decrementButtonProps;return M.jsx(kc,k({},e,{labelProps:u,inputProps:c,ref:t,inputRef:o,wrapperProps:s,suffixPosition:"after",suffix:n?M.jsxs(Bo,k({styles:{display:"grid",gridColumns:"1fr",gridRows:"minmax(1px, 1fr) minmax(1px, 1fr)",flow:"column",placeSelf:"stretch"}},{children:[M.jsx(vp,k({direction:"up"},d),void 0),M.jsx(vp,k({direction:"down"},p),void 0)]}),void 0):null}),void 0)})),{cubeInputType:"Number"}),mp={};function bp(e,t,n){return"Number"===(e=e||"")?{value:null!=t?t:null,onChange:n}:"Text"===e?{value:"string"==typeof t||"number"==typeof t?String(t):"",onChange:n}:"Checkbox"===e?{isSelected:null!=t&&t,isIndeterminate:!1,onChange:n}:"CheckboxGroup"===e?{value:null!=t?t:[],onChange:n}:"ComboBox"===e?{inputValue:null!=t?t:"",onInputChange:n}:"Select"===e?{selectedKey:null!=t?t:null,onSelectionChange:n}:{value:null!=t?t:null,onChange:n}}function yp(e){var t=xa(e),n=t.defaultValue,r=t.type,l=t.id,s=t.idPrefix,u=t.children,c=t.name,p=t.form,h=t.rules,v=t.label,g=t.validateTrigger,m=t.validationState,b=t.necessityLabel,y=t.necessityIndicator,x=t.shouldUpdate,w=t.message,S=t.tooltip,E=!c,T=null!=c?Array.isArray(c)?c.join("."):c:"",C=a(!0),O=N(o(l||(s?s+"_"+T:T)),2),j=O[0],A=O[1];i((function(){var e;return l||E||(e=function(e){if(e){mp[e]||(mp[e]=[]);var t,n=0;do{t=n?e+"_"+n:e,n++}while(mp[e].includes(t));return mp[e].push(t),t}}(j),A(e)),function(){l||function(e,t){mp[e]&&(mp[e]=mp[e].filter((function(e){return e!==t})))}(s?s+"_"+T:T,e)}}),[]);var L=null==p?void 0:p.getFieldInstance(T),F=h&&h.find((function(e){return e.required}));if(i((function(){p&&(L?(L.rules=h,p.forceReRender()):p.createField(T))}),[L]),"function"==typeof u&&(u=u(p)),!u)return null;var D=d.only(u);if(E)return M.jsx(gc,{validationState:m,necessityIndicator:y,necessityLabel:b,isRequired:F,label:v,tooltip:S,message:w,Component:D},void 0);if(!T)return console.error("invalid form name:",T),null;if(!p)return console.error("form field requires declared form instance"),null;r=r||D.type.cubeInputType||"Text";var R,I="Number"===(R=(R=r)||"")||R.includes("Text")?"onBlur":"onChange";if(C.current&&null!=n&&(L||p.createField(T,!1),null==(null==L?void 0:L.value)&&(p.setFieldValue(T,n,!1,!1),L=null==p?void 0:p.getFieldInstance(T))),C.current=!1,!L)return f(D,Lo(D.props,k(k({},bp(r)),{name:T,id:j})));g||(g=I);var _={id:j,name:T,onBlur:function(){"onBlur"===g&&setTimeout((function(){p.validateField(T).catch((function(){}))}))}};null!=y&&(_.necessityIndicator=y),b&&(_.necessityLabel=b),m&&(_.validationState=m),F&&(_.isRequired=!0),v&&(_.label=v),S&&(_.tooltip=S),w&&(_.message=w),L&&L.errors&&L.errors.length&&(m||(_.validationState="invalid"),w||(_.message=L.errors[0])),Object.assign(_,bp(r,null==L?void 0:L.value,(function(e){var t,n=p.getFieldInstance(T);if(x){var r=p.getFieldsValue();if("boolean"==typeof x?!x:!x(r,k(k({},r),(t={},t[T]=e,t))))return}p.setFieldValue(T,e,!0),("onChange"===g||n&&n.errors&&n.errors.length)&&p.validateField(T).catch((function(){}))})));var z=D.props,K=z.onChange,V=z.onSelectionChange,U=P(z,["onChange","onSelectionChange"]);return f(D,Lo(U,_,K?{onChange:K}:{},V?{onSelectionChange:V}:{}))}function xp(e,t,n,r){return e||t||n?k(k(k(k({},e),t),n),r):r}function wp(e){var t=e.name,n=e.tag,i=e.styles,o=e.styleProps,a=e.css,l=e.attrs,s=m[n||"div"]((function(e){return e.css}));return h(t?function(e,u){var c=e.as,d=e.styles,p=e.styleName,f=e.breakpoints,h=e.mods,v=e.qa,g=e.qaVal,m=e.css,b=P(e,["as","styles","styleName","breakpoints","mods","qa","qaVal","css"]),y=(o?o.concat(qo):qo).reduce((function(e,t){return t in b&&(e[t]=b[t],delete b[t]),e}),{}),x=Mi(p||t,b),w=xp(i,x,d,y),S=r(_i),E=qi(f||S);return m=""+("function"==typeof a?a(b):a||"")+("function"==typeof m?m(b):m||"")+(w?No(w,E):""),h&&Object.assign(b,Fo(h)),M.jsx(s,k({as:c||n,"data-qa":v,"data-qaval":g},l,b,{ref:u,css:m}),void 0)}:function(e,t){var u=e.as,c=e.styles,d=e.breakpoints,p=e.mods,f=e.qa,h=e.qaVal,v=e.css,g=P(e,["as","styles","breakpoints","mods","qa","qaVal","css"]),m=(o?o.concat(qo):qo).reduce((function(e,t){return t in g&&(e[t]=g[t],delete g[t]),e}),{}),b=xp(i,null,c,m),y=r(_i),x=qi(d||y);return v=""+("function"==typeof a?a(g):a||"")+("function"==typeof v?v(g):v||"")+(b?No(b,x):""),p&&Object.assign(g,Fo(p)),M.jsx(s,k({as:u||n,"data-qa":f,"data-qaval":h},l,g,{ref:t,css:v}),void 0)})}var Sp=j(j(j([],N(qo),!1),N(Ho),!1),N(Jo),!1),Ep={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},kp=wp({name:"Text",tag:"span",availableMods:["nowrap","ellipsis"],styles:{display:{"":"inline",ellipsis:"block"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),Pp=h((function(e,t){var n=e.as,r=e.qa,i=e.block,o=e.styleName,a=e.ellipsis,l=e.css,s=e.nowrap,u=P(e,["as","qa","block","styleName","ellipsis","css","nowrap"]),c=co(u,Sp,{},Ep);return M.jsx(kp,k({as:n||"span",qa:r||"Text",styleName:o,mods:{nowrap:s,ellipsis:a},block:!(!i&&!a),css:l},oa(u,{eventProps:!0}),{styles:c,ref:t}),void 0)})),Tp=Object.assign(Pp,{Minor:h((function(e,t){return M.jsx(Tp,k({ref:t,color:"#minor"},e),void 0)})),Danger:h((function(e,t){return M.jsx(Tp,k({role:"alert",ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(Tp,k({ref:t,color:"#success-text"},e),void 0)})),Strong:h((function(e,t){return M.jsx(Tp,k({as:"strong",preset:"strong",ref:t,color:"#dark"},e),void 0)})),Emphasis:h((function(e,t){return M.jsx(Tp,k({as:"em",preset:"em",ref:t},e),void 0)})),Selection:h((function(e,t){return M.jsx(Tp,k({ref:t,color:"#dark",fill:"#note.30"},e),void 0)}))}),Cp=j(j([],N(Ho),!1),N(Yo),!1),Op=wp({name:"Title",tag:"h1",styles:{gridArea:"heading",display:"block",color:"#dark",preset:{"":"h6m",'[data-level="1"]':"h1",'[data-level="2"]':"h2",'[data-level="3"]':"h3",'[data-level="4"]':"h4",'[data-level="5"]':"h5",'[data-level="6"]':"h6"},margin:"0",whiteSpace:{"":"initial","nowrap | ellipsis":"nowrap"},textOverflow:"ellipsis",overflow:"hidden",width:"max 100%"},availableMods:["nowrap","ellipsis"],attrs:{"data-qa":"Title"}}),Np=h((function(e,t){var n=e.qa,r=e.as,i=e.styleName,o=e.inline,a=e.nowrap,l=e.ellipsis,s=e.level,u=P(e,["qa","as","styleName","inline","nowrap","ellipsis","level"]),c="h"+(s||1),d=co(u=Ro(u,"heading"),Cp,{},Ep);return M.jsx(Op,k({qa:n||"Title",as:r||c,styleName:i,"data-level":s||1,mods:{nowrap:a,ellipsis:l},inline:o},oa(u,{eventProps:!0}),{styles:d,ref:t}),void 0)})),jp=Object.assign(Np,{Danger:h((function(e,t){return M.jsx(jp,k({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(jp,k({ref:t,color:"#success-text"},e),void 0)}))}),Ap={preset:"p3",color:"#dark.75",display:"block"},Lp=j(j([],N(Yo),!1),N(Ho),!1),Fp=h((function(e,t){var n=co(e,Lp,Ap);return M.jsx(Tp,k({as:"p",qa:"Paragraph"},e,{styles:n,ref:t}),void 0)}));var Dp=Object.assign(h((function(e,t){var n=(e=Ui(e)).autoSize,r=void 0!==n&&n,i=e.isDisabled,o=void 0!==i&&i,s=e.isReadOnly,c=void 0!==s&&s,d=e.isRequired,p=void 0!==d&&d,f=e.onChange,h=e.rows,v=P(e,["autoSize","isDisabled","isReadOnly","isRequired","onChange","rows"]);h=h||3;var g=N(Dt(e.value,e.defaultValue,(function(){})),2),m=g[0],b=g[1],y=a(null),x=l((function(){if(r&&y.current){var e=y.current,t=e.style.alignSelf,n=getComputedStyle(e);e.style.alignSelf="start",e.style.height="auto",e.style.height=e.scrollHeight?"calc("+e.scrollHeight+"px + (2 * var(--border-width)))":parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.lineHeight)*(h||3)+2+"px",e.style.alignSelf=t}}),[y]);u((function(){y.current&&x()}),[x,m,y]);var w=Cc(k(k({},e),{onChange:Xt(f,b),inputElementType:"textarea"}),y),S=w.labelProps,E=w.inputProps;return M.jsx(kc,k({},v,{ref:t,inputRef:y,labelProps:S,inputProps:E,multiLine:!0,isDisabled:o,isReadOnly:c,isRequired:p,rows:h}),void 0)})),{cubeInputType:"Text"}),Rp=h((function(e,t){var n=Ro(e,"buttonGroup"),r=n.styles,i=Mi("ButtonGroup",P(n,["styles"]));return r=r?k(k({},i),r):i,M.jsx(yc,k({gridArea:"buttonGroup",styles:r,ref:t},e),void 0)})),Ip={display:"inline-flex",position:"relative",preset:"t3",padding:".75x 1x",gap:"1x",flow:"row",placeItems:"center start",fill:"#white",border:!0,radius:!0,cursor:"pointer",overflow:"hidden","[Button]":{radius:"round",fill:{"":"#light","hovered | focused | pressed":"#purple-04",disabled:"#light"},color:"#dark",padding:".5x 1x",transition:"fill"},"[Placeholder]":{color:"#dark-02"},"[Value]":{color:"#dark-02"},"[Input]":{position:"absolute",top:"-50px",right:0,bottom:0,left:0,radius:"@content-radius",cursor:"pointer",zIndex:10}};var Mp=h((function(e,t){var n=Ui(e),r=n.id,i=n.name,s=n.qa;n.qaVal;var u=n.onChange,d=n.placeholder,p=n.inputRef,f=n.label,h=n.labelPosition,v=n.isRequired,g=n.necessityIndicator,m=n.necessityLabel,b=n.labelStyles,y=n.labelProps,x=n.isDisabled,w=n.validationState,S=n.message,E=n.requiredMark,T=n.tooltip,C=n.inputStyles,O=P(n,["id","name","qa","qaVal","onChange","placeholder","inputRef","label","labelPosition","isRequired","necessityIndicator","necessityLabel","labelStyles","labelProps","isDisabled","validationState","message","requiredMark","tooltip","inputStyles"]),j=N(o(),2),A=j[0],L=j[1],F=a(null),D=a(null);p=p||D;var R=co(O,Yo);C=k(k(k({},Ip),Mi("FileInput",O)),C);var I=l((function(e){var t=e.target.value;null==u||u(t),L(t)}),[u]);c(t,(function(){return k(k({},wi(F,p)),{select:function(){(null==p?void 0:p.current)&&p.current.select()},getInputElement:function(){return null==p?void 0:p.current}})}));var _=M.jsxs(Ic,k({qa:s||"FileInput",styles:C,isDisabled:x,ref:F,mods:{selected:!!A}},{children:[M.jsx("input",{id:r,name:i,ref:p,onChange:I,"data-element":"Input",type:"file",tabIndex:-1},void 0),M.jsx("div",k({"data-element":"Button"},{children:"Choose file"}),void 0),M.jsx("div",k({"data-element":A?"Value":"Placeholder"},{children:A||d||"No file selected"}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:h,label:f,styles:R,isRequired:v,labelStyles:b,necessityIndicator:g,necessityLabel:m,labelProps:y,isDisabled:x,validationState:w,message:S,requiredMark:E,tooltip:T,Component:_,ref:F}),void 0)}));function _p(e){var t,n,r,i=e.display,o=void 0===i?"block":i,a=e.flow,l=e.gap;if("number"==typeof l&&(l+="px"),l){!0===l&&(l="1.5x");var s=o.includes("grid"),u=o.includes("flex"),c=!!a&&(a.includes("wrap")&&!a.includes("nowrap"));s||null!=a||(a=u?"row":"column");var d=no(l).values;if(l=d.join(" "),s)return{gap:l};var p=u&&a.includes("reverse"),f=l&&!s?p?a.includes("row")?"left":"top":a.includes("row")?"right":"bottom":"",h=p?"margin-left":"margin-right",v=p?"margin-top":"margin-bottom";return c?[(t={},t[h]="calc(-1 * "+(d[1]||d[0])+")",t[v]="calc(-1 * "+d[0]+")",t),(n={$:"& > *"},n[h]=d[1]||d[0],n[v]=d[0],n)]:((r={$:"& > *:not(:last-child)"})["margin-"+f]=l,r)}}function zp(e){var t,n,r=e.display,i=void 0===r?"block":r,o=e.flow;return i.includes("grid")?n="grid-auto-flow":i.includes("flex")&&(n="flex-flow"),n?((t={})[n]=o,t):null}_p.__lookupStyles=["display","flow","gap"],zp.__lookupStyles=["display","flow"];var Kp={input:[{css:"\n-webkit-appearance: none;\nfont-family: inherit;\nfont-weight: inherit;\nword-spacing: initial;\n-webkit-text-fill-color: currentColor;\nbox-sizing: border-box;\nuser-select: auto;\nresize: none;\ntransition: opacity var(--transition) linear;\n"},{$:"::-webkit-search-cancel-button",css:"display: none"},{$:[":-webkit-autofill",":-webkit-autofill:hover",":-webkit-autofill:focus"],css:"\ncaret-color: var(--purple-color);\n-webkit-text-fill-color: var(--purple-color);\n-webkit-box-shadow: 0 0 0px 9999rem var(--white-color) inset;\nbox-shadow: 0 0 0px 9999rem var(--white-color) inset;\nfont-family: inherit;\nfont-size: inherit;\nline-height: inherit;\n"},{$:"[disabled]",css:"\ncolor: inherit;\nbackground: transparent;\n-webkit-opacity: 1;\n"},{$:"::placeholder",css:"\n-webkit-text-fill-color: var(--local-placeholder-color);\ncolor: var(--local-placeholder-color);\nfilter: saturate(.33);\n"},{$:"::-webkit-search-cancel-button",css:"\ndisplay: none;\n-webkit-appearance: none;\n"},{$:":not([disabled])::placeholder",css:"--local-placeholder-color: var(--placeholder-color, rgba(var(--dark-color-rgb), .3));\n"}],button:[{css:"\ntransition: all var(--transition) linear;\nbackground: transparent;\nborder: none;\noutline: none;\nappearance: none;\nposition: relative;\ntouch-action: manipulation;\n-webkit-tap-highlight-color: transparent;\ntext-decoration: none;\n"}]};function Vp(e){var t=e.reset;if(t)return no(t,1).mods.reduce((function(e,t){return Kp[t]&&e.push.apply(e,j([],N(Kp[t]),!1)),e}),[])}function Up(e){var t=e.color;if(!t)return"";!0===t&&(t="currentColor"),t.startsWith("#")&&(t=ro(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{color:t}];return r&&i.push([{"--current-color":"var(--"+r+"-color)","--current-color-rgb":"var(--"+r+"-color-rgb)"}]),i}function Bp(e){var t=e.fill;if(!t)return"";t.startsWith("#")&&(t=no(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{"background-color":t}];return r&&i.push([{$:">*","--context-fill-color":"var(--"+r+"-color)","--context-fill-color-rgb":"var(--"+r+"-color-rgb)"}]),i}Vp.__lookupStyles=["reset"],Up.__lookupStyles=["color"],Bp.__lookupStyles=["fill"];function qp(e){return"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("height",e)}var Wp=qp("stretch")?"stretch":qp("fill-available")?"fill-available":qp("-webkit-fill-available")?"-webkit-fill-available":qp("-moz-fill-available")?"-moz-fill-available":null,Gp=["max-content","min-content","fit-content","stretch"];function Jp(e){var t="min-"+e,n="max-"+e;return function(r){var i,o,a;if(!r)return"";"number"==typeof r&&(r+="px"),r=String(r);var l=((i={})[e]="auto",i[t]="auto",i[n]="initial",i),s=no(r),u=s.mods,c=s.values;!function(e,t,n){e.forEach((function(e){t.includes(e)&&(n.push(e),t.splice(t.indexOf(e),1))}))}(Gp,u,c),c.forEach((function(t,n){"stretch"===t&&(c[n]=Wp||("height"===e?"100vh":"100vw"))}));var d=!1;try{for(var p=O(u),f=p.next();!f.done;f=p.next()){switch(f.value){case"min":l[t]=c[0]||"var(--gap)",d=!0;break;case"max":l[n]=c[0]||"100%",d=!0}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return d&&u.length||(2===c.length?(l[t]=c[0],l[n]=c[1]):3===c.length?(l[t]=c[0],l[e]=c[1],l[n]=c[2]):l[e]=c[0]||"auto"),l}}var Hp=Jp("width");function $p(e){var t=e.width;return Hp(t)}$p.__lookupStyles=["width"];var Xp=Jp("height");function Yp(e){var t=e.height;return Xp(t)}Yp.__lookupStyles=["height"];var Zp="var(--radius)",Qp="var(--leaf-sharp-radius)";function ef(e){var t=e.radius;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1r");var n=no(t,1),r=n.mods,i=n.values;if(r.includes("round")?i=["9999rem"]:r.includes("ellipse")?i=["50%"]:i.length||(i=[Zp]),r.includes("leaf"))i=[i[1]||Qp,i[0]||Zp,i[1]||Qp,i[0]||Zp];else if(r.includes("backleaf"))i=[i[0]||Zp,i[1]||Qp,i[0]||Zp,i[1]||Qp];else if(r.length){var o=["0","0","0","0"],a=!1;Gi.forEach((function(e,t){r.includes(e)&&(a=!0,o[t]=i[0]||Zp,o[(t+1)%4]=i[0]||Zp)})),a&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}ef.__lookupStyles=["radius"];var tf=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function nf(e){var t=e.border;if(t||0===t){!0===t&&(t="1bw");var n=no(String(t)),r=n.values,i=n.mods,o=n.color,a=so(i,Gi),l=so(i,tf),s=[r[0]||"var(--border-width)",l[0]||"solid",o||"var(--border-color)"].join(" ");return a.length?i.reduce((function(e,t){return e["border-"+t]=s,e}),{}):{border:s}}}function rf(e){var t=e.shadow;if(!t)return"";!0===t&&(t="0 5px 15px #shadow");var n=no(t),r=n.values,i=n.mods,o=n.color||"var(--shadow-color)";return{"--local-shadow-box-shadow":j(j([i[0]||""],N(r),!1),[o],!1).join(" ")}}function of(e){var t=e.padding,n=e.paddingBlock,r=e.paddingInline,i=e.paddingTop,o=e.paddingRight,a=e.paddingBottom,l=e.paddingLeft;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var s=no(t),u=s.values,c=so(s.mods,Gi);u.length||(u=["var(--gap)"]),c.length||(c=Gi);var d=[i,o,a,l];return c.reduce((function(e,t){var i=Gi.indexOf(t);return(i%2&&null==r||!(i%2)&&null==n)&&null==d[i]&&(e["padding-"+t]=u[i]||u[i%2]||u[0]),e}),{})}function af(e){var t=e.paddingBlock,n=e.paddingTop,r=e.paddingBottom;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var i=no(t).values;i.length||(i=["var(--gap)"]);var o={};return null==n&&(o["padding-top"]=i[0]),null==r&&(o["padding-bottom"]=i[1]||i[0]),o}function lf(e){var t=e.paddingInline,n=e.paddingLeft,r=e.paddingRight;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var i=no(t).values;i.length||(i=["var(--gap)"]);var o={};return null==n&&(o["padding-left"]=i[0]),null==r&&(o["padding-right"]=i[1]||i[0]),o}function sf(e){var t=e.preset,n=e.fontSize,r=e.lineHeight,i=e.textTransform,o=e.letterSpacing,a=e.fontWeight,l=e.fontStyle,s=e.font;if(!t)return"";!0===t&&(t="");var u=no(t).mods[0]||"default",c={};return n||(c["font-size"]=c["--font-size"]="var(--"+u+"-font-size, var(--initial-font-size, inherit))"),r||(c["line-height"]=c["--line-height"]="var(--"+u+"-line-height, var(--initial-line-height, 1.5))"),o||(c["letter-spacing"]=c["--letter-spacing"]="var(--"+u+"-letter-spacing, var(--initial-letter-spacing, 0))"),a||(c["font-weight"]=c["--font-weight"]="var(--"+u+"-font-weight, var(--initial-font-weight, 400))"),l||(c["font-style"]=c["--font-style"]="var(--"+u+"-font-style, var(--initial-font-style, normal))"),i||(c["text-transform"]=c["--text-transform"]="var(--"+u+"-text-transform, var(--initial-text-transform, none))"),s||(c["font-family"]=c["--font-family"]="var(--"+u+"-font-family, var(--font))"),c}function uf(e){var t=e.fontStyle;return!0===t&&(t="italic"),"inherit"!==t&&(t=t?"italic":"normal"),{"font-style":t}}function cf(e){var t=e.margin;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=no(t),r=n.values,i=so(n.mods,Gi);return i.length?i.reduce((function(e,t){var n=Gi.indexOf(t);return e["margin-"+t]=r[n]||r[n%2]||r[0],e}),{}):{margin:r.join(" ")}}function df(e){var t=e.font;if(null==t||!1===t)return null;var n="monospace"===t?"var(--monospace-font)":!0===t?"var(--font)":t+", var(--font)";return{"font-family":n,"--font-family":n}}function pf(e){var t=e.outline;if(!t&&0!==t)return"";!0===t&&(t="1ow");var n=no(String(t)),r=n.values,i=n.color;return{"--local-outline-box-shadow":(n.mods.includes("inset")?"inset ":"")+"0 0 0 "+(r[0]||"var(--outline-width)")+" "+(i||"var(--outline-color)")}}nf.__lookupStyles=["border"],rf.__lookupStyles=["shadow"],of.__lookupStyles=["padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline"],af.__lookupStyles=["paddingBlock","paddingTop","paddingBottom"],lf.__lookupStyles=["paddingInline","paddingLeft","paddingRight"],sf.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"],uf.__lookupStyles=["fontStyle"],cf.__lookupStyles=["margin"],df.__lookupStyles=["font"],pf.__lookupStyles=["outline"];var ff={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],preset:["font-size","line-height","letter-spacing","font-weight","font-style"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]};function hf(e){var t=e.transition;if(t){var n=no(t).all;if(n){var r=[],i=[];n.forEach((function(e){","===e?r&&(i.push(r),r=[]):r.push(e)})),r&&i.push(r);var o={};return i.forEach((function(e){var t=e[0],n=e[1],r=e[2],i=e[3];(ff[t]||[t]).forEach((function(e){o[e]=[t,r,n,i]}))})),{transition:Object.entries(o).map((function(e){var t=N(e,2),n=t[0],r=N(t[1],4),i=r[0],o=r[1],a=r[2],l=r[3];return n+" "+(a||function(e){return"var(--"+e+"-transition, var(--transition))"}(i))+" "+(o||"linear")+" "+(l||"0s")})).join(", ")}}}}hf.__lookupStyles=["transition"];var vf={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function gf(e){var t=e.groupRadius,n=e.flow;if(!t)return"";!0===t&&(t="1r");var r=no(t),i=r.values,o=r.mods;n=n||"row";var a=o.includes("reverse"),l=i[0];l||(l=o.includes("round")?"9999rem":o.includes("ellipse")?"50%":"var(--radius)");var s=vf[n][a?1:0].replace(/\*/g,l),u=vf[n][a?0:1].replace(/\*/g,l);return[{$:">:first-child:not(:last-child)","border-radius":s,"--local-radius":s},{$:">:last-child:not(:first-child)","border-radius":u,"--local-radius":u},{$:">:last-child:first-child","border-radius":l,"--local-radius":l},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}function mf(e){var t=mf.__lookupStyles.reduce((function(t,n){return e[n]&&t.push("var(--local-"+n+"-box-shadow)"),t}),[]);return t.length?{"box-shadow":t.join(", ")}:""}function bf(e){var t=e.styledScrollbar;return null==t?null:t?[{"--local-scrollbar-thumb-color":"var(--scrollbar-thumb-color, rgba(var(--text-color-rgb), .5))","--local-scrollbar-border-color":"var(--scrollbar-border-color, var(--border-width))","--local-scrollbar-bg-color":"var(--scrollbar-bg-color, var(--grey-light-color))"},{$:"::-webkit-scrollbar",width:"calc(var(--gap) * 1.5)",height:"calc(var(--gap) * 1.5)"},{$:"::-webkit-scrollbar-track","background-color":"var(--local-scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--local-scrollbar-thumb-color)","border-radius":"calc(var(--radius) * 1.5)",border:"var(--outline-width) solid transparent","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"transparent"},{"scrollbar-width":"thin","scrollbar-color":"var(--local-scrollbar-bg-color) var(--local-scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}function yf(e){var t=e.display;return{display:e.hide?"none":t}}gf.__lookupStyles=["groupRadius","flow"],mf.__lookupStyles=["outline","shadow"],bf.__lookupStyles=["styledScrollbar"],yf.__lookupStyles=["display","hide"];var xf=function(e){return"number"==typeof e?e+"px":e},wf=function(e){if("number"==typeof e)return"minmax(1px, 1fr) ".repeat(e).trim()},Sf=function(e){if("number"==typeof e)return"auto ".repeat(e).trim()};function Ef(e){return null}function kf(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&t.Children.count(e.children)>0)}Po("fontSize"),Po("lineHeight"),Po("fontWeight"),Po("fontStyle"),Po("letterSpacing"),Po("textTransform"),Po("fontFamily"),Po("paddingTop"),Po("paddingRight"),Po("paddingBottom"),Po("paddingLeft"),Po("top","top",xf),Po("right","right",xf),Po("bottom","bottom",xf),Po("left","left",xf),Po("gridAreas","grid-template-areas"),Po("gridColumns","grid-template-columns",wf),Po("gridRows","grid-template-rows",Sf),Po("gridTemplate","grid-template",(function(e){if("string"==typeof e)return e.split("/").map((function(e,t){return(t?wf:Sf)(e)})).join("/")})),[yf,hf,Vp,Bp,$p,cf,_p,zp,Up,Yp,ef,nf,rf,of,af,lf,sf,mf,pf,df,uf,gf,bf].forEach((function(e){return ko(e)})),Ef.getCollectionNode=function*(e,n){let{childItems:r,title:i,children:o}=e,a=e.title||e.children,l=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";l||null!=n&&n.suppressTextValueWarning||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:a,textValue:l,"aria-label":e["aria-label"],hasChildNodes:kf(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(i){let e=[];t.Children.forEach(o,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Pf=Ef;class Tf{constructor(){this.context=void 0,this.cache=new WeakMap}build(e,t){return this.context=t,Cf((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:r}=e;if("function"==typeof n){if(!r)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];t.Children.forEach(n,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return""+r+t.key;let i=t.value;if(null!=i){var o;let e=null!=(o=i.key)?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?r+"."+t.index:"$."+t.index}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,n,r,i){let o=e.element;if(!o&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=i?i.key:null,void(yield t);o=n.renderer(e.value)}if(t.isValidElement(o)){let t=o.type;if("function"!=typeof t&&"function"!=typeof t.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw new Error("Unknown element <"+e+"> in collection.")}let a=t.getCollectionNode(o.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let t=s.value;e.index=l;let u=t.key;u||(u=t.element?null:this.getKey(o,e,n,r));let c=[...this.getFullNode(_t({},t,{key:u,index:l,wrapper:Of(e.wrapper,t.wrapper)}),this.getChildState(n,t),r?""+r+o.key:o.key,i)];for(let n of c){if(n.value=t.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error("Unsupported type <"+Nf(n.type)+"> in <"+Nf(i.type)+">. Only <"+Nf(e.type)+"> is supported.");l++,yield n}s=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Cf((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=""+l.key+r.key),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}}function Cf(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function Of(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Nf(e){return e[0].toUpperCase()+e.slice(1)}const jf=new WeakMap;function Af(e){let t=jf.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Af(n.childNodes):t++;return jf.set(e,t),t}var Lf={display:"grid",flow:"row",gap:"@(column-gap, 0)"},Ff={align:"alignItems",justify:"justifyItems",template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},Df=h((function(e,t){var n=co(e,Yo,Lf,Ff);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Rf={display:"flex",flow:"row"},If={align:"alignItems",justify:"justifyItems"},Mf=h((function(e,t){var n=co(e,Yo,Rf,If);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),_f=h((function(e,t){return M.jsx(Vc,k({type:"link"},e,{ref:t}),void 0)})),zf={display:"block",flow:"column"},Kf=Yo,Vf=h((function(e,t){var n=co(e,Kf,zf);return M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Uf={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-02":"149, 146, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"239, 64, 74",danger:"255, 100, 109","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5"};function Bf(e,t){return void 0===t&&(t=1),"rgba("+Uf[e]+", "+t+")"}var qf={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px",transition:"120ms","clear-color":"transparent","border-color":Bf("dark",.1),"shadow-color":Bf("dark-03",.1),"draft-color":Bf("dark",.2),"minor-color":Bf("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":Bf("note",.1),"note-text-color":Bf("dark",.65),"danger-bg-color":Bf("danger",.05),"danger-bg-hover-color":Bf("danger",.1),"primary-1":Bf("purple",.9),"primary-2":Bf("purple",.8),"primary-3":Bf("purple",.7),"primary-4":Bf("purple",.6),"primary-5":Bf("purple",.5),"primary-6":Bf("purple",.4),"primary-7":Bf("purple",.3),"primary-8":Bf("purple",.2),"primary-9":Bf("purple",.1),"primary-10":Bf("purple",0),"dark-75-color":Bf("dark",.75),"primary-color":Bf("purple"),"pink-8-color":Bf("pink",.2),"pink-9-color":Bf("pink",.1),"disabled-color":Bf("dark-01",.25),"disabled-text-color":Bf("dark-01",.25),"disabled-bg":Bf("dark-05",.2),"disabled-bg-color":Bf("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"20px","text-letter-spacing":"0.02em","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0.01em","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0.02em","h5-font-weight":"700","h5s-font-size":"16px","h5s-line-height":"22px","h5s-letter-spacing":"0.02em","h5s-font-weight":"600","h5m-font-size":"16px","h5m-line-height":"22px","h5m-letter-spacing":"0.02em","h5m-font-weight":"500","h6-font-size":"14px","h6-line-height":"20px","h6-font-weight":"700","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0.01em","t2-font-weight":"400","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0.02em","t3-font-weight":"400","t3m-font-size":"14px","t3m-line-height":"20px","t3m-letter-spacing":"0.015em","t3m-font-weight":"500","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0.025em","t4-font-weight":"400","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0.02em","t4m-font-weight":"500","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0.01em","p2-font-weight":"400","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0.02em","p3-font-weight":"400","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0.025em","p4-font-weight":"400","tag-font-size":"12px","tag-line-height":"12px","tag-letter-spacing":"0.02em","tag-font-weight":"500","strong-font-size":"inherit","strong-line-height":"inherit","strong-letter-spacing":"inherit","strong-font-family":"inherit","strong-font-style":"inherit","strong-font-weight":600,"em-font-size":"inherit","em-line-height":"inherit","em-letter-spacing":"inherit","em-font-family":"inherit","em-font-style":"italic","em-font-weight":"inherit","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)"};Object.keys(Uf).forEach((function(e){qf[e+"-color"]=Bf(e),qf[e+"-color-rgb"]=Uf[e]}));var Wf,Gf=b(Wf||(Wf=A(["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'],["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'])),(function(e){var t=e.tokens;return Object.entries(k(k({},qf),t)).map((function(e){var t=N(e,2);return"--"+t[0]+": "+t[1]+";"})).join("\n ")}),(function(e){return e.font||"Inter"}),(function(e){return e.monospaceFont+", "||""}),(function(e){var t=e.fonts,n=e.publicUrl;return!1===t?"":function(e){var t=e.publicUrl,n=void 0===t?"":t;return"\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Regular.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Regular.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Medium.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Medium.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url("+n+"/fonts/Inter-SemiBold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-SemiBold.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Bold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Bold.woff) format('woff');\n }\n @font-face {\n font-family: 'Source Code Pro';\n src: url('"+n+"/fonts/SourceCodePro-Regular.woff2') format('woff2'),\n url('"+n+"/fonts/SourceCodePro-Regular.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Regular.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Regular.woff) format('woff');\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Bold.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Bold.woff) format('woff');\n }\n"}({publicUrl:n})})),Jf={display:"block",size:"default",preset:"t3"},Hf=j(j([],N(qo),!1),N(Go),!1),$f=function(e){var t=e.children,n=e.tokens,r=e.fonts,l=e.publicUrl,s=e.router,u=e.font,c=e.monospaceFont,d=P(e,["children","tokens","fonts","publicUrl","router","font","monospaceFont"]),p=a(null),f=N(o(),2),h=f[0],v=f[1];i((function(){h||v(null==p?void 0:p.current)}),[]);var g=co(d,Hf,Jf),m=M.jsx(y,k({disableVendorPrefixes:!0},{children:M.jsxs(Bo,k({ref:p,id:"cube-ui-kit-root",className:"root"},oa(d,{eventProps:!0}),{styles:g},{children:[M.jsx(Gf,{tokens:n,publicUrl:l,fonts:r,font:u,monospaceFont:c},void 0),M.jsx(Bs,{children:t},void 0)]}),void 0)}),void 0);return M.jsx(Vi,k({router:s,root:h},{children:m}),void 0)},Xf=D((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=o[l])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],u=i.util.type(s);"Object"!==u||o[a(s)]?"Array"!==u||o[a(s)]||(o[a(s)]=!0,e(s,n,l,o)):(o[a(s)]=!0,e(s,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),l=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:l,code:n.textContent};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),o&&o.call(u.element)}if(i.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(o&&o.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language));else c(i.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return u(i,i.head,e),l(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function l(e,t,n,r,s,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var v=f[h],g=v.inside,m=!!v.lookbehind,b=!!v.greedy,y=v.alias;if(b&&!v.pattern.global){var x=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,x+"g")}for(var w=v.pattern||v,S=r.next,E=s;S!==t.tail&&!(d&&E>=d.reach);E+=S.value.length,S=S.next){var k=S.value;if(t.length>e.length)return;if(!(k instanceof o)){var P,T=1;if(b){if(!(P=a(w,E,e,m)))break;var C=P.index,O=P.index+P[0].length,N=E;for(N+=S.value.length;C>=N;)N+=(S=S.next).value.length;if(E=N-=S.value.length,S.value instanceof o)continue;for(var j=S;j!==t.tail&&(N<O||"string"==typeof j.value);j=j.next)T++,N+=j.value.length;T--,k=e.slice(E,N),P.index-=E}else if(!(P=a(w,0,k,m)))continue;C=P.index;var A=P[0],L=k.slice(0,C),F=k.slice(C+A.length),D=E+k.length;d&&D>d.reach&&(d.reach=D);var R=S.prev;if(L&&(R=u(t,R,L),E+=L.length),c(t,R,T),S=u(t,R,new o(p,g?i.tokenize(A,g):A,y,A)),F&&u(t,S,F),T>1){var I={cause:p+","+h,reach:D};l(e,t,n,S.prev,E,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var l="";for(var s in o.attributes)l+=" "+s+'="'+(o.attributes[s]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+l+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
33
33
|
/**
|
|
34
34
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
35
35
|
*
|
|
@@ -37,7 +37,7 @@ object-assign
|
|
|
37
37
|
* @author Lea Verou <https://lea.verou.me>
|
|
38
38
|
* @namespace
|
|
39
39
|
* @public
|
|
40
|
-
*/e.exports&&(e.exports=t),void 0!==L&&(L.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",i="loaded",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(o)){a.code="",l.setAttribute(n,r);var u=l.appendChild(document.createElement("CODE"));u.textContent="Loading…";var c=l.getAttribute("data-src"),d=a.language;if("none"===d){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=e[p]||p}s(u,d),s(l,d);var f=t.plugins.autoloader;f&&f.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(l.setAttribute(n,i),u.textContent=h.responseText,t.highlightElement(u)):(l.setAttribute(n,"failed"),h.status>=400?u.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):u.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(o),i=0;n=r[i++];)t.highlightElement(n)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(e,t){var n=e.className;n=n.replace(a," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()})),Yf=wp({name:"CodeBlock",tag:"pre",attrs:{className:"cube-prism-code"},styleProps:Yo});var Zf=h((function(e,t){var n=e.code,r=e.language,o=void 0===r?"javascript":r,a=P(e,["code","language"]);return i((function(){Xf.highlightAll()})),M.jsx(Yf,k({ref:t,className:"cube-prism-code"},a,{children:M.jsx("code",k({className:"language-"+o},{children:n}),void 0)}),void 0)})),Qf=j(j(j([],N(Zo),!1),N(qo),!1),N(Jo),!1),eh={gridArea:"divider",display:"block",height:"1bw 1bw",fill:"#border",border:"0",margin:"0"},th=h((function(e,t){var n=co(e=Ro(e,"divider"),Qf,eh);return M.jsx(Bo,k({as:"hr","data-id":"Divider"},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),nh={display:"contents"},rh=h((function(e,t){var n=zo(t),r=e.children,a=e.columns,s=void 0===a?2:a,u=e.gap,c=void 0===u?"0":u,d=e.width,p=e.initialWidth,f=N(o(d||p||"100vw"),2),h=f[0],v=f[1],g=l((function(){var e,t=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.parentElement;if(t){var r=getComputedStyle(t),i=t.clientWidth-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight);v(i+"px")}}),[n,s,c]);return i((function(){if(!d){var e,t=n&&n.current&&n.current.parentNode;if(t)return Promise.resolve().then((function(){return ib})).then((function(e){return e.ResizeSensor})).then((function(n){e=new n(t,g)})),function(){e&&e.detach()}}}),[g]),i((function(){d||g()}),[g]),M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:k(k({},nh),{"--grid-width":h,"--columns-amount":s,"--column-gap":c,"--column-width":"((@grid-width - (@column-gap * (@columns-amount - 1))) / @columns-amount)"}),ref:n},{children:r}),void 0)})),ih=j(j([],N(Yo),!1),N(Ho),!1),oh=wp({name:"Content",tag:"section",styles:{gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x"},attrs:{"data-id":"Content"}}),ah=h((function(e,t){var n=co(e=Ro(e,"content"),ih);return M.jsx(oh,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),lh=j(j([],N(Yo),!1),N(Ho),!1),sh=wp({name:"Header",tag:"header",styles:{display:"block",gridArea:"header",flow:"column"},attrs:{"data-id":"Header"}}),uh=h((function(e,t){var n=co(e=Ro(e,"header"),lh);return M.jsx(sh,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),ch=j(j([],N(Yo),!1),N(Ho),!1),dh=wp({name:"Footer",styles:{gridArea:"footer",display:"block",flow:"column"},attrs:{"data-id":"Footer"}}),ph=h((function(e,t){var n=co(e=Ro(e,"footer"),ch);return M.jsx(dh,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),fh=[[49,.5],[0,25],[49,49],[98,25]];function hh(e){return"transform: translate("+fh[e][0]+"%, "+fh[e][1]+"%);"}var vh=m.img((function(e){var t=e.index;return"\n display: block;\n position: absolute;\n width: 50%;\n height: 50%;\n\n "+(null!=t?"\n animation-name: dice"+t+";\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-timing-function: ease;\n z-index: 0;\n\n @keyframes dice"+t+" {\n "+(0===t?"\n from {\n "+hh(0)+"\n z-index: 0;\n }\n\n 25% {\n "+hh(0)+"\n z-index: 0;\n }\n\n 50% {\n "+hh(1)+"\n z-index: 0;\n }\n\n 51% {\n z-index: 1;\n }\n\n 75% {\n z-index: 1;\n }\n\n to {\n "+hh(1)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(1===t?"\n from {\n "+hh(1)+"\n z-index: 3;\n }\n\n 25% {\n "+hh(2)+"\n z-index: 3;\n }\n\n 75% {\n "+hh(2)+"\n z-index: 2;\n }\n\n to {\n "+hh(3)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(2===t?"\n from {\n "+hh(3)+"\n z-index: 1;\n }\n\n 50% {\n "+hh(3)+"\n z-index: 0;\n }\n\n 75% {\n "+hh(0)+"\n z-index: 0;\n }\n\n to {\n "+hh(0)+"\n z-index: 0;\n }\n ":"")+"\n }\n ":"")+"\n"})),gh=function(e){return M.jsx(vh,k({role:"presentation",src:"data:image/svg+xml,%3Csvg width='36' height='41' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.899 10.351l-18 10.25L.1 10.25l18-10.25L35.9 10.351z' fill='%23FAFAFF'/%3E%3Cpath d='M18 41L0 30.75l.101-20.5L18 20.5' fill='%23E5E5F6'/%3E%3Cpath d='M36 30.75L18 41V20.6l17.899-10.25L36 30.75z' fill='%23C0C0EA'/%3E%3C/svg%3E",alt:""},e),void 0)},mh={small:32,medium:64,large:96};function yh(e){var t=e.size,n=void 0===t?"medium":t,r=P(e,["size"]),i=mh[n]||n||mh.medium;return M.jsxs(oc,k({role:"img","aria-label":"Loading animation",width:i,height:1.1388888889*i,style:{position:"relative"}},r,{children:[M.jsx(gh,{style:{transform:"translate(0%, 72.5%)"}},void 0),M.jsx(gh,{style:{transform:"translate(98%, 72.5%)"}},void 0),M.jsx(gh,{style:{transform:"translate(49%, 96.5%)"}},void 0),M.jsx(gh,{index:0},void 0),M.jsx(gh,{index:1},void 0),M.jsx(gh,{index:2},void 0)]}),void 0)}var bh,xh={small:3,default:4,large:6},wh=h((function(e,t){var n=e.size,r=e.spinning,i=e.style,o=e.children,a=P(e,["size","spinning","style","children"]),l=n&&xh[n]||n||xh.default;return!1===r?M.jsx(M.Fragment,{children:o},void 0):M.jsx(oc,k({ref:t,role:"img","aria-label":"Loading animation",height:"1em",opacity:".8",style:k({fontSize:8*l,position:"relative"},i||{})},a,{children:M.jsxs("svg",k({xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",display:"inline-block",width:"1em",height:"1em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},{children:[M.jsxs("rect",k({fill:"#7a77ff",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[M.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-2.083333333333333s"},void 0),M.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.5151515151515151s"},void 0)]}),void 0),M.jsxs("rect",k({fill:"#ff6492",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[M.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.325757575757576s"},void 0),M.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.7575757575757576s"},void 0)]}),void 0),M.jsxs("rect",k({fill:"#727290",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[M.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.5681818181818182s"},void 0),M.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"0s"},void 0)]}),void 0)]}),void 0)}),void 0)})),Sh={display:"inline-flex",padding:".75x 1x",gap:"1x",flow:"row",placeItems:"center",fill:"#white",border:!0,fontWeight:400},Eh=m(h((function(e,t){var n=e.onInput,r=P(e,["onInput"]),i=co(r,Wo,Sh),a=N(o(),2),l=a[0],s=a[1],u=N(o(""),2),c=u[0],d=u[1];return M.jsxs(M.Fragment,{children:[M.jsxs(Vc,k({},oa(r,{eventProps:!0}),{styles:i,ref:t},{children:[M.jsx(oc,k({radius:"round",fill:"#purple.10",color:"#dark-02",padding:".5x 1x"},{children:"Choose file"}),void 0),M.jsx(oc,k({color:"#dark-04"},{children:l||"No file selected"}),void 0),M.jsx("input",{type:"file",name:"base64",onInput:function(e){if(e.target){var t=e.target.files[0],r=new FileReader;if(d(""),t)if(t.name.endsWith(".json")){r.onload=function(){var e,i=String(r.result);try{JSON.parse(i),e=btoa(i)}catch(e){return d("Invalid JSON file"),void console.error(e)}n&&n({encoded:e,raw:JSON.parse(i)}),s(t.name)};try{r.readAsText(t)}catch(e){d("Invalid file")}}else d("Incorrect format. JSON file is required")}},accept:".json"},void 0)]}),void 0),c&&M.jsx(Tp.Danger,k({color:"danger"},{children:c}),void 0)]},void 0)})))(bh||(bh=A(["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"],["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"]))),kh={display:"block",flow:"column",radius:"1x",fill:"#white",border:!0,padding:"3x"},Ph=h((function(e,t){var n=co(e,Yo,kh);return M.jsx(Bo,k({role:"region"},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Th={display:"block",fill:"#dark.10",height:"2x",opacity:".35"},Ch=h((function(e,t){var n=e.size,r=void 0===n?"2x":n,i=e.circle,o=P(e,["size","circle"]),a=co(o,Yo,k(k({},Th),{height:r,width:!!i&&r,radius:i?"9999rem":"1r"}));return M.jsx(Bo,k({role:"region",css:"\n --placeholder-animation-time: 1.4s;\n --placeholder-animation-size: calc((180rem + 100vw) / 3);\n background-image: linear-gradient(135deg, rgba(var(--dark-color-rgb), .15) 0%, rgba(var(--dark-color-rgb), .15) 5%, rgba(var(--dark-color-rgb), 0) 35%, rgba(var(--dark-03-color-rgb), .2) 50%, rgba(var(--dark-03-color-rgb), 0) 65%, rgba(var(--dark-color-rgb), .15) 95%, rgba(var(--dark-color-rgb), .15) 100%);\n background-repeat: repeat;\n background-size: var(--placeholder-animation-size);\n animation: placeholder-animation var(--placeholder-animation-time) linear infinite;\n\n @keyframes placeholder-animation {\n 0% {\n background-position: 0 0;\n }\n 100% {\n background-position: var(--placeholder-animation-size) 0;\n }\n }\n"},oa(o,{eventProps:!0}),{styles:a,ref:t}),void 0)})),Oh={page:function(e){var t=e.lines,n=e.children,r=P(e,["lines","children"]);return M.jsxs(Vf,k({gap:"4x"},r,{children:[M.jsxs(bc,k({placeContent:"space-between"},{children:[M.jsx(Ch,{width:"100px 25% 300px"},void 0),M.jsx(Ch,{width:"50px 10% 150px"},void 0)]}),void 0),M.jsx(Vf,k({gap:"2x"},{children:n||Array(t||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)]}),void 0)},content:function(e){var t=e.children,n=e.lines,r=P(e,["children","lines"]);return M.jsx(Vf,k({gap:"2x"},r,{children:t||Array(n||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)},topbar:function(e){return M.jsxs(bc,k({gap:"4x",placeContent:"space-between",height:"6x",padding:"1x",border:"bottom"},e,{children:[M.jsxs(bc,{children:[M.jsx(Ch,{circle:!0,size:"4x"},void 0),M.jsx(Ch,{width:"20x"},void 0)]},void 0),M.jsxs(bc,{children:[M.jsx(Ch,{width:"10x"},void 0),M.jsx(Ch,{circle:!0,size:"4x"},void 0)]},void 0)]}),void 0)},menu:function(e){var t=e.lines,n=P(e,["lines"]);return M.jsx(Vf,k({gap:"3.25x"},n,{padding:"3x 1x"},{children:Array(t||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)},stats:function(e){var t=e.cards,n=P(e,["cards"]);return M.jsx(bc,k({gap:"4x"},n,{children:Array(t||3).fill(0).map((function(e,t){return M.jsx(Ch,{radius:"1x",width:"20x",height:"12x",flexGrow:1},t)}))}),void 0)},tabs:function(e){var t=e.tabs,n=e.children,r=e.lines,i=P(e,["tabs","children","lines"]);return M.jsxs(Vf,k({gap:"4x"},i,{children:[M.jsx(bc,{children:Array(t||3).fill(0).map((function(e,t){return M.jsx(Ch,{width:"15x"},t)}))},void 0),M.jsx(Vf,k({gap:"2x"},{children:n||Array(r||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)]}),void 0)},table:function(e){var t=e.rows,n=e.columns,r=P(e,["rows","columns"]);return n=n||5,t=t||5,M.jsx(Df,k({columns:"repeat("+n+", 1fr)",gap:"3x"},r,{padding:"1x 0"},{children:Array(t).fill(0).map((function(e,t){return Array(n).fill(0).map((function(e,n){return M.jsx(Ch,{size:t?"2x":"3x"},t+"."+n)}))}))}),void 0)},chart:function(e){var t=e.columns,n=P(e,["columns"]);t=t||12;var r=[1,4,2,5,8,9,5,3,4,2,6,7,2];return M.jsx(Df,k({columns:"repeat("+t+", 1fr)",gap:"3x",padding:"1x 0",placeItems:"end stretch",height:"40x"},n,{children:Array(t).fill(0).map((function(e,t){return M.jsx(Ch,{height:10*r[t%12]+"%",width:"max 6x"},t)}))}),void 0)}};function Nh(e){var t=e.layout,n=P(e,["layout"]);return Oh[t=t||"page"]?Oh[t](k(k({},n),{qa:"Skeleton"})):M.jsx(Ch,k({},n),void 0)}function jh(e){var t=e.type,n=P(e,["type"]);return k(k({},n),{htmlType:t})}var Ah=m.button((function(e){return"\n appearance: none;\n padding: 0;\n margin: 0;\n font-size: inherit;\n line-height: inherit;\n width: 159px;\n height: 26px;\n border: none;\n background: none;\n cursor: "+(e.isLink?"pointer":"default")+";\n outline: none;\n "}));var Lh=h((function(e,t){var n=Ei(t),r=jc(function(e){var t=e.htmlType,n=P(e,["htmlType"]);return k(k({},n),{type:t})}(e),n).buttonProps;return M.jsx(Ah,k({"data-qa":"HeaderCubeCloudLogo"},r,{isLink:!!e.onPress,ref:n},{children:M.jsxs("svg",k({width:"159",height:"26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M22.533 6.535L11.27 0v4.522l11.264 6.507V6.535z",fill:"#FF6492"},void 0),M.jsx("path",{d:"M22.533 11.029L19.154 13l-7.887-4.567-4.507 2.6-3.38-1.827 7.889-4.684 11.264 6.507z",fill:"#141446"},void 0),M.jsx("path",{d:"M6.76 11.033L3.38 9.206V13l3.38-1.967z",fill:"#A14474"},void 0),M.jsx("path",{d:"M0 19.465L11.267 13l11.266 6.465L11.267 26 0 19.465z",fill:"#141446"},void 0),M.jsx("path",{d:"M22.533 14.978L11.267 8.362V13l11.266 6.465v-4.487z",fill:"#FF6492"},void 0),M.jsx("path",{d:"M3.38 13V9.205l7.889-4.683V0L0 6.535v12.93L11.267 13V8.362L3.38 13z",fill:"#7A77FF"},void 0),M.jsx("path",{d:"M36.594 21.099c2.446 0 4.36-1.21 5.503-3.067l-1.967-1.534c-.878 1.21-1.967 1.991-3.509 1.991-2.392 0-4.093-1.856-4.093-4.305 0-2.394 1.7-4.278 4.093-4.278 1.568 0 2.658.807 3.509 2.018l1.967-1.56c-1.117-1.857-3.03-3.067-5.503-3.067-3.854 0-6.91 3.013-6.91 6.887 0 3.902 3.056 6.915 6.91 6.915zM50.224 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM66.42 7.297c-1.807 0-3.376.7-4.36 1.91V.624h-2.79v20.18h2.605v-1.83c.983 1.345 2.658 2.125 4.572 2.125 3.694 0 6.38-2.96 6.38-6.888S70.14 7.297 66.42 7.297zm-.452 11.22c-1.94 0-3.934-1.292-3.934-4.306 0-2.986 1.967-4.332 3.934-4.332 2.233 0 3.987 1.75 3.987 4.305 0 2.556-1.727 4.332-3.987 4.332zM87.469 13.35c0-3.47-2.552-6.053-6.034-6.053-3.801 0-6.752 3.04-6.752 6.914 0 3.902 2.977 6.888 7.018 6.888 2.073 0 3.827-.807 5.21-2.125l-1.33-1.938c-1.09.969-2.286 1.56-3.8 1.56-2.234 0-3.882-1.29-4.254-3.47h9.729c.08-.35.213-1.05.213-1.776zm-6.14-3.659c1.78 0 3.296 1.157 3.349 3.229H77.58c.425-1.964 1.913-3.229 3.747-3.229zM101.014 21.099c2.445 0 4.359-1.21 5.502-3.067l-1.967-1.534c-.877 1.21-1.967 1.991-3.508 1.991-2.393 0-4.094-1.856-4.094-4.305 0-2.394 1.701-4.278 4.094-4.278 1.568 0 2.658.807 3.508 2.018l1.967-1.56c-1.116-1.857-3.03-3.067-5.502-3.067-3.854 0-6.911 3.013-6.911 6.887 0 3.902 3.057 6.915 6.911 6.915zM109.062 20.803h2.791V.624h-2.791v20.18zM121.417 21.099c3.881 0 6.938-3.067 6.938-6.915 0-3.847-3.057-6.887-6.938-6.887-3.854 0-6.884 3.013-6.884 6.887 0 3.848 3.03 6.915 6.884 6.915zm0-2.61c-2.312 0-4.04-1.83-4.04-4.278 0-2.475 1.728-4.332 4.067-4.332 2.286 0 4.04 1.857 4.04 4.332 0 2.422-1.754 4.278-4.067 4.278zM136.605 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM155.566.624v8.583c-.984-1.21-2.552-1.91-4.36-1.91-3.694 0-6.379 2.986-6.379 6.914 0 3.928 2.658 6.888 6.379 6.888 1.941 0 3.615-.807 4.572-2.18v1.884h2.605V.624h-2.817zm-3.881 17.892c-2.286 0-4.014-1.776-4.014-4.332s1.754-4.305 4.014-4.305c1.94 0 3.934 1.346 3.934 4.332 0 3.014-1.994 4.305-3.934 4.305z",fill:"#141446"},void 0)]}),void 0)}),void 0)})),Fh={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}},Dh=wp({name:"Badge",styles:{display:"inline-flex",placeContent:"center",placeItems:"center",padding:{"":"0",single:"0 1px",multiple:"0 2px"},radius:"round",preset:"tag",width:"min 16px",height:"16px",textAlign:"center",fontWeight:600,color:"#white",fill:k({"":"#purple"},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].color,e}),{}))},attrs:{role:"region"}}),Rh=h((function(e,t){var n=e.type,r=e.children,i=P(e,["type","children"]),o=co(i,Yo);return M.jsx(Dh,k({},oa(i,{eventProps:!0}),{"data-type":n,mods:{single:"string"==typeof r&&1===r.length,multiple:"string"==typeof r&&2===r.length},styles:o,ref:t},{children:r}),void 0)})),Ih=wp({name:"Tag",styles:{position:"relative",display:"inline-flex",placeContent:"center start",placeItems:"center start",radius:"1r",preset:"t4m",width:"16px max-content max-content",height:"min-content",textAlign:"left",whiteSpace:"nowrap",padding:{"":"0 (1x - 1bw)",closable:"0 (2.5x - 1bw) 0 (1x - 1bw)"},fill:k({"":"#dark.04"},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].fill,e}),{})),color:k({"":"#dark.65"},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].color,e}),{})),border:k({"":!0},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].border,e}),{}))},attrs:{role:"status"}}),Mh={width:"max 100%",textOverflow:"ellipsis",overflow:"hidden",pointerEvents:"none"},_h={display:"grid",placeItems:"center",color:!0,placeSelf:"center",opacity:{"":.85,"pressed | hovered":1},transition:"opacity",padding:"0 .5x"},zh=h((function(e,t){var n=e.type,r=e.isClosable,i=e.onClose,o=e.children,a=P(e,["type","isClosable","onClose","children"]),l=co(a,Yo);return M.jsxs(Ih,k({},oa(a,{eventProps:!0}),{styles:l,"data-type":n,mods:{closable:r},ref:t},{children:[M.jsx(oc,k({mods:{closable:r},styles:Mh},{children:o}),void 0),r?M.jsx(vl,k({outerGap:"0"},{children:M.jsx(Ic,k({onPress:i,styles:_h},{children:M.jsx(Ye,{style:{fontSize:"calc(var(--font-size) - (var(--border-width) * 2))"}},void 0)}),void 0)}),void 0):void 0]}),void 0)}));function Kh(e){if(null!=e)return e.toString()}var Vh;Vh=JSON.parse('{"Clear search":"مسح البحث"}');var Uh;Uh=JSON.parse('{"Clear search":"Изчистване на търсене"}');var Bh;Bh=JSON.parse('{"Clear search":"Vymazat hledání"}');var qh;qh=JSON.parse('{"Clear search":"Ryd søgning"}');var Wh;Wh=JSON.parse('{"Clear search":"Suche zurücksetzen"}');var Gh;Gh=JSON.parse('{"Clear search":"Απαλοιφή αναζήτησης"}');var Jh;Jh=JSON.parse('{"Clear search":"Clear search"}');var Hh;Hh=JSON.parse('{"Clear search":"Borrar búsqueda"}');var $h;$h=JSON.parse('{"Clear search":"Tühjenda otsing"}');var Xh;Xh=JSON.parse('{"Clear search":"Tyhjennä haku"}');var Yh;Yh=JSON.parse('{"Clear search":"Effacer la recherche"}');var Zh;Zh=JSON.parse('{"Clear search":"נקה חיפוש"}');var Qh;Qh=JSON.parse('{"Clear search":"Obriši pretragu"}');var ev;ev=JSON.parse('{"Clear search":"Keresés törlése"}');var tv;tv=JSON.parse('{"Clear search":"Cancella ricerca"}');var nv;nv=JSON.parse('{"Clear search":"検索をクリア"}');var rv;rv=JSON.parse('{"Clear search":"검색 지우기"}');var iv;iv=JSON.parse('{"Clear search":"Išvalyti iešką"}');var ov;ov=JSON.parse('{"Clear search":"Notīrīt meklēšanu"}');var av;av=JSON.parse('{"Clear search":"Tøm søk"}');var lv;lv=JSON.parse('{"Clear search":"Zoekactie wissen"}');var sv;sv=JSON.parse('{"Clear search":"Wyczyść zawartość wyszukiwania"}');var uv;uv=JSON.parse('{"Clear search":"Limpar pesquisa"}');var cv;cv=JSON.parse('{"Clear search":"Limpar pesquisa"}');var dv;dv=JSON.parse('{"Clear search":"Ştergeţi căutarea"}');var pv;pv=JSON.parse('{"Clear search":"Очистить поиск"}');var fv;fv=JSON.parse('{"Clear search":"Vymazať vyhľadávanie"}');var hv;hv=JSON.parse('{"Clear search":"Počisti iskanje"}');var vv;vv=JSON.parse('{"Clear search":"Obriši pretragu"}');var gv;gv=JSON.parse('{"Clear search":"Rensa sökning"}');var mv;mv=JSON.parse('{"Clear search":"Aramayı temizle"}');var yv;yv=JSON.parse('{"Clear search":"Очистити пошук"}');var bv;bv=JSON.parse('{"Clear search":"清除搜索"}');var xv;xv=JSON.parse('{"Clear search":"清除搜尋條件"}');const wv={"ar-AE":Wl(Vh).default,"bg-BG":Wl(Uh).default,"cs-CZ":Wl(Bh).default,"da-DK":Wl(qh).default,"de-DE":Wl(Wh).default,"el-GR":Wl(Gh).default,"en-US":Wl(Jh).default,"es-ES":Wl(Hh).default,"et-EE":Wl($h).default,"fi-FI":Wl(Xh).default,"fr-FR":Wl(Yh).default,"he-IL":Wl(Zh).default,"hr-HR":Wl(Qh).default,"hu-HU":Wl(ev).default,"it-IT":Wl(tv).default,"ja-JP":Wl(nv).default,"ko-KR":Wl(rv).default,"lt-LT":Wl(iv).default,"lv-LV":Wl(ov).default,"nb-NO":Wl(av).default,"nl-NL":Wl(lv).default,"pl-PL":Wl(sv).default,"pt-BR":Wl(uv).default,"pt-PT":Wl(cv).default,"ro-RO":Wl(dv).default,"ru-RU":Wl(pv).default,"sk-SK":Wl(fv).default,"sl-SI":Wl(hv).default,"sr-SP":Wl(vv).default,"sv-SE":Wl(gv).default,"tr-TR":Wl(mv).default,"uk-UA":Wl(yv).default,"zh-CN":Wl(bv).default,"zh-TW":Wl(xv).default};var Sv=h((function(e,t){var n=(e=Ui(e)).isClearable,r=e.value,o=zo(t,a(null)),l=a(null);i((function(){var e=o&&o.current;e&&null!=r&&e.value!==r&&(e.value=r)}),[o,r]);var s=function(e){let[t,n]=Dt(Kh(e.value),Kh(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}(e),u=function(e,t,n){let r=mi(wv),{isDisabled:i,onSubmit:o=(()=>{}),onClear:a,type:l="search"}=e,{labelProps:s,inputProps:u,descriptionProps:c,errorMessageProps:d}=Cc(_t({},e,{value:t.value,onChange:t.setValue,onKeyDown:e=>{const n=e.key;"Enter"!==n&&"Escape"!==n||e.preventDefault(),i||("Enter"===n&&o(t.value),"Escape"===n&&(t.setValue(""),a&&a()))},type:l}),n);return{labelProps:s,inputProps:_t({},u,{defaultValue:void 0}),clearButtonProps:{"aria-label":r("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:()=>{t.setValue(""),a&&a()},onPressStart:()=>{n.current.focus()}},descriptionProps:c,errorMessageProps:d}}(e,s,l),c=u.inputProps,d=u.clearButtonProps;return M.jsx(kc,k({inputProps:c,ref:t,inputRef:l,inputStyles:{paddingRight:"4x"},type:"search",prefix:M.jsx(jt,{},void 0),suffixPosition:"after",suffix:n&&""!==s.value&&!e.isReadOnly&&M.jsx(Vc,k({type:"clear"},jh(d),{color:{"":"#dark.50","hovered | pressed":"#purple-text"},radius:"right (1r - 1bw)",padding:".5x 1x",placeSelf:"stretch",icon:M.jsx(Ye,{},void 0)}),void 0)},e),void 0)}));var Ev=h((function(e,t){var n=(e=xa(e=Ui(e))).form,r=P(e,["form"]),i=n.getFieldsValue(),o=!Object.keys(i).find((function(e){return n.isFieldInvalid(e)}));return M.jsx(Vc,k({ref:t,type:"primary",htmlType:"submit",isLoading:n.isSubmitting,isDisabled:!o},r),void 0)}));function kv(e){void 0===e&&(e={});let{isReadOnly:t,onChange:n}=e,[r,i]=Dt(e.isSelected,e.defaultSelected||!1,(()=>{}));return{isSelected:r,setSelected:function(e){t||(i(e),n&&n(e))},toggle:function(){t||i((e=>{let t=!e;return n&&n(t),t}))}}}function Pv(e,t,n){let{isDisabled:r=!1,isRequired:i,isReadOnly:o,value:a,name:l,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid"}=e;null!=s||(null!=u||null!=c)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=ja({isDisabled:r}),{focusableProps:f}=Kl(e,n),h=Yt(p,f);return{inputProps:Yt(tn(e,{labelable:!0}),_t({"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,required:i,value:a,name:l,type:"checkbox"},h))}}function Tv(e,t,n){let{inputProps:r}=Pv(e,t,n),{isSelected:o}=t,{isIndeterminate:a}=e;return i((()=>{n.current&&(n.current.indeterminate=a)})),{inputProps:_t({},r,{checked:o,"aria-checked":a?"mixed":o})}}const Cv=new WeakMap;var Ov,Nv=m.input(Ov||(Ov=A(["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n"],["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n"])),(function(e){return e.isButton?"pointer":"default"}));var jv=n(null),Av={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},Lv={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var Fv=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,o=e.necessityLabel,a=e.label,l=e.labelPosition,s=void 0===l?"top":l,u=e.validationState,c=e.children,d=e.orientation,p=void 0===d?"vertical":d,f=e.message,h=e.labelStyles,v=e.requiredMark,g=void 0===v||v,m=e.tooltip,y=P(e,["isDisabled","isRequired","necessityIndicator","necessityLabel","label","labelPosition","validationState","children","orientation","message","labelStyles","requiredMark","tooltip"]),b=Si(t),x=Mi("CheckboxGroup_Wrapper",e),w=Mi("CheckboxGroup",e),S=Mi("CheckboxGroup_Label",e),E=co(y,Zo,k(k({},Av),x)),T=co(y,Go,k(k({},Lv),w));h=k(k(k({},bl),S),h);var C=function(e){void 0===e&&(e={});let[t,n]=Dt(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e:e.concat(t)))},removeValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e))},toggleValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e.concat(t)))}}}(e),O=function(e,t){let{isDisabled:n,name:r}=e,{labelProps:i,fieldProps:o}=Pc(_t({},e,{labelElementType:"span"})),a=tn(e,{labelable:!0});return Cv.set(t,r),{groupProps:Yt(a,_t({role:"group","aria-disabled":n||void 0},o)),labelProps:i}}(e,C),N=O.groupProps,j=O.labelProps,A=M.jsx(Bo,k({qa:"CheckboxGroup",styles:T,mods:{horizontal:"horizontal"===p}},{children:M.jsx(ba.Provider,k({value:{isDisabled:n,validationState:u}},{children:M.jsx(jv.Provider,k({value:C},{children:c}),void 0)}),void 0)}),void 0);return M.jsx(gc,k({},{labelPosition:s,label:a,styles:E,isRequired:r,labelStyles:h,necessityIndicator:i,necessityLabel:o,labelProps:j,fieldProps:N,isDisabled:n,validationState:u,message:f,requiredMark:g,tooltip:m,Component:A,ref:b}),void 0)})),{cubeInputType:"CheckboxGroup"}),Dv=function(){return M.jsx("svg",k({width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z",fill:"currentColor"},void 0)}),void 0)},Rv=function(){return M.jsx("svg",k({width:"9",height:"3",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M0 .044v2.001l.026.025h8.063V.044H0z",fill:"#fff"},void 0)}),void 0)},Iv={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"default",cursor:"pointer"},Mv={display:"grid",placeItems:"center",radius:".5r",fill:{"":"#white","checked | indeterminate":"#purple-text","invalid & !checked":"#white","invalid & checked":"#danger-text",disabled:"#dark.12"},color:{"":"#white","disabled & !checked & !indeterminate":"#clear"},border:{"":"#dark.30",invalid:"#danger-text.50","disabled | ((indeterminate | checked) & !invalid)":"#clear"},width:"(2x - 2bw)",height:"(2x - 2bw)",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"};var _v=Object.assign(h((function(e,t){var n,i,o=e,l=(e=xa(e=Ui(e))).qa,s=e.isIndeterminate,u=void 0!==s&&s,c=e.isDisabled,d=void 0!==c&&c,p=e.insideForm,f=e.isRequired;e.autoFocus;var h=e.children,v=e.label,g=e.validationState,m=e.labelProps,y=e.labelStyles,b=e.labelPosition,x=e.necessityLabel,w=e.necessityIndicator,S=e.message,E=e.requiredMark,T=void 0===E||E,C=e.tooltip,N=P(e,["qa","isIndeterminate","isDisabled","insideForm","isRequired","autoFocus","children","label","validationState","labelProps","labelStyles","labelPosition","necessityLabel","necessityIndicator","message","requiredMark","tooltip"]);v=v||h;var j=r(jv),A=Mi("Checkbox_Wrapper",e),L=Mi("Checkbox",e),F=Mi("Checkbox_Label",e),D=co(e,Zo,k(k({},p&&!j?{}:Iv),A)),R=co(e,Go,k(k({},Mv),L));y=k(k(k({},p&&!j?bl:yl),F),y),p||(y.fontWeight=400),p&&"side"===b&&(R.marginTop="1x");var I=dl({isDisabled:d},!0),_=I.isFocused,z=I.focusProps,K=sl({isDisabled:d}),V=K.hoverProps,U=K.isHovered,B=a(null),q=Ei(t,B),W=(j?function(e,t,n){const r=kv({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{inputProps:i}=Tv(_t({},e,{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Cv.get(t)}),r,n);return{inputProps:i}}(k(k({},e),{value:e.value||"",isRequired:o.isRequired,validationState:o.validationState}),j,B):Tv(e,kv(e),B)).inputProps,G=u?M.jsx(Rv,{},void 0):M.jsx(Dv,{},void 0);if(j){try{for(var J=O(["isSelected","defaultSelected","isEmphasized"]),H=J.next();!H.done;H=J.next()){var $=H.value;null!=o[$]&&console.warn("CubeUIKit: "+$+" is unsupported on individual <Checkbox> elements within a <CheckboxGroup>. Please apply these props to the group instead.")}}catch(e){n={error:e}}finally{try{H&&!H.done&&(i=J.return)&&i.call(J)}finally{if(n)throw n.error}}null==e.value&&console.warn("CubeUIKit: A <Checkbox> element within a <CheckboxGroup> requires a `value` property.")}var X=M.jsxs(Bo,k({styles:{position:"relative"}},{children:[M.jsx(Nv,k({"data-qa":l||"Checkbox"},Yt(W,z),{ref:B}),void 0),M.jsx(Bo,k({mods:{checked:W.checked,indeterminate:u,invalid:"invalid"===g,valid:"valid"===g,disabled:d,hovered:U,focused:_},styles:R},{children:G}),void 0)]}),void 0);return p&&!j?M.jsx(gc,k({},{as:"label",labelPosition:b,label:v,styles:D,isRequired:f,labelStyles:y,labelProps:m,isDisabled:d,validationState:g,necessityLabel:x,necessityIndicator:w,message:S,requiredMark:T,tooltip:C,Component:X,ref:q}),void 0):M.jsxs(Bo,k({as:"label",styles:D},V,oa(N),{ref:q},{children:[X,v&&M.jsx(Bo,k({styles:y,mods:{invalid:"invalid"===g,valid:"valid"===g,disabled:d}},oa(m),{children:v}),void 0)]}),void 0)})),{cubeInputType:"Checkbox",Group:Fv});var zv={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"input",width:"min-content",cursor:"pointer"},Kv={position:"relative",display:"grid",placeItems:"center",radius:"round",fill:{"":"#dark.50",checked:"#purple",disabled:"#dark.12"},color:"#white",border:!1,width:"5.25x 5.25x",height:"3x 3x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"pointer"},Vv={position:"absolute",width:"2.5x",height:"2.5x",radius:"round",fill:"currentColor",shadow:"0px 2px 4px #dark.20;",top:".25x",left:{"":".25x",checked:"2.5x"},transition:"left",cursor:"pointer"};var Uv=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).qa,r=e.isDisabled,i=void 0!==r&&r;e.autoFocus;var o=e.children,l=e.label,s=e.labelProps,u=e.labelStyles,c=e.thumbStyles,d=e.isLoading,p=e.insideForm,f=e.validationState,h=e.message,v=e.labelPosition,g=e.inputStyles,m=e.requiredMark,y=void 0===m||m,b=e.tooltip,x=P(e,["qa","isDisabled","autoFocus","children","label","labelProps","labelStyles","thumbStyles","isLoading","insideForm","validationState","message","labelPosition","inputStyles","requiredMark","tooltip"]);l=l||o;var w=Mi("Switch_Wrapper",e),S=Mi("Switch",e),E=Mi("Switch_Label",e),T=Mi("Switch_Thumb",e),C=co(e,Zo,k(k({},p?{}:zv),w));g=co(e,Go,k(k(k(k({},Kv),S),p&&"side"===v?{marginTop:"-3px",placeSelf:"start"}:null),g)),c=k(k(k({},Vv),T),c),u=k(k(k({},p?bl:yl),E),u);var O=dl({isDisabled:i},!0),N=O.isFocused,j=O.focusProps,A=sl({isDisabled:i}),L=A.hoverProps,F=A.isHovered,D=a(null),R=Ei(t,D),I=function(e,t,n){let{inputProps:r}=Pv(e,t,n),{isSelected:i}=t;return{inputProps:_t({},r,{role:"switch",checked:i,"aria-checked":i})}}(e,kv(e),D).inputProps,_=M.jsxs(Bo,k({qa:(n||"Switch")+"Wrapper",styles:{position:"relative"}},{children:[M.jsx(Nv,k({"data-qa":n||"Switch"},Yt(I,j),{ref:D}),void 0),M.jsx(Bo,k({mods:{checked:I.checked,disabled:i,hovered:F,focused:N},styles:g},{children:M.jsx(Bo,{qa:"SwitchThumb",styles:c,"aria-hidden":"true",mods:{checked:I.checked}},void 0)}),void 0)]}),void 0);return p?M.jsx(gc,k({},{as:"label",labelPosition:v,label:l,styles:C,labelStyles:u,labelProps:s,isDisabled:i,validationState:f,message:h,requiredMark:y,tooltip:b,Component:_,ref:R}),void 0):M.jsxs(Bo,k({as:"label",styles:C},L,oa(x),{ref:R},{children:[_,l&&M.jsxs(Bo,k({styles:u,mods:{disabled:i}},oa(s),{children:[l,d?M.jsxs(M.Fragment,{children:[l?M.jsx(M.Fragment,{children:" "},void 0):null,M.jsx(Ct,{},void 0)]},void 0):null]}),void 0)]}),void 0)})),{cubeInputType:"Checkbox"});const Bv=new WeakMap;var qv=n(null);let Wv=Math.round(1e10*Math.random()),Gv=0;var Jv={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},Hv={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var $v=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,a=e.label,l=e.labelPosition,u=void 0===l?"top":l,c=e.validationState,d=e.children,p=e.orientation,f=void 0===p?"vertical":p,h=e.message,v=e.labelStyles,g=e.requiredMark,m=void 0===g||g,y=e.tooltip,b=e.styles,x=e.groupStyles,w=P(e,["isDisabled","isRequired","necessityIndicator","label","labelPosition","validationState","children","orientation","message","labelStyles","requiredMark","tooltip","styles","groupStyles"]),S=Si(t),E=Mi("RadioGroup_Wrapper",e),T=Mi("RadioGroup",e),C=Mi("RadioGroup_Label",e);b=co(w,Zo,k(k(k({},Jv),E),b)),x=co(w,Go,k(k(k({},Hv),T),x)),v=k(k(k({},bl),C),v);var O=function(e){let t=s((()=>e.name||"radio-group-"+Wv+"-"+ ++Gv),[e.name]),[n,r]=Dt(e.value,e.defaultValue,e.onChange),[i,a]=o(null);return{name:t,selectedValue:n,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||r(t)},lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1}}(e),N=function(e,t){let{name:n,validationState:r,isReadOnly:i,isRequired:o,isDisabled:a,orientation:l="vertical"}=e,{direction:s}=vi(),{labelProps:u,fieldProps:c}=Pc(_t({},e,{labelElementType:"span"})),d=tn(e,{labelable:!0}),{focusWithinProps:p}=nl({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),f=Jt(n);return Bv.set(t,f),{radioGroupProps:Yt(d,_t({role:"radiogroup",onKeyDown:e=>{let n;switch(e.key){case"ArrowRight":n="rtl"===s&&"vertical"!==l?"prev":"next";break;case"ArrowLeft":n="rtl"===s&&"vertical"!==l?"next":"prev";break;case"ArrowDown":n="next";break;case"ArrowUp":n="prev";break;default:return}e.preventDefault();let r,i=Il(e.currentTarget,{from:e.target});"next"===n?(r=i.nextNode(),r||(i.currentNode=e.currentTarget,r=i.firstChild())):(r=i.previousNode(),r||(i.currentNode=e.currentTarget,r=i.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":"invalid"===r||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":l},c,p)),labelProps:u}}(e,O),j=N.radioGroupProps,A=N.labelProps,L=M.jsx(Bo,k({qa:"RadioGroup",styles:x,mods:{horizontal:"horizontal"===f}},{children:M.jsx(ba.Provider,k({value:{isRequired:r,validationState:c,isDisabled:n}},{children:M.jsx(qv.Provider,k({value:O},{children:d}),void 0)}),void 0)}),void 0);return M.jsx(gc,k({},{labelPosition:u,label:a,styles:b,isRequired:r,labelStyles:v,necessityIndicator:i,labelProps:A,fieldProps:j,isDisabled:n,validationState:c,message:h,requiredMark:m,tooltip:y,Component:L,ref:S}),void 0)})),{cubeInputType:"RadioGroup"}),Xv={position:"relative",display:"grid",placeItems:"center start",gap:"1x",flow:"column",preset:"default",width:"min-content"},Yv={radius:!0,fill:{"":"#white",hovered:"#purple-text.04",disabled:"#dark.04"},color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.40"},fontWeight:500,preset:"default",border:{"":!0,checked:"#purple-text","invalid & checked":"#danger-text","disabled & checked":"#dark.40",disabled:"#border"},padding:"(1x - 1bw) (1.5x - 1bw)",cursor:"pointer",opacity:{"":1,disabled:.5},outline:{"":"#purple-03.0",focused:"#purple-03"}},Zv={display:"grid",placeItems:"center",radius:"round",fill:{"":"#white",disabled:"#dark.04"},color:{checked:"#purple-text","invalid & checked":"#danger-text","disabled | !checked":"#clear","disabled & checked":"#dark.12"},border:{"":"#dark.30",checked:"#purple-text",invalid:"#danger-text.50",disabled:"#dark.12"},width:"2x",height:"2x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},Qv={radius:"round",width:"1x",height:"1x",fill:"currentColor",transition:"theme"};var eg=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).qa,i=e.isDisabled,o=e.validationState,l=e.children,s=e.label;e.autoFocus;var u=e.labelStyles,c=e.labelProps,d=e.inputStyles,p=e.type,f=e["aria-label"],h=P(e,["qa","isDisabled","validationState","children","label","autoFocus","labelStyles","labelProps","inputStyles","type","aria-label"]),v="button"===p;s=s||l;var g=co(h,Zo,k(k({},Xv),Mi("Radio_Wrapper",e)));d=co(h,Go,k(k(k({},v?Yv:Zv),Mi(v?"RadioButton":"Radio",e)),d)),u=k(k(k(k({},yl),{fontWeight:400}),Mi("Radio_Label",e)),u);var m=r(qv);if(!m)throw new Error("CubeUI: The Radio button is used outside the RadioGroup.");var y=dl({isDisabled:i},!0),b=y.isFocused,x=y.focusProps,w=sl({isDisabled:i}),S=w.hoverProps,E=w.isHovered,T=a(null),C=Ei(t,T),O=function(e,t,n){let{value:r,isRequired:i,children:o,"aria-label":a,"aria-labelledby":l}=e;const s=e.isDisabled||t.isDisabled,u=t.isReadOnly;null!=o||null!=a||null!=l||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,{pressProps:d}=ja({isDisabled:s}),{focusableProps:p}=Kl(Yt(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),f=Yt(d,p),h=tn(e,{labelable:!0}),v=t.lastFocusedValue===r||null==t.lastFocusedValue?0:-1;return s&&(v=void 0),{inputProps:Yt(h,_t({},f,{type:"radio",name:Bv.get(t),tabIndex:v,disabled:s,"aria-readonly":u||void 0,required:i,checked:c,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)}}))}}(k(k({},e),{isDisabled:i}),m,T).inputProps;return M.jsxs(Bo,k({as:"label",styles:g},S,{ref:C,mods:{disabled:i,invalid:"invalid"===o,hovered:E,button:v}},{children:[M.jsx(Nv,k({"data-qa":n||"Radio","aria-label":f},Yt(O,x),{isButton:v,ref:T}),void 0),M.jsx(Bo,k({mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o,disabled:i,hovered:E,focused:b},styles:d},{children:v?l:M.jsx(Bo,{styles:Qv,mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o}},void 0)}),void 0),s&&!v&&M.jsx(Bo,k({qa:"RadioLabel",styles:u,mods:{invalid:"invalid"===o,valid:"valid"===o,disabled:i}},oa(c),{children:s}),void 0)]}),void 0)})),{Group:$v,Button:h((function(e,t){var n=eg;return M.jsx(n,k({},e,{type:"button",ref:t}),void 0)}))});function tg(e){let t=Ou(e),[n,r]=o(null);return _t({focusStrategy:n},t,{open(e){void 0===e&&(e=null),r(e),t.open()},toggle(e){void 0===e&&(e=null),r(e),t.toggle()}})}class ng extends Set{constructor(e,t,n){super(e),this.anchorKey=void 0,this.currentKey=void 0,e instanceof ng?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function rg(e,t){return e?"all"===e?"all":new ng(e):t}class ig{constructor(e,t,n){var r;this.collection=void 0,this.state=void 0,this.allowsCellSelection=void 0,this._isSelectAll=void 0,this.collection=e,this.state=t,this.allowsCellSelection=null!=(r=null==n?void 0:n.allowsCellSelection)&&r,this._isSelectAll=null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)<t.index)&&(t=n)}return null==(e=t)?void 0:e.key}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)>t.index)&&(t=n)}return null==(e=t)?void 0:e.key}extendSelection(e){let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new ng([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new ng(n,r,e);for(let i of this.getKeyRange(r,n.currentKey||e))t.delete(i);for(let n of this.getKeyRange(e,r))this.state.disabledKeys.has(n)||t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if(null==(e=this.getKey(e)))return;let t=new ng("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new ng([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new ng;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(!this.state.disabledKeys.has(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ng)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):t&&t.shiftKey?this.extendSelection(e):this.toggleSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}}let og;og=Symbol.iterator;class ag{constructor(e){var t;this.keyMap=new Map,this.iterable=void 0,this.firstKey=void 0,this.lastKey=void 0,this.iterable=e;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;this.lastKey=null==(t=n)?void 0:t.key}*[og](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}}function lg(e){let{filter:t}=e,n=function(e){let{selectionMode:t="none",disallowEmptySelection:n}=e,r=a(!1),[,i]=o(!1),l=a(null),u=a(null),[,c]=o(null),d=s((()=>rg(e.selectedKeys)),[e.selectedKeys]),p=s((()=>rg(e.defaultSelectedKeys,new ng)),[e.defaultSelectedKeys]),[f,h]=Dt(d,p,e.onSelectionChange);return{selectionMode:t,disallowEmptySelection:n,get isFocused(){return r.current},setFocused(e){r.current=e,i(e)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t){void 0===t&&(t="first"),l.current=e,u.current=t,c(e)},selectedKeys:f,setSelectedKeys:h,disabledKeys:s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys])}}(e),r=s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=s((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),u=function(e,t,n,r){void 0===r&&(r=[]);let i=s((()=>new Tf),[]),o=a(null);return s((()=>{let r=i.build(e,n);return o.current=t(r,o.current),o.current}),[i,e.children,e.items,n,...r])}(e,(e=>new ag(t?t(e):e)),l,[t]);return i((()=>{null==n.focusedKey||u.getItem(n.focusedKey)||n.setFocusedKey(null)}),[u,n.focusedKey]),{collection:u,disabledKeys:r,selectionManager:new ig(u,n)}}function sg(e){var t;let[n,r]=Dt(e.selectedKey,null!=(t=e.defaultSelectedKey)?t:null,e.onSelectionChange),i=s((()=>null!=n?[n]:[]),[n]),{collection:o,disabledKeys:a,selectionManager:l}=lg(_t({},e,{selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i,onSelectionChange:t=>{let i=t.values().next().value;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}})),u=null!=n?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:u}}function ug(e){var t,n,r,l,u,c;let{defaultFilter:d,menuTrigger:p="input",allowsEmptyCollection:f=!1,allowsCustomValue:h,shouldCloseOnBlur:v=!0}=e,[g,m]=o(!1),[y,b]=o(!1),[x,w]=Dt(e.inputValue,null!=(t=e.defaultInputValue)?t:"",e.onInputChange),{collection:S,selectionManager:E,selectedKey:k,setSelectedKey:P,selectedItem:T,disabledKeys:C}=sg(_t({},e,{onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===k&&(D(),A.close())},items:null!=(n=e.items)?n:e.defaultItems})),O=S,N=s((()=>null==e.items&&d?function(e,t,n){return new ag(cg(e,t,n))}(S,x,d):S),[S,x,d,e.items]),j=a("focus"),A=tg(_t({},e,{onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?j.current:void 0)},isOpen:void 0,defaultOpen:void 0})),L=(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),j.current=n,A.open(t))},F=a(x),D=()=>{var e,t;let n=null!=(e=null==(t=S.getItem(k))?void 0:t.textValue)?e:"";F.current=n,w(n)},R=a(!0),I=a(null!=(r=null!=(l=e.selectedKey)?l:e.defaultSelectedKey)?r:null),M=a(null!=(u=null==(c=S.getItem(k))?void 0:c.textValue)?u:"");i((()=>{var t,n;y&&(N.size>0||f)&&!A.isOpen&&x!==F.current&&"manual"!==p&&L(null,"input"),g||f||!A.isOpen||0!==N.size||A.close(),null!=k&&k!==I.current&&A.close(),x!==F.current&&(E.setFocusedKey(null),m(!1),""!==x||void 0!==e.inputValue&&void 0!==e.selectedKey||P(null)),R.current&&void 0===e.inputValue&&void 0===e.defaultInputValue&&D(),k===I.current||void 0!==e.inputValue&&void 0!==e.selectedKey?F.current=x:D();let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";y||null==k||void 0!==e.inputValue||k!==I.current||M.current!==r&&(F.current=r,w(r)),R.current=!1,I.current=k,M.current=r})),i((()=>{A.isOpen||E.setFocusedKey(null)}),[A.isOpen,E]);let _=()=>{I.current=null,P(null),A.close()},z=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(k);let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";F.current=r,A.close()}else D(),A.close()};return _t({},A,{toggle:(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items||A.isOpen)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),A.isOpen||(j.current=n),A.toggle(t))},open:L,selectionManager:E,selectedKey:k,setSelectedKey:P,disabledKeys:C,isFocused:y,setFocused:e=>{if(e)"focus"===p&&L(null,"focus");else if(v){var t,n;let e=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";h&&x!==e?_():z()}b(e)},selectedItem:T,collection:g?O:N,inputValue:x,setInputValue:w,commit:()=>{A.isOpen&&null!=E.focusedKey?k===E.focusedKey?z():P(E.focusedKey):h?_():z()},revert:()=>{h&&null==k?_():z()}})}function cg(e,t,n){let r=[];for(let i of e)if("section"===i.type&&i.hasChildNodes){let e=cg(i.childNodes,t,n);[...e].length>0&&r.push(_t({},i,{childNodes:e}))}else"section"!==i.type&&n(i.textValue,t)&&r.push(_t({},i));return r}function dg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=a({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let o=function(e){if(1===e.length||!/^[A-Z]/i.test(e))return e;return""}(e.key);if(!o||e.ctrlKey||e.metaKey)return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let a=t.getKeyForSearch(i.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(i.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),500)}:null}}}function pg(e){return yn()?e.metaKey:e.ctrlKey}function fg(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:c=!1,disallowTypeAhead:d=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:v=r}=e,{direction:g}=vi(),m=a({top:0,left:0});En(v,"scroll",h?null:()=>{m.current={top:v.current.scrollTop,left:v.current.scrollLeft}});const y=a(o);i((()=>{if(y.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||p||wl(r.current)}y.current=!1}),[]),i((()=>{if(!h&&t.focusedKey&&null!=v&&v.current){let e=v.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&hg(v.current,e)}}),[h,v,t.focusedKey]);let b,x={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),e.altKey||!r.current.contains(e.target))return;const i=(n,r)=>{null!=n&&(t.setFocusedKey(n,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):c&&t.replaceSelection(n))};switch(e.key){case"ArrowDown":if(n.getKeyBelow){e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null==n.getFirstKey?void 0:n.getFirstKey();null==r&&l&&(r=null==n.getFirstKey?void 0:n.getFirstKey(t.focusedKey)),i(r)}break;case"ArrowUp":if(n.getKeyAbove){e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null==n.getLastKey?void 0:n.getLastKey();null==r&&l&&(r=null==n.getLastKey?void 0:n.getLastKey(t.focusedKey)),i(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){e.preventDefault(),i(n.getKeyLeftOf(t.focusedKey),"rtl"===g?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){e.preventDefault(),i(n.getKeyRightOf(t.focusedKey),"rtl"===g?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,pg(e));t.setFocusedKey(r),pg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,pg(e));t.setFocusedKey(r),pg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault(),i(n.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault(),i(n.getKeyPageAbove(t.focusedKey))}break;case"a":pg(e)&&"multiple"===t.selectionMode&&!0!==u&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),s||t.clearSelection();break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,t,n=Il(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&nn(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let o=e.relatedTarget;var r,i;if(o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)t.setFocusedKey(null!=(r=t.lastSelectedKey)?r:n.getLastKey());else t.setFocusedKey(null!=(i=t.firstSelectedKey)?i:n.getFirstKey())}else if(!h){v.current.scrollTop=m.current.top,v.current.scrollLeft=m.current.left;let e=v.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&(nn(e),hg(v.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:w}=dg({keyboardDelegate:n,selectionManager:t});return d||(x=Yt(w,x)),p||(b=null==t.focusedKey?0:-1),{collectionProps:_t({},x,{tabIndex:b})}}function hg(e,t){let n=vg(e,t,"left"),r=vg(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,s=a+e.offsetWidth,u=l+e.offsetHeight;n<=a?a=n:n+i>s&&(a+=n+i-s),r<=l?l=r:r+o>u&&(l+=r+o-u),e.scrollLeft=a,e.scrollTop=l}function vg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}class gg{constructor(e,t,n,r){this.collection=void 0,this.disabledKeys=void 0,this.ref=void 0,this.collator=void 0,this.collection=e,this.disabledKeys=t,this.ref=n,this.collator=r}getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector('[data-key="'+e+'"]')}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);for(;n&&n.offsetTop>r;)e=this.getKeyAbove(e),n=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);for(;n&&n.offsetTop<r;)e=this.getKeyBelow(e),n=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}}function mg(e,t,n){let{type:r="menu",isDisabled:i}=e,o=Jt(),{triggerProps:a,overlayProps:l}=Rs({type:r},t,n);return{menuTriggerProps:_t({},a,{id:o,onPressStart(e){"touch"!==e.pointerType&&"keyboard"!==e.pointerType&&t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"===e.pointerType&&t.toggle()},onKeyDown:e=>{if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented||i)&&n&&n.current)switch(e.key){case"ArrowDown":case"Enter":case" ":e.preventDefault(),e.stopPropagation(),t.toggle("first");break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.toggle("last")}}}),menuProps:_t({},l,{"aria-labelledby":o})}}const yg=new WeakMap;function bg(e,t){let n=yg.get(e);if(!n)throw new Error("Unknown list");return n.id+"-option-"+("string"==typeof(r=t)?r.replace(/\s*/g,""):""+r);var r}function xg(e,t,n){let r=tn(e,{labelable:!0}),{listProps:i}=function(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,autoFocus:a,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:d=!1,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h}=e,v=bi({usage:"search",sensitivity:"base"}),g=s((()=>o||new gg(n,r,i,v)),[o,n,r,i,v]),{collectionProps:m}=fg({ref:i,selectionManager:t,keyboardDelegate:g,autoFocus:a,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h,isVirtualized:u,scrollRef:i});return{listProps:m}}(_t({},e,{ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys})),{focusWithinProps:o}=nl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=Jt(e.id);yg.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized});let{labelProps:l,fieldProps:u}=Pc(_t({},e,{id:a,labelElementType:"span"}));return{labelProps:l,listBoxProps:Yt(r,o,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},_t({role:"listbox"},Yt(u,i)))}}function wg(e,t,n){var r,o,a,l,s,u;let{key:c}=e,d=yg.get(t),p=null!=(r=e.isDisabled)?r:t.disabledKeys.has(c),f=null!=(o=e.isSelected)?o:t.selectionManager.isSelected(c),h=t.selectionManager.focusedKey===c,v=null!=(a=e.shouldSelectOnPressUp)?a:d.shouldSelectOnPressUp,g=null!=(l=e.shouldFocusOnHover)?l:d.shouldFocusOnHover,m=null!=(s=e.shouldUseVirtualFocus)?s:d.shouldUseVirtualFocus,y=null!=(u=e.isVirtualized)?u:d.isVirtualized,b=$t(),x=$t(),w={role:"option","aria-disabled":p,"aria-selected":"none"!==t.selectionManager.selectionMode?f:void 0};yn()&&Sn()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=b,w["aria-describedby"]=x),y&&(w["aria-posinset"]=t.collection.getItem(c).index+1,w["aria-setsize"]=Af(t.collection));let{itemProps:S}=function(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,isVirtualized:a,shouldUseVirtualFocus:l,focus:s}=e,u=e=>t.select(n,e),c=n===t.focusedKey;i((()=>{c&&t.isFocused&&!l&&document.activeElement!==r.current&&(s?s():wl(r.current))}),[r,c,t.focusedKey,t.childFocusStrategy,t.isFocused,l]);let d={};return l||(d={tabIndex:c?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}}),o?(d.onPressStart=e=>{"keyboard"===e.pointerType&&u(e)},d.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)}):(d.onPressStart=e=>{"touch"!==e.pointerType&&u(e)},d.onPress=e=>{"touch"===e.pointerType&&u(e)}),a||(d["data-key"]=n),{itemProps:d}}({selectionManager:t.selectionManager,key:c,ref:n,shouldSelectOnPressUp:v,isVirtualized:y,shouldUseVirtualFocus:m}),{pressProps:E,isPressed:k}=ja(_t({},S,{isDisabled:p,preventFocusOnPress:m})),{hoverProps:P}=sl({isDisabled:p||!g,onHoverStart(){Qa()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(c))}});return{optionProps:_t({},w,Yt(E,P),{id:bg(t,c)}),labelProps:{id:b},descriptionProps:{id:x},isFocused:h,isSelected:f,isDisabled:p,isPressed:k}}var Sg;Sg=JSON.parse('{"buttonLabel":"عرض المقترحات","countAnnouncement":"{optionCount, plural, one {# خيار} other {# خيارات}} متاحة.","focusAnnouncement":"{isGroupChange, select, true {المجموعة المدخلة {groupTitle}, مع {groupCount, plural, one {# خيار} other {# خيارات}}. } other {}}{optionText}{isSelected, select, true {, محدد} other {}}","listboxLabel":"مقترحات","selectedAnnouncement":"{optionText}، محدد"}');var Eg;Eg=JSON.parse('{"buttonLabel":"Покажи предложения","countAnnouncement":"{optionCount, plural, one {# опция} other {# опции}} на разположение.","focusAnnouncement":"{isGroupChange, select, true {Въведена група {groupTitle}, с {groupCount, plural, one {# опция} other {# опции}}. } other {}}{optionText}{isSelected, select, true {, избрани} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, избрани"}');var kg;kg=JSON.parse('{"buttonLabel":"Zobrazit doporučení","countAnnouncement":"K dispozici {optionCount, plural, one {je # možnost} other {jsou/je # možnosti/-í}}.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina „{groupTitle}“ {groupCount, plural, one {s # možností} other {se # možnostmi}}. } other {}}{optionText}{isSelected, select, true { (vybráno)} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybráno"}');var Pg;Pg=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# mulighed tilgængelig} other {# muligheder tilgængelige}}.","focusAnnouncement":"{isGroupChange, select, true {Angivet gruppe {groupTitle}, med {groupCount, plural, one {# mulighed} other {# muligheder}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Tg;Tg=JSON.parse('{"buttonLabel":"Empfehlungen anzeigen","countAnnouncement":"{optionCount, plural, one {# Option} other {# Optionen}} verfügbar.","focusAnnouncement":"{isGroupChange, select, true {Eingetretene Gruppe {groupTitle}, mit {groupCount, plural, one {# Option} other {# Optionen}}. } other {}}{optionText}{isSelected, select, true {, ausgewählt} other {}}","listboxLabel":"Empfehlungen","selectedAnnouncement":"{optionText}, ausgewählt"}');var Cg;Cg=JSON.parse('{"buttonLabel":"Προβολή προτάσεων","countAnnouncement":"{optionCount, plural, one {# επιλογή} other {# επιλογές }} διαθέσιμες.","focusAnnouncement":"{isGroupChange, select, true {Εισαγμένη ομάδα {groupTitle}, με {groupCount, plural, one {# επιλογή} other {# επιλογές}}. } other {}}{optionText}{isSelected, select, true {, επιλεγμένο} other {}}","listboxLabel":"Προτάσεις","selectedAnnouncement":"{optionText}, επιλέχθηκε"}');var Og;Og=JSON.parse('{"focusAnnouncement":"{isGroupChange, select, true {Entered group {groupTitle}, with {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, selected} other {}}","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} available.","selectedAnnouncement":"{optionText}, selected","buttonLabel":"Show suggestions","listboxLabel":"Suggestions"}');var Ng;Ng=JSON.parse('{"buttonLabel":"Mostrar sugerencias","countAnnouncement":"{optionCount, plural, one {# opción} other {# opciones}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Se ha unido al grupo {groupTitle}, con {groupCount, plural, one {# opción} other {# opciones}}. } other {}}{optionText}{isSelected, select, true {, seleccionado} other {}}","listboxLabel":"Sugerencias","selectedAnnouncement":"{optionText}, seleccionado"}');var jg;jg=JSON.parse('{"buttonLabel":"Kuva soovitused","countAnnouncement":"{optionCount, plural, one {# valik} other {# valikud}} saadaval.","focusAnnouncement":"{isGroupChange, select, true {Sisestatud rühm {groupTitle}, valikuga {groupCount, plural, one {# valik} other {# valikud}}. } other {}}{optionText}{isSelected, select, true {, valitud} other {}}","listboxLabel":"Soovitused","selectedAnnouncement":"{optionText}, valitud"}');var Ag;Ag=JSON.parse('{"buttonLabel":"Näytä ehdotukset","countAnnouncement":"{optionCount, plural, one {# vaihtoehto} other {# vaihtoehdot}} saatavilla.","focusAnnouncement":"{isGroupChange, select, true {Mentiin ryhmään {groupTitle}, {groupCount, plural, one {# vaihtoehdon} other {# vaihtoehdon}} kanssa.} other {}}{optionText}{isSelected, select, true {, valittu} other {}}","listboxLabel":"Ehdotukset","selectedAnnouncement":"{optionText}, valittu"}');var Lg;Lg=JSON.parse('{"buttonLabel":"Afficher les suggestions","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Groupe {groupTitle} saisi, avec {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, sélectionné(s)} other {}}","listboxLabel":"Suggestions","selectedAnnouncement":"{optionText}, sélectionné"}');var Fg;Fg=JSON.parse('{"buttonLabel":"הצג הצעות","countAnnouncement":"{optionCount, plural, one {אפשרות #} other {# אפשרויות}} במצב זמין.","focusAnnouncement":"{isGroupChange, select, true {נכנס לקבוצה {groupTitle}, עם {groupCount, plural, one {אפשרות #} other {# אפשרויות}}. } other {}}{optionText}{isSelected, select, true {, נבחר} other {}}","listboxLabel":"הצעות","selectedAnnouncement":"{optionText}, נבחר"}');var Dg;Dg=JSON.parse('{"buttonLabel":"Prikaži prijedloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena skupina {groupTitle}, s {groupCount, plural, one {# opcijom} other {# opcije/a}}. } other {}}{optionText}{isSelected, select, true {, odabranih} other {}}","listboxLabel":"Prijedlozi","selectedAnnouncement":"{optionText}, odabrano"}');var Rg;Rg=JSON.parse('{"buttonLabel":"Javaslatok megjelenítése","countAnnouncement":"{optionCount, plural, one {# lehetőség} other {# lehetőség}} áll rendelkezésre.","focusAnnouncement":"{isGroupChange, select, true {Belépett a(z) {groupTitle} csoportba, amely {groupCount, plural, one {# lehetőséget} other {# lehetőséget}} tartalmaz. } other {}}{optionText}{isSelected, select, true {, kijelölve} other {}}","listboxLabel":"Javaslatok","selectedAnnouncement":"{optionText}, kijelölve"}');var Ig;Ig=JSON.parse('{"buttonLabel":"Mostra suggerimenti","countAnnouncement":"{optionCount, plural, one {# opzione disponibile} other {# opzioni disponibili}}.","focusAnnouncement":"{isGroupChange, select, true {Ingresso nel gruppo {groupTitle}, con {groupCount, plural, one {# opzione} other {# opzioni}}. } other {}}{optionText}{isSelected, select, true {, selezionato} other {}}","listboxLabel":"Suggerimenti","selectedAnnouncement":"{optionText}, selezionato"}');var Mg;Mg=JSON.parse('{"buttonLabel":"候補を表示","countAnnouncement":"{optionCount, plural, one {# 個のオプション} other {# 個のオプション}}を利用できます。","focusAnnouncement":"{isGroupChange, select, true {入力されたグループ {groupTitle}、{groupCount, plural, one {# 個のオプション} other {# 個のオプション}}を含む。} other {}}{optionText}{isSelected, select, true {、選択済み} other {}}","listboxLabel":"候補","selectedAnnouncement":"{optionText}、選択済み"}');var _g;_g=JSON.parse('{"buttonLabel":"제안 사항 표시","countAnnouncement":"{optionCount, plural, one {#개 옵션} other {#개 옵션}}을 사용할 수 있습니다.","focusAnnouncement":"{isGroupChange, select, true {입력한 그룹 {groupTitle}, {groupCount, plural, one {#개 옵션} other {#개 옵션}}. } other {}}{optionText}{isSelected, select, true {, 선택됨} other {}}","listboxLabel":"제안","selectedAnnouncement":"{optionText}, 선택됨"}');var zg;zg=JSON.parse('{"buttonLabel":"Rodyti pasiūlymus","countAnnouncement":"Yra {optionCount, plural, one {# parinktis} other {# parinktys (-ių)}}.","focusAnnouncement":"{isGroupChange, select, true {Įvesta grupė {groupTitle}, su {groupCount, plural, one {# parinktimi} other {# parinktimis (-ių)}}. } other {}}{optionText}{isSelected, select, true {, pasirinkta} other {}}","listboxLabel":"Pasiūlymai","selectedAnnouncement":"{optionText}, pasirinkta"}');var Kg;Kg=JSON.parse('{"buttonLabel":"Rādīt ieteikumus","countAnnouncement":"Pieejamo opciju skaits: {optionCount, plural, one {# opcija} other {# opcijas}}.","focusAnnouncement":"{isGroupChange, select, true {Ievadīta grupa {groupTitle}, ar {groupCount, plural, one {# opciju} other {# opcijām}}. } other {}}{optionText}{isSelected, select, true {, atlasīta} other {}}","listboxLabel":"Ieteikumi","selectedAnnouncement":"{optionText}, atlasīta"}');var Vg;Vg=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativer}} finnes.","focusAnnouncement":"{isGroupChange, select, true {Angitt gruppe {groupTitle}, med {groupCount, plural, one {# alternativ} other {# alternativer}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Ug;Ug=JSON.parse('{"buttonLabel":"Suggesties weergeven","countAnnouncement":"{optionCount, plural, one {# optie} other {# opties}} beschikbaar.","focusAnnouncement":"{isGroupChange, select, true {Groep {groupTitle} ingevoerd met {groupCount, plural, one {# optie} other {# opties}}. } other {}}{optionText}{isSelected, select, true {, geselecteerd} other {}}","listboxLabel":"Suggesties","selectedAnnouncement":"{optionText}, geselecteerd"}');var Bg;Bg=JSON.parse('{"buttonLabel":"Wyświetlaj sugestie","countAnnouncement":"dostępna/dostępne(-nych) {optionCount, plural, one {# opcja} other {# opcje(-i)}}.","focusAnnouncement":"{isGroupChange, select, true {Dołączono do grupy {groupTitle}, z {groupCount, plural, one {# opcją} other {# opcjami}}. } other {}}{optionText}{isSelected, select, true {, wybrano} other {}}","listboxLabel":"Sugestie","selectedAnnouncement":"{optionText}, wybrano"}');var qg;qg=JSON.parse('{"buttonLabel":"Mostrar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo inserido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var Wg;Wg=JSON.parse('{"buttonLabel":"Apresentar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo introduzido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var Gg;Gg=JSON.parse('{"buttonLabel":"Afișare sugestii","countAnnouncement":"{optionCount, plural, one {# opțiune} other {# opțiuni}} disponibile.","focusAnnouncement":"{isGroupChange, select, true {Grup {groupTitle} introdus, cu {groupCount, plural, one {# opțiune} other {# opțiuni}}. } other {}}{optionText}{isSelected, select, true {, selectat} other {}}","listboxLabel":"Sugestii","selectedAnnouncement":"{optionText}, selectat"}');var Jg;Jg=JSON.parse('{"buttonLabel":"Показать предложения","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметров}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введенная группа {groupTitle}, с {groupCount, plural, one {# параметром} other {# параметрами}}. } other {}}{optionText}{isSelected, select, true {, выбранными} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, выбрано"}');var Hg;Hg=JSON.parse('{"buttonLabel":"Zobraziť návrhy","countAnnouncement":"{optionCount, plural, one {# možnosť} other {# možnosti/-í}} k dispozícii.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina {groupTitle}, s {groupCount, plural, one {# možnosťou} other {# možnosťami}}. } other {}}{optionText}{isSelected, select, true {, vybraté} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybraté"}');var $g;$g=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Na voljo je {optionCount, plural, one {# opcija} other {# opcije}}.","focusAnnouncement":"{isGroupChange, select, true {Vnesena skupina {groupTitle}, z {groupCount, plural, one {# opcija} other {# opcije}}. } other {}}{optionText}{isSelected, select, true {, izbrano} other {}}","listboxLabel":"Predlogi","selectedAnnouncement":"{optionText}, izbrano"}');var Xg;Xg=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena grupa {groupTitle}, s {groupCount, plural, one {# opcijom} other {# optione/a}}. } other {}}{optionText}{isSelected, select, true {, izabranih} other {}}","listboxLabel":"Predlozi","selectedAnnouncement":"{optionText}, izabrano"}');var Yg;Yg=JSON.parse('{"buttonLabel":"Visa förslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativ}} tillgängliga.","focusAnnouncement":"{isGroupChange, select, true {Ingick i gruppen {groupTitle} med {groupCount, plural, one {# alternativ} other {# alternativ}}. } other {}}{optionText}{isSelected, select, true {, valda} other {}}","listboxLabel":"Förslag","selectedAnnouncement":"{optionText}, valda"}');var Zg;Zg=JSON.parse('{"buttonLabel":"Önerileri göster","countAnnouncement":"{optionCount, plural, one {# seçenek} other {# seçenekler}} kullanılabilir.","focusAnnouncement":"{isGroupChange, select, true {Girilen grup {groupTitle}, ile {groupCount, plural, one {# seçenek} other {# seçenekler}}. } other {}}{optionText}{isSelected, select, true {, seçildi} other {}}","listboxLabel":"Öneriler","selectedAnnouncement":"{optionText}, seçildi"}');var Qg;Qg=JSON.parse('{"buttonLabel":"Показати пропозиції","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметри(-ів)}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введена група {groupTitle}, з {groupCount, plural, one {# параметр} other {# параметри(-ів)}}. } other {}}{optionText}{isSelected, select, true {, вибрано} other {}}","listboxLabel":"Пропозиції","selectedAnnouncement":"{optionText}, вибрано"}');var em;em=JSON.parse('{"buttonLabel":"显示建议","countAnnouncement":"有 {optionCount, plural, one {# 个选项} other {# 个选项}}可用。","focusAnnouncement":"{isGroupChange, select, true {进入了 {groupTitle} 组,其中有 {groupCount, plural, one {# 个选项} other {# 个选项}}. } other {}}{optionText}{isSelected, select, true {, 已选择} other {}}","listboxLabel":"建议","selectedAnnouncement":"{optionText}, 已选择"}');var tm;tm=JSON.parse('{"buttonLabel":"顯示建議","countAnnouncement":"{optionCount, plural, one {# 選項} other {# 選項}} 可用。","focusAnnouncement":"{isGroupChange, select, true {輸入的群組 {groupTitle}, 有 {groupCount, plural, one {# 選項} other {# 選項}}. } other {}}{optionText}{isSelected, select, true {, 已選取} other {}}","listboxLabel":"建議","selectedAnnouncement":"{optionText}, 已選取"}');const nm={"ar-AE":Wl(Sg).default,"bg-BG":Wl(Eg).default,"cs-CZ":Wl(kg).default,"da-DK":Wl(Pg).default,"de-DE":Wl(Tg).default,"el-GR":Wl(Cg).default,"en-US":Wl(Og).default,"es-ES":Wl(Ng).default,"et-EE":Wl(jg).default,"fi-FI":Wl(Ag).default,"fr-FR":Wl(Lg).default,"he-IL":Wl(Fg).default,"hr-HR":Wl(Dg).default,"hu-HU":Wl(Rg).default,"it-IT":Wl(Ig).default,"ja-JP":Wl(Mg).default,"ko-KR":Wl(_g).default,"lt-LT":Wl(zg).default,"lv-LV":Wl(Kg).default,"nb-NO":Wl(Vg).default,"nl-NL":Wl(Ug).default,"pl-PL":Wl(Bg).default,"pt-BR":Wl(qg).default,"pt-PT":Wl(Wg).default,"ro-RO":Wl(Gg).default,"ru-RU":Wl(Jg).default,"sk-SK":Wl(Hg).default,"sl-SI":Wl($g).default,"sr-SP":Wl(Xg).default,"sv-SE":Wl(Yg).default,"tr-TR":Wl(Zg).default,"uk-UA":Wl(Qg).default,"zh-CN":Wl(em).default,"zh-TW":Wl(tm).default};function rm(e,t){var n,r;let{buttonRef:o,popoverRef:l,inputRef:u,listBoxRef:c,keyboardDelegate:d,isReadOnly:p,isDisabled:f}=e,h=mi(nm),{menuTriggerProps:v,menuProps:g}=mg({type:"listbox"},t,o);yg.set(t,{id:g.id});let m=s((()=>d||new gg(t.collection,t.disabledKeys,c)),[d,t.collection,t.disabledKeys,c]),{collectionProps:y}=fg({selectionManager:t.selectionManager,keyboardDelegate:m,disallowTypeAhead:!0,disallowEmptySelection:!0,ref:u,isVirtualized:!0}),{labelProps:b,inputProps:x,descriptionProps:w,errorMessageProps:S}=Cc(_t({},e,{onChange:t.setInputValue,onKeyDown:!p&&Xt(t.isOpen&&y.onKeyDown,(e=>{switch(e.key){case"Enter":case"Tab":t.isOpen&&"Enter"===e.key&&e.preventDefault(),t.commit();break;case"Escape":t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}})),onBlur:n=>{var r;n.relatedTarget===(null==o?void 0:o.current)||null!=(r=l.current)&&r.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off"}),u),E=un({id:v.id,"aria-label":h("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||b.id}),k=un({id:g.id,"aria-label":h("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||b.id}),P=a(0),T=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,C=null!=(n=null==T?void 0:T.parentKey)?n:null,O=null!=(r=t.selectionManager.focusedKey)?r:null,N=a(C),j=a(O);i((()=>{if(wn()&&null!=T&&O!==j.current){let e=t.selectionManager.isSelected(O),n=null!=C?t.collection.getItem(C):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"";Hc(h("focusAnnouncement",{isGroupChange:n&&C!==N.current,groupTitle:r,groupCount:n?[...n.childNodes].length:0,optionText:T["aria-label"]||T.textValue||"",isSelected:e}))}N.current=C,j.current=O}));let A=Af(t.collection),L=a(A),F=a(t.isOpen);i((()=>{let e=t.isOpen!==F.current&&(null==t.selectionManager.focusedKey||wn());if(t.isOpen&&(e||A!==L.current)){Hc(h("countAnnouncement",{optionCount:A}))}L.current=A,F.current=t.isOpen}));let D=a(t.selectedKey);return i((()=>{if(wn()&&t.isFocused&&t.selectedItem&&t.selectedKey!==D.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"";Hc(h("selectedAnnouncement",{optionText:e}))}D.current=t.selectedKey})),i((()=>{if(t.isOpen)return function(e,t){void 0===t&&(t=document.body);let n=new Set(e),r=new Set,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&n.add(t),n.has(t)||r.has(t.parentElement)?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some((e=>t.contains(e)))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT)}),o=e=>{var t;let n=null!=(t=Cu.get(e))?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),Cu.set(e,n+1))},a=i.nextNode();for(;null!=a;)o(a),a=i.nextNode();let l=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target))))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?n.add(e):e instanceof Element&&o(e)}));return l.observe(t,{childList:!0,subtree:!0}),()=>{l.disconnect();for(let e of r){let t=Cu.get(e);1===t?(e.removeAttribute("aria-hidden"),Cu.delete(e)):Cu.set(e,t-1)}}}([u.current,l.current])}),[t.isOpen,u,l]),{labelProps:b,buttonProps:_t({},v,E,{excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(u.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(u.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))}}),inputProps:Yt(x,{role:"combobox","aria-expanded":v["aria-expanded"],"aria-controls":t.isOpen?g.id:void 0,"aria-autocomplete":"list","aria-activedescendant":T?bg(t,T.key):void 0,onTouchEnd:e=>{if(f||p)return;if(e.timeStamp-P.current<500)return e.preventDefault(),void u.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],i=Math.ceil(n.left+.5*n.width),o=Math.ceil(n.top+.5*n.height);r.clientX===i&&r.clientY===o&&(e.preventDefault(),u.current.focus(),t.toggle(null,"manual"),P.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Yt(g,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:w,errorMessageProps:S}}function im(e,t,n){let{keyboardDelegate:r,isDisabled:i}=e,o=bi({usage:"search",sensitivity:"base"}),a=s((()=>r||new gg(t.collection,t.disabledKeys,null,o)),[r,t.collection,t.disabledKeys,o]),{menuTriggerProps:l,menuProps:u}=mg({isDisabled:i,type:"listbox"},t,n),{typeSelectProps:c}=dg({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{labelProps:d,fieldProps:p,descriptionProps:f,errorMessageProps:h}=Tc(_t({},e,{labelElementType:"span"}));c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture;let v=tn(e,{labelable:!0}),g=Yt(c,l,p),m=Jt();return{labelProps:_t({},d,{onClick:()=>{var t;e.isDisabled||(n.current.focus(),Ka=t="keyboard",Ga(t,null))}}),triggerProps:Yt(v,_t({},g,{onKeyDown:Xt(g.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyAbove(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyBelow(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[g["aria-labelledby"],g["aria-label"]&&!g["aria-labelledby"]?g.id:null,m].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),t.setFocused(!1))}})),valueProps:{id:m},menuProps:_t({},u,{autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},"aria-labelledby":[p["aria-labelledby"],g["aria-label"]&&!p["aria-labelledby"]?g.id:null].filter(Boolean).join(" ")}),descriptionProps:f,errorMessageProps:h}}function om(e,t,n){var r;let{name:a,isDisabled:l}=e,s=function(){Za();let[e,t]=o(Ka);return i((()=>{let e=()=>{t(Ka)};return Va.add(e),()=>{Va.delete(e)}}),[]),e}(),{visuallyHiddenProps:u}=Bl();return{containerProps:_t({},u,{"aria-hidden":!0}),inputProps:{type:"text",tabIndex:null==s||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,disabled:l,name:a,size:t.collection.size,value:null!=(r=t.selectedKey)?r:"",onChange:e=>t.setSelectedKey(e.target.value)}}}function am(e){let{state:n,triggerRef:r,label:i,name:o,isDisabled:a}=e,{containerProps:l,inputProps:s,selectProps:u}=om(e,n,r);return n.collection.size<=300?t.createElement("div",l,t.createElement("input",s),t.createElement("label",null,i,t.createElement("select",u,t.createElement("option",null),[...n.collection.getKeys()].map((e=>{let r=n.collection.getItem(e);if("item"===r.type)return t.createElement("option",{key:r.key,value:r.key},r.textValue)}))))):o?t.createElement("input",{type:"hidden",name:o,disabled:a,value:n.selectedKey}):null}var lm=function(){return M.jsx("svg",k({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},sm={display:"grid",position:"relative"},um={display:"grid",flow:"column",gridColumns:{"":"1fr auto","with-prefix":"auto 1fr auto"},placeItems:"center stretch",placeContent:"center stretch",gap:"1x",padding:{"":"(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)",'[data-size="small"]':"(.75x - 1px) 1x (.75x - 1px) (1.5x - 1px)"},border:{"":!0,invalid:"#danger-text.50",valid:"#success-text.50",focused:!0},radius:!0,reset:"input",preset:"default",outline:{"":"#purple-03.0",focused:"#purple-03"},color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#dark.04"},fontWeight:400,textAlign:"left",cursor:"pointer"},cm={position:"absolute"},dm={display:"flex",gap:".5x",flow:"column",margin:"0",padding:".5x",listStyle:"none",radius:!0,fill:"#white",shadow:"0px 4px 16px #shadow",height:"initial 30x",overflow:"hidden auto",styledScrollbar:!0},pm={display:"block",padding:"(1x - 1px) (1.5x - 1px)",cursor:"pointer",radius:!0,fill:{"":"#white",focused:"#dark.04",selected:"#purple","focused & selected":"#purple-text",disabled:"#dark.04"},color:{"":"#dark.85",selected:"#white",disabled:"#dark.30"},preset:"t3m"};function fm(e){var t=e.state,n=e.popoverRef,r=e.listBoxRef,i=e.listBoxStyles,o=e.overlayStyles,a=e.optionStyles,l=e.overlayProps,s=e.disallowEmptySelection,u=e.shouldUseVirtualFocus,c=void 0!==u&&u,d=e.placement,p=e.minWidth,f=P(e,["state","popoverRef","listBoxRef","listBoxStyles","overlayStyles","optionStyles","overlayProps","disallowEmptySelection","shouldUseVirtualFocus","placement","minWidth"]),h=xg(k({autoFocus:t.focusStrategy||!0,disallowEmptySelection:s,shouldUseVirtualFocus:c},f),t,r).listBoxProps;i=k(k(k({},dm),Mi("ListBoxPopup")),i);var v=Ds({onClose:function(){return t.close()},shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},n).overlayProps;return M.jsx(Bo,k({styles:k(k({minWidth:p?p+"px":"initial"},cm),{overlayStyles:o})},l,v,{css:uc({placement:d}),"data-position":d,ref:n},{children:M.jsxs(Tl,k({restoreFocus:!0},{children:[M.jsx(Tu,{onDismiss:function(){return t.close()}},void 0),M.jsx(Bo,k({as:"ul",styles:i},Yt(h,f),{ref:r},{children:Array.from(t.collection).map((function(e){return M.jsx(hm,{item:e,state:t,styles:a,shouldUseVirtualFocus:c},e.key)}))}),void 0),M.jsx(Tu,{onDismiss:function(){return t.close()}},void 0)]}),void 0)}),void 0)}function hm(e){var t=e.item,n=e.state,r=e.styles,i=e.shouldUseVirtualFocus,l=a(null),s=n.disabledKeys.has(t.key),u=n.selectionManager.isSelected(t.key),c=n.selectionManager.focusedKey===t.key;r=k(k(k({},pm),Mi("Option")),r);var d=wg({key:t.key,isDisabled:s,isSelected:u,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,shouldUseVirtualFocus:i},n,l).optionProps,p=N(o(!1),2),f=p[0],h=za({onFocusChange:p[1]}).focusProps;return g(Bo,k({as:"li"},Yt(d,h),{ref:l,mods:{selected:u,focused:i?c:f,disabled:s},"data-theme":u?"special":void 0,styles:r,key:t.key}),t.rendered)}var vm=Object.assign(h((function(e,t){var n,r=(e=xa(e=Ui(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.autoFocus,e.inputProps;var v=e.triggerRef,g=e.popoverRef,m=e.listBoxRef,y=e.isLoading;e.loadingIndicator;var b=e.overlayOffset,x=void 0===b?8:b,w=e.inputStyles,S=e.optionStyles,E=e.suffix,T=e.disallowEmptySelection,C=e.listBoxStyles,O=e.overlayStyles,N=e.message,j=e.direction,A=void 0===j?"bottom":j,L=e.shouldFlip,F=void 0===L||L,D=e.requiredMark,R=void 0===D||D,I=e.placeholder,_=e.tooltip,z=e.size,K=e.styles,V=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","autoFocus","inputProps","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","overlayOffset","inputStyles","optionStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","message","direction","shouldFlip","requiredMark","placeholder","tooltip","size","styles"]),U=function(e){let t=tg(e),n=sg(_t({},e,{onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close()}})),[r,i]=o(!1);return _t({},n,t,{open(){0!==n.collection.size&&t.open()},toggle(e){0!==n.collection.size&&t.toggle(e)},isFocused:r,setFocused:i})}(e),B=co(V,Zo,k(k(k({},sm),Mi("Select_Wrapper",V)),K));w=co(V,Go,k(k(k({},um),Mi("Select",V)),w)),t=zo(t),v=zo(v),g=zo(g),m=zo(m);var q=im(e,U,v),W=q.labelProps,G=q.triggerProps,J=q.valueProps,H=q.menuProps,$=As({targetRef:v,overlayRef:g,scrollRef:m,placement:A+" end",shouldFlip:F,isOpen:U.isOpen,onClose:U.close,offset:x}),X=$.overlayProps,Y=$.placement,Z=dl({isDisabled:h},!0),Q=Z.isFocused,ee=Z.focusProps,te=sl({isDisabled:h}),ne=te.hoverProps,re=te.isHovered,ie=jc(G,v).buttonProps,oe="invalid"===d,ae=oe?M.jsx(Ft,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),le=f(ae),se=null===(n=null==v?void 0:v.current)||void 0===n?void 0:n.offsetWidth,ue=M.jsxs(Bo,k({qa:"SelectWrapper",mods:{invalid:oe,valid:"valid"===d,disabled:h,hovered:re,focused:Q},styles:B,"data-size":z},{children:[M.jsx(am,{state:U,triggerRef:v,label:e.label,name:e.name},void 0),M.jsxs(Bo,k({qa:r||"Select",as:"button"},Yt(ie,ne,ee),{ref:v,styles:w,"data-size":z,mods:{invalid:oe,valid:"valid"===d,disabled:h,hovered:re,focused:Q,"with-prefix":!!p}},{children:[p,M.jsx("span",k({},J,{children:U.selectedItem?U.selectedItem.rendered:I}),void 0),(d||y||E)&&M.jsxs("div",{children:[d&&!y?le:null,y&&M.jsx(Ct,{},void 0),E]},void 0),M.jsx(lm,{},void 0)]}),void 0),M.jsx(ec,k({isOpen:U.isOpen&&!h},{children:M.jsx(fm,k({},H,{popoverRef:g,listBoxRef:m,overlayProps:X,placement:Y,state:U,disallowEmptySelection:T,listBoxStyles:C,overlayStyles:O,optionStyles:S,minWidth:se}),void 0)}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:l,label:i,styles:K,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:W,isDisabled:h,validationState:d,message:N,requiredMark:R,tooltip:_,Component:ue,ref:t}),void 0)})),{Item:Pf});vm.cubeInputType="Select";var gm=function(){return M.jsx("svg",k({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},mm={position:"relative",display:"grid"},ym=k(k({},Ec),{width:"100%"}),bm={display:"grid",placeItems:"center",placeContent:"center",placeSelf:"stretch",radius:"right",padding:"0 1x",color:"inherit",border:0,fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#clear"},cursor:"pointer"};var xm=Object.assign(h((function(e,t){var n,r=(e=xa(e=Ui(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.multiLine,e.autoFocus;var v=e.inputRef,g=e.triggerRef,m=e.popoverRef,y=e.listBoxRef,b=e.isLoading;e.loadingIndicator;var x=e.overlayOffset,w=void 0===x?8:x,S=e.inputStyles,E=e.optionStyles,T=e.triggerStyles,C=e.suffix,O=e.disallowEmptySelection,j=e.listBoxStyles,A=e.overlayStyles,L=e.hideTrigger,F=e.message,D=e.size,R=e.autoComplete,I=void 0===R?"off":R,_=e.direction,z=void 0===_?"bottom":_,K=e.shouldFlip,V=void 0===K||K,U=e.requiredMark,B=void 0===U||U,q=e.menuTrigger,W=void 0===q?"input":q,G=e.loadingState,J=e.filter,H=e.styles,$=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","multiLine","autoFocus","inputRef","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","overlayOffset","inputStyles","optionStyles","triggerStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","hideTrigger","message","size","autoComplete","direction","shouldFlip","requiredMark","menuTrigger","loadingState","filter","styles"]),X=null!=G,Y=function(e){let t=bi(_t({usage:"search"},e));return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,i=(n=n.normalize("NFC")).length;for(;r+i<=e.length;r++){let o=e.slice(r,r+i);if(0===t.compare(n,o))return!0}return!1}}}({sensitivity:"base"}).contains,Z=N(o(0),2),Q=Z[0],ee=Z[1],te=N(o(0),2),ne=te[0],re=te[1],ie=ug(k(k({},e),{defaultFilter:J||Y,allowsEmptyCollection:X})),oe=co($,Zo,k(k(k({},mm),Mi("ComboBox_Wrapper",e)),H));S=co($,Go,k(k(k({},ym),Mi("ComboBox",e)),S)),T=k(k(k({},bm),Mi("ComboBox_Trigger",e)),T),t=zo(t),v=zo(v),g=zo(g),m=zo(m),y=zo(y);var ae=rm(k(k({},e),{inputRef:v,buttonRef:g,listBoxRef:y,popoverRef:m,menuTrigger:W}),ie),le=ae.labelProps,se=ae.inputProps,ue=ae.listBoxProps,ce=ae.buttonProps,de=As({targetRef:g,overlayRef:m,scrollRef:y,placement:z+" end",shouldFlip:V,isOpen:ie.isOpen,onClose:ie.close,offset:w}),pe=de.overlayProps,fe=de.placement;p&&(S.paddingLeft=ne+"px"),S.paddingRight=Q+"px";var he=dl({isDisabled:h}),ve=he.isFocused,ge=he.focusProps,me=sl({isDisabled:h}),ye=me.hoverProps,be=me.isHovered,xe=jc(ce,g),we=xe.buttonProps,Se=xe.isPressed,Ee=sl({isDisabled:h}),ke=Ee.hoverProps,Pe=Ee.isHovered,Te=dl({isDisabled:h},!0),Ce=Te.focusProps,Oe=Te.isFocused,Ne="invalid"===d,je=Ne?M.jsx(Ft,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),Ae=f(je),Le=null===(n=null==v?void 0:v.current)||void 0===n?void 0:n.offsetWidth,Fe=M.jsxs(Bo,k({ref:t,qa:"ComboBoxWrapper"},Fo({invalid:Ne,valid:"valid"===d,disabled:h,hovered:be,focused:ve}),{styles:oe,style:{zIndex:ve?1:"initial"},"data-size":D},{children:[M.jsx(Bo,k({qa:r||"ComboBox",as:"input"},Yt(se,ye,ge),{ref:v,autoComplete:I,styles:S},Fo({invalid:Ne,valid:"valid"===d,disabled:h,hovered:be,focused:ve}),{"data-size":D}),void 0),p?M.jsx(fl,k({onWidthChange:re,padding:"0 1x 0 1.5x",opacity:!!h&&"@disabled-opacity",placeItems:"center",outerGap:0},{children:p}),void 0):null,M.jsxs(vl,k({onWidthChange:ee,opacity:!!h&&"@disabled-opacity"},{children:[d||b?M.jsxs(bc,k({gap:!1,padding:"0 1x"},{children:[d&&!b?Ae:null,b&&M.jsx(Ct,{},void 0)]}),void 0):null,C,L?null:M.jsx(Bo,k({as:"button"},Yt(we,Ce,ke),Fo({pressed:Se,focused:Oe,hovered:Pe,disabled:h}),{"data-size":D,isDisabled:h,ref:g,styles:T},{children:M.jsx(gm,{},void 0)}),void 0)]}),void 0),M.jsx(ec,k({isOpen:ie.isOpen&&!h},{children:M.jsx(fm,k({},ue,{listBoxRef:y,popoverRef:m,overlayProps:pe,shouldUseVirtualFocus:!0,placement:fe,state:ie,disallowEmptySelection:O,listBoxStyles:j,overlayStyles:A,optionStyles:E,minWidth:Le}),void 0)}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:l,label:i,styles:H,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:le,isDisabled:h,validationState:d,message:F,requiredMark:B,Component:Fe,ref:t}),void 0)})),{cubeInputType:"ComboBox",Item:Pf}),wm={display:"grid",gap:"1x",flow:"row",fill:"#purple",color:"#white",radius:"round",placeContent:"center",width:"@avatar-size @avatar-size @avatar-size",height:"@avatar-size @avatar-size @avatar-size",fontSize:"calc(@avatar-size / 2)",lineHeight:"calc(@avatar-size / 2)",fontWeight:500},Sm=h((function(e,t){var n=e.size,r=void 0===n?"4x":n,i=e.icon,o=e.children,a=P(e,["size","icon","children"]),l=co(a,Yo,k(k({},wm),{"--avatar-size":r}));return M.jsxs(Bo,k({},oa(a,{eventProps:!0}),{styles:l,ref:t,"data-theme":"special"},{children:[i,o]}),void 0)})),Em=n({});var km=j(j(j([],N(qo),!1),N($o),!1),N(Go),!1),Pm={pointerEvents:"auto",position:"relative",display:"grid",gridAreas:'"hero hero hero hero hero hero"\n ". . . . . ."\n ". heading heading header header ."\n "divider divider divider divider divider divider"\n ". content content content content ."\n ". buttonGroup buttonGroup footer footer ."\n ". . . . . ."',gridColumns:"@dialog-padding-h auto 1fr auto auto @dialog-padding-h",gridRows:"auto @dialog-heading-padding-v auto auto 1fr auto @dialog-content-padding-v",placeItems:"baseline stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},gap:0,flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},transform:{"":!1,'[data-type="modal"]':"translate(0, ((50vh - 50%) / -3))"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-content-gap":"3x"},Tm={position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",display:"flex",placeContent:"center"},Cm={},Om={S:"small",M:"medium",L:"large"},Nm={small:360,medium:479,large:798},jm={"en-US":{dismiss:"Dismiss",alert:"Alert"}};var Am=h((function(e,t){var n=r(Em)||{},o=n.type,a=void 0===o?"modal":o,l=P(n,["type"]),s=e.qa,u=e.children,c=e.size,d=void 0===c?"S":c,p=e.isDismissable,f=void 0===p?l.isDismissable:p,h=e.onDismiss,v=void 0===h?l.onClose:h,g=e.closeIcon,m=P(e,["qa","children","size","isDismissable","onDismiss","closeIcon"]);d=Om[d.toUpperCase()]||d;var y,b=k(k(k(k({},Pm),Mi("Dialog",e)),co(m,km)),{"@dialog-size":(Nm[d]||288)+"px"}),x=mi(jm),w=Si(t),S=function(e,t){let{role:n="dialog"}=e,r=$t();return r=e["aria-label"]?void 0:r,i((()=>{if(t.current&&!t.current.contains(document.activeElement)){wl(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(t.current.blur(),wl(t.current))}),500);return()=>{clearTimeout(e)}}}),[t]),{dialogProps:_t({},tn(e,{labelable:!0}),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r}),titleProps:{id:r}}}(Lo(l,e),w),E=S.dialogProps,T=S.titleProps;"popover"!==a&&"tray"!==a||(y=M.jsx(Tu,{onDismiss:v},void 0));var C={heading:k({level:2,preset:"h4",styles:Cm},T),divider:{styles:{margin:"@dialog-heading-padding-v 0 @dialog-content-gap 0"}},content:{styles:{flexGrow:1,margin:{"":"@dialog-content-gap bottom",":last-child":"0"},gap:"@dialog-content-gap"}},header:{styles:{display:"flex",gap:"1x",placeItems:"baseline stretch",padding:!!f&&"4x right",textAlign:"right"}},footer:{styles:{display:"grid",gap:"1x",flow:"column",placeItems:"baseline stretch",textAlign:"right"}}};return M.jsx(Tl,k({contain:!0,restoreFocus:!0},{children:M.jsxs(Bo,k({"data-id":"Dialog","data-qa":s||"Dialog",styles:b,as:"section"},E,{mods:{dismissable:f},"data-type":a,"data-size":d,ref:w},{children:[y,M.jsxs(Io,k({slots:C},{children:[f&&M.jsx(Vc,{qa:"ModalCloseButton",type:"neutral",styles:Tm,icon:g||M.jsx(Ye,{},void 0),"aria-label":x("dismiss"),onPress:function(){return v&&v()}},void 0),u]}),void 0)]}),void 0)}),void 0)})),Lm={entering:!1,entered:!0};function Fm(e){return M.jsx(Wu,k({timeout:{enter:0,exit:350}},e,{children:function(t){return d.map(e.children,(function(e){return e&&f(e,{isOpen:!!Lm[t]})}))}}),void 0)}var Dm=h((function(e,t){var n=e.children,r=e.isOpen,i=e.container,a=e.onEnter,s=e.onEntering,u=e.onEntered,c=e.onExit,d=e.onExiting,p=e.onExited,f=N(o(!r),2),h=f[0],v=f[1],g=Ui({}).root,m=l((function(){v(!1),u&&u()}),[u]),y=l((function(){v(!0),p&&p()}),[p]);if(!(r||!h))return null;var b=M.jsx(Vi,k({ref:t},{children:M.jsx(Fm,k({in:r,appear:!0,onExit:c,onExiting:d,onExited:y,onEnter:a,onEntering:s,onEntered:m},{children:n}),void 0)}),void 0);return w(b,i||g||document.body)})),Rm={position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:1,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"},Im=h((function(e,t){var n=e.isOpen,r=P(e,["isOpen"]),i=k(k({},Rm),Mi("Underlay"));return M.jsx(Bo,k({ref:t,"data-qa":"Underlay",styles:i,mods:{open:n}},r),void 0)})),Mm={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"@cube-visual-viewport-height",pointerEvents:"none",zIndex:2,transition:"visibility 0ms linear .13s"},_m={display:"grid",zIndex:2,height:{"":"max (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"@cube-visual-viewport-height @cube-visual-viewport-height",'[data-type="fullscreen"]':"(@cube-visual-viewport-height * .9) (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"]':"@cube-visual-viewport-height @cube-visual-viewport-height"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, visibility 0ms linear, transform .25s ease-in-out",transform:{"":"translate(0, 0) scale(1, 1)",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:".9999"}};var zm=h((function(e,t){var n=e.qa,r=e.children,i=e.isOpen,o=e.type,a=e.placement,l=e.styles,s=e.overlayProps,u=P(e,["qa","children","isOpen","type","placement","styles","overlayProps"]);l=k(k(k({},_m),Mi("Modal",e)),l),_s();var c=qs().modalProps,d={"--cube-visual-viewport-height":hn().height+"px"};return M.jsx(Bo,k({qa:"ModalWrapper",mods:{open:i},"data-type":o,"data-placement":a,styles:Mm,style:d},{children:M.jsx(Bo,k({qa:n||"Modal",styles:l,mods:{open:i},"data-type":o,"data-placement":a},Lo(u,s,c),{ref:t},{children:r}),void 0)}),void 0)})),Km=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.type,a=e.styles,l=P(e,["qa","children","onClose","type","styles"]),s=Si(t),u=Ds(e,s),c=u.overlayProps,d=u.underlayProps;return M.jsxs(Dm,k({},l,{children:["fullscreenTakeover"!==o&&M.jsx(Im,k({},d),void 0),M.jsx(zm,k({qa:n,onClose:i,type:o,ref:s,overlayProps:c,styles:a},{children:r}),void 0)]}),void 0)})),Vm={zIndex:2,height:"max (@cube-visual-viewport-height * .9)",width:"288px 90vw",pointerEvents:"auto",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear",opacity:{"":0,open:".9999"}};var Um=h((function(e,t){var n=e.qa,r=e.children,l=e.isOpen,s=e.styles,u=e.isFixedHeight,c=e.isNonModal,d=e.overlayProps,p=P(e,["qa","children","isOpen","styles","isFixedHeight","isNonModal","overlayProps"]);_s();var f=qs({isDisabled:c}).modalProps;s=k(k(k({},Vm),Mi("Tray",e)),s);var h=hn(),v=N(o(h.height),2),g=v[0],m=v[1],y=a();i((function(){y.current&&clearTimeout(y.current),h.height<g&&h.height<window.innerHeight?y.current=setTimeout((function(){m(h.height)}),500):m(h.height)}),[g,h.height]);var b={"--cube-visual-viewport-height":g+"px"},x=Lo(p,d);return M.jsx(Bo,k({qa:"TrayWrapper",mods:{open:l},styles:k(k({},Mm),{placeContent:"end center",placeItems:"end center"}),style:b},{children:M.jsx(Bo,k({qa:n||"Tray",styles:s,mods:{open:l,"fixed-height":u}},x,f,{ref:t},{children:r}),void 0)}),void 0)})),Bm=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.isFixedHeight,a=e.isNonModal,l=e.styles,s=P(e,["qa","children","onClose","isFixedHeight","isNonModal","styles"]),u=Si(t),c=Ds(k(k({},e),{isDismissable:!0}),u),d=c.overlayProps,p=c.underlayProps;return M.jsxs(Dm,k({},s,{children:[M.jsx(Im,k({},p),void 0),M.jsx(Um,k({qa:n,onClose:i,ref:u,overlayProps:d,isFixedHeight:o,isNonModal:a,styles:l},{children:r}),void 0)]}),void 0)})),qm={pointerEvents:"auto",position:"absolute",transition:"opacity .120s linear, visibility 0ms linear, transform .120s ease-in-out",transform:{"":"scale(1, .9)",open:"scale(1, 1)"},opacity:{"":0,open:".9999"},transformOrigin:{"":"top center",'[data-placement="top"]':"bottom center"}};var Wm=h((function(e,t){var n=e.qa,r=e.children,i=e.placement,o=void 0===i?"bottom":i;e.arrowProps;var a=e.isOpen,l=e.style,s=e.styles;e.shouldCloseOnBlur,e.isKeyboardDismissDisabled;var u=e.isNonModal,c=e.isDismissable,d=P(e,["qa","children","placement","arrowProps","isOpen","style","styles","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]),p=Ds(k(k({},e),{isDismissable:c&&a}),t).overlayProps,f=qs({isDisabled:u}).modalProps;return s=k(k(k({},qm),Mi("Popover",e)),s),M.jsx(Bo,k({qa:n||"Popover"},Yt(d,p,f),{styles:s,ref:t,mods:{open:a},"data-placement":o,role:"presentation",style:l},{children:r}),void 0)})),Gm=h((function(e,t){var n=e.qa,r=e.style,i=e.styles,o=e.children,a=e.placement,l=e.arrowProps,s=e.onClose,u=e.shouldCloseOnBlur,c=e.isKeyboardDismissDisabled,d=e.isNonModal,p=e.isDismissable,f=void 0===p||p,h=P(e,["qa","style","styles","children","placement","arrowProps","onClose","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]);return M.jsx(Dm,k({},h,{children:M.jsx(Wm,k({qa:n,ref:t,style:r,styles:i,placement:a,arrowProps:l,onClose:s,shouldCloseOnBlur:u,isKeyboardDismissDisabled:c,isNonModal:d,isDismissable:f},{children:o}),void 0)}),void 0)}));var Jm=function(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,l=e.mobileType,s=void 0===l?"popover"===r?"modal":r:l,u=e.hideArrow,c=e.targetRef,d=e.onDismiss,p=e.isDismissable,f=void 0===p||p,h=e.isKeyboardDismissDisabled,v=e.styles,g=e.mobileViewport,m=void 0===g?700:g,y=P(e,["children","type","mobileType","hideArrow","targetRef","onDismiss","isDismissable","isKeyboardDismissDisabled","styles","mobileViewport"]);if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");var b=N(t,2),x=b[0],w=b[1];(function(e){let t="undefined"!=typeof window&&"function"==typeof window.matchMedia,[n,r]=o((()=>!!t&&window.matchMedia(e).matches));return i((()=>{if(!t)return;let n=window.matchMedia(e),i=e=>{r(e.matches)};return n.addListener(i),()=>{n.removeListener(i)}}),[t,e]),!qt()&&n})("(max-width: "+m+"px)")&&("modal"!==r&&"modal"===s&&(f=!0),r=s);var S=Ou(e),E=a(!1),T=a(!1),C=function(){return T.current=!0},O=function(){return T.current=!1};function j(){f&&(d&&d(),S.close())}return E.current=S.isOpen,i((function(){return function(){(E.current||T.current)&&"popover"!==r&&"tray"!==r&&console.warn("CubeUIKit: A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")}}),[]),"popover"===r?M.jsx(Hm,k({},y,{state:S,targetRef:c,trigger:x,content:w,onClose:j,isKeyboardDismissDisabled:h,hideArrow:u}),void 0):M.jsx($m,{type:r,state:S,onClose:j,isDismissable:f,trigger:x,overlay:function(){switch(r){case"panel":case"fullscreen":case"fullscreenTakeover":case"modal":return M.jsx(Km,k({isOpen:S.isOpen,isDismissable:f,onClose:j,type:r,isKeyboardDismissDisabled:h,onExiting:C,onExited:O,styles:v},{children:"function"==typeof w?w(S.close):w}),void 0);case"tray":return M.jsx(Bm,k({isOpen:S.isOpen,onClose:j,isKeyboardDismissDisabled:h,styles:v},{children:"function"==typeof w?w(S.close):w}),void 0)}}()},void 0)};function Hm(e){var t=e.state,n=e.targetRef,r=e.trigger,i=e.content,o=e.hideArrow,l=e.onClose,s=e.isKeyboardDismissDisabled,u=P(e,["state","targetRef","trigger","content","hideArrow","onClose","isKeyboardDismissDisabled"]),c=a(null),d=a(null),p=As({targetRef:n||c,overlayRef:d,placement:u.placement,containerPadding:u.containerPadding,offset:u.offset||8,crossOffset:u.crossOffset,shouldFlip:u.shouldFlip,isOpen:t.isOpen}),f=p.overlayProps,h=p.placement,v=p.arrowProps,g=Rs({type:"dialog"},t,c),m=g.triggerProps,y=g.overlayProps,b=k(k({},m),{ref:n?void 0:c}),x=M.jsx(Gm,k({isOpen:t.isOpen,style:f.style,ref:d,onClose:l,placement:h,arrowProps:v,isKeyboardDismissDisabled:s,hideArrow:o},{children:"function"==typeof i?i(t.close):i}),void 0);return M.jsx($m,{type:"popover",state:t,triggerProps:b,dialogProps:y,trigger:r,overlay:x},void 0)}function $m(e){var t=e.type,n=e.state,r=e.onClose,i=e.isDismissable,o=e.dialogProps,a=void 0===o?{}:o,l=e.triggerProps,s=void 0===l?{}:l,u=e.overlay,c=e.trigger,d=k({type:t,onClose:r,isDismissable:i},a);return M.jsxs(v,{children:[M.jsx(_a,k({},s,{onPress:n.toggle,isPressed:n.isOpen&&"modal"!==t&&"fullscreen"!==t&&"fullscreenTakeover"!==t},{children:c}),void 0),M.jsx(Em.Provider,k({value:d},{children:u}),void 0)]},void 0)}var Xm=h((function(e,t){var n=(r(Em)||{}).onClose,i=void 0===n?function(){}:n,o=e.danger,a=e.children,l=e.primaryProps,s=void 0===l?{}:l,u=e.secondaryProps,c=e.cancelProps,d=e.title;e.styles;var p=e.noActions,f=P(e,["danger","children","primaryProps","secondaryProps","cancelProps","title","styles","noActions"]);s.label||(s.label="Ok");var h="primary";return o&&(h="danger"),M.jsxs(Am,k({role:"alertdialog",ref:t,isDismissable:!1},f,{children:[M.jsx(jp,{children:d},void 0),M.jsx(th,{},void 0),M.jsx(ah,{children:a},void 0),p?null:M.jsxs(Rp,k({align:"end"},{children:[M.jsx(Vc,k({type:h},s,{onPress:function(e){return Xt(s.onPress&&s.onPress(e),i("primary"))}}),void 0),u&&M.jsx(Vc,k({},u,{onPress:function(e){return Xt((null==u?void 0:u.onPress)&&(null==u?void 0:u.onPress(e)),i("secondary"))}}),void 0),c&&M.jsx(Vc,k({},c,{onPress:function(e){return Xt((null==c?void 0:c.onPress)&&(null==c?void 0:c.onPress(e)),i("cancel"))}}),void 0)]}),void 0)]}),void 0)}));function Ym(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,i=e.onDismiss,o=e.isDismissable,l=e.isKeyboardDismissDisabled,s=d.toArray(t);if(s.length>1)throw new Error("Only a single child can be passed to DialogContainer.");var u=a(),c=p(s[0])?s[0]:null;c&&(u.current=c);var f={type:r,onClose:i,isDismissable:o};return M.jsx(Km,k({isOpen:!!c,onClose:o?i:void 0,type:r||"modal",isDismissable:o,isKeyboardDismissDisabled:l},{children:M.jsx(Em.Provider,k({value:f},{children:c}),void 0)}),void 0)}var Zm=0,Qm={root:null,items:[],init:function(){if(!this.root){var e=document.getElementById("cube-ui-kit-root");this.root=document.createElement("div"),this.root.classList.add("cube-dialog-container"),e?(e.appendChild(this.root),this._render([])):console.warn("Cube UI Kit: unable to create a Modal because the Root component is not found.")}},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),x.render(M.jsx(Bs,{children:e.map((function(e){var n=e.id,r=e.type;e.placement;var i=e.isDismissable,o=void 0===i||i,a=e.primaryProps,l=e.cancelProps;e.onDismiss;var s=e.content,u=P(e,["id","type","placement","isDismissable","primaryProps","cancelProps","onDismiss","content"]);return M.jsx(Ym,k({isDismissable:o,type:r,onDismiss:function(){"info"===e.dialogType?t.resolve(e):t.reject(e)}},{children:e.isVisible?g(Xm,k({noActions:"form"===e.dialogType,primaryProps:k(k({},a),{onPress:function(){t.resolve(e)}}),cancelProps:l?k(k({},l),{onPress:function(){t.reject(e)}}):void 0},u,{key:n}),"function"==typeof s?s((function(){return t.resolve(e)}),(function(){return t.reject(e)})):s):null}),n)}))},void 0),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++Zm,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}},ey=h((function(e,t){var n,r=e.qa,i=e.name,a=e.form,l=e.defaultValues,s=e.onDismiss,u=e.onSubmit,d=e.onValuesChange,p=e.onSubmitFailed,f=e.labelStyles,h=e.labelPosition,v=e.requiredMark,g=e.isRequired,m=e.necessityIndicator,y=e.necessityLabel,b=e.isReadOnly,x=e.validationState,w=e.validateTrigger,S=e.children,E=e.danger,P=e.noActions,O=e.submitProps,j=e.cancelProps,A=e.preserve;n=N(Ea.useForm(a),1),a=n[0];var L=N(o(!1),2),F=L[0],D=L[1];return c(t,(function(){return{open:function(){D(!0)},close:function(){D(!1)}}})),M.jsx(Ym,k({onDismiss:function(){s(),D(!1)}},{children:F&&M.jsxs(Am,k({qa:(r||"")+"Dialog",isDismissable:!0},{children:[M.jsx(jp,{children:"Delete deployment"},void 0),M.jsx(th,{},void 0),M.jsx(ah,{children:M.jsxs(Ea,k({qa:r||"DialogForm",form:a,name:i,onSubmit:function(e){return T(void 0,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:return[4,u(e)];case 1:return t.sent(),D(!1),A||a.resetFields(),[2]}}))}))},onSubmitFailed:p,defaultValues:l,onValuesChange:d,labelStyles:f,labelPosition:h,requiredMark:v,isRequired:g,necessityIndicator:m,necessityLabel:y,isReadOnly:b,validationState:x,validateTrigger:w},{children:["function"==typeof S?S((function(){return D(!1)})):S,P?void 0:M.jsxs(Rp,{children:[M.jsx(Ev,k({qa:(r||"")+"SubmitButton",theme:E?"danger":void 0,label:"Submit"},O||{}),void 0),M.jsx(Vc,k({qa:(r||"")+"CancelButton",onPress:function(){return D(!1)},label:"Cancel"},j||{}),void 0)]},void 0)]}),void 0)},void 0)]}),void 0)}),void 0)})),ty=Object.assign(Am,{confirm:function(e){return Qm.open(k({dialogType:"confirm"},e))},info:function(e){return Qm.open(k({dialogType:"info"},e))},form:function(e){return Qm.open(k({dialogType:"form"},e))}}),ny={display:"flex",flow:"row",gap:"1x",placeContent:"space-between",placeItems:"center",padding:"1x 1.5x",fill:"#white"};function ry(e){var t=e.children,n=e.onLogoPress,r=P(e,["children","onLogoPress"]),i=co(r,Yo,ny);return M.jsxs(Bo,k({role:"banner",styles:i},oa(r),{children:[M.jsx(Lh,{onPress:n},void 0),M.jsx(bc,k({flexGrow:1,placeContent:"space-between"},{children:t}),void 0)]}),void 0)}var iy={display:"block",flow:"column",radius:"1x",padding:"1.5x",preset:"t3"},oy=j(j([],N(Yo),!1),N(Ho),!1),ay=h((function(e,t){var n=e.type;e.label;var r=P(e,["type","label"]);n=n||"note";var i=co(r,oy,k(k({},iy),{fill:Fh[n]?Fh[n].fill:"#clear",border:Fh[n]&&Fh[n].border?Fh[n].border:"#clear",color:"#dark"}));return M.jsx(Bo,k({role:"region"},oa(r,{eventProps:!0}),{styles:i,ref:t}),void 0)})),ly={created:M.jsxs("svg",k({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M4.714 8.572h2.714v2.715c0 .078.065.142.143.142h.857a.143.143 0 00.143-.143V8.572h2.715a.143.143 0 00.142-.143v-.857a.143.143 0 00-.142-.143H8.57V4.715a.143.143 0 00-.143-.143h-.857a.143.143 0 00-.143.143V7.43H4.714a.143.143 0 00-.143.143v.857c0 .079.065.143.143.143z",fill:"#67C082"},void 0),M.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#67C082"},void 0)]}),void 0),deleted:M.jsxs("svg",k({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M4.714 8.57h6.572a.143.143 0 00.142-.142V7.57a.143.143 0 00-.142-.143H4.714a.143.143 0 00-.143.143v.857c0 .078.065.143.143.143z",fill:"#FF646D"},void 0),M.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FF646D"},void 0)]}),void 0),modified:M.jsxs("svg",k({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FBBC05"},void 0),M.jsx("circle",{cx:"8",cy:"8",r:"2.222",fill:"#FBBC05"},void 0)]}),void 0)},sy={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function uy(e){return".75x .5x .75x "+(1.5*e+.5)+"x"}function cy(e,t){return void 0===t&&(t=!1),e.reduce((function(e,n){return n.isLeaf?t||e.push(n.key):(e.push(n.key),e.push.apply(e,j([],N(cy(n.children||[])),!1))),e}),[])}var dy={created:{"":"#success.10",hovered:"#success.15"},deleted:{"":"#danger.08",hovered:"#danger.13"}},py={created:"#success",deleted:"#danger"};function fy(e){var t=e.isSelected,n=e.mode,r=e.indent;return{width:"max 100%",radius:!0,textAlign:"left",fill:t?"#purple.05":dy[n]||{"":"#clear",hovered:"#dark.04"},color:t?"#purple-text":py[n]||"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:t?500:400,padding:uy(r)}}function hy(e){var t=e.children,n=e.mode,r=e.indent,i=e.onPress,o=e.isSelected;return M.jsx(Ic,k({onPress:i,styles:fy({isSelected:o,mode:n,indent:r}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}function vy(e){return(e=e.map((function(e){return k(k({},e),{children:e.children?vy(e.children):void 0})}))).sort((function(e,t){return!e.isLeaf&&t.isLeaf?-1:!t.isLeaf&&e.isLeaf?1:e.title&&t.title?e.title.localeCompare(t.title,"en",{sensitivity:"base"}):0}))}var gy="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function my(e){var t=e.onSelect,n=e.treeData,r=e.selectedKey,a=e.defaultExpandAll,l=e.rootTitle,s=e.actionsPanel,u=e.onlyDirs,c=P(e,["onSelect","treeData","selectedKey","defaultExpandAll","rootTitle","actionsPanel","onlyDirs"]);n=vy(n);var d=N(o(["/"]),2),p=d[0],f=d[1],h=N(o(r),2),v=h[0],g=h[1],m=[{key:"/",title:l||"/",children:n}];function y(e){t&&t(e.key),g(e.key)}return i((function(){g(r)}),[r]),i((function(){a&&f(cy(m,!0))}),[]),M.jsx(Mf,k({styles:{flow:"column",fontWeight:500,width:"100%",gap:"1bw"}},c,{children:function e(t,n){return void 0===n&&(n=0),t.reduce((function(t,r){return r.isLeaf?u||t.push(M.jsx(hy,k({indent:n+1.7,isSelected:v===r.key,onPress:function(){return y(r)},mode:r.mode},{children:M.jsxs(bc,k({gap:"1x",css:gy,color:v===r.key?"#purple":"#dark.50"},{children:[M.jsx(pt,{},void 0),M.jsx(oc,k({style:sy,flexGrow:1,color:v===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0),s&&s(r),r.mode&&M.jsx(Mf,k({padding:"0 .5x",placeItems:"center"},{children:ly[r.mode]}),void 0)]}),void 0)}),r.key)):(t.push(M.jsx(hy,k({indent:n,isSelected:v===r.key,onPress:function(){return y(r)}},{children:M.jsxs(bc,k({gap:".5x",css:gy},{children:[M.jsx(Vc,k({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return function(e){p.includes(e.key)?f(p.filter((function(t){return t!==e.key}))):f(j(j([],N(p),!1),[e.key],!1))}(r)}},{children:p.includes(r.key)?M.jsx(We,{},void 0):M.jsx(Ue,{},void 0)}),void 0),M.jsxs(bc,k({gap:"1x",flexGrow:1,color:v===r.key?"#purple":"#dark.50"},{children:[p.includes(r.key)?M.jsx(yt,{},void 0):M.jsx(vt,{},void 0),M.jsx(oc,k({style:sy,color:v===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0)]}),void 0),s&&s(r)]}),void 0)}),r.key)),p.includes(r.key)&&t.push.apply(t,j([],N(e(r.children||[],n+1)),!1))),t}),[])}(m)}),void 0)}var yy=n({addTab:function(){},removeTab:function(){},setTab:function(){},changeTab:function(){}}),by={color:{"":"#dark","selected, hovered":"#purple-text",disabled:"#dark.50"},fill:"#purple.0",textAlign:"center",fontWeight:600,padding:"(1x - 1px) (1x - 1px)",radius:"1r 1r 0 0",border:0},xy=function(e){var t=e.isSelected,n=e.isHidden;e.onClose;var r=P(e,["isSelected","isHidden","onClose"]);return M.jsx(Vc,k({type:"tab",styles:by,css:"\n&::before {\n --outline-size: 0px;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: inset 0 calc(-1 * var(--outline-size)) 0 var(--purple-color);\n pointer-events: none;\n transition: opacity linear .2s, box-shadow linear .2s;\n}\n&[data-is-selected]::before {\n --outline-size: 2px;\n}\n&:not([data-is-selected]):not([disabled])[data-is-hovered]::before {\n --outline-size: 1px;\n}\n",isSelected:t,isHidden:n},r),void 0)};function wy(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick;e.onTabClose;var l=e.paneStyles,s=e.extra,c=e.children,d=P(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","extra","children"]),p=a(null),f=N(o([]),2),h=f[0],v=f[1],g=N(o(n||t),2),m=g[0],y=g[1],b=N(o(!1),2),x=b[0],w=b[1],S=N(o(!1),2),E=S[0],T=S[1];function C(){var e=p&&p.current;e&&(w(!!e.scrollLeft),T(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function O(e,t){return e.find((function(e){return e.id===t}))}function A(e){O(h,e)&&y(e)}return u(C,[h]),i((function(){function e(){C()}return p&&p.current&&(p.current.addEventListener("scroll",e),p.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){p&&p.current&&(p.current.removeEventListener("scroll",e),p.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[p]),i((function(){var e=p&&p.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[m]),i((function(){y(n)}),[n]),M.jsx(Mf,k({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":x||null,"data-is-right-fade":E||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},d,{children:M.jsxs(yy.Provider,k({value:{addTab:function(e){v((function(t){return O(t,e.id)?t:j(j([],N(t),!1),[e],!1)}))},setTab:A,removeTab:function(e){v((function(t){var n=t.filter((function(t){return t.id!==e.id}));return y((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},changeTab:function(e){v((function(t){var n=t.find((function(t){return t.id===e.id}));return n&&Object.assign(n,e),j([],N(t),!1)}))},currentTab:m}},{children:[M.jsxs(bc,k({gap:".5x",placeContent:"center space-between"},{children:[M.jsx(bc,k({ref:p,gap:"1x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:h.map((function(e){return M.jsx(xy,k({"data-qa":e.qa,onPress:function(){return function(e){r&&r(e.id),A(e.id)}(e)},isSelected:e.id===m||!1,isDisabled:e.isDisabled,isHidden:e.isHidden},{children:e.title}),e.id)}))}),void 0),s]}),void 0),M.jsx(Mf,k({flexGrow:1,border:"top rgb(227, 227, 233)"},l||{},{children:c}),void 0)]}),void 0)}),void 0)}wy.TabPane=function(e){var t=e.id,n=e.title,o=e.qa,a=e.isHidden,l=e.isDisabled,s=e.children,u=P(e,["id","title","qa","isHidden","isDisabled","children"]),c=r(yy),d=c.addTab,p=c.removeTab,f=c.changeTab,h=c.currentTab;i((function(){var e={id:t,qa:o,title:n,isDisabled:l,isHidden:a};return d(e),function(){p(e)}}),[t]),i((function(){f({id:t,qa:o,title:n,isDisabled:l,isHidden:a})}),[n,l,a]);var v=t===h;return M.jsx(oc,k({style:{display:v?"block":"none"},flexGrow:1},u,{children:s}),void 0)};var Sy=n({addTab:function(){},removeTab:function(){},setTab:function(){},setDirtyTab:function(){}}),Ey={radius:"1r 1r 0 0",padding:"1x 1.5x",border:{"":"left top right #clear",disabled:"left top right rgb(227, 227, 233)"},fill:{"":"#dark.04",hovered:"#dark.08","disabled, disabled & hover":"#white"},color:{"":"#dark.75","disabled, hovered, hovered & disabled":"#dark"},cursor:{"":"pointer",disabled:"default"},fontWeight:500,opacity:1,preset:"default",outline:{"":"inset #purple-03.0","focused & focus-visible":"inset #purple-03"}},ky={color:{"":"#dark.50",hovered:"#dark"},padding:"0 .25x",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},radius:"1r"},Py=function(e){var t=e.isDirty,n=e.isDisabled,r=e.children,i=e.isClosable,o=e.onClose,a=P(e,["isDirty","isDisabled","children","isClosable","onClose"]);return M.jsx(Ic,k({className:t?"file-tab--dirty":"",css:"\n margin-bottom: var(--border-width);\n transform: translate(0, 0);\n transition: color .2s linear, background-color .2s linear;\n\n &[disabled] {\n transform: translate(0, var(--border-width));\n }\n\n &.file-tab--dirty {\n &:hover {\n & .file-tab-dirty-badge {\n opacity: 0;\n pointer-events: none;\n }\n\n & .file-tab-close {\n opacity: 1;\n }\n }\n\n &:not(:hover) {\n & .file-tab-dirty-badge {\n opacity: 1;\n }\n\n & .file-tab-close {\n opacity: 0;\n }\n }\n }\n",styles:Ey,isDisabled:n},a,{children:M.jsxs(bc,k({gap:".75x"},{children:[M.jsx(oc,{children:r},void 0),(i||t)&&M.jsxs(Mf,k({placeItems:"center",style:{position:"relative"}},{children:[i?M.jsx(Ic,k({onPress:o,className:"file-tab-close",styles:ky},{children:M.jsx(Ye,{},void 0)}),void 0):M.jsx("div",{},void 0),t?M.jsx(oc,{className:"file-tab-dirty-badge",css:"\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all .2s linear;\n",width:"1x",height:"1x",fill:"#dark.30",radius:"round"},void 0):null]}),void 0)]}),void 0)}),void 0)};function Ty(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick,l=e.onTabClose,s=e.paneStyles,c=e.isClosable,d=void 0===c||c,p=e.children,f=P(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","isClosable","children"]),h=a(null),v=N(o([]),2),g=v[0],m=v[1],y=N(o(n||t),2),b=y[0],x=y[1],w=N(o(!1),2),S=w[0],E=w[1],T=N(o(!1),2),C=T[0],O=T[1];function A(){var e=h&&h.current;e&&(E(!!e.scrollLeft),O(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function L(e,t){return e.find((function(e){return e.id===t}))}function F(e){L(g,e)&&x(e)}return u(A,[g]),i((function(){function e(){A()}return h&&h.current&&(h.current.addEventListener("scroll",e),h.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){h&&h.current&&(h.current.removeEventListener("scroll",e),h.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[h]),i((function(){var e=h&&h.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[b]),i((function(){x(n)}),[n]),M.jsx(Mf,k({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":S||null,"data-is-right-fade":C||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},f,{children:M.jsxs(Sy.Provider,k({value:{addTab:function(e){m((function(t){return L(t,e.id)?t:j(j([],N(t),!1),[e],!1)}))},setTab:F,removeTab:function(e){m((function(t){var n=t.filter((function(t){return t.id!==e.id}));return x((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},setDirtyTab:function(e,t){m((function(n){var r=L(n,e);return r?(r.isDirty=t,j([],N(n),!1)):n}))},currentTab:b}},{children:[M.jsx(bc,k({ref:h,gap:".5x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:g.map((function(e){return M.jsx(Py,k({onPress:function(){return function(e){F(e.id),r&&r(e.id)}(e)},onClose:function(){return d&&function(e){L(g,e.id)&&l&&l(e.id)}(e)},isClosable:d,isDisabled:e.id===b||!1,isDirty:e.isDirty},{children:e.title}),e.id)}))}),void 0),M.jsx(Mf,k({flexGrow:1,border:"top rgb(227, 227, 233)"},s||{},{children:p}),void 0)]}),void 0)}),void 0)}Ty.TabPane=function(e){var t=e.id,n=e.title,o=e.isDirty,a=e.children,l=P(e,["id","title","isDirty","children"]),s=r(Sy),u=s.addTab,c=s.removeTab,d=s.currentTab,p=s.setDirtyTab;i((function(){var e={id:t,title:n,isDirty:o};return u(e),function(){c(e)}}),[t,n]),i((function(){p(t,o||!1)}),[o]);var f=t===d;return M.jsx(oc,k({style:{display:f?"block":"none"},flexGrow:1},l,{children:a}),void 0)};var Cy=m.div(Ny||(Ny=A(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"],["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"])));function Oy(e){var t=this,n=e.title,r=e.isVisible,a=e.type,s=e.okType,u=e.isClosable,c=e.isLoading,d=e.children,p=e.okText,f=e.cancelText,h=e.width,v=e.onOk,g=e.onCancel,m=e.onClose,y=e.qa,b=e.isDisabled,x=P(e,["title","isVisible","type","okType","isClosable","isLoading","children","okText","cancelText","width","onOk","onCancel","onClose","qa","isDisabled"]);u=!!u;var w=N(o(!1),2),S=w[0],E=w[1],O=N(o(!1),2),j=O[0],A=O[1];function L(){(m||g)&&(u?(m||g)():g&&g())}i((function(){E(r||!1)}),[r]);i((function(){function e(e){"Escape"!==e.key||c||L()}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[]);var F=l((function(e){A(!0),T(t,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:if(!v)return[3,5];t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,v(e)];case 2:return!1===t.sent()&&(m||g)&&(m||g)(),[3,5];case 3:return t.sent(),[3,5];case 4:return A(!1),[7];case 5:return[2]}}))}))}),[v]);return M.jsx(Qu.CSSTransition,k({in:S,timeout:250,classNames:"cube-modal-transition"},{children:M.jsx(Cy,k({className:"cube-modal-overlay",onClick:function(e){e&&e.target&&e.target.classList.contains("cube-modal-overlay")&&!c&&L()}},{children:M.jsxs(Ph,k({"data-qa":y||"Modal",className:"cube-modal",display:"flex",role:"region",color:"#dark.85",padding:"0",shadow:!0,border:!1,radius:"1.5r",width:"288px (100% - 32px) "+("number"==typeof h?h+"px":h||"360px"),style:{textAlign:"left"}},x,{children:[M.jsxs(Mf,k({placeContent:"space-between",padding:"2x 3x",border:"bottom"},{children:["object"==typeof n?n:M.jsx(jp,k({level:4,flexGrow:1},{children:n}),void 0),u?M.jsx(Ic,k({"data-qa":"ModalCloseButton",width:"3x",height:"3x",onPress:m||g,color:{"":"#dark.75",hovered:"#purple"},outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"}},{children:M.jsx(Ye,{style:{fontSize:16}},void 0)}),void 0):null]}),void 0),M.jsxs(Vf,k({padding:"3x",gap:"3x",height:"max (100vh - 90px)",style:{overflow:"auto"}},{children:["string"==typeof d?M.jsx(oc,{children:d},void 0):d,"info"!==a&&(v||g)?M.jsxs(bc,k({gap:"1.5x"},{children:[M.jsx(Vc,k({"data-qa":"ConfirmButton",isDisabled:b,type:"danger"===s?"danger":"primary",isLoading:c||j,onPress:F},{children:p||"OK"}),void 0),M.jsx(Vc,k({"data-qa":"CancelButton",onPress:function(){g?g():m&&m()},isDisabled:c},{children:f||("Yes"===p?"No":"Cancel")}),void 0)]}),void 0):null,"info"===a?M.jsx(bc,{children:M.jsx(Vc,k({"data-qa":"OkButton",isDisabled:b,type:"danger"===s?"danger":"primary",onPress:L},{children:p||"OK"}),void 0)},void 0):null]}),void 0)]}),void 0)}),void 0)}),void 0)}var Ny,jy=0,Ay={root:null,items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-modal-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),x.render(e.map((function(e){var n=e.id,r=e.onOk,i=e.onCancel,o=e.onClose,a=e.content,l=P(e,["id","onOk","onCancel","onClose","content"]);return g(Oy,k({},l,{onOk:function(n){return T(t,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:return r?[4,r(n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.resolve(e,n),[2]}}))}))},onCancel:function(){i&&i(),"info"===e.type?t.resolve(e):t.reject(e)},onClose:function(){o&&o(),"info"===e.type?t.resolve(e):t.reject(e)},key:n}),a)})),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++jy,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}};Oy.confirm=function(e){return Ay.open(k({type:"confirm"},e))},Oy.info=function(e){return Ay.open(k({type:"info"},e))};
|
|
40
|
+
*/e.exports&&(e.exports=t),void 0!==L&&(L.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",i="loaded",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(o)){a.code="",l.setAttribute(n,r);var u=l.appendChild(document.createElement("CODE"));u.textContent="Loading…";var c=l.getAttribute("data-src"),d=a.language;if("none"===d){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=e[p]||p}s(u,d),s(l,d);var f=t.plugins.autoloader;f&&f.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(l.setAttribute(n,i),u.textContent=h.responseText,t.highlightElement(u)):(l.setAttribute(n,"failed"),h.status>=400?u.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):u.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(o),i=0;n=r[i++];)t.highlightElement(n)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(e,t){var n=e.className;n=n.replace(a," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()})),Yf=wp({name:"CodeBlock",tag:"pre",attrs:{className:"cube-prism-code"},styleProps:Yo});var Zf=h((function(e,t){var n=e.code,r=e.language,o=void 0===r?"javascript":r,a=P(e,["code","language"]);return i((function(){Xf.highlightAll()})),M.jsx(Yf,k({ref:t,className:"cube-prism-code"},a,{children:M.jsx("code",k({className:"language-"+o},{children:n}),void 0)}),void 0)})),Qf=j(j(j([],N(Zo),!1),N(qo),!1),N(Jo),!1),eh={gridArea:"divider",display:"block",height:"1bw 1bw",fill:"#border",border:"0",margin:"0"},th=h((function(e,t){var n=co(e=Ro(e,"divider"),Qf,eh);return M.jsx(Bo,k({as:"hr","data-id":"Divider"},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),nh={display:"contents"},rh=h((function(e,t){var n=zo(t),r=e.children,a=e.columns,s=void 0===a?2:a,u=e.gap,c=void 0===u?"0":u,d=e.width,p=e.initialWidth,f=N(o(d||p||"100vw"),2),h=f[0],v=f[1],g=l((function(){var e,t=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.parentElement;if(t){var r=getComputedStyle(t),i=t.clientWidth-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight);v(i+"px")}}),[n,s,c]);return i((function(){if(!d){var e,t=n&&n.current&&n.current.parentNode;if(t)return Promise.resolve().then((function(){return iy})).then((function(e){return e.ResizeSensor})).then((function(n){e=new n(t,g)})),function(){e&&e.detach()}}}),[g]),i((function(){d||g()}),[g]),M.jsx(Bo,k({},oa(e,{eventProps:!0}),{styles:k(k({},nh),{"--grid-width":h,"--columns-amount":s,"--column-gap":c,"--column-width":"((@grid-width - (@column-gap * (@columns-amount - 1))) / @columns-amount)"}),ref:n},{children:r}),void 0)})),ih=j(j([],N(Yo),!1),N(Ho),!1),oh=wp({name:"Content",tag:"section",styles:{gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x"},attrs:{"data-id":"Content"}}),ah=h((function(e,t){var n=co(e=Ro(e,"content"),ih);return M.jsx(oh,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),lh=j(j([],N(Yo),!1),N(Ho),!1),sh=wp({name:"Header",tag:"header",styles:{display:"block",gridArea:"header",flow:"column"},attrs:{"data-id":"Header"}}),uh=h((function(e,t){var n=co(e=Ro(e,"header"),lh);return M.jsx(sh,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),ch=j(j([],N(Yo),!1),N(Ho),!1),dh=wp({name:"Footer",styles:{gridArea:"footer",display:"block",flow:"column"},attrs:{"data-id":"Footer"}}),ph=h((function(e,t){var n=co(e=Ro(e,"footer"),ch);return M.jsx(dh,k({},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),fh=[[49,.5],[0,25],[49,49],[98,25]];function hh(e){return"transform: translate("+fh[e][0]+"%, "+fh[e][1]+"%);"}var vh=m.img((function(e){var t=e.index;return"\n display: block;\n position: absolute;\n width: 50%;\n height: 50%;\n\n "+(null!=t?"\n animation-name: dice"+t+";\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-timing-function: ease;\n z-index: 0;\n\n @keyframes dice"+t+" {\n "+(0===t?"\n from {\n "+hh(0)+"\n z-index: 0;\n }\n\n 25% {\n "+hh(0)+"\n z-index: 0;\n }\n\n 50% {\n "+hh(1)+"\n z-index: 0;\n }\n\n 51% {\n z-index: 1;\n }\n\n 75% {\n z-index: 1;\n }\n\n to {\n "+hh(1)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(1===t?"\n from {\n "+hh(1)+"\n z-index: 3;\n }\n\n 25% {\n "+hh(2)+"\n z-index: 3;\n }\n\n 75% {\n "+hh(2)+"\n z-index: 2;\n }\n\n to {\n "+hh(3)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(2===t?"\n from {\n "+hh(3)+"\n z-index: 1;\n }\n\n 50% {\n "+hh(3)+"\n z-index: 0;\n }\n\n 75% {\n "+hh(0)+"\n z-index: 0;\n }\n\n to {\n "+hh(0)+"\n z-index: 0;\n }\n ":"")+"\n }\n ":"")+"\n"})),gh=function(e){return M.jsx(vh,k({role:"presentation",src:"data:image/svg+xml,%3Csvg width='36' height='41' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.899 10.351l-18 10.25L.1 10.25l18-10.25L35.9 10.351z' fill='%23FAFAFF'/%3E%3Cpath d='M18 41L0 30.75l.101-20.5L18 20.5' fill='%23E5E5F6'/%3E%3Cpath d='M36 30.75L18 41V20.6l17.899-10.25L36 30.75z' fill='%23C0C0EA'/%3E%3C/svg%3E",alt:""},e),void 0)},mh={small:32,medium:64,large:96};function bh(e){var t=e.size,n=void 0===t?"medium":t,r=P(e,["size"]),i=mh[n]||n||mh.medium;return M.jsxs(oc,k({role:"img","aria-label":"Loading animation",width:i,height:1.1388888889*i,style:{position:"relative"}},r,{children:[M.jsx(gh,{style:{transform:"translate(0%, 72.5%)"}},void 0),M.jsx(gh,{style:{transform:"translate(98%, 72.5%)"}},void 0),M.jsx(gh,{style:{transform:"translate(49%, 96.5%)"}},void 0),M.jsx(gh,{index:0},void 0),M.jsx(gh,{index:1},void 0),M.jsx(gh,{index:2},void 0)]}),void 0)}var yh,xh={small:3,default:4,large:6},wh=h((function(e,t){var n=e.size,r=e.spinning,i=e.style,o=e.children,a=P(e,["size","spinning","style","children"]),l=n&&xh[n]||n||xh.default;return!1===r?M.jsx(M.Fragment,{children:o},void 0):M.jsx(oc,k({ref:t,role:"img","aria-label":"Loading animation",height:"1em",opacity:".8",style:k({fontSize:8*l,position:"relative"},i||{})},a,{children:M.jsxs("svg",k({xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",display:"inline-block",width:"1em",height:"1em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},{children:[M.jsxs("rect",k({fill:"#7a77ff",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[M.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-2.083333333333333s"},void 0),M.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.5151515151515151s"},void 0)]}),void 0),M.jsxs("rect",k({fill:"#ff6492",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[M.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.325757575757576s"},void 0),M.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.7575757575757576s"},void 0)]}),void 0),M.jsxs("rect",k({fill:"#727290",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[M.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.5681818181818182s"},void 0),M.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"0s"},void 0)]}),void 0)]}),void 0)}),void 0)})),Sh={display:"inline-flex",padding:".75x 1x",gap:"1x",flow:"row",placeItems:"center",fill:"#white",border:!0,fontWeight:400},Eh=m(h((function(e,t){var n=e.onInput,r=P(e,["onInput"]),i=co(r,Wo,Sh),a=N(o(),2),l=a[0],s=a[1],u=N(o(""),2),c=u[0],d=u[1];return M.jsxs(M.Fragment,{children:[M.jsxs(Vc,k({},oa(r,{eventProps:!0}),{styles:i,ref:t},{children:[M.jsx(oc,k({radius:"round",fill:"#purple.10",color:"#dark-02",padding:".5x 1x"},{children:"Choose file"}),void 0),M.jsx(oc,k({color:"#dark-04"},{children:l||"No file selected"}),void 0),M.jsx("input",{type:"file",name:"base64",onInput:function(e){if(e.target){var t=e.target.files[0],r=new FileReader;if(d(""),t)if(t.name.endsWith(".json")){r.onload=function(){var e,i=String(r.result);try{JSON.parse(i),e=btoa(i)}catch(e){return d("Invalid JSON file"),void console.error(e)}n&&n({encoded:e,raw:JSON.parse(i)}),s(t.name)};try{r.readAsText(t)}catch(e){d("Invalid file")}}else d("Incorrect format. JSON file is required")}},accept:".json"},void 0)]}),void 0),c&&M.jsx(Tp.Danger,k({color:"danger"},{children:c}),void 0)]},void 0)})))(yh||(yh=A(["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"],["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"]))),kh={display:"block",flow:"column",radius:"1x",fill:"#white",border:!0,padding:"3x"},Ph=h((function(e,t){var n=co(e,Yo,kh);return M.jsx(Bo,k({role:"region"},oa(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Th={display:"block",fill:"#dark.10",height:"2x",opacity:".35"},Ch=h((function(e,t){var n=e.size,r=void 0===n?"2x":n,i=e.circle,o=P(e,["size","circle"]),a=co(o,Yo,k(k({},Th),{height:r,width:!!i&&r,radius:i?"9999rem":"1r"}));return M.jsx(Bo,k({role:"region",css:"\n --placeholder-animation-time: 1.4s;\n --placeholder-animation-size: calc((180rem + 100vw) / 3);\n background-image: linear-gradient(135deg, rgba(var(--dark-color-rgb), .15) 0%, rgba(var(--dark-color-rgb), .15) 5%, rgba(var(--dark-color-rgb), 0) 35%, rgba(var(--dark-03-color-rgb), .2) 50%, rgba(var(--dark-03-color-rgb), 0) 65%, rgba(var(--dark-color-rgb), .15) 95%, rgba(var(--dark-color-rgb), .15) 100%);\n background-repeat: repeat;\n background-size: var(--placeholder-animation-size);\n animation: placeholder-animation var(--placeholder-animation-time) linear infinite;\n\n @keyframes placeholder-animation {\n 0% {\n background-position: 0 0;\n }\n 100% {\n background-position: var(--placeholder-animation-size) 0;\n }\n }\n"},oa(o,{eventProps:!0}),{styles:a,ref:t}),void 0)})),Oh={page:function(e){var t=e.lines,n=e.children,r=P(e,["lines","children"]);return M.jsxs(Vf,k({gap:"4x"},r,{children:[M.jsxs(yc,k({placeContent:"space-between"},{children:[M.jsx(Ch,{width:"100px 25% 300px"},void 0),M.jsx(Ch,{width:"50px 10% 150px"},void 0)]}),void 0),M.jsx(Vf,k({gap:"2x"},{children:n||Array(t||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)]}),void 0)},content:function(e){var t=e.children,n=e.lines,r=P(e,["children","lines"]);return M.jsx(Vf,k({gap:"2x"},r,{children:t||Array(n||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)},topbar:function(e){return M.jsxs(yc,k({gap:"4x",placeContent:"space-between",height:"6x",padding:"1x",border:"bottom"},e,{children:[M.jsxs(yc,{children:[M.jsx(Ch,{circle:!0,size:"4x"},void 0),M.jsx(Ch,{width:"20x"},void 0)]},void 0),M.jsxs(yc,{children:[M.jsx(Ch,{width:"10x"},void 0),M.jsx(Ch,{circle:!0,size:"4x"},void 0)]},void 0)]}),void 0)},menu:function(e){var t=e.lines,n=P(e,["lines"]);return M.jsx(Vf,k({gap:"3.25x"},n,{padding:"3x 1x"},{children:Array(t||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)},stats:function(e){var t=e.cards,n=P(e,["cards"]);return M.jsx(yc,k({gap:"4x"},n,{children:Array(t||3).fill(0).map((function(e,t){return M.jsx(Ch,{radius:"1x",width:"20x",height:"12x",flexGrow:1},t)}))}),void 0)},tabs:function(e){var t=e.tabs,n=e.children,r=e.lines,i=P(e,["tabs","children","lines"]);return M.jsxs(Vf,k({gap:"4x"},i,{children:[M.jsx(yc,{children:Array(t||3).fill(0).map((function(e,t){return M.jsx(Ch,{width:"15x"},t)}))},void 0),M.jsx(Vf,k({gap:"2x"},{children:n||Array(r||5).fill(0).map((function(e,t){return M.jsx(Ch,{},t)}))}),void 0)]}),void 0)},table:function(e){var t=e.rows,n=e.columns,r=P(e,["rows","columns"]);return n=n||5,t=t||5,M.jsx(Df,k({columns:"repeat("+n+", 1fr)",gap:"3x"},r,{padding:"1x 0"},{children:Array(t).fill(0).map((function(e,t){return Array(n).fill(0).map((function(e,n){return M.jsx(Ch,{size:t?"2x":"3x"},t+"."+n)}))}))}),void 0)},chart:function(e){var t=e.columns,n=P(e,["columns"]);t=t||12;var r=[1,4,2,5,8,9,5,3,4,2,6,7,2];return M.jsx(Df,k({columns:"repeat("+t+", 1fr)",gap:"3x",padding:"1x 0",placeItems:"end stretch",height:"40x"},n,{children:Array(t).fill(0).map((function(e,t){return M.jsx(Ch,{height:10*r[t%12]+"%",width:"max 6x"},t)}))}),void 0)}};function Nh(e){var t=e.layout,n=P(e,["layout"]);return Oh[t=t||"page"]?Oh[t](k(k({},n),{qa:"Skeleton"})):M.jsx(Ch,k({},n),void 0)}function jh(e){var t=e.type,n=P(e,["type"]);return k(k({},n),{htmlType:t})}var Ah=m.button((function(e){return"\n appearance: none;\n padding: 0;\n margin: 0;\n font-size: inherit;\n line-height: inherit;\n width: 159px;\n height: 26px;\n border: none;\n background: none;\n cursor: "+(e.isLink?"pointer":"default")+";\n outline: none;\n "}));var Lh=h((function(e,t){var n=Ei(t),r=jc(function(e){var t=e.htmlType,n=P(e,["htmlType"]);return k(k({},n),{type:t})}(e),n).buttonProps;return M.jsx(Ah,k({"data-qa":"HeaderCubeCloudLogo"},r,{isLink:!!e.onPress,ref:n},{children:M.jsxs("svg",k({width:"159",height:"26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M22.533 6.535L11.27 0v4.522l11.264 6.507V6.535z",fill:"#FF6492"},void 0),M.jsx("path",{d:"M22.533 11.029L19.154 13l-7.887-4.567-4.507 2.6-3.38-1.827 7.889-4.684 11.264 6.507z",fill:"#141446"},void 0),M.jsx("path",{d:"M6.76 11.033L3.38 9.206V13l3.38-1.967z",fill:"#A14474"},void 0),M.jsx("path",{d:"M0 19.465L11.267 13l11.266 6.465L11.267 26 0 19.465z",fill:"#141446"},void 0),M.jsx("path",{d:"M22.533 14.978L11.267 8.362V13l11.266 6.465v-4.487z",fill:"#FF6492"},void 0),M.jsx("path",{d:"M3.38 13V9.205l7.889-4.683V0L0 6.535v12.93L11.267 13V8.362L3.38 13z",fill:"#7A77FF"},void 0),M.jsx("path",{d:"M36.594 21.099c2.446 0 4.36-1.21 5.503-3.067l-1.967-1.534c-.878 1.21-1.967 1.991-3.509 1.991-2.392 0-4.093-1.856-4.093-4.305 0-2.394 1.7-4.278 4.093-4.278 1.568 0 2.658.807 3.509 2.018l1.967-1.56c-1.117-1.857-3.03-3.067-5.503-3.067-3.854 0-6.91 3.013-6.91 6.887 0 3.902 3.056 6.915 6.91 6.915zM50.224 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM66.42 7.297c-1.807 0-3.376.7-4.36 1.91V.624h-2.79v20.18h2.605v-1.83c.983 1.345 2.658 2.125 4.572 2.125 3.694 0 6.38-2.96 6.38-6.888S70.14 7.297 66.42 7.297zm-.452 11.22c-1.94 0-3.934-1.292-3.934-4.306 0-2.986 1.967-4.332 3.934-4.332 2.233 0 3.987 1.75 3.987 4.305 0 2.556-1.727 4.332-3.987 4.332zM87.469 13.35c0-3.47-2.552-6.053-6.034-6.053-3.801 0-6.752 3.04-6.752 6.914 0 3.902 2.977 6.888 7.018 6.888 2.073 0 3.827-.807 5.21-2.125l-1.33-1.938c-1.09.969-2.286 1.56-3.8 1.56-2.234 0-3.882-1.29-4.254-3.47h9.729c.08-.35.213-1.05.213-1.776zm-6.14-3.659c1.78 0 3.296 1.157 3.349 3.229H77.58c.425-1.964 1.913-3.229 3.747-3.229zM101.014 21.099c2.445 0 4.359-1.21 5.502-3.067l-1.967-1.534c-.877 1.21-1.967 1.991-3.508 1.991-2.393 0-4.094-1.856-4.094-4.305 0-2.394 1.701-4.278 4.094-4.278 1.568 0 2.658.807 3.508 2.018l1.967-1.56c-1.116-1.857-3.03-3.067-5.502-3.067-3.854 0-6.911 3.013-6.911 6.887 0 3.902 3.057 6.915 6.911 6.915zM109.062 20.803h2.791V.624h-2.791v20.18zM121.417 21.099c3.881 0 6.938-3.067 6.938-6.915 0-3.847-3.057-6.887-6.938-6.887-3.854 0-6.884 3.013-6.884 6.887 0 3.848 3.03 6.915 6.884 6.915zm0-2.61c-2.312 0-4.04-1.83-4.04-4.278 0-2.475 1.728-4.332 4.067-4.332 2.286 0 4.04 1.857 4.04 4.332 0 2.422-1.754 4.278-4.067 4.278zM136.605 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM155.566.624v8.583c-.984-1.21-2.552-1.91-4.36-1.91-3.694 0-6.379 2.986-6.379 6.914 0 3.928 2.658 6.888 6.379 6.888 1.941 0 3.615-.807 4.572-2.18v1.884h2.605V.624h-2.817zm-3.881 17.892c-2.286 0-4.014-1.776-4.014-4.332s1.754-4.305 4.014-4.305c1.94 0 3.934 1.346 3.934 4.332 0 3.014-1.994 4.305-3.934 4.305z",fill:"#141446"},void 0)]}),void 0)}),void 0)})),Fh={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}},Dh=wp({name:"Badge",styles:{display:"inline-flex",placeContent:"center",placeItems:"center",padding:{"":"0",single:"0 1px",multiple:"0 2px"},radius:"round",preset:"tag",width:"min 16px",height:"16px",textAlign:"center",fontWeight:600,color:"#white",fill:k({"":"#purple"},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].color,e}),{}))},attrs:{role:"region"}}),Rh=h((function(e,t){var n=e.type,r=e.children,i=P(e,["type","children"]),o=co(i,Yo);return M.jsx(Dh,k({},oa(i,{eventProps:!0}),{"data-type":n,mods:{single:"string"==typeof r&&1===r.length,multiple:"string"==typeof r&&2===r.length},styles:o,ref:t},{children:r}),void 0)})),Ih=wp({name:"Tag",styles:{position:"relative",display:"inline-flex",placeContent:"center start",placeItems:"center start",radius:"1r",preset:"t4m",width:"16px max-content max-content",height:"min-content",textAlign:"left",whiteSpace:"nowrap",padding:{"":"0 (1x - 1bw)",closable:"0 (2.5x - 1bw) 0 (1x - 1bw)"},fill:k({"":"#dark.04"},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].fill,e}),{})),color:k({"":"#dark.65"},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].color,e}),{})),border:k({"":!0},Object.keys(Fh).reduce((function(e,t){return e['[data-type="'+t+'"]']=Fh[t].border,e}),{}))},attrs:{role:"status"}}),Mh={width:"max 100%",textOverflow:"ellipsis",overflow:"hidden",pointerEvents:"none"},_h={display:"grid",placeItems:"center",color:!0,placeSelf:"center",opacity:{"":.85,"pressed | hovered":1},transition:"opacity",padding:"0 .5x"},zh=h((function(e,t){var n=e.type,r=e.isClosable,i=e.onClose,o=e.children,a=P(e,["type","isClosable","onClose","children"]),l=co(a,Yo);return M.jsxs(Ih,k({},oa(a,{eventProps:!0}),{styles:l,"data-type":n,mods:{closable:r},ref:t},{children:[M.jsx(oc,k({mods:{closable:r},styles:Mh},{children:o}),void 0),r?M.jsx(vl,k({outerGap:"0"},{children:M.jsx(Ic,k({onPress:i,styles:_h},{children:M.jsx(Ye,{style:{fontSize:"calc(var(--font-size) - (var(--border-width) * 2))"}},void 0)}),void 0)}),void 0):void 0]}),void 0)}));function Kh(e){if(null!=e)return e.toString()}var Vh;Vh=JSON.parse('{"Clear search":"مسح البحث"}');var Uh;Uh=JSON.parse('{"Clear search":"Изчистване на търсене"}');var Bh;Bh=JSON.parse('{"Clear search":"Vymazat hledání"}');var qh;qh=JSON.parse('{"Clear search":"Ryd søgning"}');var Wh;Wh=JSON.parse('{"Clear search":"Suche zurücksetzen"}');var Gh;Gh=JSON.parse('{"Clear search":"Απαλοιφή αναζήτησης"}');var Jh;Jh=JSON.parse('{"Clear search":"Clear search"}');var Hh;Hh=JSON.parse('{"Clear search":"Borrar búsqueda"}');var $h;$h=JSON.parse('{"Clear search":"Tühjenda otsing"}');var Xh;Xh=JSON.parse('{"Clear search":"Tyhjennä haku"}');var Yh;Yh=JSON.parse('{"Clear search":"Effacer la recherche"}');var Zh;Zh=JSON.parse('{"Clear search":"נקה חיפוש"}');var Qh;Qh=JSON.parse('{"Clear search":"Obriši pretragu"}');var ev;ev=JSON.parse('{"Clear search":"Keresés törlése"}');var tv;tv=JSON.parse('{"Clear search":"Cancella ricerca"}');var nv;nv=JSON.parse('{"Clear search":"検索をクリア"}');var rv;rv=JSON.parse('{"Clear search":"검색 지우기"}');var iv;iv=JSON.parse('{"Clear search":"Išvalyti iešką"}');var ov;ov=JSON.parse('{"Clear search":"Notīrīt meklēšanu"}');var av;av=JSON.parse('{"Clear search":"Tøm søk"}');var lv;lv=JSON.parse('{"Clear search":"Zoekactie wissen"}');var sv;sv=JSON.parse('{"Clear search":"Wyczyść zawartość wyszukiwania"}');var uv;uv=JSON.parse('{"Clear search":"Limpar pesquisa"}');var cv;cv=JSON.parse('{"Clear search":"Limpar pesquisa"}');var dv;dv=JSON.parse('{"Clear search":"Ştergeţi căutarea"}');var pv;pv=JSON.parse('{"Clear search":"Очистить поиск"}');var fv;fv=JSON.parse('{"Clear search":"Vymazať vyhľadávanie"}');var hv;hv=JSON.parse('{"Clear search":"Počisti iskanje"}');var vv;vv=JSON.parse('{"Clear search":"Obriši pretragu"}');var gv;gv=JSON.parse('{"Clear search":"Rensa sökning"}');var mv;mv=JSON.parse('{"Clear search":"Aramayı temizle"}');var bv;bv=JSON.parse('{"Clear search":"Очистити пошук"}');var yv;yv=JSON.parse('{"Clear search":"清除搜索"}');var xv;xv=JSON.parse('{"Clear search":"清除搜尋條件"}');const wv={"ar-AE":Wl(Vh).default,"bg-BG":Wl(Uh).default,"cs-CZ":Wl(Bh).default,"da-DK":Wl(qh).default,"de-DE":Wl(Wh).default,"el-GR":Wl(Gh).default,"en-US":Wl(Jh).default,"es-ES":Wl(Hh).default,"et-EE":Wl($h).default,"fi-FI":Wl(Xh).default,"fr-FR":Wl(Yh).default,"he-IL":Wl(Zh).default,"hr-HR":Wl(Qh).default,"hu-HU":Wl(ev).default,"it-IT":Wl(tv).default,"ja-JP":Wl(nv).default,"ko-KR":Wl(rv).default,"lt-LT":Wl(iv).default,"lv-LV":Wl(ov).default,"nb-NO":Wl(av).default,"nl-NL":Wl(lv).default,"pl-PL":Wl(sv).default,"pt-BR":Wl(uv).default,"pt-PT":Wl(cv).default,"ro-RO":Wl(dv).default,"ru-RU":Wl(pv).default,"sk-SK":Wl(fv).default,"sl-SI":Wl(hv).default,"sr-SP":Wl(vv).default,"sv-SE":Wl(gv).default,"tr-TR":Wl(mv).default,"uk-UA":Wl(bv).default,"zh-CN":Wl(yv).default,"zh-TW":Wl(xv).default};var Sv=h((function(e,t){var n=(e=Ui(e)).isClearable,r=e.value,o=zo(t,a(null)),l=a(null);i((function(){var e=o&&o.current;e&&null!=r&&e.value!==r&&(e.value=r)}),[o,r]);var s=function(e){let[t,n]=Dt(Kh(e.value),Kh(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}(e),u=function(e,t,n){let r=mi(wv),{isDisabled:i,onSubmit:o=(()=>{}),onClear:a,type:l="search"}=e,{labelProps:s,inputProps:u,descriptionProps:c,errorMessageProps:d}=Cc(_t({},e,{value:t.value,onChange:t.setValue,onKeyDown:e=>{const n=e.key;"Enter"!==n&&"Escape"!==n||e.preventDefault(),i||("Enter"===n&&o(t.value),"Escape"===n&&(t.setValue(""),a&&a()))},type:l}),n);return{labelProps:s,inputProps:_t({},u,{defaultValue:void 0}),clearButtonProps:{"aria-label":r("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:()=>{t.setValue(""),a&&a()},onPressStart:()=>{n.current.focus()}},descriptionProps:c,errorMessageProps:d}}(e,s,l),c=u.inputProps,d=u.clearButtonProps;return M.jsx(kc,k({inputProps:c,ref:t,inputRef:l,inputStyles:{paddingRight:"4x"},type:"search",prefix:M.jsx(jt,{},void 0),suffixPosition:"after",suffix:n&&""!==s.value&&!e.isReadOnly&&M.jsx(Vc,k({type:"clear"},jh(d),{color:{"":"#dark.50","hovered | pressed":"#purple-text"},radius:"right (1r - 1bw)",padding:".5x 1x",placeSelf:"stretch",icon:M.jsx(Ye,{},void 0)}),void 0)},e),void 0)}));var Ev=h((function(e,t){var n=(e=xa(e=Ui(e))).form,r=P(e,["form"]),i=n.getFieldsValue(),o=!Object.keys(i).find((function(e){return n.isFieldInvalid(e)}));return M.jsx(Vc,k({ref:t,type:"primary",htmlType:"submit",isLoading:n.isSubmitting,isDisabled:!o},r),void 0)}));function kv(e){void 0===e&&(e={});let{isReadOnly:t,onChange:n}=e,[r,i]=Dt(e.isSelected,e.defaultSelected||!1,(()=>{}));return{isSelected:r,setSelected:function(e){t||(i(e),n&&n(e))},toggle:function(){t||i((e=>{let t=!e;return n&&n(t),t}))}}}function Pv(e,t,n){let{isDisabled:r=!1,isRequired:i,isReadOnly:o,value:a,name:l,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid"}=e;null!=s||(null!=u||null!=c)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=ja({isDisabled:r}),{focusableProps:f}=Kl(e,n),h=Yt(p,f);return{inputProps:Yt(tn(e,{labelable:!0}),_t({"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,required:i,value:a,name:l,type:"checkbox"},h))}}function Tv(e,t,n){let{inputProps:r}=Pv(e,t,n),{isSelected:o}=t,{isIndeterminate:a}=e;return i((()=>{n.current&&(n.current.indeterminate=a)})),{inputProps:_t({},r,{checked:o,"aria-checked":a?"mixed":o})}}const Cv=new WeakMap;var Ov,Nv=m.input(Ov||(Ov=A(["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n"],["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n"])),(function(e){return e.isButton?"pointer":"default"}));var jv=n(null),Av={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},Lv={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var Fv=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,o=e.necessityLabel,a=e.label,l=e.labelPosition,s=void 0===l?"top":l,u=e.validationState,c=e.children,d=e.orientation,p=void 0===d?"vertical":d,f=e.message,h=e.labelStyles,v=e.requiredMark,g=void 0===v||v,m=e.tooltip,b=P(e,["isDisabled","isRequired","necessityIndicator","necessityLabel","label","labelPosition","validationState","children","orientation","message","labelStyles","requiredMark","tooltip"]),y=Si(t),x=Mi("CheckboxGroup_Wrapper",e),w=Mi("CheckboxGroup",e),S=Mi("CheckboxGroup_Label",e),E=co(b,Zo,k(k({},Av),x)),T=co(b,Go,k(k({},Lv),w));h=k(k(k({},yl),S),h);var C=function(e){void 0===e&&(e={});let[t,n]=Dt(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e:e.concat(t)))},removeValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e))},toggleValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e.concat(t)))}}}(e),O=function(e,t){let{isDisabled:n,name:r}=e,{labelProps:i,fieldProps:o}=Pc(_t({},e,{labelElementType:"span"})),a=tn(e,{labelable:!0});return Cv.set(t,r),{groupProps:Yt(a,_t({role:"group","aria-disabled":n||void 0},o)),labelProps:i}}(e,C),N=O.groupProps,j=O.labelProps,A=M.jsx(Bo,k({qa:"CheckboxGroup",styles:T,mods:{horizontal:"horizontal"===p}},{children:M.jsx(ya.Provider,k({value:{isDisabled:n,validationState:u}},{children:M.jsx(jv.Provider,k({value:C},{children:c}),void 0)}),void 0)}),void 0);return M.jsx(gc,k({},{labelPosition:s,label:a,styles:E,isRequired:r,labelStyles:h,necessityIndicator:i,necessityLabel:o,labelProps:j,fieldProps:N,isDisabled:n,validationState:u,message:f,requiredMark:g,tooltip:m,Component:A,ref:y}),void 0)})),{cubeInputType:"CheckboxGroup"}),Dv=function(){return M.jsx("svg",k({width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z",fill:"currentColor"},void 0)}),void 0)},Rv=function(){return M.jsx("svg",k({width:"9",height:"3",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M0 .044v2.001l.026.025h8.063V.044H0z",fill:"#fff"},void 0)}),void 0)},Iv={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"default",cursor:"pointer"},Mv={display:"grid",placeItems:"center",radius:".5r",fill:{"":"#white","checked | indeterminate":"#purple-text","invalid & !checked":"#white","invalid & checked":"#danger-text",disabled:"#dark.12"},color:{"":"#white","disabled & !checked & !indeterminate":"#clear"},border:{"":"#dark.30",invalid:"#danger-text.50","disabled | ((indeterminate | checked) & !invalid)":"#clear"},width:"(2x - 2bw)",height:"(2x - 2bw)",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"};var _v=Object.assign(h((function(e,t){var n,i,o=e,l=(e=xa(e=Ui(e))).qa,s=e.isIndeterminate,u=void 0!==s&&s,c=e.isDisabled,d=void 0!==c&&c,p=e.insideForm,f=e.isRequired;e.autoFocus;var h=e.children,v=e.label,g=e.validationState,m=e.labelProps,b=e.labelStyles,y=e.labelPosition,x=e.necessityLabel,w=e.necessityIndicator,S=e.message,E=e.requiredMark,T=void 0===E||E,C=e.tooltip,N=P(e,["qa","isIndeterminate","isDisabled","insideForm","isRequired","autoFocus","children","label","validationState","labelProps","labelStyles","labelPosition","necessityLabel","necessityIndicator","message","requiredMark","tooltip"]);v=v||h;var j=r(jv),A=Mi("Checkbox_Wrapper",e),L=Mi("Checkbox",e),F=Mi("Checkbox_Label",e),D=co(e,Zo,k(k({},p&&!j?{}:Iv),A)),R=co(e,Go,k(k({},Mv),L));b=k(k(k({},p&&!j?yl:bl),F),b),p||(b.fontWeight=400),p&&"side"===y&&(R.marginTop="1x");var I=dl({isDisabled:d},!0),_=I.isFocused,z=I.focusProps,K=sl({isDisabled:d}),V=K.hoverProps,U=K.isHovered,B=a(null),q=Ei(t,B),W=(j?function(e,t,n){const r=kv({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{inputProps:i}=Tv(_t({},e,{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Cv.get(t)}),r,n);return{inputProps:i}}(k(k({},e),{value:e.value||"",isRequired:o.isRequired,validationState:o.validationState}),j,B):Tv(e,kv(e),B)).inputProps,G=u?M.jsx(Rv,{},void 0):M.jsx(Dv,{},void 0);if(j){try{for(var J=O(["isSelected","defaultSelected","isEmphasized"]),H=J.next();!H.done;H=J.next()){var $=H.value;null!=o[$]&&console.warn("CubeUIKit: "+$+" is unsupported on individual <Checkbox> elements within a <CheckboxGroup>. Please apply these props to the group instead.")}}catch(e){n={error:e}}finally{try{H&&!H.done&&(i=J.return)&&i.call(J)}finally{if(n)throw n.error}}null==e.value&&console.warn("CubeUIKit: A <Checkbox> element within a <CheckboxGroup> requires a `value` property.")}var X=M.jsxs(Bo,k({styles:{position:"relative"}},{children:[M.jsx(Nv,k({"data-qa":l||"Checkbox"},Yt(W,z),{ref:B}),void 0),M.jsx(Bo,k({mods:{checked:W.checked,indeterminate:u,invalid:"invalid"===g,valid:"valid"===g,disabled:d,hovered:U,focused:_},styles:R},{children:G}),void 0)]}),void 0);return p&&!j?M.jsx(gc,k({},{as:"label",labelPosition:y,label:v,styles:D,isRequired:f,labelStyles:b,labelProps:m,isDisabled:d,validationState:g,necessityLabel:x,necessityIndicator:w,message:S,requiredMark:T,tooltip:C,Component:X,ref:q}),void 0):M.jsxs(Bo,k({as:"label",styles:D},V,oa(N),{ref:q},{children:[X,v&&M.jsx(Bo,k({styles:b,mods:{invalid:"invalid"===g,valid:"valid"===g,disabled:d}},oa(m),{children:v}),void 0)]}),void 0)})),{cubeInputType:"Checkbox",Group:Fv});var zv={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"input",width:"min-content",cursor:"pointer"},Kv={position:"relative",display:"grid",placeItems:"center",radius:"round",fill:{"":"#dark.50",checked:"#purple",disabled:"#dark.12"},color:"#white",border:!1,width:"5.25x 5.25x",height:"3x 3x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"pointer"},Vv={position:"absolute",width:"2.5x",height:"2.5x",radius:"round",fill:"currentColor",shadow:"0px 2px 4px #dark.20;",top:".25x",left:{"":".25x",checked:"2.5x"},transition:"left",cursor:"pointer"};var Uv=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).qa,r=e.isDisabled,i=void 0!==r&&r;e.autoFocus;var o=e.children,l=e.label,s=e.labelProps,u=e.labelStyles,c=e.thumbStyles,d=e.isLoading,p=e.insideForm,f=e.validationState,h=e.message,v=e.labelPosition,g=e.inputStyles,m=e.requiredMark,b=void 0===m||m,y=e.tooltip,x=P(e,["qa","isDisabled","autoFocus","children","label","labelProps","labelStyles","thumbStyles","isLoading","insideForm","validationState","message","labelPosition","inputStyles","requiredMark","tooltip"]);l=l||o;var w=Mi("Switch_Wrapper",e),S=Mi("Switch",e),E=Mi("Switch_Label",e),T=Mi("Switch_Thumb",e),C=co(e,Zo,k(k({},p?{}:zv),w));g=co(e,Go,k(k(k(k({},Kv),S),p&&"side"===v?{marginTop:"-3px",placeSelf:"start"}:null),g)),c=k(k(k({},Vv),T),c),u=k(k(k({},p?yl:bl),E),u);var O=dl({isDisabled:i},!0),N=O.isFocused,j=O.focusProps,A=sl({isDisabled:i}),L=A.hoverProps,F=A.isHovered,D=a(null),R=Ei(t,D),I=function(e,t,n){let{inputProps:r}=Pv(e,t,n),{isSelected:i}=t;return{inputProps:_t({},r,{role:"switch",checked:i,"aria-checked":i})}}(e,kv(e),D).inputProps,_=M.jsxs(Bo,k({qa:(n||"Switch")+"Wrapper",styles:{position:"relative"}},{children:[M.jsx(Nv,k({"data-qa":n||"Switch"},Yt(I,j),{ref:D}),void 0),M.jsx(Bo,k({mods:{checked:I.checked,disabled:i,hovered:F,focused:N},styles:g},{children:M.jsx(Bo,{qa:"SwitchThumb",styles:c,"aria-hidden":"true",mods:{checked:I.checked}},void 0)}),void 0)]}),void 0);return p?M.jsx(gc,k({},{as:"label",labelPosition:v,label:l,styles:C,labelStyles:u,labelProps:s,isDisabled:i,validationState:f,message:h,requiredMark:b,tooltip:y,Component:_,ref:R}),void 0):M.jsxs(Bo,k({as:"label",styles:C},L,oa(x),{ref:R},{children:[_,l&&M.jsxs(Bo,k({styles:u,mods:{disabled:i}},oa(s),{children:[l,d?M.jsxs(M.Fragment,{children:[l?M.jsx(M.Fragment,{children:" "},void 0):null,M.jsx(Ct,{},void 0)]},void 0):null]}),void 0)]}),void 0)})),{cubeInputType:"Checkbox"});const Bv=new WeakMap;var qv=n(null);let Wv=Math.round(1e10*Math.random()),Gv=0;var Jv={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},Hv={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var $v=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,a=e.label,l=e.labelPosition,u=void 0===l?"top":l,c=e.validationState,d=e.children,p=e.orientation,f=void 0===p?"vertical":p,h=e.message,v=e.labelStyles,g=e.requiredMark,m=void 0===g||g,b=e.tooltip,y=e.styles,x=e.groupStyles,w=P(e,["isDisabled","isRequired","necessityIndicator","label","labelPosition","validationState","children","orientation","message","labelStyles","requiredMark","tooltip","styles","groupStyles"]),S=Si(t),E=Mi("RadioGroup_Wrapper",e),T=Mi("RadioGroup",e),C=Mi("RadioGroup_Label",e);y=co(w,Zo,k(k(k({},Jv),E),y)),x=co(w,Go,k(k(k({},Hv),T),x)),v=k(k(k({},yl),C),v);var O=function(e){let t=s((()=>e.name||"radio-group-"+Wv+"-"+ ++Gv),[e.name]),[n,r]=Dt(e.value,e.defaultValue,e.onChange),[i,a]=o(null);return{name:t,selectedValue:n,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||r(t)},lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1}}(e),N=function(e,t){let{name:n,validationState:r,isReadOnly:i,isRequired:o,isDisabled:a,orientation:l="vertical"}=e,{direction:s}=vi(),{labelProps:u,fieldProps:c}=Pc(_t({},e,{labelElementType:"span"})),d=tn(e,{labelable:!0}),{focusWithinProps:p}=nl({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),f=Jt(n);return Bv.set(t,f),{radioGroupProps:Yt(d,_t({role:"radiogroup",onKeyDown:e=>{let n;switch(e.key){case"ArrowRight":n="rtl"===s&&"vertical"!==l?"prev":"next";break;case"ArrowLeft":n="rtl"===s&&"vertical"!==l?"next":"prev";break;case"ArrowDown":n="next";break;case"ArrowUp":n="prev";break;default:return}e.preventDefault();let r,i=Il(e.currentTarget,{from:e.target});"next"===n?(r=i.nextNode(),r||(i.currentNode=e.currentTarget,r=i.firstChild())):(r=i.previousNode(),r||(i.currentNode=e.currentTarget,r=i.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":"invalid"===r||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":l},c,p)),labelProps:u}}(e,O),j=N.radioGroupProps,A=N.labelProps,L=M.jsx(Bo,k({qa:"RadioGroup",styles:x,mods:{horizontal:"horizontal"===f}},{children:M.jsx(ya.Provider,k({value:{isRequired:r,validationState:c,isDisabled:n}},{children:M.jsx(qv.Provider,k({value:O},{children:d}),void 0)}),void 0)}),void 0);return M.jsx(gc,k({},{labelPosition:u,label:a,styles:y,isRequired:r,labelStyles:v,necessityIndicator:i,labelProps:A,fieldProps:j,isDisabled:n,validationState:c,message:h,requiredMark:m,tooltip:b,Component:L,ref:S}),void 0)})),{cubeInputType:"RadioGroup"}),Xv={position:"relative",display:"grid",placeItems:"center start",gap:"1x",flow:"column",preset:"default",width:"min-content"},Yv={radius:!0,fill:{"":"#white",hovered:"#purple-text.04",disabled:"#dark.04"},color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.40"},fontWeight:500,preset:"default",border:{"":!0,checked:"#purple-text","invalid & checked":"#danger-text","disabled & checked":"#dark.40",disabled:"#border"},padding:"(1x - 1bw) (1.5x - 1bw)",cursor:"pointer",opacity:{"":1,disabled:.5},outline:{"":"#purple-03.0",focused:"#purple-03"}},Zv={display:"grid",placeItems:"center",radius:"round",fill:{"":"#white",disabled:"#dark.04"},color:{checked:"#purple-text","invalid & checked":"#danger-text","disabled | !checked":"#clear","disabled & checked":"#dark.12"},border:{"":"#dark.30",checked:"#purple-text",invalid:"#danger-text.50",disabled:"#dark.12"},width:"2x",height:"2x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},Qv={radius:"round",width:"1x",height:"1x",fill:"currentColor",transition:"theme"};var eg=Object.assign(h((function(e,t){var n=(e=xa(e=Ui(e))).qa,i=e.isDisabled,o=e.validationState,l=e.children,s=e.label;e.autoFocus;var u=e.labelStyles,c=e.labelProps,d=e.inputStyles,p=e.type,f=e["aria-label"],h=P(e,["qa","isDisabled","validationState","children","label","autoFocus","labelStyles","labelProps","inputStyles","type","aria-label"]),v="button"===p;s=s||l;var g=co(h,Zo,k(k({},Xv),Mi("Radio_Wrapper",e)));d=co(h,Go,k(k(k({},v?Yv:Zv),Mi(v?"RadioButton":"Radio",e)),d)),u=k(k(k(k({},bl),{fontWeight:400}),Mi("Radio_Label",e)),u);var m=r(qv);if(!m)throw new Error("CubeUI: The Radio button is used outside the RadioGroup.");var b=dl({isDisabled:i},!0),y=b.isFocused,x=b.focusProps,w=sl({isDisabled:i}),S=w.hoverProps,E=w.isHovered,T=a(null),C=Ei(t,T),O=function(e,t,n){let{value:r,isRequired:i,children:o,"aria-label":a,"aria-labelledby":l}=e;const s=e.isDisabled||t.isDisabled,u=t.isReadOnly;null!=o||null!=a||null!=l||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,{pressProps:d}=ja({isDisabled:s}),{focusableProps:p}=Kl(Yt(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),f=Yt(d,p),h=tn(e,{labelable:!0}),v=t.lastFocusedValue===r||null==t.lastFocusedValue?0:-1;return s&&(v=void 0),{inputProps:Yt(h,_t({},f,{type:"radio",name:Bv.get(t),tabIndex:v,disabled:s,"aria-readonly":u||void 0,required:i,checked:c,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)}}))}}(k(k({},e),{isDisabled:i}),m,T).inputProps;return M.jsxs(Bo,k({as:"label",styles:g},S,{ref:C,mods:{disabled:i,invalid:"invalid"===o,hovered:E,button:v}},{children:[M.jsx(Nv,k({"data-qa":n||"Radio","aria-label":f},Yt(O,x),{isButton:v,ref:T}),void 0),M.jsx(Bo,k({mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o,disabled:i,hovered:E,focused:y},styles:d},{children:v?l:M.jsx(Bo,{styles:Qv,mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o}},void 0)}),void 0),s&&!v&&M.jsx(Bo,k({qa:"RadioLabel",styles:u,mods:{invalid:"invalid"===o,valid:"valid"===o,disabled:i}},oa(c),{children:s}),void 0)]}),void 0)})),{Group:$v,Button:h((function(e,t){var n=eg;return M.jsx(n,k({},e,{type:"button",ref:t}),void 0)}))});function tg(e){let t=Ou(e),[n,r]=o(null);return _t({focusStrategy:n},t,{open(e){void 0===e&&(e=null),r(e),t.open()},toggle(e){void 0===e&&(e=null),r(e),t.toggle()}})}class ng extends Set{constructor(e,t,n){super(e),this.anchorKey=void 0,this.currentKey=void 0,e instanceof ng?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function rg(e,t){return e?"all"===e?"all":new ng(e):t}class ig{constructor(e,t,n){var r;this.collection=void 0,this.state=void 0,this.allowsCellSelection=void 0,this._isSelectAll=void 0,this.collection=e,this.state=t,this.allowsCellSelection=null!=(r=null==n?void 0:n.allowsCellSelection)&&r,this._isSelectAll=null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)<t.index)&&(t=n)}return null==(e=t)?void 0:e.key}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)>t.index)&&(t=n)}return null==(e=t)?void 0:e.key}extendSelection(e){let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new ng([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new ng(n,r,e);for(let i of this.getKeyRange(r,n.currentKey||e))t.delete(i);for(let n of this.getKeyRange(e,r))this.state.disabledKeys.has(n)||t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if(null==(e=this.getKey(e)))return;let t=new ng("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new ng([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new ng;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(!this.state.disabledKeys.has(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ng)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):t&&t.shiftKey?this.extendSelection(e):this.toggleSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}}let og;og=Symbol.iterator;class ag{constructor(e){var t;this.keyMap=new Map,this.iterable=void 0,this.firstKey=void 0,this.lastKey=void 0,this.iterable=e;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;this.lastKey=null==(t=n)?void 0:t.key}*[og](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}}function lg(e){let{filter:t}=e,n=function(e){let{selectionMode:t="none",disallowEmptySelection:n}=e,r=a(!1),[,i]=o(!1),l=a(null),u=a(null),[,c]=o(null),d=s((()=>rg(e.selectedKeys)),[e.selectedKeys]),p=s((()=>rg(e.defaultSelectedKeys,new ng)),[e.defaultSelectedKeys]),[f,h]=Dt(d,p,e.onSelectionChange);return{selectionMode:t,disallowEmptySelection:n,get isFocused(){return r.current},setFocused(e){r.current=e,i(e)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t){void 0===t&&(t="first"),l.current=e,u.current=t,c(e)},selectedKeys:f,setSelectedKeys:h,disabledKeys:s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys])}}(e),r=s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=s((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),u=function(e,t,n,r){void 0===r&&(r=[]);let i=s((()=>new Tf),[]),o=a(null);return s((()=>{let r=i.build(e,n);return o.current=t(r,o.current),o.current}),[i,e.children,e.items,n,...r])}(e,(e=>new ag(t?t(e):e)),l,[t]);return i((()=>{null==n.focusedKey||u.getItem(n.focusedKey)||n.setFocusedKey(null)}),[u,n.focusedKey]),{collection:u,disabledKeys:r,selectionManager:new ig(u,n)}}function sg(e){var t;let[n,r]=Dt(e.selectedKey,null!=(t=e.defaultSelectedKey)?t:null,e.onSelectionChange),i=s((()=>null!=n?[n]:[]),[n]),{collection:o,disabledKeys:a,selectionManager:l}=lg(_t({},e,{selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i,onSelectionChange:t=>{let i=t.values().next().value;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}})),u=null!=n?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:u}}function ug(e){var t,n,r,l,u,c;let{defaultFilter:d,menuTrigger:p="input",allowsEmptyCollection:f=!1,allowsCustomValue:h,shouldCloseOnBlur:v=!0}=e,[g,m]=o(!1),[b,y]=o(!1),[x,w]=Dt(e.inputValue,null!=(t=e.defaultInputValue)?t:"",e.onInputChange),{collection:S,selectionManager:E,selectedKey:k,setSelectedKey:P,selectedItem:T,disabledKeys:C}=sg(_t({},e,{onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===k&&(D(),A.close())},items:null!=(n=e.items)?n:e.defaultItems})),O=S,N=s((()=>null==e.items&&d?function(e,t,n){return new ag(cg(e,t,n))}(S,x,d):S),[S,x,d,e.items]),j=a("focus"),A=tg(_t({},e,{onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?j.current:void 0)},isOpen:void 0,defaultOpen:void 0})),L=(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),j.current=n,A.open(t))},F=a(x),D=()=>{var e,t;let n=null!=(e=null==(t=S.getItem(k))?void 0:t.textValue)?e:"";F.current=n,w(n)},R=a(!0),I=a(null!=(r=null!=(l=e.selectedKey)?l:e.defaultSelectedKey)?r:null),M=a(null!=(u=null==(c=S.getItem(k))?void 0:c.textValue)?u:"");i((()=>{var t,n;b&&(N.size>0||f)&&!A.isOpen&&x!==F.current&&"manual"!==p&&L(null,"input"),g||f||!A.isOpen||0!==N.size||A.close(),null!=k&&k!==I.current&&A.close(),x!==F.current&&(E.setFocusedKey(null),m(!1),""!==x||void 0!==e.inputValue&&void 0!==e.selectedKey||P(null)),R.current&&void 0===e.inputValue&&void 0===e.defaultInputValue&&D(),k===I.current||void 0!==e.inputValue&&void 0!==e.selectedKey?F.current=x:D();let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";b||null==k||void 0!==e.inputValue||k!==I.current||M.current!==r&&(F.current=r,w(r)),R.current=!1,I.current=k,M.current=r})),i((()=>{A.isOpen||E.setFocusedKey(null)}),[A.isOpen,E]);let _=()=>{I.current=null,P(null),A.close()},z=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(k);let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";F.current=r,A.close()}else D(),A.close()};return _t({},A,{toggle:(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items||A.isOpen)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),A.isOpen||(j.current=n),A.toggle(t))},open:L,selectionManager:E,selectedKey:k,setSelectedKey:P,disabledKeys:C,isFocused:b,setFocused:e=>{if(e)"focus"===p&&L(null,"focus");else if(v){var t,n;let e=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";h&&x!==e?_():z()}y(e)},selectedItem:T,collection:g?O:N,inputValue:x,setInputValue:w,commit:()=>{A.isOpen&&null!=E.focusedKey?k===E.focusedKey?z():P(E.focusedKey):h?_():z()},revert:()=>{h&&null==k?_():z()}})}function cg(e,t,n){let r=[];for(let i of e)if("section"===i.type&&i.hasChildNodes){let e=cg(i.childNodes,t,n);[...e].length>0&&r.push(_t({},i,{childNodes:e}))}else"section"!==i.type&&n(i.textValue,t)&&r.push(_t({},i));return r}function dg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=a({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let o=function(e){if(1===e.length||!/^[A-Z]/i.test(e))return e;return""}(e.key);if(!o||e.ctrlKey||e.metaKey)return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let a=t.getKeyForSearch(i.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(i.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),500)}:null}}}function pg(e){return bn()?e.metaKey:e.ctrlKey}function fg(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:c=!1,disallowTypeAhead:d=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:v=r}=e,{direction:g}=vi(),m=a({top:0,left:0});En(v,"scroll",h?null:()=>{m.current={top:v.current.scrollTop,left:v.current.scrollLeft}});const b=a(o);i((()=>{if(b.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||p||wl(r.current)}b.current=!1}),[]),i((()=>{if(!h&&t.focusedKey&&null!=v&&v.current){let e=v.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&hg(v.current,e)}}),[h,v,t.focusedKey]);let y,x={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),e.altKey||!r.current.contains(e.target))return;const i=(n,r)=>{null!=n&&(t.setFocusedKey(n,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):c&&t.replaceSelection(n))};switch(e.key){case"ArrowDown":if(n.getKeyBelow){e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null==n.getFirstKey?void 0:n.getFirstKey();null==r&&l&&(r=null==n.getFirstKey?void 0:n.getFirstKey(t.focusedKey)),i(r)}break;case"ArrowUp":if(n.getKeyAbove){e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null==n.getLastKey?void 0:n.getLastKey();null==r&&l&&(r=null==n.getLastKey?void 0:n.getLastKey(t.focusedKey)),i(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){e.preventDefault(),i(n.getKeyLeftOf(t.focusedKey),"rtl"===g?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){e.preventDefault(),i(n.getKeyRightOf(t.focusedKey),"rtl"===g?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,pg(e));t.setFocusedKey(r),pg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,pg(e));t.setFocusedKey(r),pg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault(),i(n.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault(),i(n.getKeyPageAbove(t.focusedKey))}break;case"a":pg(e)&&"multiple"===t.selectionMode&&!0!==u&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),s||t.clearSelection();break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,t,n=Il(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&nn(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let o=e.relatedTarget;var r,i;if(o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)t.setFocusedKey(null!=(r=t.lastSelectedKey)?r:n.getLastKey());else t.setFocusedKey(null!=(i=t.firstSelectedKey)?i:n.getFirstKey())}else if(!h){v.current.scrollTop=m.current.top,v.current.scrollLeft=m.current.left;let e=v.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&(nn(e),hg(v.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:w}=dg({keyboardDelegate:n,selectionManager:t});return d||(x=Yt(w,x)),p||(y=null==t.focusedKey?0:-1),{collectionProps:_t({},x,{tabIndex:y})}}function hg(e,t){let n=vg(e,t,"left"),r=vg(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,s=a+e.offsetWidth,u=l+e.offsetHeight;n<=a?a=n:n+i>s&&(a+=n+i-s),r<=l?l=r:r+o>u&&(l+=r+o-u),e.scrollLeft=a,e.scrollTop=l}function vg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}class gg{constructor(e,t,n,r){this.collection=void 0,this.disabledKeys=void 0,this.ref=void 0,this.collator=void 0,this.collection=e,this.disabledKeys=t,this.ref=n,this.collator=r}getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector('[data-key="'+e+'"]')}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);for(;n&&n.offsetTop>r;)e=this.getKeyAbove(e),n=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);for(;n&&n.offsetTop<r;)e=this.getKeyBelow(e),n=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}}function mg(e,t,n){let{type:r="menu",isDisabled:i}=e,o=Jt(),{triggerProps:a,overlayProps:l}=Rs({type:r},t,n);return{menuTriggerProps:_t({},a,{id:o,onPressStart(e){"touch"!==e.pointerType&&"keyboard"!==e.pointerType&&t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"===e.pointerType&&t.toggle()},onKeyDown:e=>{if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented||i)&&n&&n.current)switch(e.key){case"ArrowDown":case"Enter":case" ":e.preventDefault(),e.stopPropagation(),t.toggle("first");break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.toggle("last")}}}),menuProps:_t({},l,{"aria-labelledby":o})}}const bg=new WeakMap;function yg(e,t){let n=bg.get(e);if(!n)throw new Error("Unknown list");return n.id+"-option-"+("string"==typeof(r=t)?r.replace(/\s*/g,""):""+r);var r}function xg(e,t,n){let r=tn(e,{labelable:!0}),{listProps:i}=function(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,autoFocus:a,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:d=!1,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h}=e,v=yi({usage:"search",sensitivity:"base"}),g=s((()=>o||new gg(n,r,i,v)),[o,n,r,i,v]),{collectionProps:m}=fg({ref:i,selectionManager:t,keyboardDelegate:g,autoFocus:a,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h,isVirtualized:u,scrollRef:i});return{listProps:m}}(_t({},e,{ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys})),{focusWithinProps:o}=nl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=Jt(e.id);bg.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized});let{labelProps:l,fieldProps:u}=Pc(_t({},e,{id:a,labelElementType:"span"}));return{labelProps:l,listBoxProps:Yt(r,o,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},_t({role:"listbox"},Yt(u,i)))}}function wg(e,t,n){var r,o,a,l,s,u;let{key:c}=e,d=bg.get(t),p=null!=(r=e.isDisabled)?r:t.disabledKeys.has(c),f=null!=(o=e.isSelected)?o:t.selectionManager.isSelected(c),h=t.selectionManager.focusedKey===c,v=null!=(a=e.shouldSelectOnPressUp)?a:d.shouldSelectOnPressUp,g=null!=(l=e.shouldFocusOnHover)?l:d.shouldFocusOnHover,m=null!=(s=e.shouldUseVirtualFocus)?s:d.shouldUseVirtualFocus,b=null!=(u=e.isVirtualized)?u:d.isVirtualized,y=$t(),x=$t(),w={role:"option","aria-disabled":p,"aria-selected":"none"!==t.selectionManager.selectionMode?f:void 0};bn()&&Sn()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=y,w["aria-describedby"]=x),b&&(w["aria-posinset"]=t.collection.getItem(c).index+1,w["aria-setsize"]=Af(t.collection));let{itemProps:S}=function(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,isVirtualized:a,shouldUseVirtualFocus:l,focus:s}=e,u=e=>t.select(n,e),c=n===t.focusedKey;i((()=>{c&&t.isFocused&&!l&&document.activeElement!==r.current&&(s?s():wl(r.current))}),[r,c,t.focusedKey,t.childFocusStrategy,t.isFocused,l]);let d={};return l||(d={tabIndex:c?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}}),o?(d.onPressStart=e=>{"keyboard"===e.pointerType&&u(e)},d.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)}):(d.onPressStart=e=>{"touch"!==e.pointerType&&u(e)},d.onPress=e=>{"touch"===e.pointerType&&u(e)}),a||(d["data-key"]=n),{itemProps:d}}({selectionManager:t.selectionManager,key:c,ref:n,shouldSelectOnPressUp:v,isVirtualized:b,shouldUseVirtualFocus:m}),{pressProps:E,isPressed:k}=ja(_t({},S,{isDisabled:p,preventFocusOnPress:m})),{hoverProps:P}=sl({isDisabled:p||!g,onHoverStart(){Qa()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(c))}});return{optionProps:_t({},w,Yt(E,P),{id:yg(t,c)}),labelProps:{id:y},descriptionProps:{id:x},isFocused:h,isSelected:f,isDisabled:p,isPressed:k}}var Sg;Sg=JSON.parse('{"buttonLabel":"عرض المقترحات","countAnnouncement":"{optionCount, plural, one {# خيار} other {# خيارات}} متاحة.","focusAnnouncement":"{isGroupChange, select, true {المجموعة المدخلة {groupTitle}, مع {groupCount, plural, one {# خيار} other {# خيارات}}. } other {}}{optionText}{isSelected, select, true {, محدد} other {}}","listboxLabel":"مقترحات","selectedAnnouncement":"{optionText}، محدد"}');var Eg;Eg=JSON.parse('{"buttonLabel":"Покажи предложения","countAnnouncement":"{optionCount, plural, one {# опция} other {# опции}} на разположение.","focusAnnouncement":"{isGroupChange, select, true {Въведена група {groupTitle}, с {groupCount, plural, one {# опция} other {# опции}}. } other {}}{optionText}{isSelected, select, true {, избрани} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, избрани"}');var kg;kg=JSON.parse('{"buttonLabel":"Zobrazit doporučení","countAnnouncement":"K dispozici {optionCount, plural, one {je # možnost} other {jsou/je # možnosti/-í}}.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina „{groupTitle}“ {groupCount, plural, one {s # možností} other {se # možnostmi}}. } other {}}{optionText}{isSelected, select, true { (vybráno)} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybráno"}');var Pg;Pg=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# mulighed tilgængelig} other {# muligheder tilgængelige}}.","focusAnnouncement":"{isGroupChange, select, true {Angivet gruppe {groupTitle}, med {groupCount, plural, one {# mulighed} other {# muligheder}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Tg;Tg=JSON.parse('{"buttonLabel":"Empfehlungen anzeigen","countAnnouncement":"{optionCount, plural, one {# Option} other {# Optionen}} verfügbar.","focusAnnouncement":"{isGroupChange, select, true {Eingetretene Gruppe {groupTitle}, mit {groupCount, plural, one {# Option} other {# Optionen}}. } other {}}{optionText}{isSelected, select, true {, ausgewählt} other {}}","listboxLabel":"Empfehlungen","selectedAnnouncement":"{optionText}, ausgewählt"}');var Cg;Cg=JSON.parse('{"buttonLabel":"Προβολή προτάσεων","countAnnouncement":"{optionCount, plural, one {# επιλογή} other {# επιλογές }} διαθέσιμες.","focusAnnouncement":"{isGroupChange, select, true {Εισαγμένη ομάδα {groupTitle}, με {groupCount, plural, one {# επιλογή} other {# επιλογές}}. } other {}}{optionText}{isSelected, select, true {, επιλεγμένο} other {}}","listboxLabel":"Προτάσεις","selectedAnnouncement":"{optionText}, επιλέχθηκε"}');var Og;Og=JSON.parse('{"focusAnnouncement":"{isGroupChange, select, true {Entered group {groupTitle}, with {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, selected} other {}}","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} available.","selectedAnnouncement":"{optionText}, selected","buttonLabel":"Show suggestions","listboxLabel":"Suggestions"}');var Ng;Ng=JSON.parse('{"buttonLabel":"Mostrar sugerencias","countAnnouncement":"{optionCount, plural, one {# opción} other {# opciones}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Se ha unido al grupo {groupTitle}, con {groupCount, plural, one {# opción} other {# opciones}}. } other {}}{optionText}{isSelected, select, true {, seleccionado} other {}}","listboxLabel":"Sugerencias","selectedAnnouncement":"{optionText}, seleccionado"}');var jg;jg=JSON.parse('{"buttonLabel":"Kuva soovitused","countAnnouncement":"{optionCount, plural, one {# valik} other {# valikud}} saadaval.","focusAnnouncement":"{isGroupChange, select, true {Sisestatud rühm {groupTitle}, valikuga {groupCount, plural, one {# valik} other {# valikud}}. } other {}}{optionText}{isSelected, select, true {, valitud} other {}}","listboxLabel":"Soovitused","selectedAnnouncement":"{optionText}, valitud"}');var Ag;Ag=JSON.parse('{"buttonLabel":"Näytä ehdotukset","countAnnouncement":"{optionCount, plural, one {# vaihtoehto} other {# vaihtoehdot}} saatavilla.","focusAnnouncement":"{isGroupChange, select, true {Mentiin ryhmään {groupTitle}, {groupCount, plural, one {# vaihtoehdon} other {# vaihtoehdon}} kanssa.} other {}}{optionText}{isSelected, select, true {, valittu} other {}}","listboxLabel":"Ehdotukset","selectedAnnouncement":"{optionText}, valittu"}');var Lg;Lg=JSON.parse('{"buttonLabel":"Afficher les suggestions","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Groupe {groupTitle} saisi, avec {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, sélectionné(s)} other {}}","listboxLabel":"Suggestions","selectedAnnouncement":"{optionText}, sélectionné"}');var Fg;Fg=JSON.parse('{"buttonLabel":"הצג הצעות","countAnnouncement":"{optionCount, plural, one {אפשרות #} other {# אפשרויות}} במצב זמין.","focusAnnouncement":"{isGroupChange, select, true {נכנס לקבוצה {groupTitle}, עם {groupCount, plural, one {אפשרות #} other {# אפשרויות}}. } other {}}{optionText}{isSelected, select, true {, נבחר} other {}}","listboxLabel":"הצעות","selectedAnnouncement":"{optionText}, נבחר"}');var Dg;Dg=JSON.parse('{"buttonLabel":"Prikaži prijedloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena skupina {groupTitle}, s {groupCount, plural, one {# opcijom} other {# opcije/a}}. } other {}}{optionText}{isSelected, select, true {, odabranih} other {}}","listboxLabel":"Prijedlozi","selectedAnnouncement":"{optionText}, odabrano"}');var Rg;Rg=JSON.parse('{"buttonLabel":"Javaslatok megjelenítése","countAnnouncement":"{optionCount, plural, one {# lehetőség} other {# lehetőség}} áll rendelkezésre.","focusAnnouncement":"{isGroupChange, select, true {Belépett a(z) {groupTitle} csoportba, amely {groupCount, plural, one {# lehetőséget} other {# lehetőséget}} tartalmaz. } other {}}{optionText}{isSelected, select, true {, kijelölve} other {}}","listboxLabel":"Javaslatok","selectedAnnouncement":"{optionText}, kijelölve"}');var Ig;Ig=JSON.parse('{"buttonLabel":"Mostra suggerimenti","countAnnouncement":"{optionCount, plural, one {# opzione disponibile} other {# opzioni disponibili}}.","focusAnnouncement":"{isGroupChange, select, true {Ingresso nel gruppo {groupTitle}, con {groupCount, plural, one {# opzione} other {# opzioni}}. } other {}}{optionText}{isSelected, select, true {, selezionato} other {}}","listboxLabel":"Suggerimenti","selectedAnnouncement":"{optionText}, selezionato"}');var Mg;Mg=JSON.parse('{"buttonLabel":"候補を表示","countAnnouncement":"{optionCount, plural, one {# 個のオプション} other {# 個のオプション}}を利用できます。","focusAnnouncement":"{isGroupChange, select, true {入力されたグループ {groupTitle}、{groupCount, plural, one {# 個のオプション} other {# 個のオプション}}を含む。} other {}}{optionText}{isSelected, select, true {、選択済み} other {}}","listboxLabel":"候補","selectedAnnouncement":"{optionText}、選択済み"}');var _g;_g=JSON.parse('{"buttonLabel":"제안 사항 표시","countAnnouncement":"{optionCount, plural, one {#개 옵션} other {#개 옵션}}을 사용할 수 있습니다.","focusAnnouncement":"{isGroupChange, select, true {입력한 그룹 {groupTitle}, {groupCount, plural, one {#개 옵션} other {#개 옵션}}. } other {}}{optionText}{isSelected, select, true {, 선택됨} other {}}","listboxLabel":"제안","selectedAnnouncement":"{optionText}, 선택됨"}');var zg;zg=JSON.parse('{"buttonLabel":"Rodyti pasiūlymus","countAnnouncement":"Yra {optionCount, plural, one {# parinktis} other {# parinktys (-ių)}}.","focusAnnouncement":"{isGroupChange, select, true {Įvesta grupė {groupTitle}, su {groupCount, plural, one {# parinktimi} other {# parinktimis (-ių)}}. } other {}}{optionText}{isSelected, select, true {, pasirinkta} other {}}","listboxLabel":"Pasiūlymai","selectedAnnouncement":"{optionText}, pasirinkta"}');var Kg;Kg=JSON.parse('{"buttonLabel":"Rādīt ieteikumus","countAnnouncement":"Pieejamo opciju skaits: {optionCount, plural, one {# opcija} other {# opcijas}}.","focusAnnouncement":"{isGroupChange, select, true {Ievadīta grupa {groupTitle}, ar {groupCount, plural, one {# opciju} other {# opcijām}}. } other {}}{optionText}{isSelected, select, true {, atlasīta} other {}}","listboxLabel":"Ieteikumi","selectedAnnouncement":"{optionText}, atlasīta"}');var Vg;Vg=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativer}} finnes.","focusAnnouncement":"{isGroupChange, select, true {Angitt gruppe {groupTitle}, med {groupCount, plural, one {# alternativ} other {# alternativer}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Ug;Ug=JSON.parse('{"buttonLabel":"Suggesties weergeven","countAnnouncement":"{optionCount, plural, one {# optie} other {# opties}} beschikbaar.","focusAnnouncement":"{isGroupChange, select, true {Groep {groupTitle} ingevoerd met {groupCount, plural, one {# optie} other {# opties}}. } other {}}{optionText}{isSelected, select, true {, geselecteerd} other {}}","listboxLabel":"Suggesties","selectedAnnouncement":"{optionText}, geselecteerd"}');var Bg;Bg=JSON.parse('{"buttonLabel":"Wyświetlaj sugestie","countAnnouncement":"dostępna/dostępne(-nych) {optionCount, plural, one {# opcja} other {# opcje(-i)}}.","focusAnnouncement":"{isGroupChange, select, true {Dołączono do grupy {groupTitle}, z {groupCount, plural, one {# opcją} other {# opcjami}}. } other {}}{optionText}{isSelected, select, true {, wybrano} other {}}","listboxLabel":"Sugestie","selectedAnnouncement":"{optionText}, wybrano"}');var qg;qg=JSON.parse('{"buttonLabel":"Mostrar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo inserido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var Wg;Wg=JSON.parse('{"buttonLabel":"Apresentar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo introduzido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var Gg;Gg=JSON.parse('{"buttonLabel":"Afișare sugestii","countAnnouncement":"{optionCount, plural, one {# opțiune} other {# opțiuni}} disponibile.","focusAnnouncement":"{isGroupChange, select, true {Grup {groupTitle} introdus, cu {groupCount, plural, one {# opțiune} other {# opțiuni}}. } other {}}{optionText}{isSelected, select, true {, selectat} other {}}","listboxLabel":"Sugestii","selectedAnnouncement":"{optionText}, selectat"}');var Jg;Jg=JSON.parse('{"buttonLabel":"Показать предложения","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметров}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введенная группа {groupTitle}, с {groupCount, plural, one {# параметром} other {# параметрами}}. } other {}}{optionText}{isSelected, select, true {, выбранными} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, выбрано"}');var Hg;Hg=JSON.parse('{"buttonLabel":"Zobraziť návrhy","countAnnouncement":"{optionCount, plural, one {# možnosť} other {# možnosti/-í}} k dispozícii.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina {groupTitle}, s {groupCount, plural, one {# možnosťou} other {# možnosťami}}. } other {}}{optionText}{isSelected, select, true {, vybraté} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybraté"}');var $g;$g=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Na voljo je {optionCount, plural, one {# opcija} other {# opcije}}.","focusAnnouncement":"{isGroupChange, select, true {Vnesena skupina {groupTitle}, z {groupCount, plural, one {# opcija} other {# opcije}}. } other {}}{optionText}{isSelected, select, true {, izbrano} other {}}","listboxLabel":"Predlogi","selectedAnnouncement":"{optionText}, izbrano"}');var Xg;Xg=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena grupa {groupTitle}, s {groupCount, plural, one {# opcijom} other {# optione/a}}. } other {}}{optionText}{isSelected, select, true {, izabranih} other {}}","listboxLabel":"Predlozi","selectedAnnouncement":"{optionText}, izabrano"}');var Yg;Yg=JSON.parse('{"buttonLabel":"Visa förslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativ}} tillgängliga.","focusAnnouncement":"{isGroupChange, select, true {Ingick i gruppen {groupTitle} med {groupCount, plural, one {# alternativ} other {# alternativ}}. } other {}}{optionText}{isSelected, select, true {, valda} other {}}","listboxLabel":"Förslag","selectedAnnouncement":"{optionText}, valda"}');var Zg;Zg=JSON.parse('{"buttonLabel":"Önerileri göster","countAnnouncement":"{optionCount, plural, one {# seçenek} other {# seçenekler}} kullanılabilir.","focusAnnouncement":"{isGroupChange, select, true {Girilen grup {groupTitle}, ile {groupCount, plural, one {# seçenek} other {# seçenekler}}. } other {}}{optionText}{isSelected, select, true {, seçildi} other {}}","listboxLabel":"Öneriler","selectedAnnouncement":"{optionText}, seçildi"}');var Qg;Qg=JSON.parse('{"buttonLabel":"Показати пропозиції","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметри(-ів)}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введена група {groupTitle}, з {groupCount, plural, one {# параметр} other {# параметри(-ів)}}. } other {}}{optionText}{isSelected, select, true {, вибрано} other {}}","listboxLabel":"Пропозиції","selectedAnnouncement":"{optionText}, вибрано"}');var em;em=JSON.parse('{"buttonLabel":"显示建议","countAnnouncement":"有 {optionCount, plural, one {# 个选项} other {# 个选项}}可用。","focusAnnouncement":"{isGroupChange, select, true {进入了 {groupTitle} 组,其中有 {groupCount, plural, one {# 个选项} other {# 个选项}}. } other {}}{optionText}{isSelected, select, true {, 已选择} other {}}","listboxLabel":"建议","selectedAnnouncement":"{optionText}, 已选择"}');var tm;tm=JSON.parse('{"buttonLabel":"顯示建議","countAnnouncement":"{optionCount, plural, one {# 選項} other {# 選項}} 可用。","focusAnnouncement":"{isGroupChange, select, true {輸入的群組 {groupTitle}, 有 {groupCount, plural, one {# 選項} other {# 選項}}. } other {}}{optionText}{isSelected, select, true {, 已選取} other {}}","listboxLabel":"建議","selectedAnnouncement":"{optionText}, 已選取"}');const nm={"ar-AE":Wl(Sg).default,"bg-BG":Wl(Eg).default,"cs-CZ":Wl(kg).default,"da-DK":Wl(Pg).default,"de-DE":Wl(Tg).default,"el-GR":Wl(Cg).default,"en-US":Wl(Og).default,"es-ES":Wl(Ng).default,"et-EE":Wl(jg).default,"fi-FI":Wl(Ag).default,"fr-FR":Wl(Lg).default,"he-IL":Wl(Fg).default,"hr-HR":Wl(Dg).default,"hu-HU":Wl(Rg).default,"it-IT":Wl(Ig).default,"ja-JP":Wl(Mg).default,"ko-KR":Wl(_g).default,"lt-LT":Wl(zg).default,"lv-LV":Wl(Kg).default,"nb-NO":Wl(Vg).default,"nl-NL":Wl(Ug).default,"pl-PL":Wl(Bg).default,"pt-BR":Wl(qg).default,"pt-PT":Wl(Wg).default,"ro-RO":Wl(Gg).default,"ru-RU":Wl(Jg).default,"sk-SK":Wl(Hg).default,"sl-SI":Wl($g).default,"sr-SP":Wl(Xg).default,"sv-SE":Wl(Yg).default,"tr-TR":Wl(Zg).default,"uk-UA":Wl(Qg).default,"zh-CN":Wl(em).default,"zh-TW":Wl(tm).default};function rm(e,t){var n,r;let{buttonRef:o,popoverRef:l,inputRef:u,listBoxRef:c,keyboardDelegate:d,isReadOnly:p,isDisabled:f}=e,h=mi(nm),{menuTriggerProps:v,menuProps:g}=mg({type:"listbox"},t,o);bg.set(t,{id:g.id});let m=s((()=>d||new gg(t.collection,t.disabledKeys,c)),[d,t.collection,t.disabledKeys,c]),{collectionProps:b}=fg({selectionManager:t.selectionManager,keyboardDelegate:m,disallowTypeAhead:!0,disallowEmptySelection:!0,ref:u,isVirtualized:!0}),{labelProps:y,inputProps:x,descriptionProps:w,errorMessageProps:S}=Cc(_t({},e,{onChange:t.setInputValue,onKeyDown:!p&&Xt(t.isOpen&&b.onKeyDown,(e=>{switch(e.key){case"Enter":case"Tab":t.isOpen&&"Enter"===e.key&&e.preventDefault(),t.commit();break;case"Escape":t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}})),onBlur:n=>{var r;n.relatedTarget===(null==o?void 0:o.current)||null!=(r=l.current)&&r.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off"}),u),E=un({id:v.id,"aria-label":h("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),k=un({id:g.id,"aria-label":h("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),P=a(0),T=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,C=null!=(n=null==T?void 0:T.parentKey)?n:null,O=null!=(r=t.selectionManager.focusedKey)?r:null,N=a(C),j=a(O);i((()=>{if(wn()&&null!=T&&O!==j.current){let e=t.selectionManager.isSelected(O),n=null!=C?t.collection.getItem(C):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"";Hc(h("focusAnnouncement",{isGroupChange:n&&C!==N.current,groupTitle:r,groupCount:n?[...n.childNodes].length:0,optionText:T["aria-label"]||T.textValue||"",isSelected:e}))}N.current=C,j.current=O}));let A=Af(t.collection),L=a(A),F=a(t.isOpen);i((()=>{let e=t.isOpen!==F.current&&(null==t.selectionManager.focusedKey||wn());if(t.isOpen&&(e||A!==L.current)){Hc(h("countAnnouncement",{optionCount:A}))}L.current=A,F.current=t.isOpen}));let D=a(t.selectedKey);return i((()=>{if(wn()&&t.isFocused&&t.selectedItem&&t.selectedKey!==D.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"";Hc(h("selectedAnnouncement",{optionText:e}))}D.current=t.selectedKey})),i((()=>{if(t.isOpen)return function(e,t){void 0===t&&(t=document.body);let n=new Set(e),r=new Set,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&n.add(t),n.has(t)||r.has(t.parentElement)?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some((e=>t.contains(e)))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT)}),o=e=>{var t;let n=null!=(t=Cu.get(e))?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),Cu.set(e,n+1))},a=i.nextNode();for(;null!=a;)o(a),a=i.nextNode();let l=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target))))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?n.add(e):e instanceof Element&&o(e)}));return l.observe(t,{childList:!0,subtree:!0}),()=>{l.disconnect();for(let e of r){let t=Cu.get(e);1===t?(e.removeAttribute("aria-hidden"),Cu.delete(e)):Cu.set(e,t-1)}}}([u.current,l.current])}),[t.isOpen,u,l]),{labelProps:y,buttonProps:_t({},v,E,{excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(u.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(u.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))}}),inputProps:Yt(x,{role:"combobox","aria-expanded":v["aria-expanded"],"aria-controls":t.isOpen?g.id:void 0,"aria-autocomplete":"list","aria-activedescendant":T?yg(t,T.key):void 0,onTouchEnd:e=>{if(f||p)return;if(e.timeStamp-P.current<500)return e.preventDefault(),void u.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],i=Math.ceil(n.left+.5*n.width),o=Math.ceil(n.top+.5*n.height);r.clientX===i&&r.clientY===o&&(e.preventDefault(),u.current.focus(),t.toggle(null,"manual"),P.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Yt(g,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:w,errorMessageProps:S}}function im(e,t,n){let{keyboardDelegate:r,isDisabled:i}=e,o=yi({usage:"search",sensitivity:"base"}),a=s((()=>r||new gg(t.collection,t.disabledKeys,null,o)),[r,t.collection,t.disabledKeys,o]),{menuTriggerProps:l,menuProps:u}=mg({isDisabled:i,type:"listbox"},t,n),{typeSelectProps:c}=dg({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{labelProps:d,fieldProps:p,descriptionProps:f,errorMessageProps:h}=Tc(_t({},e,{labelElementType:"span"}));c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture;let v=tn(e,{labelable:!0}),g=Yt(c,l,p),m=Jt();return{labelProps:_t({},d,{onClick:()=>{var t;e.isDisabled||(n.current.focus(),Ka=t="keyboard",Ga(t,null))}}),triggerProps:Yt(v,_t({},g,{onKeyDown:Xt(g.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyAbove(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyBelow(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[g["aria-labelledby"],g["aria-label"]&&!g["aria-labelledby"]?g.id:null,m].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),t.setFocused(!1))}})),valueProps:{id:m},menuProps:_t({},u,{autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},"aria-labelledby":[p["aria-labelledby"],g["aria-label"]&&!p["aria-labelledby"]?g.id:null].filter(Boolean).join(" ")}),descriptionProps:f,errorMessageProps:h}}function om(e,t,n){var r;let{name:a,isDisabled:l}=e,s=function(){Za();let[e,t]=o(Ka);return i((()=>{let e=()=>{t(Ka)};return Va.add(e),()=>{Va.delete(e)}}),[]),e}(),{visuallyHiddenProps:u}=Bl();return{containerProps:_t({},u,{"aria-hidden":!0}),inputProps:{type:"text",tabIndex:null==s||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,disabled:l,name:a,size:t.collection.size,value:null!=(r=t.selectedKey)?r:"",onChange:e=>t.setSelectedKey(e.target.value)}}}function am(e){let{state:n,triggerRef:r,label:i,name:o,isDisabled:a}=e,{containerProps:l,inputProps:s,selectProps:u}=om(e,n,r);return n.collection.size<=300?t.createElement("div",l,t.createElement("input",s),t.createElement("label",null,i,t.createElement("select",u,t.createElement("option",null),[...n.collection.getKeys()].map((e=>{let r=n.collection.getItem(e);if("item"===r.type)return t.createElement("option",{key:r.key,value:r.key},r.textValue)}))))):o?t.createElement("input",{type:"hidden",name:o,disabled:a,value:n.selectedKey}):null}var lm=function(){return M.jsx("svg",k({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},sm={display:"grid",position:"relative"},um={display:"grid",flow:"column",gridColumns:{"":"1fr auto","with-prefix":"auto 1fr auto"},placeItems:"center stretch",placeContent:"center stretch",gap:"1x",padding:{"":"(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)",'[data-size="small"]':"(.75x - 1px) 1x (.75x - 1px) (1.5x - 1px)"},border:{"":!0,invalid:"#danger-text.50",valid:"#success-text.50",focused:!0},radius:!0,reset:"input",preset:"default",outline:{"":"#purple-03.0",focused:"#purple-03"},color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#dark.04"},fontWeight:400,textAlign:"left",cursor:"pointer"},cm={position:"absolute"},dm={display:"flex",gap:".5x",flow:"column",margin:"0",padding:".5x",listStyle:"none",radius:!0,fill:"#white",shadow:"0px 4px 16px #shadow",height:"initial 30x",overflow:"hidden auto",styledScrollbar:!0},pm={display:"block",padding:"(1x - 1px) (1.5x - 1px)",cursor:"pointer",radius:!0,fill:{"":"#white",focused:"#dark.04",selected:"#purple","focused & selected":"#purple-text",disabled:"#dark.04"},color:{"":"#dark.85",selected:"#white",disabled:"#dark.30"},preset:"t3m"};function fm(e){var t=e.state,n=e.popoverRef,r=e.listBoxRef,i=e.listBoxStyles,o=e.overlayStyles,a=e.optionStyles,l=e.overlayProps,s=e.disallowEmptySelection,u=e.shouldUseVirtualFocus,c=void 0!==u&&u,d=e.placement,p=e.minWidth,f=P(e,["state","popoverRef","listBoxRef","listBoxStyles","overlayStyles","optionStyles","overlayProps","disallowEmptySelection","shouldUseVirtualFocus","placement","minWidth"]),h=xg(k({autoFocus:t.focusStrategy||!0,disallowEmptySelection:s,shouldUseVirtualFocus:c},f),t,r).listBoxProps;i=k(k(k({},dm),Mi("ListBoxPopup")),i);var v=Ds({onClose:function(){return t.close()},shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},n).overlayProps;return M.jsx(Bo,k({styles:k(k({minWidth:p?p+"px":"initial"},cm),{overlayStyles:o})},l,v,{css:uc({placement:d}),"data-position":d,ref:n},{children:M.jsxs(Tl,k({restoreFocus:!0},{children:[M.jsx(Tu,{onDismiss:function(){return t.close()}},void 0),M.jsx(Bo,k({as:"ul",styles:i},Yt(h,f),{ref:r},{children:Array.from(t.collection).map((function(e){return M.jsx(hm,{item:e,state:t,styles:a,shouldUseVirtualFocus:c},e.key)}))}),void 0),M.jsx(Tu,{onDismiss:function(){return t.close()}},void 0)]}),void 0)}),void 0)}function hm(e){var t=e.item,n=e.state,r=e.styles,i=e.shouldUseVirtualFocus,l=a(null),s=n.disabledKeys.has(t.key),u=n.selectionManager.isSelected(t.key),c=n.selectionManager.focusedKey===t.key;r=k(k(k({},pm),Mi("Option")),r);var d=wg({key:t.key,isDisabled:s,isSelected:u,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,shouldUseVirtualFocus:i},n,l).optionProps,p=N(o(!1),2),f=p[0],h=za({onFocusChange:p[1]}).focusProps;return g(Bo,k({as:"li"},Yt(d,h),{ref:l,mods:{selected:u,focused:i?c:f,disabled:s},"data-theme":u?"special":void 0,styles:r,key:t.key}),t.rendered)}var vm=Object.assign(h((function(e,t){var n,r=(e=xa(e=Ui(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.autoFocus,e.inputProps;var v=e.triggerRef,g=e.popoverRef,m=e.listBoxRef,b=e.isLoading;e.loadingIndicator;var y=e.overlayOffset,x=void 0===y?8:y,w=e.inputStyles,S=e.optionStyles,E=e.suffix,T=e.disallowEmptySelection,C=e.listBoxStyles,O=e.overlayStyles,N=e.message,j=e.direction,A=void 0===j?"bottom":j,L=e.shouldFlip,F=void 0===L||L,D=e.requiredMark,R=void 0===D||D,I=e.placeholder,_=e.tooltip,z=e.size,K=e.styles,V=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","autoFocus","inputProps","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","overlayOffset","inputStyles","optionStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","message","direction","shouldFlip","requiredMark","placeholder","tooltip","size","styles"]),U=function(e){let t=tg(e),n=sg(_t({},e,{onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close()}})),[r,i]=o(!1);return _t({},n,t,{open(){0!==n.collection.size&&t.open()},toggle(e){0!==n.collection.size&&t.toggle(e)},isFocused:r,setFocused:i})}(e),B=co(V,Zo,k(k(k({},sm),Mi("Select_Wrapper",V)),K));w=co(V,Go,k(k(k({},um),Mi("Select",V)),w)),t=zo(t),v=zo(v),g=zo(g),m=zo(m);var q=im(e,U,v),W=q.labelProps,G=q.triggerProps,J=q.valueProps,H=q.menuProps,$=As({targetRef:v,overlayRef:g,scrollRef:m,placement:A+" end",shouldFlip:F,isOpen:U.isOpen,onClose:U.close,offset:x}),X=$.overlayProps,Y=$.placement,Z=dl({isDisabled:h},!0),Q=Z.isFocused,ee=Z.focusProps,te=sl({isDisabled:h}),ne=te.hoverProps,re=te.isHovered,ie=jc(G,v).buttonProps,oe="invalid"===d,ae=oe?M.jsx(Ft,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),le=f(ae),se=null===(n=null==v?void 0:v.current)||void 0===n?void 0:n.offsetWidth,ue=M.jsxs(Bo,k({qa:"SelectWrapper",mods:{invalid:oe,valid:"valid"===d,disabled:h,hovered:re,focused:Q},styles:B,"data-size":z},{children:[M.jsx(am,{state:U,triggerRef:v,label:e.label,name:e.name},void 0),M.jsxs(Bo,k({qa:r||"Select",as:"button"},Yt(ie,ne,ee),{ref:v,styles:w,"data-size":z,mods:{invalid:oe,valid:"valid"===d,disabled:h,hovered:re,focused:Q,"with-prefix":!!p}},{children:[p,M.jsx("span",k({},J,{children:U.selectedItem?U.selectedItem.rendered:I}),void 0),(d||b||E)&&M.jsxs("div",{children:[d&&!b?le:null,b&&M.jsx(Ct,{},void 0),E]},void 0),M.jsx(lm,{},void 0)]}),void 0),M.jsx(ec,k({isOpen:U.isOpen&&!h},{children:M.jsx(fm,k({},H,{popoverRef:g,listBoxRef:m,overlayProps:X,placement:Y,state:U,disallowEmptySelection:T,listBoxStyles:C,overlayStyles:O,optionStyles:S,minWidth:se}),void 0)}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:l,label:i,styles:K,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:W,isDisabled:h,validationState:d,message:N,requiredMark:R,tooltip:_,Component:ue,ref:t}),void 0)})),{Item:Pf});vm.cubeInputType="Select";var gm=function(){return M.jsx("svg",k({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:M.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},mm={position:"relative",display:"grid"},bm=k(k({},Ec),{width:"100%"}),ym={display:"grid",placeItems:"center",placeContent:"center",placeSelf:"stretch",radius:"right",padding:"0 1x",color:"inherit",border:0,fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#clear"},cursor:"pointer"};var xm=Object.assign(h((function(e,t){var n,r=(e=xa(e=Ui(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.multiLine,e.autoFocus;var v=e.inputRef,g=e.triggerRef,m=e.popoverRef,b=e.listBoxRef,y=e.isLoading;e.loadingIndicator;var x=e.overlayOffset,w=void 0===x?8:x,S=e.inputStyles,E=e.optionStyles,T=e.triggerStyles,C=e.suffix,O=e.disallowEmptySelection,j=e.listBoxStyles,A=e.overlayStyles,L=e.hideTrigger,F=e.message,D=e.size,R=e.autoComplete,I=void 0===R?"off":R,_=e.direction,z=void 0===_?"bottom":_,K=e.shouldFlip,V=void 0===K||K,U=e.requiredMark,B=void 0===U||U,q=e.menuTrigger,W=void 0===q?"input":q,G=e.loadingState,J=e.filter,H=e.styles,$=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","multiLine","autoFocus","inputRef","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","overlayOffset","inputStyles","optionStyles","triggerStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","hideTrigger","message","size","autoComplete","direction","shouldFlip","requiredMark","menuTrigger","loadingState","filter","styles"]),X=null!=G,Y=function(e){let t=yi(_t({usage:"search"},e));return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,i=(n=n.normalize("NFC")).length;for(;r+i<=e.length;r++){let o=e.slice(r,r+i);if(0===t.compare(n,o))return!0}return!1}}}({sensitivity:"base"}).contains,Z=N(o(0),2),Q=Z[0],ee=Z[1],te=N(o(0),2),ne=te[0],re=te[1],ie=ug(k(k({},e),{defaultFilter:J||Y,allowsEmptyCollection:X})),oe=co($,Zo,k(k(k({},mm),Mi("ComboBox_Wrapper",e)),H));S=co($,Go,k(k(k({},bm),Mi("ComboBox",e)),S)),T=k(k(k({},ym),Mi("ComboBox_Trigger",e)),T),t=zo(t),v=zo(v),g=zo(g),m=zo(m),b=zo(b);var ae=rm(k(k({},e),{inputRef:v,buttonRef:g,listBoxRef:b,popoverRef:m,menuTrigger:W}),ie),le=ae.labelProps,se=ae.inputProps,ue=ae.listBoxProps,ce=ae.buttonProps,de=As({targetRef:g,overlayRef:m,scrollRef:b,placement:z+" end",shouldFlip:V,isOpen:ie.isOpen,onClose:ie.close,offset:w}),pe=de.overlayProps,fe=de.placement;p&&(S.paddingLeft=ne+"px"),S.paddingRight=Q+"px";var he=dl({isDisabled:h}),ve=he.isFocused,ge=he.focusProps,me=sl({isDisabled:h}),be=me.hoverProps,ye=me.isHovered,xe=jc(ce,g),we=xe.buttonProps,Se=xe.isPressed,Ee=sl({isDisabled:h}),ke=Ee.hoverProps,Pe=Ee.isHovered,Te=dl({isDisabled:h},!0),Ce=Te.focusProps,Oe=Te.isFocused,Ne="invalid"===d,je=Ne?M.jsx(Ft,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),Ae=f(je),Le=null===(n=null==v?void 0:v.current)||void 0===n?void 0:n.offsetWidth,Fe=M.jsxs(Bo,k({ref:t,qa:"ComboBoxWrapper"},Fo({invalid:Ne,valid:"valid"===d,disabled:h,hovered:ye,focused:ve}),{styles:oe,style:{zIndex:ve?1:"initial"},"data-size":D},{children:[M.jsx(Bo,k({qa:r||"ComboBox",as:"input"},Yt(se,be,ge),{ref:v,autoComplete:I,styles:S},Fo({invalid:Ne,valid:"valid"===d,disabled:h,hovered:ye,focused:ve}),{"data-size":D}),void 0),p?M.jsx(fl,k({onWidthChange:re,padding:"0 1x 0 1.5x",opacity:!!h&&"@disabled-opacity",placeItems:"center",outerGap:0},{children:p}),void 0):null,M.jsxs(vl,k({onWidthChange:ee,opacity:!!h&&"@disabled-opacity"},{children:[d||y?M.jsxs(yc,k({gap:!1,padding:"0 1x"},{children:[d&&!y?Ae:null,y&&M.jsx(Ct,{},void 0)]}),void 0):null,C,L?null:M.jsx(Bo,k({as:"button"},Yt(we,Ce,ke),Fo({pressed:Se,focused:Oe,hovered:Pe,disabled:h}),{"data-size":D,isDisabled:h,ref:g,styles:T},{children:M.jsx(gm,{},void 0)}),void 0)]}),void 0),M.jsx(ec,k({isOpen:ie.isOpen&&!h},{children:M.jsx(fm,k({},ue,{listBoxRef:b,popoverRef:m,overlayProps:pe,shouldUseVirtualFocus:!0,placement:fe,state:ie,disallowEmptySelection:O,listBoxStyles:j,overlayStyles:A,optionStyles:E,minWidth:Le}),void 0)}),void 0)]}),void 0);return M.jsx(gc,k({},{labelPosition:l,label:i,styles:H,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:le,isDisabled:h,validationState:d,message:F,requiredMark:B,Component:Fe,ref:t}),void 0)})),{cubeInputType:"ComboBox",Item:Pf}),wm={display:"grid",gap:"1x",flow:"row",fill:"#purple",color:"#white",radius:"round",placeContent:"center",width:"@avatar-size @avatar-size @avatar-size",height:"@avatar-size @avatar-size @avatar-size",fontSize:"calc(@avatar-size / 2)",lineHeight:"calc(@avatar-size / 2)",fontWeight:500},Sm=h((function(e,t){var n=e.size,r=void 0===n?"4x":n,i=e.icon,o=e.children,a=P(e,["size","icon","children"]),l=co(a,Yo,k(k({},wm),{"--avatar-size":r}));return M.jsxs(Bo,k({},oa(a,{eventProps:!0}),{styles:l,ref:t,"data-theme":"special"},{children:[i,o]}),void 0)})),Em=n({});var km=j(j(j([],N(qo),!1),N($o),!1),N(Go),!1),Pm={pointerEvents:"auto",position:"relative",display:"grid",gridAreas:'"hero hero hero hero hero hero"\n ". . . . . ."\n ". heading heading header header ."\n "divider divider divider divider divider divider"\n ". content content content content ."\n ". buttonGroup buttonGroup footer footer ."\n ". . . . . ."',gridColumns:"@dialog-padding-h auto 1fr auto auto @dialog-padding-h",gridRows:"auto @dialog-heading-padding-v auto auto 1fr auto @dialog-content-padding-v",placeItems:"baseline stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},gap:0,flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},transform:{"":!1,'[data-type="modal"]':"translate(0, ((50vh - 50%) / -3))"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-content-gap":"3x"},Tm={position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",display:"flex",placeContent:"center"},Cm={},Om={S:"small",M:"medium",L:"large"},Nm={small:360,medium:479,large:798},jm={"en-US":{dismiss:"Dismiss",alert:"Alert"}};var Am=h((function(e,t){var n=r(Em)||{},o=n.type,a=void 0===o?"modal":o,l=P(n,["type"]),s=e.qa,u=e.children,c=e.size,d=void 0===c?"S":c,p=e.isDismissable,f=void 0===p?l.isDismissable:p,h=e.onDismiss,v=void 0===h?l.onClose:h,g=e.closeIcon,m=P(e,["qa","children","size","isDismissable","onDismiss","closeIcon"]);d=Om[d.toUpperCase()]||d;var b,y=k(k(k(k({},Pm),Mi("Dialog",e)),co(m,km)),{"@dialog-size":(Nm[d]||288)+"px"}),x=mi(jm),w=Si(t),S=function(e,t){let{role:n="dialog"}=e,r=$t();return r=e["aria-label"]?void 0:r,i((()=>{if(t.current&&!t.current.contains(document.activeElement)){wl(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(t.current.blur(),wl(t.current))}),500);return()=>{clearTimeout(e)}}}),[t]),{dialogProps:_t({},tn(e,{labelable:!0}),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r}),titleProps:{id:r}}}(Lo(l,e),w),E=S.dialogProps,T=S.titleProps;"popover"!==a&&"tray"!==a||(b=M.jsx(Tu,{onDismiss:v},void 0));var C={heading:k({level:2,preset:"h4",styles:Cm},T),divider:{styles:{margin:"@dialog-heading-padding-v 0 @dialog-content-gap 0"}},content:{styles:{flexGrow:1,margin:{"":"@dialog-content-gap bottom",":last-child":"0"},gap:"@dialog-content-gap"}},header:{styles:{display:"flex",gap:"1x",placeItems:"baseline stretch",padding:!!f&&"4x right",textAlign:"right"}},footer:{styles:{display:"grid",gap:"1x",flow:"column",placeItems:"baseline stretch",textAlign:"right"}}};return M.jsx(Tl,k({contain:!0,restoreFocus:!0},{children:M.jsxs(Bo,k({"data-id":"Dialog","data-qa":s||"Dialog",styles:y,as:"section"},E,{mods:{dismissable:f},"data-type":a,"data-size":d,ref:w},{children:[b,M.jsxs(Io,k({slots:C},{children:[f&&M.jsx(Vc,{qa:"ModalCloseButton",type:"neutral",styles:Tm,icon:g||M.jsx(Ye,{},void 0),"aria-label":x("dismiss"),onPress:function(){return v&&v()}},void 0),u]}),void 0)]}),void 0)}),void 0)})),Lm={entering:!1,entered:!0};function Fm(e){return M.jsx(Wu,k({timeout:{enter:0,exit:350}},e,{children:function(t){return d.map(e.children,(function(e){return e&&f(e,{isOpen:!!Lm[t]})}))}}),void 0)}var Dm=h((function(e,t){var n=e.children,r=e.isOpen,i=e.container,a=e.onEnter,s=e.onEntering,u=e.onEntered,c=e.onExit,d=e.onExiting,p=e.onExited,f=N(o(!r),2),h=f[0],v=f[1],g=Ui({}).root,m=l((function(){v(!1),u&&u()}),[u]),b=l((function(){v(!0),p&&p()}),[p]);if(!(r||!h))return null;var y=M.jsx(Vi,k({ref:t},{children:M.jsx(Fm,k({in:r,appear:!0,onExit:c,onExiting:d,onExited:b,onEnter:a,onEntering:s,onEntered:m},{children:n}),void 0)}),void 0);return w(y,i||g||document.body)})),Rm={position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:1,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"},Im=h((function(e,t){var n=e.isOpen,r=P(e,["isOpen"]),i=k(k({},Rm),Mi("Underlay"));return M.jsx(Bo,k({ref:t,"data-qa":"Underlay",styles:i,mods:{open:n}},r),void 0)})),Mm={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"@cube-visual-viewport-height",pointerEvents:"none",zIndex:2,transition:"visibility 0ms linear .13s"},_m={display:"grid",zIndex:2,height:{"":"max (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"@cube-visual-viewport-height @cube-visual-viewport-height",'[data-type="fullscreen"]':"(@cube-visual-viewport-height * .9) (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"]':"@cube-visual-viewport-height @cube-visual-viewport-height"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, visibility 0ms linear, transform .25s ease-in-out",transform:{"":"translate(0, 0) scale(1, 1)",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:".9999"}};var zm=h((function(e,t){var n=e.qa,r=e.children,i=e.isOpen,o=e.type,a=e.placement,l=e.styles,s=e.overlayProps,u=P(e,["qa","children","isOpen","type","placement","styles","overlayProps"]);l=k(k(k({},_m),Mi("Modal",e)),l),_s();var c=qs().modalProps,d={"--cube-visual-viewport-height":hn().height+"px"};return M.jsx(Bo,k({qa:"ModalWrapper",mods:{open:i},"data-type":o,"data-placement":a,styles:Mm,style:d},{children:M.jsx(Bo,k({qa:n||"Modal",styles:l,mods:{open:i},"data-type":o,"data-placement":a},Lo(u,s,c),{ref:t},{children:r}),void 0)}),void 0)})),Km=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.type,a=e.styles,l=P(e,["qa","children","onClose","type","styles"]),s=Si(t),u=Ds(e,s),c=u.overlayProps,d=u.underlayProps;return M.jsxs(Dm,k({},l,{children:["fullscreenTakeover"!==o&&M.jsx(Im,k({},d),void 0),M.jsx(zm,k({qa:n,onClose:i,type:o,ref:s,overlayProps:c,styles:a},{children:r}),void 0)]}),void 0)})),Vm={zIndex:2,height:"max (@cube-visual-viewport-height * .9)",width:"288px 90vw",pointerEvents:"auto",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear",opacity:{"":0,open:".9999"}};var Um=h((function(e,t){var n=e.qa,r=e.children,l=e.isOpen,s=e.styles,u=e.isFixedHeight,c=e.isNonModal,d=e.overlayProps,p=P(e,["qa","children","isOpen","styles","isFixedHeight","isNonModal","overlayProps"]);_s();var f=qs({isDisabled:c}).modalProps;s=k(k(k({},Vm),Mi("Tray",e)),s);var h=hn(),v=N(o(h.height),2),g=v[0],m=v[1],b=a();i((function(){b.current&&clearTimeout(b.current),h.height<g&&h.height<window.innerHeight?b.current=setTimeout((function(){m(h.height)}),500):m(h.height)}),[g,h.height]);var y={"--cube-visual-viewport-height":g+"px"},x=Lo(p,d);return M.jsx(Bo,k({qa:"TrayWrapper",mods:{open:l},styles:k(k({},Mm),{placeContent:"end center",placeItems:"end center"}),style:y},{children:M.jsx(Bo,k({qa:n||"Tray",styles:s,mods:{open:l,"fixed-height":u}},x,f,{ref:t},{children:r}),void 0)}),void 0)})),Bm=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.isFixedHeight,a=e.isNonModal,l=e.styles,s=P(e,["qa","children","onClose","isFixedHeight","isNonModal","styles"]),u=Si(t),c=Ds(k(k({},e),{isDismissable:!0}),u),d=c.overlayProps,p=c.underlayProps;return M.jsxs(Dm,k({},s,{children:[M.jsx(Im,k({},p),void 0),M.jsx(Um,k({qa:n,onClose:i,ref:u,overlayProps:d,isFixedHeight:o,isNonModal:a,styles:l},{children:r}),void 0)]}),void 0)})),qm={pointerEvents:"auto",position:"absolute",transition:"opacity .120s linear, visibility 0ms linear, transform .120s ease-in-out",transform:{"":"scale(1, .9)",open:"scale(1, 1)"},opacity:{"":0,open:".9999"},transformOrigin:{"":"top center",'[data-placement="top"]':"bottom center"}};var Wm=h((function(e,t){var n=e.qa,r=e.children,i=e.placement,o=void 0===i?"bottom":i;e.arrowProps;var a=e.isOpen,l=e.style,s=e.styles;e.shouldCloseOnBlur,e.isKeyboardDismissDisabled;var u=e.isNonModal,c=e.isDismissable,d=P(e,["qa","children","placement","arrowProps","isOpen","style","styles","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]),p=Ds(k(k({},e),{isDismissable:c&&a}),t).overlayProps,f=qs({isDisabled:u}).modalProps;return s=k(k(k({},qm),Mi("Popover",e)),s),M.jsx(Bo,k({qa:n||"Popover"},Yt(d,p,f),{styles:s,ref:t,mods:{open:a},"data-placement":o,role:"presentation",style:l},{children:r}),void 0)})),Gm=h((function(e,t){var n=e.qa,r=e.style,i=e.styles,o=e.children,a=e.placement,l=e.arrowProps,s=e.onClose,u=e.shouldCloseOnBlur,c=e.isKeyboardDismissDisabled,d=e.isNonModal,p=e.isDismissable,f=void 0===p||p,h=P(e,["qa","style","styles","children","placement","arrowProps","onClose","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]);return M.jsx(Dm,k({},h,{children:M.jsx(Wm,k({qa:n,ref:t,style:r,styles:i,placement:a,arrowProps:l,onClose:s,shouldCloseOnBlur:u,isKeyboardDismissDisabled:c,isNonModal:d,isDismissable:f},{children:o}),void 0)}),void 0)}));var Jm=function(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,l=e.mobileType,s=void 0===l?"popover"===r?"modal":r:l,u=e.hideArrow,c=e.targetRef,d=e.onDismiss,p=e.isDismissable,f=void 0===p||p,h=e.isKeyboardDismissDisabled,v=e.styles,g=e.mobileViewport,m=void 0===g?700:g,b=P(e,["children","type","mobileType","hideArrow","targetRef","onDismiss","isDismissable","isKeyboardDismissDisabled","styles","mobileViewport"]);if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");var y=N(t,2),x=y[0],w=y[1];(function(e){let t="undefined"!=typeof window&&"function"==typeof window.matchMedia,[n,r]=o((()=>!!t&&window.matchMedia(e).matches));return i((()=>{if(!t)return;let n=window.matchMedia(e),i=e=>{r(e.matches)};return n.addListener(i),()=>{n.removeListener(i)}}),[t,e]),!qt()&&n})("(max-width: "+m+"px)")&&("modal"!==r&&"modal"===s&&(f=!0),r=s);var S=Ou(e),E=a(!1),T=a(!1),C=function(){return T.current=!0},O=function(){return T.current=!1};function j(){f&&(d&&d(),S.close())}return E.current=S.isOpen,i((function(){return function(){(E.current||T.current)&&"popover"!==r&&"tray"!==r&&console.warn("CubeUIKit: A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")}}),[]),"popover"===r?M.jsx(Hm,k({},b,{state:S,targetRef:c,trigger:x,content:w,onClose:j,isKeyboardDismissDisabled:h,hideArrow:u}),void 0):M.jsx($m,{type:r,state:S,onClose:j,isDismissable:f,trigger:x,overlay:function(){switch(r){case"panel":case"fullscreen":case"fullscreenTakeover":case"modal":return M.jsx(Km,k({isOpen:S.isOpen,isDismissable:f,onClose:j,type:r,isKeyboardDismissDisabled:h,onExiting:C,onExited:O,styles:v},{children:"function"==typeof w?w(S.close):w}),void 0);case"tray":return M.jsx(Bm,k({isOpen:S.isOpen,onClose:j,isKeyboardDismissDisabled:h,styles:v},{children:"function"==typeof w?w(S.close):w}),void 0)}}()},void 0)};function Hm(e){var t=e.state,n=e.targetRef,r=e.trigger,i=e.content,o=e.hideArrow,l=e.onClose,s=e.isKeyboardDismissDisabled,u=P(e,["state","targetRef","trigger","content","hideArrow","onClose","isKeyboardDismissDisabled"]),c=a(null),d=a(null),p=As({targetRef:n||c,overlayRef:d,placement:u.placement,containerPadding:u.containerPadding,offset:u.offset||8,crossOffset:u.crossOffset,shouldFlip:u.shouldFlip,isOpen:t.isOpen}),f=p.overlayProps,h=p.placement,v=p.arrowProps,g=Rs({type:"dialog"},t,c),m=g.triggerProps,b=g.overlayProps,y=k(k({},m),{ref:n?void 0:c}),x=M.jsx(Gm,k({isOpen:t.isOpen,style:f.style,ref:d,onClose:l,placement:h,arrowProps:v,isKeyboardDismissDisabled:s,hideArrow:o},{children:"function"==typeof i?i(t.close):i}),void 0);return M.jsx($m,{type:"popover",state:t,triggerProps:y,dialogProps:b,trigger:r,overlay:x},void 0)}function $m(e){var t=e.type,n=e.state,r=e.onClose,i=e.isDismissable,o=e.dialogProps,a=void 0===o?{}:o,l=e.triggerProps,s=void 0===l?{}:l,u=e.overlay,c=e.trigger,d=k({type:t,onClose:r,isDismissable:i},a);return M.jsxs(v,{children:[M.jsx(_a,k({},s,{onPress:n.toggle,isPressed:n.isOpen&&"modal"!==t&&"fullscreen"!==t&&"fullscreenTakeover"!==t},{children:c}),void 0),M.jsx(Em.Provider,k({value:d},{children:u}),void 0)]},void 0)}var Xm=h((function(e,t){var n=(r(Em)||{}).onClose,i=void 0===n?function(){}:n,o=e.danger,a=e.children,l=e.primaryProps,s=void 0===l?{}:l,u=e.secondaryProps,c=e.cancelProps,d=e.title;e.styles;var p=e.noActions,f=P(e,["danger","children","primaryProps","secondaryProps","cancelProps","title","styles","noActions"]);s.label||(s.label="Ok");var h="primary";return o&&(h="danger"),M.jsxs(Am,k({role:"alertdialog",ref:t,isDismissable:!1},f,{children:[M.jsx(jp,{children:d},void 0),M.jsx(th,{},void 0),M.jsx(ah,{children:a},void 0),p?null:M.jsxs(Rp,k({align:"end"},{children:[M.jsx(Vc,k({type:h},s,{onPress:function(e){return Xt(s.onPress&&s.onPress(e),i("primary"))}}),void 0),u&&M.jsx(Vc,k({},u,{onPress:function(e){return Xt((null==u?void 0:u.onPress)&&(null==u?void 0:u.onPress(e)),i("secondary"))}}),void 0),c&&M.jsx(Vc,k({},c,{onPress:function(e){return Xt((null==c?void 0:c.onPress)&&(null==c?void 0:c.onPress(e)),i("cancel"))}}),void 0)]}),void 0)]}),void 0)}));function Ym(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,i=e.onDismiss,o=e.isDismissable,l=e.isKeyboardDismissDisabled,s=d.toArray(t);if(s.length>1)throw new Error("Only a single child can be passed to DialogContainer.");var u=a(),c=p(s[0])?s[0]:null;c&&(u.current=c);var f={type:r,onClose:i,isDismissable:o};return M.jsx(Km,k({isOpen:!!c,onClose:o?i:void 0,type:r||"modal",isDismissable:o,isKeyboardDismissDisabled:l},{children:M.jsx(Em.Provider,k({value:f},{children:c}),void 0)}),void 0)}var Zm=0,Qm={root:null,items:[],init:function(){if(!this.root){var e=document.getElementById("cube-ui-kit-root");this.root=document.createElement("div"),this.root.classList.add("cube-dialog-container"),e?(e.appendChild(this.root),this._render([])):console.warn("Cube UI Kit: unable to create a Modal because the Root component is not found.")}},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),x.render(M.jsx(Bs,{children:e.map((function(e){var n=e.id,r=e.type;e.placement;var i=e.isDismissable,o=void 0===i||i,a=e.primaryProps,l=e.cancelProps;e.onDismiss;var s=e.content,u=P(e,["id","type","placement","isDismissable","primaryProps","cancelProps","onDismiss","content"]);return M.jsx(Ym,k({isDismissable:o,type:r,onDismiss:function(){"info"===e.dialogType?t.resolve(e):t.reject(e)}},{children:e.isVisible?g(Xm,k({noActions:"form"===e.dialogType,primaryProps:k(k({},a),{onPress:function(){t.resolve(e)}}),cancelProps:l?k(k({},l),{onPress:function(){t.reject(e)}}):void 0},u,{key:n}),"function"==typeof s?s((function(){return t.resolve(e)}),(function(){return t.reject(e)})):s):null}),n)}))},void 0),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++Zm,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}},eb=h((function(e,t){var n,r=e.qa,i=e.name,a=e.form,l=e.defaultValues,s=e.onDismiss,u=e.onSubmit,d=e.onValuesChange,p=e.onSubmitFailed,f=e.labelStyles,h=e.labelPosition,v=e.requiredMark,g=e.isRequired,m=e.necessityIndicator,b=e.necessityLabel,y=e.isReadOnly,x=e.validationState,w=e.validateTrigger,S=e.children,E=e.danger,P=e.noActions,O=e.submitProps,j=e.cancelProps,A=e.preserve;n=N(Ea.useForm(a),1),a=n[0];var L=N(o(!1),2),F=L[0],D=L[1];return c(t,(function(){return{open:function(){D(!0)},close:function(){D(!1)}}})),M.jsx(Ym,k({onDismiss:function(){s(),D(!1)}},{children:F&&M.jsxs(Am,k({qa:(r||"")+"Dialog",isDismissable:!0},{children:[M.jsx(jp,{children:"Delete deployment"},void 0),M.jsx(th,{},void 0),M.jsx(ah,{children:M.jsxs(Ea,k({qa:r||"DialogForm",form:a,name:i,onSubmit:function(e){return T(void 0,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:return[4,u(e)];case 1:return t.sent(),D(!1),A||a.resetFields(),[2]}}))}))},onSubmitFailed:p,defaultValues:l,onValuesChange:d,labelStyles:f,labelPosition:h,requiredMark:v,isRequired:g,necessityIndicator:m,necessityLabel:b,isReadOnly:y,validationState:x,validateTrigger:w},{children:["function"==typeof S?S((function(){return D(!1)})):S,P?void 0:M.jsxs(Rp,{children:[M.jsx(Ev,k({qa:(r||"")+"SubmitButton",theme:E?"danger":void 0,label:"Submit"},O||{}),void 0),M.jsx(Vc,k({qa:(r||"")+"CancelButton",onPress:function(){return D(!1)},label:"Cancel"},j||{}),void 0)]},void 0)]}),void 0)},void 0)]}),void 0)}),void 0)})),tb=Object.assign(Am,{confirm:function(e){return Qm.open(k({dialogType:"confirm"},e))},info:function(e){return Qm.open(k({dialogType:"info"},e))},form:function(e){return Qm.open(k({dialogType:"form"},e))}}),nb={display:"flex",flow:"row",gap:"1x",placeContent:"space-between",placeItems:"center",padding:"1x 1.5x",fill:"#white"};function rb(e){var t=e.children,n=e.onLogoPress,r=P(e,["children","onLogoPress"]),i=co(r,Yo,nb);return M.jsxs(Bo,k({role:"banner",styles:i},oa(r),{children:[M.jsx(Lh,{onPress:n},void 0),M.jsx(yc,k({flexGrow:1,placeContent:"space-between"},{children:t}),void 0)]}),void 0)}var ib={display:"block",flow:"column",radius:"1x",padding:"1.5x",preset:"t3"},ob=j(j([],N(Yo),!1),N(Ho),!1),ab=h((function(e,t){var n=e.type;e.label;var r=P(e,["type","label"]);n=n||"note";var i=co(r,ob,k(k({},ib),{fill:Fh[n]?Fh[n].fill:"#clear",border:Fh[n]&&Fh[n].border?Fh[n].border:"#clear",color:"#dark"}));return M.jsx(Bo,k({role:"region"},oa(r,{eventProps:!0}),{styles:i,ref:t}),void 0)})),lb={created:M.jsxs("svg",k({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M4.714 8.572h2.714v2.715c0 .078.065.142.143.142h.857a.143.143 0 00.143-.143V8.572h2.715a.143.143 0 00.142-.143v-.857a.143.143 0 00-.142-.143H8.57V4.715a.143.143 0 00-.143-.143h-.857a.143.143 0 00-.143.143V7.43H4.714a.143.143 0 00-.143.143v.857c0 .079.065.143.143.143z",fill:"#67C082"},void 0),M.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#67C082"},void 0)]}),void 0),deleted:M.jsxs("svg",k({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M4.714 8.57h6.572a.143.143 0 00.142-.142V7.57a.143.143 0 00-.142-.143H4.714a.143.143 0 00-.143.143v.857c0 .078.065.143.143.143z",fill:"#FF646D"},void 0),M.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FF646D"},void 0)]}),void 0),modified:M.jsxs("svg",k({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[M.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FBBC05"},void 0),M.jsx("circle",{cx:"8",cy:"8",r:"2.222",fill:"#FBBC05"},void 0)]}),void 0)},sb={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function ub(e){return".75x .5x .75x "+(1.5*e+.5)+"x"}function cb(e,t){return void 0===t&&(t=!1),e.reduce((function(e,n){return n.isLeaf?t||e.push(n.key):(e.push(n.key),e.push.apply(e,j([],N(cb(n.children||[])),!1))),e}),[])}var db={created:{"":"#success.10",hovered:"#success.15"},deleted:{"":"#danger.08",hovered:"#danger.13"}},pb={created:"#success",deleted:"#danger"};function fb(e){var t=e.isSelected,n=e.mode,r=e.indent;return{width:"max 100%",radius:!0,textAlign:"left",fill:t?"#purple.05":db[n]||{"":"#clear",hovered:"#dark.04"},color:t?"#purple-text":pb[n]||"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:t?500:400,padding:ub(r)}}function hb(e){var t=e.children,n=e.mode,r=e.indent,i=e.onPress,o=e.isSelected;return M.jsx(Ic,k({onPress:i,styles:fb({isSelected:o,mode:n,indent:r}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}function vb(e){return(e=e.map((function(e){return k(k({},e),{children:e.children?vb(e.children):void 0})}))).sort((function(e,t){return!e.isLeaf&&t.isLeaf?-1:!t.isLeaf&&e.isLeaf?1:e.title&&t.title?e.title.localeCompare(t.title,"en",{sensitivity:"base"}):0}))}var gb="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function mb(e){var t=e.onSelect,n=e.treeData,r=e.selectedKey,a=e.defaultExpandAll,l=e.rootTitle,s=e.actionsPanel,u=e.onlyDirs,c=P(e,["onSelect","treeData","selectedKey","defaultExpandAll","rootTitle","actionsPanel","onlyDirs"]);n=vb(n);var d=N(o(["/"]),2),p=d[0],f=d[1],h=N(o(r),2),v=h[0],g=h[1],m=[{key:"/",title:l||"/",children:n}];function b(e){t&&t(e.key),g(e.key)}return i((function(){g(r)}),[r]),i((function(){a&&f(cb(m,!0))}),[]),M.jsx(Mf,k({styles:{flow:"column",fontWeight:500,width:"100%",gap:"1bw"}},c,{children:function e(t,n){return void 0===n&&(n=0),t.reduce((function(t,r){return r.isLeaf?u||t.push(M.jsx(hb,k({indent:n+1.7,isSelected:v===r.key,onPress:function(){return b(r)},mode:r.mode},{children:M.jsxs(yc,k({gap:"1x",css:gb,color:v===r.key?"#purple":"#dark.50"},{children:[M.jsx(pt,{},void 0),M.jsx(oc,k({style:sb,flexGrow:1,color:v===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0),s&&s(r),r.mode&&M.jsx(Mf,k({padding:"0 .5x",placeItems:"center"},{children:lb[r.mode]}),void 0)]}),void 0)}),r.key)):(t.push(M.jsx(hb,k({indent:n,isSelected:v===r.key,onPress:function(){return b(r)}},{children:M.jsxs(yc,k({gap:".5x",css:gb},{children:[M.jsx(Vc,k({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return function(e){p.includes(e.key)?f(p.filter((function(t){return t!==e.key}))):f(j(j([],N(p),!1),[e.key],!1))}(r)}},{children:p.includes(r.key)?M.jsx(We,{},void 0):M.jsx(Ue,{},void 0)}),void 0),M.jsxs(yc,k({gap:"1x",flexGrow:1,color:v===r.key?"#purple":"#dark.50"},{children:[p.includes(r.key)?M.jsx(bt,{},void 0):M.jsx(vt,{},void 0),M.jsx(oc,k({style:sb,color:v===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0)]}),void 0),s&&s(r)]}),void 0)}),r.key)),p.includes(r.key)&&t.push.apply(t,j([],N(e(r.children||[],n+1)),!1))),t}),[])}(m)}),void 0)}var bb=n({addTab:function(){},removeTab:function(){},setTab:function(){},changeTab:function(){}}),yb={color:{"":"#dark","selected, hovered":"#purple-text",disabled:"#dark.50"},fill:"#purple.0",textAlign:"center",fontWeight:600,padding:"(1x - 1px) (1x - 1px)",radius:"1r 1r 0 0",border:0},xb=function(e){var t=e.isSelected,n=e.isHidden;e.onClose;var r=P(e,["isSelected","isHidden","onClose"]);return M.jsx(Vc,k({type:"tab",styles:yb,css:"\n&::before {\n --outline-size: 0px;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: inset 0 calc(-1 * var(--outline-size)) 0 var(--purple-color);\n pointer-events: none;\n transition: opacity linear .2s, box-shadow linear .2s;\n}\n&[data-is-selected]::before {\n --outline-size: 2px;\n}\n&:not([data-is-selected]):not([disabled])[data-is-hovered]::before {\n --outline-size: 1px;\n}\n",isSelected:t,isHidden:n},r),void 0)};function wb(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick;e.onTabClose;var l=e.paneStyles,s=e.extra,c=e.children,d=P(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","extra","children"]),p=a(null),f=N(o([]),2),h=f[0],v=f[1],g=N(o(n||t),2),m=g[0],b=g[1],y=N(o(!1),2),x=y[0],w=y[1],S=N(o(!1),2),E=S[0],T=S[1];function C(){var e=p&&p.current;e&&(w(!!e.scrollLeft),T(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function O(e,t){return e.find((function(e){return e.id===t}))}function A(e){O(h,e)&&b(e)}return u(C,[h]),i((function(){function e(){C()}return p&&p.current&&(p.current.addEventListener("scroll",e),p.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){p&&p.current&&(p.current.removeEventListener("scroll",e),p.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[p]),i((function(){var e=p&&p.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[m]),i((function(){b(n)}),[n]),M.jsx(Mf,k({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":x||null,"data-is-right-fade":E||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},d,{children:M.jsxs(bb.Provider,k({value:{addTab:function(e){v((function(t){return O(t,e.id)?t:j(j([],N(t),!1),[e],!1)}))},setTab:A,removeTab:function(e){v((function(t){var n=t.filter((function(t){return t.id!==e.id}));return b((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},changeTab:function(e){v((function(t){var n=t.find((function(t){return t.id===e.id}));return n&&Object.assign(n,e),j([],N(t),!1)}))},currentTab:m}},{children:[M.jsxs(yc,k({gap:".5x",placeContent:"center space-between"},{children:[M.jsx(yc,k({ref:p,gap:"1x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:h.map((function(e){return M.jsx(xb,k({"data-qa":e.qa,onPress:function(){return function(e){r&&r(e.id),A(e.id)}(e)},isSelected:e.id===m||!1,isDisabled:e.isDisabled,isHidden:e.isHidden},{children:e.title}),e.id)}))}),void 0),s]}),void 0),M.jsx(Mf,k({flexGrow:1,border:"top rgb(227, 227, 233)"},l||{},{children:c}),void 0)]}),void 0)}),void 0)}wb.TabPane=function(e){var t=e.id,n=e.title,o=e.qa,a=e.isHidden,l=e.isDisabled,s=e.children,u=P(e,["id","title","qa","isHidden","isDisabled","children"]),c=r(bb),d=c.addTab,p=c.removeTab,f=c.changeTab,h=c.currentTab;i((function(){var e={id:t,qa:o,title:n,isDisabled:l,isHidden:a};return d(e),function(){p(e)}}),[t]),i((function(){f({id:t,qa:o,title:n,isDisabled:l,isHidden:a})}),[n,l,a]);var v=t===h;return M.jsx(oc,k({style:{display:v?"block":"none"},flexGrow:1},u,{children:s}),void 0)};var Sb=n({addTab:function(){},removeTab:function(){},setTab:function(){},setDirtyTab:function(){}}),Eb={radius:"1r 1r 0 0",padding:"1x 1.5x",border:{"":"left top right #clear",disabled:"left top right rgb(227, 227, 233)"},fill:{"":"#dark.04",hovered:"#dark.08","disabled, disabled & hover":"#white"},color:{"":"#dark.75","disabled, hovered, hovered & disabled":"#dark"},cursor:{"":"pointer",disabled:"default"},fontWeight:500,opacity:1,preset:"default",outline:{"":"inset #purple-03.0","focused & focus-visible":"inset #purple-03"}},kb={color:{"":"#dark.50",hovered:"#dark"},padding:"0 .25x",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},radius:"1r"},Pb=function(e){var t=e.isDirty,n=e.isDisabled,r=e.children,i=e.isClosable,o=e.onClose,a=P(e,["isDirty","isDisabled","children","isClosable","onClose"]);return M.jsx(Ic,k({className:t?"file-tab--dirty":"",css:"\n margin-bottom: var(--border-width);\n transform: translate(0, 0);\n transition: color .2s linear, background-color .2s linear;\n\n &[disabled] {\n transform: translate(0, var(--border-width));\n }\n\n &.file-tab--dirty {\n &:hover {\n & .file-tab-dirty-badge {\n opacity: 0;\n pointer-events: none;\n }\n\n & .file-tab-close {\n opacity: 1;\n }\n }\n\n &:not(:hover) {\n & .file-tab-dirty-badge {\n opacity: 1;\n }\n\n & .file-tab-close {\n opacity: 0;\n }\n }\n }\n",styles:Eb,isDisabled:n},a,{children:M.jsxs(yc,k({gap:".75x"},{children:[M.jsx(oc,{children:r},void 0),(i||t)&&M.jsxs(Mf,k({placeItems:"center",style:{position:"relative"}},{children:[i?M.jsx(Ic,k({onPress:o,className:"file-tab-close",styles:kb},{children:M.jsx(Ye,{},void 0)}),void 0):M.jsx("div",{},void 0),t?M.jsx(oc,{className:"file-tab-dirty-badge",css:"\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all .2s linear;\n",width:"1x",height:"1x",fill:"#dark.30",radius:"round"},void 0):null]}),void 0)]}),void 0)}),void 0)};function Tb(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick,l=e.onTabClose,s=e.paneStyles,c=e.isClosable,d=void 0===c||c,p=e.children,f=P(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","isClosable","children"]),h=a(null),v=N(o([]),2),g=v[0],m=v[1],b=N(o(n||t),2),y=b[0],x=b[1],w=N(o(!1),2),S=w[0],E=w[1],T=N(o(!1),2),C=T[0],O=T[1];function A(){var e=h&&h.current;e&&(E(!!e.scrollLeft),O(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function L(e,t){return e.find((function(e){return e.id===t}))}function F(e){L(g,e)&&x(e)}return u(A,[g]),i((function(){function e(){A()}return h&&h.current&&(h.current.addEventListener("scroll",e),h.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){h&&h.current&&(h.current.removeEventListener("scroll",e),h.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[h]),i((function(){var e=h&&h.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[y]),i((function(){x(n)}),[n]),M.jsx(Mf,k({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":S||null,"data-is-right-fade":C||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},f,{children:M.jsxs(Sb.Provider,k({value:{addTab:function(e){m((function(t){return L(t,e.id)?t:j(j([],N(t),!1),[e],!1)}))},setTab:F,removeTab:function(e){m((function(t){var n=t.filter((function(t){return t.id!==e.id}));return x((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},setDirtyTab:function(e,t){m((function(n){var r=L(n,e);return r?(r.isDirty=t,j([],N(n),!1)):n}))},currentTab:y}},{children:[M.jsx(yc,k({ref:h,gap:".5x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:g.map((function(e){return M.jsx(Pb,k({onPress:function(){return function(e){F(e.id),r&&r(e.id)}(e)},onClose:function(){return d&&function(e){L(g,e.id)&&l&&l(e.id)}(e)},isClosable:d,isDisabled:e.id===y||!1,isDirty:e.isDirty},{children:e.title}),e.id)}))}),void 0),M.jsx(Mf,k({flexGrow:1,border:"top rgb(227, 227, 233)"},s||{},{children:p}),void 0)]}),void 0)}),void 0)}Tb.TabPane=function(e){var t=e.id,n=e.title,o=e.isDirty,a=e.children,l=P(e,["id","title","isDirty","children"]),s=r(Sb),u=s.addTab,c=s.removeTab,d=s.currentTab,p=s.setDirtyTab;i((function(){var e={id:t,title:n,isDirty:o};return u(e),function(){c(e)}}),[t,n]),i((function(){p(t,o||!1)}),[o]);var f=t===d;return M.jsx(oc,k({style:{display:f?"block":"none"},flexGrow:1},l,{children:a}),void 0)};var Cb=m.div(Nb||(Nb=A(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"],["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"])));function Ob(e){var t=this,n=e.title,r=e.isVisible,a=e.type,s=e.okType,u=e.isClosable,c=e.isLoading,d=e.children,p=e.okText,f=e.cancelText,h=e.width,v=e.onOk,g=e.onCancel,m=e.onClose,b=e.qa,y=e.isDisabled,x=P(e,["title","isVisible","type","okType","isClosable","isLoading","children","okText","cancelText","width","onOk","onCancel","onClose","qa","isDisabled"]);u=!!u;var w=N(o(!1),2),S=w[0],E=w[1],O=N(o(!1),2),j=O[0],A=O[1];function L(){(m||g)&&(u?(m||g)():g&&g())}i((function(){E(r||!1)}),[r]);i((function(){function e(e){"Escape"!==e.key||c||L()}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[]);var F=l((function(e){A(!0),T(t,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:if(!v)return[3,5];t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,v(e)];case 2:return!1===t.sent()&&(m||g)&&(m||g)(),[3,5];case 3:return t.sent(),[3,5];case 4:return A(!1),[7];case 5:return[2]}}))}))}),[v]);return M.jsx(Qu.CSSTransition,k({in:S,timeout:250,classNames:"cube-modal-transition"},{children:M.jsx(Cb,k({className:"cube-modal-overlay",onClick:function(e){e&&e.target&&e.target.classList.contains("cube-modal-overlay")&&!c&&L()}},{children:M.jsxs(Ph,k({"data-qa":b||"Modal",className:"cube-modal",display:"flex",role:"region",color:"#dark.85",padding:"0",shadow:!0,border:!1,radius:"1.5r",width:"288px (100% - 32px) "+("number"==typeof h?h+"px":h||"360px"),style:{textAlign:"left"}},x,{children:[M.jsxs(Mf,k({placeContent:"space-between",padding:"2x 3x",border:"bottom"},{children:["object"==typeof n?n:M.jsx(jp,k({level:4,flexGrow:1},{children:n}),void 0),u?M.jsx(Ic,k({"data-qa":"ModalCloseButton",width:"3x",height:"3x",onPress:m||g,color:{"":"#dark.75",hovered:"#purple"},outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"}},{children:M.jsx(Ye,{style:{fontSize:16}},void 0)}),void 0):null]}),void 0),M.jsxs(Vf,k({padding:"3x",gap:"3x",height:"max (100vh - 90px)",style:{overflow:"auto"}},{children:["string"==typeof d?M.jsx(oc,{children:d},void 0):d,"info"!==a&&(v||g)?M.jsxs(yc,k({gap:"1.5x"},{children:[M.jsx(Vc,k({"data-qa":"ConfirmButton",isDisabled:y,type:"danger"===s?"danger":"primary",isLoading:c||j,onPress:F},{children:p||"OK"}),void 0),M.jsx(Vc,k({"data-qa":"CancelButton",onPress:function(){g?g():m&&m()},isDisabled:c},{children:f||("Yes"===p?"No":"Cancel")}),void 0)]}),void 0):null,"info"===a?M.jsx(yc,{children:M.jsx(Vc,k({"data-qa":"OkButton",isDisabled:y,type:"danger"===s?"danger":"primary",onPress:L},{children:p||"OK"}),void 0)},void 0):null]}),void 0)]}),void 0)}),void 0)}),void 0)}var Nb,jb=0,Ab={root:null,items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-modal-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),x.render(e.map((function(e){var n=e.id,r=e.onOk,i=e.onCancel,o=e.onClose,a=e.content,l=P(e,["id","onOk","onCancel","onClose","content"]);return g(Ob,k({},l,{onOk:function(n){return T(t,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:return r?[4,r(n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.resolve(e,n),[2]}}))}))},onCancel:function(){i&&i(),"info"===e.type?t.resolve(e):t.reject(e)},onClose:function(){o&&o(),"info"===e.type?t.resolve(e):t.reject(e)},key:n}),a)})),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++jb,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}};Ob.confirm=function(e){return Ab.open(k({type:"confirm"},e))},Ob.info=function(e){return Ab.open(k({type:"info"},e))};
|
|
41
41
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
42
|
-
var Ly=async function(e){try{await async function(e){if(!navigator.clipboard)throw Fy();return navigator.clipboard.writeText(e)}(e)}catch(t){try{await async function(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const n=window.getSelection(),r=window.document.createRange();n.removeAllRanges(),r.selectNode(t),n.addRange(r);let i=!1;try{i=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!i)throw Fy()}(e)}catch(e){throw e||t||Fy()}}};function Fy(){return new DOMException("The request is not allowed","NotAllowedError")}function Dy(e){var t,n=e.type,r=e.children,i=e.onClose,o=P(e,["type","children","onClose"]);switch(n=n||"note"){case"success":t=He;break;case"danger":t=rt;break;default:t=kt}return M.jsxs(Ph,k({display:"grid",role:"region",color:"#dark",padding:".5x",shadow:"0 5px 15px #dark.10",border:!1,margin:"1x bottom",radius:"1.5r",styles:{gridColumns:"auto 1fr auto",placeItems:"center start",gap:"2x"}},o,{children:[M.jsx(Mf,k({radius:"1r",width:"5x",height:"5x",placeContent:"center",placeItems:"center",fill:Fh[n]?Fh[n].fill:"#clear",color:Fh[n]?Fh[n].color:"#dark.75"},{children:M.jsx(t,{style:{fontSize:16}},void 0)}),void 0),M.jsx(oc,{children:r},void 0),M.jsx(Ic,k({color:{"":"#dark.75",hovered:"#purple"},width:"5x",height:"5x",onPress:i},{children:M.jsx(Ye,{},void 0)}),void 0)]}),void 0)}var Ry,Iy,My=0,_y={root:null,defaultOptions:{duration:5e3},items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-notification-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),x.render(M.jsx(Qu.TransitionGroup,k({className:"cube-notifications"},{children:e.map((function(e){return M.jsx(Qu.CSSTransition,k({timeout:400,classNames:"cube-notification"},{children:M.jsx(Dy,k({type:e.type,onClose:function(){return t.close(e.id)}},{children:e.message}),void 0)}),e.id)}))}),void 0),this.root)},show:function(e,t,n){var r=this;void 0===n&&(n={}),n=Object.assign({},this.defaultOptions,n);var i=++My;this.items.push({id:i,type:e,message:t}),this.render(),setTimeout((function(){r.close(i)}),n.duration)},close:function(e){this.items=this.items.filter((function(t){return t.id!==e})),this.render()},success:function(e,t){this.show("success",e,t)},danger:function(e,t){this.show("danger",e,t)},info:function(e,t){this.show("note",e,t)}},zy={position:"absolute",right:0,top:0,zIndex:1},Ky=m(oc)(Ry||(Ry=A(["\n position: relative;\n overflow: ",";\n max-width: 100%;\n ","\n\n ","\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n border: 3px solid transparent;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n"],["\n position: relative;\n overflow: ",";\n max-width: 100%;\n ","\n\n ","\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n border: 3px solid transparent;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n"])),(function(e){return e.showScroll?"auto hidden":"hidden"}),(function(e){return e.nowrap?"white-space: nowrap;":""}),(function(e){return e.serif?"&&& code { font-family: var(--font); }":""})),Vy=m(oc)(Iy||(Iy=A(["\n position: relative;\n\n ","\n"],["\n position: relative;\n\n ","\n"])),(function(e){return e.overlay?"::after {\n display: block;\n content: '';\n width: 16px;\n position: absolute;\n left: -16px;\n top: 0;\n bottom: 0;\n background-image: linear-gradient(to right, rgba(var(--context-fill-color-rgb), 0), rgba(var(--context-fill-color-rgb), 1));\n }":""}));function Uy(e){var t=e.code,n=e.title,r=e.nowrap,i=e.prefix,o=e.language,a=e.showScroll,l=void 0===a||a,s=e.serif;e.children;var u=e.padding,c=e.showOverlay,d=void 0===c||c,p=e.showTooltip,f=void 0!==p&&p,h=e.styles,v=P(e,["code","title","nowrap","prefix","language","showScroll","serif","children","padding","showOverlay","showTooltip","styles"]);u=u||"1.125x 1.5x";var g=n||"Code example";var m=(t||"").includes("\n")&&!r,y=t.split(/\n/g).map((function(e){return""+(i||"")+e+" "})).join("\n");h=k({preset:"default"},h);var b=M.jsx(Ph,k({"data-qa":"CopySnippet",fill:"#grey-light",radius:"1r",border:0,padding:0,style:{position:"relative"},styles:h},v,{children:M.jsxs(Df,k({columns:"minmax(0, 1fr) 5x",width:"min 20x",radius:"1r",style:{position:"relative",overflow:"hidden"}},{children:[M.jsx(Ky,k({nowrap:r,multiline:m,showScroll:l,serif:s,padding:u},{children:M.jsx(Zf,{style:{margin:0,overflow:"visible"},code:y,language:o||"javascript"},void 0)}),void 0),M.jsx(Vy,{padding:u,overlay:d},void 0),M.jsx(Vc,k({"aria-label":"Copy "+g,type:"clear",styles:{padding:"1x 1.5x",fontWeight:500,radius:m||l?"0 1r":"0 1r 1r 0",border:"#clear",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03 inset"}},style:zy,onPress:function(){return T(this,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,Ly(t)];case 1:return e.sent(),_y.success(g+" copied"),[2]}}))}))}},{children:M.jsx(et,{},void 0)}),void 0)]}),void 0)}),void 0);return f?M.jsxs(ac,{children:[M.jsx(Ic,k({styles:{display:"block",cursor:"default",width:"100%"}},{children:b}),void 0),M.jsx(pc,{children:y},void 0)]},void 0):b}function By(e){var t=e.title,n=e.value,r=e.suffix,i=P(e,["title","value","suffix"]);return M.jsxs(Ph,k({display:"flex",placeContent:"space-between",gap:"1x",border:!1,shadow:"0 2px 6px #dark.10",padding:"2.5x"},i,{children:[M.jsx(jp,k({level:4,color:"#minor",preset:"default",nowrap:!0},{children:t}),void 0),M.jsxs(Tp.Strong,k({preset:"h3"},{children:[n," ",r]}),void 0)]}),void 0)}var qy={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function Wy(e){var t=e.indent,n=e.isSelected;return{width:"max 100%",radius:!0,textAlign:"left",fill:n?"#purple.05":{"":"#clear",hovered:"#dark.04"},color:n?"#purple-text":"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:400,padding:".75x .5x .75x "+(t||.5)+"x"}}function Gy(e){var t=e.children,n=e.indent,r=e.onPress,i=e.isSelected;return M.jsx(Ic,k({onPress:r,styles:Wy({indent:n,isSelected:i}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}var Jy="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function Hy(e){var t=e.onSelect,n=e.files,r=e.selectedKey,a=e.defaultExpandAll,l=P(e,["onSelect","files","selectedKey","defaultExpandAll"]),s=N(o([]),2),u=s[0],c=s[1],d=N(o(r),2),p=d[0],f=d[1];function h(e,n){var r="string"==typeof e?e:e.key;t&&t(r.split("|")[0],n),f(r)}i((function(){f(r)}),[r]),i((function(){a&&c(n.map((function(e){return e.key})))}),[]),i((function(){a&&c(n.map((function(e){return e.key})))}),[n]);var g=n.reduce((function(e,t){return e+t.items.length}),0);return M.jsxs(Mf,k({styles:{flow:"column",width:"100%",gap:"1bw",padding:"2x bottom"}},l,{children:[M.jsx(Fp,k({color:"#dark.50",padding:"1x 0"},{children:g?g+" result"+(g>1?"s":"")+" in "+n.length+" file"+(n.length>1?"s":""):"No results found"}),void 0),n.map((function(e){return M.jsxs(v,{children:[M.jsx(Gy,k({isSelected:p===e.key,onPress:function(){return h(e)},indent:e.items.length?null:2.25},{children:M.jsxs(bc,k({gap:".5x",css:Jy},{children:[M.jsx(Vc,k({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return t=e,void(u.includes(t.key)?c(u.filter((function(e){return e!==t.key}))):c(j(j([],N(u),!1),[t.key],!1)));var t}},{children:e.items.length?u.includes(e.key)?M.jsx(We,{},void 0):M.jsx(Ue,{},void 0):null}),void 0),M.jsxs(bc,k({gap:"1x",flexGrow:1,color:p===e.key?"#purple":"#dark.50"},{children:[(u.includes(e.key),M.jsx(pt,{},void 0)),M.jsx(oc,k({style:qy,color:p===e.key?"#purple-text":"#dark.75"},{children:e.entry?M.jsxs(M.Fragment,{children:[e.before||"",M.jsx(Tp.Selection,{children:e.entry},void 0),e.after||""]},void 0):e.title}),void 0)]}),void 0)]}),void 0)}),e.key),(u.includes(e.key)&&e.items||[]).map((function(t,n){var r=e.key+"|"+n,i=p===r;return M.jsx(Gy,k({indent:3.5,isSelected:i,onPress:function(){return h(r,[t.row,t.column])}},{children:M.jsx(bc,k({gap:"1x",css:Jy,color:i?"#purple":"#dark.50"},{children:M.jsxs(oc,k({style:qy,flexGrow:1,color:i?"#purple-text":"#dark.75"},{children:[t.before||"",M.jsx(Tp.Selection,{children:t.entry},void 0),t.after||""]}),void 0)}),void 0)}),r)}))]},e.key)}))]}),void 0)}var $y=Object.assign(Vc,{Group:Rp}),Xy=Object.assign(Ea,{Item:bp}),Yy={Text:Tp,Title:jp,Paragraph:Fp},Zy=Object.assign(Nc,{Text:Nc,Password:Uc,Number:gp,TextArea:Dp,File:Mp});function Qy(e,t){var n=Object.prototype.toString.call(e),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,i=0,o=e.length;if(r)for(;i<o;i++)t(e[i]);else t(e)}function eb(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}function tb(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}var nb=function(e,t){var n=window,r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(e){n.clearTimeout(e)},o=0;function a(){var e,t,n=[];this.add=function(e){n.push(e)},this.call=function(r){for(e=0,t=n.length;e<t;e++)n[e].call(this,r)},this.remove=function(r){var i=[];for(e=0,t=n.length;e<t;e++)n[e]!==r&&i.push(n[e]);n=i},this.length=function(){return n.length}}function l(e,t){if(e)if(e.resizedAttached)e.resizedAttached.add(t);else{e.resizedAttached=new a,e.resizedAttached.add(t),e.resizeSensor=document.createElement("div"),e.resizeSensor.dir="ltr",e.resizeSensor.className="resize-sensor";var n={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},i={position:"absolute",left:"0px",top:"0px",transition:"0s"};tb(e.resizeSensor,n);var l=document.createElement("div");l.className="resize-sensor-expand",tb(l,n);var s=document.createElement("div");tb(s,i),l.appendChild(s);var u=document.createElement("div");u.className="resize-sensor-shrink",tb(u,n);var c=document.createElement("div");tb(c,i),tb(c,{width:"200%",height:"200%"}),u.appendChild(c),e.resizeSensor.appendChild(l),e.resizeSensor.appendChild(u),e.appendChild(e.resizeSensor);var d=window.getComputedStyle(e),p=d?d.getPropertyValue("position"):null;"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(e.style.position="relative");var f=!1,h=0,v=eb(e),g=0,m=0,y=!0;o=0;var b=function(){if(y){if(0===e.offsetWidth&&0===e.offsetHeight)return void(o||(o=r((function(){o=0,b()}))));y=!1}var t,n;t=e.offsetWidth,n=e.offsetHeight,s.style.width=t+10+"px",s.style.height=n+10+"px",l.scrollLeft=t+10,l.scrollTop=n+10,u.scrollLeft=t+10,u.scrollTop=n+10};e.resizeSensor.resetSensor=b;var x=function(){h=0,f&&(g=v.width,m=v.height,e.resizedAttached&&e.resizedAttached.call(v))},w=function(){v=eb(e),(f=v.width!==g||v.height!==m)&&!h&&(h=r(x)),b()},S=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};S(l,"scroll",w),S(u,"scroll",w),o=r((function(){o=0,b()}))}}Qy(e,(function(e){l(e,t)})),this.detach=function(t){o&&(i(o),o=0),nb.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor&&e.resizeSensor.resetSensor()}};if(nb.reset=function(e){Qy(e,(function(t){e.resizeSensor.resetSensor&&t.resizeSensor.resetSensor()}))},nb.detach=function(e,t){Qy(e,(function(e){e&&(e.resizedAttached&&"function"==typeof t&&(e.resizedAttached.remove(t),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached))}))},"undefined"!=typeof MutationObserver){var rb=new MutationObserver((function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t].addedNodes,r=0;r<n.length;r++)n[r].resizeSensor&&nb.reset(n[r])}));document.addEventListener("DOMContentLoaded",(function(e){rb.observe(document.body,{childList:!0,subtree:!0})}))}var ib=Object.freeze({__proto__:null,ResizeSensor:nb});export{Ic as Action,rc as ActiveZone,ay as Alert,Xm as AlertDialog,Sm as Avatar,qo as BASE_STYLES,Go as BLOCK_STYLES,Rh as Badge,Bo as Base,Eh as Base64Upload,oc as Block,_i as BreakpointsContext,zi as BreakpointsProvider,$y as Button,Rp as ButtonGroup,Jo as COLOR_STYLES,Yo as CONTAINER_STYLES,Ph as Card,_v as Checkbox,Fv as CheckboxGroup,Mo as ClearSlots,Lh as CloudLogo,xm as ComboBox,ah as Content,Uy as CopySnippet,$o as DIMENSION_STYLES,ty as Dialog,Ym as DialogContainer,ey as DialogForm,Jm as DialogTrigger,my as DirectoryTree,th as Divider,Xo as FLOW_STYLES,bp as Field,gc as FieldWrapper,Mp as FileInput,Ty as FileTabs,Mf as Flex,Vf as Flow,ph as Footer,Xy as Form,Df as Grid,rh as GridProvider,uh as Header,Zy as Input,Pf as Item,wy as LegacyTabs,_f as Link,fm as ListBoxPopup,yh as LoadingAnimation,Oy as Modal,Bs as ModalProvider,gp as NumberInput,Zo as OUTER_STYLES,Wo as POSITION_STYLES,Fp as Paragraph,Uc as PasswordInput,Ch as Placeholder,fl as Prefix,Zf as PrismCode,Vi as Provider,eg as Radio,$f as Root,Vt as SSRProvider,Eo as STYLE_HANDLER_MAP,Sv as SearchInput,Hy as SearchResults,vm as Select,Nh as Skeleton,Io as SlotProvider,bc as Space,wh as Spin,By as StatsCard,Ii as StyleProvider,Ev as Submit,vl as Suffix,Uv as Switch,Ho as TEXT_STYLES,zh as Tag,Tp as Text,Dp as TextArea,Nc as TextInput,jp as Title,pc as Tooltip,fc as TooltipProvider,ac as TooltipTrigger,ry as TopBar,Yy as Typography,jo as chain,Ly as copy,So as createStyle,ko as defineCustomStyle,Po as defineStyleAlias,Ao as isTextOnly,Lo as mergeProps,Fo as modAttrs,_y as notification,wp as styled,zo as useCombinedRefs,Mi as useContextStyles,xa as useFormProps,qt as useIsSSR,_o as useLayoutEffect,Bt as useSSRSafeId,Ro as useSlotProps};
|
|
42
|
+
var Lb=async function(e){try{await async function(e){if(!navigator.clipboard)throw Fb();return navigator.clipboard.writeText(e)}(e)}catch(t){try{await async function(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const n=window.getSelection(),r=window.document.createRange();n.removeAllRanges(),r.selectNode(t),n.addRange(r);let i=!1;try{i=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!i)throw Fb()}(e)}catch(e){throw e||t||Fb()}}};function Fb(){return new DOMException("The request is not allowed","NotAllowedError")}function Db(e){var t,n=e.type,r=e.children,i=e.onClose,o=P(e,["type","children","onClose"]);switch(n=n||"note"){case"success":t=He;break;case"danger":t=rt;break;default:t=kt}return M.jsxs(Ph,k({display:"grid",role:"region",color:"#dark",padding:".5x",shadow:"0 5px 15px #dark.10",border:!1,margin:"1x bottom",radius:"1.5r",styles:{gridColumns:"auto 1fr auto",placeItems:"center start",gap:"2x"}},o,{children:[M.jsx(Mf,k({radius:"1r",width:"5x",height:"5x",placeContent:"center",placeItems:"center",fill:Fh[n]?Fh[n].fill:"#clear",color:Fh[n]?Fh[n].color:"#dark.75"},{children:M.jsx(t,{style:{fontSize:16}},void 0)}),void 0),M.jsx(oc,{children:r},void 0),M.jsx(Ic,k({color:{"":"#dark.75",hovered:"#purple"},width:"5x",height:"5x",onPress:i},{children:M.jsx(Ye,{},void 0)}),void 0)]}),void 0)}var Rb,Ib,Mb=0,_b={root:null,defaultOptions:{duration:5e3},items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-notification-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),x.render(M.jsx(Qu.TransitionGroup,k({className:"cube-notifications"},{children:e.map((function(e){return M.jsx(Qu.CSSTransition,k({timeout:400,classNames:"cube-notification"},{children:M.jsx(Db,k({type:e.type,onClose:function(){return t.close(e.id)}},{children:e.message}),void 0)}),e.id)}))}),void 0),this.root)},show:function(e,t,n){var r=this;void 0===n&&(n={}),n=Object.assign({},this.defaultOptions,n);var i=++Mb;this.items.push({id:i,type:e,message:t}),this.render(),setTimeout((function(){r.close(i)}),n.duration)},close:function(e){this.items=this.items.filter((function(t){return t.id!==e})),this.render()},success:function(e,t){this.show("success",e,t)},danger:function(e,t){this.show("danger",e,t)},info:function(e,t){this.show("note",e,t)}},zb={position:"absolute",right:0,top:0,zIndex:1},Kb=m(oc)(Rb||(Rb=A(["\n position: relative;\n overflow: ",";\n max-width: 100%;\n ","\n\n ","\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n border: 3px solid transparent;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n"],["\n position: relative;\n overflow: ",";\n max-width: 100%;\n ","\n\n ","\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n border: 3px solid transparent;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n"])),(function(e){return e.showScroll?"auto hidden":"hidden"}),(function(e){return e.nowrap?"white-space: nowrap;":""}),(function(e){return e.serif?"&&& code { font-family: var(--font); }":""})),Vb=m(oc)(Ib||(Ib=A(["\n position: relative;\n\n ","\n"],["\n position: relative;\n\n ","\n"])),(function(e){return e.overlay?"::after {\n display: block;\n content: '';\n width: 16px;\n position: absolute;\n left: -16px;\n top: 0;\n bottom: 0;\n background-image: linear-gradient(to right, rgba(var(--context-fill-color-rgb), 0), rgba(var(--context-fill-color-rgb), 1));\n }":""}));function Ub(e){var t=e.code,n=e.title,r=e.nowrap,i=e.prefix,o=e.language,a=e.showScroll,l=void 0===a||a,s=e.serif;e.children;var u=e.padding,c=e.showOverlay,d=void 0===c||c,p=e.showTooltip,f=void 0!==p&&p,h=e.styles,v=P(e,["code","title","nowrap","prefix","language","showScroll","serif","children","padding","showOverlay","showTooltip","styles"]);u=u||"1.125x 1.5x";var g=n||"Code example";var m=(t||"").includes("\n")&&!r,b=t.split(/\n/g).map((function(e){return""+(i||"")+e+" "})).join("\n");h=k({preset:"default"},h);var y=M.jsx(Ph,k({"data-qa":"CopySnippet",fill:"#grey-light",radius:"1r",border:0,padding:0,style:{position:"relative"},styles:h},v,{children:M.jsxs(Df,k({columns:"minmax(0, 1fr) 5x",width:"min 20x",radius:"1r",style:{position:"relative",overflow:"hidden"}},{children:[M.jsx(Kb,k({nowrap:r,multiline:m,showScroll:l,serif:s,padding:u},{children:M.jsx(Zf,{style:{margin:0,overflow:"visible"},code:b,language:o||"javascript"},void 0)}),void 0),M.jsx(Vb,{padding:u,overlay:d},void 0),M.jsx(Vc,k({"aria-label":"Copy "+g,type:"clear",styles:{padding:"1x 1.5x",fontWeight:500,radius:m||l?"0 1r":"0 1r 1r 0",border:"#clear",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03 inset"}},style:zb,onPress:function(){return T(this,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,Lb(t)];case 1:return e.sent(),_b.success(g+" copied"),[2]}}))}))}},{children:M.jsx(et,{},void 0)}),void 0)]}),void 0)}),void 0);return f?M.jsxs(ac,{children:[M.jsx(Ic,k({styles:{display:"block",cursor:"default",width:"100%"}},{children:y}),void 0),M.jsx(pc,{children:b},void 0)]},void 0):y}function Bb(e){var t=e.title,n=e.value,r=e.suffix,i=P(e,["title","value","suffix"]);return M.jsxs(Ph,k({display:"flex",placeContent:"space-between",gap:"1x",border:!1,shadow:"0 2px 6px #dark.10",padding:"2.5x"},i,{children:[M.jsx(jp,k({level:4,color:"#minor",preset:"default",nowrap:!0},{children:t}),void 0),M.jsxs(Tp.Strong,k({preset:"h3"},{children:[n," ",r]}),void 0)]}),void 0)}var qb={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function Wb(e){var t=e.indent,n=e.isSelected;return{width:"max 100%",radius:!0,textAlign:"left",fill:n?"#purple.05":{"":"#clear",hovered:"#dark.04"},color:n?"#purple-text":"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:400,padding:".75x .5x .75x "+(t||.5)+"x"}}function Gb(e){var t=e.children,n=e.indent,r=e.onPress,i=e.isSelected;return M.jsx(Ic,k({onPress:r,styles:Wb({indent:n,isSelected:i}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}var Jb="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function Hb(e){var t=e.onSelect,n=e.files,r=e.selectedKey,a=e.defaultExpandAll,l=P(e,["onSelect","files","selectedKey","defaultExpandAll"]),s=N(o([]),2),u=s[0],c=s[1],d=N(o(r),2),p=d[0],f=d[1];function h(e,n){var r="string"==typeof e?e:e.key;t&&t(r.split("|")[0],n),f(r)}i((function(){f(r)}),[r]),i((function(){a&&c(n.map((function(e){return e.key})))}),[]),i((function(){a&&c(n.map((function(e){return e.key})))}),[n]);var g=n.reduce((function(e,t){return e+t.items.length}),0);return M.jsxs(Mf,k({styles:{flow:"column",width:"100%",gap:"1bw",padding:"2x bottom"}},l,{children:[M.jsx(Fp,k({color:"#dark.50",padding:"1x 0"},{children:g?g+" result"+(g>1?"s":"")+" in "+n.length+" file"+(n.length>1?"s":""):"No results found"}),void 0),n.map((function(e){return M.jsxs(v,{children:[M.jsx(Gb,k({isSelected:p===e.key,onPress:function(){return h(e)},indent:e.items.length?null:2.25},{children:M.jsxs(yc,k({gap:".5x",css:Jb},{children:[M.jsx(Vc,k({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return t=e,void(u.includes(t.key)?c(u.filter((function(e){return e!==t.key}))):c(j(j([],N(u),!1),[t.key],!1)));var t}},{children:e.items.length?u.includes(e.key)?M.jsx(We,{},void 0):M.jsx(Ue,{},void 0):null}),void 0),M.jsxs(yc,k({gap:"1x",flexGrow:1,color:p===e.key?"#purple":"#dark.50"},{children:[(u.includes(e.key),M.jsx(pt,{},void 0)),M.jsx(oc,k({style:qb,color:p===e.key?"#purple-text":"#dark.75"},{children:e.entry?M.jsxs(M.Fragment,{children:[e.before||"",M.jsx(Tp.Selection,{children:e.entry},void 0),e.after||""]},void 0):e.title}),void 0)]}),void 0)]}),void 0)}),e.key),(u.includes(e.key)&&e.items||[]).map((function(t,n){var r=e.key+"|"+n,i=p===r;return M.jsx(Gb,k({indent:3.5,isSelected:i,onPress:function(){return h(r,[t.row,t.column])}},{children:M.jsx(yc,k({gap:"1x",css:Jb,color:i?"#purple":"#dark.50"},{children:M.jsxs(oc,k({style:qb,flexGrow:1,color:i?"#purple-text":"#dark.75"},{children:[t.before||"",M.jsx(Tp.Selection,{children:t.entry},void 0),t.after||""]}),void 0)}),void 0)}),r)}))]},e.key)}))]}),void 0)}var $b=Object.assign(Vc,{Group:Rp}),Xb=Object.assign(Ea,{Item:yp}),Yb={Text:Tp,Title:jp,Paragraph:Fp},Zb=Object.assign(Nc,{Text:Nc,Password:Uc,Number:gp,TextArea:Dp,File:Mp});function Qb(e,t){var n=Object.prototype.toString.call(e),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,i=0,o=e.length;if(r)for(;i<o;i++)t(e[i]);else t(e)}function ey(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}function ty(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}var ny=function(e,t){var n=window,r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(e){n.clearTimeout(e)},o=0;function a(){var e,t,n=[];this.add=function(e){n.push(e)},this.call=function(r){for(e=0,t=n.length;e<t;e++)n[e].call(this,r)},this.remove=function(r){var i=[];for(e=0,t=n.length;e<t;e++)n[e]!==r&&i.push(n[e]);n=i},this.length=function(){return n.length}}function l(e,t){if(e)if(e.resizedAttached)e.resizedAttached.add(t);else{e.resizedAttached=new a,e.resizedAttached.add(t),e.resizeSensor=document.createElement("div"),e.resizeSensor.dir="ltr",e.resizeSensor.className="resize-sensor";var n={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},i={position:"absolute",left:"0px",top:"0px",transition:"0s"};ty(e.resizeSensor,n);var l=document.createElement("div");l.className="resize-sensor-expand",ty(l,n);var s=document.createElement("div");ty(s,i),l.appendChild(s);var u=document.createElement("div");u.className="resize-sensor-shrink",ty(u,n);var c=document.createElement("div");ty(c,i),ty(c,{width:"200%",height:"200%"}),u.appendChild(c),e.resizeSensor.appendChild(l),e.resizeSensor.appendChild(u),e.appendChild(e.resizeSensor);var d=window.getComputedStyle(e),p=d?d.getPropertyValue("position"):null;"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(e.style.position="relative");var f=!1,h=0,v=ey(e),g=0,m=0,b=!0;o=0;var y=function(){if(b){if(0===e.offsetWidth&&0===e.offsetHeight)return void(o||(o=r((function(){o=0,y()}))));b=!1}var t,n;t=e.offsetWidth,n=e.offsetHeight,s.style.width=t+10+"px",s.style.height=n+10+"px",l.scrollLeft=t+10,l.scrollTop=n+10,u.scrollLeft=t+10,u.scrollTop=n+10};e.resizeSensor.resetSensor=y;var x=function(){h=0,f&&(g=v.width,m=v.height,e.resizedAttached&&e.resizedAttached.call(v))},w=function(){v=ey(e),(f=v.width!==g||v.height!==m)&&!h&&(h=r(x)),y()},S=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};S(l,"scroll",w),S(u,"scroll",w),o=r((function(){o=0,y()}))}}Qb(e,(function(e){l(e,t)})),this.detach=function(t){o&&(i(o),o=0),ny.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor&&e.resizeSensor.resetSensor()}};if(ny.reset=function(e){Qb(e,(function(t){e.resizeSensor.resetSensor&&t.resizeSensor.resetSensor()}))},ny.detach=function(e,t){Qb(e,(function(e){e&&(e.resizedAttached&&"function"==typeof t&&(e.resizedAttached.remove(t),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached))}))},"undefined"!=typeof MutationObserver){var ry=new MutationObserver((function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t].addedNodes,r=0;r<n.length;r++)n[r].resizeSensor&&ny.reset(n[r])}));document.addEventListener("DOMContentLoaded",(function(e){ry.observe(document.body,{childList:!0,subtree:!0})}))}var iy=Object.freeze({__proto__:null,ResizeSensor:ny});export{Ic as Action,rc as ActiveZone,ab as Alert,Xm as AlertDialog,Sm as Avatar,qo as BASE_STYLES,Go as BLOCK_STYLES,Rh as Badge,Bo as Base,Eh as Base64Upload,oc as Block,_i as BreakpointsContext,zi as BreakpointsProvider,$b as Button,Rp as ButtonGroup,Jo as COLOR_STYLES,Yo as CONTAINER_STYLES,Ph as Card,_v as Checkbox,Fv as CheckboxGroup,Mo as ClearSlots,Lh as CloudLogo,xm as ComboBox,ah as Content,Ub as CopySnippet,$o as DIMENSION_STYLES,tb as Dialog,Ym as DialogContainer,eb as DialogForm,Jm as DialogTrigger,mb as DirectoryTree,th as Divider,Xo as FLOW_STYLES,yp as Field,gc as FieldWrapper,Mp as FileInput,Tb as FileTabs,Mf as Flex,Vf as Flow,ph as Footer,Xb as Form,Df as Grid,rh as GridProvider,uh as Header,Zb as Input,Pf as Item,wb as LegacyTabs,_f as Link,fm as ListBoxPopup,bh as LoadingAnimation,Ob as Modal,Bs as ModalProvider,gp as NumberInput,Zo as OUTER_STYLES,Wo as POSITION_STYLES,Fp as Paragraph,Uc as PasswordInput,Ch as Placeholder,fl as Prefix,Zf as PrismCode,Vi as Provider,eg as Radio,$f as Root,Vt as SSRProvider,Eo as STYLE_HANDLER_MAP,Sv as SearchInput,Hb as SearchResults,vm as Select,Nh as Skeleton,Io as SlotProvider,yc as Space,wh as Spin,Bb as StatsCard,Ii as StyleProvider,Ev as Submit,vl as Suffix,Uv as Switch,Ho as TEXT_STYLES,zh as Tag,Tp as Text,Dp as TextArea,Nc as TextInput,jp as Title,pc as Tooltip,fc as TooltipProvider,ac as TooltipTrigger,rb as TopBar,Yb as Typography,jo as chain,Lb as copy,So as createStyle,ko as defineCustomStyle,Po as defineStyleAlias,Ao as isTextOnly,Lo as mergeProps,Fo as modAttrs,_b as notification,wp as styled,zo as useCombinedRefs,Mi as useContextStyles,xa as useFormProps,qt as useIsSSR,_o as useLayoutEffect,Bt as useSSRSafeId,Ro as useSlotProps};
|
|
43
43
|
//# sourceMappingURL=index.js.map
|